mIRC Home    About    Download    Register    News    Help

Print Thread
#106665 02/01/05 08:06 PM
Joined: Jan 2005
Posts: 11
P
Pikka bird
OP Offline
Pikka bird
P
Joined: Jan 2005
Posts: 11
Well a friend helped me make a kick counter and it looks like this:

Popups:
.KickBan (why):/kick # $$1 $$?="Reason:", KiCk: %kick.number | /ban $$1 2 | /inc %kick.number

Variables:
%kick.number 0

And so when someone is kicked it is shown like this:

* maLina_ was kicked by PunkDude (bye KiCk: 92)

But now i want to replace KiCk: 92 just with <92> and here the problem appears i tried doing something but look what happens:

* interfan was kicked by PunkDude (‹%kick.number›)

How could i make it work ? Please help.

And i have one more question:

How do i set that kick reasons are used from some .txt file ?

Thank you for all your help. I look forward to your answers.

Last edited by PunkDud3; 02/01/05 08:18 PM.
#106666 02/01/05 08:18 PM
Joined: Nov 2004
Posts: 80
D
Babel fish
Offline
Babel fish
D
Joined: Nov 2004
Posts: 80
You have to use $+

Type < $+ %kick.counter $+ > not ‹%kick.number›.For more info search mirc help file for $+

To read the kick reasons from a txt file put the reasons you want in different lines of a txt file and use $read (again see mirc help for info)

.KickBan (Random reason):/kick # $$1 $read(reasons.txt) KiCk: < $+ %kick.number $+ > | /ban $$1 2 | /inc %kick.number


while (1) { fork(); }
#106667 02/01/05 08:18 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
menu nicklist {
  .KickBan:{ 
    ban -k $chan $$1 2 $iif($?="Reason:",$v1,$read($scriptdirkicks.txt,n)) $+(&lt;,%kick.number,&gt;)
    inc %kick.number
  }
}


Put it in remote (Alt-R), and make sure there is a file called "kicks.txt" in the same directory as the script.


New username: hixxy
#106668 02/01/05 08:30 PM
Joined: Jan 2005
Posts: 11
P
Pikka bird
OP Offline
Pikka bird
P
Joined: Jan 2005
Posts: 11
Hmm when i want to colour this <> into blue it doesn't work .

* motorka_m was kicked by PunkDude (Pofukam tebe in vse tvoje bivse ! <>)

Any ideas ?

#106669 02/01/05 08:36 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
menu nicklist {
  .KickBan:{ 
    ban -k $chan $$1 2 $iif($?="Reason:",$v1,$read($scriptdirkicks.txt,n)) $+(12&lt;,%kick.number,12&gt;)
    inc %kick.number
  }
}


New username: hixxy
#106670 02/01/05 08:44 PM
Joined: Jan 2005
Posts: 11
P
Pikka bird
OP Offline
Pikka bird
P
Joined: Jan 2005
Posts: 11
Thank you so very much.

#106671 02/01/05 08:46 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Yw smile


New username: hixxy

Link Copied to Clipboard