freehit21 Posted May 12, 2014 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 68 Reputation: 0 Joined: 08/27/13 Last Seen: August 21, 2015 Share 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 Link to comment Share on other sites More sharing options...
0 Skorm Posted May 12, 2014 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share 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 Link to comment Share on other sites More sharing options...
freehit21 Posted May 12, 2014 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 68 Reputation: 0 Joined: 08/27/13 Last Seen: August 21, 2015 Author Share Posted May 12, 2014 its not working sir.. after the "next" button the npc stops responding in it. Quote Link to comment Share on other sites More sharing options...
Skorm Posted May 12, 2014 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted May 12, 2014 Replace: .@select$ += "Room "+.@i+" ["+getmapusers(.maps$[.@i])+"/"+.rooms[.@i]+"]:"; With: .@select$ = .@select$ + "Room "+.@i+" ["+getmapusers(.maps$[.@i])+"/"+.rooms[.@i]+"]:"; Quote Link to comment Share on other sites More sharing options...
Skorm Posted May 15, 2014 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share 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 Link to comment Share on other sites More sharing options...
Question
freehit21
any one help me here in using this script. i found this somewhere on the forums.
-----------------------------------------------------------------------------
Link to comment
Share on other sites
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.