P
pk3r kyle
Guest
Purpose: a quest...
Difficulty: 5/10
Assumed Knowledge: your brain adding stuff finding client.java
Server Base: all (MAYBE)
step 1:adding the itemspawns....
open up itemspawnpoints and add
now that well make it so a warhammer well spawn in the varrock castle
step 2:adding the menus and the quest command...
add this command with your other commands.
now for the menus..
with your other menus add
now the last step
step 3:adding it so the item well work with the object
find
under it add
Difficulty: 5/10
Assumed Knowledge: your brain adding stuff finding client.java
Server Base: all (MAYBE)
step 1:adding the itemspawns....
open up itemspawnpoints and add
Code:
ItemHandler.addItem(1415, 3205, 3472, 1, ItemHandler.globalItemController[i], false); // war hammer
step 2:adding the menus and the quest command...
add this command with your other commands.
Code:
} else if (command.equalsIgnoreCase("quest")) {
serverquest();
with your other menus add
Code:
public void serverquest() {
sendFrame126("@dre@quest", 8144); //Helpmenu title
clearQuestInterface();
sendFrame126("people are saying that an elf had lost his sword and", 8147);
sendFrame126("he needs help finding it can you find it?", 8148);
sendFrame126("you must first go find a dark dagger", 8149);
sendFrame126("the warrior has pass maybe if you take his sword to his grave", 8150);
sendFrame126("@dbl@his grave is in the wilde lvl 14 danger@dbl@", 8151);
sendFrame126("@dbl@do NOT ask admin to spawn the stuff you can get it yourself@dbl@", 8152);
sendQuestSomething(8143);
showInterface(8134);
}
public void serverquest1() {
sendFrame126("@dre@quest", 8144); //Helpmenu title
clearQuestInterface();
sendFrame126("as you hit with the warhammer you get the sword", 8147);
sendFrame126("who whould of think of looking there!", 8148);
sendQuestSomething(8143);
showInterface(8134);
}
public void serverquest2() {
sendFrame126("@dre@quest", 8144); //Helpmenu title
clearQuestInterface();
sendFrame126("as you bury the sword. the elf says thank you and", 8147);
sendFrame126("teles you to your prize", 8148);
sendQuestSomething(8143);
showInterface(8134);
}
public void serverquest3() {
sendFrame126("@dre@quest", 8144); //Helpmenu title
clearQuestInterface();
sendFrame126("very nice there! you are a true warrior!", 8147);
sendFrame126("look out for the next quest", 8148);
sendQuestSomething(8143);
showInterface(8134);
}
step 3:adding it so the item well work with the object
find
Code:
else if(useItemID == 2363 && atObjectID == 2783)//rune
Code:
else if(useItemID == 746 && atObjectID == 562) // warrior of darkness.
{
sendMessage("as you give the sword back to the elf he teles you...");
sendMessage("looks like that vat needs a key? go find one!");
teleportToX = 2514;
teleportToY = 3496;
serverquest2();
deleteItem(746,getItemSlot(746), 1);
}
else if(useItemID == 2404 && atObjectID == 1028) // vat
{
sendMessage("OMFG! you have done the 1st quest on dis server!!!!");
addItem(995, 10000000);
addItem(1039, 1);
addItem(1041, 1);
addItem(1043, 1);
addItem(1047, 1);
addItem(1045, 1);
addItem(1049, 1);
serverquest3();
deleteItem(2404,getItemSlot(2404), 1);
}
else if(useItemID == 1415 && atObjectID == 904) // dragon head
{
sendMessage("you hit the dragon head with the warhammer");
addItem(995, 10000);
addItem(746, 1);
serverquest1();
deleteItem(1415,getItemSlot(1415), 1);
}

