Implemented EllinPQ + some bug fixes

Implemented EllinPQ, adjusted several drop rates and data, fixes some
bugs at quests at client-side.
This commit is contained in:
ronancpl
2017-04-22 16:35:27 -03:00
parent 72ef73a949
commit 828a8a02a2
82 changed files with 753 additions and 386 deletions

View File

@@ -36,10 +36,10 @@ function init() {
}
function setup() {
var eim = em.newInstance("ScargaBattle_" + em.getProperty("channel"));
var eim = em.newInstance("ScargaBattle_" + em.getProperty("channel"));
var timer = 1000 * 60 * fightTime;
eim.setProperty("summoned", "false");
em.schedule("timeOut", eim, timer);
em.schedule("timeOut", eim, timer);
eim.startEventTimer(timer);
return eim;
}
@@ -133,21 +133,21 @@ function finish(eim) {
eim.dispose();
}
function allMonstersDead(eim) {
}
function monsterKilled(mob, eim) {}
function cancelSchedule() {
}
function allMonstersDead(eim) {}
function cancelSchedule() {}
function timeOut(eim) {
if (eim != null) {
if (eim.getPlayerCount() > 0) {
var pIter = eim.getPlayers().iterator();
while (pIter.hasNext()){
var player = pIter.next();
player.dropMessage(6, "You have run out of time to defeat Scarlion and Targa!");
var player = pIter.next();
player.dropMessage(6, "You have run out of time to defeat Scarlion and Targa!");
playerExit(eim, player);
}
}
}
eim.dispose();
}