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

Hello.

azzmckay6

Member
Joined
Aug 30, 2020
Messages
59
Reaction score
10
Just here looking for some help from someone out there.. recently got my server up and running but encountering problems when it comes to using potions, it says there is an error within my potions.lua but i have no idea what i am looking out for..

many thanks.
 
Just here looking for some help from someone out there.. recently got my server up and running but encountering problems when it comes to using potions, it says there is an error within my potions.lua but i have no idea what i am looking out for..

many thanks.

Ah well.. guess we'll never know what the error is saying! xD
( dOyOUCaREToPoSTthEeERRoR? )
 
Haha yeah sure, my bad! It's an onuse errors..


Lua Script Error: [Action Interface]
data/actions/scripts/Other/fluids/potions.lua:eek:nUse
data/actions/scripts/Other/fluids/potions.lua:90: attempt to call global 'doTargetCombatHealth' (a nil value)
stack traceback:
[C]: in function 'doTargetCombatHealth'
data/actions/scripts/Other/fluids/potions.lua:90: in function <data/actions/scripts/Other/fluids/potions.lua:72>
 
Haha yeah sure, my bad! It's an onuse errors..


Lua Script Error: [Action Interface]
data/actions/scripts/Other/fluids/potions.lua:eek:nUse
data/actions/scripts/Other/fluids/potions.lua:90: attempt to call global 'doTargetCombatHealth' (a nil value)
stack traceback:
[C]: in function 'doTargetCombatHealth'
data/actions/scripts/Other/fluids/potions.lua:90: in function <data/actions/scripts/Other/fluids/potions.lua:72>

attempt to call global 'doTargetCombatHealth' (a nil value)

This means "I can't find the function doTargetCombatHealth ".
Which TFS version are you using?
 
if potion.health or potion.mana or potion.combat then
if potion.health then
doTargetCombatHealth(0, target, COMBAT_HEALING, potion.health[1], potion.health[2], CONST_ME_MAGIC_BLUE)
end
 
seems like your compat.lua is missing a few thing

Talked to him on PM and according to him those lines were available in the compat.lua.
I wonder if there was a lib-error which caused his current problem 🤔 ( he's using a different edition alkurius 86 )
After replacing doTargetCombatHealth & doTargetCombatMana with doTargetCombat the error had retreated into the deep dark void.
 
Back
Top