WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Zone & coordinates script (https://www.wowinterface.com/forums/showthread.php?t=1243)

RN'Kot 07-12-05 06:27 AM

Zone & coordinates script
 
Greetings!
I have a question about some Macro I & maybe many esle need. The purpose is that Macro should take my current coordinates & SubZone & use it in a message like:
"Warning! Horde spotted <my current SubZone> <x,y>" - or any kind of that shouted in Yell mode or in General Channel.
in which x & y are the coordinates of a character...
I found some info about the scripts & functions but still can't craete the Macro myself - doing something wrong ;( If there is or was such topic & an example of such a Macro, pliz address me there, though I didn't find such by quick-search or just post the script here.
Thanx!

RN'Kot 07-13-05 02:44 PM

Ok, problem is solved by myself ;) So the script I'm using is like just these:

Code:

/script px,py=GetPlayerMapPosition("player")
/script SendChatMessage(format("Horde Sppoted!"), "YELL");
/script SendChatMessage(format("%s %d.%d",GetZoneText(),px*100.0,py*100.0), "YELL");

Fell free to use or update in any way ;)


All times are GMT -6. The time now is 11:40 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI