- Joined
- May 5, 2008
- Messages
- 352
- Reaction score
- 0
Boss Spawner NPC
This ask for 3mil to summon a boss of his/her choice! (Edit if needed)
CREDITS TO nejevoli, Idk if hes still around but yeah he made this
Don't hate if something similar was released, I just found it in my old server's source and decided to share it!
Also if it doesn't work don't hate just report the problem here
CREDITS TO nejevoli, Idk if hes still around but yeah he made this
Code:
/*
boss summoner npc */
var status = -1;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.sendOk("Are you sure? Scaredy cat :<");
cm.dispose();
} else {
if (mode == 1) {
status++;
} else {
status--;
}
if (status == 0) {
cm.sendSimple("Hello #h # ! I am the boss summoner NPC of Server! Each boss monster that i summon would cost you 3mil mesos because they have more Exp and lesser HP! Would you like to pay me some mesos to spawn some #e Special Boss Monsters #n for you? \r\n Please choose #b\r\n#L1#Papu clock#l\r\n#L2#Pianus#l\r\n#L3#BlackCrow#l\r\n#L4#Anego#l\r\n#L5#BodyGuard A#l\r\n#L6#Bodyguard B#l\r\n#L7#TheBoss!#l#k");
} else {
if (selection == 1) {
if (cm.getMeso() < 3000000) {
cm.sendOk("You do not have enough mesos.");
cm.dispose();
return;
} else {
cm.gainMeso(-3000000);
cm.spawnMonster(8500001, 20000000, 2000000, 125, 700000, 1, 0, 1, 430, 238);
cm.dispose();
}
} else if (selection == 2) {
if (cm.getMeso() < 3000000) {
cm.sendOk("You do not have enough mesos.");
cm.dispose();
return;
} else {
cm.gainMeso(-3000000);
cm.spawnMonster(8510000, 24000000, 3000000, 110, 1500000, 1, 0, 1, 827, 238);
cm.dispose();
}
} else if (selection == 3) {
if (cm.getMeso() < 3000000) {
cm.sendOk("You do not have enough mesos.");
cm.dispose();
return;
} else {
cm.gainMeso(-3000000);
cm.spawnMonster(9400014, 30000000, 10000000, 115, 2000000, 1, 0, 1, 430, 238);
cm.dispose();
}
} else if (selection == 4) {
if (cm.getMeso() < 3000000) {
cm.sendOk("You do not have enough mesos.");
cm.dispose();
return;
} else {
cm.gainMeso(-3000000);
cm.spawnMonster(9400121, 70000000, 10000, 130, 4500000, 1, 0, 1, 430, 238);
cm.dispose();
}
} else if (selection == 5) {
if (cm.getMeso() < 3000000) {
cm.sendOk("You do not have enough mesos.");
cm.dispose();
return;
} else {
cm.gainMeso(-3000000);
cm.spawnMonster(9400112, 350000000, 5000, 152, 15000000, 1, 0, 1, 430, 238);
cm.dispose();
}
} else if (selection == 6) {
if (cm.getMeso() < 3000000) {
cm.sendOk("You do not have enough mesos.");
cm.dispose();
return;
} else {
cm.gainMeso(-3000000);
cm.spawnMonster(9400113, 450000000, 50000, 160, 15000000, 1, 0, 1, 430, 238);
cm.dispose();
}
} else if (selection == 7) {
if (cm.getMeso() < 3000000) {
cm.sendOk("You do not have enough mesos.");
cm.dispose();
return;
} else {
cm.gainMeso(-3000000);
cm.spawnMonster(9400300, 123000000, 10000, 175, 20000000, 1, 0, 1, 430, 238);
cm.dispose();
}
} else {
cm.dispose();
}
}
}
}
Don't hate if something similar was released, I just found it in my old server's source and decided to share it!
Also if it doesn't work don't hate just report the problem here
Steps: Don't bother if u don't know