WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Search/Requests (https://www.wowinterface.com/forums/forumdisplay.php?f=6)
-   -   Need somebody who can help with writing addon (https://www.wowinterface.com/forums/showthread.php?t=56224)

opadfnezig 05-16-18 12:35 PM

Need somebody who can help with writing addon
 
Not so long ago I understood that I need to make addon. It will be long to explain its meaning, in short it is something like a hybrid of tsm and easyloot. This addon is about looting. I have an experience of programming, know some languages, but never used to work with lua but as I can see this isn't a main problem as there are a lot of lua tutorials on the web. Main problem is wow api and everything connected with it. Yas, we have a wowiki but I can't find things I need there. So, if u interested into helping me to do this, please, msg me. I don't like to ask everything here and then become an object of hating becouse my stupid questions).

Huh, it was a long introduction, here are the questions:
-How can I show the Xml form from Lua?
-I saw SLASH_MYADDON1,SLASH_MYADDON2 = "/myaddon", "/ma" and then something like SlashCmdList["MYADDON"] = new function.... So, it's looking for a variable that have a "MYADDON" in it name and use it? Is it a lua feature and where can I find out about this?
-How can I initialise a ListBox by array of class objects? Is there something like item definition and can I put a checkbox into listbox item?

That's all for now. I'll continue writing into this thread if no one msg.

P.S. Sorry for my possible illiteracy or irrelevance, my english leaves much to be desired.
P.P.S. It's addon for version 5.4.

Xrystal 05-16-18 01:53 PM

I can't remember the list side of things so I will leave that to someone more versed in that area however .. here is at least something on the other questions.

The frame you create in XML is shown automatically unless you set it to hidden. If you do that then something like Frame:Show() will show the frame on the screen.


The Slash Command, you might want to look at this page for a working example and some background on it.
http://wowwiki.wikia.com/wiki/Creating_a_slash_command

But the MYADDON part of what you put is actually the name of your addon... so for example if you created an addon called NezigLoot then you would have the following values. Although the wowwiki page just says it has to be unique .. seeing as your addon name is usually unique enough ( for the most part ) it will do .


SLASH_NEZIGLOOT1,SLASH_NEZIGLOOT2 = "/nezigloot", "/nl"
SlashCmdList["NEZIGLOOT"] = function() ..... end




Quote:

Originally Posted by opadfnezig (Post 328017)
Not so long ago I understood that I need to make addon. It will be long to explain its meaning, in short it is something like a hybrid of tsm and easyloot. This addon is about looting. I have an experience of programming, know some languages, but never used to work with lua but as I can see this isn't a main problem as there are a lot of lua tutorials on the web. Main problem is wow api and everything connected with it. Yas, we have a wowiki but I can't find things I need there. So, if u interested into helping me to do this, please, msg me. I don't like to ask everything here and then become an object of hating becouse my stupid questions).

Huh, it was a long introduction, here are the questions:
-How can I show the Xml form from Lua?
-I saw SLASH_MYADDON1,SLASH_MYADDON2 = "/myaddon", "/ma" and then something like SlashCmdList["MYADDON"] = new function.... So, it's looking for a variable that have a "MYADDON" in it name and use it? Is it a lua feature and where can I find out about this?
-How can I initialise a ListBox by array of class objects? Is there something like item definition and can I put a checkbox into listbox item?

That's all for now. I'll continue writing into this thread if no one msg.

P.S. Sorry for my possible illiteracy or irrelevance, my english leaves much to be desired.
P.P.S. It's addon for version 5.4.


jeffy162 05-16-18 01:56 PM

You can forget about getting an answer to your question here. This is an official WoW (Blizzard) fan site, and as such does not support (or show support for) private servers. (It appears that either I was wrong, or someone can't read. Well.)

Xrystal 05-16-18 02:11 PM

*cough*

It appears I can't read .. :)

But seeing as this particular functionality hasn't changed since then it's no biggie...

But you are of course quite correct jeffy :)

opadfnezig, until Blizzard releases the Classic Servers and their appropriate Addon API any non current API question shouldn't be asked here as it breaks both the sites rules and Blizzards own rules

jeffy162 05-16-18 02:22 PM

Yeah, it's usually me that makes the mistake. So - no biggie. Well, on my end, anyway.

Seerah 05-16-18 06:47 PM

Discussion of Private Servers, in any manner other than theoretical, is completely against our rules. We are an Official Fan Site. We follow Blizzard's rules, on top of our own rules.

Threads requesting assistance with Private Servers get locked. Repeated postings get you banned.


All times are GMT -6. The time now is 04:50 PM.

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