Nathan'
June 19th, 2010, 06:14
30% credits go to soul banner. I decided to further develop the code
Difficulty : 1/10 - Copy and Paste
Files : Itemselect.java,player.java, objectoption1.java
Ok in itemselect.java
add this
public boolean veracTomb;
public boolean ahrimTomb;
public boolean karilTomb;
public boolean guthanTomb;
public boolean dharokTomb;
public boolean toragTomb;;
Then Underneath any break; add
case 952:
if(VeracTomb == true){
p.teleportTo(3571, 9705, 3, 4, 0, 831, -1, -1, 0, -1, 0); // change this your own to set coords instead to make it work :D
}
if(AhrimTomb == true){
p.teleportTo(3557, 9699, 3, 4, 0, 831, -1, -1, 0, -1, 0); // change this your own to set coords instead to make it work :D
}
if(DharokTomb == true){
p.teleportTo(3553, 9174, 3, 4, 0, 831, -1, -1, 0, -1, 0); // change this your own to set coords instead to make it work :D
}
if(GuthanTomb == true){
p.teleportTo(3535, 9705, 3, 4, 0, 831, -1, -1, 0, -1, 0); // change this your own to set coords instead to make it work :D
}
if(ToragTomb == true){
p.teleportTo(3572, 9688, 3, 4, 0, 831, -1, -1, 0, -1, 0); // change this your own to set coords instead to make it work :D
}
if(KarilTomb == true){
p.teleportTo(3553, 9684, 3, 4, 0, 831, -1, -1, 0, -1, 0); // change this your own to set coords instead to make it work :D
}
break;
^ means if you clicked on the spade ( item id 952 )
you will do the dig emote ( 831 )
and then teleport to chosen chamber
in player.java
add this
public boolean veracTomb() {
return (absX >= 3569 && absX <= 3578 && absY >= 3292 && absY <= 3302);
}
public boolean karilTomb() {
return (absX >= 3562 && absX <= 3569 && absY >= 3271 && absY <= 3280);
}
public boolean guthancTomb() {
return (absX >= 3573 && absX <= 3582 && absY >= 3279 && absY <= 3286);
}
public boolean ahrimTomb() {
return (absX >=3562 && absX <= 3569 && absY >= 3286 && absY <= 3293);
}
public boolean toragTomb() {
return (absX >= 3551 && absX <= 3557 && absY >= 3820 && absY <= 3286);
}
public boolean dharokTomb() {
return (absX >= 3571 && absX <= 3579 && absY >= 3292 && absY <= 3301);
}
Now to make the stairs work
Open ObjectOption1.java and add
//Start of barrows stairs
case 6707://verac
p.setCoords(3557, 3296, 0);
break;
case 6706://torag
p.setCoords(3554, 3283, 0);
break;
case 6705://karil
p.setCoords(3566, 3276, 0);
break;
case 6704://guthan
p.setCoords(3577, 3283, 0);
break;
case 6703://dharok
p.setCoords(3575, 3298, 0);
break;
case 6702://ahrim
p.setCoords(3565, 3289, 0);
break;
//End of barrows stairs
Also Add in ObjectOption1 this - it spawns the brothers when the coffin is clicked
//Start of barrows
case 6821://ahrim
p.getActionsender().sendMessage(p, "Ahrim appears out of the coffin!");
Server.engine.newNPC(2025, 3553, 96*** 3, 0, 0, 0, 0, false);
break;
case 6772://torag
p.getActionsender().sendMessage(p, "Torag appears out of the coffin!");
Server.engine.newNPC(2029, 3566, 9686, 3, 0, 0, 0, 0, false);
break;
case 6822://karil
p.getActionsender().sendMessage(p, "Karil appears out of the coffin!");
Server.engine.newNPC(2028, 3554, 9682, 3, 0, 0, 0, 0, false);
break;
case 6773://guthan
p.getActionsender().sendMessage(p, "Guthan appears out of the coffin!");
Server.engine.newNPC(2027, 3536, 9701, 3, 0, 0, 0, 0, false);
break;
case 6823://verac
p.getActionSender().sendMessage(p, "Verac appears out of the coffin!");
Server.engine.newNPC(2030, 3570, 9706, 3, 0, 0, 0, 0, false);
break;
case 6771://Dharok
p.getActionSender().sendMessage(p, "Verac appears out of the coffin!");
Server.engine.newNPC(2026, 3553, 9714, 3, 0, 0, 0, 0, false);
break;
Add the drops to the monsters by editing the Npcdrops.CFG file
If you want me to further continue on this tutorial please leave a comment.
Constructive feedback is crucial
Difficulty : 1/10 - Copy and Paste
Files : Itemselect.java,player.java, objectoption1.java
Ok in itemselect.java
add this
public boolean veracTomb;
public boolean ahrimTomb;
public boolean karilTomb;
public boolean guthanTomb;
public boolean dharokTomb;
public boolean toragTomb;;
Then Underneath any break; add
case 952:
if(VeracTomb == true){
p.teleportTo(3571, 9705, 3, 4, 0, 831, -1, -1, 0, -1, 0); // change this your own to set coords instead to make it work :D
}
if(AhrimTomb == true){
p.teleportTo(3557, 9699, 3, 4, 0, 831, -1, -1, 0, -1, 0); // change this your own to set coords instead to make it work :D
}
if(DharokTomb == true){
p.teleportTo(3553, 9174, 3, 4, 0, 831, -1, -1, 0, -1, 0); // change this your own to set coords instead to make it work :D
}
if(GuthanTomb == true){
p.teleportTo(3535, 9705, 3, 4, 0, 831, -1, -1, 0, -1, 0); // change this your own to set coords instead to make it work :D
}
if(ToragTomb == true){
p.teleportTo(3572, 9688, 3, 4, 0, 831, -1, -1, 0, -1, 0); // change this your own to set coords instead to make it work :D
}
if(KarilTomb == true){
p.teleportTo(3553, 9684, 3, 4, 0, 831, -1, -1, 0, -1, 0); // change this your own to set coords instead to make it work :D
}
break;
^ means if you clicked on the spade ( item id 952 )
you will do the dig emote ( 831 )
and then teleport to chosen chamber
in player.java
add this
public boolean veracTomb() {
return (absX >= 3569 && absX <= 3578 && absY >= 3292 && absY <= 3302);
}
public boolean karilTomb() {
return (absX >= 3562 && absX <= 3569 && absY >= 3271 && absY <= 3280);
}
public boolean guthancTomb() {
return (absX >= 3573 && absX <= 3582 && absY >= 3279 && absY <= 3286);
}
public boolean ahrimTomb() {
return (absX >=3562 && absX <= 3569 && absY >= 3286 && absY <= 3293);
}
public boolean toragTomb() {
return (absX >= 3551 && absX <= 3557 && absY >= 3820 && absY <= 3286);
}
public boolean dharokTomb() {
return (absX >= 3571 && absX <= 3579 && absY >= 3292 && absY <= 3301);
}
Now to make the stairs work
Open ObjectOption1.java and add
//Start of barrows stairs
case 6707://verac
p.setCoords(3557, 3296, 0);
break;
case 6706://torag
p.setCoords(3554, 3283, 0);
break;
case 6705://karil
p.setCoords(3566, 3276, 0);
break;
case 6704://guthan
p.setCoords(3577, 3283, 0);
break;
case 6703://dharok
p.setCoords(3575, 3298, 0);
break;
case 6702://ahrim
p.setCoords(3565, 3289, 0);
break;
//End of barrows stairs
Also Add in ObjectOption1 this - it spawns the brothers when the coffin is clicked
//Start of barrows
case 6821://ahrim
p.getActionsender().sendMessage(p, "Ahrim appears out of the coffin!");
Server.engine.newNPC(2025, 3553, 96*** 3, 0, 0, 0, 0, false);
break;
case 6772://torag
p.getActionsender().sendMessage(p, "Torag appears out of the coffin!");
Server.engine.newNPC(2029, 3566, 9686, 3, 0, 0, 0, 0, false);
break;
case 6822://karil
p.getActionsender().sendMessage(p, "Karil appears out of the coffin!");
Server.engine.newNPC(2028, 3554, 9682, 3, 0, 0, 0, 0, false);
break;
case 6773://guthan
p.getActionsender().sendMessage(p, "Guthan appears out of the coffin!");
Server.engine.newNPC(2027, 3536, 9701, 3, 0, 0, 0, 0, false);
break;
case 6823://verac
p.getActionSender().sendMessage(p, "Verac appears out of the coffin!");
Server.engine.newNPC(2030, 3570, 9706, 3, 0, 0, 0, 0, false);
break;
case 6771://Dharok
p.getActionSender().sendMessage(p, "Verac appears out of the coffin!");
Server.engine.newNPC(2026, 3553, 9714, 3, 0, 0, 0, 0, false);
break;
Add the drops to the monsters by editing the Npcdrops.CFG file
If you want me to further continue on this tutorial please leave a comment.
Constructive feedback is crucial