Riftui

Riftui (https://www.riftui.com/forums/index.php)
-   Help/Support (https://www.riftui.com/forums/forumdisplay.php?f=3)
-   -   Help getting started with LuA (https://www.riftui.com/forums/showthread.php?t=2758)

Zanderwar 06-04-14 06:00 AM

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 06-04-14 06:18 AM

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 :)


All times are GMT -6. The time now is 05:39 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2022 MMOUI