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
Messages with Sounds

 
Post new topic   Reply to topic Printable version
 View previous topic  problem Post :: Post Rampage with Sound?  View next topic  
Author Message
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: Sat Aug 30, 2003 10:18 pm    Post subject: Messages with Sounds Reply to topic Reply with quote

Lol, trying to make rampage plugin have sounds for WarFan, but now I've got a problem. How do you make messages with sound? icon_razz.gif

I thought it was just sendPublic(bong#,"message") but I guess not, as that made the bot go a tad crazy.

I have (as a test):

if (c->check("sound"))
sendPublic(SND_BassBeep,"This is a sound.");

But it doesn't even display "This is a sound."

"// Soundcodes courtesy of MGB"
So I guess you know, Mine. icon_wink.gif
_________________
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
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 Aug 31, 2003 12:09 am    Post subject: Reply to topic Reply with quote

Sounds didn't originate with me. Someone got an email a long time ago that was forwarded to them that originated with JeffP. Then, after a while, that forwarded email was made public, WITH the > still in there. Then, a couple of months later, when I decided to create the first (and pretty much, still only) help site for servers, I just edited it to look a bit nicer (ie: remove email's > from front).

I am sorry that I can't understand why that call wouldn't work, as the function is defined like that, void botInfo::sendPublic(BYTE snd, char *msg). Try checking another bot's source, and see how they send public sound messages, or try running your bot through a debugger, and placing breakpoints at that section, if you know how (complex).
Back to top
View users profile Send private message Add User to Ignore List Send email
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: Sun Aug 31, 2003 9:10 pm    Post subject: Reply to topic Reply with quote

Checked a few things, and that IS the way you do it.
Any ideas what I might be doing wrong?

Edit: Nevermind, got it. There was some problem with the instruction clearing after using it once. Maybe a core code error?

Edit Again: Pretty sure it IS a core error. Everytime you use the sendPublic(BYTE snd, *char) thing it doesn't say anything unless you use a !say command first. There must be a problem about clearing the instruction.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
k0zy
Server Help Squatter


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

PostPosted: Mon Sep 01, 2003 10:06 am    Post subject: Reply to topic Reply with quote

Merv doesn't take the same public command twice.
I believe it's some sort of spam protection.
Just send the command to the bot privetly.

Bob Dole.. Bob Dole... Bob Dole...... bob dole.... bob... dole....
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: Mon Sep 01, 2003 10:51 am    Post subject: Reply to topic Reply with quote

I already have public commands disabled icon_razz.gif
And it can't be an anti spam thing because I tried doing this on just a random event (I used PlayerShip) and it still only did the instruction once until I used !say something.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Mon Sep 01, 2003 10:52 am    Post subject: Reply to topic Reply with quote

The TWCore has the same 'protection' Bob Dole.. Bob Dole... Bob Dole...... bob dole.... bob... dole.....
_________________
Hyperspace Owner

Smong> so long as 99% deaths feel lame it will always be hyperspace to me
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
k0zy
Server Help Squatter


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

PostPosted: Mon Sep 01, 2003 4:54 pm    Post subject: Reply to topic Reply with quote

And i think it's a "two way protection", cuz sendPublic("hi") will only work once. Then MERV waits for another thing to say, and after that you can send "hi" again.

I never had any problems with sendPublic!

Bob Dole.. Bob Dole... Bob Dole...... bob dole.... bob... dole....
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: Tue Sep 02, 2003 4:55 pm    Post subject: Reply to topic Reply with quote

I don't think there's a two way protection, as my capital plugin makes as many messages as it wants... I'm thinking there must be something different with the sound thing.

:-/ I guess I'll look at the actual code.

Edit: Oops, I feel stupid now. It was completely un-bot-related, just a chat filter where the bot can't say two of the same things in a row. I dunno why I didn't notice that before icon_razz.gif.
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: 27 page(s) served in previous 5 minutes.

phpBB Created this page in 0.473242 seconds : 33 queries executed (94.3%): GZIP compression disabled