mIRC Home    About    Download    Register    News    Help

Topic Options
#113364 - 03/03/05 09:27 PM * /enable: no such group(s)
Skeletor Offline
Vogon poet

Registered: 24/02/05
Posts: 185
Loc: Nottingham, England
t seems that i cant add any and groups to my dialogs...

check "Kick Lockdown", 6, 5 52 50 10

on *:dialog:Prot:sclick:6:{
if ($did(6).state == 0) { /disable #kicklockdown | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Kick LockDown OFF. 1,3 4,1V1,3TEC 4,1§1,3cript® }
elseif ($did(6).state == 1) { /enable #kicklockdown | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Kick LockDown ON. 1,3 4,1V1,3TEC 4,1§1,3cript® }
}

on *:Dialog:Prot:init:0: {
if ($group(#kicklockdown) == on) { did -c $dname 6 }
}

#kicklockdown on
on *:kick:#: {
if($nick != $me) return
kick # $nick Did I give you permission to kick? | /splay $mircdir/sounds/fatality.mp3 }
}
#kicklockdown end

On checking/unchecking the box i get the following echo:

* /enable: no such group(s)
* /disable: no such group(s)

confused confused confused confused
_________________________
sub-zero.homeip.net:6667


Top
#113365 - 03/03/05 09:34 PM Re: * /enable: no such group(s)
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
Without seeing the dialog, I can't reproduce this. However I did spot 2 errors with the code within the group.

#kicklockdown on
on *:kick:#: {
if ($nick != $me) return
else { kick # $nick Did I give you permission to kick? | /splay $mircdir/sounds/fatality.mp3 }
}
#kicklockdown end

You was missing a space between:
if and ($nick != $me) return.

Hope this helps mate.

Top
#113366 - 03/03/05 09:44 PM Okay... its alot but here we go
Skeletor Offline
Vogon poet

Registered: 24/02/05
Posts: 185
Loc: Nottingham, England
dialog Prot {
title "VTEC §cript II ® Protections"
size -1 -1 102 182
icon $scriptdiricons\nlc.ico
option dbu

box "General Protection", 1, 2 2 80 75
check "Anti-Idle", 2, 5 12 50 10
check "Ban Protection", 3, 5 22 50 10
check "Revenge Kicker", 4, 5 32 50 10
check "Mass Kick Protection", 5, 5 42 58 10
check "Kick Lockdown", 6, 5 52 50 10
check "Deop Protection", 20, 5 62 50 10

box "Serious Protection", 8, 2 78 80 107

check "Topic Kicker", 9, 5 90 50 10
check "Whisper Kicker", 10, 5 100 50 10
check "Time Kicker", 11, 5 110 50 10
check "Ping Kicker",12, 5 120 50 10
check "Version Kicker", 13, 5 130 50 10
check "Finger Kicker", 14, 5 140 50 10
check "Talk Kicker", 16, 5 150 50 10
button "Done", 18, 17 168 52 12, ok
icon 19, 70 2 45 180,$mircdir/pictures/K-TEK V-TEC Menubarone.jpg
}
on *:dialog:Prot:sclick:2:{
if ($did(2).state == 0) {
anti.off
echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Anti-Idle OFF. 1,3 4,1V1,3TEC 4,1§1,3cript®
set %anti 0
closemsg $me
/time 0 5
}
elseif ($did(2).state == 1) {
anti.on
echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Anti-Idle ON. 1,3 4,1V1,3TEC 4,1§1,3cript®
set %anti 1
}
}
on *:dialog:Prot:sclick:3:{
if ($did(3).state == 0) { /disable #Banprotection | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Ban Protection OFF. 1,3 4,1V1,3TEC 4,1§1,3cript® }
elseif ($did(3).state == 1) { /enable #Banprotection | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Ban Protection ON. 1,3 4,1V1,3TEC 4,1§1,3cript® }
}
on *:dialog:Prot:sclick:4:{
if ($did(4).state == 0) { /disable #revenge | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Revenge Kick OFF. 1,3 4,1V1,3TEC 4,1§1,3cript® }
elseif ($did(4).state == 1) { /enable #revenge | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Revenge Kick ON. 1,3 4,1V1,3TEC 4,1§1,3cript® }
}
on *:dialog:Prot:sclick:5:{
if ($did(5).state == 0) { /disable #masskick | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Mass Kick Protection OFF. 1,3 4,1V1,3TEC 4,1§1,3cript® }
elseif ($did(5).state == 1) { /enable #masskick | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Mass Kick Protection ON. 1,3 4,1V1,3TEC 4,1§1,3cript® }
}
on *:dialog:Prot:sclick:6:{
if ($did(16).state == 0) { /disable #kick | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Talk Kicker OFF. 1,3 4,1V1,3TEC 4,1§1,3cript® }
elseif ($did(16).state == 1) { /enable #kick | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Talk Kicker ON. 1,3 4,1V1,3TEC 4,1§1,3cript® }
}
on *:dialog:Prot:sclick:9:{
if ($did(9).state == 0) { /disable #topickick | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Topic Kick OFF. 1,3 4,1V1,3TEC 4,1§1,3cript® }
elseif ($did(9).state == 1) { /enable #topickick | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Topic Kick ON. 1,3 4,1V1,3TEC 4,1§1,3cript® }
}
on *:dialog:Prot:sclick:10:{
if ($did(10).state == 0) { /disable #whisper | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Whisper Kick OFF. 1,3 4,1V1,3TEC 4,1§1,3cript® }
elseif ($did(10).state == 1) { /enable #whisper | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Whisper Kick ON. 1,3 4,1V1,3TEC 4,1§1,3cript® }
}
on *:dialog:Prot:sclick:11:{
if ($did(11).state == 0) { /disable #time | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Time Kick OFF. 1,3 4,1V1,3TEC 4,1§1,3cript® }
elseif ($did(11).state == 1) { /enable #time | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Time Kick ON. 1,3 4,1V1,3TEC 4,1§1,3cript® }
}
on *:dialog:Prot:sclick:12:{
if ($did(12).state == 0) { /disable #ping | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Ping Kick OFF. 1,3 4,1V1,3TEC 4,1§1,3cript® }
elseif ($did(12).state == 1) { /enable #ping | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Ping Kick ON. 1,3 4,1V1,3TEC 4,1§1,3cript® }
}
on *:dialog:Prot:sclick:13:{
if ($did(13).state == 0) { /disable #version | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Version Kick OFF. 1,3 4,1V1,3TEC 4,1§1,3cript® }
elseif ($did(13).state == 1) { /enable #version | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Version Kick ON. 1,3 4,1V1,3TEC 4,1§1,3cript® }
}
on *:dialog:Prot:sclick:14:{
if ($did(14).state == 0) { /disable #finger | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Finger Kick OFF. 1,3 4,1V1,3TEC 4,1§1,3cript® }
elseif ($did(14).state == 1) { /enable #finger | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Finger Kick ON. 1,3 4,1V1,3TEC 4,1§1,3cript® }
}

on *:dialog:Prot:sclick:16:{
if ($did(16).state == 0) { /disable #talk2 | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Talk Kicker OFF. 1,3 4,1V1,3TEC 4,1§1,3cript® }
elseif ($did(16).state == 1) { /enable #talk2 | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Talk Kicker ON. 1,3 4,1V1,3TEC 4,1§1,3cript® }
}

on *:dialog:Prot:sclick:20:{
if ($did(20).state == 0) { /disable #host | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Deop Protection OFF. 1,3 4,1V1,3TEC 4,1§1,3cript® }
elseif ($did(20).state == 1) { /enable #host | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Deop Protection ON. 1,3 4,1V1,3TEC 4,1§1,3cript® }
}
on *:Dialog:Prot:init:0: {
if (%anti == 1) { did -c Prot 2 }
if ($group(#banprotection) == on) { did -c $dname 3 }
if ($group(#revenge) == on) { did -c $dname 4 }
if ($group(#masskick) == on) { did -c $dname 5 }
if ($group(#kick) == on) { did -c $dname 6 }
if ($group(#topickick) == on) { did -c $dname 9 }
if ($group(#whisper) == on) { did -c $dname 10 }
if ($group(#time) == on) { did -c $dname 11 }
if ($group(#ping) == on) { did -c $dname 12 }
if ($group(#version) == on) { did -c $dname 13 }
if ($group(#finger) == on) { did -c $dname 14 }
if ($group(#talk2) == on) { did -c $dname 16 }
if ($group(#host) == on) { did -c $dname 20 }
}

#banprotection on
on ^1:ban:#:{

if ($banmask iswm $address($me,0)) { if ($nick == $me) { mode $chan -b $banmask | echo -a 5Be Careful! it was lame only lamers ban his address! } | else { echo $chan 3*** $nick sets mode: +b $banmask | if ($me isop $chan) mode $chan -bo $banmask $nick | echo -a 5Be Careful $me $+ :1 ( $+ 5 $+ $banmask $+ 1) 5is on your address! ( $+ $nick $+ / $+ $Address($nick,0) $+ ) 5Was Trying To Ban You On1 ( $+ 5 $+ $chan $+ 5/ $+ 10 $+ $time $+  $+ 1) | kick $chan $nick | halt | /splay invisibility.mp3 } }
if ($banmask iswm $address($me,3)) { if ($nick == $me) { mode $chan -b $banmask | echo -a 5Be Careful! it was lame only lamers ban his address! } | else { echo $chan 3*** $nick sets mode: +b $banmask | if ($me isop $chan) mode $chan -bo $banmask $nick | echo -a 5Be Careful $me $+ :1 ( $+ 5 $+ $banmask $+ 1) 5is on your address! ( $+ $nick $+ / $+ $Address($nick,0) $+ ) 5Was Trying To Ban You On1 ( $+ 5 $+ $chan $+ 54/ $+ 10 $+ $time $+  $+ 1) | kick $chan $nick | halt | /splay invisibility.mp3 } }
if ($banmask iswm $address($me,5)) { if ($nick == $me) { mode $chan -b $banmask | echo -a 5Be Careful! it was lame only lamers ban his address! } | else { echo $chan 3*** $nick sets mode: +b $banmask | if ($me isop $chan) mode $chan -bo $banmask $nick | echo -a 5Be Careful $me $+ :1 ( $+ 5 $+ $banmask $+ 1) 5is on your address! ( $+ $nick $+ / $+ $Address($nick,0) $+ ) 5Was Trying To Ban You On1 ( $+ 5 $+ $chan $+ 5/ $+ 10 $+ $time $+  $+ 1) | kick $chan $nick | halt | /splay invisibility.mp3 } }
if ($banmask iswm $me $+ !*@*) { if ($nick == $me) { mode $chan -b $banmask | echo -a 5Be Careful! it was lame only lamers ban his address! } | else { echo $chan 3*** $nick sets mode: +b $banmask | if ($me isop $chan) mode $chan -bo $banmask $nick | echo -a 5Be Careful $me $+ :1 ( $+ 5 $+ $banmask $+ 1) 5is on your address! ( $+ $nick $+ / $+ $Address($nick,0) $+ ) 5Was Trying To Ban You On1 ( $+ 5 $+ $chan $+ 5/ $+ 10 $+ $time $+  $+ 1) | kick $chan $nick | halt | /splay invisibility.mp3 } }

}
#banprotection end

#masskick on
on *:KICK:#: {
if ($nick isowner $chan) return
if (%kic. [ $+ [ $nick ] $+ . $+ [ $chan ] ] == $null) {
set -u8 %kic. [ $+ [ $nick ] $+ . $+ [ $chan ] ] 1
return
}
else { inc %kic. [ $+ [ $nick ] $+ . $+ [ $chan ] ] }
if (%kic. [ $+ [ $nick ] $+ . $+ [ $chan ] ] == 3 && %kic.check == $null) {
auser masskick $address($nick,1)
;$chan add deny $address 2 : mass kick $replace($nick,>,Guest_) added by $replace($me,>,Guest_) at $date @ $time
kick $chan $nick Come On!!! This A Friendly Channel, Don't Be Annoying!!!
set -u6 %kic.check 1
}
}
#masskick end

#topickick on
on *:TOPIC:#: {
if ($nick == $me) Halt {
echo -a 13,0 $nick Changed The Topic In $chan
kick $active $nick Don't try to change the TOPIC only I can set it
}
}
#topickick end

#anti.on
alias anti.on {
if (%idle != on) {
set %idle on
echo -a Anti Idle Is On.
}
else {
echo -a Anti Idle Is Already On.
}
}

alias anti.off {
if (%idle != off) {
set %idle off
echo -a Anti Idle Is Off.
}
else {
echo -a Anti Idle Is Already Off.
}
}

on *:Connect: {
.timeridle 0 5 anti
}

alias anti {
if (($idle >= 5 ) && (%idle = on)) {
msg $me ...
resetidle 1
}
}
#anti.on end

#time on
ctcp *:TIME:* {
if ($nick isowner #) { return }
elseif ($nick != $me) {
kick $active $nick Do you see the little clock in bottom right hand side of your screen?... Use it!!!
splay $mircdir/sounds/fatality.mp3
}
}
#time end

#finger on
ctcp *:FINGER:* {
if ($nick isowner #) { return }
elseif ($nick != $me) {
kick $active $nick I hope you washed your hands before doing such things!!!
splay $mircdir/sounds/fatality.mp3
}
}
#finger end

#ping on
ctcp *:PING:* {
if ($nick isowner #) { return }
elseif ($nick != $me) {
kick $active $nick I always hated that ping pong event!!!
splay $mircdir/sounds/fatality.mp3
}
}
#ping end


#version on
ctcp *:VERSION:* {
if ($nick isowner #) { return }
elseif ($nick != $me) {
kick $active $nick I always hated that ping pong event!!!
splay $mircdir/sounds/fatality.mp3
}
}
#version end

#whisper on
on *:TEXT:*:?: {
if ( $nick == $me ) return
if ( ( $nick == %whispered ) && ($nick != $me ) ) {
echo -a 13,0 $nick Was Tryng To Chat To You From $active
kick $active $nick So tell me...how's it feel being a rocket scientist?
unset %whispered
closemsg $nick
}
else {
kick $active $nick The Surgeon General has determined that whispering me, may be bad for your health!!!
set %whispered $nick
closemsg $nick
}
}
#whisper end

#talk2 on

on @*:TEXT:*:#: {
kick $chan $nick Please Be Quite In This Channel.
}
}
#talk2 end

#kick on

on *:kick:#: {
if ($nick != $me) return
else { kick # $nick Did I give you permission to kick? | /splay $mircdir/sounds/fatality.mp3
}
}
#kick end
_________________________
sub-zero.homeip.net:6667


Top
#113367 - 03/03/05 09:53 PM Re: Okay... its alot but here we go
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
Code:
  check "Kick Lockdown", 6, 5 52 50 10

on *:dialog:Prot:sclick:6:{
  if ($did(16).state == 0) { /disable #kick | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Talk Kicker OFF. 1,3 4,1V1,3TEC 4,1§1,3cript® }
  elseif ($did(16).state == 1) { /enable #kick | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Talk Kicker ON. 1,3 4,1V1,3TEC 4,1§1,3cript® }
}


Could the problem be there? #kicklockdown not #kick?

Good luck.

Top
#113368 - 03/03/05 10:07 PM Re: Okay... its alot but here we go
Skeletor Offline
Vogon poet

Registered: 24/02/05
Posts: 185
Loc: Nottingham, England
No mate. I have even made a completely new one giving all the referances to :99: and still the same problem.

frown
_________________________
sub-zero.homeip.net:6667


Top
#113369 - 03/03/05 10:22 PM Re: Okay... its alot but here we go
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
Can you adapt from this at all? Seems to work for me, groups seem sufficient. Hope this helps.

/dialog -dm kld kld

Code:
dialog kld {
  title "Kick Lock Down"
  size -1 -1 84 36
  option dbu
  radio "On", 1, 30 8 50 10
  radio "Off", 2, 30 19 50 10
}

On 1:Dialog:kld:init:0: {
  if ($group(#kicklockdown) == on) { 
    did -c kld 1 
  }
  else {
    did -c kld 2 
  }
}
On 1:Dialog:kld:sclick:*: {
  if ($did == 1) {
    enable #kicklockdown 
    echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Kick Lock Down ON. 1,3 4,1V1,3TEC 4,1§1,3cript®
  }
  else { 
    disable #kicklockdown 
    echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Kick Lock Down OFF. 1,3 4,1V1,3TEC 4,1§1,3cript®
  }
}

#kicklockdown on
on *:kick:#: {
  if ($nick != $me) { 
    return
  }
  else { 
    kick $chan $nick Did I give you permission to kick? 
    splay $mircdir/sounds/fatality.mp3 
  }
}
#kicklockdown end


Edited by SladeKraven (03/03/05 10:25 PM)

Top
#113370 - 03/03/05 10:35 PM Re: Okay... its alot but here we go
Skeletor Offline
Vogon poet

Registered: 24/02/05
Posts: 185
Loc: Nottingham, England
You are Star, *Bows*, now the funny thing is that after kicking an offender, i kick my self...

confused
_________________________
sub-zero.homeip.net:6667


Top
#113371 - 03/03/05 10:43 PM Re: Okay... its alot but here we go
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
You can make the code inside the group in a simpler form.

Code:
#kicklockdown on
on [color:red]![/color]*:kick:#: { 
  kick $chan $nick Did I give you permission to kick? 
  splay $mircdirsounds\fatality.mp3 
}
#kicklockdown end


The ! means we don't need an IF statement checking if $nick isn't $me.


Edited by SladeKraven (03/03/05 10:44 PM)

Top
#113372 - 03/03/05 10:59 PM Re: Okay... its alot but here we go
Skeletor Offline
Vogon poet

Registered: 24/02/05
Posts: 185
Loc: Nottingham, England
Lovely stuff mate Thank you very much!
_________________________
sub-zero.homeip.net:6667


Top
#113373 - 03/03/05 11:10 PM Re: Okay... its alot but here we go
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
You're welcome, glad I could help. smile

Top