--//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