Jump to content



Recommended Posts

I didn't see this on forum, but found it when searching Announcements for something unrelated.
It still works, I just tried it. :)

Check group location via MD Script
A new function was added to allow you to check if a given group of people are in that moment online in a given location on tha map. Placed on an item this could allow for example, items that work only when a team of players are together in the same place (team quest). Other possible uses are to unlock certain things if all the players from a "circle" gather in the same place to open a chest box. Remote checking if one single player or multiple players are online in a predefined spot can also have lots of creative uses.

Syntax and sample code:
@vn = 'Super Bozo,Nickmonster,Hocku,Kylar Stern,Grido,sinner,';
@va = mds_check_group_location(@vn,'1_-2x-1_2');
echo 'Group online in Paper Cabin '.@va.'/6';

mds_check_group_location(playernames, location) will return the number of players from the given list that are currently online in the given location. You can pass the player list as a comma separated list OR as an array, both work. the second parameter should be the location coordinates of the place you want to check. This function should not be used to check in what location a player (or group) is, but to check if a player is or isn't in one place. (Usage limit of 4 automatically apply, editors found to use ways to avoid such restrictions will lose their editing ability)

Edited by Maebius
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.

Reply to this topic...

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

  • Forum Statistics

    Total Topics
    Total Posts
  • Recently Browsing

    • No registered users viewing this page.
  • Upcoming Events

    No upcoming events found
  • Recent Event Reviews

  • Create New...