mIRC Homepage
Posted By: Aegis Again help needed~ - 12/11/16 04:48 PM
need a script like,
user1 say: !random 1 100
Bot say: user1 Result: what ever randomised.


the limit must be high from 100 to as much.
Posted By: Red Re: Again help needed~ - 13/11/16 03:43 AM
Do you mean you want the bot to say random quotes?
Posted By: Aegis Re: Again help needed~ - 13/11/16 05:48 AM
Nope!
what i stated on first page that.
Posted By: ruprecht Re: Again help needed~ - 13/11/16 09:30 AM
Code:
on *:TEXT:!random*:#: { 
  if ($2 !isnum) || ($3 !isnum) { msg $chan $nick Usage: !random n1 n2 }
  else { msg $chan $nick Result: $rand($2,$3) }
}


Not sure exactly what you want. This will produce a random number between n1 and n2.
Posted By: Aegis Re: Again help needed~ - 13/11/16 09:53 AM
Not working~
Posted By: ruprecht Re: Again help needed~ - 13/11/16 01:56 PM
It works perfectly with my trivia bot mIRC running v6.35 and my chat mIRC running v7.46

What version are you using?
Posted By: Aegis Re: Again help needed~ - 14/11/16 03:48 PM
Same.
What is trugger again?
Posted By: ruprecht Re: Again help needed~ - 15/11/16 02:17 AM
The trigger is exactly what you requested in your original post, and clearly shown in the code.

If you can't understand a very simple script like this I'm not sure you can be helped.
Posted By: FoxInABox Re: Again help needed~ - 15/11/16 11:03 AM
Do you have any ON event that grabs any text
on *:TEXT:*:#:{

If so then you need to put the code you requested above that one, because it will trigger on any text and stop any ON TEXT that is below it from triggering.
Posted By: ruprecht Re: Again help needed~ - 15/11/16 01:44 PM
Only in the same file. If the scripts are saved to seperate files they'll trigger in order, even if the 1st one uses /halt. Every novice I've helped over the years tends to save each section of code in a new script file, regardless of size.
© mIRC Discussion Forums