@leavepvp

Status
Not open for further replies.
Junior Spellweaver
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");
                    }
                        }
 
Re: [Release] @leavepvp

I get this on compiling:
Code:
init:
deps-jar:
Compiling 2 source files to C:\Documents and Settings\Jerm\Desktop\odinsnow\build\classes
C:\Documents and Settings\Jerm\Desktop\odinsnowrev1_8\net.sf.odinsnow\src\net\sf\odinsnow\client\messages\commands\CharCommands.java:106: cannot find symbol
symbol  : variable cserv
location: class net.sf.odinsnow.client.messages.commands.CharCommands
                        MapleMap target = cserv.getMapFactory().getMap(100000000); //map to warp to 
1 error
BUILD FAILED (total time: 3 seconds)

Mind giving me a list of imports in CommandProcessor.java?
 
Re: [Release] @leavepvp

Nice release! I hate it when people ask me to warp em out espicially when so many of 'em do so at the same time!
 
Re: [Release] @leavepvp

when i type @leavepvp it said you are not in the pvp map while i in the pvp map. how to make it work anyone?
i have the npc that warp back ppl.
so it is that npc that don't allow my @leavepvp to work?
 
Re: [Release] @leavepvp

Lazy GMs. Make a npc in the pvp map. Nice release since apparently some people need it lol..
 
Re: [Release] @leavepvp

change what? i don't get what you mean my pvp map is 109020001.
so change what ?
can you help me thanks alot
 
Re: [Release] @leavepvp

Code:
else if (splitted[0].equals("@leavepvp")) {
                    if (player.getMapId() == [COLOR="DarkOrange"]922010900[/COLOR] || player.getMapId() == [COLOR="DarkOrange"]922010800 [/COLOR]|| player.getMapId() == [COLOR="DarkOrange"]990000500[/COLOR]
                             || player.getMapId() == [COLOR="DarkOrange"]990000501 [/COLOR]|| player.getMapId() == [COLOR="DarkOrange"]990000502 [/COLOR]
                             || player.getMapId() == [COLOR="DarkOrange"]920011200 [/COLOR]|| player.getMapId() == [COLOR="DarkOrange"]921100300[/COLOR]) {//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");
                    }
                        }

change the orange numbers to your pvp maps
 
Re: [Release] @leavepvp

is there a way to add a delay into it like say 5 seconds before the player can warp out? because players may use this to escape..
 
Status
Not open for further replies.
Back