As a mage i use Quartz for watching my procs.
There are additinal modules specific for mages/etc but Quartz also lets you define your own custom procs, even colors etc. They are also known as mirror timers in the addon.
- Curse Premium
Member for 9 years and 20 days
Last active Sun, Mar, 24 2019 08:10:42
- 0 Followers
- 14 Total Posts
- 0 Thanks
Feb 11, 2013local b = IsSwimming() --1 or nilPosted in: AddOn HELP!
Returns whether the player is currently swimming. 'Swimming' as defined by this function corresponds to the ability to use swimming abilities (such as druid Aquatic Form) or inability to use land-restricted abilities (such as eating or summoning a flying mount), not necessarily to whether the player is in water.
Oct 20, 2012You cant color chat messages.Posted in: Lua Code Discussion
If you put color codes into them they will fail to work.
SendChatMessage("i am afk", "AFK");
To color strings you use "|cAARRGGBBmy colored string|r"
|c starts the color, |r resets the color
AARRGGBB is a hex string with the color you want. the alpha (AA) must always be FF.
Jan 27, 2012A typoo in the .xml will make the whole ting fail.Posted in: AddOn HELP!
for example using <!-- instead of <!--- and so on.
A trick i use is to open the xml file in internet explorer, or find a xml-validator online. It will usually tell you the line and offset of where the issue is.
Jan 10, 2012If this is only related to guildmembers then you could also use the guild roster to make a system where you find the best match from the playernames found in the roster.Posted in: Lua Code Discussion
Again you would need lookuptable to translate æ to ae, ø to o and å to a and so on.
I know that for ASCII we can use bit-flipping to more efficiently change between uppercase/lowercase at assembly level, but in WoW we are using unicode and we are also restricted to what LUA provides us with.
Ah, i seem to have found what i was thinking of.
This could make it possible to change from è to e and so on into a simple function instead of having to rely on a hardcoded lookup table.
It might be doable in LUA using string.char() and string.byte() for the conversion.
Although if those functions are supported in WoW i dont know.
Tip: If you got any problems with the unicode not converting properly, then try saving your .lua file in UTF8 encoded with a BOM signature. Most text editors, even (windows notepad) got an option to do this.
I dont know how WOW and LUA and handles this, but past experience from other languages tells me that the LUA parser at startup will use unicode if you save the file in utf8 and ascii/ansi if save the file as that and so on.
Dec 1, 2011They never used fixed id's. The icons are alphabetically sorted by their texture name.Posted in: Need Help?
The same goes for macro's themselves.
Their index is determined based on the sorting by name, so if you rename a macro from "zzz" to "aaa" for example then it will have a completely new index value.
The simplest way to get the texturename is to use /dump GetMacroInfo(name) ingame and note down the texturename
method signature: http://wowprogramming.com/docs/api/GetMacroInfo
Dec 1, 2011Ok i want to make a InSurveyArea() function for my IfThen addon, basically a function that returns true/false wether the player is currently standing in a archeology survey-area or not.Posted in: Need Help?
As far as i know, there are no events to hook into and no functions for this either so i thought about using the minimap overlay.
Now in patch 4.3 they added just archeology to the minimap overlay, however i cant seem to figure out how to determine wether the player is inside or outside the overlay-area.
Nov 30, 2011Ok, after patch 4.3 then the GetNumMacroIcons() as well as GetMacroIconInfo() functions are missing.Posted in: Need Help?
I knew there would be changes, but i really didnt see that one coming.
Any suggestions to how we can provide icons for EditMacro() now?
Oct 28, 2011Jarod_24 posted a message on IfThen - An addon for programmers -Official threadHello all. This is the official thread for IfThen.Posted in: General AddOns
In short; the addon allows you to create your own IF-THEN statements that will dynamically change the function of a macro. It also reacts to events ingame.
This addon is intended for people that have a basic understanding of programming (specifically conditional If-Then statements).
It provides a simple text editor, a fully documented API and some simple If-Then syntax so that you can string together almost anything you want to react to.
IF HasOpenQuest("My daily fishing quest") AND InZone("Stormwind") THEN UseItem("Fishing Pole");
OnEvent("GroupInvite") AND InLFGQueue() THEN DeclineInvite() AND Reply("Sorry, i'm already in the LFG queue");
Project page: http://wow.curseforge.com/addons/ifthen/
See the FAQ-page and the Examples-page for even more info.
There are also some screenshots of the ui available.
- To post a comment, please login or register a new account.