Jump to content
  • 0

Help with Anieruru's Emperium BG


Question

Posted

Good day rAthena! I am using this script by Annieruru. When I start the game, it enables two pubs where players enter to join the game. 

 

What I need help about is, instead of having two pubs, is it possible to have just 1 pub where players can come in to join and just randomly distribute players to two seperate teams?

 

Thanks for those who are going to help :)

bg_emp0.3.txt

4 answers to this question

Recommended Posts

Posted (edited)
Put the join chat with capacity for only 1 player.
 
waitingroom "MyChatTitle", 2, "SomeNPC::OnSomeoneEnteredChat",1;
 
OnSomeoneEnteredChat:
set .team, (!.team);
if(.team){
set $@Team1, waitingroom2bg("<mapname>",x,y,"SomeNPC2::OnLogout","SomeNPC2::OnDie");
warpwaitingpc "<team1reagrouplocation>", x,y;
}else{
set $@Team2, waitingroom2bg("<mapname>",x,y,"SomeNPC2::OnLogout","SomeNPC2::OnDie");
warpwaitingpc "<team2reagrouplocation>", x,y;
}
end;

btw, you said randomly and I didn't pay too much attention to that, sorry. The code above is not entirely random, since it will warp 1 person to each team so the teams keep the same amount of players when the event starts.

Edited by Neko
Posted

Thank you, I'll try this one :)


I tried but this script is just too complicated for me, I don't even know where to start, sorry. I hope someone could help me on this one. @_@

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