mIRC Snippet:
Peak counter for channels -___-
Posted on Jul 2, 2008 1:07 am
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.
mIRC Snippet:
Peak counter for channels -___-
Posted on Jul 1, 2008 11:50 pm
Posted on Jul 1, 2008 11:50 pm
you have a bracket missmatch
mIRC Snippet:
Turn text into ascii
Posted on May 12, 2008 6:50 pm
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)) :)
mIRC Snippet:
Turn text into ascii
Posted on May 12, 2008 6:26 pm
Posted on May 12, 2008 6:26 pm
Pretty good, I made an alternative using binvars:
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.
| 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.
mIRC Snippet:
Badword snippet
Posted on May 12, 2008 1:29 am
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.
mIRC Snippet:
Badword snippet
Posted on May 11, 2008 9:26 pm
Posted on May 11, 2008 9:26 pm
| Code: |
| ban -k1800 ... |
| Code: |
| ban -ku1800 ... |
* Dont forget the "u" switch
mIRC Snippet:
Badword snippet
Posted on May 11, 2008 8:30 pm
Posted on May 11, 2008 8:30 pm
mIRC Snippet:
Badword snippet
Posted on May 11, 2008 7:29 pm
Posted on May 11, 2008 7:29 pm
juhapuha said:
no just lazy =P
| Quote: |
| Am I noob if i don't want to WRITE dialogs? :) |
no just lazy =P
mIRC Snippet:
Badword snippet
Posted on May 11, 2008 6:20 pm
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 } } } |
mIRC Snippet:
Power script
Posted on May 11, 2008 5:30 pm
Posted on May 11, 2008 5:30 pm
Well, no .. but if you're lazy, or want to be more efficient, just use else...
mIRC Snippet:
Badword snippet
Posted on May 11, 2008 3:47 pm
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? :)
Am I noob if i don't want to WRITE dialogs? :)
mIRC Snippet:
Badword snippet
Posted on May 11, 2008 2:27 pm
Posted on May 11, 2008 2:27 pm
lol lazy git
not even Im that N00b
not even Im that N00b
mIRC Snippet:
Badword snippet
Posted on May 11, 2008 2:14 pm
Posted on May 11, 2008 2:14 pm
why use a program for? =/ just make one by hand they are not hard to make.
mIRC Snippet:
Power script
Posted on May 11, 2008 1:26 pm
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 ;)
mIRC Snippet:
Power script
Posted on May 11, 2008 8:58 am
Posted on May 11, 2008 8:58 am
Don't kill me please. :(
mIRC Snippet:
Badword snippet
Posted on May 11, 2008 6:47 am
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






