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
editing BotEvents?

 
Post new topic   Reply to topic Printable version
 View previous topic  Team Bot Post :: Post zombie plugin for MERVBot<Can you m...  View next topic  
Author Message
lp
Newbie


Joined: Sep 30 2003
Posts: 17
Offline

PostPosted: Tue Jan 13, 2004 11:32 pm    Post subject: editing BotEvents? Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
50% Packetloss
Server Help Squatter


Age:40
Gender:Gender:Male
Joined: Sep 09 2003
Posts: 561
Location: Santa Clarita, California
Offline

PostPosted: Wed Jan 14, 2004 12:54 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email AIM Address
lp
Newbie


Joined: Sep 30 2003
Posts: 17
Offline

PostPosted: Wed Jan 14, 2004 8:27 pm    Post subject: Reply to topic Reply with quote

>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
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 Jan 14, 2004 9:37 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website
50% Packetloss
Server Help Squatter


Age:40
Gender:Gender:Male
Joined: Sep 09 2003
Posts: 561
Location: Santa Clarita, California
Offline

PostPosted: Wed Jan 14, 2004 9:47 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email AIM Address
lp
Newbie


Joined: Sep 30 2003
Posts: 17
Offline

PostPosted: Thu Jan 15, 2004 3:40 am    Post subject: Reply to topic Reply with quote

(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
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 Jan 15, 2004 6:49 pm    Post subject: Reply to topic Reply with quote

lol its really fun to mess with people by *arena-ing sounds
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: 101 page(s) served in previous 5 minutes.

phpBB Created this page in 0.521800 seconds : 31 queries executed (82.4%): GZIP compression disabled