mIRC Homepage
Posted By: Bl1nk Automessage PLEASE HELP :( - 28/08/05 07:35 PM
Hey...

I really need you guys help. I need a automessage script. ect. If i say: !rules. The rules will display for all users in the chat...

Do anybody know how to make a script like that? frown

Can i use a bot for it???
Posted By: RusselB Re: Automessage PLEASE HELP :( - 28/08/05 08:50 PM
You can use a bot, in fact I would recommend that you do.

This type of thing has been asked lots of times in the past
Here's an example of what the code could look like
Code:
 on *:join:#:{
.inc %visit
.inc $+(%,visit,.,$address)
describe # Welcomes $nick to $chan for the $ord($($+(%,visit,.,$addrss),2))
.msg $nick You are the $ord(%visit) visitor to $chan
}
on *:text:!help:*:{ .play $nick help.txt 1500 }
on *:text:!rules:*:{ .play $nick rules.txt 1500 }
 


For the above code to work, you would need two text files in your mIRC directory. One called help.txt (which would contain the help information) and one called rules.txt (which would contain the rules for the room)

As I said, the above is just an example of how it could be done. There are lots of other possibilities
Posted By: SkyD Re: Automessage PLEASE HELP :( - 29/08/05 05:10 AM
This is tested and it works:
Code:
on *:text:!rules:*:{
  if ($nick != yournick) {
    msg $nick You don't have access 
  }
  else {
    set %i 1
    set %all $nick(#,0)
    while (%i <= %all) {
      /play $nick(#,%i) rules.txt
     inc %i
    }
  }
}
  
Posted By: Kelder Re: Automessage PLEASE HELP :( - 29/08/05 09:25 AM
That might work on a channel with up to 4 users, but for a channel with 100 users or more, you're either flooded off immediately or your flood protection has a queue of 2 days...

For a bot:
on owner:!rules:#channelname:play $chan rules.txt

for you:
just type //say !rules | play # rules.txt
in the correct channel.


Ps: skyd: setting global vars isn't necessary in this case, there's even few cases when it's really needed...
Posted By: Bl1nk Re: Automessage PLEASE HELP :( - 29/08/05 12:09 PM
Quote:
That might work on a channel with up to 4 users, but for a channel with 100 users or more, you're either flooded off immediately or your flood protection has a queue of 2 days...


The record at my channel is 16, and i got a flood projecter... But im home at my friend, and 'ill try both of the scripts, when i come home.. I'll be back smile

Thanks for the help.. smile
Posted By: Riamus2 Re: Automessage PLEASE HELP :( - 29/08/05 02:11 PM
Just wondering... why do you want everyone to see the rules when someone types !rules? Why not just tell the rules to the person who types !rules? Everyone else probably has already seen them before.
Posted By: Bl1nk Re: Automessage PLEASE HELP :( - 29/08/05 04:02 PM
Thanks that worked smile
Posted By: Bl1nk Re: Automessage PLEASE HELP :( - 30/08/05 06:02 PM
What about the bot?

Do any body got a script for that??


And if you are really good, you know one coded in php smile
© mIRC Discussion Forums