mIRC Home    About    Download    Register    News    Help

Print Thread
#215717 03/10/09 03:58 AM
Joined: Mar 2008
Posts: 31
M
maSeeha Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Mar 2008
Posts: 31
Hello All Great Scripters..

I have a Problem i have a AUTO PROTECTION BOT at Chatspace.

I want a Script like if a user who is added in bot at 250 Level give Command !am Nickname then My Bot automatically perform a coomand /services mem #chanel add Nick
same if we give command !ram nickname then my bot automatically perform a command /services mem #chanel del nickname

and if we give command !kline NIck/IP then bot automatically perform command /kline Nick/IP

Waiting for reply. :S

Maseeha

Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
/help user list
/help /auser
/help /ruser

/auser adds a user to the list. /ruser removes a user from the list.

/help ON TEXT

Code:
on level:text:*!kline *:#:kline $1-

on level:text:*:#:{
if ($1 = !kline) kline $1-
}

In a text event, the first word is $1, the second word is $2 and so on.
You can say the First word and everything after like this. $1-
You can say $1, $2 & $3 like this. $1-3



There are some resources for you and some examples. The actual command isn't verified for your server.

Joined: Mar 2008
Posts: 31
M
maSeeha Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Mar 2008
Posts: 31
think u didnt get my point

let me tell u. in miRc there is User List. by where we can manually give levels to users. so i wana do this that if nick is added on Level 500 like 500:maseeha

then if it gives comman !kline 255.255.255.* then Bot automatically Perform command /kline 255.255.255.*
and if that user types !addsop maseeha then it automatically perform /services aop #cr add maseeha

its my point and ur provided script is not working . let me give you an example here


if ($1 == !kick) && (($nick isop #) || ($level($address($nick,9)) >= 100) || ($nick isvoice #)) && (($2 !isop #) && ($2 !isvoice #) && ($level($2) < 250)) {
kick # $2 12Reason:4 $3- 12Issued By:4 $nick  }
if ($1 == !unban) && (($nick isop #) || ($level($address($nick,9)) >= 100) || ($nick isvoice #)) && (($2 !isop #) && ($2 !isvoice #) && ($level($2) < 250)) {
mode # -b $2 }

Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
His code is an example. It's not meant to work. Your job is to adjust the code to do what you want.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"

Link Copied to Clipboard