Hey Otland,
I've a short problem. Can u tell me why it doesnt work?
(Using The Forgotten Server 0.3.5)
In movements.xml
In movements\scripts\elitespellbooks.lua
Thanks
I've a short problem. Can u tell me why it doesnt work?
(Using The Forgotten Server 0.3.5)
In movements.xml
Code:
<movevent event="Equip" itemid="2213" slot="ring" function="onEquipItem" script="elitespellbooks.lua" />
<movevent event="DeEquip" itemid="2215" slot="ring" function="onDeEquipItem" script="elitespellbooks.lua" />
In movements\scripts\elitespellbooks.lua
Code:
function onEquip(cid, item, slot)
doPlayerSetStorageValue(cid, 849218, 1)
return true
end
function onDeEquip(cid, item, slot)
doPlayerSetStorageValue(cid, 849218, 0)
return true
end
Thanks
Last edited: