Hello i tried to implement this to latest tfs pull. I had no errors during compilation or during server startup.
For testing i was using action script posted somewhere here on otland. The problem is when i use this action script it shows 0 error in log, the magic effect will appear but the target item remains the same no bonuses.
<action itemid="8300" script="custom/upgrade.lua" />
EDIT:
The sword fighting is added (so its working) i just cant see the description of item with bonuses
For testing i was using action script posted somewhere here on otland. The problem is when i use this action script it shows 0 error in log, the magic effect will appear but the target item remains the same no bonuses.
<action itemid="8300" script="custom/upgrade.lua" />
Lua:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
local position = player:getPosition()
target:setAbility(ITEM_ABILITY_ABSORBPHYSICAL, 10)
target:setAbility(ITEM_ABILITY_SKILL_SWORD, 5)
position:sendMagicEffect(CONST_ME_MAGIC_RED)
return true
end
The sword fighting is added (so its working) i just cant see the description of item with bonuses