Jump to content
  • 0
JoyRo

Show Mapusers

Question

Hello,

 

i have a script that shows you how many players are online at a certain map.
But i am getting a script_rid2sd fatal error player not attached.

Can any 1 help me.

Also when i click the npc it warps me to the area.

//========= Event Area========
prontera,167,169,3	script	Event Area	2_BULLETIN_BOARD,{
	OnInit:	
	OnTimer1000:
	delwaitingroom;
	waitingroom getmapusers("prontera")+" player"+( getmapusers("prontera") > 1 ? "s":"") +" in Event Area", 0;
OnTouch:
        warp "prontera",99,121;
        end;
}

 

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

imho the script is not meet what you need, try this

//========= Event Area========
prontera,167,169,3	script	Event Area	2_BULLETIN_BOARD,{
	warp "prontera",99,121;
	end;

OnInit:	
OnTimer1000:
	delwaitingroom;
	waitingroom getmapusers("prontera")+" player"+( getmapusers("prontera") > 1 ? "s":"") +" in Event Area", 0;
	initnpctimer;
	end;
}

OnTouch is used if you want script trigered when someone appeared on area around the npc, and if you use the OnTimerXX: you need to init the timer, script above will re-check the amount of player on prontera every 1 second and you will be warped when you click the npc

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.