First open up your client.java, search for
CODE
public void Deleteobjects() {
Add these after the last deletethatobject.
CODE
deletethatobject(2513, 3371); //TRAINING
deletethatobject(2516, 3370); //TRAINING
deletethatobject(2514, 3369); //TRAINING
deletethatobject(2511, 3373); //TRAINING
deletethatobject(2509, 3371); //TRAINING
deletethatobject(2505, 3370); //TRAINING
deletethatobject(2507, 3370); //TRAINING
deletethatobject(2514, 3368); //TRAINING
deletethatobject(2511, 3365); //TRAINING
deletethatobject(2515, 3365); //TRAINING
deletethatobject(2514, 3367); //TRAINING
deletethatobject(2511, 3369); //TRAINING
deletethatobject(2507, 3368); //TRAINING
deletethatobject(2510, 3367); //TRAINING
deletethatobject(2508, 3366); //TRAINING
deletethatobject(2516, 3378); //TRAINING
deletethatobject(2516, 3377); //TRAINING
deletethatobject(2515, 3379); //TRAINING
deletethatobject(2517, 3379); //TRAINING
Now go find your commands, add this one
CODE
else if (command.equalsIgnoreCase("training"))
{
teleportToX = 2517;
teleportToY = 3359;
heightLevel = 0;
HelpMenu();
sendMessage("Type ::trainhelp for this menu again");
}
change command name to w/e you wish it to be.
Now open up autospawn.cfg..
add this at the end
CODE
//Training//
spawn = 110 2517 3377 0 0 0 0 0 1 Fire giant
spawn = 110 2515 3371 0 0 0 0 0 1 Fire giant
spawn = 110 2510 3374 0 0 0 0 0 1 Fire giant
spawn = 110 2508 3377 0 0 0 0 0 1 Fire giant
spawn = 110 2506 3371 0 0 0 0 0 1 Fire giant
Now open up your client.java again
Find case 75, replace with this:
CODE
case 75:
if (playerHasItem(4273) == true){
deleteItem(4273, getItemSlot(4273), 3);
addItem(962, 1);
sendMessage("The key's vanish...");
sendMessage("Congrats on the reward!");
} else {
sendMessage("You need 3 keys to claim a reward!");
}
Search for FishingHelpMenu under the last } add
CODE
public void HelpMenu()
{
sendQuest("@dre@Training Area Help Menu", 8144); //Title
clearQuestInterface();
sendQuest("@dre@First kill the Fire giants for a key", 8145);
sendQuest("@dbl@Once you have 3 of the keys use@dbl@", 8148);
sendQuest("@dbl@them on one of the chests@dbl@", 8149);
sendQuest("@dbl@They will be deleted from your inventory@dbl@", 8150);
sendQuest("@dbl@You should now get a reward!!!@dbl@", 8151);
sendQuest("@dbl@Code Created by bobibob@dbl@", 8153);
sendQuestSomething(8143);
showInterface(8134);
flushOutStream();
}
Now search for rules until you find this
CODE
else if (command.equalsIgnoreCase("rules"))
{
menuMaker("@blu@rules", "rules");
now above/below it put
CODE
else if (command.equalsIgnoreCase("trainhelp"))
{
HelpMenu();
}
now, its time to get into the better part of this code.
Open up npchandler.java
search for "abyssal"
add this UNDER it
CODE
if(npcs[NPCID].npcType == 110) {
ItemHandler.addItem(Item2.randomFg(), npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
}
now open up item2.java, search abyssal, and add this under it
CODE
public static int Fg[] = {7158,7158,7158,7158,7158,7158,7158,7158,7158,7158,7158,
7158,7158,6740,6740,6740,6740,6740,6740,6740,6740,6740,6740,6740,6740,6740,4087,
4087,4087,4087,4087,4087,4273,4273
,4273,4273,995,995,995,995,995,995,995,995,995,995,4273,4273};
public static int randomFg()
{
return Fg[(int)(Math.random()*Fg.length)];
}
Now to get down to the making of global objects.
Search for
CODE
public void OBJECTS()
Add these
CODE
makeGlobalObject(2512,3363,75,0,10,0);// Chest
makeGlobalObject(2511,3363,75,0,10,0);// Chest
makeGlobalObjec(2510,3363,75,0,10,0);// Chest
i
enjoy smile.gif) pm dont add the CODE to the source thats just pointing out its the code