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-nmm6 (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-nmm6 (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-nmm6 (Linux)
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.
I don't know about you, but as for myself, I think events should be held very often and shouldn't be an hassle for staff members.
That said, I had the need to script some functions in order to get things going faster.
In this script you can find the following functions:
.pickcorpses - This will bounce any player corpse with 2 or more items inside it found within a 500 tiles radius to your backpack.
.dropcorpses - This will drop every player corpse found in your backpack at your feet.
.massresurrect - If no <ARGS> are given, dead players within a 500 tiles radius will be teleported to your current location and resurrected. However, if <ARGS>==1, dead players within a 500 tiles radius will be teleported to their body (If they have ONLY one body within a 500 tiles radius; Else they will be teleported to your current location.) and resurrected in its location.
.massonlinestatus - This will check players within a 500 tiles radius for their online/offline status, returning all their names for both cases. It's always easier to check if one or several players crashed.
.eventrules - This function will open a dialog where you can enter the event rules you desire. Once you are done, press "Okay" and that same dialog will be displayed to logged in players within a 100 tiles radius. Then they will also have to press "Okay" in order to accept the rules and get rid of the dialog. There is no penalty for not clicking on it, it's just easier to spread because it's not on the journal being spammed.
(This post was last modified: 08-16-2015 02:40 AM by pointhz.)
08-16-2015 01:23 AM
The following 2 users Like pointhz's post:2 users Like pointhz's post Lincoln (10-27-2016), Ultima One (08-17-2015)