LucasFerraz
Systems Analyst
This script is part of Banshee Quest. Player can pass in teleport if remove both pearls.
LUA:
function onStepIn(cid, item, pos, fromPos)
food1 = {x=32173, y=31871, z=15, stackpos=1}
getfood1 = getThingfromPos(food1)
food2 = {x=32180, y=31871, z=15, stackpos=1}
getfood2 = getThingfromPos(food2)
if getfood1.itemid == 2143 and getfood2.itemid == 2144 then
doTeleportThing(cid, {x=32177, y=31863, z=15})
doSendMagicEffect(getCreaturePosition(cid), 10)
doRemoveItem(getfood1.uid,1)
doRemoveItem(getfood2.uid,1)
else
doTeleportThing(cid, {x=32176, y=31870, z=15})
doSendMagicEffect(getCreaturePosition(cid), 10)
end
end