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

@@ -23,31 +23,23 @@
**hontale_c.js
@author Jvlaple
@author Ronan
*/
function enter(pi) {
if (pi.isLeader() == true) {
if (pi.isEventLeader() == true) {
var eim = pi.getPlayer().getEventInstance();
var party = eim.getPlayers();
var target;
var theWay = eim.getProperty("theWay");
var target;
if (theWay != null) {
if (theWay = "light") {
target = eim.getMapInstance(240050300); //light
} else {
target = eim.getMapInstance(240050310); //dark
}
var theWay = pi.getMap().getReactorByName("light").getState();
if (theWay == 1) {
target = 240050300; //light
} else if(theWay == 3) {
target = 240050310; //dark
} else {
pi.playerMessage(5, "Hit the Lightbulb to determine your fate!");
return false;
}
var targetPortal = target.getPortal("sp");
//Warp the full party into the map...
var partyy = pi.getPlayer().getEventInstance().getPlayers();
for (var i = 0; i < partyy.size(); i++) {
party.get(i).changeMap(target, targetPortal);
}
eim.warpEventTeam(target);
return true;
} else {
pi.playerMessage(6, "You are not the party leader. Only the party leader may proceed through this portal.");