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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Anaristos
Sorcerer


Joined: 17 Jul 2007
Posts: 821
Location: California

PostPosted: Sat Jul 03, 2010 1:41 am   

[322B] onExit event sends garbage to the mud.
 
This is my onExit event script:
Code:

<event event="onExit" priority="1250" id="125">
  <value>#IF (%window = @Windowname) {comreset} //To accomodate how onExit works at the present time.</value>
</event>

The compiled code for my onExit event is this:
Code:

0000   PUSHEXP   0016 <----- This gets sent to the MUD.
0008   JUMP   0068
0016   SYSVAR   window
0024   VARREF   @Windowname <WindowName>   (class Aardwolf)   
0052   EQ   
0056   SETEXP   0   0
0068   PUSHLOC   0084
0076   JUMP   0112
0084   ALIAS   comreset (-1) <comreset>   (class Aardwolf)   
0112   CMD   if   (2)

When the script completes the 16 is sent to the mud.

As a test I changed the onExit event script to this:
Code:

<event event="onExit" priority="1250" id="125">
  <value>#ECHO THIS IS A TEST</value>
</event>

Here is the compiled code for the test script:
Code:

0000   LITERAL   "THIS IS A TEST" <----- This gets sent to the MUD.
0024   CMD   echo   (1)

The string THIS IS A TEST is sent to the mud.
_________________
Sic itur ad astra.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net