Code:
--Full Ancient Helmet Quest by Evil Hero--
function onUse(cid, item, frompos, item2, topos)
oldhelmetpos = {x=138, y=396, z=6, stackpos=1}
newhelmetpos = {x=139, y=396, z=6, stackpos=1}
rubypos = {x=137, y=396, z=6, stackpos=1}
getoldhelmet = getThingfromPos(oldhelmetpos)
getnewhelmet = getThingfromPos(newhelmetpos)
getruby = getThingfromPos(rubypos)
if item.uid == 5033 and item.itemid == 1945 and getoldhelmet.itemid == 2342 and getruby.itemid == 2156 then
doRemoveItem(getoldhelmet.uid,1)
doSendMagicEffect(oldhelmetpos,23)
doRemoveItem(getruby.uid,1)
doSendMagicEffect(rubypos,23)
doCreateItem(2343,1,newhelmetpos)
doSendMagicEffect(getnewhelmet,23)
else
doPlayerSendTextMessage(cid,22,"You need a Big Ruby to incrase your Helmet!")
end
return 1
end
whats wrong with this script? its for tfs and whenever i use the lever it tells me that i need a bigger ruby, when ive got the right ruby there.
Last edited: