PtokaX forum

Lua 5.3/5.2/5.1 Scripts (for PtokaX 0.4.0.0 and newer) => Finished Scripts => Topic started by: jiten on 23 December, 2007, 12:01:31

Title: Chatrooms v4.21 - LUA 5.1x [Strict][API 2]
Post by: jiten on 23 December, 2007, 12:01:31
--[[

Chatrooms v4.21 - LUA 5.1x [Strict][API 2] by jiten and Dessamator
?????????????????????????????????????????????????????????????????
Based on: Chatrooms v3 by tezlo

RECENT CHANGELOG:
?????????????????
- Changed: Script converted to API 2 (10/16/2007)
- Fixed: Database save function - reported by Yahoo and Jorgo (3/15/2008)

]]--
Title: Re: Chatrooms v4.2 - LUA 5.1x [Strict][API 2]
Post by: Yahoo on 05 January, 2008, 13:25:44
The Rooms get delete when the hub is restarted
Title: Re: Chatrooms v4.2 - LUA 5.1x [Strict][API 2]
Post by: baba.runner on 04 March, 2008, 20:19:46
Hi jiten

is it possible to add the ability to add a description to the created Chatrooms. So that other user might see the name of the Chatroom in the userlist along ith a description behind. Just the way as a user has it's description.

Thanks in advance.

KR
baba.runner
Title: Re: Chatrooms v4.2 - LUA 5.1x [Strict][API 2]
Post by: Jorgo on 13 March, 2008, 21:10:59
The rooms get deleted when key (OP) is set. Same happens, when !invite or !remove is used. I'm using ptokax 0.4.0.0b.
Title: Re: Chatrooms v4.2 - LUA 5.1x [Strict][API 2]
Post by: Jorgo on 14 March, 2008, 21:08:17
I think I identified the problem.

In lines 278 and 293 you need to replace
Core.SendToNick(nick.sNick,
with
Core.SendToNick(user.sNick,

At least it works the rooms don't get deleted anymore now :-)
Title: Re: Chatrooms v4.2 - LUA 5.1x [Strict][API 2]
Post by: jiten on 15 March, 2008, 00:20:01
I am sorry for my delay in fixing this issue with Chatrooms.

It is small thing but I still will have to test the whole script with the latest PX version, but I'll post it soon.
Title: Re: Chatrooms v4.2 - LUA 5.1x [Strict][API 2]
Post by: Jorgo on 15 March, 2008, 19:43:46
That would be nice... I am running against a wall now because every time the script starts, the chatroom table is completely emptied. I have a multi-language environment and users depend on the rooms unfortunately. Thanks for correcting this as soon as possible!
Title: Re: Chatrooms v4.21 - LUA 5.1x [Strict][API 2]
Post by: jiten on 15 March, 2008, 20:24:31
Quote from: baba.runner on 04 March, 2008, 20:19:46
is it possible to add the ability to add a description to the created Chatrooms.
So that other user might see the name of the Chatroom in the userlist along
ith a description behind. Just the way as a user has it's description.

This would surely be a nice addition to the script. However, it won't be possible
for me to fulfill your request due to time limitations. I hope you understand.

However, I've updated the first post with the fixes to previously posted issues.

Best regards
Title: Re: Chatrooms v4.21 - LUA 5.1x [Strict][API 2]
Post by: Jorgo on 15 March, 2008, 21:36:35
That was really quick! I double-triple thank you for using your spare time to help us for free!
Title: Re: Chatrooms v4.21 - LUA 5.1x [Strict][API 2]
Post by: P_pan on 02 April, 2008, 17:18:39
was wondering if this script still gonna be updated?
cause  the errors are still there.....
the script still dissapear (stopped) when added a room..
i have to maually restart it...

reason is i was just looking for such a script
to apply a chatroom where only i can add chosen members in and will be fully hidden for ohters to see ...
thnx :)
Title: Re: Chatrooms v4.21 - LUA 5.1x [Strict][API 2]
Post by: jiten on 02 April, 2008, 17:52:55
Quote from: P_pan on 02 April, 2008, 17:18:39
was wondering if this script still gonna be updated?
cause  the errors are still there.....
the script still dissapear (stopped) when added a room..
i have to maually restart it...

reason is i was just looking for such a script
to apply a chatroom where only i can add chosen members in and will be fully hidden for ohters to see ...
thnx :)

Seems to me that you are still using your previous database file.
Unload your script, delete the .tbl and then reload.
Title: Re: Chatrooms v4.21 - LUA 5.1x [Strict][API 2]
Post by: P_pan on 02 April, 2008, 18:49:24
that prob is fixed now.... thnx for the neat script ;D
Title: Re: Chatrooms v4.21 - LUA 5.1x [Strict][API 2]
Post by: Jorgo on 25 May, 2008, 01:24:42
One request... would it be possible to implement a history function?