Chatrooms - Page 4
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Chatrooms

Started by jiten, 25 March, 2006, 18:24:22

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jedijones666

Forgive me peeps, I have been pointed to this script and I think it will serve me well as I require a chat room where I can allow specific users rather than by profile type.

I am finding it difficult to set up though.

Please can someone explain where the members (people I want to allow to chat in a specific room) are added into the script (appologies if this is an obvious one)

Any help would be greatly welcome

Kindest regards

Herodes

Quote from: jedijones666 on 05 November, 2006, 13:41:18
Please can someone explain where the members (people I want to allow to chat in a specific room) are added into the script (appologies if this is an obvious one)
do the following...
type !mkchat <ChatRoomName> ( example: !mkchat testroom )
type '!lock <ChatRoomName>' ( example: !lock testroom ) or pm testroom from the userlist with '!lock'
type '!invite <somenick>' ( example: '!invite Herodes' this will invite me (if I am connected to your hub..) )
repeat last command with any nikcs you require...
you are done...

Although I have never used the script I believe that this is the way it works...

jedijones666

Thanks for the feedback Herodes :)

Ok, I am now able to create a room, then lock it off.

The problem I seem to have now is that others are able to view chat in that room.

Here is  feedback from someone who has not been invited:

[14:53:04] <[-J?-]-??r?????> [14:41:37] <???$-m?mb??-?h??> *** Hello
- [14:41:37] <[-J?-]-??r??e??> Pigging out'......   PM later or leave a message   
- [14:41:38] <???$-m?mb??-?h??> *** Error: You're not a member here.


I also sent a message and asked him to pm me; he seen that message in the chat to and sent me a regular pm to inform me.

Question is; how do I set it so it is totaly private (only those in the member list can see it, and ofcourse chat there)?
Again, help would be most appreciated :)

Kindest regards

speedX

#78
-- Default Locked Mode (on/off) - If on, only members/groups selected by owner are allowed.
	bLocked = "off",


Change the default lock mode to "on" and run the script again (deleting the old database)

Post ur progress after this change ;)
Thanking You,

speedX

jedijones666

Got it working fine now speedx, many thanks for the help.

Is it possible to set up more than one room?

Initially it gave the option in right click to "create" a room, which I have done.  However, now its in place. the option to create another is no longer available. 

Would it be a case of manually adding to the chatroom TBL file?   

This is was I have set up at the moment...

return {
   ["Th??d??-Z???-?h??"] = {
      ["owner"] = "[-J?-]-!J??J???666!?",
      ["members"] = {
         ["[-J?-]-']['h??d?r????"] = 1,
         ["[-J?-]-!J??J???666!?"] = 1,
         ["[-J?-]-?R??T?L?"] = 1,
         ["[-J?-]-??v?l??tch?"] = 1,
         ["[-J?-]-??r?????"] = 1,
      },
      ["name"] = "Th??d??-Z???-?h??",
      ["groups"] = {
      },
      ["locked"] = "on",
      ["autologin"] = "off",
      ["key"] = "$OpList Th??d??-Z???-?h??$$",
      ["hide"] = {
      },
   },
}

If this is where I am to add another room, please could some person in the know give me an example of how the TBL file should look, please.

Regards, and in anticipation

speedX

#80
Quote from: jedijones666 on 06 November, 2006, 01:05:28
Is it possible to set up more than one room?

Ofcourse it is possible. You can add as many chatroom's as u want.
Use this command: !mkchat <chatroomname>  (eg: !mkchat gamers)

Quote from: jedijones666 on 06 November, 2006, 01:05:28
Would it be a case of manually adding to the chatroom TBL file?

No, you should never edit a .TBL file manually.

Quote from: jedijones666 on 06 November, 2006, 01:05:28
Initially it gave the option in right click to "create" a room, which I have done.  However, now its in place. the option to create another is no longer available.

hm..thru wich profile you were trying to create the chatroom?
Thanking You,

speedX

jedijones666

Thanks for all your help speedx :)

Some general scripting problems with my all-in-one has been causing some headaches here, so testing has been made difficult.

But, with the help I have received on this forum I have successfully created two chat rooms :))

Now to share another issue:

I have invited members for each of the two rooms.  Some members are allowed to chat in both.

The right click on the hub tab refers to one of these rooms.

Is it possible to have additional names of  rooms in the right click menu where a member belongs to both rooms?

Kindest regards
Posted on: 06 November 2006, 11:33:32
I have just discovered, through a test client, that the right click menu on the hub tab is in place but none of the options are working (those options in the user list right click are fine)

I  have a problem with it running with the grimoire  all-in-one script, in that when the test client uses chat room commands from the right click it sends a script error to main:

11:41:08] C:\ptokax\scripts\Rincewind's Grimoire.lua:357: bad argument #1 to 'lower' (string expected, got nil)


Im guessing I may have to talk with rincewind on this but any help would be appreciated if poss.

speedX

eh..If I am not wrong thn u want the names of the chatrooms to come on the right click??

Thanking You,

speedX

jedijones666

Quote from: speedX on 06 November, 2006, 15:30:57
eh..If I am not wrong thn u want the names of the chatrooms to come on the right click??


Yes please, on the hub tab,   then flyout the commands pertaining to each room

My problem with hubtab right click has not gone away though.   Although, it may not be too serious as it seems only a problem if I select the "show room members" option (script error as posted before).

Regards

Prathmesh

I use Chatrooms v 4.14 - LUA 5.0/5.1 by Jiten I wanted some modifications in script as my subject says I wanna remove OPkey from charooms name.

Thank you  :)

speedX

Please post in the original thread instead of making new threads, please

And the solution to your request is:
-- Default Chatroom Key  (on/off)
	bKey = "on",


Change it to "off" and run the script again.
Thanking You,

speedX

Herodes

Quote from: speedX on 06 November, 2006, 17:07:08
Please post in the original thread instead of making new threads, please
topics merged, thx for noticing...

enigma


   Online:
   ====================
   ? xxx1
   ? xxx2
   ? xxx3
   Offline:
   ====================
   ? zzz1
   ? zzz2
   ? zzz3
   ? zzz4
   ? zzz5
   ? zzz6

   Away:
   ====================

   3/9 active members.

please help me some1, i want the above to be displayed as

Online : xxx1, xxx2, xxx3
Offline : zzz1, zzz2, zzz3, zzz4, zzz5, zzz6,

Prathmesh

Is it possible that users who get in chatrooms can post and view messages in chatroom and each chatroom has its own database.
like
<!!FullHouse> Prathmesh has joined the room.
<Prathmesh> +read
[<!!FullHouse> 10 Nov   Will      I m downloading season 3
                    15 Nov  Sam     Whoz get 5th episode of season 4

Herodes

Quote from: Prathmesh on 07 November, 2006, 16:04:53
Is it possible that users who get in chatrooms can post and view messages in chatroom and each chatroom has its own database.
like
<!!FullHouse> Prathmesh has joined the room.
<Prathmesh> +read
[<!!FullHouse> 10 Nov   Will      I m downloading season 3
                    15 Nov  Sam     Whoz get 5th episode of season 4
Let me guess the next wish :)
- Individual TriggerBot for each chatroom. How does that sound ? :)

jiten

Quote from: Prathmesh on 06 November, 2006, 16:49:19
I use Chatrooms v 4.14 - LUA 5.0/5.1 by Jiten I wanted some modifications in script as my subject says I wanna remove OPkey from charooms name.

Thank you  :)

You can follow speedX's hint. Though, this change will only be applied to the rooms created from that moment on.

Thus, for those that already exist you must disable the key.
You can do it through the right-click commands [user commands] or by typing in PM to each room: !key off

Quote from: enigma on 07 November, 2006, 07:10:17
please help me some1, i want the above to be displayed as

Online : xxx1, xxx2, xxx3
Offline : zzz1, zzz2, zzz3, zzz4, zzz5, zzz6,

Search for [Commands.Members]'s table under tCommands' and replace it with this one:

[Commands.Members] = { 
	fFunction = function(user, data, tmp, to)
		local sType = ""
		if tmp.autologin == "on" then
			if next(tmp.groups)  then
				sType = sType.."This room is reserved for specific profile(s). Use !"..Commands.Status..
				" for more details."
			else
				sType = sType.."This room is public."
			end
		else
			sType = sType.."This room is private."
		end
		local sRep = ":\r\n\t"..string.rep("=",20).."\r\n\t"
		local n, na, offline, away, on = 0, 0, "Offline"..sRep, "Away"..sRep, "Online"..sRep
		for nick, stat in pairs(tmp.members) do
			if not GetItemByName(nick) then
				offline = offline..nick..", "
			elseif stat == 0 then
				away = away..nick..", "
			else
				na = na + 1
				on = on..nick..", "
			end; 
			n = n + 1
		end; 
		user:SendPM(to,"\r\n\r\n\t"..on.."\r\n\r\n\t"..offline.."\r\n\r\n\t"..away..
		"\r\n\r\n\t"..na.."/"..n.." active members.\r\n\tNote: "..sType)
	end,
	tLevels = { [-1] = 1, [0] = 1, [1] = 1, [2] = 1, [3] = 1, [4] = 1, [5] = 1, [6] = 1, },
	tRC = { "Show room members", "" }
},


Last but not the least, thank you speedX for your support in this thread while I was away [and will probably be :P].

enigma

After editing, whn i do  +list in a room, nothing is displayed.
The script i use is already attached in my previous reply. Can u PLEASE have a look at it and edit the commands.members function for me ?
I have made some changes in the commands.

Prathmesh

Thats is solved though I need to del all the chatrooms and recreate them again.
Thanks all.

This chatroom script is Good but now my goal is to seek help and devlop chatroom with individual message board for each chatroom(unfortunately I know very less of lua  :(). Usually users with the same aim are not online at a time hence to orignal purpose of chatrooms is not achived. If there will be individual message board for chat rooms pepple can join chatrooms and read the stuff they want and leave message for others...





jiten

Quote from: enigma on 07 November, 2006, 20:33:27
After editing, whn i do  +list in a room, nothing is displayed.
The script i use is already attached in my previous reply. Can u PLEASE have a look at it and edit the commands.members function for me ?

Please have a look at the attached script.

Quote from: Prathmesh on 07 November, 2006, 21:11:12
This chatroom script is Good but now my goal is to seek help and devlop chatroom with individual message board for each chatroom(unfortunately I know very less of lua  :(). Usually users with the same aim are not online at a time hence to orignal purpose of chatrooms is not achived. If there will be individual message board for chat rooms pepple can join chatrooms and read the stuff they want and leave message for others...

I think it's easier to use a message board [guess that you already have one] and create threads related to each room where every user may leave messages.

I'm not saying that this can't be done but, in my point of view, it wouldn't fit much in the Chatrooms' skeleton. However, I'll think about your request.

enigma

Jiten u rock , Thanks a Lot. The script is working fine  :)

jiten

I'm glad it's working fine. You're welcome...

Jorgo

Hello, I've one little problem. Everything works as expected, except for when I want to create a chatroom via the right-click menu. In that case the !mkchat command is sent as pm to the user I right-clicked instead of main chat.

Can someone confirm this?

Dessamator

The script has been updated & that error is fixed.
Ignorance is Bliss.

Jorgo


DoktorPZ

Hi all. I have some problem with last version of this script. I use PtokaX DC Hub 0.3.5.2 and when i load script - nothing happend. No right click menu, !mkchat command dont work.
Scipt start without any error:

[02:12] Script stopped.
[02:12] No syntax errors in script file chatrooms.v4.15.lua
[02:12] Script started.

But it don`t work for me. How i can fix that?

SMF spam blocked by CleanTalk