Horntail PQ & Exped + Equip levelup fix

Added Horntail PQ and boss fight. Fixed short integer overflow of
equipment stats on client messing up player stats.
This commit is contained in:
ronancpl
2017-07-20 12:02:59 -03:00
parent 8fab2a6e3e
commit c09bc02c85
137 changed files with 1154 additions and 583 deletions

View File

@@ -24,20 +24,15 @@
*/
function enter(pi) {
var nextMap = 240050101;
var eim = pi.getPlayer().getEventInstance()
var target = eim.getMapInstance(nextMap);
var targetPortal = target.getPortal("sp");
// only let people through if the eim is ready
var avail = eim.getProperty("1stageclear");
if (!pi.haveItem(4001092, 1)) {
// do nothing; send message to player
pi.getPlayer().dropMessage(6, "Horntail\'s Seal is Blocking this Door.");
if (pi.getMap().countPlayers() == 1) {
pi.getPlayer().dropMessage(6, "As the last player on this map, you are compelled to wait for the incoming keys.");
return false;
}else {
pi.gainItem(4001092, -1);
pi.getPlayer().dropMessage(6, "The key disentegrates as Horntail\'s Seal is broken for a flash...");
pi.getPlayer().changeMap(target, targetPortal);
if(pi.haveItem(4001087)) {
pi.getPlayer().dropMessage(6, "You cannot pass to the next map holding the 1st Crystal Key in your inventory.");
return false;
}
pi.warp(240050101);
return true;
}
}