PtokaX forum

Archive => Archived 5.1 boards => Finished Scripts => Topic started by: jiten on 13 June, 2006, 07:52:38

Title: Bulletin Board
Post by: jiten on 13 June, 2006, 07:52:38
--[[

Bulletin Board v1.0 - LUA 5.0/5.1 by jiten (6/4/2006)
??????????????????????????????????????????
Based on: Release/Request Bot v.4.04

Requested by: CrazyGuy

DESCRIPTION:
????????????
- Add, Delete, Show and Lock threads;
- Add, Delete, Show and Find posts;
- Show Top Posters;
- Also supports User Commands.

]]--
Title: Re: Bulletin Board
Post by: Dessamator on 13 June, 2006, 10:14:46
Lets hope it suits CrazyGuy's request, afterall, he's "Crazy" nobody knows what that mind thinks.  ;D
Title: Re: Bulletin Board
Post by: tacker on 14 June, 2006, 13:58:22
With PtokaX DC Hub 0.3.4.0l0 i have this error after 2 threads and 1 rejoin

Quote...scripts\Bulletin.lua:423: attempt to compare two nil values
Title: Re: Bulletin Board
Post by: jiten on 14 June, 2006, 15:12:39
Quote from: tacker on 14 June, 2006, 13:58:22
With PtokaX DC Hub 0.3.4.0l0 i have this error after 2 threads and 1 rejoin

Quote...scripts\Bulletin.lua:423: attempt to compare two nil values

Seems like your tBulletin.tbl file is corrupt.

Unload script, delete the above mentioned .tbl and load it again.

If this doesn't help, please paste the .tbl content so that I can trace the error.
Title: Re: Bulletin Board
Post by: CrazyGuy on 23 June, 2006, 13:35:45
Quote
Lets hope it suits CrazyGuy's request, afterall, he's "Crazy" nobody knows what that mind thinks.  ;D

suits perfectly m8  ;)

Great job Jiten  8)
Title: Re: Bulletin Board
Post by: Dessamator on 23 June, 2006, 18:10:05
Good to know, lets hope u dont "break" it so soon.
Title: Re: Bulletin Board
Post by: jiten on 25 June, 2006, 18:22:54
Quote from: CrazyGuy on 23 June, 2006, 13:35:45
suits perfectly m8? ;)

Great job Jiten? 8)

I'm glad it suits your needs.
And, don't mention it. You're welcome, CG :P
Title: Re: Bulletin Board
Post by: Prathmesh on 21 September, 2006, 05:34:25
Plz modify this script to be matched with Levianthan profiles. Owner profiles is missing.  :(  Just show what to modify I ll modify according your instructions so you dont have to paste whole script again :D

Title: Re: Bulletin Board
Post by: jiten on 21 September, 2006, 19:41:43
Quote from: Prathmesh on 21 September, 2006, 05:34:25
Plz modify this script to be matched with Levianthan profiles. Owner profiles is missing.  :(  Just show what to modify I ll modify according your instructions so you dont have to paste whole script again :D

For example, if you want the Owner to use the 'showthread' command, you must add its profile number [6] followed by = 1, to its tLevels table. See below:

[Settings.showthread] = {
tFunc = function(user)
-- tThread table isn`t empty
if next(tThread) then
local msg, tTable = "\r\n\r\n".."\t"..string.rep("=",80).."\r\n\t\t\t\tCurrently Available Threads:"..
"\r\n\t"..string.rep("-",160).."\r\n", { [0] = "closed", [1] = "open" }
-- For each pair in it
for i,v in pairs(tThread) do
msg = msg.."\t       ? "..string.upper(string.sub(i,1,1))..string.sub(i,2,string.len(i))..
" *"..tTable[v].."*\r\n"
end
user:SendData(Settings.sBot,msg)
else
user:SendData(Settings.sBot,"*** Error: There are no Threads!");
end
end,
tLevels = {
[0] = 1,
[1] = 1,
[4] = 1,
[5] = 1,
[6] = 1,
},
sDesc = "Shows Threads",
sExample = "\t!"..Settings.showthread,
tRC = "Show\\Threads$<%[mynick]> !"..Settings.showthread
},


By the way, from now on I'll always add this profile to every script I touch.
Title: Re: Bulletin Board
Post by: Prathmesh on 26 September, 2006, 07:29:50
Thanx very much this script is ultracool ! ! !  :)
Title: Re: Bulletin Board
Post by: jiten on 30 September, 2006, 12:14:10
I'm glad you like it.
Title: Re: Bulletin Board
Post by: JueLz on 11 October, 2006, 02:38:08
Loved the script jiten... like always..
you did good
:D