fire_shock666
New Member
hello there
is it possible to add with this script a times that will set the wall back after 10 minutes?
is it possible to add with this script a times that will set the wall back after 10 minutes?
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
stonepos = {x=884, y=854, z=9, stackpos=1}
getpos = getThingfromPos(stonepos)
if item.uid == 20010 and item.itemid == 1945 and getpos.itemid == 1304 then
doRemoveItem(getpos.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 20010 and item.itemid == 1946 and getpos.itemid == 0 then
doCreateItem(1304,1,stonepos)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry not possible.")
end
return 1
end