Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[FUNCTION] GM Functions
Author Message
pointhz
Journeyman
*

Posts: 148
Likes Given: 1
Likes Received: 55 in 28 posts
Joined: Oct 2013
Reputation: 1



Post: #1
[FUNCTION] GM Functions
Hello everyone,

I'm going to share some scripts that although have been made for a very peculiar kind of server, some of you may find them interesting and useful and could adapt them to your own servers.

_______________________________________________________________

To make your life easier as a Game Master, in this script you can find the following functions:

.moveplayer <Player Name> - This function will move the desired player (Regardless if he is logged in or out) if he is within your screen (18 tiles radius) to your current location. Works even if the player is incognito.

.goplayer <Player Name> - This function will teleport yourself to the desired player regardless if he is logged in or out.

.goclient <Player Name> - This function will teleport yourself to the desired player if he is logged in.

The reason you shouldn't use .goplayer to go to a logged in player, using .goclient instead, is that .goplayer only loops through players in the same Map where you are, while .goclient loops through all online players regardless of the map they are at.

.skilllockstatus <SKILL KEY> - Targetting a player with this function will return the lock status of the skill with the <SKILL KEY> you provided (Must be a number between 0 and 47, both included).

.checkaccountcharacters <ACCOUNT NAME> - This function will return the name, location and online status of all characters belonging to the provided account name.

.playersummon <PLAYER NAME> - Summons an online player to your location.

.playerdismiss - Dismiss a previous summoned player to his location before being summoned.

.gmlist - Returns the list of online staff members with PLEVEL <= than yours or with PLEVEL > than yours but not INVIS.

gmlogout / gmlogin - Trigger those functions @login and @logout and staff members will be warned when another staff member with PLEVEL <= than theirs logouts or logins. In this functions there is no INVIS check like in .gmlist


Attached File(s)
.scp  p_functions.scp (Size: 9.85 KB / Downloads: 28)
(This post was last modified: 08-16-2015 02:40 AM by pointhz.)
08-16-2015 02:10 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)