PtokaX forum

Archive => Archived 4.0 boards => Finished Lua 4 scripts => Topic started by: c h i l l a on 13 October, 2003, 19:42:21

Title: Fresh Stuff
Post by: c h i l l a on 13 October, 2003, 19:42:21
Just got better :)

a little of what it can do :

[19:20] <-=Fresh=->
*********************** Fresh Help for Op's ******************************
__________________________________________________________________________

+adds [THESTUFF]      Lets you add FreshStuff.

+shows            Shows you the FreshStuff.
+shows 20 40         Shows Item 20 - 40
+shows [ITEMTYPE]      Shows you only certain ITEMTYPES

+searchstuff [SearchString]   Searches the FreshItems for your String.

+dels [ITEM]/[ITEMNR.]      Lets you delete an item.

+topp            Shows you the topposters.

+rate [ITEMNR.] [RATENR.]   Lets you rate good items.
            [RATENR.] can be from 1-10.

+showr            Shows you the toprated items.
+showr [ITEM]         Shows you the rating of the item.

+request [REQUEST]      Lets you add a request.

+showrequest         shows you the requests.
+showrequest 20 40      shows you request 20 - 40

+delrequest [Name]/[Nr.]   Deletes a request.

+freshhelp         Shows you this text again.
__________________________________________________________________________

[19:20] <-=Fresh=->    +regfreshbot [on]/[off]   Lets you regg the FreshBot. Status : OFF
[19:20] <-=Fresh=->    +sendon [on]/[off]    Lets you send the 5 newest items on connect. Status : OFF
 __________________________________________________________________________


save target as v.2.57 (http://chiller3000.tripod.com/p-scripts/freshstuff-v.2.57.zip)
Title: nice one
Post by: Riouel on 20 October, 2003, 18:04:42
hi c h i l l a

i need it one like that

good work buddy and thanx alot

Riouel  :D
Title:
Post by: IN-Flux on 21 October, 2003, 14:23:09
Hey chilla its me smily, can you please tell how can i set the script so only ops can post new stuff? ?(  ?(

 ;)
Title:
Post by: c h i l l a on 21 October, 2003, 15:52:11
sure, guess you'll have to rewrite it ;).
Title:
Post by: IN-Flux on 21 October, 2003, 16:07:02
great bro, one more question i have and iam done;)

how can i set the script so it will type the items in this order:
1 - [21/10/03] Psychedelic ::  Astrix_Vs._Delirious_-_Day_Dream_(Tayzax_Remix)-IL-2003-CDT :: Added by IN-Fluxer
Title:
Post by: c h i l l a on 21 October, 2003, 19:36:11
well okey.. you need to look at these functions

function ReadTable(table, Start, End)

function SearchItems(sstring)

function ShowTypes(type1)

then look at the msg =  and edit it.
Title: Fresh Stuff
Post by: MushroomNZ on 21 October, 2003, 23:36:58
Hi

I have just downloaded and installed version V.2.57

I  have found that in the freshstuff.ini file if I set the "sendonconnect" to anything apart from nil it still won't send the top 5 when people connect to the hub, I have to manually in the hub type "+sendon on" to get it to work.. Which goes well till I have to restart the scripts or reboot the hub etc..

I have put the following in 0,1,on,"on" yes, "yes" and none of these work, am i doing something wrong??

Other wise this is a great bot.. have been using it since I got Ptokax...

MushroomNZ
Title: hi chilla
Post by: kbeh273300 on 21 October, 2003, 23:53:24
i was woundering if maybe you would come help me out at my lua forum ? its just a little forum atm but im working hard on it but i dont wright scripts and i have a member that needs help with your fresh stuff script.if not thats ok but im trying to find a few scripters that wouldnt mind visiting my forum once and awhile and help out.you can see the forum here (http://lua.uknnet.com)

the post for help is here (http://www.highwaysschoolofmotoring.co.uk/lua/viewtopic.php?t=93)

thanks :)

-=T-G-T=- network
Network Webpage: www.t-g-t.nl  (//www.t-g-t.nl)
Network forum http://tgt.shows.it (http://tgt.shows.it)  
Hub address: houseofkings.no-ip.org
hubwebpage http://houseofkings.uknnet.com/home.html (http://houseofkings.uknnet.com/home.html)  
my hub forum http://kingsforum.uknnet.com/ (http://kingsforum.uknnet.com/)  
my LUA forum http://lua.uknnet.com (http://lua.uknnet.com)
Title:
Post by: c h i l l a on 22 October, 2003, 02:22:13
MushroomNZ :

you where right it was really a bug but solved now, added a other feature as well...


kbeh273300:

okey I'll check later and see what I can do if, i can help
Title:
Post by: IN-Flux on 22 October, 2003, 13:52:33
hey chilla the showen order is working perfect, now i need the only op's can post (what should i add to the script?), and if possible to make so the item can be post only with the itemtype without it the user should see a msg from the bot that he should write the itemtype

thnx in advence;)
Title:
Post by: c h i l l a on 22 October, 2003, 15:21:38
I did your request cause many people wanted it.
V.2.59 (http://chiller3000.tripod.com/p-scripts/)
Title:
Post by: IN-Flux on 22 October, 2003, 17:47:27
great work chilla works perfect.

if you can add the no posting without the itemtype will be great;)

thnx a lot for your time and work
Title:
Post by: c h i l l a on 22 October, 2003, 19:32:42
sorry I don't understand... cause one doesn't need to insert an itemtype.
Title:
Post by: MushroomNZ on 22 October, 2003, 23:08:00
Hi chilla

Thanks for the fix, but I seem to have another problem now that if I go to add anything to the list it comes up with the following each time... and the the ops only function is switched off.. (Of course I'm the op/owner)

[10:01]<-=Fresh=->  If you want to add an item type :
      adds YOURITEM  (at least 10 , max 100 characters) or
      adds ITEMTYPE YOURITEM  , in one line in main chat.
      ITEMTYPE's are : Music, Movie, TVep, Game, Warez, HUB,


This is what I typed

+adds Blah
or
+adds HUB Updated freshstuff script..

MushroomNZ
Title:
Post by: c h i l l a on 22 October, 2003, 23:40:42
hmm sounds wired cause I tried to add your posts and it worked,, maybe you ain't got the lates version,  and the lates  freshstuff.ini

and it did what it should blcok adds  smaller than 10 chars and longer than 100 chars

(at least 10 , max 100 characters)
Title:
Post by: IN-Flux on 23 October, 2003, 01:09:29
chilla i mean that when typed:
+adds newitemnewitem-2003
will show the msg
you have to fill the itemtype
the itemtyp's are: album, mp3, movie etc.....
so the user will have to type:
+adds album newitemnewitem-2003

somthing like that if possible......
Title:
Post by: c h i l l a on 24 October, 2003, 11:42:29
yepp can be done, but why, not enable the only Op's and they should know how to post or??
Title:
Post by: IN-Flux on 24 October, 2003, 13:38:02
Its simply will be good for my hub so if you can to do that ill be very thankful.
Title:
Post by: raz on 24 October, 2003, 14:13:37
that will help out alot of ppl as some ppl do +adds single newitemnewitem-2003 and vidz, software and software. :D
Title:
Post by: c h i l l a on 24 October, 2003, 23:43:13
ah I'll see what I can do ;)...
Title:
Post by: c h i l l a on 25 October, 2003, 11:15:19
boyzz  its done.. get the latest.
but you will have to delete the old *ini file and insert the 2 new ones.
Title:
Post by: IN-Flux on 25 October, 2003, 17:29:10
Thanx for that. have another little idea:

each itemtype will get a number so it will be easier to post it.

e.g.

ItemTypes = { 1:"Album",2:"Vinyl",3:"Promo",4:"Video" }

So the user can type
+adds 1 newitemnewitem-2003

it will be a nice future to the script.