• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua function onDeath & onKill

NIcLOOX

I'm NOOB
Joined
Sep 14, 2008
Messages
66
Reaction score
0
Location
Under the bridge
Well im having problems with an script i made because it is suposed to do a certain action (including summon a creature) when someone kill X monster, BUT, if there is more than 1 person attacking it do the action twice... looks like onKill accept 2 killers or something...

I've seen another script basically like mine, and that script use onDeath instead of onKill, and i thought, oh, it may work, but honestly i dont know if its posible to add a function onDeath to specific monster, like a troll... with onKill is very symple, because it has "target" as parameter, but what about onDeath?, how to use function onDeath on a specific monster?
 
Back
Top