Lua for Stuf
I've been using Stuf, and find the pattern tags to be somewhat limited. I've tried using the custom lua text on it, but my knowledge of lua is very limited and it has an odd format that I don't quite understand. Is there any place or anyone that could explain to me how it works? Another way would be to convert
Code:
local s = Status(unit) Thanks in advance, -Saft |
Quote:
-- the sample string is 95511|TInterface\\MoneyFrame\\UI-GoldIcon:0:0:2:0|t 5|TInterface\\MoneyFrame\\UI-SilverIcon:0:0:2:0|t 12|TInterface\\MoneyFrame\\UI-CopperIcon:0:0:2:0|t
Code:
-- match http://www.wowwiki.com/Pattern_matching for all patterns |
also you maybe just wanna save the string you are filtering to savedvar first. I found this will avoid amost all nil issues "aside from server side latency where the data doent get downloaded before the function is ran".
|
If my memory is correct (it's been a few month since I last played), Stuf uses the LuaTexts module for custom Lua tags (same one as used for Pitbull4). You may want browse through the official LuaTexts thread over on the WoWAce forums:
http://forums.wowace.com/showthread.php?t=16955 |
no STUF uses a significantly different (not completely) style of Lua text. Im pretty sure the LuaText you posted is for PB4 mate, (ive spent quite some time learnning basic Lua using PB4 and STUF, i managed to pretty much master it but then i moved to oUF) . You should look through the stuf lua code to notice the patterns and functions STUF uses.
|
All times are GMT -6. The time now is 06:11 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI