Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="ISO-8859-1" ?>
- <cmud>
- <class name="msdp" copy="yes">
- <alias name="msdpinit" copy="yes">
- <value>// Hail message.
- #show %ansi(white)**************************************************************************************************
- #show %ansi(white)** ANSALON MSDP init script for Cmud/Zmud ver %ansi(red)1.8%ansi(white), release date: 12.01.13.
- #show %ansi(white)** Tested on Cmud %ansi(red)3.34%ansi(white).
- #show %ansi(white)** Original Script modified from: %ansi(red)Tuk%ansi(white) @ SlothMUD. Ansalon adaptation by Nethaxion.
- #show %ansi(white)** MSDP vars are usable client side: '%ansi(red)~#echo ~@MSDP.HEALTH%ansi(white)' to display current health.
- #show %ansi(white)** Run this init script only once upon logging in.
- #show %ansi(white)**************************************************************************************************
- // Clearing MSDP variable
- #var {MSDP} {} {} {MSDP-VARS}
- // This string tells client what vars to get from mud.
- #SENDSB 69 %CHAR(1)REPORT%CHAR(2)CHARACTER_NAME%CHAR(2)RACE%CHAR(2)CLASS%CHAR(2)HEALTH_MAX%CHAR(2)HEALTH%CHAR(2)MANA_MAX%CHAR(2)MANA%CHAR(2)MOVEMENT_MAX%CHAR(2)MOVEMENT%CHAR(2)EXPERIENCE_TNL%CHAR(2)BLOOD%CHAR(2)LEVEL%CHAR(2)HITROLL%CHAR(2)DAMROLL%CHAR(2)AC%CHAR(2)STR%CHAR(2)INT%CHAR(2)WIS%CHAR(2)DEX%CHAR(2)CON%CHAR(2)STR_PERM%CHAR(2)INT_PERM%CHAR(2)WIS_PERM%CHAR(2)DEX_PERM%CHAR(2)CON_PERM%CHAR(2)ALIGNMENT%CHAR(2)AFFECTS%CHAR(2)WIMPY%CHAR(2)OPPONENT_HEALTH%CHAR(2)ROOM_EXITS%CHAR(2)ROOM_VNUM</value>
- </alias>
- <trigger name="telmsdp" type="Telnet" param="69" priority="5920" copy="yes">
- <pattern>(@MSDPVAR)([%w|_])(@MSDPVAL)(*)</pattern>
- <value>// Techical script to parse MSDP vars. Do not change line below.
- #var {MSDP.%trim(%2)} {%trim(%delete(%4,1,1))} {} {MSDP-VARS}
- #var {%trim(%2)} {%trim(%delete(%4,1,1))} {} {MSDP-VARS}
- AFFECTCHECK
- // end.</value>
- </trigger>
- <trigger name="teliac" type="Telnet" param="69" priority="20" trigontrig="false" newline="false" prompt="true" copy="yes">
- <pattern><![CDATA[<IAC><WILL><69>]]></pattern>
- <value>// Techical script to enable MSDP clientside, do not change.
- #SENDRAW %char(255)%char(253)%char(69)</value>
- </trigger>
- <event event="onConnect" priority="10560" copy="yes">
- <value>#ALARM +3 {msdpinit}</value>
- </event>
- <trigger priority="2348440" copy="yes">
- <pattern>Reconnecting. Type replay to see missed tells.</pattern>
- <value>#SET telmsdp
- #SET teliac
- #ALARM +1 {msdpinit}</value>
- </trigger>
- <alias name="affectcheck" copy="yes">
- <value>//This is a placeholder to be replaced by the Vitals and Buff bar package.</value>
- </alias>
- </class>
- <class name="MSDP-VARS" copy="yes"/>
- </cmud>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement