--- deliantra/server/pod/events.pod 2007/11/10 22:41:59 1.23 +++ deliantra/server/pod/events.pod 2008/10/06 18:26:35 1.28 @@ -93,9 +93,10 @@ =head3 kill (object hitter -- ) -Invoked whenever an object is dead and about to get removed. Overriding -processing will skip removal, but to do this successfully you have to -objetc from dieing, otherwise the event gets invoked again and again. +Invoked whenever an object was killed (hp < 0 caused by an attack) and is +about to get removed. Overriding processing will skip removal, but to do +this successfully you have to keep the object from dieing, otherwise the +event gets invoked again and again. =head3 apply (object who -- applytype) @@ -111,6 +112,11 @@ =back +=head3 reset (object) + +Invoked whenever the object is initialised on a map after it was +loaded. This can be used to emulate shop-floor behaviour for example. + =head3 throw (object thrower) Invoked when an B is thrown by B. @@ -158,10 +164,16 @@ Invoked whenever an item gets dropped by somebody, e.g. as a result of a drop command. +B If you put the object somewhere else or destroyed the object +you have to override! If you do nothing with the object and override it is +given back to the dropper. =head3 drop_on (floor object who -- ) Invoked whenever some B is being dropped on the B object. +B If you put the object somewhere else or destroyed the object +you have to override! If you do nothing with the object and override it is +given back to the dropper. =head3 say (object player message) @@ -226,10 +238,15 @@ Called when the server is cleaning up, just before it calls exit. -=head3 clock ( ) +=head3 clock () Is invoked on every server tick, usually every 0.12 seconds. +=head3 resource_update () + +Is invoked after each time the server reloads its resources, which is +usually one of the earliest things it does when starting up. + =head2 PLAYER EVENTS