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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Articval
Novice


Joined: 01 Jun 2005
Posts: 47

PostPosted: Wed Mar 25, 2009 1:13 pm   

When does #ok upgrade the roomvnum?
 
Hi!

I use #ok to confirm my mud possition every time the mud sends me the line:
Exits .....

After that, some scripts are executed and they depend on the roomvnum.

I have tryed this:

#echo %roomvnum
#ok
#echo %roomvnum

And it will show twice the PREVIOUS roomvnum, but I need the current roomvnum!!

If I do
#echo %roomvnum
inmediatly after, it will be upgraded with the new position.

Any ideas to get the current roomvnum instead of the previous room one?
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Wed Mar 25, 2009 2:32 pm   
 
What version of Cmud are you using? If you are using the beta version, it makes a big difference.
Reply with quote
Articval
Novice


Joined: 01 Jun 2005
Posts: 47

PostPosted: Wed Mar 25, 2009 2:41 pm   
 
Not the beta, the previous one:
Cmud Pro 2.37
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Wed Mar 25, 2009 3:30 pm   
 
I'm pretty sure the roomvnum doesn't get updated until the onRoomEnter event is raised, and I believe that is after the #OK processed. I have a post on it somewhere out there.
_________________
Asati di tempari!
Reply with quote
Articval
Novice


Joined: 01 Jun 2005
Posts: 47

PostPosted: Wed Mar 25, 2009 4:25 pm   
 
Ok, I was still using my old Zmud onroomenter aliases, I created an onroomenter event and on it ordered to execute the "onroomenter" alias I had.
Seems to solve the problem. (What i had before was an onroomenter just after the #ok confirmation)

Thx.

Pd: Maybe u refered to this post:
http://forums.zuggsoft.com/forums/viewtopic.php?t=27014&highlight=onroomenter+event
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion 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