Custom Intro Outro Script
 

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

Custom Intro Outro Script

Started by Madman, 01 March, 2005, 19:43:20

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Madman

--//Custom LogIn Script Made By Madman
--//Thanks Typhoon for the help with ..Profile..
--//And also 4 the local msg thing
--//Version 2
--//User's is now also supported
--//Thanks to [VIP]SilentiQa that told me to add it ;)
--//Bug for users fixed
--//Version 3
--//Removed reg and user support
--//Only VIP and higher supported
--//Disturbing with the script telling me when a reg user logged in
--//Moderator Profile is Called Dream~Master
--//As always based on the RoboCop Profiles
--//Version 4
--//Converted to lua 5. puh, hard work... lol

Bot = frmHub:GetHubBotName() --//Botname, uses the hubots name

--//User enters the hub text
--//[nick] will be replaced with the users name.. 
--//["Madman"]= "The [nick] has entred", Will show
--// The Madman has entred
LogIn = {
		["[DN]Madman"]= "The Dragon Lord [nick] rode in on his breath of flame",
		["[OP]Ctrl"]= "[nick] falls in with a hangover and says: the things you dont have, is things that is good to have!",
		["[DN]Didde"]= "The man, The myth, The concept [nick] flies in to the hub",
		["-=FakeKiller=-"]= "[nick] is a killing machine, he is always busy killing people, so don't PM him",
		["Fonzie?"]= "The Network Devil [nick] has come to open up the hell",
		["[DN]Con"]= "The god of Destruction 2 [nick] has come down from heaven",
		["[OP]FranticJ1"]= "The GuitarDevil [nick] has played in",
		["(?†?)the_coffee_house_murderess"]= "The hub bitch [nick] has logged in. Obey her!",
		["[LP]Bart_simpson"]= "[nick] has been activated",
		["Stoffy"]= "[nick] faked his way in",
		["KAMBOSS"]= "The old and wise phropecy merchant [nick] has arriveed at last",
		["[DN]Sunnis"]= "The Gamer [nick] logs in and says: Let the Noobs be with you!",
		["[DMGM]Maverick"]="The Dream~Master General Manager [nick] has entered the hub",
		["WILDCAT"]= "[nick] walks in and winks at all the girls, and they all smile.",
		["[OP]WILDCAT"]= "[nick] walks in and winks at all the girls, and they all smile.",
--//4 Madhouse
--		["Madman"]= "The Dragon lord [nick] rode in on his breath of flame",
--		[""]= "[nick]",
}

--//User disconnect text
LogOut = {
		["[DN]Madman"]= "[nick] burns down some fakers on his way out.",
		["[DN]Sunnis"]= "[nick] got scared, and runs out to hide.",
		["[OP]Ctrl"]= "[nick] is *gone*",
		["[DN]Didde"]= "[nick] disconnects while on flames.",
		["-=FakeKiller=-"]= "[nick] has gone to the real world to kill some users.",
		["Fonzie?"]= "The Network Devil [nick] has left the hub to go back to the hell.",
		["[DN]Con"]= "The god of Destruction [nick] has left the hub to return back to heaven.",
		["[OP]FranticJ1"]= "The GuitarDevil [nick] strummed his last song.",
		["(?†?)the_coffee_house_murderess"]= "The hub bitch [nick] leaves for a while.",
		["[LP]Bart_simpson"]= "[nick] has been deactivated.",
		["Stoffy"]= "[nick] has been kicked.",
		["KAMBOSS"]= "Now you are all alot wiser, it is time for old [nick] to leave and go spread the shit elsewhere",
		["[DMGM]Maverick"]="The Dream~Master General Manager [nick] has left the hub, See you Soon.",
--//4 Madhouse
--		["Madman"]= "[nick] burns down some fakers on his way out",
--		[""]= "[nick]",
}


--//VIPs Enter The Hub
function NewUserConnected(curUser)
	if (curUser.iProfile == 2) then
		if LogIn[curUser.sName] then
		local msg = string.gsub(LogIn[curUser.sName], "%[nick%]", curUser.sName) 
			SendToAll(Bot,msg)
		--//If not in LogIn table and Profile Vip
		elseif (curUser.iProfile == 2) then
		local Profile = GetProfileName(curUser.iProfile)
			SendToAll(Bot, "The " ..Profile.. " User " ..curUser.sName.. " has entered the Hub, Welcome Home.") 
		end
	end
end

--//VIPs Leaves The Hub
function UserDisconnected(curUser)
	if (curUser.iProfile == 2) then
		if LogOut[curUser.sName] then
		local msg = string.gsub(LogOut[curUser.sName], "%[nick%]", curUser.sName) 
			SendToAll(Bot,msg)
		--//If not in LogOut table and Profile Vip
		elseif (curUser.iProfile == 2) then
		local Profile = GetProfileName(curUser.iProfile)
			SendToAll(Bot, "The " ..Profile.. " User " ..curUser.sName.. " has left the Hub, See you Soon.") 
		end
	end
end

--//Ops Enters The Hub
function OpConnected(curUser)
	if LogIn[curUser.sName] then
	local msg = string.gsub(LogIn[curUser.sName], "%[nick%]", curUser.sName) 
		SendToAll(Bot,msg)
	--//If not in LogIn table
	elseif curUser.iProfile == 4 then
		SendToAll(Bot, "The Dream~Master " ..curUser.sName.. " has entered the Hub, Welcome Home.")
	else
	local Profile = GetProfileName(curUser.iProfile)
		SendToAll(Bot, "The " ..Profile.. " " ..curUser.sName.. " has entered the Hub, Welcome Home.") 
	end
end

--//Ops Leaves The Hub
function OpDisconnected(curUser)
	if LogOut[curUser.sName] then
	local msg = string.gsub(LogOut[curUser.sName], "%[nick%]", curUser.sName) 
		SendToAll(Bot, msg)
	--//If not in table2
	elseif curUser.iProfile == 4 then
		SendToAll(Bot, "The Dream~Master " ..curUser.sName.. " has entered the Hub, Welcome Home.")
	else
	local Profile = GetProfileName(curUser.iProfile)
		SendToAll(Bot, "The " ..Profile.. " " ..curUser.sName.. " has left the Hub, See you Soon.")
	end
end
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

SMF spam blocked by CleanTalk