PtokaX forum

Archive => Archived 5.1 boards => Finished Scripts => Topic started by: jiten on 25 March, 2006, 18:24:22

Title: Chatrooms
Post by: jiten on 25 March, 2006, 18:24:22
--[[

Chatrooms v 4.15 - LUA 5.0/5.1

By: jiten and Dessamator

Based on: Chatrooms v3 by tezlo

Recent Changelog:

- Changed: DC away messages aren't sent anymore to rooms - reported by CrazyGuy;
- Changed: Show members when autologin is enabled - requested by CrazyGuy;
- Changed: tAllowed value structure - requested by CrazyGuy;
- Fixed: RightClick commands - reported by osse; (5/23/2006)
- Fixed: ToArrival locked permissions - reported by CrazyGuy; (5/24/2006)
- Changed: MyINFO is sent on Op/UserConnected - reported by CrazyGuy;
- Changed: string.lower comparison between connecting user and existing rooms (5/28/2006)
- Changed: New save function;
- Fixed: !members command when autologin is disabled - reported by CrazyGuy;
- Added: Toggle reset away status on connect - requested by shamu (9/15/2006)
- Fixed: !leave only removes rooms from userlist when hide mode is enabled;
- Changed: Rightclick commands don't need rooms to be typed - just click on them in the userlist;
- Added: !help and custom message on connect - requested by speedX;
- Added: Leaviathan profiles support (9/30/2006)
- Fixed: !mkchat sent as PM when using User Commands - reported by Jorgo (12/2/2006)

]]--
Title: Re: Chatrooms
Post by: osse on 09 April, 2006, 09:26:13
Hi!

First Thnx 4 ur script great.

My question :

Can a person who is away be able to see all chat agian automaticly when he reconnect ?? without to go in to the chat and return ??

Thnn 4 ur help

Os ;D
Title: Re: Chatrooms
Post by: jiten on 09 April, 2006, 10:47:51
Quote from: osse on 09 April, 2006, 09:26:13
Hi!

First Thnx 4 ur script great.

My question :

Can a person who is away be able to see all chat agian automaticly when he reconnect ?? without to go in to the chat and return ??

Thnn 4 ur help

Os ;D

Unfortunately, that's not possible.

Once your status is set to away, you need to type something in PM to the chatroom to be able to see/write messages.
Title: Re: Chatrooms
Post by: osse on 09 April, 2006, 11:14:25
:((

More questions  if you will answer..

Why when you !leave the Chat . can still se the chat on main ??

[12:11:27] Private message from ?-Chat-Reg: <[SPA]Diablo> This one
[12:11:33] Private message from ?-Chat-Reg: <?-ClaDDe> ?

Thnx   ....:):):)
Title: Re: Chatrooms
Post by: jiten on 09 April, 2006, 11:30:33
Quote from: osse on 09 April, 2006, 11:14:25
Why when you !leave the Chat . can still se the chat on main ??

[12:11:27] Private message from ?-Chat-Reg: <[SPA]Diablo> This one
[12:11:33] Private message from ?-Chat-Reg: <?-ClaDDe> ?

That's strange. Works fine here with me.

Can you post your chatrooms' table content to see what's wrong?
Title: Re: Chatrooms
Post by: osse on 09 April, 2006, 14:16:44
return {
   ["Reg"] = {
      name = "Reg",
      owner = "?Boss",
      status = "auto",
      hide = "off",
      groups = {
      },
      members = {
         ["?Boss"] = 1,
      },
      away = {
      }
   },
}
Title: Re: Chatrooms
Post by: jiten on 09 April, 2006, 15:04:52
Uhm, that's why!

You're using an older version of chatrooms (with lots of bugs).

Please update to the one posted in this thread and that error should be gone.

Just as an example, this is how the table looks like in the latest version:

return {
["Reg"] = {
name = "Reg",
owner = "jiten",
autologin = "off",
locked = "off",
key = "$OpList Reg$$",
groups = {
},
members = {
["jiten"] = 1,
},
hide = {
}
},
}
Title: Re: Chatrooms
Post by: osse on 09 April, 2006, 15:43:39
where i can't fine it the new version  :(:(:(:(
Posted on: 09 April 2006, 16:43:00
I use


Chatrooms v 4.1 - LUA 5.0.2 / 5.1
Title: Re: Chatrooms
Post by: Dessamator on 09 April, 2006, 15:57:53
Maybe u should delete the tables and restart the script.
Title: Re: Chatrooms
Post by: osse on 09 April, 2006, 16:13:39
I did and no change..
I still get the message in Main..

:(:(:(

Title: Re: Chatrooms
Post by: jiten on 09 April, 2006, 16:30:24
Quote from: osse on 09 April, 2006, 16:13:39
I did and no change..
I still get the message in Main..

As previously stated, you're using an older version of this script.
We can see that by the clearly different table structure.

So, replace it with the new one. You can find the respective link in the first post of this thread.
Or else, use the one posted in the Resources' Site: http://ptxscriptdb.psycho-chihuahua.net/download.php?view.211

And, just like Dess pointed, please make sure that you've deleted the old .tbl file.
Title: Re: Chatrooms
Post by: osse on 09 April, 2006, 17:29:40
Thnx again. I think the error was autologin On


every user must join it self..
and then the leave command its working not with the autologin On
Title: Re: Chatrooms
Post by: jiten on 09 April, 2006, 19:02:44
Quote from: osse on 09 April, 2006, 17:29:40
Thnx again. I think the error was autologin On


every user must join it self..
and then the leave command its working not with the autologin On

I'm glad you sorted it out.

By the way, as the word (autologin) implies, users can't leave the chatroom. They are "stuck" there if the mode is enabled :P
Title: Re: Chatrooms
Post by: osse on 10 April, 2006, 09:19:45
Thnx u so much!!

I disable command !leave so reg users can only use command !away.  :D:D:D

An other question. As usual I got the mess on Main now---> MyInfo spam detect from some users do you now why ??

;D
Title: Re: Chatrooms
Post by: Thor on 10 April, 2006, 09:38:27
This support by your client. I use ZionDC++ 2.02 and i also get this message. In the settings you can give to this bigger time interval, i setted up 15 MyINFO @ 3000 milliseconds. But, you can set it to kick also :D
Title: Re: Chatrooms
Post by: jiten on 10 April, 2006, 12:03:31
Quote from: osse on 10 April, 2006, 09:19:45
An other question. As usual I got the mess on Main now---> MyInfo spam detect from some users do you now why ??

It shouldn't be a problem related to chatrooms.
MyINFO functions have been rewritten to avoid this type of spam/flood that used to happen frequently in older versions.

Maybe if you try Hungarista's hints...
Title: Re: Chatrooms
Post by: osse on 10 April, 2006, 13:46:34
Quote from: Hungarista on 10 April, 2006, 09:38:27
This support by your client. I use ZionDC++ 2.02 and i also get this message. In the settings you can give to this bigger time interval, i setted up 15 MyINFO @ 3000 milliseconds. But, you can set it to kick also :D

Who its gonna do that me or him ??

thnx 4 ur answer
Posted on: 10 April 2006, 14:38:53
Quote from: jiten on 10 April, 2006, 12:03:31
Quote from: osse on 10 April, 2006, 09:19:45
An other question. As usual I got the mess on Main now---> MyInfo spam detect from some users do you now why ??

It shouldn't be a problem related to chatrooms.
MyINFO functions have been rewritten to avoid this type of spam/flood that used to happen frequently in older versions.

Maybe if you try Hungarista's hints...
Its happen with ur script fot Chatroom. Must i activate something in Ptokax ?? When i take away the scripts then nothing happens.. Not all the user only a few users had the MyInfo Spam detect..


??? ;D
Title: Re: Chatrooms
Post by: jiten on 10 April, 2006, 15:28:20
Quote from: osse on 10 April, 2006, 13:46:34
Its happen with ur script fot Chatroom. Must i activate something in Ptokax ?? When i take away the scripts then nothing happens.. Not all the user only a few users had the MyInfo Spam detect..

That's very strange, because MyINFO is only sent:
- On script start/restart: For every member;
- For connecting user on MyINFOArrival.

As previously stated, it must be a problem with certain clients (buggy?) used by your users that generate this type of spam.
Title: Re: Chatrooms
Post by: osse on 10 April, 2006, 15:35:35
Quote from: jiten on 10 April, 2006, 15:28:20
Quote from: osse on 10 April, 2006, 13:46:34
Its happen with ur script fot Chatroom. Must i activate something in Ptokax ?? When i take away the scripts then nothing happens.. Not all the user only a few users had the MyInfo Spam detect..

That's very strange, because MyINFO is only sent:
- On script start/restart: For every member;
- For connecting user on MyINFOArrival.

As previously stated, it must be a problem with certain clients (buggy?) used by your users that generate this type of spam.

OK thnx u very much 4 ur help. More pers who helping people who don't know anything.. U r Great.   :D:D:D:D
Title: Re: Chatrooms
Post by: jiten on 10 April, 2006, 19:29:56
It's always a pleasure to help, mate.

Regards
Title: Re: Chatrooms
Post by: osse on 18 April, 2006, 14:04:06
Quote from: jiten on 10 April, 2006, 19:29:56
It's always a pleasure to help, mate.

Regards

1 question the commands are !leave, !away,!mkchat.

If i wanna commands witch use even +leave, +away, +mkchat too how I have to do or where i chage it ??

Thnx 4ur answer

;):=)
Title: Re: Chatrooms
Post by: jiten on 18 April, 2006, 15:17:57
Quote from: osse on 18 April, 2006, 14:04:06
If i wanna commands witch use even +leave, +away, +mkchat too how I have to do or where i chage it ??

In your ChatArrival function, replace:

local s,e,cmd = string.find(data,"%b<>%s+%!(%S+)")

with:

local s,e,cmd = string.find(data,"%b<>%s+[%!%+](%S+)")

And, in your ToArrival function, replace:

local s,e,cmd,args = string.find(str, "^%!(%a+)%s*(.*)$")

with:

local s,e,cmd,args = string.find(str, "^[%!%+](%a+)%s*(.*)$")
Title: Re: Chatrooms
Post by: osse on 21 April, 2006, 14:00:44
Quote from: jiten on 18 April, 2006, 15:17:57
Quote from: osse on 18 April, 2006, 14:04:06
If i wanna commands witch use even +leave, +away, +mkchat too how I have to do or where i chage it ??

In your ChatArrival function, replace:

local s,e,cmd = string.find(data,"%b<>%s+%!(%S+)")

with:

local s,e,cmd = string.find(data,"%b<>%s+[%!%+](%S+)")

And, in your ToArrival function, replace:

local s,e,cmd,args = string.find(str, "^%!(%a+)%s*(.*)$")

with:

local s,e,cmd,args = string.find(str, "^[%!%+](%a+)%s*(.*)$")

As usual U r great THANK U again  //Osse
Title: Re: Chatrooms
Post by: enigma on 25 April, 2006, 22:27:14
download link not working
Title: Re: Chatrooms
Post by: jiten on 26 April, 2006, 08:09:42
Quote from: enigma on 25 April, 2006, 22:27:14
download link not working

Works fine with me, but here (http://ptxscriptdb.psycho-chihuahua.net/download.php?view.211) is an alternate link.
Title: Re: Chatrooms
Post by: XPMAN on 20 May, 2006, 20:45:40
I love this script, just what i was looking for. But, everything works fine except the right click. Sometimes it shows and sometimes it doesnt. I tried running just that script alone to eliminate conflicts ect.. but still... one time i log in, its their, next time its not. And for the other Masters ect.. it doesnt show at all :( I am using PtokaX 0.3.4.0. This is really weird..lol.. all the commands work perfect if typed in, its the right click that doesnt seem to work right for me... any ideas as to what might be causing this problem?
Thnx in advance for any help :)
Title: Re: Chatrooms
Post by: jiten on 20 May, 2006, 21:24:42
Quote from: XPMAN on 20 May, 2006, 20:45:40
I love this script, just what i was looking for. But, everything works fine except the right click. Sometimes it shows and sometimes it doesnt. I tried running just that script alone to eliminate conflicts ect.. but still... one time i log in, its their, next time its not. And for the other Masters ect.. it doesnt show at all :( I am using PtokaX 0.3.4.0. This is really weird..lol.. all the commands work perfect if typed in, its the right click that doesnt seem to work right for me... any ideas as to what might be causing this problem?
Thnx in advance for any help :)

Everything seems ok here. Can you give me more details?

Rightclick is only sent to those users that belong to an allowed group or are members. However, their profile must have permission to receive the command.

Title: Re: Chatrooms
Post by: XPMAN on 20 May, 2006, 22:54:31
I am in the "Master" profile on the hub. In my other hub i have different profiles i created, i am using this script in a test hub right now. Only 3 "Masters" which was setup in the PtokaX hub software. Others cant see the right click, only me.. and sometimes not even me unless i reconnect then it appears. I had one of the other "Masters" login with my info and it showed up, then when they reconnected, it was gone...lol.. i am trying to figure out what could cause this as like i said in my above post, it works perfect as far as typing in, its just the right click.. its like it just appears when it wants too..lol. I am looking now in the PtokaX settings although i dont believe any of the settings has anything to do with it, but just trying to cover all the bases ;) One other thing, i can enter the commands in the dc++ client manually and they still work, it would be nice though for all the masters to not have to do it like that. Other then that, no more details to give really. Just running that script alone and its still doing it. Stopped the PtokaX restarted, shut it down, then ran it... and the right click still seems to work the same. Its almost as if something is periodically blocking the right click, but cant understand what it could be.... still trying to figure it out... maybe with the experts help here, my odd problem may be solved soon :)
Title: Re: Chatrooms
Post by: jiten on 21 May, 2006, 11:38:15
When you create a chatroom, you're automatically added to its members' list.

The other Masters will only receive the commands if:

- They become members (by typing something in PM to it); or
- Their profile exists in the group table.

As you can see, there's no need to send the commands to those users that don't even "belong" to the room.

However, and as previously stated, they must have permission to use them and their client must support UserCommands.

If this doesn't help, it could also be a client-related problem.
Title: Re: Chatrooms
Post by: XPMAN on 21 May, 2006, 16:57:39
duh.. ok,makes sense to me now :) Once the masters joined the chatroom... righclick worked.. :)

I love this script :) thnx again for your help.
Title: Re: Chatrooms
Post by: jiten on 21 May, 2006, 18:36:43
You're quite welcome, XPMAN :)
Title: Re: Chatrooms
Post by: osse on 23 May, 2006, 10:05:28
A problem Here again

Rightclicks a I can't see anymore the Rightclicks to make or invite member / user why ?
I try to delete the tChatrooms.tbl I can see with my old Nick but when I make another Nick with the same rights .. I can see the Alt Chatrooms CutomeRightclicks. Why ??

:(:(:( ??? ??? :'(
Title: Re: Chatrooms
Post by: jiten on 23 May, 2006, 11:42:28
Quote from: osse on 23 May, 2006, 10:05:28
A problem Here again

Rightclicks a I can't see anymore the Rightclicks to make or invite member / user why ?
I try to delete the tChatrooms.tbl I can see with my old Nick but when I make another Nick with the same rights .. I can see the Alt Chatrooms CutomeRightclicks. Why ??

:(:(:( ??? ??? :'(


I didn't really understand your post. Can you explain it again?

Your nick may have permission to use the commands, but, you need to be member of at least a chatroom to receive the related commands.

By the way, did you reconnect? If this doesn't help, you can also attach your code here, so that I can trace the problem.
Title: Re: Chatrooms
Post by: CrazyGuy on 23 May, 2006, 16:20:32
Hey Jiten,

As you know i tried out ur script.
Used the following settings


tSettings = {
   sTag = "",         
   fChat = "tChatrooms.tbl",   
   bAutoLogin = "on",      
   bKey = "off",         
   bLocked = "off",      
   tAllowed = {
      -- Profiles allowed to join every chatroom
      
Title: Re: Chatrooms
Post by: osse on 23 May, 2006, 17:23:12
Quote from: jiten on 23 May, 2006, 11:42:28
Quote from: osse on 23 May, 2006, 10:05:28
A problem Here again

Rightclicks a I can't see anymore the Rightclicks to make or invite member / user why ?
I try to delete the tChatrooms.tbl I can see with my old Nick but when I make another Nick with the same rights .. I can see the Alt Chatrooms CutomeRightclicks. Why ??

:(:(:( ??? ??? :'(


I didn't really understand your post. Can you explain it again?

Your nick may have permission to use the commands, but, you need to be member of at least a chatroom to receive the related commands.

By the way, did you reconnect? If this doesn't help, you can also attach your code here, so that I can trace the problem.

Ye I can't see my commands. Or I can't make a Chat nothing. My new Nick is as a Founder and the  Nick before was as a  founder too.
When I go in to my HUB with my Nick I can't see my commands when I right CLick wuth my mouse. To make, Invite, HIde, Lock..... Chatroom   ..much more..
When I go in to my HUB with the older Nick  I can see all my commands to make , Invite a Chatroom.

Os

Title: Re: Chatrooms
Post by: jiten on 23 May, 2006, 19:51:36
Quote from: CrazyGuy on 23 May, 2006, 16:20:32
[16:38:27] *** PM Spam detected!! User is ignored until you "Clean user": Developers-Chat (IP:? )
[16:38:27] *** PM Spam detected! User: Developers-Chat

As we both discussed, this is probably caused by the away messages sent to the bot.

This will be fixed in the next version :)

Quote from: osse on 23 May, 2006, 17:23:12
Ye I can't see my commands. Or I can't make a Chat nothing. My new Nick is as a Founder and the Nick before was as a founder too.
When I go in to my HUB with my Nick I can't see my commands when I right CLick wuth my mouse. To make, Invite, HIde, Lock..... Chatroom ..much more..
When I go in to my HUB with the older Nick I can see all my commands to make , Invite a Chatroom.

True. When you don't belong to any chatroom group or aren't a member, the User Commands aren't sent.
This will be also fixed in the next release.

Thank you both for your reports.
Title: Re: Chatrooms
Post by: osse on 24 May, 2006, 09:51:28
Quote from: jiten on 23 May, 2006, 19:51:36
Quote from: CrazyGuy on 23 May, 2006, 16:20:32
[16:38:27] *** PM Spam detected!! User is ignored until you "Clean user": Developers-Chat (IP:? )
[16:38:27] *** PM Spam detected! User: Developers-Chat

As we both discussed, this is probably caused by the away messages sent to the bot.

This will be fixed in the next version :)

Quote from: osse on 23 May, 2006, 17:23:12
Ye I can't see my commands. Or I can't make a Chat nothing. My new Nick is as a Founder and the Nick before was as a founder too.
When I go in to my HUB with my Nick I can't see my commands when I right CLick wuth my mouse. To make, Invite, HIde, Lock..... Chatroom ..much more..
When I go in to my HUB with the older Nick I can see all my commands to make , Invite a Chatroom.

True. When you don't belong to any chatroom group or aren't a member, the User Commands aren't sent.
This will be also fixed in the next release.

Thank you both for your reports.


Thank you for ur answer. When is out the new version ?.....:D:D:):):)
Title: Re: Chatrooms
Post by: jiten on 24 May, 2006, 12:00:41
Quote from: osse on 24 May, 2006, 09:51:28
Thank you for ur answer. When is out the new version ?.....:D:D:):):)

I'm not sure, but probably today or tomorrow :P
Title: Re: Chatrooms
Post by: jiten on 25 May, 2006, 15:37:31
First post has been updated with some changes and fixes to the Chatrooms bot.

Note that your current Chatrooms' database (.tbl) must be deleted before using this version.
Title: Re: Chatrooms
Post by: osse on 25 May, 2006, 15:50:05
Quote from: jiten on 25 May, 2006, 15:37:31
First post has been updated with some changes and fixes to the Chatrooms bot.

Note that your current Chatrooms' database (.tbl) must be deleted before using this version.

Where I can't find it or I can't see it.
   - Changed: Updated to LUA 5.1 (3/25/2006) ........I have this one
:(:(
Title: Re: Chatrooms
Post by: jiten on 25 May, 2006, 16:35:07
Quote from: osse on 25 May, 2006, 15:50:05
Where I can't find it or I can't see it.

I meant the file tChatrooms.tbl that can be found under your \scripts folder.
Title: Re: Chatrooms
Post by: osse on 25 May, 2006, 17:14:50
Quote from: jiten on 25 May, 2006, 16:35:07
Quote from: osse on 25 May, 2006, 15:50:05
Where I can't find it or I can't see it.

I meant the file tChatrooms.tbl that can be found under your \scripts folder.

I mean teh new version where is it ?? where I can download it ??
Title: Re: Chatrooms
Post by: 6Marilyn6Manson6 on 25 May, 2006, 17:59:22
Quote from: osse on 25 May, 2006, 17:14:50
Quote from: jiten on 25 May, 2006, 16:35:07
Quote from: osse on 25 May, 2006, 15:50:05
Where I can't find it or I can't see it.

I meant the file tChatrooms.tbl that can be found under your \scripts folder.

I mean teh new version where is it ?? where I can download it ??

At first page in first post of this topic
Title: Re: Chatrooms
Post by: CrazyGuy on 28 May, 2006, 13:59:03
found another bug... might be a lil harder to fix  :-\

Out of the 190 people connecting to my hub, there's 1 that can't login when Chatrooms v4.11 is running.
Disabling the script solved it.
Enabling script while user is in does not disconnect user, but when user tries to reconnect the hub "stalls" on "Stored password send..."

Here's the data from PtokaX on that particular user connecting with the script running :


[14:13] <unknown> (xxx.xxx.xx.x) > $Supports UserCommand NoGetINFO NoHello UserIP2 TTHSearch QuickList BotList ClientID SecuredExecutor ZLine GetZBlock |
[14:13] <unknown> (xxx.xxx.xx.x) > $Key ?????A ????0CB?bsBSasE'???G7?????A'????|
[14:13] <unknown> (xxx.xxx.xx.x) > $MyINFO $ALL <nickname> <description><Z++ V:2.02,M:A,H:x/x/xx,S:1>$ $DSL$$0$|
[14:13] <nickname> (xxx.xxx.xx.x) > $GetNickList|
[14:13] <nickname> (xxx.xxx.xx.x) > $UserIP Developers-Chat|
[14:13] x User removed: <nickname> (Socket 1448)


As you can see the user get's disconnected after sending $UserIP to the first Chatroom, I have 3 rooms.
Hub version : PtokaX DC Hub 0.3.3.0 build 17.03    <== does not disconnect for $UserIP


The client this user is using is Zion Blue ++ v2.02

I'll follow up on this post doing some testing myself with that client and clients alike

Title: Re: Chatrooms
Post by: jiten on 28 May, 2006, 15:20:01
Quote from: CrazyGuy on 28 May, 2006, 13:59:03
As you can see the user get's disconnected after sending $UserIP to the first Chatroom, I have 3 rooms.
Hub version : PtokaX DC Hub 0.3.3.0 build 17.03? ? <== does not disconnect for $UserIP

Seems like he/she didn't disable/untick "Send $UserIP for all users" in the Favorite Hubs' tab.
Title: Re: Chatrooms
Post by: CrazyGuy on 28 May, 2006, 18:04:49
QuoteSeems like he/she didn't disable/untick "Send $UserIP for all users" in the Favorite Hubs' tab.

About 20 people in my hub send $UserIP

again ... hub does NOT disconnect for $UserIP
Title: Re: Chatrooms
Post by: CrazyGuy on 28 May, 2006, 19:37:45
Well, here's some test results that will make things more clear .... or not? 8)

Tested the following clients :


Tested on profiles, OP, Mod and Vip.

As far as test results show, the only client having problems is Zion++ Blue 2.02 with sending $UserIP
Apparently, it has to do with sending $UserIP, but it seems to be for that client only

Since the user having this problems had no access to the chatroom anyways, suggested change of when to send room info to a user.

Jiten will follow up on that? ;D
Title: Re: Chatrooms
Post by: jiten on 28 May, 2006, 19:58:26
CrazyGuy, that's quite an extensive report :P Thank you!

As we both discussed, it could be a problem related MyINFO and in fact, it was.
Now, it's only (and must be) sent on Op/NewUserConnected and it fixes this issue.

First post has been updated once more with version 4.12.

Please note that there's NO need to delete your existing chatroom database.

Best regards
Title: Re: Chatrooms
Post by: ((KMN))Gazza-95 on 25 June, 2006, 20:35:23
jiten where can i  get chat rooms 4.12 cuz i got this runnin 4.11 -------->>>>>> Syntax [string "..."]:2: `=' expected near `v'
Title: Re: Chatrooms
Post by: Dessamator on 25 June, 2006, 20:58:02
Try the first page of this thread.
Title: Re: Chatrooms
Post by: jiten on 15 September, 2006, 16:25:32
First post has been updated with some changes in the code.
Title: Re: Chatrooms
Post by: JueLz on 15 September, 2006, 20:35:28
OKI
Title: Re: Chatrooms
Post by: speedX on 29 September, 2006, 19:33:56
hey jiten....hi....i would like an addition to this script....can u add +help command to the chatroom....so tht when a user creates or joins a chatroom.....he doesn kno all the commands....so he will type +help and u get the commands......like this..
Quote
+help                to get this help menu
+set1                to make chatroom public
+set2                to make chatroom private
+members          to check the status of the chatroom
and one more thing....when a user creates or type's anything for the first time in a chatroom....he shoud get this message...
Quote
Type +help for available commands

thank u....
Title: Re: Chatrooms
Post by: jiten on 30 September, 2006, 12:00:39
Quote from: speedX on 29 September, 2006, 19:33:56
can u add +help command to the chatroom...
when a user creates or type's anything for the first time in a chatroom....he shoud get this message...

Yes, this can be done.

Shouldn't take long to add that :P
Title: Re: Chatrooms
Post by: speedX on 30 September, 2006, 12:04:13
hm..thanks....so by when would u finish making it???
Title: Re: Chatrooms
Post by: jiten on 30 September, 2006, 12:13:07
Quote from: speedX on 30 September, 2006, 12:04:13
hm..thanks....so by when would u finish making it???

I'm not sure, but, probably this weekend.
Title: Re: Chatrooms
Post by: jiten on 30 September, 2006, 20:06:34
First post has been updated with a new update.
Title: Re: Chatrooms
Post by: speedX on 01 October, 2006, 16:06:37
hey thanx jiten.....gd work......i would like one more addition tht if a user types any command in tht chatroom....all shud be able to see tht command along wid da result.....means if a user type !members ...all shud be able to see not only tht command even da result i.e the online users and offline users....
Title: Re: Chatrooms
Post by: jiten on 02 October, 2006, 17:26:59
Quote from: speedX on 01 October, 2006, 16:06:37
if a user types any command in tht chatroom....all shud be able to see tht command along wid da result.....

In your ToArrival function, search for this:

return tCommands[cmd].fFunction(user,data,tmp,to,args), 1

and replace it with:

return tCommands[cmd].fFunction(user,data,tmp,to,args)

Quote from: speedX on 01 October, 2006, 16:06:37
all shud be able to see not only tht command even da result i.e the online users and offline users....

I don't recommend this option as the rooms would get messy.

However, if that's what you really need, under your tCommands table replace occurrences like:

user:SendPM(to, "message")

with:

tmp:chat("message", to)

Beware :P
Title: Re: Chatrooms
Post by: speedX on 02 October, 2006, 18:41:33
nope dude i didn find the second command......srrry but can u plzzz add it and post it here....
hey but i would like a few more additions if possible........can u make a separate help table in the script so tht i can edit tht and put in the commands to be displayed...
Title: Re: Chatrooms
Post by: jiten on 02 October, 2006, 20:48:40
Quote from: speedX on 02 October, 2006, 18:41:33
nope dude i didn find the second command......srrry but can u plzzz add it and post it here....

I'll show how you can do it by yourself.

Here's a small example: if you want everyone to see the output of the !members command, look for this under [Commands.Members]'s table:

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)


and replace it with:

tmp:chat("\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, to)


Quote from: speedX on 02 October, 2006, 18:41:33
hey but i would like a few more additions if possible........can u make a separate help table in the script so tht i can edit tht and put in the commands to be displayed...

You can customize the text shown with the help command in each command's tRC array.
However, I'm not sure if you have noticed that the commands are only shown if the user has permisson [which you can set].
Title: Re: Chatrooms
Post by: speedX on 03 October, 2006, 15:34:30
ya thts wat....if i give permission to lock or unlock thn any user can give and if i disable it thn only owner can.....but when he type !roomhelp tht commmand doesn come.....so how will he come to kno?? thts y i would like a separate help able if possible....
Title: Re: Chatrooms
Post by: jiten on 03 October, 2006, 20:54:42
Quote from: speedX on 03 October, 2006, 15:34:30
ya thts wat....if i give permission to lock or unlock thn any user can give and if i disable it thn only owner can.....but when he type !roomhelp tht commmand doesn come.....so how will he come to kno?? thts y i would like a separate help able if possible....

After having a look at the code, I noticed that I missed something in the help function. Replace it with this one:

fFunction = function(user, data, tmp, to)
-- Header
local sMsg = "\r\n\r\n\t\t\t"..string.rep("=", 75).."\r\n"..string.rep("\t", 6).."Chatrooms v."..
tSettings.iVersion.." by jiten; Based on tezlo's\t\t\t\r\n\t\t\t"..string.rep("-", 150)..
"\r\n\t\t\tAvailable Commands:\r\n\r\n"
-- Loop through table
for i, v in pairs(tCommands) do
-- If user has permission
if v.tLevels[user.iProfile] and v.tLevels[user.iProfile] == 1 then
-- Populate
sMsg = sMsg.."\t\t\t!"..i.."\t\t"..v.tRC[1].."\r\n"
end
end
-- Send
user:SendPM(to, sMsg.."\t\t\t"..string.rep("-", 150));
end,
Title: Re: Chatrooms
Post by: speedX on 03 October, 2006, 22:16:52
but wat is the use thn??  the commands to wich permission is givin only tht command come in help....but the owner of chatroom (even if reg user) has all tht commands.......so how will he come to those commands as they r not displayed.....
Title: Re: Chatrooms
Post by: jiten on 04 October, 2006, 10:43:05
There's no point in showing commands in the help menu to a user that doesn't have permission to use them.
As I've explained before the command will only appear if you allow it to.

Be more clear and specific, as I still don't understand what's the problem with your code.

This is a custom permission table example:

tLevels = { [-1] = 1, [1] = 1, [5] = 1, },

If you want REGs [3] to access that command, the final result will be like this:

tLevels = { [-1] = 1, [1] = 1, [3] = 1, [5] = 1, },

However, if you don't want Operators [1], it will look like this:

tLevels = { [-1] = 1, [3] = 1, [5] = 1, },
Title: Re: Chatrooms
Post by: speedX on 04 October, 2006, 13:13:01
i think u didn understand wat m i asking.....sorry for confusing u...i have no prob with the permission table......see i want to change the Help menu of the room owner only......eg: if the lock mode is on....thn only owner of the room can invite ppl and remove etc.......but these commmands dont come in the help table of the owner so how will he come to kno..(when he type's !roomhelp).....if i want to display thm in the help table then i have to give permission to reg users also......due to wich even if the chatroom is in lock mode......any user can unlock it (wich i would not like).....
Title: Re: Chatrooms
Post by: jiten on 04 October, 2006, 14:37:51
Quote from: speedX on 04 October, 2006, 13:13:01
thn only owner of the room can invite ppl and remove etc.......but these commmands dont come in the help table of the owner so how will he come to kno..(when he type's !roomhelp).....

What is the profile number of the owner? 6 [Leviathan's profile]?

Quoteif i want to display thm in the help table then i have to give permission to reg users also......due to wich even if the chatroom is in lock mode......any user can unlock it (wich i would not like).....

Why do you have to give permission to reg [3] users, if you only want the owner [6?] to access it?
It doesn't make sense.
Title: Re: Chatrooms
Post by: speedX on 04 October, 2006, 14:42:37
owner = owner of chatroom not the hub owner......
Title: Re: Chatrooms
Post by: jiten on 04 October, 2006, 18:39:26
Quote from: jiten on 04 October, 2006, 14:37:51
What is the profile number of the owner? 6 [Leviathan's profile]?

I didn't ask if he was the owner of the room, the hub or anything else, did I? :P

Anyway, what you're reporting isn't a script-related problem. I've had a look at the code a couple of times and everything is ok.

From my point of view, you haven't set up the script properly [according to your needs].
Title: Re: Chatrooms
Post by: speedX on 04 October, 2006, 18:54:30
no...the script is just fine....i would an addition.....a help table only for room owner wich i can edit.....only if possible.....or add !invite and !lock command to the help menu of room owner "ONLY".....i'l show u one example.....

Quote
help menu of room owner:

Available Commands:

         !away      Set yourself away
                                      !invite                  to invite a user
                                      !lock <on/off>        to make room private or public
         !mkchat      Create Room
         !members      Show room members
         !leave      Leave room
         !roomhelp   Help menu


and help menu of invited user:

Available Commands:

         !away      Set yourself away
         !mkchat      Create Room
         !members      Show room members
         !leave      Leave room
         !roomhelp   Help menu


hope i have not confused u this time..... ;)
Title: Re: Chatrooms
Post by: jiten on 05 October, 2006, 13:03:12
There's no need for an extra help table, as the default !roomhelp command already does that automatically.

However, it probably needs a tweak, so that room owners [such as when it's a REG user [3]] do see every command.

Open your script and replace your [Commands.Help]'s function with this one:

fFunction = function(user, data, tmp, to)
-- Header
local sMsg = "\r\n\r\n\t\t\t"..string.rep("=", 75).."\r\n"..string.rep("\t", 6).."Chatrooms v."..
tSettings.iVersion.." by jiten; Based on tezlo's\t\t\t\r\n\t\t\t"..string.rep("-", 150)..
"\r\n\t\t\tAvailable Commands:\r\n\r\n"
-- Loop through table
for i, v in pairs(tCommands) do
-- If user has permission
if v.tLevels[user.iProfile] or string.lower(tmp.owner) == string.lower(user.sName) then
-- Populate
sMsg = sMsg.."\t\t\t!"..i.."\t\t"..v.tRC[1].."\r\n"
end
end
-- Send
user:SendPM(to, sMsg.."\t\t\t"..string.rep("-", 150));
end,
Title: Re: Chatrooms
Post by: speedX on 05 October, 2006, 15:43:08
perfect.....atlast u understood my post.......thank u....this is only wat i watd....sorry for confusing u dude....
Title: Re: Chatrooms
Post by: JueLz on 11 October, 2006, 02:56:07
Jiten the command !delchat Seems not to be working...
Could you help me?
Title: Re: Chatrooms
Post by: Herodes on 11 October, 2006, 08:06:10
Quote from: speedX on 05 October, 2006, 15:43:08
perfect.....atlast u understood my post.......thank u....this is only wat i watd....sorry for confusing u dude....
Someone in their right minds would have written:
Quote from: speedXPerfect! At last you understood my post, thank you. This is only what I wanted. Sorry for confusing you dude..

The "series-of-dots"( .......... ) formatting of yours isn't helping for understanding or even reading!
You have been advised against it lots of time, from me, Psycho, even other ppl. Stop it. Just one dot will do!
Also I noticed you are not using any Capitals! This is why we see you so interested into making all the scripts you are using case in-sensitive. This is the second time that I mention it... Don't post like the way you are chatting! The forum is not a chat! It is a discussion forum! That means we post whole messages, to communicate, think them through before you type them, then make them look good with the formatting (bold, italic, font etc) that is available in the forum package if needed.[/u]

God I have occupied my self with your matter for a quite long time. Be very careful pls...
Title: Re: Chatrooms
Post by: JueLz on 12 October, 2006, 16:05:22
Could anyone else help me?
Posted on: 11 October 2006, 21:23:37
Doesn't this script work with robocop?
Title: Re: Chatrooms
Post by: jedijones666 on 05 November, 2006, 13:41:18
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
Title: Re: Chatrooms
Post by: Herodes on 05 November, 2006, 15:14:03
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...
Title: Re: Chatrooms
Post by: jedijones666 on 05 November, 2006, 16:10:43
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
Title: Re: Chatrooms
Post by: speedX on 05 November, 2006, 16:19:59

-- 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 ;)
Title: Re: Chatrooms
Post by: jedijones666 on 06 November, 2006, 01:05:28
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
Title: Re: Chatrooms
Post by: speedX on 06 November, 2006, 07:47:30
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?
Title: Re: Chatrooms
Post by: jedijones666 on 06 November, 2006, 13:14:59
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.
Title: Re: Chatrooms
Post by: 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??

Title: Re: Chatrooms
Post by: jedijones666 on 06 November, 2006, 16:02:53
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
Title: Re: Chatrooms
Post by: 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  :)
Title: Re: Chatrooms
Post by: speedX on 06 November, 2006, 17:07:08
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.
Title: Re: Chatrooms
Post by: Herodes on 06 November, 2006, 17:29:38
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...
Title: Re: Chatrooms
Post by: enigma on 07 November, 2006, 07:10:17

   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,
Title: Chatroom+Message Board
Post by: 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
Title: Re: Chatroom+Message Board
Post by: Herodes on 07 November, 2006, 17:15:50
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 ? :)
Title: Re: Chatrooms
Post by: jiten on 07 November, 2006, 19:43:18
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].
Title: Re: Chatrooms
Post by: 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 ?
I have made some changes in the commands.
Title: Re: Chatrooms
Post by: Prathmesh on 07 November, 2006, 21:11:12
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...




Title: Re: Chatrooms
Post by: jiten on 08 November, 2006, 14:16:03
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.
Title: Re: Chatrooms
Post by: enigma on 09 November, 2006, 13:24:09
Jiten u rock , Thanks a Lot. The script is working fine  :)
Title: Re: Chatrooms
Post by: jiten on 10 November, 2006, 17:41:51
I'm glad it's working fine. You're welcome...
Title: Re: Chatrooms
Post by: Jorgo on 13 November, 2006, 23:11:34
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?
Title: Re: Chatrooms
Post by: Dessamator on 02 December, 2006, 21:20:16
The script has been updated & that error is fixed.
Title: Re: Chatrooms
Post by: Jorgo on 04 December, 2006, 21:46:04
Thanks!
Title: Re: Chatrooms
Post by: DoktorPZ on 22 January, 2007, 00:16:43
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?
Title: Re: Chatrooms
Post by: ninad_laud on 24 January, 2007, 16:17:20
HI JITEN ........... U R CHATROOM SCRIPT IS gr8 .........BUT CAN U CREATE A CHATROOM SCRIPT WHICH  CONTAINS FOLLOWING COMMANDS
----General-----------------------------------------------------------------------------------
+list            List all room mates.
+exit            Leave the room.
+read            Read the messages.
+write            Write a message.
+delete <ID>         Delete a message.
+ip <nick>
+history         Lists the last 50 chat messages.
-----Onwer-----------------------------------------------------------------------------------
+set 1            Make the room private.
+set 2            Make the room public.
+close            Close the conference room.
+ban <nick>         Ban a member.
+unban <nick>         Unban a member.
+setowner <nick>      Change the OWNER of the room.
+mod <nick>         Add a new moderator.
+demod <nick>         Remove a moderator.
+swapshowjoins         Turn on/off joins messages.
-----Moderator and Owner----------------------------------------------------------------------
+add <nick>         Add user to the conference. eg +add NINAD
+remove <nick>         Kick a user from the room.
+delhistory         Delete the messages from the history.
-----------------------------------------------------------------------------------------------
- <mandatory> (optional)
Title: Re: Chatrooms
Post by: bastya_elvtars on 24 January, 2007, 21:30:47
ninad_laud: please use proper English, not this chat style and please don't write in capitals because it is annoying.
Title: Re: Chatrooms
Post by: ninad_laud on 25 January, 2007, 06:16:28
i am extremely sorry jiten :( ....................i am new to this thing......but can u provide me with a script which can contain following commands for chatroom
----General-----------------------------------------------------------------------------------
+list            List all room mates.
+exit            Leave the room.---------
+read            Read the messages.      |-------->this commands are like of bulletin script
+write            Write a message.         |
+delete <ID>         Delete a message.--
+ip <nick>               It shows the ip of an user
+history         Lists the last 50 chat messages.
-----Onwer-----------------------------------------------------------------------------------
+set 1            Make the room private.
+set 2            Make the room public.
+close            Close the conference room.
+ban <nick>         Ban a member.
+unban <nick>         Unban a member.
+setowner <nick>      Change the OWNER of the room.
+mod <nick>         Add a new moderator.
+demod <nick>         Remove a moderator.
+swapshowjoins         Turn on/off joins messages.
-----Moderator and Owner----------------------------------------------------------------------
+add <nick>         Add user to the conference. eg +add NINAD
+remove <nick>         Kick a user from the room.
+delhistory         Delete the messages from the history.
-----------------------------------------------------------------------------------------------
- <mandatory> (optional)

Thnx in Advance
Title: Re: Chatrooms
Post by: DestroyNet on 09 February, 2007, 01:29:54
Hi all. Can be whos will prompt. How do I obtain show of this line:
Quoteif tmp.groups[profile] then user:SendPM(to, "*** This group is Hide immuned!") return 0 end

Script version 4.15

P.S. Sorry, text translated by software method   :-[
Title: Re: Chatrooms
Post by: mgforce on 11 February, 2007, 07:36:05
Please excuse me for my n00bish question.. but I am unable to run the ChatRoom script ( the latest one as attached in first post)

I started the script in Ptokax and its loaded fine without any syntax error.. but no right click menu is seen .. Is there some comand in script which is to be set on /off.. I am using Robocop 10.023

Thanks in advance...

Thanks for this gr8 script Jiten....I solved the problem.. I was trying with Operator... I tried with netfoundr and everything worked...
Title: Re: Chatrooms
Post by: speedX on 11 February, 2007, 08:00:06
Quote from: mgforce on 11 February, 2007, 07:36:05
no right click menu is seen

When u run the script for the first time you have to do the following changes

--[[ Commands Structure:
[Command] = {
fFunction = function,
tLevels = { [i] = 1 }, -- All i profiles stored here can access Command
tRc = RightClick Command
},

If u want Rightclick for reg users also, thn change it to i = 3
--------------------------------------------------------------------

Only users with profile 1,5 and 6 can create chatrooms, to enable it for other profiles also you have to change the table under the command "MakeChat"
If you want to enable it for all thn do the following change:

Change this
tLevels = { [0] = 1, [5] = 1, [6] = 1, },
tRC = { "Create Room", " %[line:Room] %[line:Profile (optional)]" }


to this


tLevels = { [0] = 1, [1] = 1, [2] = 1, [3] = 1, [4] = 1, [5] = 1, [6] = 1, },
tRC = { "Create Room", " %[line:Room] %[line:Profile (optional)]" }


There are many commands in this script. Each command has a table below it, edit them as u want.....
Title: Re: Chatrooms
Post by: mgforce on 11 February, 2007, 09:18:53
thanks a lot Speedx....
Title: Re: Chatrooms
Post by: Yahoo on 11 February, 2007, 11:22:55
thanks a lot speedX but the script which i have contains the command !mkchat can u post me the script which contains +createroom command
Title: Re: Chatrooms
Post by: speedX on 11 February, 2007, 11:57:49

-- Commands
Commands = {
MakeChat = "mkchat", Away = "away", Leave = "leave", Members = "members", Invite = "invite", Status = "status",
Remove = "remove", DelChat = "delchat", AutoLogin = "autologin", Hide = "hide", Lock = "lock", Key = "key", Help = "roomhelp"
}


In the script locate this line and change the command to whatever u like.

To change the !mkchat command to !createroom command just
change this

MakeChat = "mkchat"


to this

MakeChat = "createroom"


Title: Re: Chatrooms
Post by: Yahoo on 11 February, 2007, 12:12:40
thanks a lot
can u tell me how 2 change the prefix "!" . I want the prefix "+"
Title: Re: Chatrooms
Post by: Psycho_Chihuahua on 11 February, 2007, 14:55:01
You could try with changing all ! in the script to +  ;D