mIRC Home    About    Download    Register    News    Help

Print Thread
#105953 22/12/04 06:00 PM
Joined: Dec 2004
Posts: 4
M
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Dec 2004
Posts: 4
I've been asked to try and script a simple idle bot...
but im still too new to this to do so....thats why i'd like to ask for help..

what i got so far is something like this...but it aint workin..

Code:
 on 1:TEXT:!idle *:#:{
    join $2 
    .timer $+ $chan  10 /idle $chan $nick 
  }
} 
alias idle { 
  if (($2 ison #am.cs) && ($me ison $1)) {  part $1 } 
} 

  


something like that??? i dun even really know what it all stands for...but i would like to kn0w...
anyone care to explain please? tnx!!!! laugh

#105954 22/12/04 06:07 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Sorry dude, I don't know what it is you want to do. blush

#105955 22/12/04 06:08 PM
Joined: Dec 2004
Posts: 4
M
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Dec 2004
Posts: 4
the code above doesnt really work....

what i use now is on *:TEXT:!idle *:#:/j $2 .....
but i want the bot to leave as soon as they leave my channel...

#105956 22/12/04 06:44 PM
Joined: Dec 2004
Posts: 8
K
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
K
Joined: Dec 2004
Posts: 8
What exactly do you want the bot to do?

#105957 22/12/04 09:04 PM
Joined: Dec 2004
Posts: 4
M
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Dec 2004
Posts: 4
Quote:
What exactly do you want the bot to do?


I would like it to on TEXT !idle #<chan> join that channel..
notice the guy who requested it to stay in mine...
and if he leaves my channel...i /part his channel...

i tried a few things..but it wouldnt work 100%
it kept going like this ...join/part join/part...very annoying :P

tnx u guys..

#105958 22/12/04 09:24 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
on *:text:!idle &amp;:[color:red]#yourchannel[/color]:{
  hadd -m idle $nick $$2
  join $$2
}
on *:nick:{
  if ($hget(idle,$nick)) { 
    hadd -m idle $newnick $v1
    hdel idle $nick
  }
}
on *:part:[color:red]#yourchannel[/color]:{
  if ($me ison $hget(idle,$nick)) { 
    part $v2
    hdel idle $nick
  }
}
on *:quit:{
  if ($me ison $hget(idle,$nick)) { 
    part $v2
    hdel idle $nick
  }
}
on *:kick:[color:red]#yourchannel[/color]:{
  if ($me ison $hget(idle,$nick)) { 
    part $v2
    hdel idle $nick
  }
}


New username: hixxy
#105959 22/12/04 09:37 PM
Joined: Dec 2004
Posts: 4
M
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Dec 2004
Posts: 4
now...i kn0w ur great at scripting...
but can u teach me to do that stuff aswell :P

what do all those new (to me) variables mean..like $hget

btw....tnx man! (K) =P

#105960 22/12/04 10:14 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
If you ever want to know what a specific /command or $identifier does just type /help <command/identifier>, so look at /help $hget


New username: hixxy

Link Copied to Clipboard