Improved Mushroom Castle + Body Pressure patch
Improved the gameplay around the Mushroom Castle region. Solved an issue with HP threshold on MoveLifeHandler. Fixed Body Pressure being refreshed every time it hits a mob.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
NPC: Blocked Entrance (portal?)
|
||||
MAP: Mushroom Castle - East Castle Tower (106021400)
|
||||
*/
|
||||
importPackage(Packages.tools);
|
||||
|
||||
var status;
|
||||
|
||||
@@ -25,16 +26,40 @@ function action(mode, type, selection){
|
||||
status++;
|
||||
|
||||
|
||||
if(status == 0){
|
||||
cm.sendSimple("#L1#Enter to fight #bKing Pepe#k and #bYeti Brothers#k.#l");
|
||||
}
|
||||
else if(status == 1){
|
||||
if(selection == 1){
|
||||
var pepe = cm.getEventManager("KingPepeAndYetis");
|
||||
pepe.setProperty("player", cm.getPlayer().getName());
|
||||
pepe.startInstance(cm.getPlayer());
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
}
|
||||
if(cm.getMapId() == 106021402) {
|
||||
if(status == 0){
|
||||
cm.sendSimple("#L0#Enter to fight #bKing Pepe#k and #bYeti Brothers#k.#l\r\n#L1#Enter to fight #bPrime Minister#k.#l");
|
||||
}
|
||||
else if(status == 1){
|
||||
if(selection == 0){
|
||||
var pepe = cm.getEventManager("KingPepeAndYetis");
|
||||
pepe.setProperty("player", cm.getPlayer().getName());
|
||||
pepe.startInstance(cm.getPlayer());
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
else if(selection == 1){
|
||||
var pm = cm.getEventManager("MK_PrimeMinister2");
|
||||
pm.setProperty("player", cm.getPlayer().getName());
|
||||
pm.startInstance(cm.getPlayer());
|
||||
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if(status == 0){
|
||||
cm.sendSimple("#L1#Enter to fight #bKing Pepe#k and #bYeti Brothers#k.#l");
|
||||
}
|
||||
else if(status == 1){
|
||||
if(selection == 1){
|
||||
var pepe = cm.getEventManager("KingPepeAndYetis");
|
||||
pepe.setProperty("player", cm.getPlayer().getName());
|
||||
pepe.startInstance(cm.getPlayer());
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user