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
Amount per freq

 
Post new topic   Reply to topic Printable version
 View previous topic  socccer ball friction Post :: Post Scoreboard...  View next topic  
Author Message
Red_opium
Guest


Offline

PostPosted: Thu Apr 10, 2003 4:52 pm    Post subject: Amount per freq Reply to topic Reply with quote

Hey
How can I make mervbot determine how many warbirds or terriers there are per freq?

ex: if there are 2 warbirds and you try joining as a warbird, it will setfreq you to another freq, etc
Back to top
rahXephon
Novice


Age:39
Gender:Gender:Male
Joined: Mar 14 2003
Posts: 31
Location: USA NY
Offline

PostPosted: Thu Apr 10, 2003 7:41 pm    Post subject: Reply to topic Reply with quote

This keeps the teams even:
Freqsize
_________________
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Red_opium
Guest


Offline

PostPosted: Thu Apr 10, 2003 8:27 pm    Post subject: thanks Reply to topic Reply with quote

Thanks, I need this too, but what I really need the source code that can determine the amount of warbirds (or terriers) per freq

Thanks a lot
Red_opium
Back to top
rahXephon
Novice


Age:39
Gender:Gender:Male
Joined: Mar 14 2003
Posts: 31
Location: USA NY
Offline

PostPosted: Thu Apr 10, 2003 9:13 pm    Post subject: Reply to topic Reply with quote

just go to the site i gave you...its all there
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
VampZ
Guest


Offline

PostPosted: Fri Apr 11, 2003 10:49 am    Post subject: Reply to topic Reply with quote

Code: Show/Hide
_listnode <Player> *parse = playerlist->head;
short wbCount = 0;
short terrCount = 0;

while (parse)
{
     if (parse->item->ship == SHIP_Warbird)
     {   
         wbCount++;
     }
     else if (parse->item->ship == SHIP_Terrier)
     {
         terrCount++;
     }

      parse = parse->next;
      if (parse == playerlist->head) break;
}


wbCount and terrCount now contain the number of warbird and terriers in the arena.
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
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: 371 page(s) served in previous 5 minutes.

phpBB Created this page in 0.471450 seconds : 29 queries executed (94.9%): GZIP compression disabled