Ok i am making this script so that when a player click on gameobject
115590 it will check to see if they have item number 1559 if they do then
if will teleport them to the tele code [p.s. is there a way to tele them somwhere else if they dont have the item?]
function Teleportingsm1_onUse (pUnit, Event, pMisc)
if GetItemCount(1559) > 0 then
pMisc:Teleport (0, 2867.23, -821.32, 160.33)
end
RegisterGameObjectEvent (115590, 2, "Teleportingsm1_onUse")