Simple InternationalCHAT - Page 2
 

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

Simple InternationalCHAT

Started by 6Marilyn6Manson6, 02 October, 2005, 14:11:16

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fichtenberg

That did it! great
You are awesome
Thanks again

6Marilyn6Manson6

QuoteOriginally posted by fichtenberg
That did it! great
You are awesome
Thanks again

Welcome dude :D

6Marilyn6Manson6

Post update. Now is all ok :D

-TheOne-

Go Marilyn Go!  :D

6Marilyn6Manson6

QuoteOriginally posted by -TheOne-
Go Marilyn Go!  :D

Yeah sure :D

Thor

hi Marilyn! Can you make that, that if somebody dont want to use the chat, he or she can exit from the chat? thx :)

Madman

--// Simple InternationalCHAT by 6Marilyn6Manson6 2005-10-02
--// Version 1.4
--// Fixed bug with TAG, (thanks Typhoon™ / bluebear / hugo_fra_tv2™ / ?˜”??•Hawk•??”˜? / Madman)

-- Rewrote ToArrival, remvoed repeting code
-- Changed to only one function for InterChat
-- Changed to a table setup
-- Sweared alot over the table
-- Fixed the ToArrival
-- Modded by Madman

Chat = {
	["it"] = "-IT-Chat-",
	["uk"] = "-UK-Chat",
	["hun"] = "-HUN-Chat-", 
	["cz"] = "-CZ-Chat-",
	["pl"] = "-PL-Chat-",
}

function Main()
	for Pre,Name in Chat do
		frmHub:RegBot(Name)
	end
end

function ToArrival(user,data)
	local s,e,to,msg = string.find(data,"%$To:%s+(%S+)%s+From:%s+%S+%s+%$%b<>%s+(.*)%|")
	local _, _, sPrefix, sNick = string.find(string.lower(user.sName), "^%[(%S+)%](%S+)")
	for Pre,Name in Chat do
		if sPrefix == Pre and to == Name then
			InterChat(user,msg,Pre,to) return 1
		else
			SendPmToNick(user.sName,to, "*** You don't have the privileges to talk in this chat.") return 1
		end
	end
end

function InterChat(user,msg,prefix,to)
	for _,users in frmHub:GetOnlineUsers() do
		if users.sName == user.sName then
		else
			if (string.find(string.lower(users.sName), prefix)) then
				users:SendData("$To: "..users.sName.." From: "..to.." $<"..user.sName.."> " ..msg)
			end
		end
	end
end
--// Made by 6Marilyn6Manson6 2005-10-02
--// Fixed by 6Marilyn6Manson6 2005-10-05

I got bored... more compact and less repeting functions...
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

6Marilyn6Manson6

Good script Madman.. i work at new release now :D

SMF spam blocked by CleanTalk