PDA

View Full Version : tombola


hot_pit
02-09-2004, 04:31 PM
Here a tombola script (a game for ioFTPD)

It add users (lose 200mb) and in a week it sorts and give one user credits (number of user * 200) .. others will loose ... (99% useless ... but someone asks for it :o )

ps: next version if this is popular , with ini setings

v1.01 = new comands and bug fixed ...

Usage :

site tombola join -> for join tombola
site tombola info -> for info of user

Add on ioFTPD.ini :

[FTP_Custom_Commands]

tombola = EXEC ..\scripts\tombola.exe tombola

[Scheduler]

tombolacheck = 0 0 * 0 EXEC ..\scripts\tombola.exe check

Add to ioftpd.env :

CREDIT=%.[credits(mega)(section)]
RATIO=%[ratio]

RESTART IOFTPD !!!! IF THIS VARS ARE NOT ON IOFTPD.ENV TOMBOLA WILL CRASH!!!!!

Thats All , fuscao

MaistroX
02-10-2004, 05:33 AM
Nice work, a editable .ini file is allways welcome! :)

bounty
02-10-2004, 07:40 AM
Originally posted by fuka


[Scheduler]

tombolacheck = 0 0 1 * EXEC ..\scripts\tombola.exe check



attention the schedulers info in ioftpd.ini are WRONG !!!!

= 0 0 1 * -> means once by month @1st day

i think you should use:

= 0 0 * 0 -> means once per week @day 0

refering to http://www.ioftpd.com/documentation/09-scheduler.php

bounty
02-10-2004, 07:41 AM
i think darkone or mouton really should fix that error in ioftpd.ini

have fun
bounty

hot_pit
02-10-2004, 09:16 AM
Originally posted by bounty
attention the schedulers info in ioftpd.ini are WRONG !!!!

= 0 0 1 * -> means once by month @1st day

i think you should use:

= 0 0 * 0 -> means once per week @day 0

refering to http://www.ioftpd.com/documentation/09-scheduler.php

thanks bounty :)

typhon|wk
02-10-2004, 09:33 AM
site tombola join

tombola.exe crash :confused:

hot_pit
02-10-2004, 10:01 AM
Originally posted by typhon|wk
site tombola join

tombola.exe crash :confused:

did you add the vars to ioftpd.env and restarted ??? cant get it to crash here ...

typhon|wk
02-10-2004, 01:45 PM
[19.41.40] site tombola join
[19.41.59] 550 Command failed.


sure added variables in .eng and restarted

always getting tombola.exe crash