Hi, I’ve recently started to check LUA and API on wowwiki. In this thread I’m gonna focus on API. There are many API functions, for instance GetMinimapZoneText().
How do you actually use these in game?
I managed to create a button in TMW where I could write GetMinimapZoneText()= “Tarren Mill”.
This button lights up when I’m in Tarren Mill.
But how do you use this function to get a string value returned in chat? I simply tried to write GetMinimapZoneText() in the chatwindow and it just printed out my input instead of the current minimap zone name which is what i wanted.
Thanks.