Hey, I'm trying to make a quest to where when you pull the lever, if your standing on a certain tile, you will be teleported to "place". The problem is I don't know how to use the "IF playerposition = this coordinate then do this"... Heres my code so far, its not working obviously... lol
I always have a follow up question, is there an example or tip you can give me to help me figure out how to do this:
Thanks again guys.
Code:
local playpos = {x=1073, y=974, z=7}
local place = {x=1022, y=993, z=7}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerPosition(cid) == playpos then
doTeleportThing(cid, place)
end
end
I always have a follow up question, is there an example or tip you can give me to help me figure out how to do this:
Code:
When I pull switch
Summon demon to coordinate(xxx)
When player kills demon
Say Message "Good job, demon is dead"
Thanks again guys.