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
Messaging Problems
Goto page Previous  1, 2
 
Post new topic   Reply to topic Printable version
 View previous topic  Turf flag owning method Post :: Post Powerball  View next topic  
Author Message
Doggeti
Server Help Squatter


Age:40
Gender:Gender:Male
Joined: Jan 12 2003
Posts: 297
Location: Germany
Offline

PostPosted: Sat Feb 28, 2004 3:33 am    Post subject: Reply to topic Reply with quote

Ok, here it is
Code: Show/Hide
case EVENT_SoccerGoal:
      {
         int team = *(int*)&event.p[0];
         int reward = *(int*)&event.p[1];

         if(team == 0)
         {
            score[0]++;
            queue_enable(3);
            queue_enable(4);
            toggle_objects();
         }
         else
         {
            score[1]++;
            queue_enable(1);
            queue_enable(2);
            toggle_objects();
         }
         
         String s;
         s = "SCORE: Evens: ";
         s += score[0];
         s += "  Odds: ";
         s += score[1];
         sendPublic(s);
      }
      break;

_________________
Expect the worst but hope for the best.
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Sat Feb 28, 2004 1:11 pm    Post subject: Reply to topic Reply with quote

Hmmm. Does the bot trigger the score message at all?
_________________
This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Doggeti
Server Help Squatter


Age:40
Gender:Gender:Male
Joined: Jan 12 2003
Posts: 297
Location: Germany
Offline

PostPosted: Sat Feb 28, 2004 1:55 pm    Post subject: Reply to topic Reply with quote

No, I don't think so. In EVENT_PlayerEntering I have a private message that tells the entering player the score and it always says 0 - 0 though some goals had been scored.
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
catid
Guest


Offline

PostPosted: Sun Feb 29, 2004 11:54 am    Post subject: LVZ toggling Reply to topic Reply with quote

new_let_it_all_out.gif <-- somebody call an exorcist!

First off, download the latest version of build 39 from my website, as it's newer than the one you have. Open the src.zip file and copy all those source codes into the parent folder to your plugin project. Now your core and your plugins will be synced with the latest version.

Get the LVZ object number for something that you know will work. Test it in the game with the *objon command before writing code to make use of it.

Give the bot sysop. I've made changes to the LVZ protocol implementation in MERVBot. He now uses a more efficient method to toggle objects, when he is a sysop.

Code: Show/Hide

object_target(0); // 0 => everyone, Player * => single player
queue_enable(4); // object id
toggle_objects(); // run the queue


If it doesn't work, try it as a supermoderator bot as opposed to a sysop bot. Whether or not it works after this point, i'd like to talk to you in e-mail. cat02e@fsu.edu
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Bot Questions All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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: 392 page(s) served in previous 5 minutes.

phpBB Created this page in 0.602705 seconds : 28 queries executed (95.3%): GZIP compression disabled