|
Articval Novice
Joined: 01 Jun 2005 Posts: 47
|
Posted: 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? |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: 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.
|
|
|
|
Articval Novice
Joined: 01 Jun 2005 Posts: 47
|
Posted: Wed Mar 25, 2009 2:41 pm |
Not the beta, the previous one:
Cmud Pro 2.37 |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: 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! |
|
|
|
Articval Novice
Joined: 01 Jun 2005 Posts: 47
|
|
|
|
|
|