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:
ronancpl
2018-01-11 12:29:43 -02:00
parent 1190513d0c
commit c4c3f58f41
10 changed files with 119 additions and 100 deletions

View File

@@ -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;
}