WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   How to log/track coordinates of spell (https://www.wowinterface.com/forums/showthread.php?t=57992)

mikeheft 05-13-20 03:36 PM

How to log/track coordinates of spell
 
I'm working on making an addon to track the location of spells like Transcendence, Demonic Circle, etc. I am able to register the aura event, but can't find any reference to where the spell was dropped. Any help with this is appreciated. My wow API google-fu is still pretty new. lol.

PS - If you are also able to point me in the direction of how to render a color changing arrow that points towards the port, that'd be appreciated as well :D Thank you :D

Xrystal 05-13-20 04:03 PM

I doubt there will be a way as that part of the system is probably behind the scenes coding outside of Addon Access.

As far as I am aware the only positioning info are for players ( https://wow.gamepedia.com/API_UnitPosition ) that have been attached to a unit id .. such as target, mouseover, raid1 etc.

If I am wrong I am sure someone will pipe up with what they know.

mikeheft 05-13-20 04:09 PM

I know there used to be an addon of this for warlocks, but I can't remember name in order to DL the code and update :(

Xrystal 05-13-20 04:44 PM

Quote:

Originally Posted by mikeheft (Post 335910)
I know there used to be an addon of this for warlocks, but I can't remember name in order to DL the code and update :(

If that addon was from several expansions back it was likely made non functional by the changes Blizzard made in accessing part of the 3D world, as addons had been created that allowed people an advantage in dungeons and raids that was not intended by Blizzard. I can't recall when exactly it was but it was several expansions back.

Seerah 05-13-20 07:30 PM

Addons do not have access to the 3D world and do not know where a spell has been placed on the ground.

Kanegasi 05-13-20 07:56 PM

The best you can do is drop a TomTom waypoint when you cast the spell, but like others said, this won't work in instances.

mikeheft 05-14-20 10:16 AM

So I should look at TomTom to see how they place a waypoint and reference it to create an arrow pointing to it? :/

Kanegasi 05-14-20 11:21 AM

I assumed those spells are cast while you're standing on the spot, so you would just record your current position. If those spells are cast with you pointing with a cursor, then my idea won't work.

Vis 05-14-20 03:05 PM

Quote:

Originally Posted by mikeheft (Post 335910)
I know there used to be an addon of this for warlocks, but I can't remember name in order to DL the code and update :(

Is this similar to what you were looking for?

nRange

mikeheft 05-15-20 07:03 AM

Quote:

Originally Posted by Vis (Post 335925)
Is this similar to what you were looking for?

nRange

Well this is embarrassing :P That looks like exactly what I was looking for :P

Thanks for that link! At least now, I can use the addon and inspect the code to see how it's done :D


All times are GMT -6. The time now is 09:32 PM.

vBulletin © 2020, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI