mIRC Home    About    Download    Register    News    Help

Print Thread
#115775 30/03/05 02:05 AM
Joined: Mar 2005
Posts: 8
E
Exodus_ Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
E
Joined: Mar 2005
Posts: 8
this is a dialog which thank ppl for giving or takin status. the problem is that it wont say anythin when the person deowners me or deprotects or protects me. this is the code :
Code:
menu channel { 
  Status Thanker: /dialog -md ophv ophv
}
dialog OPHV {
  title "    (¯`·.(¯`·.Status Thanker.·´¯).·´¯)"
  size -1 -1 169 163
  option dbu
  text "Op", 1, 6 10 25 8
  text "Deop", 2, 6 23 25 8
  text "Halfop", 3, 6 36 25 8
  text "Dehalfop", 4, 6 49 25 8
  text "Voice", 5, 6 63 25 8
  text "Devoice", 6, 6 76 25 8
  text "Owner", 7, 6 89 25 8
  text "Deowner", 8, 6 103 25 8
  text "Protect", 9, 6 116 25 8
  text "Deprotect", 10, 6 129 25 8
  button "SAVE", 11, 20 145 37 12
  button "EXIT", 12, 120 145 37 12, ok
  edit %stop, 13, 35 10 116 10
  edit %stdop, 14, 35 23 116 10
  edit %sthalf, 15, 35 36 116 10
  edit %stdef, 16, 35 49 116 10
  edit %stvo, 17, 35 63 116 10
  edit %stdevo, 18, 35 76 116 10
  edit %stown, 19, 35 89 116 10
  edit %stdeown, 20, 35 103 116 10
  edit %stpro, 21, 35 116 116 10
  edit %stdepro, 22, 35 129 117 10
  check "", 23, 155 10 7 10
  check "", 24, 155 23 8 10
  check "", 25, 155 36 8 10
  check "", 26, 155 49 8 10
  check "", 27, 155 63 8 10
  check "", 28, 155 76 8 10
  check "", 29, 155 89 9 10
  check "", 30, 155 103 8 10
  check "", 31, 155 116 10 10
  check "", 32, 155 129 8 10
  button "NEED HELP?", 33, 70 145 37 12
}
on 1:DIALOG:OPHV:init:0: {
  if (%stoper == on) {  did -c $dname 23 }
  if (%stdoper == on) {   did -c $dname  24 }
  if (%sthalfer == on) {   did -c $dname 25 }
  if (%stdefer == on) {   did -c $dname 26 }
  if (%stvoer == on) {  did -c $dname 27 }
  if (%stdevoer == on) {  did -c $dname 28 }
  if (%stowner == on) {  did -c $dname 29 }
  if (%stdeowner == on) {  did -c $dname 30 }
  if (%stproer == on) {  did -c $dname 31 }
  if (%stdeproer == on) {  did -c $dname 32 }
}
on 1:DIALOG:OPHV:sclick:11:{
  set %stop $did(OPHV,13).text
  set %stdop $did(OPHV,14).text
  set %sthalf $did(OPHV,15).text
  set %stdef $did(OPHV,16).text
  set %stvo $did(OPHV,17).text
  set %stdevo $did(OPHV,18).text
  set %stown $did(OPHV,19).text
  set %stdeown $did(OPHV,20).text
  set %stpro $did(OPHV,21).text
  set %stdepro $did(OPHV,22).text
}
on 1:DIALOG:OPHV:sclick:23:{
  if ($did(23).state == 1) { set %stoper on } 
  elseif ($did(23).state == 0) { set %stoper off } 
}
on 1:DIALOG:OPHV:sclick:24:{
  if ($did(24).state == 1) { set %stdoper on } 
  elseif ($did(30).state == 0) { set %stdoper off } 
}
on 1:DIALOG:OPHV:sclick:25:{
  if ($did(25).state == 1) { set %sthalfer on } 
  elseif ($did(24).state == 0) { set %sthalfer off } 
}
on 1:DIALOG:OPHV:sclick:26:{
  if ($did(26).state == 1) { set %stdefer on } 
  elseif ($did(26).state == 0) { set %stdefer off } 
}
on 1:DIALOG:OPHV:sclick:27:{
  if ($did(27).state == 1) { set %stvoer on } 
  elseif ($did(27).state == 0) { set %stvoer off } 
}
on 1:DIALOG:OPHV:sclick:28:{
  if ($did(28).state == 1) { set %stdevoer on } 
  elseif ($did(28).state == 0) { set %stdevoer off } 
}
on 1:DIALOG:OPHV:sclick:29:{
  if ($did(29).state == 1) { set %stowner on } 
  elseif ($did(29).state == 0) { set %stowner off } 
}
on 1:DIALOG:OPHV:sclick:30:{
  if ($did(30).state == 1) { set %stdeowner on } 
  elseif ($did(30).state == 0) { set %stdeowner off } 
}
on 1:DIALOG:OPHV:sclick:31:{
  if ($did(31).state == 1) { set %stproer on } 
  elseif ($did(31).state == 0) { set %stproer off } 
}
on 1:DIALOG:OPHV:sclick:32:{
  if ($did(32).state == 1) { set %stdeproer on } 
  elseif ($did(32).state == 0) { set %stdeproer off } 
}
on *:OP:#:{
  if ($opnick == $me) && (%stoper == on) {
    msg $chan %stop
  } 
}
on *:DEOP:#: {
  if ($opnick == $me) && (%stdoper == on) { 
    msg $chan %stdop
  }
}
on *:HELP:#: {
  if ($hnick == $me) && (%sthalfer == on) {
    msg $chan %sthalf
  }
}
on *:DEHELP:#:{
  if ($hnick == $me) && (%stdefer == on) { 
    msg $chan %stdef
  }
}
on *:VOICE:#:{ 
  if ($vnick == $me) && (%stvoer == on) { 
    msg $chan %stvo
  }
}
on *:DEVOICE:#:{ 
  if ($vnick == $me) && (%stdevoer == on) {
    msg $chan %stdevo
  }
}
on *:rawmode:*: {
  if ($me isin $2) && (+ isin $1) && (q isin $1) && (%stowner == on) {
    msg $chan %stown
    if ($me isin $2) && (- isin $1) && (q isin $1) && (%stdeowner == on) {
      msg $chan %stdeown
      if ($me isin $2) && (+ isin $1) && (a isin $1) && (%stproer == on) {
        msg $chan %stpro
        if ($me isin $2) && (- isin $1) && (a isin $1) && (%stdeproer == on) {
          msg $chan %stdepro
        }
      }
    }
  }
}

 

#115776 30/03/05 02:55 AM
Joined: Aug 2004
Posts: 423
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Aug 2004
Posts: 423
hiya,


your problem maybe here:
[codeon *:rawmode:*: {
if ($me isin $2) && (+ isin $1) && (q isin $1) && (%stowner == on) {
msg $chan %stown
if ($me isin $2) && (- isin $1) && (q isin $1) && (%stdeowner == on) {
msg $chan %stdeown
if ($me isin $2) && (+ isin $1) && (a isin $1) && (%stproer == on) {
msg $chan %stpro
if ($me isin $2) && (- isin $1) && (a isin $1) && (%stdeproer == on) {
msg $chan %stdepro
}
}
}
}
}
[/code]

i'm thinking it should be like this:

Code:
on *:rawmode:*: {
  if ($me isin $2) && (+ isin $1) && (q isin $1) && (%stowner == on) {
    msg $chan %stown }
  elseif ($me isin $2) && (- isin $1) && (q isin $1) && (%stdeowner == on) {
      msg $chan %stdeown }
  elseif ($me isin $2) && (+ isin $1) && (a isin $1) && (%stproer == on) {
        msg $chan %stpro }
  elseif ($me isin $2) && (- isin $1) && (a isin $1) && (%stdeproer == on) {
          msg $chan %stdepro }
}
 


hope this helps

#115777 30/03/05 12:41 PM
Joined: Mar 2005
Posts: 8
E
Exodus_ Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
E
Joined: Mar 2005
Posts: 8
yep its workin now. thank you

#115778 30/03/05 02:36 PM
Joined: Aug 2004
Posts: 423
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Aug 2004
Posts: 423
no problem, your welcome


Link Copied to Clipboard