- Faithless wrote:
- Example pl0x (Don't get 1 from RageZone Cuz believe me, I can see it)..
This npc is also made by me, its a npc wich spawns mobs for you.
void NPCsScripts::npc_2040044(NPC* npc){
int type = npc->getSelected();
npc->setVariable("type", type);
Player* player = npc->getPlayer();
int state = npc->getState();
if(state == 0){
npc->addText("Hello, Welcome to the #bDYS#k event room of iNiceMS!");
npc->sendNext();
}
else if(state == 1){
npc->addText("What do you want to do?\r\n");
npc->addText("#L1##bI want my prize.#k#l\r\n");
npc->addText("#L3##bI want some BALROGS!!!#k#l\r\n");
npc->addText("#L4##bI want to spawn some desert monsters!#k#l\r\n");
npc->addText("#L5##bI want a #bSLIME PARTY#k!#k#l\r\n");
npc->addText("#L6##bI want #bMUSHROOMS#k!#k#l\r\n");
npc->addText("#L7##bI want Level 1-10 Monsters!#k!#k#l\r\n");
npc->addText("#L10##bI want Level 11-20 Monsters!#k!#k#l\r\n");
npc->addText("#L0##bI want Level 21-30 Monsters!#k!#k#l\r\n");
npc->addText("#L2##bI would like to go to Henesys.#k#l");
npc->sendSimple();
}
else if(state == 2){
if(type == 4){
npc->addText("Alright, there you go!");
npc->sendOK();
npc->end();
Mobs::spawnMobPos(player, 2100101, 843, 184);
Mobs::spawnMobPos(player, 2100101, 843, 184);
Mobs::spawnMobPos(player, 2100101, 843, 184);
Mobs::spawnMobPos(player, 2100101, 843, 184);
Mobs::spawnMobPos(player, 2100106, 843, 184);
Mobs::spawnMobPos(player, 2100106, 843, 184);
Mobs::spawnMobPos(player, 2100106, 843, 184);
Mobs::spawnMobPos(player, 2100106, 843, 184);
Mobs::spawnMobPos(player, 2100102, 843, 184);
Mobs::spawnMobPos(player, 2100102, 843, 184);
Mobs::spawnMobPos(player, 2100102, 843, 184);
Mobs::spawnMobPos(player, 2100102, 843, 184);
Mobs::spawnMobPos(player, 2100107, 843, 184);
Mobs::spawnMobPos(player, 2100107, 843, 184);
Mobs::spawnMobPos(player, 2100107, 843, 184);
Mobs::spawnMobPos(player, 2100103, 843, 184);
Mobs::spawnMobPos(player, 2100103, 843, 184);
Mobs::spawnMobPos(player, 2100103, 843, 184);
Mobs::spawnMobPos(player, 2100103, 843, 184);
Mobs::spawnMobPos(player, 2100107, 843, 184);
}
if(type == 5){
npc->addText("#bI love to spawn Slimes!#k");
npc->sendOK();
npc->end();
Mobs::spawnMobPos(player, 9500100, 843, 184);
Mobs::spawnMobPos(player, 9500100, 843, 184);
Mobs::spawnMobPos(player, 9500151, 843, 184);
Mobs::spawnMobPos(player, 9500151, 843, 184);
Mobs::spawnMobPos(player, 9300003, 843, 184);
Mobs::spawnMobPos(player, 9300003, 843, 184);
Mobs::spawnMobPos(player, 9300027, 843, 184);
Mobs::spawnMobPos(player, 9300027, 843, 184);
Mobs::spawnMobPos(player, 3110300, 843, 184);
Mobs::spawnMobPos(player, 3110300, 843, 184);
Mobs::spawnMobPos(player, 9400521, 843, 184);
Mobs::spawnMobPos(player, 9400521, 843, 184);
Mobs::spawnMobPos(player, 9400203, 843, 184);
Mobs::spawnMobPos(player, 9400203, 843, 184);
Mobs::spawnMobPos(player, 9400204, 843, 184);
Mobs::spawnMobPos(player, 9400204, 843, 184);
Mobs::spawnMobPos(player, 9400520, 843, 184);
Mobs::spawnMobPos(player, 9400520, 843, 184);
}
if(type == 6){
npc->addText("#bMUSHIES!!!#k");
npc->sendOK();
npc->end();
Mobs::spawnMobPos(player, 9000201, 843, 184);
Mobs::spawnMobPos(player, 9000201, 843, 184);
Mobs::spawnMobPos(player, 9000201, 843, 184);
Mobs::spawnMobPos(player, 9000201, 843, 184);
Mobs::spawnMobPos(player, 9000201, 843, 184);
Mobs::spawnMobPos(player, 9000201, 843, 184);
Mobs::spawnMobPos(player, 9000201, 843, 184);
Mobs::spawnMobPos(player, 9000201, 843, 184);
Mobs::spawnMobPos(player, 9000201, 843, 184);
Mobs::spawnMobPos(player, 9000201, 843, 184);
Mobs::spawnMobPos(player, 9000201, 843, 184);
Mobs::spawnMobPos(player, 9000201, 843, 184);
Mobs::spawnMobPos(player, 9000201, 843, 184);
Mobs::spawnMobPos(player, 9000201, 843, 184);
Mobs::spawnMobPos(player, 9000201, 843, 184);
Mobs::spawnMobPos(player, 9000201, 843, 184);
Mobs::spawnMobPos(player, 9000201, 843, 184);
Mobs::spawnMobPos(player, 9000201, 843, 184);
Mobs::spawnMobPos(player, 9000201, 843, 184);
Mobs::spawnMobPos(player, 9000201, 843, 184);
}
if(type == 7){
npc->addText("Here you go... #b Level 1-10#k Monsters!Are you so weak?");
npc->sendOK();
npc->end();
Mobs::spawnMobPos(player, 9400202, 843, 184);
Mobs::spawnMobPos(player, 9400202, 843, 184);
Mobs::spawnMobPos(player, 100100, 843, 184);
Mobs::spawnMobPos(player, 9409001, 843, 184);
Mobs::spawnMobPos(player, 100100, 843, 184);
Mobs::spawnMobPos(player, 9409001, 843, 184);
Mobs::spawnMobPos(player, 9300018, 843, 184);
Mobs::spawnMobPos(player, 9300018, 843, 184);
Mobs::spawnMobPos(player, 9409000, 843, 184);
Mobs::spawnMobPos(player, 9409000, 843, 184);
Mobs::spawnMobPos(player, 100101, 843, 184);
Mobs::spawnMobPos(player, 100101, 843, 184);
Mobs::spawnMobPos(player, 9400551, 843, 184);
Mobs::spawnMobPos(player, 120100, 843, 184);
Mobs::spawnMobPos(player, 120100, 843, 184);
Mobs::spawnMobPos(player, 130101, 843, 184);
Mobs::spawnMobPos(player, 130101, 843, 184);
Mobs::spawnMobPos(player, 130100, 843, 184);
Mobs::spawnMobPos(player, 130100, 843, 184);
Mobs::spawnMobPos(player, 210100, 843, 184);
Mobs::spawnMobPos(player, 210100, 843, 184);
Mobs::spawnMobPos(player, 9300062, 843, 184);
Mobs::spawnMobPos(player, 9300062, 843, 184);
Mobs::spawnMobPos(player, 9420001, 843, 184);
Mobs::spawnMobPos(player, 9420001, 843, 184);
Mobs::spawnMobPos(player, 1210102, 843, 184);
Mobs::spawnMobPos(player, 1210102, 843, 184);
Mobs::spawnMobPos(player, 9400513, 843, 184);
Mobs::spawnMobPos(player, 9400513, 843, 184);
Mobs::spawnMobPos(player, 9400506, 843, 184);
Mobs::spawnMobPos(player, 9500104, 843, 184);
Mobs::spawnMobPos(player, 9500104, 843, 184);
Mobs::spawnMobPos(player, 2130100, 843, 184);
Mobs::spawnMobPos(player, 2130100, 843, 184);
Mobs::spawnMobPos(player, 1110101, 843, 184);
Mobs::spawnMobPos(player, 1110101, 843, 184);
Mobs::spawnMobPos(player, 9500167, 843, 184);
Mobs::spawnMobPos(player, 9500167, 843, 184);
Mobs::spawnMobPos(player, 9400712, 843, 184);
Mobs::spawnMobPos(player, 9400712, 843, 184);
Mobs::spawnMobPos(player, 1210101, 843, 184);
Mobs::spawnMobPos(player, 1210101, 843, 184);
}
if(type == 10){
npc->addText("Here you go... #b Level 11-20#k Monsters! Weakling!!");
npc->sendOK();
npc->end();
Mobs::spawnMobPos(player, 9300064, 843, 184);
Mobs::spawnMobPos(player, 9300064, 843, 184);
Mobs::spawnMobPos(player, 9400511, 843, 184);
Mobs::spawnMobPos(player, 9400511, 843, 184);
Mobs::spawnMobPos(player, 1120100, 843, 184);
Mobs::spawnMobPos(player, 1120100, 843, 184);
Mobs::spawnMobPos(player, 1210103, 843, 184);
Mobs::spawnMobPos(player, 9500151, 843, 184);
Mobs::spawnMobPos(player, 9500151, 843, 184);
Mobs::spawnMobPos(player, 1210103, 843, 184);
Mobs::spawnMobPos(player, 1110100, 843, 184);
Mobs::spawnMobPos(player, 1110100, 843, 184);
Mobs::spawnMobPos(player, 9400005, 843, 184);
Mobs::spawnMobPos(player, 9400005, 843, 184);
Mobs::spawnMobPos(player, 1130100, 843, 184);
Mobs::spawnMobPos(player, 1130100, 843, 184);
Mobs::spawnMobPos(player, 1140100, 843, 184);
Mobs::spawnMobPos(player, 1140100, 843, 184);
Mobs::spawnMobPos(player, 9400538, 843, 184);
Mobs::spawnMobPos(player, 9400538, 843, 184);
Mobs::spawnMobPos(player, 2220100, 843, 184);
Mobs::spawnMobPos(player, 2220100, 843, 184);
Mobs::spawnMobPos(player, 9500152, 843, 184);
Mobs::spawnMobPos(player, 9500152, 843, 184);
Mobs::spawnMobPos(player, 2100100, 843, 184);
Mobs::spawnMobPos(player, 2100100, 843, 184);
Mobs::spawnMobPos(player, 9500168, 843, 184);
Mobs::spawnMobPos(player, 9500168, 843, 184);
Mobs::spawnMobPos(player, 2220000, 843, 184);
Mobs::spawnMobPos(player, 2220000, 843, 184);
Mobs::spawnMobPos(player, 9600001, 843, 184);
Mobs::spawnMobPos(player, 9600001, 843, 184);
Mobs::spawnMobPos(player, 9600001, 843, 184);
Mobs::spawnMobPos(player, 2300100, 843, 184);
Mobs::spawnMobPos(player, 2300100, 843, 184);
Mobs::spawnMobPos(player, 9400568, 843, 184);
Mobs::spawnMobPos(player, 9400568, 843, 184);
}
if(type == 0){
npc->addText("Here you go... #b Level 21-30#k Monsters!");
npc->sendOK();
npc->end();
Mobs::spawnMobPos(player, 2100101, 843, 184);
Mobs::spawnMobPos(player, 2100101, 843, 184);
Mobs::spawnMobPos(player, 9400556, 843, 184);
Mobs::spawnMobPos(player, 9400556, 843, 184);
Mobs::spawnMobPos(player, 2130103, 843, 184);
Mobs::spawnMobPos(player, 2130103, 843, 184);
Mobs::spawnMobPos(player, 9400539, 843, 184);
Mobs::spawnMobPos(player, 9400539, 843, 184);
Mobs::spawnMobPos(player, 9600002, 843, 184);
Mobs::spawnMobPos(player, 9600002, 843, 184);
Mobs::spawnMobPos(player, 2110200, 843, 184);
Mobs::spawnMobPos(player, 2110200, 843, 184);
Mobs::spawnMobPos(player, 2100102, 843, 184);
Mobs::spawnMobPos(player, 2100102, 843, 184);
Mobs::spawnMobPos(player, 2230108, 843, 184);
Mobs::spawnMobPos(player, 2230108, 843, 184);
Mobs::spawnMobPos(player, 2100105, 843, 184);
Mobs::spawnMobPos(player, 2100105, 843, 184);
Mobs::spawnMobPos(player, 9300027, 843, 184);
Mobs::spawnMobPos(player, 9300027, 843, 184);
Mobs::spawnMobPos(player, 5200000, 843, 184);
Mobs::spawnMobPos(player, 5200000, 843, 184);
Mobs::spawnMobPos(player, 2230105, 843, 184);
Mobs::spawnMobPos(player, 2230105, 843, 184);
Mobs::spawnMobPos(player, 2230103, 843, 184);
Mobs::spawnMobPos(player, 2230103, 843, 184);
Mobs::spawnMobPos(player, 2230110, 843, 184);
Mobs::spawnMobPos(player, 2230110, 843, 184);
Mobs::spawnMobPos(player, 2100106, 843, 184);
Mobs::spawnMobPos(player, 2100106, 843, 184);
Mobs::spawnMobPos(player, 2230107, 843, 184);
Mobs::spawnMobPos(player, 2230107, 843, 184);
Mobs::spawnMobPos(player, 2230111, 843, 184);
Mobs::spawnMobPos(player, 2230111, 843, 184);
Mobs::spawnMobPos(player, 2110300, 843, 184);
Mobs::spawnMobPos(player, 2110300, 843, 184);
Mobs::spawnMobPos(player, 2230101, 843, 184);
Mobs::spawnMobPos(player, 2230101, 843, 184);
Mobs::spawnMobPos(player, 2100103, 843, 184);
Mobs::spawnMobPos(player, 2100103, 843, 184);
Mobs::spawnMobPos(player, 2230106, 843, 184);
Mobs::spawnMobPos(player, 2230106, 843, 184);
Mobs::spawnMobPos(player, 9500153, 843, 184);
Mobs::spawnMobPos(player, 9500153, 843, 184);
Mobs::spawnMobPos(player, 9400000, 843, 184);
Mobs::spawnMobPos(player, 9400000, 843, 184);
Mobs::spawnMobPos(player, 9400540, 843, 184);
Mobs::spawnMobPos(player, 9400540, 843, 184);
Mobs::spawnMobPos(player, 9600003, 843, 184);
Mobs::spawnMobPos(player, 9600003, 843, 184);
Mobs::spawnMobPos(player, 2230102, 843, 184);
Mobs::spawnMobPos(player, 2230102, 843, 184);
Mobs::spawnMobPos(player, 9420004, 843, 184);
Mobs::spawnMobPos(player, 9420004, 843, 184);
Mobs::spawnMobPos(player, 9400547, 843, 184);
Mobs::spawnMobPos(player, 9400547, 843, 184);
Mobs::spawnMobPos(player, 2230100, 843, 184);
Mobs::spawnMobPos(player, 2230100, 843, 184);
Mobs::spawnMobPos(player, 9400508, 843, 184);
Mobs::spawnMobPos(player, 9400508, 843, 184);
Mobs::spawnMobPos(player, 2100104, 843, 184);
Mobs::spawnMobPos(player, 2100104, 843, 184);
Mobs::spawnMobPos(player, 9420000, 843, 184);
Mobs::spawnMobPos(player, 9420000, 843, 184);
Mobs::spawnMobPos(player, 2230200, 843, 184);
Mobs::spawnMobPos(player, 2230200, 843, 184);
Mobs::spawnMobPos(player, 2100108, 843, 184);
Mobs::spawnMobPos(player, 2100108, 843, 184);
Mobs::spawnMobPos(player, 2110301, 843, 184);
Mobs::spawnMobPos(player, 2110301, 843, 184);
Mobs::spawnMobPos(player, 9300128, 843, 184);
Mobs::spawnMobPos(player, 9300128, 843, 184);
Mobs::spawnMobPos(player, 9200015, 843, 184);
Mobs::spawnMobPos(player, 9200015, 843, 184);
Mobs::spawnMobPos(player, 9300130, 843, 184);
Mobs::spawnMobPos(player, 9300130, 843, 184);
Mobs::spawnMobPos(player, 9400002, 843, 184);
Mobs::spawnMobPos(player, 9400002, 843, 184);
Mobs::spawnMobPos(player, 9500154, 843, 184);
Mobs::spawnMobPos(player, 9500154, 843, 184);
Mobs::spawnMobPos(player, 3230400, 843, 184);
Mobs::spawnMobPos(player, 3230400, 843, 184);
}
else if(type == 1){
npc->addText("Wanna buy a monster sack for 100mil mesos???");
npc->addText("Are you sure??
");
npc->sendYesNo();
}
else if(type == 2){
npc->addText("Ok, see you later ! Have fun. ~iNice");
npc->teleport(100000000);
npc->end();
}
if(type == 3){
npc->addText("Alright, there it is! Enjoy~");
npc->sendOK();
npc->end();
Mobs::spawnMobPos(player, 9500140, 843, 184);
Mobs::spawnMobPos(player, 9001000, 843, 184);
Mobs::spawnMobPos(player, 8130100, 843, 184);
Mobs::spawnMobPos(player, 9400536, 843, 184);
}
}
if(state == 3){
if(type == 1){
if(npc->getSelected() == YES){
if(npc->getMesos() >= 100000000){
npc->giveItem(2101020, 10);
npc->giveItem(2101050, 10);
npc->giveItem(2101051, 10);
npc->giveItem(2101052, 10);
npc->giveItem(2101053, 10);
npc->giveItem(2101054, 10);
npc->giveItem(2101055, 10);
npc->giveItem(2101056, 3);
npc->giveItem(2100017, 10);
npc->giveItem(2101016, 10);
npc->giveItem(2100000, 5);
npc->giveItem(2101021, 30);
npc->giveItem(2101026, 20);
npc->giveItem(2101024, 20);
npc->giveItem(2100021, 10);
npc->giveItem(2100020, 10);
npc->giveItem(2100018, 3);
npc->giveItem(2100015, 3);
npc->giveMesos(-100000000);
npc->addText("Thanks, if you need more, just come back !");
npc->sendOK();
npc->end();
}
else{
npc->addText("Sorry, but you don't have Mesos.");
npc->sendOK();
npc->end();
}
}
else{
npc->addText("Fine... come back if you're still intrested.");
npc->sendOK();
npc->end();
}
}
}
}