Reworked Singapore/Malaysia + warp fix

Reworked many aspects of the Malaysia/Singapore region (added DB data,
enabled Latanica & Scarga expedition, fixed maps). Fixed some issues
related with player warping.
This commit is contained in:
ronancpl
2017-07-14 20:40:06 -03:00
parent 7f80f45553
commit 8fab2a6e3e
120 changed files with 17684 additions and 16759 deletions

View File

@@ -257,8 +257,13 @@ function clearPQ(eim) {
eim.warpEventTeam(925100600);
}
function isLordPirate(mob) {
var mobid = mob.getId();
return (mobid == 9300105) || (mobid == 9300106) || (mobid == 9300107) || (mobid == 9300119);
}
function monsterKilled(mob, eim) {
if(mob.isBoss()) { // lord pirate defeated, spawn the little fella!
if(isLordPirate(mob)) { // lord pirate defeated, spawn the little fella!
mob.getMap().broadcastStringMessage(5, "As Lord Pirate dies, Wu Yang is released!");
eim.spawnNpc(2094001, new java.awt.Point(777, 140), mob.getMap());
}