Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?
You are not logged in.
I tried just using multiple conn.Sends on different lines but in the... just look
if (msg.ToLower().StartsWith("!join"))
{
conn.Send("say", "/pm " + players[m.GetInt(0)] + " Use !join followed by one of the follow zones (!join A)");
conn.Send("say", "/pm " + players[m.GetInt(0)] + " A, B, C, D");
conn.Send("say", "/pm " + players[m.GetInt(0)] + " Use /help if you don't know where they are on the map");
}
It only sends the first message.
Halp D:
plz D:
Offline
You have to sleep 750 milliseconds between each message.
I think it might be even shorter.
thanks zoey aaaaaaaaaaaand thanks latif for the avatar
Offline
Oh thank you
Offline
600ms+
One bot to rule them all, one bot to find them. One bot to bring them all... and with this cliché blind them.
Offline
I personally have 650 and it works fine.
Offline
600ms+
Believe it or not, but the limit is 500ms.
I have never thought of programming for reputation and honor. What I have in my heart must come out. That is the reason why I code.
Offline
Tomahawk wrote:600ms+
Believe it or not, but the limit is 500ms.
512ms n.n 512 is my favourite number and saves the day
Thank you eleizibeth ^
I stack my signatures rather than delete them so I don't lose them
Offline
Keep most of the bot communication in private messages and you won't get pwned for spam.
One bot to rule them all, one bot to find them. One bot to bring them all... and with this cliché blind them.
Offline
Keep most of the bot communication in private messages and you won't get pwned for spam.
how?
color = #1E1E1E
Offline
0_o
I was just saying to limit the amount of public chat your bot does - especially at 2 messages/sec, or it becomes spam. Keep as much as possible in pms.
One bot to rule them all, one bot to find them. One bot to bring them all... and with this cliché blind them.
Offline
0_o
I was just saying to limit the amount of public chat your bot does - especially at 2 messages/sec, or it becomes spam. Keep as much as possible in pms.
I thought you meant in the forum lol
Anyways, deleted post cause it wasn't what I thought
thanks zoey aaaaaaaaaaaand thanks latif for the avatar
Offline
cercul1 wrote: I tried just using multiple conn.Sends on different lines but in the... just look if (msg.ToLower().StartsWith("!join")) { conn.Send("say", "/pm " + players[m.GetInt(0)] + " Use !join followed by one of the follow zones (!join A)"); conn.Send("say", "/pm " + players[m.GetInt(0)] + " A, B, C, D"); conn.Send("say", "/pm " + players[m.GetInt(0)] + " Use /help if you don't know where they are on the map"); } It only sends the first message. Halp D: plz D:
Easy just do Threading
Ex:
conn.Send("say", "/pm " + players[m.GetInt(0)] + " Use !join followed by one of the follow zones (!join A)");
Thread.Sleep(1000);
conn.Send("say", "/pm " + players[m.GetInt(0)] + " A, B, C, D");
Thread.Sleep(1000);
conn.Send("say", "/pm " + players[m.GetInt(0)] + " Use /help if you don't know where they are on the map");
Thread.Sleep(1000);
You can put a number 500 and above for the Thread. Depends for the speed of each message you want.
Tell if this work out for you
SHUT AND LISTEN!!!
Offline
cercul1 wrote: I tried just using multiple conn.Sends on different lines but in the... just look if (msg.ToLower().StartsWith("!join")) { conn.Send("say", "/pm " + players[m.GetInt(0)] + " Use !join followed by one of the follow zones (!join A)"); conn.Send("say", "/pm " + players[m.GetInt(0)] + " A, B, C, D"); conn.Send("say", "/pm " + players[m.GetInt(0)] + " Use /help if you don't know where they are on the map"); } It only sends the first message. Halp D: plz D:
Easy just do Threading
Ex:
conn.Send("say", "/pm " + players[m.GetInt(0)] + " Use !join followed by one of the follow zones (!join A)"); Thread.Sleep(1000); conn.Send("say", "/pm " + players[m.GetInt(0)] + " A, B, C, D"); Thread.Sleep(1000); conn.Send("say", "/pm " + players[m.GetInt(0)] + " Use /help if you don't know where they are on the map"); Thread.Sleep(1000);
You can put a number 500 and above for the Thread. Depends for the speed of each message you want.
Tell if this work out for you
We I already said this...
thanks zoey aaaaaaaaaaaand thanks latif for the avatar
Offline
^Some might also mention that if you leave your responses on the same thread, your command could backfire. I.E.
Say you have four messages queued and four users.
These four users say "!join" four times (with 500ms delay). You're then obligated to respond with your information 16 times, with a delay of 500ms. So you're stuck 8 seconds while they're only out for two. But it gets worse.
I'm not really sure how bad it gets. But you could afford to split things up a bit. Maybe a timer.
Offline
^Some might also mention that if you leave your responses on the same thread, your command could backfire. I.E.
Say you have four messages queued and four users.
These four users say "!join" four times (with 500ms delay). You're then obligated to respond with your information 16 times, with a delay of 500ms. So you're stuck 8 seconds while they're only out for two. But it gets worse.I'm not really sure how bad it gets. But you could afford to split things up a bit. Maybe a timer.
Mentioning the above problem I'd personally suggest using signs to give the default information.
But since not everybody will read those signs, it's always good to have a help command to repeat that message, with perhaps a different help command for other commands and/or information.
Do mind you can't use the prefix "/", since that won't be actually broadcasted on the player chat, as it's meant for in-game commands. Instead use prefixes like ".", "!", "\" (reversed "\") or whatever you'd like.
Offline
Instead of posting more solutions when one that works has already been provided... *cough cough* Real_Naa2001 *cough cough* you could post ways of improving it like hummerz5. Thank you
Offline
[ Started around 1732438166.2252 - Generated in 0.182 seconds, 12 queries executed - Memory usage: 1.65 MiB (Peak: 1.87 MiB) ]