Top

Comments

  (71)  RSS
juhapuha's
vaseline28
Comments: 105
 
mIRC Snippet:  Peak counter for channels -___-
Posted on Jul 2, 2008 1:07 am
Quote:
if (!$hget(peak)) { hmake peak }
if ($exists(peak.hsh)) { hload peak peak.hsh }

In the on *:connect and on *:load events change to:
Quote:
if (!$hget(peak)) hmake peak
else hload peak peak.hsh

Instead of checking twice, it skips straight to the next bit, making it faster.
Taking out the brackets also makes it faster.
napa182
Comments: 735
 
mIRC Snippet:  Peak counter for channels -___-
Posted on Jul 1, 2008 11:50 pm
you have a bracket missmatch
juhapuha
Comments: 39
 
mIRC Snippet:  Turn text into ascii
Posted on May 12, 2008 6:50 pm
Yeah :) but atleast that's good for my use because it returns those ascii values like $+($chr(number),$chr(number)) :)
foobar
Comments: 6
 
mIRC Snippet:  Turn text into ascii
Posted on May 12, 2008 6:26 pm
Pretty good, I made an alternative using binvars:
Code:
alias ascii {
  bset $iif(!$prop,-t) &ascii 1 $1-
  return $bvar(&ascii,1,$bvar(&ascii,0)) [ $+ [ $iif($prop,.text) ] ]
}


Also, a little pointer: $eval(<blah>,0) (in your script) can be $!<blah>. So: $eval($chr,0) can be $!chr and $eval($+,0) can be $!+.

Perhaps try adding a way to do the opposite and convert asc values to actual characters? As I did in mine.
foobar
Comments: 6
 
mIRC Snippet:  Badword snippet
Posted on May 12, 2008 1:29 am
Quote:
lol lazy git
not even Im that N00b


To be honest, I'd rather use a program.
A) I don't think a user wants to go through the labor of constantly adjusting the dialog and making it align perfectly.
B) With programs such as dialog studio, you have alignment tools, etc.; making the final outcome even better than constantly adjusting everything.

Dialogs, in most cases, are used to look better and make things easier to handle. Why go through just as much work creating them? Sure, you might be lazy, but the result is worth it.
xDaeMoN
Comments: 696
 
mIRC Snippet:  Badword snippet
Posted on May 11, 2008 9:26 pm
Code:
ban -k1800 ...
should also be
Code:
ban -ku1800 ...


* Dont forget the "u" switch
mountaindew
Comments: 1,366
 
mIRC Snippet:  Badword snippet
Posted on May 11, 2008 8:30 pm
juhapuha
Comments: 39
 
mIRC Snippet:  Badword snippet
Posted on May 11, 2008 8:21 pm
;>
napa182
Comments: 735
 
mIRC Snippet:  Badword snippet
Posted on May 11, 2008 7:29 pm
juhapuha said:
Quote:
Am I noob if i don't want to WRITE dialogs? :)


no just lazy =P
juhapuha
Comments: 39
 
mIRC Snippet:  Power script
Posted on May 11, 2008 7:01 pm
:-)
Jethro_
Comments: 2
 
mIRC Snippet:  Badword snippet
Posted on May 11, 2008 6:20 pm
This is a nice bad word script using hash tables. But upon using it, I've found that it doesn't show the bad words stored. (I don't know maybe it's just me) Instead it shows the date and time only. I did change something a little to and it turns out well and it fits my needs:

Code:
hadd -m Profanity %bw $date $asctime(hh:nn:ss TT) | echo -a 4* 2The bad word $+ 4 %bw 2is added successfully.


Code:
 .List Bad Words: {
    if (!$hget(badword,1).item) { echo -s 6* 2my badword list is currently empty. }
    else var %x = $hget(badword,0).data,%d = 0
    while (%x) {
      echo -s 4*1 $hget(badword,%x).data ->4 $hget(badword,%x).item 2is on my profanity list.
      dec %x | inc %d
    }
  }
}
jonesy44
Comments: 614
 
mIRC Snippet:  Power script
Posted on May 11, 2008 5:30 pm
Well, no .. but if you're lazy, or want to be more efficient, just use else...
juhapuha
Comments: 39
 
mIRC Snippet:  Badword snippet
Posted on May 11, 2008 3:47 pm
I don't want to write dialogs by hands! I know they're not hard to make.
Am I noob if i don't want to WRITE dialogs? :)
Eugenio
Comments: 465
 
mIRC Snippet:  Badword snippet
Posted on May 11, 2008 2:27 pm
lol lazy git
not even Im that N00b
napa182
Comments: 735
 
mIRC Snippet:  Badword snippet
Posted on May 11, 2008 2:14 pm
why use a program for? =/ just make one by hand they are not hard to make.
juhapuha
Comments: 39
 
mIRC Snippet:  Power script
Posted on May 11, 2008 1:32 pm
Does it matter? ;)
juhapuha
Comments: 39
 
mIRC Snippet:  Clonescanner
Posted on May 11, 2008 1:31 pm
comments please....
mountaindew
Comments: 1,366
 
mIRC Snippet:  Power script
Posted on May 11, 2008 1:26 pm
Code:

  if (c isincs $gettok($chan($active).mode,1,32)) { echo -a Can not use the script on $active $+ : The channel mode c present (No colours). }
  if (c !isincs $gettok($chan($active).mode,1,32)) {

Just use "else {" for the second if ;)
juhapuha
Comments: 39
 
mIRC Snippet:  Power script
Posted on May 11, 2008 8:58 am
Don't kill me please. :(
juhapuha
Comments: 39
 
mIRC Snippet:  Badword snippet
Posted on May 11, 2008 6:47 am
I don't have any program to create dialogs, and I will never make them without program. :D
1 2 3 4 Next
Bottom