Credits To > CheezPuff/xPresent
כל מי שמכיר זה ה-NPC שגורם לך איזה בוס תרצה להזמין בבקשה
Hey guys i found a simple Methode to spawn Bodyguard a on some sources where missed the reactor to spawn Bodyguard A anegos comp....
NOW here comes the NPC script where only click on NPC and body guard a spawn on the map
קוד PHP:
var status = -1;
function start() {
status = -1;
action(1,0,0);
}
function action(mode, type, selection) {
if (mode != 1) {
cm.warp(801040004);
cm.dispose();
return;
}
status++;
if (status == 0) {
if (cm.getPlayer().getMap().getMonsterById(9400112) == null && cm.getPlayer().getMap().getMonsterById(9400113) == null && cm.getPlayer().getMap().getMonsterById(9400300) == null) {
cm.sendYesNo("Would you like spawn Bodyguard A?");
} else {
action(-1,0,0);
}
} else if (status == 1) {
if (cm.getPlayer().getMap().getMonsterById(9400112) == null && cm.getPlayer().getMap().getMonsterById(9400113) == null && cm.getPlayer().getMap().getMonsterById(9400300) == null) {
cm.getPlayer().getMap().spawnMonsterOnGroundBelow(Packages.server.life.MapleLifeFactory.getMonster(9400112), new java.awt.Point(Math.floor(1576 * (1 - Math.random())) + 1,150));
}
cm.dispose();
}
}