mIRC Homepage
Posted By: Kurdish_Assass1n Custom Identifier Question - 01/07/06 04:29 AM
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!
Posted By: MikeChat Re: Custom Identifier Question - 01/07/06 05:24 AM
alias alvl {
cs access $1 list $2
return $gettok(%access2,1,32)
}

so where does %access2 get its value (does it have a value?)
Posted By: Kurdish_Assass1n Re: Custom Identifier Question - 01/07/06 05:27 AM
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
Posted By: MikeChat Re: Custom Identifier Question - 01/07/06 05:39 AM
only thing i can think of is that the var hasnt been set yet when the value is being returned in the identifier
Posted By: DaveC Re: Custom Identifier Question - 01/07/06 06:46 AM
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.
Posted By: Kurdish_Assass1n Re: Custom Identifier Question - 01/07/06 05:30 PM
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
Posted By: Kurdish_Assass1n Re: Custom Identifier Question - 01/07/06 11:22 PM
Which do I load!? none of these look like mIRC scripting, so, idk, lol:
Posted By: genius_at_work Re: Custom Identifier Question - 02/07/06 12:06 AM
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
Posted By: Kurdish_Assass1n Re: Custom Identifier Question - 02/07/06 12:19 AM
ok, thank you genius_at_work, I understand now, I'll look at it later though, thanks again! laugh
Posted By: Kurdish_Assass1n Re: Custom Identifier Question - 02/07/06 12:57 AM
OMG! YES! it worked!! Thank you guys soo much, thanks DaveC also laugh! Thanks again, I'm happy now, lol
© mIRC Discussion Forums