Author |
Message |
lp Newbie
Joined: Sep 30 2003 Posts: 17 Offline
|
Posted: 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 |
|
Back to top |
|
 |
50% Packetloss Server Help Squatter

Age:40 Gender: Joined: Sep 09 2003 Posts: 561 Location: Santa Clarita, California Offline
|
Posted: 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. |
|
Back to top |
|
 |
lp Newbie
Joined: Sep 30 2003 Posts: 17 Offline
|
Posted: 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 |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: 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) _________________ 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 |
|
 |
50% Packetloss Server Help Squatter

Age:40 Gender: Joined: Sep 09 2003 Posts: 561 Location: Santa Clarita, California Offline
|
Posted: 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 |
|
Back to top |
|
 |
lp Newbie
Joined: Sep 30 2003 Posts: 17 Offline
|
Posted: 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. |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Thu Jan 15, 2004 6:49 pm Post subject: |
 |
|
|
|
lol its really fun to mess with people by *arena-ing sounds |
|
Back to top |
|
 |
|