Sigoles
Discord: @sigoles
- Joined
- Nov 20, 2015
- Messages
- 1,209
- Solutions
- 2
- Reaction score
- 154
error:
script:
tfs 1.x
help? I dont know how reproduce
Code:
Lua Script Error: [CreatureScript Interface]
data/creaturescripts/scripts/onDeath/Kollos.lua:onDeath
data/creaturescripts/scripts/onDeath/Kollos.lua:5: attempt to index local 'killer' (a nil value)
stack traceback:
[C]: in function '__index'
data/creaturescripts/scripts/onDeath/Kollos.lua:5: in function <data/creaturescripts/scripts/onDeath/Kollos.lua:1>
script:
LUA:
function onDeath(creature, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified)
local player = Player(killer)
if killer:isPlayer() then
if player:getStorageValue(2006170043) < 10 then
player:setStorageValue(2006170043, math.max(0, player:getStorageValue(2006170043)) + 1)
end
end
return true
end
tfs 1.x
help? I dont know how reproduce
Last edited by a moderator: