mIRC Home    About    Download    Register    News    Help

Print Thread
!location dont work #136144 23/11/05 06:54 AM
Joined: Dec 2004
Posts: 80
C
CyborAccess Offline OP
Babel fish
OP Offline
Babel fish
C
Joined: Dec 2004
Posts: 80
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
}
}


practice makes perfect... smile
Re: !location dont work #136145 23/11/05 07:35 AM
Joined: Dec 2002
Posts: 1,245
M
MikeChat Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
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

Re: !location dont work #136146 23/11/05 07:35 AM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
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

Re: !location dont work #136147 23/11/05 07:43 AM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Missed that ,.). blush

-Andy

Re: !location dont work #136148 23/11/05 07:50 AM
Joined: Dec 2002
Posts: 1,245
M
MikeChat Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
posted at the same time though

one of us is up late......

Re: !location dont work #136149 23/11/05 07:54 AM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
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

Re: !location dont work #136150 24/11/05 12:24 AM
Joined: Dec 2004
Posts: 80
C
CyborAccess Offline OP
Babel fish
OP Offline
Babel fish
C
Joined: Dec 2004
Posts: 80
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

Last edited by CyborAccess; 24/11/05 12:37 AM.

practice makes perfect... smile
Re: !location dont work #136151 24/11/05 01:14 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
The -u10 (which is in the set variable command) tells mIRC to automatically u nset the variable after 10 seconds.

/help /set
/help /var