• 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!

Error on console script stats

wafuboe

Member
Joined
Dec 24, 2010
Messages
881
Solutions
2
Reaction score
22
Hello im trying to install this stat system on my ot tfs 1.3 but i got this error
CreatureEvent - [TFS 1.1] Ultimate item stat system (elements, skills, exp, loot and more)

Error:
Lua Script Error: [CreatureScript Interface]
data/creaturescripts/scripts/stats.lua:eek:nLogin
data/creaturescripts/scripts/stats.lua:22: attempt to call global 'stat_onLogin'
(a nil value)
stack traceback:
[C]: in function 'stat_onLogin'
data/creaturescripts/scripts/stats.lua:22: in function <data/creaturescr
ipts/scripts/stats.lua:21>

Script
Code:
function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin)
    return stat_onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin)
end
function onManaChange(creature, attacker, manaChange, origin)
    return stat_onManaChange(creature, attacker, manaChange, origin)
end
function onPrepareDeath(creature, lastHitKiller, mostDamageKiller)
    return stat_onPrepareDeath(creature, lastHitKiller, mostDamageKiller)
end
function onKill(player, target, lastHit)
    return stat_onKill(player, target, lastHit)
end
function onDeath(creature, corpse, lasthitkiller, mostdamagekiller, lasthitunjustified, mostdamageunjustified)
    return stat_onDeath(creature, corpse, lasthitkiller, mostdamagekiller, lasthitunjustified, mostdamageunjustified)
end
function onLogin(player)
    return stat_onLogin(player)
end
 
Back
Top