OK i tryed, and failed to make it possible for a player to stand in 1 certain square and pull a switch to enter a quest. can someone please fix this script:
Thanks.
Code:
{x = 236, y = 572, z = 9}
},
destination =
{x = 236, y = 572, z = 10}
}
end
config.daily = getBooleanFromString(config.daily)
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(item.itemid == 9825) then
if(config.daily) then
doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
else
doTransformItem(item.uid, item.itemid - 1)
end
return true
end
if(item.itemid ~= 9826) then
return true
end