Register to post in forums, or Log in to your existing account
 

 Related 
Contents
Changes for zMUD users
  Importing zMUD files
  New Features
  New Commands
  New Functions
  Compiled scripts
  [] and <> syntax removed
  %%1 syntax removed
  AND OR operators changed
  Class specifier changes
  #PRIORITY command
  Quotes around %1..%99
  #VAR command
  #MENU command
  64-bit integers
  #GALIAS and #GVAR
  %lastcom
  Expression optimization
  Aliases (Auto-append)
  atconnect alias replaced with Events
  #GAG in #ONINPUT trigger
  #T+ vs #CLASS
  Tab completion changes
  Multi-threaded #WAIT
  %btncol arguments reversed
  Multiplaying :window: syntax
  Start lines with commands
  #FUNCTION command
  Variable assignment syntax
atconnect alias replaced with Events [[cmud_zmud_atconnect]] 
In zMUD, there were several "special" aliases such at "atconnect", "atexit", etc. These aliases have been replaced by the new Event system in CMUD.

Events are similar to triggers or aliases, but they are triggered by CMUD when a certain situation occurs. For example, the "onConnect" event fires when CMUD connects to the MUD.

In most cases, just changing your special "atconnect" alias to an "OnConnect" event is all you need to do. To make this change, open the Package Editor and find your "atconnect" alias. Highlight your entire script and Copy it into the clipboard.

Next, select New Event from the New menu. Select "onConnect" from the Name dropdown list and then click on the Script field and Paste your script into that field.

Finally, go back and delete your "atconnect" alias.
Viewer Comments [0 - Post your comments]

Jump to:  

© 2009 Zugg Software. Hosted by Wolfpaw.net