dialog noob - 04/10/06 03:17 PM
Need someone who may help me making a dialog for this one..
Thank You guys...
-------------------------------------------------------------------------
Kick Protection
..$iif(%kick.status.on,[ %kick.status.on ],[ %kick.status.off ] ):{ if (%kick.status.on) { unset %kick.status.on | set %kick.status.off [Status:kick Mode] | .enable #kick | echo -a revengekick Mode | if ($server != $null) msg $active %script Prot. Enabled } | else { set %kick.status.on [Status:Peace Mode] | unset %kick.status.off | .disable #kick | echo -a Peace Mode | if ($server != $null) msg $active %script Prot. Disabled } }
..Clear enemy-list:{ if ($hget(kicklist)) { hdel -w kicklist * } | unset %kicklist %fastlist | echo -a Removing all users from the enemy list done... | else { echo -a No hastable kicklist available | haltdef } | if ($server != $null) { msg $active List cleared } }
..onJoin-ban $+ $chr(32) $+ $iif(%banlag.on,[ %banlag.on ],[ %banlag.off ] ):{ if (%banlag.on) { unset %banlag.on | set %banlag.off (off) | echo -a on-Join ban-Off } | else { set %banlag.on (on) | unset %banlag.off | echo -a on-Join ban-On) } }
..Ban-Locked ( $+ $group(#banlocker) $+ ) : { if ($group(#banlocker) == on) { .disable #banlocker | unset %ban | echo -a Banlocker is now Off | halt } | else { .enable #banlocker | set %ban ! | echo -a Banlocker is now On | halt } }
.-
.$iif($active ischan,&IAL state for #)
..$iif($chan(#).ial == $true,All addresses OK):echo No need to update IAL for chan #
..$iif($chan(#).ial == $false,IAL Incomplete. Update?):.who # ..-
.Protections
..Ban Prot ( $+ $group(#banprotect) $+ ) : { if ($group(#banprotect) == on) { .disable #banprotect | echo -a Ban Protection is now Off | halt } | else { .enable #banprotect | echo -a Ban Protection is now On | halt } }
..User Prot $+ $chr(32) $+ $iif(%user_prot.on,[ %user_prot.on ],[ %user_prot.off ] ):{ if (%user_prot.on) { unset %user_prot.on | set %user_prot.off (off) | echo -a User protection-Off } | else { set %user_prot.on (on) | unset %user_prot.off | echo -a $protect.list } }
..Chan. Mode Potect. $+ $chr(32) $+ $iif(%mode.on,[ %mode.on ],[ %mode.off ] ):{ if (%mode.on) { unset %mode.on | set %mode.off (off) | echo -a Channel Mode protection-Off } | else { set %mode.on (on) | unset %mode.off | echo -a Channel Mode protection-On } }
.-
.Set kick message { set %kickmsg $$?="Type kick message:" | echo -a Kick message is set to -=> %msg }
Thank You guys...
-------------------------------------------------------------------------
Kick Protection
..$iif(%kick.status.on,[ %kick.status.on ],[ %kick.status.off ] ):{ if (%kick.status.on) { unset %kick.status.on | set %kick.status.off [Status:kick Mode] | .enable #kick | echo -a revengekick Mode | if ($server != $null) msg $active %script Prot. Enabled } | else { set %kick.status.on [Status:Peace Mode] | unset %kick.status.off | .disable #kick | echo -a Peace Mode | if ($server != $null) msg $active %script Prot. Disabled } }
..Clear enemy-list:{ if ($hget(kicklist)) { hdel -w kicklist * } | unset %kicklist %fastlist | echo -a Removing all users from the enemy list done... | else { echo -a No hastable kicklist available | haltdef } | if ($server != $null) { msg $active List cleared } }
..onJoin-ban $+ $chr(32) $+ $iif(%banlag.on,[ %banlag.on ],[ %banlag.off ] ):{ if (%banlag.on) { unset %banlag.on | set %banlag.off (off) | echo -a on-Join ban-Off } | else { set %banlag.on (on) | unset %banlag.off | echo -a on-Join ban-On) } }
..Ban-Locked ( $+ $group(#banlocker) $+ ) : { if ($group(#banlocker) == on) { .disable #banlocker | unset %ban | echo -a Banlocker is now Off | halt } | else { .enable #banlocker | set %ban ! | echo -a Banlocker is now On | halt } }
.-
.$iif($active ischan,&IAL state for #)
..$iif($chan(#).ial == $true,All addresses OK):echo No need to update IAL for chan #
..$iif($chan(#).ial == $false,IAL Incomplete. Update?):.who # ..-
.Protections
..Ban Prot ( $+ $group(#banprotect) $+ ) : { if ($group(#banprotect) == on) { .disable #banprotect | echo -a Ban Protection is now Off | halt } | else { .enable #banprotect | echo -a Ban Protection is now On | halt } }
..User Prot $+ $chr(32) $+ $iif(%user_prot.on,[ %user_prot.on ],[ %user_prot.off ] ):{ if (%user_prot.on) { unset %user_prot.on | set %user_prot.off (off) | echo -a User protection-Off } | else { set %user_prot.on (on) | unset %user_prot.off | echo -a $protect.list } }
..Chan. Mode Potect. $+ $chr(32) $+ $iif(%mode.on,[ %mode.on ],[ %mode.off ] ):{ if (%mode.on) { unset %mode.on | set %mode.off (off) | echo -a Channel Mode protection-Off } | else { set %mode.on (on) | unset %mode.off | echo -a Channel Mode protection-On } }
.-
.Set kick message { set %kickmsg $$?="Type kick message:" | echo -a Kick message is set to -=> %msg }