PtokaX forum

Archive => Archived 5.0 boards => Finished Scripts => Topic started by: NightLitch on 10 March, 2005, 11:29:02

Title: *** FreshStuff V. 2.60
Post by: NightLitch on 10 March, 2005, 11:29:02
Here it is FreshStuff V. 2.60

I took the freedom to convert the FreshStuff V.2.59 made by Chilla to Lua 5

FreshStuff V. 2.60 Download (http://swenorth.myftp.org/network/nightlitch/files/FreshStuff-V2.60.rar)

Report Errors...

// NightLitch
Title:
Post by: uffetjur on 10 March, 2005, 11:38:42
tnx m8 I no where to put it
Title:
Post by: Jorgo on 10 March, 2005, 17:46:26
Weeee - thank you! Seems to work fine.
Title: Thank You big time =D.....but.....
Post by: JustABitch on 11 March, 2005, 07:14:45
i've got a problem....when i try to show requests i get this error: Syntax ...\0.3.3.0.b16.05.nt.dgb\scripts\FreshStuff-V.2.60.lua:342: attempt to call global `getn' (a nil value)

and when i try to add a request i get this error: Syntax ...\0.3.3.0.b16.05.nt.dgb\scripts\FreshStuff-V.2.60.lua:294: attempt to call global `getn' (a nil value)

Everything else seems to work just fine  =)...

If u find the time to look at it it would be gr8...

Thx superdupermuch
//JAB
Title:
Post by: Acidpadd on 15 March, 2005, 11:15:23
thanks for that wonderfull script ... its to cool to use man :)) i like it alot .......
Title:
Post by: Jelf on 15 March, 2005, 11:24:27
Theres still some old code in there..
Line 294
for i = 1,getn(requests) doshould be
for i = 1,table.getn(requests) doAlso line 342
"\t----------------   Fresh Requests : "..getn(requests).."  Items Stored\t----------------\r\n")Should be
"\t----------------   Fresh Requests : "..tablegetn(requests).."  Items Stored\t----------------\r\n")Hope this helps
Title:
Post by: x-ray on 15 March, 2005, 17:09:14
i've got a problem....when i try to add requests i get this error: Syntax ...\0.3.3.0.b16.05rls\scripts\FreshStuff-V.2.60.lua:302:attempt to call global `tinsert' (a nil value)


Help
Title:
Post by: Jelf on 15 March, 2005, 17:19:35
I didnt go all thought it earlier, thought most would have been done.

You need to change that to table.insert
Title:
Post by: x-ray on 15 March, 2005, 17:33:53
Thanks it works great
Title: Added Lines!
Post by: tassen on 16 March, 2005, 08:49:09
I have changes the lines 294 and 342 i think it whas but still, The Request  not working but release function is working!

Regards Tassen
Title:
Post by: TTB on 25 March, 2005, 17:36:40
Hi,

indeed, the Request part doesn't work well... This is the message:

Syntax ... HUB ADSL\TESTHUB\LUA5\scripts\FreshStuff-V.2.60.lua:302: attempt to call global `tinsert' (a nil value)
Hope someone can make this work :)
Title:
Post by: TTB on 25 March, 2005, 18:18:47
Hi,

couldn't wait... I have it fixed on my own. Nightlitch, I think the script is now 100% ok (for so far I can test)...

This should be it:

FreshStuff 2.60 FiXeD (http://ttb_82.spymac.net/FreshStuff-V2.60-Final.zip)

The details:

changed (also posted by Jelf, but he made a mistake and also missed 1 error):

line 294
for i = 1,getn(requests) doshould be:for i = 1,table.getn(requests) do
line 302
tinsert (requests, 1, { os.date("[%d/%m/%y]"),curUser.sName,requestitem } )should be:table.insert (requests, 1, { os.date("[%d/%m/%y]"),curUser.sName,requestitem }
line 342
"\t----------------   Fresh Requests : "..getn(requests).."  Items Stored\t----------------\r\n")should be:"\t----------------   Fresh Requests : "..table.getn(requests).."  Items Stored\t----------------\r\n")
@Jelf => You didn't write the "dot"   "."  (line 342) that's why it gave an error.

The file is now on my server, maybe somenone can copy this and put it on a server with a lot of lua stuff :))
Title:
Post by: Jelf on 25 March, 2005, 21:26:59
Whoops didnt see that b4 i posted, ty
Title: v.2.60
Post by: tassen on 11 April, 2005, 22:24:09
+showrequest this is not working for me!

Regards Tassen
Title:
Post by: TTB on 12 April, 2005, 14:37:52
Did you download the FiXeD version?

Click here (http://ttb_82.spymac.net/FreshStuff-V2.60-Final.zip)
Title: help for oders
Post by: sensi on 16 April, 2005, 12:45:16
hello all, I encounter a problem with script FreshStuff-V.2.60, I have any order on main chat [ 12:30:47 ] *** Server command : !shows
thank you for your assistance
Title: i have same probalm
Post by: (-=TrIp-iN-SuN=-) on 16 April, 2005, 19:02:29
how i doing only reg users can to add?
Title: ?
Post by: (-=TrIp-iN-SuN=-) on 16 April, 2005, 19:03:37
not all users i want to add new stuff only vip and op how i can to do that?
Title:
Post by: TTB on 17 April, 2005, 03:53:49
I will make the modified script tomorrow for you... You also want to make it possible to let VIPs also add to shows?? Please reply to confim!
Title:
Post by: sensi on 17 April, 2005, 14:04:17
hello all Yep good idea, the ideal will be that that evening to record them or the vip which can add :)
Thx TTB .....
Title:
Post by: TTB on 17 April, 2005, 15:53:32
Hi,

this is a version that all users with profile VIP also can add... (this is changed also with the command: +onlyop on/off) So onlyop enabled, will also allow VIPs to add!

*CLICK* (http://ttb_82.spymac.net/fresh260-alsovip.zip)

Quotehello all Yep good idea, the ideal will be that that evening to record them or the vip which can add :)
I don't understand this... do you want to allow only certain VIPs to add? In that case, it will take some time to make, because I'm also busy with making other scripts (and I'm not that good to make that in 5 min)...
Title: Tnx TTB
Post by: (-=TrIp-iN-SuN=-) on 18 April, 2005, 18:46:59
but i have same thing more how i closed to don't see new release in MOTD only if users type same command his see new release. not how is same user enter to hub see release i don't want this ! if him want to check new release him type same command to see new release
Title:
Post by: (-=TrIp-iN-SuN=-) on 18 April, 2005, 18:49:15
i need this to fast
Title:
Post by: jiten on 18 April, 2005, 19:12:26
QuoteOriginally posted by (-=TrIp-iN-SuN=-)
but i have same thing more how i closed to don't see new release in MOTD only if users type same command his see new release. not how is same user enter to hub see release i don't want this ! if him want to check new release him type same command to see new release

If u don't want to see the releases on Connect, just go to PtokaX\scripts\Fresh-Files and open the file named "FreshStuff.ini".
Look for this:
--Set This to anything else than nil ( SendOnConnect = 1 ) and the "Max2" newest items will be shown at userconnect
SendOnConnect = 1

and change it to:
--Set This to anything else than nil ( SendOnConnect = 1 ) and the "Max2" newest items will be shown at userconnect
SendOnConnect = 0

Cheers

PS: If u want the version of this script that fixes the releases sending before the MOTD check this (http://mznetwork.mozdesigners.com/i/forum_files/FreshStuff-V2.60-Final.rar).
Btw, what do u mean with that vip thingy?
Title:
Post by: (-=TrIp-iN-SuN=-) on 18 April, 2005, 19:33:04
it's not work
Title:
Post by: jiten on 18 April, 2005, 19:40:16
QuoteOriginally posted by (-=TrIp-iN-SuN=-)
it's not work

Can u explain what do u want and what isn't working exactly?
I didn't understand most of what u wanted to say in the previous posts.
Title:
Post by: GrinSlaW on 17 May, 2005, 04:43:56
Hi  :]

Is it possible to get a right click menu for this one ?
with the comands thats are in the bot ?
Title:
Post by: jiten on 17 May, 2005, 11:31:01
QuoteOriginally posted by GrinSlaW
Hi  :]

Is it possible to get a right click menu for this one ?
with the comands thats are in the bot ?
Well, I can give you some hints.

These are the commands:
"adds", "shows", "dels", "topp", "rate", "showr", "freshhelp", "searchstuff", "request", "showrequest" and "delrequest"Then, you just have a look at this How-To (http://board.univ-angers.fr/thread.php?threadid=4495&boardid=30&sid=2e4d573389d1cc294645067c9810c8b0&page=1). Hope it helps...

Cheers
Title:
Post by: GrinSlaW on 17 May, 2005, 12:52:24
oki tnx i will try that  :)
Title:
Post by: jiten on 19 May, 2005, 09:56:53
Hope you got it ;)
Title:
Post by: GrinSlaW on 20 June, 2005, 16:23:28
hello  8)

can someone make so that the 5 latest freshstuff comes after the MOTD ? if i use PtokaX inbuild MOTD the freshstuff comes before the MOTD and then no body can see what the latest releases are. hope you understand me  :D

cheer
Title:
Post by: uffetjur on 30 August, 2005, 00:01:17
Getting 2 errors in following script:

319 attempt to concatenate global name (a nil value)
73 attempt to index a nil value

I do also want this script modded to fit my kneeds,

1:Only allow stored items to be added
2: autodelete  requests after x days / weeks
3: add topposters

---------------------------------------------------------------------------------
-- FRESH STUFF BY  C  H  I  L  L  A    -
-- Converted to Lua 5 by NightLitch -
-- added delay for sending Newest Items on connect by jiten
---------------------------------------------------------------------------------

curVersion = "V.2.60"
Title: Need a simple (I think) thing added to this great script
Post by: Hardrocker on 14 September, 2005, 22:50:19
I wonder if would be possible to add moderators to the list of people that can add things. Just like you added support for VIP's