Files
sweetgum-server/scripts/portal/out_pepeking.js
ronancpl a4973b8254 Autopot & Steal patch + Friendly mob drops + Portal update fix
Adjusted pet autopot to use temporary variables instead of the current player's HP, MP. This seems to have solved a race condition issue where the pet would instantly use up all the pots of the assigned itemid the player had on the inventory.
Steal now uses the effective chance it is supposed to use.
Reworked Steal so that it determines which item to drop accordingly with the drop rates of each available item. It won't drop Quest nor Party Quest items.
Reworked friendly mob drops to act on the same way common mobs drops items.
Fixed issues with scripted portals introduced on the Portal Soundeffect update patch. There is expected to have no more syntax errors on the portal scripts.
Improved quality of the strings used on the Expedition scripts.
New command: reach. Warps the caller to the area where the targeted player is.
2018-02-20 18:37:32 -03:00

26 lines
845 B
JavaScript

function enter(pi) {
var eim = pi.getEventInstance();
if(eim != null) {
eim.stopEventTimer();
eim.dispose();
}
var questProgress = pi.getQuestProgress(2330, 3300005) + pi.getQuestProgress(2330, 3300006) + pi.getQuestProgress(2330, 3300007); //3 Yetis
if(questProgress == 3 && !pi.hasItem(4032388)) {
if(pi.canHold(4032388)){
pi.getPlayer().message("You have aquired a key to the Wedding Hall. King Pepe must have dropped it.");
pi.gainItem(4032388, 1);
pi.playPortalSound();
pi.warp(106021400, 2);
return true;
} else {
pi.getPlayer().message("Please make room in your ETC inventory.");
return false;
}
} else {
pi.playPortalSound();
pi.warp(106021400, 2);
return true;
}
}