Author |
Message |
ZoAnimus Newbie
Joined: Apr 22 2005 Posts: 11 Offline
|
Posted: Tue May 03, 2005 5:21 pm Post subject: Simple Question |
 |
|
|
|
Man, I feel like this is a stupid question but I've scoured over the MERVBot code and I can't find what I'm looking for.
Is there a way to check if the arena is locked or unlocked using MERVBot?
If so, I'd love to see some code samples.
Thanks,
ZoA
Sorry for the trivial question.... |
|
Back to top |
|
 |
50% Packetloss Server Help Squatter

Age:40 Gender: Joined: Sep 09 2003 Posts: 561 Location: Santa Clarita, California Offline
|
Posted: Tue May 03, 2005 8:09 pm Post subject: |
 |
|
|
|
The way to do it would be to send *lock to the server and then look for the responce. Its kind of a round-about way of doing it but there isn't another way unless you use ASSS modules. |
|
Back to top |
|
 |
Maverick

Age:40 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Wed May 04, 2005 4:18 am Post subject: |
 |
|
|
|
yup, notice that a normal user with Continuum can't actually determine whether an arena is locked unless trying to enter (hence the "bot is only an automated cleint" statement).
I will post some code samples of what 50% Packetloss suggests when I get home. _________________
|
|
Back to top |
|
 |
ZoAnimus Newbie
Joined: Apr 22 2005 Posts: 11 Offline
|
Posted: Wed May 04, 2005 11:31 am Post subject: |
 |
|
|
|
Thanks for the info guys. I went ahead and did a string compare in the event_chat area of spawn.cpp . Checked the servers response and then toggled the lock again if I needed to.
thanks  |
|
Back to top |
|
 |
ZoAnimus Newbie
Joined: Apr 22 2005 Posts: 11 Offline
|
|
Back to top |
|
 |
50% Packetloss Server Help Squatter

Age:40 Gender: Joined: Sep 09 2003 Posts: 561 Location: Santa Clarita, California Offline
|
Posted: Wed May 04, 2005 12:36 pm Post subject: |
 |
|
|
|
You'll want to compare the unlock message too, just in case your bot does a *lock and unlocks the arena instead of locking it. _________________ Current Terror Alert Level
 |
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:37 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Wed May 04, 2005 12:41 pm Post subject: |
 |
|
|
|
Load that plugin twice then.  |
|
Back to top |
|
 |
Maverick

Age:40 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
|
Back to top |
|
 |
|