I am Jeff from R-S, so I did not leech. Any of my tuts you see floating around here were stolen from me off of another site.
Difficulty - 0/10
Classes Modified - Client class.
Tested base - BattleScape (Easy to convert to others.)
What this includes:
-Correct Button pushing to turn pages.
-Page numbers. i.e - Turning the page, goes to page #
-Close Window Action button reseting animation.
-Correct page reading animation.
Since I was the first to post a guide like this, I can't be considered a leecher. >.>
End result. (Random page.)


First off, we will be using book ID #5 for this tutorial. If you wish to switch to another, use one of the other book ids in the code.
Alright, so lets do this.
Open up your client class and directly under this:
Add this:
I labeled each line to help you know where you're adding your information. Just be careful because the pages are extremely small so you need to cut your information short.
Also, you can add as many pages you want to this, it's not hard to figure out how.
Alright, next lets set your action buttons.
Search for:
Directly under this:
Add this:
This enables the use of all the buttons in the book.
Now, the last and final step.
Search for this:
And add this case:
This enables your book to work.
Difficulty - 0/10
Classes Modified - Client class.
Tested base - BattleScape (Easy to convert to others.)
What this includes:
-Correct Button pushing to turn pages.
-Page numbers. i.e - Turning the page, goes to page #
-Close Window Action button reseting animation.
-Correct page reading animation.
Since I was the first to post a guide like this, I can't be considered a leecher. >.>
End result. (Random page.)


First off, we will be using book ID #5 for this tutorial. If you wish to switch to another, use one of the other book ids in the code.
Alright, so lets do this.
Open up your client class and directly under this:
Code: [Select]
public class client extends Player implements Runnable {Add this:
Code: [Select]
public int page = 0;
public static final String bookTitle = "@whi@Aeolian Guide Book";
public static final String book[][] = {
{ //book 1
"@dre@Changing your password:", //line1 Subject
"To change your Password", //line2
"simply type the following", //line3
"::changepassword newpass", //line4
"If you have any other", //line5
"problems feel free", //line6
"to post on the forums", //line7
"", //line8
"", //line9
"", //line10
"", //line11
"@dre@Getting Started:", //line1 Next page Subject
"To get started, look in", //line2
"the shops for combat items", //line3
"to aid you in training. ", //line4
"Then choose one of the", //line5
"Training teleports that's", //line6
"located in your spellbook", //line7
"to travel to a location that", //line8
"fits you.", //line9
"", //line10
"", //line11
},
{ //book 2
"@dre@Basic Rules:", //line1 Subject
"1. No Swearing using the", //line2
" ::yell feature", //line3
"", //line4
"2. No Disrespecting any staff.", //line5
"", //line6
"3. No Impersonating staff", //line7
"", //line8
"4. Do NOT Advertise any", //line9
"other Servers.", //line10
"", //line11
"@dre@Current Staff:", //line1 Next page Subject
"Mod Jeff - Owner", //line2
"", //line3
"Co-Owner - @gre@Open", //line4
"", //line5
"Sorrow Skies - Moderator", //line6
"", //line7
"Blighted - Moderator", //line8
"", //line9
"", //line10
"", //line11
},
{ //book 3
"@dre@Staff Rights:", //line1 Subject
"Any and all Staff Members", //line2
"have the right to use their", //line3
"powers as they see fit.", //line4
"If you happen to get banned", //line5
"please submit a ban/infraction", //line6
"appeal on the official forums.", //line7
"", //line8
"@blu@", //line9
"", //line10
"", //line11
"@dre@Talking in Clan Chat:", //line1 Next page Subject
"To talk in the clan chat", //line2
"feature simply type the", //line3
"symbol '/ '", //line4
"before any and all text that", //line5
"is submitted. If you have", //line6
"any questions, feel free to", //line7
"to ask any of the current", //line8
" staff.", //line9
"", //line10
"", //line11
},
{ //book 4
"@dre@Resetting Barrows:", //line1 Subject
"If for any reason you get", //line2
" bugged during the Barrows", //line3
" mini-game and you find ", //line4
"yourself not being able to", //line5
"obtain an item, simply", //line6
" type ::resetbarrows.", //line7
"This resets your Barrows kill", //line8
"count, thus restarting the cycle", //line9
"of kills completely.", //line10
"", //line11
"@dre@The Pvp Shop:", //line1 Next page Subject
"In order to be able to", //line2
" purchase any of the items", //line3
" in the Pvp Shop one must", //line4
" kill enough players to ", //line5
"gain the points needed to", //line6
" purchase that item.", //line7
"", //line8
"1 kill = 1 Pvp point.", //line9
"", //line10
"", //line11
},
{ //book 5
"@dre@Switching to Ancient Magic:", //line1 Subject
"To switch to your Ancient", //line2
" Magics spellbook, travel", //line3
" to the prayer guild", //line4
" located in Edgeville.", //line5
" There is an ancients altar", //line6
" in which you will be able ", //line7
"to switch spellbooks.", //line8
"", //line9
"", //line10
"", //line11
"@dre@Switching to Lunar Magic:", //line1 Next page Subject
"To switch to your Lunar", //line2
" Magic spellbook, you", //line3
" must travel to the", //line4
" island of Entrana,", //line5
" there you will find a ", //line6
"church with a prayer", //line7
" altar. Pray on the altar", //line8
" to switch between ", //line9
"spellbooks.", //line10
"", //line11
},
{ //book 6
"@dre@Barrows:", //line1 Subject
"To travel to Barrows, use ", //line2
"the available teleport spell", //line3
" in your spellbook.", //line4
"", //line5
"Barrows is currently the", //line6
" only way to obtain", //line7
" Barrows items.", //line8
"Remember to bring your", //line9
" spade!", //line10
"", //line11
"@dre@Pest Control:", //line1 Next page Subject
"Use your spellbook", //line2
" teleports to travel to ", //line3
"Pest Control. You are able", //line4
" to win PC points which", //line5
" you can exchange for", //line6
" items and experience for", //line7
" skills.", //line8
"5 Players are required to", //line9
" play Pest Control", //line10
"", //line11
},
{ //book 7
"@dre@Obtaining a Fire Cape:", //line1 Subject
"To obtain a Fire Cape, one", //line2
" must complete all 64 waves", //line3
" of the fight caves minigame.", //line4
" Once you complete it, you ", //line5
"will be awarded a Fire Cape.", //line6
"", //line7
"", //line8
"Bring Prayer potions.", //line9
"43+", //line10
"Prayer is highly recommended.", //line11
"@dre@Warriors Guild:", //line1 Next page Subject
"There are a select few", //line2
" items that are only ", //line3
"obtainable through the", //line4
" Warriors Guild.", //line5
"", //line6
"Use your spellbook to ", //line7
"travel to the", //line8
" Warriors Guild", //line9
"", //line10
"", //line11
},
{ //book 4
"@dre@Thank you for reading:", //line1 Subject
"Thank you for reading the", //line2
"Aeolian Guide book, we", //line3
"hope that this book has ", //line4
"helped educate you about", //line5
"some of our features.", //line6
"", //line7
"", //line8
"Read again sometime! ", //line9
"", //line10
"", //line11
"@dre@Suggestions:", //line1 next page subject
"If you have a suggestion", //line2
"for this Guide Book,", //line3
" please post the suggestion", //line4
" on the forums in the", //line5
" 'suggestions' section.", //line6
" @blu@", //line7
"", //line8
"Best Wishes!", //line9
"", //line10
"-The Aeolian Staff", //line11
}
};
public static final int bookIDs[] = {
843, 844, 845, 846, 847, 848, 849, 850, 851, 852,
853, 854, 855, 856, 857, 858, 859, 860, 861, 862,
863, 864
};
public void openBook()
{
startAnimation(3141, 0);
page = 1;
changeText126(bookTitle, 903);
reloadPage();
showInterface(837);
}
public void closeBook()
{
RemoveAllWindows();
CurrentFrame = -1;
resetEmotes();
}
public void previousPage()
{
if(page > 1)
{
page--;
reloadPage();
}
}
public void nextPage()
{
if(page < book.length)
{
page++;
reloadPage();
}
}
public void reloadPage()
{
for(int i = 0; i < book[page - 1].length; i++)
{
changeText126(book[page - 1][i], bookIDs[i]);
}
if(page > 1)
{
changeText126("@dre@Page " + (page - 1), 14165);
} else
{
changeText126("", 14165);
}
if(page < book.length)
{
changeText126("@dre@Page " + (page + 1), 14166);
} else
{
changeText126("", 14166);
}
}I labeled each line to help you know where you're adding your information. Just be careful because the pages are extremely small so you need to cut your information short.
Also, you can add as many pages you want to this, it's not hard to figure out how.
Alright, next lets set your action buttons.
Search for:
Code: [Select]
public void ActionButtons() {Directly under this:
Code: [Select]
public void ActionButtons() {
int ButtonId = inStream.readUnsignedWord();
int wildLvl = (((absY - 3520) / 8) + 1);
switch(ButtonId) {Add this:
Code: [Select]
/**
*Guide Book Buttons
*/
case 839: //Previous Button
previousPage();
break;
case 841: //Next Button
nextPage();
break;
case 10162: //Close Window Button
closeBook();
break;This enables the use of all the buttons in the book.
Now, the last and final step.
Search for this:
Code: [Select]
public void UseItem()And add this case:
Code: [Select]
/**
*Guide Book
*/
case 5:
openBook();
break;This enables your book to work.

















comments (0)
Post a Comment