Reply
Thread Tools Display Modes
Unread 06-04-14, 06:00 AM   #1
Zanderwar
Zombie
AddOn Author - Click to view addons
Join Date: Jun 2014
Posts: 3
Help getting started with LuA

Don't freak out I've been programming for 13 years some I can pick this up quickly, the only thing I need to know is how to read tables etc

print(Inspect.Currency.List().name[0]) is evidently not it and can't really find much documentation on this topic lol.

All help is greatly appreciated.

Long story short, just need to dump the array/object/table into console

Thanks!
Zanderwar is offline   Reply With Quote
Unread 06-04-14, 06:18 AM   #2
Zanderwar
Zombie
AddOn Author - Click to view addons
Join Date: Jun 2014
Posts: 3
Code:
function ScanCurrencies()
	for k,v in pairs(Inspect.Currency.Detail(Inspect.Currency.List())) do
    	local category = Inspect.Currency.Category.Detail(v.category).name
    	print(v.name .. ": " .. v.stack)
	end	
end
figured it out, thanks
Zanderwar is offline   Reply With Quote
Reply

Go BackRiftui » AddOns, Layouts and Macros » Help/Support » Help getting started with LuA

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off