Server Help

Bot Questions - editing BotEvents?

lp - Tue Jan 13, 2004 11:32 pm
Post subject: editing BotEvents?
is it possible to edit event codes & bot events ?? or is it interwoven with my current version of merv?

im trying to private msg a player with a soundfile, but merv has its special SND system. so ive replaced a few bong files, and got the bot to call them, but every time it does it private msgs the player twice with nothing.

thats how i got to editing these

[dllcore.cpp]
BotEvent makeSay(int t, int s, int i, char *m)
{
BotEvent event;

event.code = EVENT_Say;

event.p[0] = *(void**)&t;
event.p[1] = *(void**)&s;
event.p[2] = *(void**)&i;
event.p[3] = m; // **
return event;
}


** - i created BotEvent makeSay2(int t, int s, int i)
and removed event.p[3]


anyway, edited dllcore.h and my spawn.h, got it to compile but it crashes.

any hellp/suggestions would be swell
50% Packetloss - Wed Jan 14, 2004 12:54 am
Post subject:
you cant edit those unless you edit the core.

The regular sound system is easy to use
sendPrivate(Player *player, BYTE snd, char *msg);
so you can send any sound you want

sendPrivate(p,Byte(12),""); //And this would send the sexy sound

when you type %12 in a message in subspace, the client strips that out of the message and sends a packet with the sound number in it.

Those events are how the dll talks to the core and vise versa, you can not add new events without adding them to the core too.
lp - Wed Jan 14, 2004 8:27 pm
Post subject:
>sendPrivate(p,Byte(12),""); //And this would send the sexy sound

yes, but the , ""); <- part causes the bot to private msgs the player. this event is called quite often and i was trying to send that sexy sound w/o all the private messages. thats the real question
Cyan~Fire - Wed Jan 14, 2004 9:37 pm
Post subject:
Do you want the sound to be private?

You could try playing around with EVENT_Say. (Not the code of the event itself, just the triggering of it)
50% Packetloss - Wed Jan 14, 2004 9:47 pm
Post subject:
just like in continuum or subspace, to send a sound privately to a player there has to be a message. sendPrivate(p,BYTE(12),""); will send a blank message. The only way to send a sound w/o a message is to do, sendPublic(BYTE(12),"*arena");, try doing sendPrivate(p,BYTE(12),"*arena"); and see if that works
lp - Thu Jan 15, 2004 3:40 am
Post subject:
(p,BYTE(12),"*arena"); works perfect, appreciate the help, think i was taking the long route to nowhere with my meddling anyway.
D1st0rt - Thu Jan 15, 2004 6:49 pm
Post subject:
lol its really fun to mess with people by *arena-ing sounds
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group