"on :dialog:QB:init::{
did -b qb 5,6,7,8"
You should remove the 8 or else the "Choose a nick" wont work :)
what are you talking about? $did(8) doesnt even exist in this script... it was an error, there is no ID 8
the fact of using a double warning, is:
if someone has a pm blocker too, it wont accept the query, so it will send a notice, of course ppl can remove it, and just have notice
you need to specify that the user needs owner access or OPER override +v to use
mode # -q $rname
some networks does not has "access" as alias in services, and the command "clear" will clear the entire list, not only a specific level
access # clear owner $rgate 0
if someone uses
mode # -qaohv $str($nick,5)
they wont have any privileges to "deop" or "deowner" someone, to use "mode"
for what is this line made for?
mode $me +h $hget(data,# $+ q)
UMODE +h in some networks are only for Staff members or IRCops
you're talking about what connection? 250 kbps? cause on a 10/15 mb/s u cant even tickle a connection
by the way its +T case sensitive, its an usermode in UnrealIRCd that allows you to not receive CTCP's
you will require a lot of connections to ping timeout someone (i really meant a lot):
1 - if the person is connected through a proxy
2 - if it is a BNC/ZNC/SHELL
3 - if it is a VPN
you will need the original IP
some routers has ping/flood protection too
if you're trying to do it by yourself, you will get lagged, and it will took a lot of time, even if its a 250 kbps connection
i think the ping thing wont work...
1- you have to send a lot of packets to someone, so this person may ping timeout
2 - Ddos'ing someone its not like that, it wont ping timeout no one, since server will only answer you the time between your connection and server connection
try
//ping $server
doesnt matter what nickname or name you put in /ping it will always returns your connection delay
by the way a /ctcp ping may be blocked by users in UnrealIRCd using the usermode +T
you have to use a lot of connections to ping timeout someone
i think you could short this a little bit...
/mode $chan +b $address($nick,1)
/ban $chan $nick 2
/ban $chan $nick
/mode $chan +b $nick
kick # $nick $+ $rand(2,15) $+ , $+ $rand(2,15) $+ BaN PRoTeCTioN $+
using
ban -k $chan $nick 2 $+ $rand(2,15) $+ , $+ $rand(2,15) $+ BaN PRoTeCTioN $+
your version will ban $nick 3 times
by the way you're using a timer in a "on kick" event
on !@*:KICK:#:{
if ( $knick == $me ) {
.timer 1 1 join $chan
.timer 1 1 mode $chan -o $nick
.timer 1 1 kick $chan $nick $+ $rand(2,15) $+ , $+ $rand(2,15) $+ KiCK PRoTeCTioN $+
.timer 1 1 /mode $chan +b $nick
.timer 1 1 /ban $chan $nick
.timer 1 1 /ban $chan $nick 2
.timer 1 1 /mode $chan +b $address($nick,1)
}
}
since you used the same time for all the events, some of them, wont work...
mode $chan -o $nick
kick
and ban things...
the on join event, will be triggered when you join again, and the on join event recognizes everyone as regular users
so it will return
- /ban: invalid parameters
KICK Not enough parameters
for the raw event you can use
raw *:*:{
if $istok(471 473 475 474,$numeric,32) { cs invite $2 }
if ($numeric == 474) { cs unban $2 $me | cs invite $2 }
haltdef
}
on the "on ban" event, there is missing a mask
mode $chan -ob+eea $nick $banmask $address($me,1) $address($me,2)
you have used the +a for no one, so it wont +a no one....
by the way in some networks +a means "admin" and only Owners can set +a
1 - if you will remove all the HTML tags, doesnt need to put $null
2 - if you will use tokenize, why did you use $gettok so? instead using $1 $2 and $3?
3 - you dont need to do a lot of vars like on hhfree alias... just return the value of all the commands
4 - there is no reason to use alias GetDefineSearch when you can do the same command on the on text event
5 - no need to use timers, and then do a noop command just to flood control
6 - whats the reason for the $ticks on $regsubex, if you will not call the $regsubex name after?
7 - you are a newbie, accept the advices
8 - if you want to make it a challenge, we can short it a lot, check my example, shorter and with some modifications
alias -l hhfree {
return $replace($regsubex($regsubex($1-,/<[^>]+>/g,),/&#(\d+);/g,$chr(\1)), ,$chr(32),",")
}
On $*:Text:/^(!|@)Define.*/Si:#:{
if ($($+(%,define,$wildsite,$network),2) = 1) { .notice $nick Please wait 6 seconds to trigger this command again. | return }
else {
set -u6 $+(%,define,$wildsite,$network) 1
var %sockname = $+(define,$network,$2,$ticks)
sockopen %sockname oxforddictionaries.com 80
sockmark %sockname $iif($regml(1) == !,.msg $chan,.notice $nick) $2-
}
}
on *:sockopen:define*:{
tokenize 32 $sock($sockname).mark
if (!$sockerr) {
var %x = sockwrite -nt $sockname
%x GET $+(/definition/,$3,?q=,$3) HTTP/1.1
%x Connection: close
%x Host: $+($sock($sockname).addr,$str($crlf,2))
}
else { $1-2 $sock($sockname).addr is having some technical difficulties. }
}
on *:sockread:define*:{
tokenize 32 $sock($sockname).mark
if ($sockerr) { $1-2 $sock($sockname).addr is having some technical difficulties. }
else {
var %define
sockread %define
if ($regex(%define,/<span class="definition">(.*?)<\/span>/)) {
$1-2 Definition: $hhfree($regml(1))
}
if ($regex(%define,/<span class="exampleGroup exGrBreak"> <em class="example"> (.*?)<\/em><\/span>/)) {
$1-2 Example: $hhfree($regml(1))
}
if (*Page not found* iswm %define) {
$1-2 No Results have been found for: $qt($3) | sockclose $sockname
}
}
}
Jethro
why dont you use "isadmin"?
There is no such thing as "isadmin" operator, Mr. Dean.
i hate when lame ppl comment on my posts, with lame answers... i said to him, there is already an operator called isprotect... i asked him, if he could change the name of his identifier to "isadmin" instead "isprotect" since it may confuse the other ppl with the "isprotect" operator...
the isprotect operator works... i think you dont know how to use it...
from the mIRC help file
isprotect if v1 is a user in your protect list for channel v2 (v2 optional)
Protect
If you are on a channel and you have channel Op status, any users that match the nicknames in the protect list will be automatically protected. mIRC does this by kicking or de-opping anyone who tries to kick or de-op your protected users.
the isprotect, on mIRC is an operator for conditions, in this case it will check if v1 is a protected nick on your protect list... i just give you a tip, for, why not use isadmin, instead isprotect, since it may confuse the other ppl...