3nigmat1c
To be honest your method does not work
correctly. The | (pipe) in front of the
/describe command breaks the timers
(Status => * /timer: timer 1 not active)
and causes all the the replies to be sent
immediately without being throttled.
Your original trigger is fine for
your intended use. Many people will
want to use the $me type trigger.
Jethro's snippet worked for me.
I made a few refinements.
On the trigger only need to comma
separtate out the $me part, no
need for the $+ before that one |
and tweeked the while loop.
Basically any time you find yourself doing a
while (%x <= $ident(0)) looking at the total you
can often do something like the above and use
the $ifmatch or the even shorter $v1 identifier
Riffpilgrim
Scroll up to my previous post. All that
!$2 !$3 !ison negative logic can be rearranged
and simplified to give same results as your
original with less keystrokes and easier to read.
Well whatever you want to do with the trigger.
Add the \b (boundary) such that it matches on
!dedi !dedicate and !dedication since without
the \b it was gonna match on !dedication anyway
and anything that followed !dedi command.
You could rearrange the whole if !$2 || !$3
to be as follows. No need for %whom just use $2
Only the first hadd needs the -m and %dedi
can be used for the whole hash table name one
time like below.
This may be better menu item.
$iif($nick(#,$me,~&@%),Clone Kick):cskick
This would be shorter for all those colons.
echo # 11,11 $str(:,82)
Type 4 ==> $address($nick(#,%t),4) <== is a tad harse.
The type 4 mask will give unexpected results at times.
It is possible that all users from the same isp would
appear the same. A common isp practice is to report the
host mask such as: @xyz-255-255-255-255.ispdomain.net
The ip address would be between the @ and the first dot.
When mIRC wildcards the mask using type 4 it makes a
very simple decision about the part after the @. If at
least one dot devides up a series of all numbers it will
star (*) the last group of numbers after the last dot.
However if any letters are in the part after the @ then
it must have two dots before it puts a star in place of
the part after the @ and before the first dot. What this
means is that $mask(Nick!user@53.217.34.117,4) would
return *!*@53.217.34.* which could be somewhat usefull.
But, with $mask(Nick!user@usa-53-217-34-117.ispname.net,4)
mIRC would return *!*@*.ispname.net thus matching every
user from that isp. For clone detection and basic popup
bans and bot bans it may be best to use type 2 mask.
I did just notice that some large comics are shrunk as to make
them unreadable ==> http://www.explosm.net/comics/1403/
Can't figure a good work arround right now.
To: zNigel- and Astaroth
Reply: I cleanup all the time! Note image pane one
right of center and image pane three left of center
can of air used to remove ashes and cheezy poof crumbs
from keyboard.
To: pOd
Reply: Yes the tower survived daily small fires from
packs of Winston cigarettes. The large brown stain is
actually tar from the cigarettes left burning in the
ash tray in front of the tower. (The Towering Inferno!)
Note this seemed to have no affect on operation as you
can see mIRC is being displayed on the monitor. This
series of pictures was taken before 2005 as that year
I quit smoking.
To: Cracker200
Reply: I have since got a new laptop and retired that
old warhorse. That machine has fond memories as I built
it late 1998 and ran it through 2006 with many hardware
changes and w98se reinstalls. Never since day one did it
have the skins installed.
Reply All: No one mentioned the harddrive just laying in
the bottom of the tower or the 5-1/4" floppy or the mini-
mag flashlight magnetically attached to the side of the
tower or the half hanging out CD burner with white tele-
phone on top of it.
This is a well thought out fun addon.
I tried it. It worked. I didn't even
want to look through all that code and
try to find any ways to improve it.
The only thing I did was make it so it
only appears in my top menubar menu.
I may color the link to the webpage
where it echos to status so I can spot
it for copy pasting when I see one I
wish to share. I gave it a like.
Cracker200
This is a simple Classic Magic 8Ball that uses the twenty responses from the original Magic 8Ball. I made it this way to specifically avoid using a separate txt file as editing/changing responses is not desired. I believe that using a separate txt file for this classic version would offer no benefits, slow it down by requiring harddrive reads, increase file size (storage space) and unnecessarily complicate this snippet.
Needs an if $exists for the file on load event.
I only put enough file writes to demonstrate.
Eliminated set/global variables.
Eliminated _jibb alias.
Simplified while loops.
Changed !commands so !8ball* could
be used in on TEXT event filter.
slub77
Scroll up. sk68 was quoting you and offering
a valid simplication of your suggestion. Jethro
was following up with his suggested clarification.
With my previous post I choose to not comment
on YOURBOT issue because I was sorta all about
not repeating that same if $me condition three
times when one time was enough/better. Mostly
I ignore issues about nick, channel, colors, etc
on the theory that we are all capable of modifying
those things the way we want.
Global variables require a harddrive write/read
local variables are held in ram. Also, by avoiding
set variables as much as possible you 'future proof'
your scripts come the day you wish to run it off a
solid state harddrive or flash memory device. I try
to only use a set global variable if I need to retain
the data across sessions and make it available to all
scripts and connections. Another nice thing about using
local variables is less likely to have variable name
collisions. They only work within that one alias, event,
or menu item. Makes it easy to use single letter variable
names.
Jethro
Nice use of goto jumps.
Saves a little space.
Should run faster also.
Just a few tweeks.
BTW.. wouldnt messaging the channel to tell peeps
to wait 10 seconds sorta negate the whole flood
protection provided by %b ???
Dont think the timers are needed.
Needs some type flood protection.
Should put everything within if $me condition.
Maybe rearrange if/elseif conditioms so most
used item is first.
Both the above expressions match only on wordA OR wordB OR wordC. If any other text preceeds or follows the word it will not match. Even if more exact matches are part of the string. The \b word boundary is unnecessary because with ^ it must begin with wordA OR wordB OR wordC and with $ it must also end with it. The g switch is unnecessary because it can only match a single word anyway. Of course the i switch ignores case and the S switch strips mIRC control codes. Also for a 'swear kicker' the g switch is not really needed because if it matches it does not need to continue searching and go ahead and kick.
Code