NANORAY Posted October 29, 2012 Posted October 29, 2012 prontera,155,181,5 script Sample 757,{ if( select("PVP Room [ "+getmapusers("prontera")+"/50 ]:Cancel") == 1 ) if( getmapusers("prontera") < 50 ) warp "prontera",0,0; close; } question guys. how to add more maps in this script? Quote
Euphy Posted October 29, 2012 Posted October 29, 2012 Add more options, then a switch(select()). Quote
NANORAY Posted October 29, 2012 Author Posted October 29, 2012 but how? where will i put it? i don't know how. can you give me a sample script that select more maps? thanks in advance sir euphy Quote
AnnieRuru Posted October 29, 2012 Posted October 29, 2012 hmm ... the npc in prontera, and ask to warp into prontera map to pvp ... ? sounds weird prontera,157,178,5 script Sample 757,{ mes "select a pvp room"; next; for ( .@i = 0; .@i < .size; .@i++ ) .@menu$ = .@menu$ +"Room "+( .@i +1 )+". ["+ getmapusers(.pvpmap$[.@i]) +"/50]:"; .@menu$ = .@menu$ + "Cancel"; .@room = select( .@menu$ ) -1; if ( .@room == .size ) { mes "ok, come back anytime"; close; } if ( getmapusers( .pvpmap$[ .@room ] ) >= 50 ) { mes "this room is full"; close; } warp .pvpmap$[ .@room ], 0,0; end; OnInit: setarray .pvpmap$, "pvp_y_1-1", "pvp_y_1-2", "pvp_y_1-3"; // add more maps here .size = getarraysize( .pvpmap$ ); for ( .@i = 0; .@i < .size; .@i++ ) setmapflag .pvpmap$[.@i], mf_pvp; end; } 1 Quote
NANORAY Posted October 29, 2012 Author Posted October 29, 2012 super thanks AnnieRuru and euphy! how about the mapflag? i'll just put it under the script? Quote
AnnieRuru Posted October 29, 2012 Posted October 29, 2012 setmapflag .pvpmap$[.@i], mf_pvp; I thought I already did it also Quote
Question
NANORAY
prontera,155,181,5 script Sample 757,{
if( select("PVP Room [ "+getmapusers("prontera")+"/50 ]:Cancel") == 1 )
if( getmapusers("prontera") < 50 )
warp "prontera",0,0;
close;
}
question guys. how to add more maps in this script?
5 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.