by DarkArtist » Sat Feb 15, 2014 12:02 pm
Here is some help getting getmsdpvars setup correctly. There are some issues with the other thread that discusses it.
Here is my getmsdpvars function script:
function getmsdpvars(event, args)
tempTimer(1,
function () sendATCP("@REPORT",
[[HEALTH HEALTH_MAX SERVER_ID STRING_AFFECTS HUNGER THIRST
MANA MANA_MAX HITROLL DAMROLL ALIGNMENT EXPERIENCE MONEY TERRAIN
OPPONENT_HEALTH OPPONENT OPPONENT_NAME OPPONENT_HEALTH_MAX OPPONENT_LEVEL
POSITION MOVEMENT MOVEMENT_MAX AREA_NAME ROOM_NAME ROOM_VNUM AC
TANK_NAME GROUP_LEADER TANK_HEALTH TANK_HEALTH_MAX STRING_ROOM_EXITS]]
) end)
end
*I've got this set up with no event. Just what you see above. These are the only vars i'm using currently, if you add to this list WATCH YOUR SPACING. If you foul up the spacing, some variables won't load.
Then I set up a separate script that runs getmsdpvars at startup called init_msdp:
function init_msdp()
getmsdpvars()
end
Set a trigger on any of the mud startup messages that executes getmsdpvars(). Remember that there are different messages for reconnect than connect, so make sure you've got both covered.
Previously I advised tacking this on the event msdpserver_id. This was a bad mistake. You don't want to send this command to the mud every second or you'll lag yourself and possibly everyone else. I wasn't aware at the time that server_id was getting resent every second.
Last edited by
DarkArtist on Sat Apr 05, 2014 4:58 pm, edited 1 time in total.