[FUNCTION] GM Functions - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Submissions (/Forum-Script-Submissions) +--- Thread: [FUNCTION] GM Functions (/Thread-FUNCTION-GM-Functions) |
[FUNCTION] GM Functions - pointhz - 08-16-2015 02:10 AM 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 |