Hi everyone,
I'm just starting to play around with LUA so I began to work on creating my own UI. I identified a few things that I want to try to do, but I am having all sorts of trouble figuring out a way to do them and would like some help. It all started with the spell affects on a character. I saw that although it doesn't appear officially in the "HELP MSDP" list, there is a variable being pushed to the clients called atcp.MSDPAFFECTS and it contains a mish-mash of active spell affects.
Score says
You are affected by the following spells:
Resist Electricity
Resist Acid
Armor
Bless
As you can see, it shows item-generated instead of Resist Electricity or Resist Acid. Not to mention dupes for each of those, and also bless. And even something for the class. Not completely useful, but it does show the timer left on the affect too. (And shouldn't it be "EFFECT"?)
So what I was thinking of doing was creating a timer that would send score to the mud, gag the response, but also collect it to a table or variable, and then parse it to find the item generated spells and put those in my UI as icons, similar to WoW and EQ once did when I played those years ago. What are your thoughts? Also, what regex code would be used to grab an entire line, not just a word?