Activity
Member
- Joined
- Apr 7, 2016
- Messages
- 182
- Reaction score
- 22
Hello i have a problem with charges when i'm using spells that depends on skills like sword/axe etc... my weapon is working like this, you charge the weapon with runes like diamonds in real tibia this is script of the weapon
Action.lua
i tried to use spell that depends on magic, i found the charges same thing.
1 rune = 1 charge.
TFS 0.4
Action.lua
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(item.itemid == 2401 and isInArray({2314}, itemEx.itemid)) then
doTransformItem(item.uid, 2433, 1)
doRemoveItem(itemEx.uid, 1)
return true
elseif(item.itemid == 2433 and isInArray({2314}, itemEx.itemid)) then
local subtype = item.type
doTransformItem(item.uid, 2433, subtype+1)
doRemoveItem(itemEx.uid, 1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You may only use it on venvo runes.")
return true
end
return true
end
1 rune = 1 charge.
TFS 0.4