this addon was posted before by Rudeboy™ in Rumbaar i edited ti to be local and global and who wanna use arabic in thier welcome message for it can use it now will search for the pass and channel and whipser to the nick with a welcome message asking him for a pass
#passhammer on
on *:TEXT:*:#: {
if $read(text/hosts.txt,s,$msngkshort($nick)) && ($gettok($read(text/hosts.txt,$readn),5,32) == $1) && ($remove($chan,$chr(37),$chr(35),G_) != $gettok($read(text/hosts.txt,$readn),6,32)) { privmsg $nick $msn.encode($gettok($read(text/hosts.txt,$readn),7-,32)) | privmsg $nick sorry but u r not host here ur channel is $gettok($read(text/hosts.txt,$readn),6,32) | halt }
if $read(text/hosts.txt,s,$msngkshort($nick)) && ($gettok($read(text/hosts.txt,$readn),5,32) == $1) && ($remove($chan,$chr(37),$chr(35),G_) == $gettok($read(text/hosts.txt,$readn),6,32)) {
privmsg $nick $msn.encode($gettok($read(text/hosts.txt,$readn),7-,32))
privmsg $nick $nick plz tell me ur pass plz
}
}
on *:JOIN:#:{
if $read(text/hosts.txt,s,$msngkshort($nick)) {
if ($gettok($read(text/hosts.txt,$readn),4,32) == $null) {
.msg $nick To obtain your hammer you must first add a password. Please whisper the password as so to set !hostpass <your password here> <ur command on main to get privmsg asking about pass> like this :
privmsg $nick !hostpass 123456 `wizme
set -u5 %passwhisp $true
}
}
}
on *:TEXT:*:?: {
if (! !isin $1) && ($nick != $me) { privmsg $nick hey $nick plz i am a script talk to my admin malak-7ares (F).. | return }
if $read(text/hosts.txt,s,$msngkshort($nick)) {
if (!hostpass == $1) {
if ($gettok($read(text/hosts.txt,$readn),4,32) != $null) {
if ($gettok($read(text/hosts.txt,$readn),4,32) != $2) { goto wrongpass }
if (($gettok($read(text/hosts.txt,$readn),4,32) == $2) && ($3 != $null)) {
halt
write -l $readn text/hosts.txt $msngkshort($nick) - $xd($nick) $3
.msg $nick Your Password Has Been Changed To : $3
closemsg $nick
return
}
else {
.msg $nick I'm Sorry Your Password Has Already Been Set : To Change Password use : !hostpass <your current Pass> <your new pass>
closemsg $nick
return
}
}
if ($2 == $null) { .msg $nick ERROR You Must Set A Password | return }
if ($3 == $null) { .msg $nick ERROR You Must Set ur command that u will use it on main after pass | return }
else {
write -l $readn text/hosts.txt $msngkshort($nick) - $xd($nick) $2 $3 %channelhost %welcomehost
unset %channelhost
unset %welcomehost
.msg $nick Your Password has been stored as : $2 : To Obtain your Hammer after you enter the room Whisper me with !hostme <your pass here> but before it write on main ur command not ur pass | echo -a $msn.decode($nick) finished his steps
mode $comchan($nick,1) +o $nick
closemsg $nick
return
}
}
if (!hostme == $1) {
if ($nick == $ulist($nick,snoop,1)) { return }
if ($nick isop $comchan($nick,1)) { privmsg $nick u already host here | closemsg $nick | return }
if ($2 == $null) { .msg $nick ERROR You Must Set A Password first | return }
if ($gettok($read(text/hosts.txt,$readn),4,32) == $2) && ($remove($comchan($nick,1),$chr(37),$chr(35),G_) != $gettok($read(text/hosts.txt,$readn),6,32)) { privmsg $nick sorry but u r not host here ur channel is $gettok($read(text/hosts.txt,$readn),6,32) | halt }
if ($gettok($read(text/hosts.txt,$readn),4,32) == $2) && ($remove($comchan($nick,1),$chr(37),$chr(35),G_) == $gettok($read(text/hosts.txt,$readn),6,32)) {
privmsg $nick ur pass is right thnx.. | echo -a $msn.decode($nick) entered right pass
mode $comchan($nick,1) +o $nick
closemsg $nick
return
}
else { goto wrongpass }
}
}
if (!hostpass == $1) || (!hostme == $1) {
.msg $nick I Am Sorry but you are not on my Host List and if u tried more u will be kicked
if (!%not.host. [ $+ [ $nick ] ]) { set -u600 %not.host. [ $+ [ $nick ] ] 1 }
else { inc %not.host. [ $+ [ $nick ] ] }
if (%not.host. [ $+ [ $nick ] ] == 3) {
access $comchan($nick,1) add deny $xial($nick).addr 30 : Trying to get Host
kick $comchan($nick,1) $nick I told you You are NOT on the host list!! But Now U R On Da LAMER list...
unset %not.host. [ $+ [ $nick ] ]
}
closemsg $nick
}
else { return }
:wrongpass {
if (!%wrong.pass. [ $+ [ $nick ] ]) { set -u600 %wrong.pass. [ $+ [ $nick ] ] 1 }
else { inc %wrong.pass. [ $+ [ $nick ] ] }
.msg $nick I'm Sorry that Password was Incorrect : Attempt %wrong.pass. [ $+ [ $nick ] ] of 3 be sure u r using !hostme before ur pass
if (%wrong.pass. [ $+ [ $nick ] ] == 3) {
access $comchan($nick,1) add deny $xial($nick).addr 2 : Wrong Host Password Entered %wrong.pass. [ $+ [ $nick ] ] Times
kick $comchan($nick,1) $nick Wrong Host Pass Entered %wrong.pass. [ $+ [ $nick ] ] Times
unset %wrong.pass. [ $+ [ $nick ] ]
}
closemsg $nick
}
}
#passhammer end
menu nicklist {
User Lists
.$iif($read(text/hosts.txt,s,$msngkshort($$1)),$style(1)) $+ Auto Host:{
if ($$1 isop #) {
if $read(text/hosts.txt,s,$msngkshort($$1)) { write -ds $msngkshort($$1) Text/hosts.txt | mode # -o $$1 | echo -ai7 $str($chr(160),5) $+ 4• $msn.decode($$1) Removed From Auto Host List }
else { write -il1 Text/hosts.txt $msngkshort($$1) - $$1 | echo -ai7 $str($chr(160),5) $+ 8• $msn.decode($$1) Added To Auto Host List }
halt
}
if ($group(#passhammer) == on) {
if $read(text/hosts.txt,s,$msngkshort($$1)) { write -ds $msngkshort($$1) Text/hosts.txt | echo -ai7 $str($chr(160),5) $+ 4• $msn.decode($$1) Removed From Auto Host List }
else { set %channelhost $$?="channel for the host" | set %welcomehost $$?="welcome Message?" | write -il1 Text/hosts.txt $msngkshort($$1) - $$1 | .msg $$1 You Have Been Added To My Hammer List. To obtain your hammer you must first add a password. Please whisper the password as so to set !hostpass <your password here> <ur command on main to get privmsg asking about pass> like this: | privmsg $$1 !hostpass 123456 `wizme | set -u5 %passwhisp $true | echo -ai7 $str($chr(160),5) $+ 8• $msn.decode($$1) Added To Auto Host List }
halt
}
else {
if $read(text/hosts.txt,s,$msngkshort($$1)) { write -ds $msngkshort($$1) Text/hosts.txt | echo -ai7 $str($chr(160),5) $+ 4• $msn.decode($$1) Removed From Auto Host List }
else { write -il1 Text/hosts.txt $msngkshort($$1) - $$1 | mode # +o $$1 | echo -ai7 $str($chr(160),5) $+ 8• $msn.decode($$1) Added To Auto Host List }
halt
}
}
}
menu channel {
Host Controls
.$iif(($group(#passhammer) == on),$style(1)) $+ Host Passwords:{
if ($group(#passhammer) == on ) { .disable #passhammer | echo -ai7 $str($chr(160),5) $+ 10• Rude Ideas Host Passwords Is Now10 Off }
else { .enable #passhammer | echo -ai7 $str($chr(160),5) $+ 7• Rude Ideas Host Passwords Is Now7 On }
}
}
alias msngkshort {
if (> isin $ial($1)) {
var %x = $replace($ial($1),@GateKeeper,$NULL)
return $right(%x,32)
}
if (> !isin $ial($1)) {
var %x = $replace($ial($1),@GateKeeperPassport,$NULL)
return $right(%x,16)
}
}
alias xd { return $msn.decode($1-) }
alias rc { return $msn.encode($1-) }
hope it will be useful for some ppl
Edited Dec 19, 2005 8:15 PM by samooh_2003