nicolasdasd
New Member
- Joined
- Feb 26, 2013
- Messages
- 7
- Reaction score
- 1
Hello, I present my problem since I have the quest "demon helmet", and when you use the lever, the stone is removed, however it does not return unless you use the lever again..
Would it be possible that using the lever removes the stone and you have 45 seconds to go to the chests?
These are the respective scripts:
En actions
script:
Thank you !
Would it be possible that using the lever removes the stone and you have 45 seconds to go to the chests?
These are the respective scripts:
En actions
LUA:
<action uniqueid="2000" script="switchdemon.lua" />
script:
Code:
function onUse(cid, item, frompos, item2, topos)
piece1pos = {x=1059, y=859, z=7, stackpos=1}
rockpos = {x=1059, y=859, z=7, stackpos=1}
getpiece1 = getThingfromPos(piece1pos)
if item.uid == 2000 and item.itemid == 1945 and getpiece1.itemid == 1355 then
doRemoveItem(getpiece1.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 2000 and item.itemid == 1946 then
doCreateItem(1355,1,rockpos)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendTextMessage(cid,22,"Sorry, not possible.")
end
return 1
end
Thank you !