Server Help

Bot Questions - bot knowing when event is done

rahXephon - Sun Mar 16, 2003 12:12 am
Post subject: bot knowing when event is done
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
Mine GO BOOM - Sun Mar 16, 2003 1:31 am
Post subject:
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 */

rahXephon - Sun Mar 16, 2003 8:38 am
Post subject:
heh sorry :X the mervbot core

new_let_it_all_out.gif
SOS - Sun Mar 16, 2003 1:00 pm
Post subject:
EVENT_PlayerPrize
rahXephon - Sun Mar 16, 2003 11:43 pm
Post subject:
that doesnt help a bit SOS :X

"Be More Specific" -SOS
SOS - Mon Mar 17, 2003 5:40 am
Post subject:
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...
rahXephon - Mon Mar 17, 2003 6:35 am
Post subject:
icon_sad.gif ur mean
k0zy - Mon Mar 17, 2003 8:32 am
Post subject:
Mean, but he is right...

Everything u need is under the Event_PlayerPrize

Bob Dole.. Bob Dole... Bob Dole...... bob dole.... bob... dole....
Anonymous - Mon Mar 17, 2003 2:24 pm
Post subject: here
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;
rahXephon - Sun Mar 23, 2003 5:05 pm
Post subject:
Under i wub you icon_smile.gif
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group