|
Joined: Apr 2006
Posts: 400
Fjord artisan
|
OP
Fjord artisan
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:
alias alvl {
cs access $1 list $2
return $gettok(%access2,1,32)
}
and, here's what I type: //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
Hoopy frood
|
Hoopy frood
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
Fjord artisan
|
OP
Fjord artisan
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.
Last edited by Kurdish_Assass1n; 01/07/06 05:32 AM.
-Kurdish_Assass1n
|
|
|
|
Joined: Dec 2002
Posts: 1,245
Hoopy frood
|
Hoopy frood
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
Hoopy frood
|
Hoopy frood
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 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
Fjord artisan
|
OP
Fjord artisan
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
-Kurdish_Assass1n
|
|
|
|
Joined: Apr 2006
Posts: 400
Fjord artisan
|
OP
Fjord artisan
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
Hoopy frood
|
Hoopy frood
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
Fjord artisan
|
OP
Fjord artisan
Joined: Apr 2006
Posts: 400 |
ok, thank you genius_at_work, I understand now, I'll look at it later though, thanks again!
-Kurdish_Assass1n
|
|
|
|
Joined: Apr 2006
Posts: 400
Fjord artisan
|
OP
Fjord artisan
Joined: Apr 2006
Posts: 400 |
OMG! YES! it worked!! Thank you guys soo much, thanks DaveC also ! Thanks again, I'm happy now, lol
-Kurdish_Assass1n
|
|
|
|
|