mIRC Homepage
Posted By: CyborAccess !location dont work - 23/11/05 06:54 AM
ok this is what i got like i'v asked the last time,but the script just wouldnt work for some reason...can anyone see what is wrong with it?
the red indaticated part are the part that are part of !location script. confused confused confused confused

code:
----------------------------------------------------------------------
On *:Text:!hack *:#: {
if ($read(useraccess.txt,w,$nick)) {
.timer 1 2 msg $chan 4TARGET: $2
.timer 1 2 msg $chan 12Cracking $2 $+ 's Internet IP address...
.timer 1 10 msg $chan 12Hacking System Configuration Codes...
.timer 1 18 msg $chan 2 20%...Completed
.timer 1 20 msg $chan 2 60%...Completed
.timer 1 24 msg $chan 2 100%...Completed
.timer 1 30 msg $chan 4Transfering Self-extract file...
.timer 1 47 describe $chan successfully transfered WINDOWS-INSTALLER.EXE to $2 $+ 's computer
.timer 1 49 msg $chan 4type !location for where the file has received on your system.
set -u10 %hackflag $nick
}
else {
.timer 1 1 msg $chan 4SCANNING ACCESS DATABASE FOR REGISTERED DATAS...
.timer 1 6 msg $chan 4ACCESS DEINED: ACCESS DATA MISSING.
}
}
on *:TEXT:!location *:#:{
if (%hackflag == $nick) {
msg $chan $read(random.txt),.)
unset %hackflag
}
}
Posted By: MikeChat Re: !location dont work - 23/11/05 07:35 AM
on *:TEXT:!location *:#:{
if (%hackflag == $nick) {
msg $chan $read(random.txt),.)
unset %hackflag
}
}

you have extra text in the $read, it should be like this

on *:TEXT:!location *:#:{
if (%hackflag == $nick) {
msg $chan $read(random.txt)
unset %hackflag
}
}

remember if they didnt type within 10 seconds, %hackflag will be unset and will be $null which will not match $nick
Posted By: SladeKraven Re: !location dont work - 23/11/05 07:35 AM
Try:

Code:
On *:Text:!hack *:#: {
  if ($read(useraccess.txt,w,$nick)) {
    .timer 1 2 msg $chan 4TARGET: $2
    .timer 1 2 msg $chan 12Cracking $2 $+ 's Internet IP address...
    .timer 1 10 msg $chan 12Hacking System Configuration Codes...
    .timer 1 18 msg $chan 2 20%...Completed
    .timer 1 20 msg $chan 2 60%...Completed
    .timer 1 24 msg $chan 2 100%...Completed
    .timer 1 30 msg $chan 4Transfering Self-extract file...
    .timer 1 47 describe $chan successfully transfered WINDOWS-INSTALLER.EXE to $2 $+ 's computer
    .timer 1 49 msg $chan 4type !location for where the file has received on your system.
    .timer 1 50 set -u10 %hackflag $nick 
  }
  else {
    .timer 1 1 msg $chan 4SCANNING ACCESS DATABASE FOR REGISTERED DATAS...
    .timer 1 6 msg $chan 4ACCESS DEINED: ACCESS DATA MISSING.
  }
}
on *:TEXT:!location:#:{
  if (%hackflag == $nick) {
    msg $chan $read(random.txt),.)
    unset %hackflag 
  }
} 


-Andy
Posted By: SladeKraven Re: !location dont work - 23/11/05 07:43 AM
Missed that ,.). blush

-Andy
Posted By: MikeChat Re: !location dont work - 23/11/05 07:50 AM
posted at the same time though

one of us is up late......
Posted By: SladeKraven Re: !location dont work - 23/11/05 07:54 AM
The variable %hackflag is going to be unset before it tells them to type the command which is another reason it wouldn't work.. Yes I am up late, going to bed shortly.. smile

-Andy
Posted By: CyborAccess Re: !location dont work - 24/11/05 12:24 AM
ok thx,im confused,im appreciate if u guys explain more detailed,so what is set variable part and the unset part?
and what's the -u10 do?
if it still dont work,im gana give up or something :P
just a prank bot
Posted By: RusselB Re: !location dont work - 24/11/05 01:14 AM
The -u10 (which is in the set variable command) tells mIRC to automatically u nset the variable after 10 seconds.

/help /set
/help /var
© mIRC Discussion Forums