Do you guys mind helping me fix this npc please or shorten it! Very much appreciated! :3
It's kind of messy so you can flame all you want but either than that please help me! (:
PHP Code:var text = "Hey Quick Pick One Before I Shoot You!";
var amount = 9;
var status;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == 1)
status++;
else {
cm.sendOk("#e#kOk, see you next time!");
cm.dispose();
return;
}
if (cm.getPlayer().getReborns() <= 9) {
}
if (status == 12) {
cm.sendNext("Hello #hI am the Boot camp instructor of Servername, pick a boss to spawn NOW!!");
}
else if (status == 0) {
cm.sendSimple("Hello #h # I am the Boot camp instructor of Servername. I will spawn 5 mobs at a time.\r\nPick one to spawn.\r\n#b#L0#Snail\r\n#L1#Tiguru\r\n#L2#Pixie\r\n#L3#Desert Rabbit (M)\r\n#L4#Desert Rabbith (F)\r\n#L5#Kill All Monsters");
}
else if (status == 1 && cm.getPlayer().getMap().getMonsterCount() > 0 && selection <= 7) {
cm.sendOk("Sorry there are already monsters spawned in this map.");
cm.dispose();
}// wtf are you doing o-o
else if (status == 1) {
//if (cm.getPlayer().getMap().getMonsterCount() == 0) {
if (selection == 0) {
if (cm.getPlayer().getReborns()<= 9) {
cm.summonMob(100100, 850, 1000, 10);
if (cm.getPlayer().getReborns()>= 10) {
cm.sendnext("You have over 10 reborns so you may not use this sorry!");
cm.dispose();
}
}
}
else if (selection == 1) {
if (cm.getPlayer().getReborns()<= 9) {
cm.summonMob(100124, 850, 100000, 10);
if (cm.getPlayer().getReborns()>= 10) {
cm.sendsimple("You have over 10 reborns so you may not use this sorry!");
cm.dispose();
}
}
}
else if (selection == 2) {
if (cm.getPlayer().getReborns()<= 9) {
cm.summonMob(5120000, 850, 100000, 10);
if (cm.getPlayer().getReborns()>= 10) {
cm.sendsimple("You have over 10 reborns so you may not use this sorry!");
cm.dispose();
}
}
}
else if (selection == 3) {
if (cm.getPlayer().getReborns()<= 9) {
cm.summonMob(2100101, 850, 100000, 10);
if (cm.getPlayer().getReborns()>= 10) {
cm.sendOk("You have over 10 reborns so you may not use this sorry!");
cm.dispose();
}
}
}
else if (selection == 4) {
if (cm.getPlayer().getReborns()<= 9) {
cm.summonMob(2100100, 850, 100000, 10);
if (cm.getPlayer().getReborns()>= 10) {
cm.sendOk("You have over 10 reborns so you may not use this sorry!");
cm.dispose();
}
}
}
else if (selection == 5) {
cm.killallMonsters();
cm.dispose();
}
}
}
//}



Reply With Quote


