Mudlet 3.0.0 Beta (Native MSDP support)

Mudlet 3.0.0 Beta (Native MSDP support)

Postby *Splork* » Mon Oct 06, 2014 11:23 am

A new version of Mudlet has been released. This is the version we have been waiting for because it contains full support for MSDP. No more hacks using ATCP or parsing data,

For those with working MSDP scripts, if you switch to MSDP from ATCP, you will need to adjust your scripts a bit.


For more information see http://www.mudlet.org/

Splork
User avatar
*Splork*
Site Admin
 
Posts: 1133
Joined: Tue Apr 29, 2003 8:50 pm
Status: Offline

Re: Mudlet 3.0.0 Beta (Native MSDP support) Variable Window

Postby *Splork* » Mon Oct 06, 2014 12:21 pm

One of new additions is a variable window. In this example you can see the MSDP variable registering as they are received.

Pretty simple stuff:
lua sendMSDP("REPORT", "ROOM_EXITS") will request room_exits variable
lua msdp will show the results
ROOM_EXITS = {
South = "O",
Up = "O",
West = "O",
East = "O",
North = "O"
},

O stands for open.
Attachments
MudletVariable.PNG
MudletVariable.PNG (31.57 KiB) Viewed 2810 times
User avatar
*Splork*
Site Admin
 
Posts: 1133
Joined: Tue Apr 29, 2003 8:50 pm
Status: Offline

Re: Mudlet 3.0.0 Beta (Native MSDP support)

Postby Akaya » Mon Oct 06, 2014 12:50 pm

Here's a snippet of what I use to request all msdp variables from Sloth...
Code: Select all
function initialise_msdp()
  local vars = {
    "SERVER_ID",
    "WORLD_TIME",
    "CHARACTER_NAME",
    "HEALTH",
    "HEALTH_MAX",
    "MANA",
    "MANA_MAX",
    "MOVEMENT",
    "MOVEMENT_MAX",
    "AREA_NAME",
    "ROOM_NAME",
    "ROOM_VNUM",
    "AC",
    "HONOR",
    "CONTINENT",
    "LEVEL",
    "CLASS",
    "DRACHMA",
    "ALIGNMENT",
    "EXPERIENCE",
    "MONEY",
    "STR",
    "CON",
    "DEX",
    "WIS",
    "INT",
    "STR_PERM",
    "CON_PERM",
    "DEX_PERM",
    "WIS_PERM",
    "INT_PERM",
    "WEAPON_DAM",
    "SPELL_BONUS_CAP",
    "HEAL_BONUS",
    "HEAL_BONUS_CAP",
       "CHARISMA",
    "CHARISMA_CAP",
    "FLAIL_DAM",
    "KICK_DAM",
    "HAND_DAM",
    "HAND_DAM_CAP",
    "DAM_RED",
    "DAM_RED_CAP",
    "SEX",
    "GROUP_LEADER",
    "TANK_HEALTH",
    "TANK_HEALTH_MAX",
    "TANK_LEVEL",
    "TANK_NAME",
    "LEVEL_SEC",
    "LEVEL_TER",
    "LEVEL_QUA",
    "LEVEL_QUI",
    "LEVEL_HEX",
    "LEVEL_SEP",
    "LEVEL_OCT",
    "LEVEL_AVA",
    "CITIZEN",
    "CLASS_SEC",
    "CLASS_TER",
    "CLASS_QUA",
    "CLASS_QUI",
    "CLASS_HEX",
    "CLASS_SEP",
    "CLASS_OCT",
    "CLASS_AVA",
    "STAB_DAM",
    "STAB_DAM_CAP",
    "INT_PERM",
    "HITROLL",
    "DAMROLL",
    "OPPONENT_HEALTH",
    "OPPONENT_HEALTH_MAX",
    "OPPONENT_NAME",
    "OPPONENT_LEVEL",
    "TERRAIN",
    "AFFECTS",
    "ROOM_EXITS",
      }
  for k,v in pairs(vars) do
    sendMSDP("REPORT",v)
  end
end

initialise_msdp()


After copy/pasting this in a new script, you can enter lua msdp on the command line to see all the variables that will automatically update!
User avatar
Akaya
40 Prime Poster
 
Posts: 78
Joined: Thu Jan 10, 2013 3:10 am
Status: Offline

Re: Mudlet 3.0.0 Beta (Native MSDP support)

Postby *Idjit* » Tue Oct 07, 2014 12:12 am

I notice that Akaya doesn't list WEAPON_DAM_CAP in his variables.
This was added in August, Akaya see that post.
Thanks
*Idjit*
Double 40 Poster
 
Posts: 102
Joined: Sat Aug 20, 2011 10:30 pm
Status: Offline

Re: Mudlet 3.0.0 Beta (Native MSDP support)

Postby Akaya » Tue Oct 07, 2014 11:31 am

There are a few I'm missing, you're right. I noticed HUNGER and THIRST wasn't on there either. Let me see if I can hunt down a full list...
User avatar
Akaya
40 Prime Poster
 
Posts: 78
Joined: Thu Jan 10, 2013 3:10 am
Status: Offline

Re: Mudlet 3.0.0 Beta (Native MSDP support)

Postby Akaya » Fri Jul 01, 2016 4:45 am

Is there MSDP support for AREA_VNUM or something like it? I know there's AREA_NAME but a matching VNUM would do wonders.
User avatar
Akaya
40 Prime Poster
 
Posts: 78
Joined: Thu Jan 10, 2013 3:10 am
Status: Offline


Return to Mudlet - unlimited possibilities

Who is online

Users browsing this forum: No registered users and 1 guest