mIRC Home    About    Download    Register    News    Help

Print Thread
#145690 26/03/06 05:08 PM
Joined: Mar 2005
Posts: 74
K
KidSol Offline OP
Babel fish
OP Offline
Babel fish
K
Joined: Mar 2005
Posts: 74
#login on
on *:text:!login &:?: {
if (%hfpass == $2) {
set -u6000 $+(%,hf,$nick) on
notice $nick Login succesful.
}
}
#login end

is there anything wrong with it?

i try to trigger it by !login pass
it didn't send me a notice, so i assume that i'm not login
anyone can help??

Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
No problem with that code here.. make shure you enter the right password..

also make shure to look in your status window, maybe the notice show there..

Last edited by sparta; 26/03/06 05:15 PM.

if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Mar 2005
Posts: 74
K
KidSol Offline OP
Babel fish
OP Offline
Babel fish
K
Joined: Mar 2005
Posts: 74
Code:
  


#login on
on *:text:!login &:?: {
  if (%hfpass == $2) {
    set -u6000 $+(%,hf,$nick) on
    notice $nick Login succesful.  
  }
} 
#login end

#Hf on
alias Hfon {
  if ($group(#find) == off) {
    .enable #find
    echo 5 -a Hash Find has been turned on.
  }
  else {
    echo 5 -a Hash Find is already on.
  }
}
alias Hfoff {
  if ($group(#find) == on) {
    .disable #find
    echo 5 -a Hash find has been turned off.
  }
  else {
    acho 5 -a Hash find is already off.
  }
}
alias Hfadd {
  if ($hget(find)) {
    var %hf.sub = $$?="what's user's name."
    var %hf.dat = $$?="What's %hf.sub phone number? "    
    hadd find %hf.sub %hf.dat  
    echo 5 -a Entry created for %hf.sub $+ .
    hsave find " $+ $scriptdirfind.hsh"
  }
  else {
    hmake find 100
    var %hf.sub = $$?="Enter the subject's name."
    var %hf.dat = $$?="Enter the information you want for $1 $+ ."    
    hadd find %hf.sub %hf.dat  
    echo 5 -a Entry created for %hf.sub $+ .
    hsave find " $+ $scriptdirfind.hsh"
  }
}
alias Hfdel {
  if ($hget(find)) {
    var %hf.sub = $$?="Name to delete?"
    hdel find %hf.sub
    echo 5 -a Entry for %hf.sub deleted.
  }
  else {
    echo 5 -a Table cannot be found.
    echo 5 -a Entry cannot be present.
  }
}
alias Hfclear {
  if ($hget(find)) { 
    hfree find
    echo 5 -a Table cleared.
  }
}
menu nicklist {
  Hash find
  .On Off
  ..Hf on:Hfon
  ..Hf off:Hfoff
  .Table  
  ..Add:Hfadd 
  ..Delete:Hfdel 
  ..Clear:Hfclear
  .set pass:set %hfpass $$?="Set your new pass."
}
#Hf end

#find on
on *:start: {    
  if ($isfile(find.hsh)) {      
    hmake find 100    
    hload -o find find.hsh  
  }  
  else { 
    hmake find 100
  }
}
on *:exit: { 
  hsave -o find " $+ $scriptdirfind.hsh"  
  hfree find 
  unset %hf*
}
on *:text:@find &:*: { 
  if (((%aa != on) && ($hfind(find, $2)) && ($($+(%,hf,$nick),2) == on))) {  
    msg $nick : $+ $hget(find, $2) 
    set -u10 %aa on  
  }
  else { 
    if ((%aa != on) && ($hget(find) == $null)) {   
      set -u10 %aa on    
      hmake 100 find  
    }
  }
}
#find end






anything wrong with it?
i can't even use it :-/
if my password is invalid, it'll show out too right?


Link Copied to Clipboard