LUA:
local function addSoul(player)
local soulring = player:getSlotItem(CONST_SLOT_RING)
if item == soulring then
player:addSoul(player:getSoul() + 2)
end
end
function onEquip(player, item, slot)
addEvent(addSoul, 1000, player)
end
function onDeEquip(player, item, slot)
stopEvent(addSoul)
end
there is basically if the player use the ring add 2 soul points
tfs 1.2
Last edited: