mIRC Home    About    Download    Register    News    Help

Print Thread
#141008 02/02/06 03:56 PM
Joined: Jan 2006
Posts: 19
N
NeoNY Offline OP
Pikka bird
OP Offline
Pikka bird
N
Joined: Jan 2006
Posts: 19
Code:
  on @1:text:*:#: {
  if ($me !isop #) { return }
  if ($nick iswm NeoNY ) && (!rkill isin $1-) { 
    kill $2- $nick reguested
  } 


Hello.. i was wondering if i can include Host with my nick when i type !rkill nick its will not kill untill my nick and my host match, but when i include this line my BOT doesnt respond
Code:
  if ($host == @XXX.XXX.XX)  

can you Please tell me why? and please make me one if its possible. thank you.

P.S - Sorry for my bad English.

Last edited by NeoNY; 02/02/06 03:57 PM.
#141009 02/02/06 04:37 PM
Joined: Nov 2005
Posts: 105
D
Vogon poet
Offline
Vogon poet
D
Joined: Nov 2005
Posts: 105
You should look into using user levels. Just try
Code:
 /guser 10 NeoNY 2 

Through the bot's client. Then change the code from the bots Script Editor to:
Code:
on @10:text:!rkill *:#: {
  if ($nick == NeoNY ) { kill $$2 ( $+ $nick requested) }
}

#141010 02/02/06 04:58 PM
Joined: Jan 2006
Posts: 19
N
NeoNY Offline OP
Pikka bird
OP Offline
Pikka bird
N
Joined: Jan 2006
Posts: 19
Quote:
You should look into using user levels. Just try
Code:
 /guser 10 NeoNY 2 

Through the bot's client. Then change the code from the bots Script Editor to:
Code:
on @10:text:!rkill *:#: {
  if ($nick == NeoNY ) { kill $$2 ( $+ $nick requested) }
}


its doesnt work.

#141011 02/02/06 05:14 PM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
Assuming you're connected to the server, it should be:

//guser 10 $me 2

Note the double slashes.

#141012 02/02/06 08:09 PM
Joined: Jan 2006
Posts: 19
N
NeoNY Offline OP
Pikka bird
OP Offline
Pikka bird
N
Joined: Jan 2006
Posts: 19
still its doesnt wrk frown

#141013 02/02/06 09:06 PM
Joined: Dec 2002
Posts: 79
F
Babel fish
Offline
Babel fish
F
Joined: Dec 2002
Posts: 79
on *:text:*:#: {
if ($nick == NeoNY) && (!rkill isin $1-) { kill $2 $nick requested }
}

#141014 02/02/06 09:28 PM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
Code:
on *:text:!rkill *:#:{
  if (($2 ison $chan) && $address($nick,2) == *!*@[color:red]your-hostmask-here[/color]) kill $2 $nick requested
}


If this doesn't work for you, then you're definitely doing something wrong.

#141015 02/02/06 09:53 PM
Joined: Nov 2005
Posts: 105
D
Vogon poet
Offline
Vogon poet
D
Joined: Nov 2005
Posts: 105
not sure if it makes a difference. But note the space in
Code:
on @10:text:!rkill *:#: {  
   if ($nick == NeoNY ) { kill $$2 ( $+ $nick requested) } 
}

There's a space between the : colon and the {. Try removing the space and see if that fixes the problem.
Code:
on @10:TEXT:!rkill *:{
  if ($nick == NeoNY) { kill $$2 ( $+ $nick requested) }
}

Also ensure you're loading this into a seperate instance of miRC. Not your personal instance in which you chat. It has to be loaded in the instance of miRC that your bot runs on.

#141016 02/02/06 10:22 PM
Joined: Jan 2006
Posts: 19
N
NeoNY Offline OP
Pikka bird
OP Offline
Pikka bird
N
Joined: Jan 2006
Posts: 19
Sorry, I tried all this but its doesnt seems to work for me ? have u tested ? or something sorry frown Please let me know, thank you all

Bwt, i check on 2 diff mIRC { empty too ) but dont see any diff frown

#141017 02/02/06 11:20 PM
Joined: Nov 2005
Posts: 105
D
Vogon poet
Offline
Vogon poet
D
Joined: Nov 2005
Posts: 105
Code:
on 10:TEXT:!rkill*:#:{
   kill $$2 ( $+ $nick Requested)
}

I have tested this, and it does indeed work. Just use
Code:
//guser 10 NeoNY 2

Or whatever you nick you normally use in place of NeoNY in the same instance of mIRC that you store the code. Since this is using userlevels, there's no point in checking your nick, unless you use a vhost that's commonly used.

#141018 03/02/06 07:54 AM
Joined: Jan 2006
Posts: 19
N
NeoNY Offline OP
Pikka bird
OP Offline
Pikka bird
N
Joined: Jan 2006
Posts: 19
Thank you all for your help.... smile
drc4 thkx brat for your great help smile and all smile

Last edited by NeoNY; 03/02/06 07:55 AM.

Link Copied to Clipboard