Here is example of what I was thinking of you call it with value of 1 or 2 to goto, or return from mailbox. with the ids already in TravelTo this might be best to be a part of it. I put code for stronghold and heffner in as an example.
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
-- Start and End at portal
-- movementvalue 1 = to, 2 = from, 3 = atthemailbox 4 = returnedtoportal 5 = mailoutofrange
----------------
function tomailguildcastle()
end
function frommailguildcastle()
end
function tomailstronghold()
movementvalue = 1
player:moveTo(CWaypoint(-23214, 44751), true)
player:moveTo(CWaypoint(-23464, 44061), true)
end
frommailstronghold()
player:moveTo(CWaypoint(-23227, 44642), true)
end
function tomailvaranascentral()
end
function frommailvaranascentral()
end
function tomailheffner()
player:moveTo(CWaypoint(-6397, -3858), true)
player:moveTo(CWaypoint(-6690, -3801), true)
player:moveTo(CWaypoint(-6739, -3810), true)
player:moveTo(CWaypoint(-7155, -3968), true)
end
function frommailheffner()
player:moveTo(CWaypoint(-6772,-3832), true)
player:moveTo(CWaypoint(-6659,-3823), true)
player:moveTo(CWaypoint(-6413,-3856), true)
player:moveTo(CWaypoint(-6328,-3905), true)
end
function tomaillogar()
end
function frommaillogar()
end
function tomailsascilliasteepsreiford()
end
function frommailsascilliasteepsreiford()
end
function tomailaslan()
end
function frommailaslan()
end
function tomailravenfell()
end
function frommailravenfell()
end
function tomailweepingcoast()
end
function frommailweepingcoast()
end
function tomailsavagelands()
end
function frommailsavagelands()
end
function tomailystrahighlandsharf()
end
function frommailystrahighlandsharf()
end
function tomaildragonfangridgelyk()
end
function frommaildragonfangridgelyk()
end
function tomailsavagelandsgreentower()
end
function frommailsavagelandsgreentower()
end
----------------------------------------
-- check location
print (RoMScript("GetZoneName()"))
if zone = 6 and movementvalue = 1 then
travelto("GlorySquare")
function tomailstronghold()
return = 3
end
if zone = 6 and movementvalue = 2 then
function frommailstronghold()
return = 4
end
if zone = 13 and movementvalue = 1 then
travelto("Heffner")
function tomailheffner()
return = 3
end
if zone = 13 and movementvalue = 2 then
function frommailheffner()
return = 4
end
</waypoints>