This Isn't Full Treasure Trails, as I'm Just Gonna Put Some Codes That Will Help You When Creating Treasure Trails. This Is Practily a Base But im Not Going To Spoon Feed You On How To Use These Codes
FIRST!: Find Your Frames And Add This.
Code:
// Item On Interface
public void sendFrame34(int frame,int item,int slot,int amount){
outStream.createFrameVarSizeWord(34);
outStream.writeWord(frame);
outStream.writeByte(slot);
outStream.writeWord(item+1);
outStream.writeByte(255);
outStream.writeDWord(amount);
outStream.endFrameVarSizeWord();
}
HAVING A INTERFACE POP UP whEN THE SCROLL IS CLICKED
Put in case 122:
Code:
if (ItemID == Cluescroll) {
openinterface($$$$)
}
replace the clue scroll id with well the id you want the scroll or casket or w/e to be. change $$$$ to the interface id of the clue scroll that you wish to open, (such as a tt map)
SAMPLE VOID FOR TREASURE TRAIL REWARD
Here Is a Sample Void:
Code:
public void clueScroll(int i1, int a1, int i2, int a2, int i3, int a3, int i4,int a4,int clueID){
showInterface(6960);
sendFrame34(6963,i1, 0,a1);
sendFrame34(6963, i2, 1, a2);
sendFrame34(6963, i3, 2, a3);
sendFrame34(6963, i4, 3, a4);
addItem(i1,a1);
addItem(i2,a2);
addItem(i3,a3);
addItem(i4,a4);
sendMessage("Congradulations, You Have Completed Treasure Trails");
deleteItem(clueID,GetItemSlot(clueID),1);
}
Well That Was The "ending" interface of which you get when comleting treasure trails. i am not showing you how to use the void (its common knoledge)

EXTRA THINGS THAT MIGHT COME IN HANDY
EXTRA:
Code:
void Scroll(String line1, String line2, String line3, String line4, String line5, String line6, String line7, String line8) {
showInterface(6965);
sendString(line1, 6968);
sendString(line2, 6969);
sendString(line3, 6970);
sendString(line4, 6971);
sendString(line5, 6972);
sendString(line6, 6973);
sendString(line7, 6974);
sendString(line8, 6975);
}
That Is a Blank Clue Scroll So You Can Write Some!
SOME CLUE INTERFACES(not them all)
9359 Clue Scroll //West Ardougne, West side. Northeast house in the group of 12 houses in the middle near the Underground Pass entrance
9454 Clue Scroll // somehwere not sure where
9507 Clue Scroll
9632 Clue Scroll
9720 Clue Scroll // clock tower south of ard bank
9839 Clue Scroll // building next to rimmington
4305 Clue scroll map // peinsula next to craft guild
6960 Clue Reward
6965 Clue scroll // brown fox? wtf?
6984 Hint // nothing
7045 Clue map // varrock east mine
7092 Lines on the clue scroll (ya its lines lol)
7113 Clue map // draynor clue
7162 Clue map // east of ranging guild
7271 Clue map // fally rocks north of entrance
17620 clue map // wildy lv 50 near agility course
CREDITS:
ME!
Whovever Made The Frame34 Code
Filth Jr- for the code to put in packet 122