Nope, you use a hota on small ruby.technically in rl u use a small ruby on the hota.
local hota = 2343
function onUse(cid, item, fromPosition, itemEx, toPosition)
if itemEx.itemid == 2147 then
if doRemoveItem(itemEx.uid,2) == TRUE then
doTransformItem(item.uid, hota)
doSendMagicEffect(toPosition, 13)
end
else
doPlayerSendCancel(cid,"You cannot use this object.")
end
return TRUE
end
Tibiawiki said:Each small ruby will only last 30 minutes in the helmet.
It is.It's not like rl tibia.
<item id="2342" article="a" name="helmet of the ancients">
<attribute key="description" value="The gem of the helmet is burned out and should be replaced."/>
<attribute key="weight" value="2760"/>
<attribute key="armor" value="8"/>
<attribute key="slotType" value="head"/>
</item>
<item id="2343" article="a" name="helmet of the ancients">
<attribute key="description" value="The gem is glowing with power."/>
<attribute key="weight" value="2760"/>
<attribute key="armor" value="11"/>
<attribute key="slotType" value="head"/>
<attribute key="duration" value="1800"/>
<attribute key="decayTo" value="2342"/>
</item>
function onUse(cid, item, fromPosition, itemEx, toPosition)
if itemEx.itemid == 2147 then
if itemEx.type >= 2 then
doRemoveItem(itemEx.uid,2)
doTransformItem(item.uid, 2343)
doSendMagicEffect(toPosition, 13)
else
doPlayerSendCancel(cid,"You cannot use this object.")
end
else
doPlayerSendCancel(cid,"You cannot use this object.")
end
return TRUE
end
Good work!
Thanks tekman also