mIRC Home    About    Download    Register    News    Help

Print Thread
Mirc bot #105938 22/12/04 10:09 AM
Joined: Dec 2004
Posts: 8
C
clay Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Dec 2004
Posts: 8
I just recently created a channel on irc.chat-solutions.org .
i have been trying to get a Mirc bot for my channel but have been unsuccesful, the same goes with 2 coders who have givin up, lol

what we wer trying to do was make a bot that counts the nuber of times a peep has kiked some 1. than use these numbers ant put it into a ranking system. like a score board for the person who has kicked the most ppl.
lol, let me explain, the channel is Called #KickWarz, it's moreof a game channel, what happens is wen enogh ppl are on, i give them all op status right, than at a random time, i say GO!,
and the object is to kik evry one before you get kicked, it's really fun, because wen you have auto-join on you rejoin without op status.

any way, i was wondering if any scripter or coder out there would be willing to create a bot for me that counts the number of times a person has kicked another person, and takes that data and turns it into a score board, so when some one kicks another person it will look like this:

Pete has kicked joe (blah)
Pete has 7 Kicks. #5

i had a freind who made me a bot who has done the same thing, but i have benn unable to contact him for some while.

i would greatly appreacate any person\persons who would be able to do this for me,
thank you cool

clayface0187@yahoo.com

Re: Mirc bot #105939 22/12/04 02:46 PM
Joined: Mar 2004
Posts: 175
Relinsquish Offline
Vogon poet
Offline
Vogon poet
Joined: Mar 2004
Posts: 175
Code:
On *:KICK:#: {
inc %Kick. [ $+ [ $KNick ] ]
msg # $KNick has %Kick. [ $+ [ $KNick ] ] Kicks.
}

I'm not sure what your "#5" in the example is.


- Relinsquish
Re: Mirc bot #105940 22/12/04 03:14 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I also don't know what you meant by the '#5' comment. But if I understand correctly, you wanted a kick counter script, not to say how many times a user has been kicked in the channel but how many times someone has kicked a user? If that's not what you mean my apologies.

When a user types '!kicks' without '$2-', it lists the users that have all got a kick count record. When a user types !kicks followed by a nickname the kick count is returned, if a user has no kick count it will return '0'.

Code:
On *:Kick:#: {
  if (!$readini(kicks.ini, scoreboard,$nick)) { 
    writeini -n kicks.ini scoreboard $nick 1 
    halt 
  }
  else { 
    writeini -n kicks.ini scoreboard $nick $calc($readini(kicks.ini,scoreboard,$nick) + 1) 
    halt 
  }
}

on 1:Text:!kicks*:#: {
  if (!$2) { play $chan kicks.ini 1000 | halt }
  if ($readini(kicks.ini,scoreboard,$2)) { msg $chan $2 $+ 's kick count is $readini(kicks.ini,scoreboard,$2) kicks. | halt }
  else { msg $chan $2 $+ 's kick count is 0 kicks. | halt }
}

Last edited by SladeKraven; 22/12/04 03:17 PM.
Re: Mirc bot #105941 22/12/04 07:56 PM
Joined: Dec 2004
Posts: 8
C
clay Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Dec 2004
Posts: 8
what i meanb by the #5 part is a ranking system, like a score board,

joe has 7 kiks #1 (joe is #1 in the kik rankings)

bob has 3 kiks #2 (bob is #2 in the rankings)

Re: Mirc bot #105942 22/12/04 09:44 PM
Joined: Dec 2004
Posts: 8
C
clay Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Dec 2004
Posts: 8
thank you so much ! smile