gtfo my waffle
July 28th, 2011, 21:02
first go into world.java and add these if ur source doesnt have em
public static World getWorld() {
return instance;
}
public EntityList<NPC> getNpcs() {
return npcs;
}
now go into player.java and add these ints
public int torag = 0;
public int ahrim = 0;
public int dh = 0;
public int verac = 0;
public int karil = 0;
public int guthan = 0;
public int torag2 = 0;
public int ahrim2 = 0;
public int dh2 = 0;
public int verac2 = 0;
public int karil2 = 0;
public int guthan2 = 0;
public int barrows = 0;
public boolean dharokhill(){
if(getLocation().getX() >= 3573 && getLocation().getY() >= 3295 && getLocation().getX() <= 3578 && getLocation().getY() <= 3302)
return true;
else
return false;
}
public boolean ahrimhill(){
if(getLocation().getX() >= 3563 && getLocation().getY() >= 3287 && getLocation().getX() <= 3567 && getLocation().getY() <= 3291)
return true;
else
return false;
}
public boolean karilhill(){
if(getLocation().getX() >= 3563 && getLocation().getY() >= 3274 && getLocation().getX() <= 3567 && getLocation().getY() <= 3278)
return true;
else
return false;
}
public boolean guthanhill(){
if(getLocation().getX() >= 3575 && getLocation().getY() >= 3281 && getLocation().getX() <= 3580 && getLocation().getY() <= 3285)
return true;
else
return false;
}
public boolean toraghill(){
if(getLocation().getX() >= 3551 && getLocation().getY() >= 3280 && getLocation().getX() <= 3556 && getLocation().getY() <= 3285)
return true;
else
return false;
}
public boolean verachill(){
if(getLocation().getX() >= 3554 && getLocation().getY() >= 3295 && getLocation().getX() <= 3560 && getLocation().getY() <= 3300)
return true;
else
return false;
}
and add this
if(dh == 1 && karil == 1 && torag == 1 && guthan == 1 && ahrim == 1 && verac == 1 && barrows == 0) {
barrows = 1;
this.teleport(Location.location(3551, 9694, 0));
actionSender.sendMessage("You teleport to the chest room to claim your reward!");
}
now goto object1packethandler.java and search for this
public class Object1PacketHandler implements PacketHandler {
Now add this under it
public static int junk1[] = { 4740, 558, 562, 560, 565 };
public static int junk1() {
return junk1[(int) (Math.random() * junk1.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, 7462 };
public static int barrows1() {
return barrows1[(int) (Math.random() * barrows1.length)];
}
and after any break add this
case 10284://chest
if (player.barrows == 0) {
player.getActionSender().sendMessage("You didn kill all barrows yet!");
return;
}
player.getInventory().addItem(barrows1(), 1);
player.getInventory().addItem(junk1(),Misc.random( 4));
player.ahrim = 0;
player.dh = 0;
player.guthan = 0;
player.karil = 0;
player.torag = 0;
player.verac = 0;
player.barrows = 0;
player.ahrim2 = 0;
player.guthan2 = 0;
player.dh2 = 0;
player.verac2 = 0;
player.karil2 = 0;
player.torag2 = 0;
break;
case 6771: //dh
if(player.dh == 1) {
player.sm("You have already killed him");
return;
}
if (player.dh == 0 && player.dh2 == 0) {
NPC npc = new NPC(2026);
npc.readResolve();
npc.setLocation(player.getLocation());
World.getWorld().getNpcs().add(npc);
player.dh2 = 1;
player.getActionSender().sendMessage("You search the sarcophagus...");
player.getActionSender().sendMessage("... And the spirit of dharok appears!");
npc.forceChat("You Dare Disturb My Eternal Rest!");
}
break;
case 6773: //guthan
if(player.guthan == 1) {
player.sm("You have already killed him");
return;
}
if (player.guthan == 0 && player.guthan2 == 0) {
NPC npc = new NPC(2027);
npc.readResolve();
npc.setLocation(player.getLocation());
World.getWorld().getNpcs().add(npc);
player.guthan2 = 1;
player.getActionSender().sendMessage("You search the sarcophagus...");
player.getActionSender().sendMessage("... And the spirit of guthan appears!");
npc.forceChat("You Dare Disturb My Eternal Rest!");
}
break;
case 6772: //torag
if(player.torag == 1) {
player.sm("You have already killed him");
return;
}
if (player.torag == 0 && player.torag2 == 0) {
NPC npc = new NPC(2029);
npc.readResolve();
npc.setLocation(player.getLocation());
World.getWorld().getNpcs().add(npc);
player.torag2 = 1;
player.getActionSender().sendMessage("You search the sarcophagus...");
player.getActionSender().sendMessage("... And the spirit of torag appears!");
npc.forceChat("You Dare Disturb My Eternal Rest!");
}
break;
case 6823: //verac
if(player.verac == 1) {
player.sm("You have already killed him");
return;
}
if (player.verac == 0 && player.verac2 == 0) {
NPC npc = new NPC(2030);
npc.readResolve();
npc.setLocation(player.getLocation());
World.getWorld().getNpcs().add(npc);
player.verac2 = 1;
player.getActionSender().sendMessage("You search the sarcophagus...");
player.getActionSender().sendMessage("... And the spirit of verac appears!");
npc.forceChat("You Dare Disturb My Eternal Rest!");
}
break;
case 6822: //karil
if(player.karil == 1) {
player.sm("You have already killed him");
return;
}
if (player.karil == 0 && player.karil2 == 0) {
NPC npc = new NPC(2028);
npc.readResolve();
npc.setLocation(player.getLocation());
World.getWorld().getNpcs().add(npc);
player.karil2 = 1;
player.getActionSender().sendMessage("You search the sarcophagus...");
player.getActionSender().sendMessage("... And the spirit of karil appears!");
npc.forceChat("You Dare Disturb My Eternal Rest!");
}
break;
case 6821: // ahrim
if(player.ahrim == 1) {
player.sm("You have already killed him");
return;
}
if (player.ahrim == 0 && player.ahrim2 == 0) {
NPC npc = new NPC(2025);
npc.readResolve();
npc.setLocation(player.getLocation());
World.getWorld().getNpcs().add(npc);
player.ahrim2 = 1;
player.getActionSender().sendMessage("You search the sarcophagus...");
player.getActionSender().sendMessage("... And the spirit of ahrim appears!");
npc.forceChat("You Dare Disturb My Eternal Rest!");
}
break;
case 6702://barrows: ahrim
player.tele(3565, 3289 , 0);
break;
case 6703://barrows: dharok
player.tele(3575, 3298 , 0);
break;
case 6704://barrows: guthan
player.tele(3577, 3282 , 0);
break;
case 6705://barrows: karil
player.tele(3566, 3276 , 0);
break;
case 6706://barrows: torag
player.tele(3553, 3282 , 0);
break;
case 6707://barrows: verac
player.tele(3557, 3297 , 0);
break;
now to make the spade work go into itempackethandler.java and add this
case 952://Spade
player.animate(830, 1);
player.sm("You start digging...");
if(player.dharokhill()) {
player.sm("You've broken into a crypt!");
player.tele(3556, 9718, 3);
} else if(player.ahrimhill()) {
player.sm("You've broken into a crypt!");
player.tele(3557, 9703, 3);
} else if(player.guthanhill()) {
player.sm("You've broken into a crypt!");
player.tele(3534, 9704, 3);
} else if(player.karilhill()) {
player.sm("You've broken into a crypt!");
player.tele(3546, 9684, 3);
} else if(player.toraghill()) {
player.sm("You've broken into a crypt!");
player.tele(3568, 9683, 3);
} else if(player.verachill()) {
player.sm("You've broken into a crypt!");
player.tele(3578, 9706, 3);
} else {
player.animate(830, 1);
player.sm("And find nothing.......");
}
break;
now go into npc.java and search for
public void npcDiedBones(Player p, int npcID) {
switch(npcID) {
under it add this
case 2029: //Torag's
p.torag = 1;
p.sm("You killed Torag the Corrupted.");
break;
case 2026: //dhorak
p.dh = 1;
p.sm("You killed Dharok the Wretched.");
break;
case 2027: //guthans
p.guthan = 1;
p.sm("You killed Guthan the Infested.");
break;
case 2028: //karil
p.karil = 1;
p.sm("You killed Karil the Tainted.");
break;
case 2025: //ahrim
p.ahrim = 1;
p.sm("You killed Ahrim the Blighted.");
break;
case 2030: //verac
p.verac = 1;
p.sm("You killed the Verac the Defiled.");
break;
i think thats it if there is anything missing plz tell me and ill add it :S
public static World getWorld() {
return instance;
}
public EntityList<NPC> getNpcs() {
return npcs;
}
now go into player.java and add these ints
public int torag = 0;
public int ahrim = 0;
public int dh = 0;
public int verac = 0;
public int karil = 0;
public int guthan = 0;
public int torag2 = 0;
public int ahrim2 = 0;
public int dh2 = 0;
public int verac2 = 0;
public int karil2 = 0;
public int guthan2 = 0;
public int barrows = 0;
public boolean dharokhill(){
if(getLocation().getX() >= 3573 && getLocation().getY() >= 3295 && getLocation().getX() <= 3578 && getLocation().getY() <= 3302)
return true;
else
return false;
}
public boolean ahrimhill(){
if(getLocation().getX() >= 3563 && getLocation().getY() >= 3287 && getLocation().getX() <= 3567 && getLocation().getY() <= 3291)
return true;
else
return false;
}
public boolean karilhill(){
if(getLocation().getX() >= 3563 && getLocation().getY() >= 3274 && getLocation().getX() <= 3567 && getLocation().getY() <= 3278)
return true;
else
return false;
}
public boolean guthanhill(){
if(getLocation().getX() >= 3575 && getLocation().getY() >= 3281 && getLocation().getX() <= 3580 && getLocation().getY() <= 3285)
return true;
else
return false;
}
public boolean toraghill(){
if(getLocation().getX() >= 3551 && getLocation().getY() >= 3280 && getLocation().getX() <= 3556 && getLocation().getY() <= 3285)
return true;
else
return false;
}
public boolean verachill(){
if(getLocation().getX() >= 3554 && getLocation().getY() >= 3295 && getLocation().getX() <= 3560 && getLocation().getY() <= 3300)
return true;
else
return false;
}
and add this
if(dh == 1 && karil == 1 && torag == 1 && guthan == 1 && ahrim == 1 && verac == 1 && barrows == 0) {
barrows = 1;
this.teleport(Location.location(3551, 9694, 0));
actionSender.sendMessage("You teleport to the chest room to claim your reward!");
}
now goto object1packethandler.java and search for this
public class Object1PacketHandler implements PacketHandler {
Now add this under it
public static int junk1[] = { 4740, 558, 562, 560, 565 };
public static int junk1() {
return junk1[(int) (Math.random() * junk1.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, 7462 };
public static int barrows1() {
return barrows1[(int) (Math.random() * barrows1.length)];
}
and after any break add this
case 10284://chest
if (player.barrows == 0) {
player.getActionSender().sendMessage("You didn kill all barrows yet!");
return;
}
player.getInventory().addItem(barrows1(), 1);
player.getInventory().addItem(junk1(),Misc.random( 4));
player.ahrim = 0;
player.dh = 0;
player.guthan = 0;
player.karil = 0;
player.torag = 0;
player.verac = 0;
player.barrows = 0;
player.ahrim2 = 0;
player.guthan2 = 0;
player.dh2 = 0;
player.verac2 = 0;
player.karil2 = 0;
player.torag2 = 0;
break;
case 6771: //dh
if(player.dh == 1) {
player.sm("You have already killed him");
return;
}
if (player.dh == 0 && player.dh2 == 0) {
NPC npc = new NPC(2026);
npc.readResolve();
npc.setLocation(player.getLocation());
World.getWorld().getNpcs().add(npc);
player.dh2 = 1;
player.getActionSender().sendMessage("You search the sarcophagus...");
player.getActionSender().sendMessage("... And the spirit of dharok appears!");
npc.forceChat("You Dare Disturb My Eternal Rest!");
}
break;
case 6773: //guthan
if(player.guthan == 1) {
player.sm("You have already killed him");
return;
}
if (player.guthan == 0 && player.guthan2 == 0) {
NPC npc = new NPC(2027);
npc.readResolve();
npc.setLocation(player.getLocation());
World.getWorld().getNpcs().add(npc);
player.guthan2 = 1;
player.getActionSender().sendMessage("You search the sarcophagus...");
player.getActionSender().sendMessage("... And the spirit of guthan appears!");
npc.forceChat("You Dare Disturb My Eternal Rest!");
}
break;
case 6772: //torag
if(player.torag == 1) {
player.sm("You have already killed him");
return;
}
if (player.torag == 0 && player.torag2 == 0) {
NPC npc = new NPC(2029);
npc.readResolve();
npc.setLocation(player.getLocation());
World.getWorld().getNpcs().add(npc);
player.torag2 = 1;
player.getActionSender().sendMessage("You search the sarcophagus...");
player.getActionSender().sendMessage("... And the spirit of torag appears!");
npc.forceChat("You Dare Disturb My Eternal Rest!");
}
break;
case 6823: //verac
if(player.verac == 1) {
player.sm("You have already killed him");
return;
}
if (player.verac == 0 && player.verac2 == 0) {
NPC npc = new NPC(2030);
npc.readResolve();
npc.setLocation(player.getLocation());
World.getWorld().getNpcs().add(npc);
player.verac2 = 1;
player.getActionSender().sendMessage("You search the sarcophagus...");
player.getActionSender().sendMessage("... And the spirit of verac appears!");
npc.forceChat("You Dare Disturb My Eternal Rest!");
}
break;
case 6822: //karil
if(player.karil == 1) {
player.sm("You have already killed him");
return;
}
if (player.karil == 0 && player.karil2 == 0) {
NPC npc = new NPC(2028);
npc.readResolve();
npc.setLocation(player.getLocation());
World.getWorld().getNpcs().add(npc);
player.karil2 = 1;
player.getActionSender().sendMessage("You search the sarcophagus...");
player.getActionSender().sendMessage("... And the spirit of karil appears!");
npc.forceChat("You Dare Disturb My Eternal Rest!");
}
break;
case 6821: // ahrim
if(player.ahrim == 1) {
player.sm("You have already killed him");
return;
}
if (player.ahrim == 0 && player.ahrim2 == 0) {
NPC npc = new NPC(2025);
npc.readResolve();
npc.setLocation(player.getLocation());
World.getWorld().getNpcs().add(npc);
player.ahrim2 = 1;
player.getActionSender().sendMessage("You search the sarcophagus...");
player.getActionSender().sendMessage("... And the spirit of ahrim appears!");
npc.forceChat("You Dare Disturb My Eternal Rest!");
}
break;
case 6702://barrows: ahrim
player.tele(3565, 3289 , 0);
break;
case 6703://barrows: dharok
player.tele(3575, 3298 , 0);
break;
case 6704://barrows: guthan
player.tele(3577, 3282 , 0);
break;
case 6705://barrows: karil
player.tele(3566, 3276 , 0);
break;
case 6706://barrows: torag
player.tele(3553, 3282 , 0);
break;
case 6707://barrows: verac
player.tele(3557, 3297 , 0);
break;
now to make the spade work go into itempackethandler.java and add this
case 952://Spade
player.animate(830, 1);
player.sm("You start digging...");
if(player.dharokhill()) {
player.sm("You've broken into a crypt!");
player.tele(3556, 9718, 3);
} else if(player.ahrimhill()) {
player.sm("You've broken into a crypt!");
player.tele(3557, 9703, 3);
} else if(player.guthanhill()) {
player.sm("You've broken into a crypt!");
player.tele(3534, 9704, 3);
} else if(player.karilhill()) {
player.sm("You've broken into a crypt!");
player.tele(3546, 9684, 3);
} else if(player.toraghill()) {
player.sm("You've broken into a crypt!");
player.tele(3568, 9683, 3);
} else if(player.verachill()) {
player.sm("You've broken into a crypt!");
player.tele(3578, 9706, 3);
} else {
player.animate(830, 1);
player.sm("And find nothing.......");
}
break;
now go into npc.java and search for
public void npcDiedBones(Player p, int npcID) {
switch(npcID) {
under it add this
case 2029: //Torag's
p.torag = 1;
p.sm("You killed Torag the Corrupted.");
break;
case 2026: //dhorak
p.dh = 1;
p.sm("You killed Dharok the Wretched.");
break;
case 2027: //guthans
p.guthan = 1;
p.sm("You killed Guthan the Infested.");
break;
case 2028: //karil
p.karil = 1;
p.sm("You killed Karil the Tainted.");
break;
case 2025: //ahrim
p.ahrim = 1;
p.sm("You killed Ahrim the Blighted.");
break;
case 2030: //verac
p.verac = 1;
p.sm("You killed the Verac the Defiled.");
break;
i think thats it if there is anything missing plz tell me and ill add it :S