Jump to content
  • 0

hello RA DEVS im here again


freehit21

Question


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  68
  • Reputation:   0
  • Joined:  08/27/13
  • Last Seen:  

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
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1282
  • Reputation:   393
  • Joined:  02/03/12
  • Last Seen:  


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 ;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  68
  • Reputation:   0
  • Joined:  08/27/13
  • Last Seen:  

its not working sir.. after the "next" button the npc stops responding in it.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1282
  • Reputation:   393
  • Joined:  02/03/12
  • Last Seen:  

Replace:

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

With:

.@select$ = .@select$ + "Room "+.@i+" ["+getmapusers(.maps$[.@i])+"/"+.rooms[.@i]+"]:";
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1282
  • Reputation:   393
  • Joined:  02/03/12
  • Last Seen:  

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.

Link to comment
Share on other sites

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.

×
×
  • Create New...