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
bot knowing when event is done

 
Post new topic   Reply to topic Printable version
 View previous topic  Matchbot ? Post :: Post Max for int8, int16, int32  View next topic  
Author Message
rahXephon
Novice


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

PostPosted: Sun Mar 16, 2003 12:12 am    Post subject: bot knowing when event is done Reply to topic Reply with quote

for example lets say the person prizes a brick is there a code so that the bot can send a message publicly that that person has prized the brick
_________________


Last edited by rahXephon on Sun Mar 16, 2003 8:43 am, edited 1 time in total
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:41
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3615
Location: Las Vegas
Offline

PostPosted: Sun Mar 16, 2003 1:31 am    Post subject: Reply to topic Reply with quote

Well, since you didn't say which bot core, i'll tell the packet.

Code: Show/Hide
u8 type /* always 0x08 */
u32 time /* time in 1/100th of a second that they got the prize */
i16 x /* where on the map was the green */
i16 y /* see above */
i16 green /* which green id was it (refer to *prize command help) */
i16 pid /* who greened it */
Back to top
View users profile Send private message Add User to Ignore List Send email
rahXephon
Novice


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

PostPosted: Sun Mar 16, 2003 8:38 am    Post subject: Reply to topic Reply with quote

heh sorry :X the mervbot core

new_let_it_all_out.gif
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
SOS
Server Help Squatter


Joined: Dec 02 2002
Posts: 329
Offline

PostPosted: Sun Mar 16, 2003 1:00 pm    Post subject: Reply to topic Reply with quote

EVENT_PlayerPrize
_________________
3y3 4m l33t h4x0r
j0! 3y3 4m t4lking to j00!
fux0red 5cr1pt k1dd13.
-"l33t h41ku"
Back to top
View users profile Send private message Add User to Ignore List Send email
rahXephon
Novice


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

PostPosted: Sun Mar 16, 2003 11:43 pm    Post subject: Reply to topic Reply with quote

that doesnt help a bit SOS :X

"Be More Specific" -SOS
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
SOS
Server Help Squatter


Joined: Dec 02 2002
Posts: 329
Offline

PostPosted: Mon Mar 17, 2003 5:40 am    Post subject: Reply to topic Reply with quote

If you can't do that with the assistance of the default code in EVENT_PlayerPrize, then go read a C++ book...

It gives you the player and the prize number right there...
Back to top
View users profile Send private message Add User to Ignore List Send email
rahXephon
Novice


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

PostPosted: Mon Mar 17, 2003 6:35 am    Post subject: Reply to topic Reply with quote

icon_sad.gif ur mean
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
k0zy
Server Help Squatter


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

PostPosted: Mon Mar 17, 2003 8:32 am    Post subject: Reply to topic Reply with quote

Mean, but he is right...

Everything u need is under the Event_PlayerPrize

Bob Dole.. Bob Dole... Bob Dole...... bob dole.... bob... dole....
Back to top
View users profile Send private message Add User to Ignore List
Underlord
Guest


Offline

PostPosted: Mon Mar 17, 2003 2:24 pm    Post subject: here Reply to topic Reply with quote

case EVENT_PlayerPrize:
{
Player *p = (Player*)event.p[0];
int prize = *(int *)&event.p[1];

if (prize == 26) /* brick */
sendPublic((String) p->name + " has greened a brick");
}
break;
Back to top
rahXephon
Novice


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

PostPosted: Sun Mar 23, 2003 5:05 pm    Post subject: Reply to topic Reply with quote

Under i wub you icon_smile.gif
Back to top
View users profile Send private message Add User to Ignore List Visit posters website 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: 134 page(s) served in previous 5 minutes.

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