PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: PlayboyDee on 25 May, 2004, 22:50:43

Title: Custom Freshstuff Please..
Post by: PlayboyDee on 25 May, 2004, 22:50:43
Hi,
I need a custom Freshstuff.   I tried looking for some, but it seems like when I find the one i want, they end up changing it. (lol)  But what I want should be simple.  I need a Freshstuff thats pretty much like the old version.   Where you type +new in the main chat and it shows the newest "stuff".  And also, have it to where anyone can add new stuff.  Maybe a top poster command would be fine also.   Thanks in advance.
Title:
Post by: plop on 26 May, 2004, 02:29:30
my latest freshstuff 4.x can do most of it allready, but i'll keep these things in mind for the next version.

plop
Title:
Post by: PlayboyDee on 26 May, 2004, 13:00:58
Do you have your old one lying around?  All the commands I want are:
+add (to add something)
+new (to view new stuff)
+del (to delete an item number)
+topposters (to view who posted the most)
Everyone had access to post.
I used to have one, not sure who made it, that had those commands. But I lost it.  :(
Title:
Post by: plop on 26 May, 2004, 15:10:05
1st url in my signature has nearly all the scriprs i made (lost a lot as i never saved those. lol)
i think you want version 3.x.

plop
Title:
Post by: bliskner on 26 May, 2004, 15:27:43
is there a possiblilty you could convert the latest freshstuff to BCDC client side? i tried the 3.3 on your homepage but it doesn't seem to work with BCDC++ 401(?)

thx :)
Title:
Post by: plop on 26 May, 2004, 16:55:00
it's running fine on our network on bcdc 0.401b.
i'm still working on the 4.x serie, once it's finished i'm gone convert it 2 bcdc.
this because i don't want 2 convert it on every version.

plop
Title:
Post by: bliskner on 26 May, 2004, 17:15:15
ok
Title:
Post by: FlatLynr on 15 September, 2004, 02:02:17
PlayboyDee, this isn't a complete solution for you, but I wanted some of the same features (i.e. anyone able to add new releases to the album) so I had a little look into the script. I should point out that I'm only learning lua, so this is definately a duck-tape job  :P

I moved the command to add new releases out of the 'elseif' check for ops and moved it up out of the check.

Move the section below:
        elseif cmd == cmd1 then
             if tune ~= "" and Types[typ] then
                 SendPMMsg( hub, user, AddRel(user, tune, typ) )
                 --user:sendPrivMsgFmtNoWin( AddRel(user, tune, typ) )
             elseif Types[typ] == nil then
                 SendPMMsg( hub, user, "I need to know the catagory to add it to!" )
                 --user:sendPrivMsgFmtNoWin( "I need to know the catagory to add it to!" )
             else
                 SendPMMsg( hub, user, "yea right, like i know what you got 2 add when you don't tell me!" )
                 --user:sendPrivMsgFmtNoWin(  "yea right, like i know what you got 2 add when you don't tell me!" )
             end
             return 1


from below the
       elseif user:isOp() then
to the line above it. This lets any user add a new release but still requires an OP to delete or reload. I hope this helps you a little, it did the job in my hub. The only problem I forsee is that this now leaves it open to abuse but I've covered that by including a new hub-rule that abusing my BOT leads to a kick or ban, seems to have worked so far.

On a related note, I've put all the view/add commands into a right-click menu for my hub via an [adv] textfile with $usercommands (I'm running Yhub) & it seems to be a great success.

Plop, I bow down to you, freshstuff is an absolute masterpiece & I look forward to the new version with baited breath. It almost makes me want to switch to Ptokax  :D