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-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)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






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

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



Post: #1
[FUNCTION] Events 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.

_______________________________________________________________

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.


Attached File(s)
.scp  p_events_functions.scp (Size: 7.91 KB / Downloads: 39)
(This post was last modified: 08-16-2015 02:40 AM by pointhz.)
08-16-2015 01:23 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 2 users Like pointhz's post
Ultima One
Journeyman
*

Posts: 238
Likes Given: 7
Likes Received: 10 in 6 posts
Joined: Jan 2013
Reputation: 6

Ultima One

Post: #2
RE: [FUNCTION] Events Functions
Good for end of pvp events Smile

ULTIMA ONE
The modern, sphere powered Ultima Online server
08-17-2015 07:25 PM
Visit this user's website 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)