|
08/19/18, 07:04 PM | #1 |
Guild Dues
So there I was last week knee deep in White Gold Tower and I get a message from one of the Generals.. "bidding closes in 15 minutes, please pay your dues to stay in the guild" and boom! The idea for a new addon was born. "Guild Dues" puts a small icon, keybind or slash command to quickly create and send your dues to the guild master. The only problem is, it doesn't work. I am not that great with lua and tried to piece this together from examples throughout the week. It feels like I am close but it keeps giving me errors. I think if I can get a simple working version I will be able to expand with menus for all the variables such as dues, minimum gold to keep, guild master name, subject text, body text and maybe more. It is very simple at the moment and not working of course. This is my first addon so any help would be appreciated and name in the credits. Here is what I have so far. Please forgive me for being such a noob if the solution is extremely apparent. Thanks
Lua Code:
|
|
08/20/18, 04:58 AM | #2 |
You call self:RestorePosition() but where is teh function GuildDues:RestorePosition() in your code?
The function createDonationButton is never executed so this button will not be created at all. You'd need to put this function code at the top of your file as you have defined it locally and code in lua which is local neds to be on top of the call to that function. Then you'd be able to put the call to "createDonationButton()" inside your function GuildDues:Initialize() e.g. I'd avice you to read the wiki for "Getting started with addond evelopment" and not copy just code from other addons to your addon. You need to learn and undertand what you do and appearantly you are not understanding it so far. Please go and visit the wiki, read the "Getting started part" and then "build the example addon": http://wiki.esoui.com/Getting_Started http://wiki.esoui.com/Writing_your_first_addon Learn it, and then come back to your project to rebuild it (at best without the object stuff like GuildDues:Initialize() but normally like function GuildDues.Initialize(). The object stuff (check online fpr object oriented development) is only needed if you plan to build several objects of your class GuildDues. And I don't think you need this here. |
|
ESOUI » Developer Discussions » General Authoring Discussion » Guild Dues |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Switch to Linear Mode |
Hybrid Mode |
Switch to Threaded Mode |
|
|