<action itemid="SCROLLID" script="scrolluse.lua"/>
function onUse(cid, item, fromPosition, itemEx, toPosition)
if itemEx.itemid == SCROLLID then
if getPlayerItemCount(cid, GOLDENARMORID) < 1 then
doPlayerSendTextMessage(cid,22,'You dont have golden armor.')
else
doRemoveItem(cid, item.uid, 1)
doPlayerRemoveItem(cid, GOLDENARMORID, 1)
doPlayerAddItem(cid,ITEMID,1)
end
end
end
tyy!Edited my post..![]()