look you need to know, that its not needed it
if ($1 == `o) { msg chanserv@services.dodear.com op $chan $2- } halt
if ($1 == `d) { msg chanserv@services.dodear.com deop $chan $2- } halt
you probably use it on ur server but, in other server using Anope, you can use
cs op # $2
this
if ($1 == .p) { mode $chan $2 +p } halt ( Work Same As Secret Mode )
you need to know that the mode +p its not the same as mode +s,
on Unreal
the +s mode, hides channel from /list and /whois
the +p mode hides channel from /list only
about this
/ban # $$2 | /kick # $$2
you can use this
ban -k # $2 2 $3-
where 2 its the type of ban and $3- its the reason
i dont know which Flags do u use for IRCops on your server, but most of servers use +o for Globals and +O for locals
so
On *:Input:#:{
if (/* iswm $left($1,1)) && ($ctrlenter) || ($inpaste) { return }
if (O isincs $usermode) { commands }
}
the $ctrlenter and $inpaste will prevent it run the command if the user press ctrl+enter, or its a ctrl+v action (inpaste)
by the way the if (O isincs $usermode) will check if you have IRCop status to do it
just giving an advice you can use this
if $regex($1,/^sum(onning|o|on)$/Si) { return Summoning }
if $regex($1,/^f(m|ire|iremaking)$/Si) { Return Firemaking }
if $regex($1,/^h(p|its|itpoints|it)$/Si) { Return Hitpoints }
if $regex($1,/^R(anged|ange)|Arche(r|ry)$/Si) { Return Range }
if $regex($1,/^mag(e|ic)$/Si) { Return Magic }
if $regex($1,/^def(end|ence)$/Si) { Return Defence }
if $regex($1,/^pra(y|yer|ying)/Si) { Return Prayer }
sorry but i didnt understand, what this is made for
/F4 {
if ( $nick != $me ) { /MSG ChanServ op $chan $me }
if ( $me isop # ) { /mode $chan -oooo $me }
}
cause using this exactly sentence if ($nick != $me), it will op u using chanserv, and then, deop urself after this...
by the way, correct me if im wrong, whats the purpose of use $nick, in a F-key?
cause $nick,will not return nothing...
if you use
/F4 {
echo -a $nick
}
it will only return
$nick
Returns the nickname of the user associated with an event.
from help file
since the Function keys are not an event, i dont see a reason to use this
the events, could be this
ON *:TEXT:*:*: check_away $nick $1-
ON *:ACTION:*:*: check_away $nick $1-
alias check_away {
if (%AwayControl == ON) && ($me isin $strip($1-)) {
notice $nick .:[I am away]:. .:[ Reason: %AwayMSG ]:.
}
}
no need to use the if ($me != $1-) by the way, its wrong, if you would to use something like this is if ($me !isin $1-), and no halts, look
if your nick its not on $1- and %awaycontrol its not on, it will not be triggered so dont need a check for this
by the way
I'm away bitches
i think this message its kinda offensive for ppl, and some ppl will not like this
u put
unset %AwayMSG, and then unset %AwayNICK,
you could use this unset %Away*
its a simple edit for this
well, u deleted my comment, so if u delete again, i will post it again
these 3 lines
on *:sockopen:define2: sockwrite -nt $sockname GET /download.htm HTTP/1.1
on *:sockread:define2: { sockread %x
if (: == $left(%x,1)) $gettok(%x,1-,58) }
what is made for? cause if u go to http://heart.mooo.com/download.htm, all you gonna see is :noop, so the author made 3 lines just to put noop?
sorry about question, i just want to know this
in this case use just
on *:ctcpreply:*ping*: {
var %tik $ctime - $2
var % $+ $iif($nick == $me,n bot,n $nick)
var % $+ $iif(%tik <= 0,tik 0)
msg %p %n $+ 's ping: $duration(%tik,1) $replacex(%tik, 0, Good, 1, Average, 2, High, 3, Critical)
unset %p
}
i didnt check the entire code, thats why i didnt see the value for %p
dude i dont know, whats the value for %p but dont need to unset it all time
this is a simple edit, of course, if you put a value for %p
like a specific channel, var %p channel, dont need to unset it
on *:ctcpreply:*ping*: {
var %tik $ctime - $2, %p #channel
var % $+ $iif(%n == $me,n bot,n $nick)
var % $+ $iif(%tik <= 0,tik 0)
msg %p %n $+ 's ping: $duration(%tik,1) $replacex(%tik, 0, Good, 1, Average, 2, High, 3, Critical)
}
this is a simple edit based on your code, of course, there is many ways to do this script
jaytea, i dont know if this make difference, i know the binary system, and how it works, i tried on 3 differents websites and all them showed the same result without any dot, and different from that result
http://www.easycalculation.com/ascii-hex.php
http://www.stringfunction.com/binary-hex.html
http://www.roubaixinteractive.com/PlayGround/Binary_Conversion/Binary_To_Text.asp
about the k m b, on your main script, you use it to multiple if the person use
!calc 33K+44K , then the script will recognize that this is 33,000+44,000
we just used $replace, on this case, to replace k for 1000, m 1000000, b *1000000000
so the $calc identifier will multiply, in this case
$calc(33*1000) and 33k, will become 33,000
look dont need the if $1 == !calc, cause if you put an space here
on *:text:!calc *:#: {
this
!calc123
will not happen, by the way, why dont u do a check for
if ($2 isnum)
to check if $2- is number, then you will send a message to channel like
if ($2 !isnum) { msg $chan ERROR: syntax: !calc 1+1 }
the $strip identifier, strip all incoming colors
then $host will reveal your real host (and, consequentially, your IP) whereas $ial($me).addr and $ial($me).host would not.
yes, as i said, i dont know why he wants to use $host to send his real local host on server, cause the $ial($me).host will only show the mask that server gave to u. instead of your real ip. by the way, if u use $host in a bnc, it will return ur host, and not the BNC host
Tidum i guess that on Justin.tv has a different command to clear it, cause there is other snippet here, that another guy used /msg $chan /clear like this one
http://www.hawkee.com/snippet/8016/
i never used it, so i dont know how it works