Author |
Message |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: 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.  _________________ 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 |
|
 |
Mine GO BOOM Hunch Hunch What What

Age:41 Gender: Joined: Aug 01 2002 Posts: 3615 Location: Las Vegas Offline
|
Posted: 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). |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: 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. |
|
Back to top |
|
 |
k0zy Server Help Squatter

Gender: Joined: Jan 11 2003 Posts: 571 Location: Germany Offline
|
Posted: 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.... |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: 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. |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: 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..... _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
 |
k0zy Server Help Squatter

Gender: Joined: Jan 11 2003 Posts: 571 Location: Germany Offline
|
Posted: 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.... |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: 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 . |
|
Back to top |
|
 |
|