Remove "Maple" prefix from MaplePacketCreator name
This commit is contained in:
@@ -48,7 +48,7 @@ import server.maps.MapleMap;
|
||||
import server.maps.MapleMapManager;
|
||||
import server.maps.MaplePortal;
|
||||
import server.maps.MapleReactor;
|
||||
import tools.MaplePacketCreator;
|
||||
import tools.PacketCreator;
|
||||
import tools.Pair;
|
||||
|
||||
import javax.script.ScriptException;
|
||||
@@ -282,7 +282,7 @@ public class EventInstanceManager {
|
||||
eventTime = time;
|
||||
|
||||
for(MapleCharacter chr: getPlayers()) {
|
||||
chr.announce(MaplePacketCreator.getClock((int) (time / 1000)));
|
||||
chr.announce(PacketCreator.getClock((int) (time / 1000)));
|
||||
}
|
||||
|
||||
event_schedule = TimerManager.getInstance().schedule(() -> {
|
||||
@@ -319,7 +319,7 @@ public class EventInstanceManager {
|
||||
|
||||
private void dismissEventTimer() {
|
||||
for(MapleCharacter chr: getPlayers()) {
|
||||
chr.getClient().announce(MaplePacketCreator.removeClock());
|
||||
chr.getClient().announce(PacketCreator.removeClock());
|
||||
}
|
||||
|
||||
event_schedule = null;
|
||||
@@ -857,7 +857,7 @@ public class EventInstanceManager {
|
||||
npc.setRx1(pos.x - 50);
|
||||
npc.setFh(map.getFootholds().findBelow(pos).getId());
|
||||
map.addMapObject(npc);
|
||||
map.broadcastMessage(MaplePacketCreator.spawnNPC(npc));
|
||||
map.broadcastMessage(PacketCreator.spawnNPC(npc));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1209,8 +1209,8 @@ public class EventInstanceManager {
|
||||
|
||||
public final void showWrongEffect(int mapId) {
|
||||
MapleMap map = getMapInstance(mapId);
|
||||
map.broadcastMessage(MaplePacketCreator.showEffect("quest/party/wrong_kor"));
|
||||
map.broadcastMessage(MaplePacketCreator.playSound("Party1/Failed"));
|
||||
map.broadcastMessage(PacketCreator.showEffect("quest/party/wrong_kor"));
|
||||
map.broadcastMessage(PacketCreator.playSound("Party1/Failed"));
|
||||
}
|
||||
|
||||
public final void showClearEffect() {
|
||||
@@ -1236,10 +1236,10 @@ public class EventInstanceManager {
|
||||
|
||||
public final void showClearEffect(boolean hasGate, int mapId, String mapObj, int newState) {
|
||||
MapleMap map = getMapInstance(mapId);
|
||||
map.broadcastMessage(MaplePacketCreator.showEffect("quest/party/clear"));
|
||||
map.broadcastMessage(MaplePacketCreator.playSound("Party1/Clear"));
|
||||
map.broadcastMessage(PacketCreator.showEffect("quest/party/clear"));
|
||||
map.broadcastMessage(PacketCreator.playSound("Party1/Clear"));
|
||||
if(hasGate) {
|
||||
map.broadcastMessage(MaplePacketCreator.environmentChange(mapObj, newState));
|
||||
map.broadcastMessage(PacketCreator.environmentChange(mapObj, newState));
|
||||
wL.lock();
|
||||
try {
|
||||
openedGates.put(map.getId(), new Pair<>(mapObj, newState));
|
||||
@@ -1262,7 +1262,7 @@ public class EventInstanceManager {
|
||||
}
|
||||
|
||||
if(gateData != null) {
|
||||
chr.announce(MaplePacketCreator.environmentChange(gateData.getLeft(), gateData.getRight()));
|
||||
chr.announce(PacketCreator.environmentChange(gateData.getLeft(), gateData.getRight()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user