1. #1

    My add on (how can i made an add on?)

    Hi all . i like to know how can i made an add on by my self. In one google search i found an "AddOn Studio" (http // addonstudio_codeplex_com/)
    that help u with the task.
    But im not sure if is secure to use this. Anyone have a clue? or anyone can recomend anything else? TY for ur time

  2. #2
    Deleted
    1. Don't use WYSIWYG. Use Notepad++ or a comparable plain text editor.
    2. TOC format information
    3. Lua 5.1 manual
    4. API doc, event doc, widget doc. There's also the FrameXML, but you probably won't have to look into it until you get into hooking.
    5. Feel free to ask for any advice regarding issues you're having on this forum - we'll be more than happy to assist.
    6. You can also find me on IRC if you have questions. The channel is #mmo-champion @quakenet - if you're not familiar with it, there's a simple webchat you can use.

  3. #3
    Tnx for the Info . I start reading the pages you mentioned above and i will start with something simple. Like an auto gz Add

    Appreciate your offer to help and i will ask you sometime in the future. But first i have to read a lot.

  4. #4
    Deleted
    It's also helpful to look at other peoples' code. Most authors will be happy to help you out with any questions you have regarding their code if they're not busy. You can find most of them in the #wowace/#curseforge/#wowuidev channels on freenode.

  5. #5
    Hi again After some reading i try to see how things work. So i made an Addon that send some Chat messages. But something is wrong .
    This is the code :
    --Author : Nesos
    -- Create Date : 12/2/2012
    --Create frame with name "Nesos_Frame"
    local Nesos_Frame=CreateFrame("frame","Nesos_Frame")
    local l
    local On=true
    --------------------------------Register Events---------------------------------------------------------------

    Nesos_Frame:RegisterEvent("PLAYER_EQUIPMENT_CHANGED")
    Nesos_Frame:RegisterEvent("PLAYER_LEVEL_UP")
    Nesos_Frame:RegisterEvent("PLAYER_REGEN_DISABLE")

    ---------------------------------Set script-------------------------------------------------------------------
    Nesos_Frame:SetScript("OnEvent", function(self,event,...)

    if (On==True) then --See if the add is on/of

    if event== "PLAYER_EQUIPMENT_CHANGED" then
    SendChatMessage("Oh...I think that makes me Prettier ","SAY")

    elseif event== "PLAYER_LEVEL_UP" then
    SendChatMessage("I feel stronger Baaby ","SAY")
    onlyleft=90-UnitLevel("Player")
    SendChatMessage("Only "..Onlyleft.." lvl left ^^" , "SAY")

    elseif event== "PLAYER_REGEN_DISABLE" then
    l=0
    if (UnitAffectingCombat("Player")==true) then
    SendChatMessage("Time to RnR...", "SAY")
    end
    if (UnitHealth("Player")<(UnitHealthMax("Player") * 0.5)) and l==0 then
    SendChatMessage("You are a worthy Foe " , "SAY")
    end
    end
    end
    end)

    --slash for On/Off the add
    SLASH_NESOS1="/nesos"
    slashcmdlist[NESOS]=function(msg)
    if (msg=="on") then
    On=True
    Print("Nesos Add is ON")
    elseif(msg=="off") then
    On=false
    Print("Nesos Add is OFF")
    else
    Print("What? Plz try on or off")
    end
    end

    i like to use a slash command to turn on or off the Add. But when i add the code everything stop to work . Oh...the code activate only when i change gear...I get nothing on the the other 2 Events....
    Can anyone tell me what is the problem?
    Thx

  6. #6
    Deleted
    Add the if statement into the OnEvent. Also, turn on Lua errors to see why the other ones don't work.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •