My desert quest don't are working:
Code:
<action uniqueid="9010" script="desert_quest.lua" />
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local getItem1 = getThingfromPos({x=1927, y=1768, z=9, stackpos=255})
local getPlayer1 = getThingfromPos({x=1929, y=1768, z=9, stackpos=253})
local getItem2 = getThingfromPos({x=1933, y=1761, z=9, stackpos=255})
local getPlayer2 = getThingfromPos({x=1933, y=1763, z=9, stackpos=253})
local getItem3 = getThingfromPos({x=1939, y=1768, z=9, stackpos=255})
local getPlayer3 = getThingfromPos({x=1937, y=1768, z=9, stackpos=253})
local getItem4 = getThingfromPos({x=1933, y=1774, z=9, stackpos=255})
local getPlayer4 = getThingfromPos({x=1933, y=1772, z=9, stackpos=253})
if ((item.uid == 9010) and (item.itemid == 1945) and (getItem1.itemid == 2674) and (getItem2.itemid == 2455) and (getItem3.itemid == 2175) and (getItem4.itemid == 2376) and (getPlayer1.itemid > 0) and (getPlayer2.itemid > 0) and (getPlayer3.itemid > 0) and (getPlayer4.itemid > 0) and (getPlayerVocation(getPlayer1.uid) == 2) and (getPlayerVocation(getPlayer2.uid) == 3) and (getPlayerVocation(getPlayer3.uid) == 1) and (getPlayerVocation(getPlayer4.uid) == 4)) then
doRemoveItem(getItem1.uid, 1)
doRemoveItem(getItem2.uid, 1)
doRemoveItem(getItem3.uid, 1)
doRemoveItem(getItem4.uid, 1)
doTeleportThing(getPlayer1.uid, {x=1932, y=1767, z=10})
doTeleportThing(getPlayer2.uid, {x=1933, y=1766, z=10})
doTeleportThing(getPlayer3.uid, {x=1934, y=1767, z=10})
doTeleportThing(getPlayer4.uid, {x=1933, y=1767, z=10})
doTransformItem(item.uid, item.itemid+1)
elseif ((item.uid == 9010) and (item.itemid == 1946)) then
doTransformItem(item.uid, item.itemid-1)
else
return FALSE
end
return TRUE
end