Quantcast
TomTom script questions - WoWInterface
Thread Tools Display Modes
08-15-20, 02:21 PM   #1
scootrose
A Kobold Labourer
Join Date: Aug 2020
Posts: 1
TomTom script questions

I saw this script online to create a macro that adds waypoints. I would like to use this in other areas with other coords but I can't see to find the proper ID needed to update other zones.

Code:
/run if TomTom then for _,v in next,({{15,62},{24,9},{28,49},{30,29},{39,10},{42,70},{46,48},{53,19},{55,69},{63,53},{63,14},{70,39},{76,68}})do TomTom:AddWaypoint(1527,v[1]/100,v[2]/100,{title="Friendly Alpaca"})end;end
I believe 1527 stands for Uldum but I can't verify nor do I know where to find the ID needed for another zone (eg. Tanaan Jungle). I thought the MapID was the key but I am unable to find 1527 in the list and updating that value with anything else does not see to place markers anywhere. Thanks in advance for any help.
  Reply With Quote
08-15-20, 03:12 PM   #2
Ketho
A Molten Giant
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 946
Originally Posted by scootrose View Post
I can't verify nor do I know where to find the ID needed for another zone (eg. Tanaan Jungle).

Tanaan Jungle would probably be 534
https://wow.gamepedia.com/UiMapID
  Reply With Quote
08-15-20, 03:15 PM   #3
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 507
TomTom has a function that adds waypoints to the current zone. You can also drop the "if TomTom" at the beginning, its redundant if you're using this macro in the first place.

Lua Code:
  1. /run for _,v in next,{{15,62},{24,9},{28,49},{30,29},{39,10},{42,70},{46,48},{53,19},{55,69},{63,53},{63,14},{70,39},{76,68}}do TomTom:AddWaypointToCurrentZone(v[1],v[2],"Friendly Alpaca")end end
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » TomTom script questions

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off