Jump to content
  • 0

Question

Posted

any one help me here in using this script. i found this somewhere on the forums. :D

 

 

 

-----------------------------------------------------------------------------

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. :D

4 answers to this question

Recommended Posts

  • 0
Posted


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 ;

}

Posted

Replace:

.@select$ += "Room "+.@i+" ["+getmapusers(.maps$[.@i])+"/"+.rooms[.@i]+"]:";

With:

.@select$ = .@select$ + "Room "+.@i+" ["+getmapusers(.maps$[.@i])+"/"+.rooms[.@i]+"]:";
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...