PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: Demone.Astaroth on 05 November, 2003, 19:53:00

Title: Add&Erase script
Post by: Demone.Astaroth on 05 November, 2003, 19:53:00
First, Hi! Finally I've found the new forum location :)

I need 2 little scripts to modify a script of mine:

The first add the user's name to a txt (append mode, so I can add many users) when he type !addme. In the txt, near the name must also appear a number from 1 to 5, depending on how many times he types !addme. When he types the 6th !addme, the bot tells him he can't be added again (and the counter still remain to 5).

The second script must erase all the txt content on midnight, so users can add themselves again.

Important: I need them as separated scripts.
Thanks!
Title:
Post by: Demone.Astaroth on 12 November, 2003, 02:55:20
Is it so hard?
I really need these scripts :I
Title:
Post by: Tuben on 12 November, 2003, 13:45:00
When do you want it too type too the txt ?? When a user connects ??