SphereCommunity
[FUNCTION] Events Functions - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Submissions (/Forum-Script-Submissions)
+--- Thread: [FUNCTION] Events Functions (/Thread-FUNCTION-Events-Functions)



[FUNCTION] Events Functions - pointhz - 08-16-2015 01:23 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.

_______________________________________________________________

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.


RE: [FUNCTION] Events Functions - Ultima One - 08-17-2015 07:25 PM

Good for end of pvp events Smile