The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






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: 29)
(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 


Messages In This Thread
[FUNCTION] GM Functions - pointhz - 08-16-2015 02:10 AM

Forum Jump:


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