The basic "on text"
Posted by scoutZor
Monday, June 28, 2004
Description: People need help, so i desided to help them

I thought i would make a tutorial on the basic "on text". No one ever wants to teach people it because they believe it is to simple and the help files help. I disagree. Everyone needs help sooner or later.

Format: on <level>:TEXT:<matchtext>:<*><?><#[,#]>:<commands>

The level would be the access level in which the user owuld have to trigger the command.

The text just means the it is triggered when someone types the matchtext.

The matchtext is what they have to type to trigger the command.

With the Matchtext you have several options, Here are some examples.

*-say = Ends with -say
-say   = Only word in text is -say
-say* = Starts with -say
*-say* = Anywhere in the text, the word -say appears.

After the matchtext you have * ? # and #channel

* means: That it can be anywhere, in channel, in pm, notice, etc.

? means: In pm only

# means: in any channel

#channel means: in the channel #channel only

the commands is the obvious. msg $chan blah, or notice $nick blah

a sample would be "

on *:text:-say*:#script:{ msg $chan $2- }

The $2- means that from the second word and on, is what it will msg the channel. So if you typed "-say hello my name is Shawn."  the bot would msg that channel with , "hello my name is Shawn."

I believe this would help anyone who is just starting on the hole scripting base. But if not, you can always try the "/help on text" file on your mirc. If you still need help after reading this, you can try to msg me on irc.gamesurge.net my ($nick == evo|teh-scoutZor[BN]) you can find me in #script or in #bots... I hope this helps

nice
Posted by James{iB}
Wednesday, June 30, 2004 12:56am PDT
um that should help people.
Subject line
Posted by Ghost2
Friday, July 02, 2004 01:35am PDT
I would suggest :-say *: so you cant do -sayfjhasdfkjhsdfkjhsdf
error
Posted by SilentSounD
Saturday, November 20, 2004 09:38am PST
Description: People need help, so i desided to help them

you misspelled "decided"
I think this would be much eas
Posted by DePredaTe
Friday, May 25, 2007 01:54pm PDT
( I do not know if this is what he is saying but please dont make fun of me lol)
How To make a text script:

on 1:text:.commandhere*:#:/msg $chan [^K]12 $read textfilehere.txt

Where it says .commandhere You can change the command name and the begining like it can be @commandhere !commandhere .commandhere $commandhere *commandhere really anything you want.

Or you can do it this way:

on 1:text:.commandhere*:#:/msg $chan Text Here

How to make commands query users:

on 1:text:.commandhere*:#:/query $nick message here
Submit a comment
Oops! You need to login or register before you can post a comment!

ebaum's world