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
Flood Arena w/ stats.

 
Post new topic   Reply to topic Printable version
 View previous topic  Elim Plugin Post :: Post baseball bot  View next topic  
Author Message
blackmoon
Novice


Joined: Aug 27 2003
Posts: 70
Offline

PostPosted: Wed Aug 04, 2004 2:36 am    Post subject: Flood Arena w/ stats. Reply to topic Reply with quote

Okay... I am learning all of this, and it is slow going. I took the flag.dll plugin and cleaned up the Winners Stats somewhat then added a line to prize the arena. But now what I want to do is flood the player with his stats from the end of the game. Any help with that??
_________________
No, that was just a love tap... here's the bitch slap!

-Pimp Daddy Black
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: Wed Aug 04, 2004 7:20 am    Post subject: Reply to topic Reply with quote

sendPrivate(p,"Your kills: " + (String)kills);
sendPrivate(p,"Your deaths: " + (String)deaths);
sendPrivate(p,"Your skill: 0");

where p is a Player*
Back to top
View users profile Send private message Add User to Ignore List AIM Address
D1st0rt
Miss Directed Wannabe


Age:37
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Wed Aug 04, 2004 8:17 am    Post subject: Reply to topic Reply with quote

What I like to do:

Code: Show/Hide
String s[3];
s[0] = "Your kills: "+ (String)kills);
s[1] = "Your deaths: " + (String)deaths);
s[2] = "Your skill: 0");

for(int x = 0; x < 3; x++)
     sendPrivate(p,s[x]);

It works well when you have lots of messages to send

You might need to put s[x].msg if s[x] doesn't work
_________________

Back to top
View users profile Send private message Add User to Ignore List Visit posters website
blackmoon
Novice


Joined: Aug 27 2003
Posts: 70
Offline

PostPosted: Wed Aug 04, 2004 9:40 am    Post subject: Reply to topic Reply with quote

thanks.. this gives me alot to work with! appreciate it!
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: Wed Aug 04, 2004 11:16 am    Post subject: Reply to topic Reply with quote

A magic trick someone showed me when I was learning mervbot is the playerlist. Say you want to message every player in the bot's arena "Hello!" (or in your case their stats)

you can do:

Code: Show/Hide
for (_listnode <Player> *parse = playerlist->head;parse;parse = parse->next)
{
    Player *p = parse->item;

    sendPrivate(p,"Hello");
}


and you can access this playerlist in any function that is part of the botInfo class (so therefore in all the events).
Back to top
View users profile Send private message Add User to Ignore List AIM Address
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Wed Aug 04, 2004 11:54 am    Post subject: Reply to topic Reply with quote

You can also do a while-loop as well.
_________________
Performance is often the art of cheating carefully. - James Gosling
Back to top
View users profile Send private message Add User to Ignore List
blackmoon
Novice


Joined: Aug 27 2003
Posts: 70
Offline

PostPosted: Wed Aug 04, 2004 12:37 pm    Post subject: Reply to topic Reply with quote

Thanks... I will try that one too. Considering I am not a programmer by nature, this is difficult, but you guys are giving me some good info! thanks!
Back to top
View users profile Send private message Add User to Ignore List
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: Wed Aug 04, 2004 1:16 pm    Post subject: Reply to topic Reply with quote

Or you could just write the ASM yourself, Cyph.

And d1s, that's 3 more lines of C++ and more than 3 more lines of ASM. icon_confused.gif
_________________
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
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Wed Aug 04, 2004 5:42 pm    Post subject: Reply to topic Reply with quote

Well, considering I don't know ASM; LOL.. I doub't I'd be writting it in it.. tongue.gif
Back to top
View users profile Send private message Add User to Ignore List
D1st0rt
Miss Directed Wannabe


Age:37
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Thu Aug 05, 2004 10:59 am    Post subject: Reply to topic Reply with quote

Cyan, while using it for 3 isn't as helpful, if you had like 10 lines, it makes it a lot easier. Also, it allows you to define them at one time, and then control if maybe you didn't want to send them just yet.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
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: Thu Aug 05, 2004 5:30 pm    Post subject: Reply to topic Reply with quote

It still requires one more line of code for each new message...

At least do:
Code: Show/Hide
String s[3] =
{
"Your kills: "+ (String)kills,
"Your deaths: " + (String)deaths,
"Your skill: 0"
};


Saves a bit...
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
D1st0rt
Miss Directed Wannabe


Age:37
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Fri Aug 06, 2004 4:51 pm    Post subject: Reply to topic Reply with quote

Good call
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
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: 158 page(s) served in previous 5 minutes.

phpBB Created this page in 0.734951 seconds : 36 queries executed (84.5%): GZIP compression disabled