freehit21 Posted May 12, 2014 Posted May 12, 2014 any one help me here in using this script. i found this somewhere on the forums. ----------------------------------------------------------------------------- payon,153,235,4 script DB / MVP Warper 859,{ mes "[Dead Branch Room Warper]"; mes "Which dead branch room would you like to be warped to?"; next; menu "Room 1 ["+getmapusers("06guild_01")+"]",pvp1,"Room 2 ["+getmapusers("06guild_02")+"]",pvp2,"Room 3 ["+getmapusers("06guild_03")+"]",pvp3,"Room 4 ["+getmapusers("06guild_04")+"]",pvp4,"Room 5 ["+getmapusers("06guild_05")+"]",pvp5; pvp1: warp "06guild_01",0,1; end; pvp2: warp "06guild_02",0,0; end; pvp3: warp "06guild_03",0,0; end; pvp4: warp "06guild_04",0,0; end; pvp5: warp "06guild_05",0,0; end; } --------------------------------------------------------------------------------------------- can you please improve this script in putting maximum players every room like room 1 is the max player can enter there are 5 people. room 2 max players can enter is 4.. im countin on you guys. Quote
0 Skorm Posted May 12, 2014 Posted May 12, 2014 payon,153,235,4 script DB/MVP Warper 859,{ mes "[Dead Branch Room Warper]"; mes "Which dead branch room would you like to be warped to?"; next; .@len = getarraysize(.maps$); while(.@i++<.@len) .@select$ += "Room "+.@i+" ["+getmapusers(.maps$[.@i])+"/"+.rooms[.@i]+"]:"; select(.@select$); jump_zero((getmapusers(.maps$[@menu])<.rooms[@menu]),L_NoRoom); warp(.maps$[@menu],0,0); end; L_NoRoom: mes "[Dead Branch Room Warper]"; mes "I'm sorry but the maximum users for Room "+@menu+" have been reached."; close; OnInit: setarray .maps$[1], "06guild_01", "06guild_02", "06guild_03", "06guild_04", "06guild_05"; setarray .rooms[1], 5 , 4 , 4 , 4 , 4 ; } Quote
freehit21 Posted May 12, 2014 Author Posted May 12, 2014 its not working sir.. after the "next" button the npc stops responding in it. Quote
Skorm Posted May 12, 2014 Posted May 12, 2014 Replace: .@select$ += "Room "+.@i+" ["+getmapusers(.maps$[.@i])+"/"+.rooms[.@i]+"]:"; With: .@select$ = .@select$ + "Room "+.@i+" ["+getmapusers(.maps$[.@i])+"/"+.rooms[.@i]+"]:"; Quote
Skorm Posted May 15, 2014 Posted May 15, 2014 its not working sir.. after the "next" button the npc stops responding in it. Did this work for you or no? I'm setting this as solved until you provide an answer. Quote
Question
freehit21
any one help me here in using this script. i found this somewhere on the forums.
-----------------------------------------------------------------------------
4 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.