Jump to content
  • 0

Player Participation in map!


Question

Posted (edited)

Hi, anyone know how to do for example when the event is closed the announcer will appear at the top how many participants in the map event thanks!!!

 

announce "Poring Catcher : is now Closed!",bc_all | bc_blue;

 

Screenshot_20210106-231006_1.jpg

Edited by Chasewalk

4 answers to this question

Recommended Posts

  • 0
Posted
announce "Poring Catcher is now closed!"+getmapusers("prontera")+" Player(s) will participate ",bc_all | bc_blue;

If you want like on your screenshot.

 

6 hours ago, Chasewalk said:

announce "Poring Catcher : is now Closed!",bc_all | bc_blue;

 

 

  • 1
Posted
*getusers(<type>)

This function will return a number of users on a map or the whole server. What
it returns is specified by Type.

Type can be one of the following values, which control what will be returned:

    0 - Count of all characters on the map of the invoking character.
    1 - Count of all characters in the entire server.
    8 - Count of all characters on the map of the NPC the script is
        running in.

---------------------------------------

*getmapusers("<map name>")

This function will return the number of users currently located on the specified
map.

This is used officially in PVP scripts to check whether a room is filled to capacity.

---------------------------------------

*getareausers("<map name>",<x1>,<y1>,<x2>,<y2>)

This function will return the count of connected characters which are located
within the specified area - an x1/y1-x2/y2 square on the specified map.

This is useful for maps that are split into many buildings, such as all the
"*_in" maps, due to all the shops and houses.

 

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