Top

Comments

  (16)  RSS
Phoenix847's
mountaindew
Comments: 1316
 
mIRC Snippet:  !kb script
Posted on Apr 4, 2008 6:53 pm
I would learn the $iif identifier.

Basically it's $iif(statement,if true,if false)

So like "echo -a $iif(2 == 3,yup,nah)" would return nah

In this case, you could do
Code:

ban -k $chan $2 $iif($3,$3-,You !@#$ up. Bai.)
Phoenix847
Comments: 8
 
mIRC Snippet:  !kb script
Posted on Apr 4, 2008 5:50 pm
GAHH napa182, you friggin know everything xD ... and I totally missed %3-... I'm not sure why I put that o.O
Lmao @ EL
and thanks jonesy44, I just might add that ;)
jonesy44
Comments: 377
 
mIRC Snippet:  !kb script
Posted on Apr 4, 2008 9:01 am
lmfao, EL :P

u may wanna add:

Code:

if (!%count) {
  set %count 1
}


:)
EL
Comments: 573
 
mIRC Snippet:  !kb script
Posted on Apr 3, 2008 10:44 pm
...Thinking doesnt suit you Napa :P
napa182
Comments: 653
 
mIRC Snippet:  !kb script
Posted on Apr 3, 2008 10:13 pm
no need to set global vars and you have where it says set %kbreason %3-
should be $3-
you could have it like this as well

Code:
on *:text:!kb*:#:{
  if ($nick(#,$nick,vr)) ||  ($2 == $me) {
    .notice $nick $iif($2 == $me,Piff You Think So?,You must be halfop or above to use my !kb script.)
  }
  elseif (!$2) || ($2 !ison #) {
    .notice $nick $iif(!$2,Please Enter A Nick To Ban.,I Can't Seem To Find $2)
  }
  else {
    var %kbreason $3-
    if (!%kbreason) { var %kbreason You !@#$ up. Bai. }
    ban -k $chan $2 %kbreason
    inc %count
    msg $chan $2 Is The $ord(%count) Noob To Be Turned Into A Sweatshop Worker...
  }
}


just a thought....
jonesy44
Comments: 377
 
mIRC Snippet:  Bangin Mp3z Player (My Version)
Posted on Mar 29, 2008 12:03 pm
Bangin (Y)
napa182
Comments: 653
 
mIRC Snippet:  Timed Akick Script
Posted on Mar 29, 2008 12:52 am
well if you are going to akick them you mite want it to kick them when you do, and instead of useing / on the timers use a . to stop the timer flood. also no need to set a global var you can use a local var instead.
Tom445566
Comments: 12
 
mIRC Snippet:  Timed Akick Script
Posted on Mar 29, 2008 12:41 am
Edit: Unban should be /timer 2 /mode $chan -b $2 The other didn't work for me.
Tom445566
Comments: 12
 
mIRC Snippet:  Timed Akick Script
Posted on Mar 29, 2008 12:31 am
You forgot unban :L
BlueThen
Comments: 153
 
mIRC Snippet:  Add a channel instantly
Posted on Mar 28, 2008 9:50 pm
Well, try and get into the habbit of not using /'s, because it makes the code look cleaner.
Phoenix847
Comments: 8
 
mIRC Snippet:  Timed Akick Script
Posted on Mar 28, 2008 9:49 pm
Hmm? I don't see the missing bracket, and I definitely don't know why I do have an inc count in there LOL.
Missing a few things? ... Like what?
Only a beginner scripter here so I do need a little help =/
Phoenix847
Comments: 8
 
mIRC Snippet:  Add a channel instantly
Posted on Mar 28, 2008 9:45 pm
I know you don't need the / but I use it only because thats what I first began with, and sort of grew into it. It adds a little organization for me.
mountaindew
Comments: 1316
 
mIRC Snippet:  Add a channel instantly
Posted on Mar 28, 2008 2:13 pm
Better yet, .'s would be better so you don't see all the msg's.
Eugenio
Comments: 281
 
Image:  Me
Posted on Mar 28, 2008 10:54 am
Woah
napa182
Comments: 653
 
mIRC Snippet:  Timed Akick Script
Posted on Mar 28, 2008 1:09 am
you are missing a bracket and why inc a count if you are not going to use it. and it seems you forgot a few things... 2/10
BlueThen
Comments: 153
 
mIRC Snippet:  Add a channel instantly
Posted on Mar 27, 2008 11:32 pm
There's no need for /'s... just for future reference.
Bottom