Implemented CWKPQ
Made CWKPQ fully-functional, using the Expedition system (won't work with the lobby system).
This commit is contained in:
@@ -1249,6 +1249,11 @@ public class MapleCharacter extends AbstractAnimatedMapleMapObject {
|
||||
if(getEventInstance() != null) {
|
||||
getEventInstance().recoverOpenedGate(this, map.getId());
|
||||
}
|
||||
|
||||
// if this map has obstacle components moving, make it do so for this client
|
||||
for(Entry<String, Integer> e: map.getEnvironment().entrySet()) {
|
||||
announce(MaplePacketCreator.environmentMove(e.getKey(), e.getValue()));
|
||||
}
|
||||
}
|
||||
|
||||
public void changePage(int page) {
|
||||
|
||||
@@ -696,7 +696,7 @@ public class Commands {
|
||||
case "debugnearestspawnpoint":
|
||||
if(ServerConstants.USE_DEBUG) {
|
||||
SpawnPoint sp = player.getMap().findClosestSpawnpoint(player.getPosition());
|
||||
if(sp != null) player.dropMessage(6, "Closest mob spawn point: " + " Position: x " + sp.getPosition().getX() + " y " + sp.getPosition().getY() + " Spawns mobid: '" + ((sp.getMonster() != null) ? sp.getMonster().getId() : "null") + "' --> canSpawn: " + !sp.getDenySpawn() + " canSpawnRightNow: " + sp.shouldSpawn() + ".");
|
||||
if(sp != null) player.dropMessage(6, "Closest mob spawn point: " + " Position: x " + sp.getPosition().getX() + " y " + sp.getPosition().getY() + " Spawns mobid: '" + sp.getMonsterId() + "' --> canSpawn: " + !sp.getDenySpawn() + " canSpawnRightNow: " + sp.shouldSpawn() + ".");
|
||||
else player.dropMessage(6, "There is no mob spawn point on this map.");
|
||||
}
|
||||
break;
|
||||
@@ -713,6 +713,12 @@ public class Commands {
|
||||
}
|
||||
break;
|
||||
|
||||
case "debugmobsp":
|
||||
if(ServerConstants.USE_DEBUG) {
|
||||
player.getMap().reportMonsterSpawnPoints(player);
|
||||
}
|
||||
break;
|
||||
|
||||
case "debugevent":
|
||||
if(ServerConstants.USE_DEBUG) {
|
||||
if(player.getEventInstance() == null) player.dropMessage(6, "Player currently not in an event.");
|
||||
|
||||
Reference in New Issue
Block a user