mIRC Home    About    Download    Register    News    Help

Print Thread
#152448 01/07/06 04:29 AM
Joined: Apr 2006
Posts: 400
K
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Apr 2006
Posts: 400
Hi guys, I'm running out of Ideas for this script, it'll be very useful, but, I can't use a timer for return, at least thats what I experienced, but, here's part of the script:
Code:
alias alvl {
  cs access $1 list $2
  return $gettok(%access2,1,32)
}

and, here's what I type:
Quote:

//echo -a $alvl(#scripting,DrJ)
================================
* /echo: insufficient parameters
[11:27:07] -ChanServ- Access list for #Scripting:
[11:27:07] -ChanServ- Num Lev Nick
[11:27:07] -ChanServ- 1 10 DrJ
[11:27:07] -ChanServ- End of access list.
10
[11:27:08] -ChanServ- Access list for #Scripting:
[11:27:08] -ChanServ- Num Lev Nick
[11:27:08] -ChanServ- 1 10 DrJ
[11:27:08] -ChanServ- End of access list.

please help if you can, I know the problem, but, I ran out of ideas on how to fix it, maybe I could use on start: cs access # list or something, please once again help if you can, thanks!

Last edited by Kurdish_Assass1n; 01/07/06 04:43 AM.

-Kurdish_Assass1n
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
alias alvl {
cs access $1 list $2
return $gettok(%access2,1,32)
}

so where does %access2 get its value (does it have a value?)

Joined: Apr 2006
Posts: 400
K
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Apr 2006
Posts: 400
it gets its value from an on text event from chanserv. it returns 10, and, it has a value, just didn't show the whole script.
Code:
%access2 10 DrJ

Last edited by Kurdish_Assass1n; 01/07/06 05:32 AM.

-Kurdish_Assass1n
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
only thing i can think of is that the var hasnt been set yet when the value is being returned in the identifier

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Whats the likely max turn around time for the on text event for the chanserv command?

If its not to long, and you dont do this command to often, you can stall the script while the on event is being processed, then return to it.

Perhaps using Whilefix.dll something like

Code:
alias alvl {
  unset %access2
  cs access $1 list $2
  var %ticks = $ticks + 2000
  while (($ticks <= %ticks) && (!%access2)) { dll WhileFix.dll WhileFix }
  return $gettok(%access2,1,32)
}


This well hold and wait up to 2 seconds for %access2 to be loaded with something before carrying on.

Joined: Apr 2006
Posts: 400
K
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Apr 2006
Posts: 400
Thanks DaveC, that's what I'm looking for, a delay, so chanserv can reply, and then it'll set variables, how do I load this though, I can't find out how to, I load a lot of script, but, this is a little different, please help laugh


-Kurdish_Assass1n
Joined: Apr 2006
Posts: 400
K
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Apr 2006
Posts: 400
Which do I load!? none of these look like mIRC scripting, so, idk, lol:


-Kurdish_Assass1n
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
I don't think you need to "load" any files. You simply need to have the whilefix.dll file in your script directory. The files you have displayed in your post are the source files for the dll which you would use to compile the dll. The dll should already be compiled (look one directory up from the source files). The script calls the dll using the /dll command.

-genius_at_work

Joined: Apr 2006
Posts: 400
K
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Apr 2006
Posts: 400
ok, thank you genius_at_work, I understand now, I'll look at it later though, thanks again! laugh


-Kurdish_Assass1n
Joined: Apr 2006
Posts: 400
K
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Apr 2006
Posts: 400
OMG! YES! it worked!! Thank you guys soo much, thanks DaveC also laugh! Thanks again, I'm happy now, lol


-Kurdish_Assass1n

Link Copied to Clipboard