|
LO_KEY
|
LO_KEY
|
How come sumtimes i get this error, and others i dont....?
* /fserve: invalid parameters (line 1422, Avalon.mrc)
here is the fserve code line:
fserve $nick 99 $read_ini(Triggers,$replace($1-,$chr(32),&))
|
|
|
|
Joined: Dec 2002
Posts: 1,518
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,518 |
would be a good idea to ask the creator of that remote .....
|
|
|
|
LO_KEY
|
LO_KEY
|
who said i wasnt him? so i ask myself... WHAT THE EHEM ARE YOU DOING WRONG !?!?!
|
|
|
|
Joined: Dec 2002
Posts: 1,518
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,518 |
ok then what is it that triggers that line to run and then u will figure out ur answer ...... because with only seeing one single line thats not prosessing i surly cant figure out what it is that u did wrong in ur code for it to cause an error
|
|
|
|
LO_KEY
|
LO_KEY
|
The line triggers when sumone types a valid trigger in a channel...
on *:text:*:#: {
if ($read_ini(Options,Enabled) = Yes) {
if ($read_ini(Options,RespondList) = Yes) {
if ($1 = !list) || ($1- == $read_ini(Options,findtrigger)) { .timer 1 2 display_ad notice $nick }
}
if ($read_ini(Options,EnableFind) = Yes) {
if ($1 = $read_ini(Options,FindTrigger)) && ($2 != $null) {
var %find = * $+ $replace($2-,$chr(32),*) $+ *
var %trig = $ini($mircdir\Avalon\Options.ini,Triggers,0)
var %trig_1 = 0
:redo
inc %trig_1
if (%trig_1 > %trig) { goto end }
var %findfile = $findfile( $read_ini(Triggers,$ini($mircdir\Avalon\Options.ini,Triggers,%trig_1)) , %find , 0 )
if (%findfile = 0) { .notice $nick $+ $read_ini(Options,MainColor) $+ , $+ $read_ini(Options,bgcolor) $+ Sorry No Matches Found In Trigger $+ $read_ini(Options,2ndColor) $+ , $+ $read_ini(Options,bgcolor) $+ $replace($ini($mircdir\Avalon\Options.ini,Triggers,%trig_1),&,$chr(32)) $+ $read_ini(Options,MainColor) $+ , $+ $read_ini(Options,bgcolor) $+ For $+ $read_ini(Options,2ndColor) $+ , $+ $read_ini(Options,bgcolor) $+ %find }
if (%findfile > 0) { .notice $nick $+ $read_ini(Options,MainColor) $+ , $+ $read_ini(Options,bgcolor) $+ Found $+ $read_ini(Options,2ndColor) $+ , $+ $read_ini(Options,bgcolor) $+ %findfile $+ $read_ini(Options,MainColor) $+ , $+ $read_ini(Options,bgcolor) $+ Matches For $+ $read_ini(Options,2ndColor) $+ , $+ $read_ini(Options,bgcolor) $+ %find $+ $read_ini(Options,MainColor) $+ , $+ $read_ini(Options,bgcolor) $+ On Trigger $+ $read_ini(Options,2ndColor) $+ , $+ $read_ini(Options,bgcolor) $+ $replace( $ini( $mircdir\Avalon\Options.ini,Triggers,%trig_1) ,&, $chr(32) ) }
goto redo
}
}
[color:red] if ($read_ini(Triggers,$replace($1-,$chr(32),&)) != $null) {
if ($read_ini(Dcc_Banned,$address($nick,9)) != $null) { .notice $nick $+ $read_ini(Options,MainColor) $+ , $+ $read_ini(Options,bgcolor) $+ Sorry $+ $read_ini(Options,2ndColor) $+ , $+ $read_ini(Options,bgcolor) $+ $nick $+ $+ $read_ini(Options,MainColor) $+ , $+ $read_ini(Options,bgcolor) $+ , You Are Banned From My File Server. Reason $+ $read_ini(Options,2ndColor) $+ , $+ $read_ini(Options,bgcolor) $+ $read_ini(Dcc_Banned,$address($nick,9)) $+ $read_ini(Options,MainColor) $+ , $+ $read_ini(Options,bgcolor) $+ Åvä£ $+ $+ $read_ini(Options,2ndColor) $+ , $+ $read_ini(Options,bgcolor) $+ ðñ ƒ§ $+ $+ $read_ini(Options,MainColor) $+ , $+ $read_ini(Options,bgcolor) $+ érv | goto end }
if ($read_ini(Options,CloneProtect) = Yes) {
var %check_queues = 1
var %tot_queues = $read_ini(Queues,Total)
while (%check_queues <= %tot_queues) {
if ($address($nick,2) != $address($gettok($read_ini(Queues,%check_queues),1,32),2)) || ($nick = $gettok($read_ini(Queues,%check_queues),1,32)) { inc %check_queues }
if ($address($nick,2) = $address($gettok($read_ini(Queues,%check_queues),1,32),2)) && ($nick != $gettok($read_ini(Queues,%check_queues),1,32)) {
.notice $nick $+ $read_ini(Options,MainColor) $+ , $+ $read_ini(Options,bgcolor) $+ Sorry $+ $read_ini(Options,2ndColor) $+ , $+ $read_ini(Options,bgcolor) $+ $nick $+ $+ $read_ini(Options,MainColor) $+ , $+ $read_ini(Options,bgcolor) $+ , Clone Protection Is $+ $read_ini(Options,2ndColor) $+ , $+ $read_ini(Options,bgcolor) $+ Enabled $+ $read_ini(Options,MainColor) $+ , $+ $read_ini(Options,bgcolor) $+ , And You Have Queues Under The Nick $+ $read_ini(Options,2ndColor) $+ , $+ $read_ini(Options,bgcolor) $+ $gettok($read_ini(Queues,%check_queues),1,32) $+ $+ $read_ini(Options,MainColor) $+ , $+ $read_ini(Options,bgcolor) $+ . Refusing File Server Session. $+ $read_ini(Options,MainColor) $+ , $+ $read_ini(Options,bgcolor) $+ Åvä£ $+ $+ $read_ini(Options,2ndColor) $+ , $+ $read_ini(Options,bgcolor) $+ ðñ ƒ§ $+ $+ $read_ini(Options,bgcolor) $+ érv
goto end
}
}
}
if ($read_ini(ServTo, $chan ) != Yes) { .notice $nick $+ $read_ini(Options,MainColor) $+ , $+ $read_ini(Options,bgcolor) $+ $chr(91) $+ Fil $+ $read_ini(Options,2ndColor) $+ , $+ $read_ini(Options,bgcolor) $+ e Serv $+ $read_ini(Options,MainColor),$read_ini(Options,bgcolor) $+ er Onl $+ $read_ini(Options,2ndColor) $+ , $+ $read_ini(Options,bgcolor) $+ ine $+ $read_ini(Options,MainColor),$read_ini(Options,bgcolor) $+ $chr(93) $+ $read_ini(Options,2ndColor) $+ , $+ $read_ini(Options,bgcolor) $+ Sorry $nick $+ , That Trigger Is Not Valid For $+ $read_ini(Options,MainColor) $+ , $+ $read_ini(Options,bgcolor) $+ $chan $+ . $+ $read_ini(Options,MainColor) $+ , $+ $read_ini(Options,bgcolor) $+ Åvä£ $+ $+ $read_ini(Options,2ndColor) $+ , $+ $read_ini(Options,bgcolor) $+ ðñ ƒ§ $+ $+ $read_ini(Options,MainColor) $+ , $+ $read_ini(Options,bgcolor) $+ érv | goto end }
if ($nick isop $chan) {
if ($read_ini(TriggerType,$replace($1-,$chr(32),&)) != +o) && ($read_ini(TriggerType,$replace($1-,$chr(32),&)) != All) {
.notice $nick $+ $read_ini(Options,MainColor) $+ , $+ $read_ini(Options,bgcolor) $+ $chr(91) $+ Fil $+ $read_ini(Options,2ndColor) $+ , $+ $read_ini(Options,bgcolor) $+ e Serv $+ $read_ini(Options,MainColor),$read_ini(Options,bgcolor) $+ er Onl $+ $read_ini(Options,2ndColor) $+ , $+ $read_ini(Options,bgcolor) $+ ine $+ $read_ini(Options,MainColor),$read_ini(Options,bgcolor) $+ $chr(93) $+ $read_ini(Options,2ndColor) $+ , $+ $read_ini(Options,bgcolor) $+ Sorry $nick $+ , You Do Not Have Access To That $+ $read_ini(Options,MainColor) $+ , $+ $read_ini(Options,bgcolor) $+ Trigger $+ . $+ $read_ini(Options,MainColor) $+ , $+ $read_ini(Options,bgcolor) $+ Åvä£ $+ $+ $read_ini(Options,2ndColor) $+ , $+ $read_ini(Options,bgcolor) $+ ðñ ƒ§ $+ $+ $read_ini(Options,MainColor) $+ , $+ $read_ini(Options,bgcolor) $+ érv
goto end
}
}
if ($nick isvoice $chan) {
if ($read_ini(TriggerType,$replace($1-,$chr(32),&)) != +v) && ($read_ini(TriggerType,$replace($1-,$chr(32),&)) != All) {
.notice $nick $+ $read_ini(Options,MainColor) $+ , $+ $read_ini(Options,bgcolor) $+ $chr(91) $+ Fil $+ $read_ini(Options,2ndColor) $+ , $+ $read_ini(Options,bgcolor) $+ e Serv $+ $read_ini(Options,MainColor),$read_ini(Options,bgcolor) $+ er Onl $+ $read_ini(Options,2ndColor) $+ , $+ $read_ini(Options,bgcolor) $+ ine $+ $read_ini(Options,MainColor),$read_ini(Options,bgcolor) $+ $chr(93) $+ $read_ini(Options,2ndColor) $+ , $+ $read_ini(Options,bgcolor) $+ Sorry $nick $+ , You Do Not Have Access To That $+ $read_ini(Options,MainColor) $+ , $+ $read_ini(Options,bgcolor) $+ Trigger $+ . $+ $read_ini(Options,MainColor) $+ , $+ $read_ini(Options,bgcolor) $+ Åvä£ $+ $+ $read_ini(Options,2ndColor) $+ , $+ $read_ini(Options,bgcolor) $+ ðñ ƒ§ $+ $+ $read_ini(Options,MainColor) $+ , $+ $read_ini(Options,bgcolor) $+ érv
goto end
}
}
if ($nick isreg $chan) {
if ($read_ini(TriggerType,$replace($1-,$chr(32),&)) = +v) || ($read_ini(TriggerType,$replace($1-,$chr(32),&)) = +o) {
.notice $nick $+ $read_ini(Options,MainColor) $+ , $+ $read_ini(Options,bgcolor) $+ $chr(91) $+ Fil $+ $read_ini(Options,2ndColor) $+ , $+ $read_ini(Options,bgcolor) $+ e Serv $+ $read_ini(Options,MainColor),$read_ini(Options,bgcolor) $+ er Onl $+ $read_ini(Options,2ndColor) $+ , $+ $read_ini(Options,bgcolor) $+ ine $+ $read_ini(Options,MainColor),$read_ini(Options,bgcolor) $+ $chr(93) $+ $read_ini(Options,2ndColor) $+ , $+ $read_ini(Options,bgcolor) $+ Sorry $nick $+ , You Do Not Have Access To That $+ $read_ini(Options,MainColor) $+ , $+ $read_ini(Options,bgcolor) $+ Trigger $+ . $+ $read_ini(Options,MainColor) $+ , $+ $read_ini(Options,bgcolor) $+ Åvä£ $+ $+ $read_ini(Options,2ndColor) $+ , $+ $read_ini(Options,bgcolor) $+ ðñ ƒ§ $+ $+ $read_ini(Options,MainColor) $+ , $+ $read_ini(Options,bgcolor) $+ érv
goto end
}
}
$rite_ini Options Accessed $calc( $read_ini(Options,Accessed) + 1 )
fserve $nick 99 $read_ini(Triggers,$replace($1-,$chr(32),&))
[/color]
}
}
:end
}
That is the whole remote, reading thru it explains itself pretty much, but if you need anything else jus let me know, i can explain any part of the code to ya..... but for the most part, what's in red is what is being triggered....
|
|
|
|
Joined: Dec 2002
Posts: 191
Vogon poet
|
Vogon poet
Joined: Dec 2002
Posts: 191 |
It could even be a problem with your read_ini alias that is causing the error.
|
|
|
|
Joined: Dec 2002
Posts: 1,518
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,518 |
im not totally sure its the alias thats the cause of this error or whether it may have something to do with how its reading the trigger ...... are u setting more than one trigger in ur sets ... aside from that at first glance i really am having trouble seeing why its performing an error sometimes but not all the time ...... unless if im seeing it correctly its scanning for everyword said in channel and looking for a match ... but i dont see how its getting its match to perform anything.....
if ($read_ini(Triggers,$replace($1-,$chr(32),&)) != $null) {
i dont see how its actually saying like if $1 == $read_ini(Triggers,$replace($1-,$chr(32),&) and yes im aware that isnt gonna work ... but i dont see how its supposed to perform anything if the trigger is matched ..... unless thats in another part of your code ..... it almost looks like ok they say anything in the channel they want and its the trigger and then it performs all these different checks thru the ini file uve got stored ..... it almost looks like u need it to still match the trigger to whats been said by someone altho again i could be mistaken by looking at it at a quick glance
|
|
|
|
LO_KEY
|
LO_KEY
|
if ($read_ini(Triggers,$replace($1-,$chr(32),&)) != $null) {
that line, checks to see if what they typed is in the ini
this is whats in the ini file
[Triggers] This&Is&My&PSX&Trigger,&Dont&Fuk&Wit&It!=D:\Serv\
so, u can see why i replace the Spaces with & signs
which also means that its only triggered if they type
This Is My Psx Trigger, Dun Fuk Wit It!
and here is the $read_ini alias
alias read_ini return $readini($mircdirAvalon\Options.ini,$1,$2)
|
|
|
|
|