Bot Questions - Messages with Sounds Cyan~Fire - Sat Aug 30, 2003 10:18 pm Post subject: Messages with Sounds
Lol, trying to make rampage plugin have sounds for WarFan, but now I've got a problem. How do you make messages with sound?
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. Mine GO BOOM - Sun Aug 31, 2003 12:09 am Post subject:
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).
Cyan~Fire - Sun Aug 31, 2003 9:10 pm Post subject:
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.
k0zy - Mon Sep 01, 2003 10:06 am Post subject:
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....
Cyan~Fire - Mon Sep 01, 2003 10:51 am Post subject:
I already have public commands disabled
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.
Dr Brain - Mon Sep 01, 2003 10:52 am Post subject:
The TWCore has the same 'protection' Bob Dole.. Bob Dole... Bob Dole...... bob dole.... bob... dole.....
k0zy - Mon Sep 01, 2003 4:54 pm Post subject:
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....
Cyan~Fire - Tue Sep 02, 2003 4:55 pm Post subject:
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 .