difficulty: 2/10
reason: because some people are just plain retarded.
step 1: spawn these.
you might want to delete your previous jad. or keep him there for a backup =)
this code spawns all the npc's for the wavesPHP Code:spawn = 2745 2403 5090 0 3577 3300 3573 3296 2 Tzok Jad
spawn = 2630 2406 5084 4 3577 3300 3573 3296 2 Tz kek
spawn = 2597 2400 5080 8 3577 3300 3573 3296 2 Tzhaar mej
spawn = 2740 2403 5085 12 3577 3300 3573 3296 2 Tzhaar xil
spawn = 2591 2403 5085 16 3577 3300 3573 3296 2
spawn = 2598 2403 5085 20 3577 3300 3573 3296 2
spawn = 2610 2403 5085 24 3577 3300 3573 3296 2
spawn = 2627 2403 5085 28 3577 3300 3573 3296 2
spawn = 2631 2403 5085 32 3577 3300 3573 3296 2
spawn = 2604 2403 5085 36 3577 3300 3573 3296 2
spawn = 2605 2405 5088 36 3577 3300 3573 3296 2
save and close.
step 2: go to client.Java and replace your entire jad command with this:
the new jad command makes it where when you tele you start on the 4th height level.PHP Code:else if (command.equalsIgnoreCase("jad")) {
if (teleblock == true) {
sendMessage("A magical force stops you from teleporting.");
} else {
teleportToX = 2396;
teleportToY = 5093;
heightLevel = 4;
sendMessage("Pass through each wave to get a firecape!");
sendMessage("DONT LEAVE UNLESS U FINISH OR DIE!");
sendMessage("OR ELSE U WONT B ABLE TO SEE ANYONE OR TALK TO ANYONE!");
}
}
take note of the "sendMessage"'s - you might want to make a ::ground command that makes your height level = 0 just incase some people ignore the warnings.
save and close.
step 3:
add this to your NPChandler
that peice of coding makes it teleport you to the next wave when you kill the monster on the wave you are onPHP Code:if(npcs[NPCID].npcType == 2630) {
int Player = npcs[NPCID].StartKilling;
client ppl = (client) server.playerHandler.players[Player];
ppl.sendMessage("Good Job!, You can move on to wave 2 now!");
ppl.teleportToX = 2396;
ppl.teleportToY = 5093;
ppl.heightLevel = 8;
break;
}
if(npcs[NPCID].npcType == 2597) {
int Player = npcs[NPCID].StartKilling;
client ppl = (client) server.playerHandler.players[Player];
ppl.sendMessage("Good Job!, You can move on to wave 3 now!");
ppl.teleportToX = 2396;
ppl.teleportToY = 5093;
ppl.heightLevel = 12;
break;
}
if(npcs[NPCID].npcType == 2740) {
int Player = npcs[NPCID].StartKilling;
client ppl = (client) server.playerHandler.players[Player];
ppl.sendMessage("Good Job!, You can move on to wave 4 now!");
ppl.teleportToX = 2396;
ppl.teleportToY = 5093;
ppl.heightLevel = 16;
break;
}
if(npcs[NPCID].npcType == 2591) {
int Player = npcs[NPCID].StartKilling;
client ppl = (client) server.playerHandler.players[Player];
ppl.sendMessage("Good Job!, You can move on to wave 5 now!");
ppl.teleportToX = 2396;
ppl.teleportToY = 5093;
ppl.heightLevel = 20;
break;
}
if(npcs[NPCID].npcType == 2598) {
int Player = npcs[NPCID].StartKilling;
client ppl = (client) server.playerHandler.players[Player];
ppl.sendMessage("Good Job!, You can move on to wave 6 now!");
ppl.teleportToX = 2396;
ppl.teleportToY = 5093;
ppl.heightLevel = 24;
break;
}
if(npcs[NPCID].npcType == 2610) {
int Player = npcs[NPCID].StartKilling;
client ppl = (client) server.playerHandler.players[Player];
ppl.sendMessage("Good Job!, You can move on to wave 7 now!");
ppl.teleportToX = 2396;
ppl.teleportToY = 5093;;
ppl.heightLevel = 28;
break;
}
if(npcs[NPCID].npcType == 2627) {
int Player = npcs[NPCID].StartKilling;
client ppl = (client) server.playerHandler.players[Player];
ppl.sendMessage("Good Job!, You can move on to wave 8 now!");
ppl.teleportToX = 2396;
ppl.teleportToY = 5093;
ppl.heightLevel = 32;
break;
}
if(npcs[NPCID].npcType == 2631) {
int Player = npcs[NPCID].StartKilling;
client ppl = (client) server.playerHandler.players[Player];
ppl.sendMessage("Good Job!, You can move on to wave 9 now!");
ppl.teleportToX = 2396;
ppl.teleportToY = 5093;
ppl.heightLevel = 36;
break;
}
if(npcs[NPCID].npcType == 2605) {
int Player = npcs[NPCID].StartKilling;
client ppl = (client) server.playerHandler.players[Player];
ppl.sendMessage("Good Job!, You can move on to the TzTok-Jad now!");
ppl.teleportToX = 2396;
ppl.teleportToY = 5093;
ppl.heightLevel = 0;
break;
}
if(npcs[NPCID].npcType == 2745) {
int Player = npcs[NPCID].StartKilling;
client ppl = (client) server.playerHandler.players[Player];
ppl.sendMessage("Good Job!, The Jad Is Dead!");
ppl.sendFrame200(4883, 591);
ppl.sendFrame126("TzHaar-Mej-Kah", 4884);
ppl.sendFrame126("Well Down, You have defeated the TzTok-Jad", 4885);
ppl.sendFrame126("Click here to continue", 4886);
ppl.teleportToX = 2438;
ppl.teleportToY = 5168;
ppl.sendFrame75(2618, 4883);
ppl.sendFrame164(4882);
ppl.NpcDialogueSend = true;
ppl.addItem(6570, 1);
}
step 4: Compile and Run.
post any errors and i will try to help you.
Add Me For Help : Abzscape@hotmail.co.uk




Reply With Quote![[Tut] jad Minigame With 10 Levels!](http://ragezone.com/hyper728.png)


