• 0

    posted a message on PROC Notify
    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.
    Posted in: Addon Ideas
  • 0

    posted a message on CRZ detection
    Haven't tried this myself but will /who return all players in your current zone and if so with realm-names attached?
    Posted in: Lua Code Discussion
  • 0

    posted a message on Determining when swimming starts/stops
    local b = IsSwimming() --1 or nil

    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.
    Posted in: AddOn HELP!
  • 0

    posted a message on afk/dnd pitbull lua question
    You cant color chat messages.
    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.



    Source: http://wowprogramming.com/docs/api/SendChatMessage
    Colorstring: http://wowprogramming.com/docs/api_types
    Posted in: Lua Code Discussion
  • 0

    posted a message on First Addon Issues
    A typoo in the .xml will make the whole ting fail.
    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.
    Posted in: AddOn HELP!
  • 0

    posted a message on Accented Letters
    If 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.

    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.

    Edit:
    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.

    http://ahinea.com/en/tech/accented-translate.html

    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.

    Souce: http://lua-users.org/wiki/StringLibraryTutorial

    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.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Internal Cooldown Addon
    It does both.
    Posted in: Addon Ideas
  • 0

    posted a message on Internal Cooldown Addon
    If i understand your request correctly; then there exist addons that do this already.

    I use an addon called "OmniCC" for this.
    Posted in: Addon Ideas
  • 0

    posted a message on GetNumMacroIcons() missing
    They never used fixed id's. The icons are alphabetically sorted by their texture name.
    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
    Posted in: Need Help?
  • 0

    posted a message on In Survey Area
    Ok 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.

    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.


    Any suggestions?
    Posted in: Need Help?
  • 0

    posted a message on GetNumMacroIcons() missing
    Yes, that works just like before-

    The texture is called "INV_MISC_QUESTIONMARK".
    Posted in: Need Help?
  • 0

    posted a message on GetNumMacroIcons() missing
    Ok, i figured it out. they have removed those functions altogether now but EditMacro now supports iconTexture instead of a numeric index.

    I updated it here: http://wowprogramming.com/docs/api/EditMacro
    Posted in: Need Help?
  • 0

    posted a message on GetNumMacroIcons() missing
    Ok, after patch 4.3 then the GetNumMacroIcons() as well as GetMacroIconInfo() functions are missing.

    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?
    Posted in: Need Help?
  • 0

    posted a message on IfThen - An addon for programmers -Official thread
    Hello all. This is the official thread for IfThen.

    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.

    Examples:
    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.
    Posted in: General AddOns
  • To post a comment, please or register a new account.