--// Random Intros and Outros
--// By Chaggydawg
--// Does it work?? Who knows these things??
--// Revision 0.2
HubOwner = "']['rIp?iN??uN"
intros = {
"[USERNAME] Crawls In On Their Hands And Knees.",
"In A Fiery Explosion [USERNAME] Appears.",
"With A Crazed Look In Their Eyes [USERNAME] Arrives.",
"Sir [USERNAME] Of The East Lunatic Fringe Has Arrived.",
"[USERNAME] Arrives Yelling And Screaming Like A Maniac.",
"[USERNAME] Arrives Ranting And Raving About Aliens Or Some Such Rot.",
"The Demented [USERNAME] Has Arrived.",
"[USERNAME] Appears Out Of Nowhere And Begins Speaking In Tongues.",
"[USERNAME] Arrives And Immediately Heads For The Light Like A Moth.",
"[USERNAME] Climbs In Through The Window With A Big Joint.",
"[USERNAME] Falls From The Skylight And Lands On A Mushroom.",
"[USERNAME] Enters the Room With A Bottle Of L.S.D On His Hands.",
"After Alot Of Loud Groaning [USERNAME] Comes Waltzing Out Of Janines Room...",
"Hair In Everywhich Direction [USERNAME] Arrives On The Scene Looking More Crazed Than Usual.",
"Brandishing What Looks Like A Hairbrush [USERNAME] Arrives.",
"[USERNAME] Arrives An ElfGirl Under Each Arm",
"[USERNAME] Appears Out Of Thin Air Scaring The Hell Out Of Janine.",
"[USERNAME] Parachutes In From An Airplane.",
"[USERNAME] Runs In, Stubs Their Toe On A Couch And Falls Over A Table Landing On Janine.",
"[USERNAME] Crashes Through The East Wall Arriving In The Hub.",
"[USERNAME] is here, How about a round of elfgirls for everyone?",
}
outros = {
"[USERNAME] Has Left The Hub",
"Jumping Through A Plate-Glass Window [USERNAME] Leaves The Hub With His SnowBoard.",
"Aliens Rocks Abduct [USERNAME], And They Are Gone.",
"[USERNAME] Begins Shrinking, And Eventually Disappears From The Hub.",
"Janine Takes [USERNAME] By The Arm And Leads Them To Her Room Closing The Door.",
"With Cat Like Reflexes [USERNAME] Leaps Out The Window And Is Gone.",
"The Lights Momentarily Dim, And When They Come Back On [USERNAME] Is Gone.",
"Three Giant Men In White Coats March In And Haul Away [USERNAME] Kicking and Screaming.",
"[USERNAME] Leaves Through The Basement Door",
"[USERNAME] Accidentally Walks Into Janines Room, Muffled Screams Are Heard For A Few Seconds But [USERNAME] Is Gone.",
"Suddenly [USERNAME] Leaps Up And Bolts For The Door.",
"[USERNAME] Tosses A Ten On Janine Dresser And Walks Out The Door.",
"[USERNAME] Runs Around The Room Screaming & Laughing *ACID.ACID.ACID*.",
}
--// This function is fired when an operator enters the hub
function OpConnected(curUser)
LevelBot = GetProfileName(curUser.iProfile)
if GetProfileName(curUser.iProfile) == "Master" then LevelBot = "Administrator" end
if curUser.sName == HubOwner then LevelBot = "Hub Owner" end
intro, x = string.gsub(intros[math.random(1,table.getn(intros))], "%b[]", curUser.sName)
SendToAll(LevelBot, intro)
end
--// This function is fired when an operator disconnects
function OpDisconnected(curUser)
LevelBot = GetProfileName(curUser.iProfile)
if GetProfileName(curUser.iProfile) == "Master" then LevelBot = "Administrator" end
if curUser.sName == HubOwner then LevelBot = "Hub Owner" end
outro, x = string.gsub(outros[math.random(1,table.getn(outros))], "%b[]", curUser.sName)
SendToAll(LevelBot, outro)
end
--// This function is fired when a new user finishes the login
function NewUserConnected(curUser)
LevelBot = GetProfileName(curUser.iProfile)
if LevelBot == "VIP" then
intro, x = string.gsub(intros[math.random(1,table.getn(intros))], "%b[]", curUser.sName)
SendToAll(LevelBot, intro)
else
end
end
--// This function is fired when an user disconnects
function UserDisconnected(curUser)
LevelBot = GetProfileName(curUser.iProfile)
if LevelBot == "VIP" then
outro, x = string.gsub(outros[math.random(1,table.getn(outros))], "%b[]", curUser.sName)
SendToAll(LevelBot, outro)
else
end
end
refer to this (http://board.univ-angers.fr/thread.php?threadid=4731&boardid=1&sid=16a46fcbc38d241faa1e87f368344349&page=1#37) link