D
Deleted member 141899
Guest
Hello, can someone help me with this script to work in tfs 1.0?
I tried to put "local attacker = Monster(cid)" but dont works..
I tried to put "local attacker = Monster(cid)" but dont works..
Code:
function onChangeHealth(cid, creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin)
if attacker:getMonster() and attacker:getName() == "Zumbi" and creature:isPlayer() then
Code:
Lua Script Error: [CreatureScript Interface]
data/creaturescripts/scripts/ZE_creaturescript.lua:onChangeHealth
data/creaturescripts/scripts/ZE_creaturescript.lua:9: attempt to index local 'attacker' (a nil value)
stack traceback:
[C]: in function '__index'
data/creaturescripts/scripts/ZE_creaturescript.lua:9: in function <data/creaturescripts/scripts/ZE_creaturescript.lua:6>
Last edited by a moderator: