Jump to content
  • 0

Question

Posted

Hello,

I create an Event at the Moment and i want to limit the participant. How can i do this?

At the moment i have this:

prontera,148,178,5	script	Radin	405,{
mes	"[Radin]";
mes "Do you want to join the Event?";
	switch(select("Yes.:No.")){
		case 1: 
	{   
	mes "Great!";
	next;
	mes "I will warp you to the waitingroom.";
	warp waitroom,26,0; 
// Now I want to Count how many player allready joined the Event, so that i can trigger the stop command and disable the npc for joining
	close;
	}
		case 2:
	{ close; }
}
}

4 answers to this question

Recommended Posts

Posted

You can keep a list (array or SQL, depending on what level of permanence you want) of all the players who join, and active a PCLogoutEvent to check if the player was part of the event + remove their name from the list if they were.

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