Hello, I added this code (Damage type buffs (onuse) by Xikini) on my server and it works normally when it is a weapon with elemental damage, but when using a spell, like the exori flam, for example, I get the return of the following error:
How can I make sure the bonus is applied to both the weapon and the spell?
Code:
Lua Script Error: [Scripts Interface]
C:\Users\lgfav\Desktop\1220 otservbr-global-develop\data\scripts\actions\new\onUse_damage_buff_potion.lua:callback
...op\data\scripts\actions\new\onUse_damage_buff_potion.lua:59: attempt to index a nil value
stack traceback:
[C]: in function '__index'
...op\data\scripts\actions\new\onUse_damage_buff_potion.lua:59: in function 'damageCalculator'
...op\data\scripts\actions\new\onUse_damage_buff_potion.lua:73: in function <...op\data\scripts\actions\new\onUse_damage_buff_potion.lua:70>
[C]: at 0x7ff7054e60c0
How can I make sure the bonus is applied to both the weapon and the spell?
Lua - Xikini's Free Scripting Service TFS 1.3
Please request actions / creatureevents / globalevents / npcs / movements / talkactions Do not request spells / weapons / monsters / source editing / database queries My goal of this thread is to learn TFS 1.3 scripting. ------------------------------------ Support If you have an issue with...
otland.net