GuildPQ fix

Fixed some issues with GPQ startup crashing the leader when doing the
map transition.
This commit is contained in:
ronancpl
2017-09-22 23:26:46 -03:00
parent 8794cc8f31
commit 7bbf512797
39 changed files with 4961 additions and 4969 deletions

View File

@@ -421,6 +421,12 @@ public class EventInstanceManager {
} catch (ScriptException | NoSuchMethodException ex) {}
}
public void afterChangedMap(MapleCharacter chr, int mapId) { // optional
try {
em.getIv().invokeFunction("afterChangedMap", this, chr, mapId);
} catch (ScriptException | NoSuchMethodException ex) {}
}
public void changedLeader(MapleCharacter ldr) {
try {
em.getIv().invokeFunction("changedLeader", this, ldr);

View File

@@ -526,7 +526,7 @@ public class EventManager {
+ " and HAS JUST STARTED THE STRATEGY PHASE. After 3 minutes, no more guild members will be allowed to join the effort."
+ " Check out Shuang at the excavation site in Perion for more info.";
mg.dropMessage(0, callout);
mg.dropMessage(6, callout);
}
private void exportMovedQueueToGuild(Integer guildId, int place) {
@@ -534,7 +534,7 @@ public class EventManager {
String callout = "[Guild Quest] Your guild has been registered to attend to the Sharenian Guild Quest at channel " + this.getChannelServer().getId()
+ " and is currently on the " + ordinal(place) + " place on the waiting queue.";
mg.dropMessage(0, callout);
mg.dropMessage(6, callout);
}
private List<Integer> getNextGuildQueue() {