Jump to content
  • 0

No one is allowed to enter the chatroom if Battlegrounds hasn't started


ragnazorg

Question


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  250
  • Reputation:   44
  • Joined:  11/13/11
  • Last Seen:  

Hello,

I am using eamod and I have my own randomizer for the Battlegrounds where in they can join Battlegrounds even if it already started. It uses a chatroom to send people in the Battleground. What I want the script to do is kick the player inside the pub if the Battleground mode hasn't started yet.

Thank you.

bat_room,155,123,4    script    Rushb::RushbR_Random    852,{
   end;
OnInit:
   waitingroom "Rush Third",1,"Rushb::OnDoB_RushbR",1;
   end;
}

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  379
  • Reputation:   304
  • Joined:  11/10/11
  • Last Seen:  

Why not specify the second argument (user limit) to 0 to avoid users to join the pub and delete the recreate the pub (delwaitingroom - waitingroom) when the battleground start (and change the "user limit" to 1).

  • Upvote 2
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  615
  • Reputation:   201
  • Joined:  11/09/11
  • Last Seen:  

I'm assuming waitingroom_kickall() works...

OnDoB_RushbR: 
 if (// whatever var you use to determine if bg started) {
   waitingroom_kickall "Rushb::RushR_Random";
 }
 // other functions

Ack, KeyWorld's solution is better, I was thinking that as well though :)

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