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
On=@Destroy works on characters?
Author Message
Gil Amarth
Journeyman
*

Posts: 189
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: May 2012
Reputation: 0



Post: #1
On=@Destroy works on characters?
On=@Destroy works on characters?

I can use it on my items, but I don´t know why on characters doesn´t works.
Anyone have managed to use it?
11-14-2012 01:56 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: On=@Destroy works on characters?
Because you don't @destroy characters, assuming you are talking about when a player deletes one of their characters what you are looking for is:

f_onchar_delete

found in sphere_serv_triggers.scp

[Image: 2nis46r.jpg]
11-14-2012 07:13 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Ben
Sphere Developer
*****

Posts: 612
Likes Given: 2
Likes Received: 123 in 70 posts
Joined: Mar 2010
Reputation: 18

SphereCommunity

Post: #3
RE: On=@Destroy works on characters?
Actually, @Destroy should work on Characters...

AxisII's current version: 2.0.4j
AxisII SourceCode on Github
AxisII up to date changelog
11-14-2012 10:52 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Gil Amarth
Journeyman
*

Posts: 189
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: May 2012
Reputation: 0



Post: #4
RE: On=@Destroy works on characters?
When I say characters, I´m saying mostly npcs. I know players characters don´t delete in a normal way.

I put this simple trigger under a chardef definition of a dog.

On=@Destroy
SERV.LOG Destroy trigger works!

And nothing in my console. I understand that this triggers fires when a character is deleted from the world. And I use a .remove over them, and the trigger doesn´t fires.
It´s for my follower control system, on=@death works fine, on=@petdesert too, and in theory on=@destroy would not be necessary in most circunstances, but for me it´s most secure to check it if anything strange happens.

But this don´t work for me except for items. So I ask if anybody experience this. (Sphereserver last realease)

Forget it, it works now.

Maybe my sphere needed a reboot or anything else but today works perfectly. Lol
(This post was last modified: 11-14-2012 05:34 PM by Gil Amarth.)
11-14-2012 05:25 PM
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)