Hi,
I'm using Ptokax 3.5.2 and like to have a tool for leaving offline messanges from user to user (not regged). The Bulletin Board works, but threads are to complicate to handle with. The right click menu doesn't work well, if a thread has no posts, you can't add there a post. New threads and posts are only shown after script reset or reconnecting.
I had like something like a bot I send a PM to and any user can read this in his PM windows by using a command. I was searching already, but couldn`t find any for LUA5.1 Can anybody help plz?
THX
Well, bulletin board should address your needs, it might just require a few mods.
Hi,
I have no idea in LUA. Tried to add the helpcmd in BulletinBoard, but all I got were syntax errors.
The BB is ok, but the right click menu isn't up to date. There have a refresh to be done after adding a thread or post.
Using the commands and not right click may be complicated to the users, thats why I want to just to throw out the threads, so I get an easier command like '!post "Here is the text"' and '!news' to show. Rename the command isn't the problem, but kicking out the rest and modify to no threads.
The best would be a bot, called after a thread users can send PMs to and all users (offline too) could read this PMs.
Maybe there is already somethink like that, but I could find.
THX for your help.
BP
Quote from: BluePanther on 15 November, 2006, 16:13:07
Hi,
I have no idea in LUA. Tried to add the helpcmd in BulletinBoard, but all I got were syntax errors.
The BB is ok, but the right click menu isn't up to date. There have a refresh to be done after adding a thread or post.
Using the commands and not right click may be complicated to the users, thats why I want to just to throw out the threads, so I get an easier command like '!post "Here is the text"' and '!news' to show. Rename the command isn't the problem, but kicking out the rest and modify to no threads.
The best would be a bot, called after a thread users can send PMs to and all users (offline too) could read this PMs.
Maybe there is already somethink like that, but I could find.
THX for your help.
BP
I think that the CodeBoard script will suit your needs...
Here is what it does... you pm the bot with the text and then it immediately sends to all the users (depending on how they have chosen to receive notifications[pm or main]). Each days logs are saved in a dir and you can always list and view the those logs with appropriate commands.
I am not sure if there is a 5.1 version though have a search around the forum, if it sounds interesting..
Hi,
I found CodeBoard for LUA5 (fixed Version by Herodes). Put it on PKX 3.5.1 LUA5.02. If I send a private message to CodeBoard I get a message: code has been sent, so it should work. But didn't find some cmds. +cb didn`t work. No files are stored if I stop the hub. From the lua file I can't get any hints.
Can anyone plz help me ones more?
Quote from: BluePanther on 16 November, 2006, 02:06:49
Hi,
I found CodeBoard for LUA5 (fixed Version by Herodes). Put it on PKX 3.5.1 LUA5.02. If I send a private message to CodeBoard I get a message: code has been sent, so it should work. But didn't find some cmds. +cb didn`t work. No files are stored if I stop the hub. From the lua file I can't get any hints.
Can anyone plz help me ones more?
use
+cbh for help
+cbp for posting from main,
+cbl to list the logs,...
+cbr <log> to read the log,...
I am missing on or two.. +cbh will tell you the rest...
Oh, thanx!
Only read +cb for command, didn't see cbcmd+cmd...
I simplyfied the script to fit my user. ;-) It runs with LUA5.1, except the help cmd. I get an error 'attempt to call a table value'. Here is the function. I could do it in plain text, but what's the problem for LUA5.1?
First time doing things in LUA, so please excuse my newbie questions.
-BP-
--- Help text ..
function CBHelp(user, how)
local msg, tC = "\r\n\t These commands are available for the "..Bot.."\r\n"..string.rep("- ", 50).."\r\n",
{ ["r"] = "read the ClipBoard log",
["p"] = "post in ClipBoard",
["n"] = "ClipBoard messages in pm/main/off",
["h"] = "this text",}
for cmd, explain in tC do
msg = msg.."\t\t+"..cbcmd..cmd.."\t"..explain.."\r\n"
end
SendBack(msg, user, how)
end
Change this :
for cmd, explain in tC do
to this:
for cmd, explain in pairs(tC) do
Hi,
thanks a lot!
Now it's so small it runs on LUA 5 and 5.1 maybe on my TI-89 too... ;-)
For further discussion I put it in the finished scripts section (http://forum.ptokax.org/index.php?topic=6567.0)
-BP-
Your welcome.!