SphereCommunity
@KILL not firing - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: @KILL not firing (/Thread-KILL-not-firing)

Pages: 1 2


@KILL not firing - WRWR - 08-27-2012 08:11 PM

i dont know what happens but @KILL not firing always...WHY?
it firing sometimes but rarely

just want to use @KILL for killcount in quests...


RE: @KILL not firing - Shaklaban - 08-27-2012 08:31 PM

you need to use @death trigger, @kill is not good for that kind of purpose.


RE: @KILL not firing - WRWR - 08-27-2012 08:43 PM

@DEATH
I The character about to die.
SRC The character about to die.

who is killer?


RE: @KILL not firing - Shaklaban - 08-27-2012 08:47 PM

you can use attacker function:


27-11-2006, Vjaka
- Added: ATTACKER keyword to access last attackers of a character. Usage:
<attacker> returns amount of attackers
<attacker.x> returns UID of the attacker (or 0 if there is no attacker)
<attacker.x.dam> returns total damage done by the attacker

also there are attacker.max and attacker.last


RE: @KILL not firing - WRWR - 08-27-2012 08:53 PM

how to use it?


RE: @KILL not firing - admin phoenix - 08-27-2012 08:59 PM

local.name=<uid.<attacker.last>.name>
maybe?
never used it but this must work


RE: @KILL not firing - Shaklaban - 08-27-2012 08:59 PM

PHP Code:
on=@death
ref1
=<attacker.max>
if <
ref1//if its npc check still alive
    
serv.log <ref1.nameis attacker which is give most damage
endif

ref1=<attacker.last>
if <
ref1
    
serv.log <ref1.nameis attacker which is give last damage
endif

for 
<attacker>
    
ref1=<attacker.<local._for>> 
    if <
ref1>
        
serv.log <ref1.nameis give me <attacker.<local._for>.damdamage
    
endif
endfor

//also you can try to look for act but its not documented so you need toı check it with ISCHAR 

if <act>
    if <
act.ischar>
        
serv.log <act.nameseems to give me last damage
    
endif
endif 



RE: @KILL not firing - admin phoenix - 02-24-2013 08:03 PM

so, what about this one?
I posted to the bugtracker and now it´s gone.
someone deleted it Sad


RE: @KILL not firing - Ben - 02-24-2013 11:47 PM

It's not deleted, it's closed. It's not a bug.
It has been mentioned multiple times that this trigger only fires when you are the agreessor.


RE: @KILL not firing - admin phoenix - 02-25-2013 07:29 AM

thanks ben for your answer