Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Deathlist v1.0
- ; by ch1zra
- ; ch1zra@gmail.com
- ; http://uptheirons.co.sr/
- ; #Scripters @ irc.krstarica.com
- ; Copyright © 2007 Up The Irons ! inc.
- ;
- ; #Comment on
- ; if you are planning to use this in your script,
- ; I'd appreciate credits, and maybe a link to script :]
- ; #Comment end
- ; -------------------------> on $Load and $UnLoad <-------------------------
- on 1:load: {
- if ($version > 6.17) {
- echo -a [Deathlist] :: succesfully loaded !!!
- echo -a [Deathlist] :: Please, take a few minutes to read the 4Deathlist's help file, so you could use this addon properly.
- echo -a [Deathlist] :: ch1zra@gmail.com
- echo -a [Deathlist] :: http://uptheirons.co.sr/
- if (!$rdli(deathlist)) {
- wdli deathlist off
- wdli soulsearch off
- wdli soulmask 7
- wdli soulscan 8 1800
- wdli ban off
- wdli ignore off
- wdli kick off
- wdli banmask 3
- wdli banduration 9 2700
- wdli kickmsg Deathlisted!! [Abandon hope, all ye who enter here!]
- wdli bcount 1
- }
- deathlist
- }
- else {
- echo Version 6.17 or higher required, get a newer version of mirc at http://www.mirc.com
- unload -rs $script
- }
- }
- on 1:unload: {
- if ($dialog(deathlist)) {
- dialog -c deathlist
- }
- echo -a [Deathlist] :: succesfully UNloaded !!!
- echo -a [Deathlist] :: settings are saved in4 $scriptdir
- }
- ; -------------------------> mIRC $Events <-------------------------
- on *:start: {
- hmake deathlist 100
- if ($isfile($qt($scriptdirdeathlist.dat))) hload deathlist $qt($scriptdirdeathlist.dat)
- }
- on *:close: {
- hsave deathlist $qt($scriptdirdeathlist.dat)
- }
- ; -------------------------> $Aliases <-------------------------
- alias -l wdli { writeini $qt($scriptdirdeathlist.ini) Settings $1 $2- }
- alias -l rdli { return $readini($qt($scriptdirdeathlist.ini),Settings,$1) }
- alias -l dl.bdur { return $gettok($rdli(banduration),2,32) }
- alias -l dl.ssr { return $gettok($rdli(soulscan),2,32) }
- alias deathlist {
- if ($1 == $null) {
- if ($dialog(deathlist)) {
- dialog -ve deathlist deathlist
- }
- else dialog -mdo deathlist deathlist
- }
- if ($1 == on) {
- .enable #deathlist
- wdli deathlist on
- if ($dialog(deathlist)) { dialog -c deathlist | dialog -mdo deathlist deathlist }
- if ($rdli(soulsearch) == on) && ($server) { .timersoulsearch 0 $dl.ssr dl.check }
- }
- if ($1 == off) {
- .disable #deathlist
- wdli deathlist off
- if ($dialog(deathlist)) { dialog -c deathlist | dialog -mdo deathlist deathlist }
- if ($timer(soulsearch)) { .timersoulsearch off }
- }
- elseif ($1) && ( $1 != on) && ($1 != off) { echo -a [Deathlist] :: Bad input. }
- }
- alias soul.add {
- if (!$1) { return }
- hadd -m deathlist $1 $iif($2,$2-,added on $fulldate)
- if ($dialog(deathlist)) {
- did -r deathlist 2
- dlist.list
- }
- if ($input(You just added $crlf $1 $crlf to Soul Pit $+ $chr(46) do you want to perform a Soulscan now?,y,New soul added to Soul Pit) == $true) {
- dl.check
- }
- }
- alias -l just.punish {
- if ($rdli(ignore) == on) { .ignore $address($2,$calc($rdli(soulmask) - 1)) }
- if ($rdli(ban) == on) {
- ban $iif($rdli(kick) == on,-k) $+ $iif($dl.bdur, $iif($rdli(kick) == on, u $+ $dl.bdur,-u $+ $dl.bdur)) $1 $2 $rdli(banmask) $rdli(kickmsg) $+ $3- $+ [ $rdli(bcount) ]
- wdli bcount $calc($rdli(bcount) + 1)
- }
- if ($rdli(kick) == on) && ($rdli(ban) == off ) {
- kick $1 $2 $rdli(kickmsg) $+ $3- $+ [[ $rdli(bcount) ]]
- wdli bcount $calc($rdli(bcount) + 1)
- }
- }
- alias -l dl.check {
- if ($dialog(deathlist)) {
- did -r deathlist 2
- dlist.list
- }
- var %dl.chk $chan(0)
- while (%dl.chk) {
- if ($me isop $chan(%dl.chk)) { soulscan $chan(%dl.chk) $calc($rdli(soulmask) - 1) }
- dec %dl.chk
- }
- }
- alias -l dlist.list {
- var %s $hget(deathlist,0).data
- while (%s) {
- did -a deathlist 2 $hget(deathlist,%s).item
- dec %s
- }
- did -b deathlist 4,5
- }
- alias -l dlist.about {
- if ($dialog(deathlist)) { dialog -i deathlist }
- if ($dialog(dlist.about)) {
- dialog -ve dlist.about dlist.about
- }
- else dialog -mdo dlist.about dlist.about
- }
- alias soulscan {
- if (!$server) { halt }
- if ($0 == 2) && ($left($1,1) == $chr(35)) && ($2 isnum) { tokenize 32 $1- }
- elseif ($0 == 1) {
- if ($1 isnum) && ($chr(35) == $left($active,1)) { tokenize 32 $active $2 }
- elseif ($chr(35) == $left($active,1)) { tokenize 32 $1 $calc($rdli(soulmask) - 1) }
- }
- elseif ($0 == 0) && ($chr(35) == $left($active,1)) { tokenize 32 $active $calc($rdli(soulmask) - 1) }
- else { echo -a [Deathlist] :: Bad input, halting. | halt }
- if ($me !ison $1) { echo -a [Deathlist] :: Bad input, halting. | halt }
- if ($me isop $1) {
- var %dl.cn $nick($1,0)
- while (%dl.cn) {
- var %dl.sn $hget(deathlist,0).data
- if (%dl.sn != $null) {
- while (%dl.sn) {
- if ($hget(deathlist,%dl.sn).item iswm $address($nick($1,%dl.cn),$2)) && ($nick($1,%dl.cn) != $me) {
- echo $1 [Deathlist] :: Match4 $hget(deathlist,%dl.sn).item in4 $nick($1,%dl.cn) ::4 $address($nick($1,%dl.cn),$2)
- just.punish $1 $nick($1,%dl.cn) $hget(deathlist,%dl.sn).data
- inc %dlist.found
- }
- dec %dl.sn
- }
- dec %dl.cn
- }
- }
- }
- echo $1 [Deathlist] :: Finnished soulscanning on $+ $1 $+ .
- $iif(%dlist.found, echo $1 [Deathlist] ::4 %dlist.found $iif(%dlist.found == 1,match,matches).)
- unset %dlist.found
- }
- ; -------------------------> $Group <-------------------------
- #deathlist on
- on @*:join:*: {
- var %dl.sn $hget(deathlist,0).data
- if (%dl.sn != $null) {
- while (%dl.sn) {
- if ($hget(deathlist,%dl.sn).item iswm $address($nick($1,%dl.cn),$calc($rdli(soulmask) - 1))) {
- echo $1 [Deathlist] :: Match4 $hget(deathlist,%dl.sn).item in4 $nick ::4 $address($nick,$calc($rdli(soulmask) - 1))
- just.punish $chan $nick $hget(deathlist,%dl.sn).data
- }
- dec %dl.sn
- }
- }
- }
- #deathlist end
- ; -------------------------> $Dialogs <-------------------------
- dialog deathlist {
- title "Deathlist Abandon hope, all ye who enter here! "
- size -1 -1 275 130
- option dbu
- icon $qt($scriptdirdeathlist.ico), 0
- box "Soul Pit", 1, 0 0 80 125
- list 2, 5 10 70 80, size
- edit "", 3, 5 95 70 10, autohs
- button "Possess", 4, 5 110 30 10, flat
- button "&Release", 5, 45 110 30 10, flat
- text "Soul burns for :", 6, 85 5 50 8
- edit "", 7, 125 4 145 10, read
- box "Soul Searcher", 8, 85 15 90 60
- check "Enable &Soulscanner", 9, 90 25 60 10
- text "Soul $mask used :", 10, 100 35 45 8
- combo 11, 100 45 70 20, drop
- text "Scan every :", 12, 90 61 33 8
- combo 13, 125 60 45 20, drop
- box "Justfull Punishment", 14, 180 15 90 60
- check "kick", 15, 185 25 20 10
- check "ignore", 16, 210 25 30 10
- check "ban using this $mask :", 17, 185 35 70 10
- combo 18, 195 45 70 20, drop
- text "Ban duration :", 19, 185 61 35 8
- combo 20, 220 60 45 20, drop
- box "Other Hell Spawned Settings", 21, 85 75 185 35
- text "Kick message", 22, 90 86 35 8
- edit "Deathlisted!! [Abandon hope, all ye who enter here!]", 23, 125 85 105 10, autohs
- button "Reset", 24, 235 85 30 10, flat
- check "&Deathlist disabled. No soul harvesting until enabled...", 25, 90 97 175 10, flat push
- text "http://www.uptheirons.co.sr/", 26, 85 115 80 8, disable center
- button "About", 27, 170 115 30 10, flat
- button "Help", 28, 205 115 30 10, flat
- button "Close", 29, 240 115 30 10, flat ok
- }
- dialog dlist.about {
- title "About Deathlist "
- size -1 -1 160 125
- option dbu
- icon $qt($scriptdirdeathlist.ico), 0
- text "1st of all : IRC WAR IS SHIT / CRAP / DEAD / FOR MORONS.", 1, 5 5 150 8
- text "I'm not in IRC war at all, but when someone messes with me, my friends or channels I'm on, they're bound to end up burning in depths of Hell for all eternity.", 2, 5 15 150 20, center
- text "OK, now when we clarified that one, we can go and see some info about this wicked, hell spawned, but quite usefull and functional addon.", 3, 5 40 150 20, center
- text "Author :", 4, 5 60 23 8, right
- text "Version : ", 5, 5 70 23 8, right
- text "Web :", 6, 5 80 23 8, right
- text "Mail : ", 7, 5 90 23 8, right
- text "¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯", 8, 5 35 150 3, center
- text "IRC : ", 9, 5 100 23 8, right
- text "1.07", 10, 30 70 15 8
- text "ch1zra", 11, 30 60 25 8
- text "http://uptheirons.co.sr/", 12, 30 80 60 8
- text "ch1zra@gmail.com", 13, 30 90 50 8
- text "#Scripters @ irc.krstarica.com", 14, 30 100 75 8
- icon 15, 115 60 40 45, $qt($scriptdirdb.JPG), 0
- button "OK / Close", 16, 5 110 35 10, flat ok
- text "Abandon hope, all ye who enter here!", 17, 45 110 110 8, disable center
- }
- ; -------------------------> Dialog $Events <-------------------------
- on *:dialog:deathlist:init:*: {
- if ($group(#deathlist).status == on) { wdli deathlist on }
- else { wdli deathlist off }
- if ($rdli(deathlist) == off) { did -b $dname 1-24 }
- else {
- did -ra $dname 25 &Deathlist enabled. Let the harvesting of souls begin !!!
- did -c $dname 25
- }
- dlist.list
- if ($rdli(soulsearch) == on) { did -c $dname 9 }
- else { did -b $dname 10-13 }
- if ($rdli(kick) == on) { did -c $dname 15 }
- if ($rdli(ignore) == on) { did -c $dname 16 }
- if ($rdli(ban) == on) { did -c $dname 17 }
- else { did -b $dname 18-20 }
- did -a $dname 11,18 0: *!user@host
- did -a $dname 11,18 1: *!*user@host
- did -a $dname 11,18 2: *!*@host
- did -a $dname 11,18 3: *!*user@*.host
- did -a $dname 11,18 4: *!*@*.host
- did -a $dname 11,18 5: nick!user@host
- did -a $dname 11,18 6: nick!*user@host
- did -a $dname 11,18 7: nick!*@host
- did -a $dname 11,18 8: nick!*user@*.host
- did -a $dname 11,18 9: nick!*@*.host
- did -a $dname 13,20 1 minute
- did -a $dname 13,20 2 minutes
- did -a $dname 13,20 3 minutes
- did -a $dname 13,20 5 minutes
- did -a $dname 13,20 10 minutes
- did -a $dname 13,20 15 minutes
- did -a $dname 13,20 20 minutes
- did -a $dname 13,20 30 minutes
- did -a $dname 13,20 45 minutes
- did -a $dname 13,20 60 minutes
- did -a $dname 20 Permanent
- did -c $dname 11 $rdli(soulmask)
- did -c $dname 13 $rdli(soulscan)
- did -c $dname 18 $rdli(banmask)
- did -c $dname 20 $rdli(banduration)
- }
- on *:dialog:deathlist:close:*: {
- hsave deathlist $qt($scriptdirdeathlist.dat)
- wdli kickmsg $did(23)
- }
- on *:dialog:dlist.about:close:*: {
- if ($dialog(deathlist)) { dialog -e deathlist }
- }
- on *:dialog:deathlist:edit:3: {
- if ($remove($did(3),$chr(32)) != $null) { did -e $dname 4 }
- else { did -b $dname 4 }
- }
- on *:dialog:deathlist:dclick:2: {
- if ($did(2).seltext != $null) {
- dialog -i $dname
- var %dlist.csoul $$input(Change this soul [nick/mask reason],e, Change soul $did(2).seltext,$did(2).seltext)
- if (%dlist.csoul != $null) {
- hdel deathlist $did(2).seltext
- hadd -m deathlist %dlist.csoul
- did -r $dname 2
- dlist.list
- }
- dialog -e $dname
- }
- }
- on *:dialog:deathlist:sclick:*: {
- if ($did == 2) && ($did(2).seltext != $null) {
- did -ra $dname 7 $hget(deathlist,$did(2).seltext)
- did -e $dname 5
- }
- if ($did == 4) {
- if ($did(3).text != $null) && (!$hget(deathlist,$gettok($did(3).text,1,32))) {
- tokenize $did(3)
- if (!$2) {
- hadd -m deathlist $did(3) added on $fulldate
- }
- else { hadd -m deathlist $did(3) }
- }
- did -r $dname 2,3,7
- dlist.list
- did -f $dname 3
- }
- if ($did == 5) {
- if ($hget(deathlist,$did(2).seltext)) {
- dialog -i $dname
- if ($input(Are you sure that you want to release a soul called $crlf $did(2).seltext $crlf $&
- from eternal torment ?,yw,Soul $did(2).seltext Release) == $true) {
- hdel deathlist $did(2).seltext
- }
- did -r $dname 2,3,7
- dlist.list
- dialog -e $dname
- }
- }
- if ($did == 9) {
- if ($did(9).state == 1) {
- wdli soulsearch on
- did -e $dname 10-13
- if ($server) { .timersoulsearch 0 $dl.ssr dl.check }
- }
- else {
- wdli soulsearch off
- did -b $dname 10-13
- if ($timer(soulsearch)) { .timersoulsearch off }
- }
- }
- if ($did == 11) { wdli soulmask $did(11).sel }
- if ($did == 13) {
- wdli soulscan $did(13).sel $calc($gettok($did(13),1,32) * 60)
- if ($timer(soulsearch)) { .timersoulsearch off }
- if ($server) { .timersoulsearch 0 $dl.ssr dl.check }
- }
- if ($did == 15) {
- if ($did(15).state == 1) { wdli kick on }
- else { wdli kick off }
- }
- if ($did == 16) {
- if ($did(16).state == 1) { wdli ignore on }
- else { wdli ignore off }
- }
- if ($did == 17) {
- if ($did(17).state == 1) {
- wdli ban on
- did -e $dname 18-20
- }
- else {
- wdli ban off
- did -b $dname 18-20
- }
- }
- if ($did == 18) { wdli banmask $did(18).sel }
- if ($did == 20) { wdli banduration $did(20).sel $iif($did(20).sel != 11,$calc($gettok($did(20),1,32) * 60)) }
- if ($did == 24) { did -ra $dname 23 Deathlisted!! [Abandon hope, all ye who enter here!] }
- if ($did == 25) {
- if ($did(25).state == 1) {
- did -ra $dname 25 &Deathlist enabled. Let the harvesting of souls begin !!!
- wdli deathlist on
- did -e $dname 1-3,6-9,14-17,22-24
- if ($did(2).seltext != $null) { did -e $dname 5 }
- if ($did(3) != $null) { did -e $dname 4 }
- if ($rdli(soulsearch) == on) { did -e $dname 10-13 }
- if ($rdli(ban) == on) { did -e $dname 18-20 }
- if ($rdli(soulsearch) == on) {
- if ($timer(soulsearch)) { .timersoulsearch off }
- if ($server) { .timersoulsearch 0 $dl.ssr dl.check }
- }
- }
- else {
- did -ra $dname 25 &Deathlist disabled. No soul harvesting until enabled...
- wdli deathlist off
- did -b $dname 1-20,22-24
- if ($timer(soulsearch)) { .timersoulsearch off }
- }
- }
- if ($did == 27) { dlist.about }
- if ($did == 28) { dialog -i $dname | .run $qt($scriptdirdeathlist_help.chm) }
- }
- ; -------------------------> $IRC Events and $IAL updating <-------------------------
- on *:connect: {
- if ($rdli(soulsearch) == on) { .timersoulsearch 0 $dl.ssr dl.check }
- }
- on *:OP:#: {
- if ($me == $opnick) {
- set %dlist.chans %dlist.chans $chan
- .who $chan
- }
- }
- raw 352:*: {
- if ($2 isin %dlist.chans) { haltdef }
- }
- raw 315:*: {
- if ($2 isin %dlist.chans) {
- haltdef
- set %dlist.chans $remove(%dlist.chans,$2)
- if ($me isop $2) { soulscan $2 }
- }
- }
- ; -------------------------> $Menus <-------------------------
- menu nicklist {
- $iif($me isop $active,Deathlist)
- .Burn $$1
- ..Nick
- ...* $+ $$1 $+ *:var %dlist.souladd $?="Enter reason :" | soul.add * $+ $$1 $+ * $iif(%dlist.souladd,%dlist.souladd, added on $fulldate)
- ...* $+ $$1:var %dlist.souladd $?="Enter reason :" | soul.add * $+ $$1 $iif(%dlist.souladd,%dlist.souladd, added on $fulldate)
- ...$$1 $+ *:var %dlist.souladd $?="Enter reason :" | soul.add $$1 $+ * $iif(%dlist.souladd,%dlist.souladd, added on $fulldate)
- ...-
- ...Other:var %dlist.souladd $?="Enter reason :" | soul.add $$input(Specify nick,e, Other mask for * $+ $$1 $+ *,* $+ $$1 $+ *) $iif(%dlist.souladd,%dlist.souladd, added on $fulldate)
- ..Address
- ...$address($$1,0):var %dlist.souladd $?="Enter reason :" | soul.add $address($$1,0) $iif(%dlist.souladd,%dlist.souladd, added on $fulldate)
- ...$address($$1,1):var %dlist.souladd $?="Enter reason :" | soul.add $address($$1,1) $iif(%dlist.souladd,%dlist.souladd, added on $fulldate)
- ...$address($$1,2):var %dlist.souladd $?="Enter reason :" | soul.add $address($$1,2) $iif(%dlist.souladd,%dlist.souladd, added on $fulldate)
- ...$address($$1,3):var %dlist.souladd $?="Enter reason :" | soul.add $address($$1,3) $iif(%dlist.souladd,%dlist.souladd, added on $fulldate)
- ...$address($$1,4):var %dlist.souladd $?="Enter reason :" | soul.add $address($$1,4) $iif(%dlist.souladd,%dlist.souladd, added on $fulldate)
- ...$address($$1,5):var %dlist.souladd $?="Enter reason :" | soul.add $address($$1,5) $iif(%dlist.souladd,%dlist.souladd, added on $fulldate)
- ...$address($$1,6):var %dlist.souladd $?="Enter reason :" | soul.add $address($$1,6) $iif(%dlist.souladd,%dlist.souladd, added on $fulldate)
- ...$address($$1,7):var %dlist.souladd $?="Enter reason :" | soul.add $address($$1,7) $iif(%dlist.souladd,%dlist.souladd, added on $fulldate)
- ...$address($$1,8):var %dlist.souladd $?="Enter reason :" | soul.add $address($$1,8) $iif(%dlist.souladd,%dlist.souladd, added on $fulldate)
- ...$address($$1,9):var %dlist.souladd $?="Enter reason :" | soul.add $address($$1,9) $iif(%dlist.souladd,%dlist.souladd, added on $fulldate)
- ...-
- ...Other:var %dlist.souladd $?="Enter reason :" | soul.add $$input(Add specific mask,e, Other mask for $$1,$address($$1,5)) $iif(%dlist.souladd,%dlist.souladd, added on $fulldate)
- }
- menu channel {
- Deathlist
- .Settings:deathlist
- .Soulscan $active:soulscan
- .-
- .$iif($group(#deathlist).status == on,$style(1),$style(0)) $+ Use Deathlist: $iif($group(#deathlist).status == on, .disable, .enable) #deathlist | if ($dialog(deathlist)) { dialog -c deathlist | deathlist }
- }
- menu status {
- Deathlist
- .Settings:deathlist
- .$iif($group(#deathlist).status == on,$style(1),$style(0)) $+ Use Deathlist: $iif($group(#deathlist).status == on, .disable, .enable) #deathlist | if ($dialog(deathlist)) { dialog -c deathlist | deathlist }
- }
- menu menubar {
- Deathlist
- .Unload Deathlist!:unload -rs $script
- }
- ; Deathlist v1.0
- ; by ch1zra
- ; ch1zra@gmail.com
- ; http://uptheirons.co.sr/
- ; #Scripters @ irc.krstarica.com
- ; Copyright © 2007 Up The Irons ! inc.
- ; ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement