Hello!
I've edited an existent code that can teleport to any zone from the same continent, eg. from Orgrimmar to Tanaris or from Stormwind City to Silvermoon City.
If I try to teleport from Stormwind to Orgrimmar, I will fail. It will teleport to the same XYZ but from Eastern Kingdoms, not from Kalimdor.
Code for teleport to Orgrimmar:
Code:
_MemoryWrite("0x" & Hex($ObjectMemLoc + $UnitPosXOffset), $WowProcess, -4355, "float") ; X ORGRIMMAR
_MemoryWrite("0x" & Hex($ObjectMemLoc + $UnitPosYOffset), $WowProcess, 1675, "float") ; Y ORGRIMMAR
_MemoryWrite("0x" & Hex($ObjectMemLoc + $UnitPosZOffset), $WowProcess, 31, "float") ; Z ORGRIMMAR
I found this offset which is the MapID offset (0xAB63BC) for 3.3.5:
Code:
_MemoryRead("0xAB63BC", $WowProcess , "dword") ; 0 = Eastern Kingdoms - 1 = Kalimdor - 571 = Northrend - 530 = Outland
If I try to teleport with and I'm not in Kalimdor, I will fail again:
Code:
_MemoryWrite("0xAB63BC", $WowProcess , 1, "dword") ; this is to change MapID, but did not work
_MemoryWrite("0x" & Hex($ObjectMemLoc + $UnitPosXOffset), $WowProcess, -4355, "float") ; X ORGRIMMAR
_MemoryWrite("0x" & Hex($ObjectMemLoc + $UnitPosYOffset), $WowProcess, 1675, "float") ; Y ORGRIMMAR
_MemoryWrite("0x" & Hex($ObjectMemLoc + $UnitPosZOffset), $WowProcess, 31, "float") ; Z ORGRIMMAR
Thanks in advance.