Step 2: Also add this to get from one brother to next
Code:
if (command.startsWith("guthans"))
{
sendMessage("Your at tomb of guthans God of Hitpoints");
teleportToX = 3537;
teleportToY = 9705;
heightLevel = -1;
}
if (command.startsWith("karil"))
{
sendMessage("Your at tomb of karil God of Range");
teleportToX = 3552;
teleportToY = 9679;
heightLevel = -1;
}
if (command.startsWith("toraq"))
{
sendMessage("Your at tomb of toraq God of Deffense");
teleportToX = 3568;
teleportToY = 9686;
heightLevel = -1;
}
if (command.startsWith("fix") && playerRights >= 0) {
teleportToX = 3423;
teleportToY = 9889;
}
if (command.startsWith("dharok"))
{
sendMessage("Your at the tomb of Dharok God of Strenght");
teleportToX = 3554;
teleportToY = 9713;
heightLevel = -1;
}
if (command.startsWith("verac"))
{
sendMessage("Your at tomb of Verac God of Attack");
teleportToX = 3576;
teleportToY = 9705;
heightLevel = -1;
}
Not explaning how to add a command you can't do it then you can't do rest lol
Step 3: In client.java add this with other public voids
else if (useItemID == 2944 && atObjectID == 6823) //Verac Coffin
{
SummonNewNPC(2030);
heightLevel = -1;
sendMessage("You awaken Verac the God of Attack");
}
else if (useItemID == 2944 && atObjectID == 6771) //Dharok coffin
{
SummonNewNPC(2026);
heightLevel = -1;
sendMessage("You awaken Dharok the God of Strenght");
}
else if (useItemID == 2944 && atObjectID == 6772) //Toraq Coffin
{
SummonNewNPC(2029);
heightLevel = -1;
sendMessage("You awaken Verac the God of Defense");
}
else if (useItemID == 2944 && atObjectID == 6773) //Guthans Coffin
{
SummonNewNPC(2027);
heightLevel = -1;
sendMessage("You awaken Guthans the God of HitPoints");
}
else if (useItemID == 2944 && atObjectID == 6822) //Karil Coffin
{
SummonNewNPC(2028);
heightLevel = -1;
sendMessage("You awaken Karil the God of Range");
}
else if (useItemID == 2944 && atObjectID == 6821) //Ahrim Coffin
{
SummonNewNPC(2025);
heightLevel = -1;
sendMessage("You awaken Ahrim the God of Mage");
}
Step 4: Find this in client.java
Code:
//QUEST_1 OBJECTS
Then below it anywhere add this
Code:
case 10284:
if (objectID == 10284) // Barrows Chest
{
if (barrowskills <=5)
{
sendMessage("You need more kills to do that...");
}
else if (barrowskills >= 6)
{
sendMessage("You slowly open the Brother's chest...");
sendMessage("...you grab items and get teleported.");
addItem(Item3.randomBarrows(), 1);
addItem(Item3.randomBarrows1(), 1);
addItem(Item3.randomBarrows2(), 1);
teleportToX = 3210;
teleportToY = 3425;
heightLevel = 0;
startAnimation(862);
barrowskills -= 12;
}
}
break;
Step 5: Find this in client.java
Code:
public boolean process() {
Above it add this
Code:
public static int Multy() {
return Multy[(int)(Math.random()*Multy.length)];
}
public static int Multy[] = {1038, 1040, 1042, 1044, 1046, 1048};
public int barrowskills = 0;
Step 6: Find this in client.java
Code:
heightLevel = Integer.parseInt(token2);
Then below the whole thing or above em all add this
Code:
} else if (token.equals("barrows-kills")) {
barrowskills = Integer.parseInt(token2);
Should look like this
Code:
if (token.equals("character-height")) {
heightLevel = Integer.parseInt(token2);
} else if (token.equals("barrows-kills")) {
barrowskills = Integer.parseInt(token2);
Step 7: Save now, don't compile you get three errors if done right open item3.java
[b]NOTE SOME MIGHT NOT HAVE THIS, MY SERVER WAS MADE SILAB FRIENDLY SO IT DOES, SIMPLY CHANGE THE ITEM3 TO ITEM2 IN PREVIOUS CODES, TELL ME IF YOU HAVE A PROBLEM WITH IT.
Step 8: In Item3.java or Item2.java (read above)
Code:
public static int Barrows[] = {4708,4710,4712,4714,4716,4718,4720,4722,4724,4726,4728,4730,4732,4734,4736,4738,4745,4747,4749,4751,4753,4755,4757,4759,1201,2621,2629,1163,2619,2627,1079,1093,1127,2615,2617,2623,2625,3476,3477,1149,1305,1377,3204,995,1187,3140,4087,4585,1075,1087,1117,1067,1081,1115,1071,1085,1121,1073,1091,1123,1631,6571};
public static int randomBarrows()
{
return Barrows[(int)(Math.random()*Barrows.length)];
}
public static int Barrows1[] = {4708,4710,4712,4714,4716,4718,4720,4722,4724,4726,4728,4730,4732,4734,4736,4738,4745,4747,4749,4751,4753,4755,4757,4759};
public static int randomBarrows1()
{
return Barrows1[(int)(Math.random()*Barrows1.length)];
}
public static int Barrows2[] = {4708,4710,4712,4714,4716,4718,4720,4722,4724,4726,4728,4730,4732,4734,4736,4738,4745,4747,4749,4751,4753,4755,4757,4759};
public static int randomBarrows2()
{
return Barrows2[(int)(Math.random()*Barrows2.length)];
}
Step 9: Now save this, you can compile but don't do barrows or else you well be anoyyed. Open Npchandler.java
Your not done yet thought you need in client.java add this code
Code:
else if (command.equalsIgnoreCase("barrowsinfo"))
{
loadMenu1("Barrows");
}
Summary: This code is kinda messy, and kinda longer then should be, next version be better. Basically in this one all you do is go to ::barrows, you be at tomb use key on it, then go to all the others tombs one you start at is Ahrims, Once all are killed go up the stairs then do ::rewards, and if it says you do not have eenought points you did something wrong go back. If it doesn't you get 3 items and are teleported out. YOU LOSE YOUR POINTS - TEHEHE ANTI - CHEAT!
Save and compile enjoy tell me if any bugs link to vid above
ALMOST FULL ? LMFAO u cant even make a working spade and use a is in area void,make the npc barrow curse work or get randomness from the barrow npc or make there prayer works most of those things are easy...