Mudlet UI

Use this forum for general discussions

Mudlet UI

Postby dimiric » Wed Oct 23, 2013 10:36 am

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.

atcp.MSDPAFFECTS.png

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?
You do not have the required permissions to view the files attached to this post.
dimiric
 
Posts: 2
Joined: Tue Oct 15, 2013 9:26 am
Status: Offline

Re: Mudlet UI

Postby *Splork* » Thu Oct 24, 2013 9:26 am

Mudlet 3.0 will have native MSDP support and will hopefully deal with parsing the tables and arrays correctly(ie affects and exits).

Keep an eye out for their next release,
Splork
User avatar
*Splork*
Site Admin
 
Posts: 1135
Joined: Tue Apr 29, 2003 8:50 pm
Status: Offline

Re: Mudlet UI

Postby Tuck » Fri Oct 25, 2013 12:33 pm

We mortals have discovered 2 un-official sloth msdp vars, like EXITS and AFFECTS.
They are using some strange layout and can't be parsed by client like other MSDP vars.
In that topic Splork said he will look into it.
Tuck
Triple 40 Poster
 
Posts: 323
Joined: Mon Jun 22, 2009 12:06 pm
Location: Planet Earth
Status: Offline


Return to General Chat (Registered)

Who is online

Users browsing this forum: Google [Bot] and 9 guests