Event Recall + Cash Shop bestsellers + MapleSessionCoordinator rework
Implemented an event recall system. Players that went disconnected during an event instance are able to rejoin the ongoing event upon relogin. Implemented a player-activity backed best-sellers system for the Cash Shop. Patched the recently added selective loot system interfering with quest items, ever disabling drops after the player picked up one item. Implemented a server flag for everlasting buffs. Fixed some inconsistencies with Priest Dispel skill, sometimes crashing party players. Fixed change job not properly showing effects for other players. Fixed wrong fee value being taken from players that expands their guild size. Also, implemented GMS-like fee for this action. Reworked the MapleSessionCoordinator, now evaluating client's HWID as well as remote IP. This's expected to lessen account drought time for players that are constantly changing their IP. Last but not least, added world maps for Mushroom Castle, Zipangu, CBD/Malaysia and Ellin Forest regions. Original artwork content used on files depicted in this topic are rightful property of Nexon Corps., these files thoroughly trying to adhere the "Fair Use" disclaimer policy, their purpose being solely to fulfill gaming experience for the areas that were already present on v83 GMS but still lacked worldmaps. For more info regarding Fair Use, please refer to "http://www.dmlp.org/legal-guide/fair-use".
This commit is contained in:
@@ -54,6 +54,7 @@ import tools.MaplePacketCreator;
|
||||
import client.MapleCharacter;
|
||||
import client.MapleClient;
|
||||
import client.MapleQuestStatus;
|
||||
import client.MapleStat;
|
||||
import client.SkillFactory;
|
||||
import client.inventory.Equip;
|
||||
import client.inventory.Item;
|
||||
@@ -581,8 +582,7 @@ public class AbstractPlayerInteraction {
|
||||
}
|
||||
|
||||
public void gainFame(int delta) {
|
||||
c.getPlayer().addFame(delta);
|
||||
c.announce(MaplePacketCreator.getShowFameGain(delta));
|
||||
getPlayer().gainFame(delta);
|
||||
}
|
||||
|
||||
public void changeMusic(String songName) {
|
||||
|
||||
@@ -65,6 +65,7 @@ import java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock;
|
||||
import java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
import net.server.coordinator.MapleEventRecallCoordinator;
|
||||
import scripting.AbstractPlayerInteraction;
|
||||
import server.MapleItemInformationProvider;
|
||||
import server.life.MapleLifeFactory;
|
||||
@@ -599,6 +600,8 @@ public class EventInstanceManager {
|
||||
} catch (ScriptException | NoSuchMethodException ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
|
||||
MapleEventRecallCoordinator.getInstance().storeEventInstance(chr.getId(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -862,7 +865,7 @@ public class EventInstanceManager {
|
||||
}
|
||||
|
||||
public void clearPQ() {
|
||||
try {
|
||||
try {
|
||||
sL.lock();
|
||||
try {
|
||||
em.getIv().invokeFunction("clearPQ", this);
|
||||
@@ -1157,6 +1160,10 @@ public class EventInstanceManager {
|
||||
public final void setEventCleared() {
|
||||
eventCleared = true;
|
||||
|
||||
for (MapleCharacter chr : getPlayers()) {
|
||||
chr.awardQuestPoint(ServerConstants.QUEST_POINT_PER_EVENT_CLEAR);
|
||||
}
|
||||
|
||||
sL.lock();
|
||||
try {
|
||||
em.disposeInstance(name);
|
||||
@@ -1171,6 +1178,10 @@ public class EventInstanceManager {
|
||||
return eventCleared;
|
||||
}
|
||||
|
||||
public final boolean isEventDisposed() {
|
||||
return disposed;
|
||||
}
|
||||
|
||||
private boolean isEventTeamLeaderOn() {
|
||||
for(MapleCharacter chr: getPlayers()) {
|
||||
if(chr.getId() == getLeaderId()) return true;
|
||||
|
||||
@@ -285,6 +285,7 @@ public class NPCConversationManager extends AbstractPlayerInteraction {
|
||||
return getPlayer().getLevel();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void showEffect(String effect) {
|
||||
getPlayer().getMap().broadcastMessage(MaplePacketCreator.environmentChange(effect, 3));
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ public class QuestScriptManager extends AbstractScriptManager {
|
||||
|
||||
private static QuestScriptManager instance = new QuestScriptManager();
|
||||
|
||||
public synchronized static QuestScriptManager getInstance() {
|
||||
public static QuestScriptManager getInstance() {
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ public class ReactorScriptManager extends AbstractScriptManager {
|
||||
|
||||
private static ReactorScriptManager instance = new ReactorScriptManager();
|
||||
|
||||
public synchronized static ReactorScriptManager getInstance() {
|
||||
public static ReactorScriptManager getInstance() {
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user