AutoAggro & MoveLife handler update + minor patches
Changed some handlers to reuse MapleMap variable, preventing some minor inconsistencies. Applied minor patches over the source.
This commit is contained in:
@@ -11,8 +11,7 @@ function enter(pi) {
|
||||
if (map > 0) {
|
||||
if (pi.getPlayerCount(map) == 0) {
|
||||
var mapp = pi.getMap(map);
|
||||
mapp.resetFully();
|
||||
mapp.respawn(true);
|
||||
mapp.resetPQ();
|
||||
|
||||
pi.playPortalSound();
|
||||
pi.warp(map, 0);
|
||||
|
||||
@@ -1,18 +1,26 @@
|
||||
/*
|
||||
Author: Kevin
|
||||
Author: Ronan
|
||||
Map: Mushroom Castle - Deep Inside Mushroom Forest (106020300)
|
||||
Right Portal
|
||||
*/
|
||||
|
||||
function enter(pi){
|
||||
if (pi.isQuestCompleted(2316)){
|
||||
if (pi.hasItem(2430014)){
|
||||
if (pi.isQuestCompleted(2316)) {
|
||||
if (pi.hasItem(2430014)) {
|
||||
pi.gainItem(2430014, -1 * pi.getPlayer().getItemQuantity(2430014, false));
|
||||
pi.message("You have used the Killer Mushroom Spore to open the way.");
|
||||
}
|
||||
|
||||
pi.warp(106020400, 2);
|
||||
return true;
|
||||
}
|
||||
|
||||
} else if (pi.hasItem(2430015)) {
|
||||
pi.gainItem(2430015, -1 * pi.getPlayer().getItemQuantity(2430015, false));
|
||||
pi.message("You have used the Thorn Remover to clean the way.");
|
||||
|
||||
pi.warp(106020400, 2);
|
||||
return true;
|
||||
}
|
||||
|
||||
pi.message("The overgrown vines is blocking the way.");
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user