PtokaX forum

Lua 5.3/5.2/5.1 Scripts (for PtokaX 0.4.0.0 and newer) => Request for scripts => Topic started by: phredop on 28 February, 2009, 00:27:55

Title: Request File Script
Post by: phredop on 28 February, 2009, 00:27:55
Hello all!

I was wondering if there exists a script that allows user to request a file.  If there doesn't I have an idea as to how I'd like it to work.  There'd be 6 commands:

!request <filename> 
---Would store a filename in a list along with the requesters name, perhaps by a bot that doesn't need to be visible, can be done by any person on hub.

!getrequestlist
---Would show the list of requested files, can be done by any person on hub

!gotrequest <filename>
---Would store a filename in a list along with the user that has the file, by either another or the same bot, whichever is easier, can be done by any person on hub.

!showgotrequestlist
---Would show the list of files that have been gotten and the user that got it can be used by all.

!removereq <filename>
---Would remove the filename and username from the request list, can only be done by masters and operators.

!removegot <filename>
---Would remove the filename and username from the got request list, can only be done by masters and operators.

If any clarification is needed with making the script, please ask, I'll probably need to consider them as well :D

Again, if theres already a script that does something similar, a name or link would be appreciated, it is kind of hard to search for a "request file" script when everyone is requesting script files.  : D

Thanks a lot all

Phred
Title: Re: Request File Script
Post by: CrazyGuy on 28 February, 2009, 00:57:30
A similar structure exists as Release/Request bots.
Title: Re: Request File Script
Post by: phredop on 28 February, 2009, 01:18:03
ooooo, awesome, Thanks CrazyGuy!  We'll do some testing over the weekend to see how well this works with what we want!

Thanks!

Phred
Title: Re: Request File Script
Post by: CrazyGuy on 28 February, 2009, 01:25:04
nice  :)
Title: Re: Request File Script
Post by: phredop on 28 February, 2009, 04:44:30
Hrm, we can't seem to get it to work. . . at all. . . .

I found Release/Request at this link

http://forum.ptokax.org/index.php?topic=5884.0

Any suggestions on getting it to work?

Or a link with more recent version posted?

Thanks!

Phred
Title: Re: Request File Script
Post by: CrazyGuy on 28 February, 2009, 15:32:38
That one is outdated, and I believe never converted to the new API.
Try this one instead, not exactly the same but will also do the job:

MessageBoard 2.0 LUA 5.1x [Strict][API 2] (http://forum.ptokax.org/index.php?topic=7501.0)
Title: Re: Request File Script
Post by: phredop on 28 February, 2009, 18:17:08
Coolie, I have it working locally now I just need to tinker with the options to get it o my liking!

Thanks for all the help CrazyGuy!

Phred
Title: Re: Request File Script
Post by: CrazyGuy on 01 March, 2009, 14:14:21
you're welcome  :)