Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
All objects off

 
Post new topic   Reply to topic Printable version
 View previous topic  Win/Loss setting Post :: Post Need TWcore bot modules...  View next topic  
Author Message
The Cubbies
Newbie


Joined: Sep 08 2006
Posts: 9
Offline

PostPosted: Thu Sep 21, 2006 1:58 am    Post subject: All objects off Reply to topic Reply with quote

Is there a way to toggle all objects off at the same time with Merv? If I had 20+ objects on, it would be nice to not have to turn each off one at a time. And if this can be done, can it be sent to a single person rather than the whole public?
Back to top
View users profile Send private message Add User to Ignore List
k0zy
Server Help Squatter


Gender:Gender:Male
Joined: Jan 11 2003
Posts: 571
Location: Germany
Offline

PostPosted: Thu Sep 21, 2006 11:06 am    Post subject: Reply to topic Reply with quote

Best way would be to sendPrivate an "*objset"
Quote:
After the objset command (either public or private), you will need a space. Then you will place a + or - symbol. Next comes the object's id number. At last, a comma at the end. You repeat this step for every object set you are toggling from the +/- to the end comma.

Example to turn on 5, off 80 and 90:
*objset +5,-80,-90,


You have to know your object ids, though.

Bob Dole.. Bob Dole... Bob Dole...... bob dole.... bob... dole....
_________________
It's a shark! Oh my god! Unbelievable!
Back to top
View users profile Send private message Add User to Ignore List
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Thu Sep 21, 2006 2:00 pm    Post subject: Reply to topic Reply with quote

I think there's a better way where you send out an objset packet, rather than the chat packet containing the text "*objset ...".

Yup, use the queue_enable and queue_disable functions. If it doesn't do it automatically, you'll also need to do toggle_objects to dump the buffer.
_________________
SubSpace Discretion: A Third Generation SubSpace Client
Back to top
View users profile Send private message Add User to Ignore List AIM Address
The Cubbies
Newbie


Joined: Sep 08 2006
Posts: 9
Offline

PostPosted: Thu Sep 21, 2006 2:21 pm    Post subject: Reply to topic Reply with quote

I use the toggle_objects already (btw all that does is make the bot group things into a *objset). What I want to do is turn off all the objects that are on for a person without having to remember which ones are on.
Back to top
View users profile Send private message Add User to Ignore List
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Thu Sep 21, 2006 3:22 pm    Post subject: Reply to topic Reply with quote

not always. If the bot has less than sysop, then yes, it sends a chat message. If it has sysop, it will call generateObjectToggle in clientprot.cpp which sends a binary packet out with the object data in it.

Code: Show/Hide
case EVENT_ToggleObjects:
      {
         objectInfo *objects = (objectInfo *)event.p[0];
         int num_objects = *(int*)&event.p[1];
         int player_id = *(int*)&event.p[2];

         if (num_objects < 0)
            break;

         if (h->hasSysOp)
         {
            h->postRR(generateObjectToggle(player_id, objects, num_objects));
         }
         else
         {
            String s;

            s += "*objset ";
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Bot Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can 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
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 71 page(s) served in previous 5 minutes.

phpBB Created this page in 0.672756 seconds : 27 queries executed (96.9%): GZIP compression disabled