VladimirCastro Posted September 6, 2012 Group: Members Topic Count: 114 Topics Per Day: 0.02 Content Count: 298 Reputation: 4 Joined: 03/13/12 Last Seen: September 18, 2016 Share Posted September 6, 2012 prontera,155,181,5 script Sample 757,{ setarray .@Map$[0],"pvp_y_1-1","pvp_y_1-2"; mes "Select your room"; set .@i,select("Room 1 ["+getmapusers(.@Map$[0])+"/50]:Room 2 ["+getmapusers(.@Map$[1]+"]"/50)) - 1; if( getmapusers( .@Map$[.@i] ) >= 50 ){ mes "Sorry, room Full."; close; }else warp .Map$[.@i],0,0; end; OnPCKillEvent: for( set .@i,0; .@i < getarraysize( .@Map$ ); set .@i,.@i + 1 ) if( strcharinfo(3) == .@Map$[.@i] ){ announce "["+strcharinfo(0)+"] has killed ["+rid2name(killedrid)+"] in "+strcharinfo(3),0; break; } end; } HOW CAN I MAKE THIS 1 CLICK and only pvp_y_1-2 Quote Link to comment Share on other sites More sharing options...
Euphy Posted September 7, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted September 7, 2012 Get rid of everything except the warp command and "end"? o.o Quote Link to comment Share on other sites More sharing options...
VladimirCastro Posted September 7, 2012 Group: Members Topic Count: 114 Topics Per Day: 0.02 Content Count: 298 Reputation: 4 Joined: 03/13/12 Last Seen: September 18, 2016 Author Share Posted September 7, 2012 something like this? prontera,155,181,5 script Sample 757,{setarray .@Map$[0],"pvp_y_1-2"; warp .Map$[.@i],0,0; end; OnPCKillEvent: for( set .@i,0; .@i < getarraysize( .@Map$ ); set .@i,.@i + 1 ) if( strcharinfo(3) == .@Map$[.@i] ){ announce "["+strcharinfo(0)+"] has killed ["+rid2name(killedrid)+"] in "+strcharinfo(3),0; break; } end; } Quote Link to comment Share on other sites More sharing options...
KeyWorld Posted September 7, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 379 Reputation: 304 Joined: 11/10/11 Last Seen: December 2, 2014 Share Posted September 7, 2012 It will work but you can even simplify it: prontera,155,181,5 script Sample 757,{ warp "pvp_y_1-2", 0, 0; end; OnPCKillEvent: if( strcharinfo(3) == "pvp_y_1-2" ) announce "[" + strcharinfo(0) + "] has killed [" + rid2name(killedrid) + "] in " + strcharinfo(3), 0; } 1 Quote Link to comment Share on other sites More sharing options...
Question
VladimirCastro
HOW CAN I MAKE THIS 1 CLICK and only pvp_y_1-2
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.