FlashFXP Forums

FlashFXP Forums (https://oss.azurewebsites.net/forum/)
-   ! New Scripts Announces & Updates (https://oss.azurewebsites.net/forum/ioftpd/ioftpd/scripting/-new-scripts-announces-amp-updates/)
-   -   jTQ (https://oss.azurewebsites.net/forum/ioftpd/ioftpd/scripting/-new-scripts-announces-amp-updates/10815-jtq.html)

jeza 11-06-2005 04:38 AM

jTQ
 
jTQ is trial/quota script

Code:

- normal quota/trial for users
 - group quota for groups
 - on fail trial
  * delete acount
  * disable acount
 - on fail quota
  * nothing
  * delete acount
  * disable acount
  * move acount to trial group
  * remove credits


zOrP 11-07-2005 04:03 PM

hmm

Microsoft Windows XP [version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\ioFTPD\system>jscripts.exe CHECK
ERROR: InitializeSharedMemory - FAILED

zOrP 11-07-2005 04:12 PM

and..

[22:07:54] [xxx] [22:07] can't read "jTQ(time_trigers)": no such element in array
[22:07:54] [xxx] while executing
[22:07:54] [xxx] "foreach prc $jTQ(time_trigers) {
[22:07:54] [xxx] set n [split $prc "-"]
[22:07:54] [xxx] [lindex $n 1] min hour day month year
[22:07:54] [xxx] }"
[22:07:54] [xxx] (procedure "jTQ:BiND" line 12)
[22:07:54] [xxx] invoked from within
[22:07:54] [xxx] "jTQ:BiND"
[22:07:54] [xxx] (file "scripts/jTQ/jTQ.tcl" line 1631)
[22:07:54] [xxx] invoked from within
[22:07:54] [xxx] "source scripts/jTQ/jTQ.tcl"
[22:07:54] [xxx] (file "eggdrop.conf" line 310)
[22:07:54] [xxx] [22:07] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
DCC session closed

on rehash

anetacz 11-07-2005 04:31 PM

C:\ioFTPD\system>jscripts.exe CHECK

i have same problem ..failed

jeza 11-07-2005 05:21 PM

blup :)

iNFO

jTQ With jScripts.exe will work only if u have :
- ioFTPD installed in c:\ioFTPD
- WindowName = ioFTPD::MessageWindow

---------------------------------------------------------------

INSTALATiON
...

anetacz 11-07-2005 05:39 PM

i have all option from your instalation nfo...but still failed :(

zOrP 11-07-2005 06:28 PM

yup..
here too.. i have set that.. :/
could it be because io is running as a service ?

jeza 11-08-2005 07:12 AM

it should work if u have this message window
i tested with firedaemon and it worked
make sure u have interact with desktop checked

-> can't read "jTQ(time_trigers)": no such element in array
typo in jTQ.conf -
find set jTQ(time_triggers) and change to set jTQ(time_trigers)

if still doesnt work i sugest to use some other script for trial/quota ;)

zOrP 11-08-2005 05:03 PM

hehe..
No thanks.. i wanna try this one.. :>
and after i interact it works. :)

But

[23:06:43] [xxx] [23:06] ..jTQ...: LOCALE UPDATE
[23:06:43] [xxx] [23:06] ..jTQ...: C:/ioFTPD/system/jScripts.exe BCUSTATS 0 FAiLED (ERROR: InitializeSharedMemory - FAILED
[23:06:43] [xxx] child process exited abnormally)
[23:06:43] [xxx] [23:06] ..jTQ...: TRiAL CHECK
[23:06:43] [xxx] [23:06] ..jTQ...: QUOTA CHECK
[23:06:43] [xxx] [23:06] ..jTQ...: 528h To The End Of Month
[23:06:43] [xxx] [23:06] ..jTQ...: PASSED 'CREATE'
[23:06:43] [xxx] [23:06] Tcl error in file 'eggdrop.conf':
[23:06:43] [xxx] [23:06] syntax error in expression "1500-": premature end of expression
[23:06:43] [xxx] while executing
[23:06:43] [xxx] "expr $jTQ(quota_[lindex $n 0])-$jTQ(number_amount)"
[23:06:43] [xxx] (procedure "jTQ:PASSED" line 356)
[23:06:43] [xxx] invoked from within
[23:06:43] [xxx] "jTQ:PASSED nick uhost hand $jTQ(default_admin_chan) [lindex $line 0]"
[23:06:43] [xxx] (procedure "jTQ:QUOTACHECK" line 72)
[23:06:43] [xxx] invoked from within
[23:06:43] [xxx] "[lindex $n 1] min hour day month year"
[23:06:43] [xxx] (procedure "jTQ:BiND" line 14)
[23:06:43] [xxx] invoked from within
[23:06:43] [xxx] "jTQ:BiND"
[23:06:43] [xxx] (file "scripts/jTQ/jTQ.tcl" line 1631)
[23:06:43] [xxx]
[23:06:43] [xxx] [23:06] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
DCC session closed

after i changed time trigers

jeza 11-08-2005 05:18 PM

yes
because ERROR: InitializeSharedMemory - FAILED
that means message window "ioFTPD::MessageWindow" was not found

zOrP 11-08-2005 06:03 PM

[Threads]
Process_Priority = NORMAL # Suggested process base priority (Idle/Normal/High/Realtime)
Io_Threads = 2 # Number of io threads
Worker_Threads = 5 # Number of worker threads
Encryption_Threads = 2 # Number of encryption threads
WindowName = ioFTPD::MessageWindow

but after i did interact the cmd worked..

jscripts.exe CHECK

just bot ****ing..

jeza 11-09-2005 01:51 AM

if jscripts.exe works its ok now
just to be sure u can run
jscripts.exe bcustats 0
to see if u get some feedback

for jTQ :
i didnt test the script with blowfish disabled :(
so thats why there was this error with jTQ(time_trigers)
so when u switch to blowfish u must change back to jTQ(time_triggers)

and when u rehash your bot
bot will auto update stats (.jTQ...: LOCALE UPDATE)
u will get output in chan for !trials and !quotas
and perhaps something else
so i suggest to use blowfish or wait until i post a fix

zOrP 11-09-2005 04:45 PM

hmm..
nice script though.

Got everything working yesterday.

But now this morning i get

[08:34:09] [@xxx] !passed user
[08:34:09] [@xxx] -xxx/QUOTA- > user has 20 Day(s) To Pass 1500/1500MB (75MB/DAY) MNUP (#4)
[08:34:09] [@xxx] ..jTQ...: C:/ioFTPD/system/jScripts.exe CHANGECREDITS user -1000 FAiLED (couldn't duplicate input handle: bad file number)
[20:18] Tcl error [jTQ:PASSED]: invoked "break" outside of a loop

and besides, isnt it only supposed to take credits on failed and not on every check ?


and on !rehash
08:32:07] [@xxx] !rehash
[08:32:07] [@xxx] ..jTQ...: C:/ioFTPD/system/jScripts.exe BCUSTATS 0 FAiLED (couldn't duplicate input handle: bad file number)

strange though.
CAuse if i do cmd..
jscripts.exe bcustats 0
works fine
and all other cmds working fine too..


And any way to make it work without interact with desktop ?
otherwise sitebot window wont dissapear.. :/

And last error.

on !quotas i get
[13:28:15] [@xxx] -xxx/PASSED- > user (31340MB)

and !passed says
[13:28:11] [@xxx] -xxx/QUOTA- > user upped 29840MB/1500MB > MNUP (#1) with 20 Day(s) left

which is true ?

other than that. nice work. :>

zOrP 11-15-2005 12:10 PM

HMM..
seems i found the error.

Run your eggdrop in -nt mode, and first 2 errors dissapear.

But the !passed and !quotas still says different amount. 500mb

last problem.
how do i hide window when running -nt mode.
using firedaemon ?

jeza 11-15-2005 01:33 PM

31340-1500=29840
on quotas u see total amount user upped
on passed u can choose betwen total , missing, how_many_over
try it like this:
xxx/QUOTA- > user upped 29840MB over the 1500MB quota > MNUP (#1) with 20 Day(s) left

yes allways use -nt

i use firedaemon
interact with desktop checked and runs on hiden mode

->
"credits" on end of month
in config says how many MB to take from user on fail
it should be kB not MB


All times are GMT -5. The time now is 04:29 AM.

Powered by vBulletin® Version 3.8.11 Alpha 3
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)