Looking for the a point in the right direction...
Very green to LUA but I am an experienced C# programmer.
I have a webapp that generates this LUA file. Which is just a big lua table with nested tables. (If this isnt correct syntax for the table and your willing to take the time to point out whats wrong any help is appreciated) http://www.croatoanstudios.com/lua/WowStorianDB.txt I want to build an addon so that I can do two things...... Destination could be declared as local or officer, if it is local it just displays it locally in your chat window, if it’s officer it displays it to officer chat. Code:
/wowstorian datareport <destination> Code:
Line1: Wowstorian Report Generated (<ReportGenerated>) Code:
/wowstorian playerreport <playername> <destination> Code:
Line1: Player Name: Saffire I havent been able to find any examples or tutorials that were simply but on topic enough to help me design this myself. So I am looking for a pointer in the right direction about how to do this or someone who's willing to work with me and help me build what I want. |
Hmm, this looks interesting. I've had a look at your database file, and you'll have to do the following:
I'll have a look at implementing the other bits over the course of this evening. |
Thanks for the response....
I was messing around some more in LuaEdit and realized a few problems with the table and made some adjustments to the following. From reading your response I believe it corrects the majority of the concerns you had except one, the dates with LUA interpretting the / as a division sign. Could a . be used instead? For example: Code:
["Key"] = "08.28.2008"; I am not 100% clear on why the / gets translated being that it is encapsolated in quotes I thought the quotes would designate the value as a string and not literals. Code:
WowStorianDB = { |
The file you linked did not have the quotes around the dates, which is why the "/" signs were being read as division.
Code:
[1] = { |
Did I miss the part where saffire gave permission for you to upload it, Sekrin?
Also, % signs are fine in strings, otherwise you would not see any % signs in the game. ;) |
I grant my permission. :D
I appreciate all the help on this! |
Quote:
Quote:
Code:
["Percentage"] = 0%, |
Quote:
|
All times are GMT -6. The time now is 02:56 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI