Jump to content
  • 0

Check players at the same guild in the same map


Question

Posted

Hello, I want make a script like this:

There is a NPC that warps you, but before warping you, the npc checks if there is already 5 members of your guild at the map that the NPC will warps you.

Ex:

I talk with the npc, he checks if there is already 5 members of your guild at morocc (for example), if there isn't 5 members of your guild at morocc he will teleports you, but if there is already 5 members of your guild at morocc he will display an error message.

Can someone help me?

Grateful,

Davros.

2 answers to this question

Recommended Posts

Posted
*getmapguildusers(<mapname>,<guild id>)

Returns the amount of characters from the specified guild on the given map.

Example:

mes "You have "+getMapGuildUsers("prontera",getcharid(2))+" guild members in Prontera.";

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