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






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
sphere_combat >.<
Author Message
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: sphere_combat >.<
You can put an event in whatever file you want.
Example:

Create a new file named new_events.scp (or whatever name you want).

Inside the file write the event you want and the triggers:
Code:
[EVENTS e_players]
ON=@HitTry
serv.log HitTry from e_players event fired!

Now we have to install the events on players, a quick way is to open sphere.ini file and search the following line:
Code:
// Events related to all players
//EventsPlayer=
Uncomment the EventsPlayer line and add your event name to it.
Result will be:
Code:
// Events related to all players
EventsPlayer=e_players
In this way all the players will automatically have the events installed.
Then resync.

Notice that if we have created the new file (new_events.scp) when sphere was running, we need to load it.
In the sphere console type:
load new_events.scp (default path is "scripts", if the file is in a different folder we will need to type load myfolder/new_events.scp

File will be loaded and ready to use by Sphere.
05-04-2017 07:18 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
sphere_combat >.< - Murmur - 05-04-2017, 01:26 PM
RE: sphere_combat >.< - Coruja - 05-04-2017, 02:30 PM
RE: sphere_combat >.< - Murmur - 05-04-2017, 03:25 PM
RE: sphere_combat >.< - darksun84 - 05-04-2017 07:18 PM
RE: sphere_combat >.< - Murmur - 05-05-2017, 01:47 PM
RE: sphere_combat >.< - darksun84 - 05-05-2017, 06:41 PM
RE: sphere_combat >.< - Murmur - 05-06-2017, 02:29 PM
RE: sphere_combat >.< - bmanny - 05-08-2017, 06:25 AM
RE: sphere_combat >.< - Murmur - 05-08-2017, 07:19 AM
RE: sphere_combat >.< - bmanny - 05-08-2017, 07:21 AM

Forum Jump:


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