- Joined
- Jun 27, 2008
- Messages
- 148
- Reaction score
- 0
For the maps without NPCs and make good PvP maps, and for lazy GMs who don't want to warp players out.
PHP:
else if (splitted[0].equals("@leavepvp")) {
if (player.getMapId() == 922010900 || player.getMapId() == 922010800 || player.getMapId() == 990000500
|| player.getMapId() == 990000501 || player.getMapId() == 990000502
|| player.getMapId() == 920011200 || player.getMapId() == 921100300) {//PvP map IDs
MapleMap target = cserv.getMapFactory().getMap(220000000); //map to warp to
MaplePortal targetPortal = target.getPortal(0);
player.changeMap(target, targetPortal);
}else {
mc.dropMessage("You're not in the PvP map");
}
}