WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   AddOn to make a pop-up icon (https://www.wowinterface.com/forums/showthread.php?t=48410)

EvolinEU 10-26-13 11:58 AM

AddOn to make a pop-up icon
 
Hey everybody!
Was thinking, is it possible to write a AddOn to pop-up a icon (that is dragable) on your screen when you enter a zone (in this case SoO)?
In this case, I would want to, if possible ofc. To write a small AddOn to throw a pop-up icon of Flask of Spring Blossom's on my screen when I am in SoO and I don't have that certain buff.

I have almost no clue about LUA, so everybit of help is really appriciated.

Something like this perhaps?

Code:

If Player.Class.Hunter { is { zone = ("Siege of Orgrimmar");
And Missing.Buff = { ID = ("105689");
Then Show.Frame1;
Else if Hide.Frame1;


semlar 10-26-13 01:37 PM

This sounds like an ideal situation for weak auras, unless you just want to make your own addon.

EvolinEU 10-26-13 04:42 PM

Quote:

Originally Posted by semlar (Post 286227)
This sounds like an ideal situation for weak auras, unless you just want to make your own addon.

Yeah I've used Weak Auras before, just wanted to try to make a seperate addon for this :)
Thought this might be simple enough for a complete LUA newbie :)

Clamsoda 10-26-13 05:53 PM

Is it possible?

Most certainly! You just need to create a frame that has the texture of Flask of Spring Blossoms, make the frame draggable, register events for changing zones and for monitoring auras, and provide some logic for when it should show and be hidden.

Give it a shot and let us know how we can help.

Malsomnus 10-27-13 12:17 AM

Well I have this add-on for the draggable flask button... I can probably add zone detection or some other trigger if you want, haven't had new features for it in ages :D

EvolinEU 10-27-13 04:26 PM

Quote:

Originally Posted by Malsomnus (Post 286245)
Well I have this add-on for the draggable flask button... I can probably add zone detection or some other trigger if you want, haven't had new features for it in ages :D

Would you be okey if I did took a look on your code?
Might even get some tips and tricks from it :)

Malsomnus 10-27-13 04:38 PM

Quote:

Originally Posted by EvolinEU (Post 286284)
Would you be okey if I did took a look on your code?
Might even get some tips and tricks from it :)

Just don't look too close, I'm not sure my code there is that good ;)


All times are GMT -6. The time now is 11:31 PM.

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