in BcAnyoneDied.lua i wrote:
in login.lua i wrote:
in creaturescripts.lua i wrote:
P.S. TFS Version 0.2.3 (Mystic Spirit)
Code:
function onDeath(cid, target)
if isPlayer(target) == TRUE then
broadcastMessage(""..getCreatureName(target).." killed "..getCreatureName(target).." ["..getPlayerLevel(cid).."]", MESSAGE_STATUS_WARNING)
end
return TRUE
end
in login.lua i wrote:
registerCreatureEvent(cid, "BcAnyoneDied")
in creaturescripts.lua i wrote:
I am trying to get a script that will broadcast whenever a player dies by a monster. The code above does not do anything when I have it on server...Thanks for any help!<event type="death" name="BcAnyoneDied" script="BcAnyoneDied.lua"/>
P.S. TFS Version 0.2.3 (Mystic Spirit)
Last edited: