Jump to content
  • 0

Help with Anieruru's Emperium BG


sotf

Question


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  173
  • Reputation:   9
  • Joined:  11/14/12
  • Last Seen:  

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

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   2
  • Joined:  04/07/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  173
  • Reputation:   9
  • Joined:  11/14/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  173
  • Reputation:   9
  • Joined:  11/14/12
  • Last Seen:  

bump! Anyone? 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  173
  • Reputation:   9
  • Joined:  11/14/12
  • Last Seen:  

will try for another bump, just in case someone will help.

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