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:
@@ -21,39 +21,21 @@
|
||||
*/
|
||||
function enter(pi) {
|
||||
if (pi.getPlayer().getMapId() == 240060000) {
|
||||
var nextMap = 240060100;
|
||||
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("head1");
|
||||
if (avail != "yes") {
|
||||
// do nothing; send message to player
|
||||
pi.getPlayer().dropMessage(6, "Horntail\'s Seal is Blocking this Door.");
|
||||
return false;
|
||||
}else {
|
||||
pi.getPlayer().changeMap(target, targetPortal);
|
||||
if (eim.getProperty("head2spawned") != "yes") {
|
||||
eim.setProperty("head2spawned", "yes");
|
||||
eim.schedule("headTwo", 5000);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
if(pi.getEventInstance().getIntProperty("defeatedHead") >= 1) {
|
||||
pi.warp(240060100, 0);
|
||||
return true;
|
||||
} else {
|
||||
pi.getPlayer().dropMessage(6, "Horntail\'s Seal is Blocking this Door.");
|
||||
return false;
|
||||
}
|
||||
} else if (pi.getPlayer().getMapId() == 240060100) {
|
||||
var nextMap = 240060200;
|
||||
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("head2");
|
||||
if (avail != "yes") {
|
||||
// do nothing; send message to player
|
||||
pi.getPlayer().dropMessage(6, "Horntail\'s Seal is Blocking this Door.");
|
||||
return false;
|
||||
}else {
|
||||
pi.getPlayer().changeMap(target, targetPortal);
|
||||
return true;
|
||||
}
|
||||
if(pi.getEventInstance().getIntProperty("defeatedHead") >= 2) {
|
||||
pi.warp(240060200, 0);
|
||||
return true;
|
||||
} else {
|
||||
pi.getPlayer().dropMessage(6, "Horntail\'s Seal is Blocking this Door.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user