PtokaX forum

Archive => Archived 5.1 boards => Finished Scripts => Topic started by: kuipie on 29 March, 2005, 09:44:49

Title: Elf girls
Post by: kuipie on 29 March, 2005, 09:44:49
A random timed message bot converted from Lua4 to Lua 5 ------------

--// The Elf Girls Random Chatter Bot
--// Revision 0.2b First public release
--// By Chaggydawg
--// Converted to LUA5 by kuipie

--// Use +elfon and +elfoff to turn it off and on


math.mintime = 100000          --// Minimum time between chatter (milliseconds)
math.maxtime = 200000          --// Maximum time between chatter (milliseconds)
prefix = "[TD]"     --// prefix to math.random chatters names
heh = 1                  --// Start script off or on  1=on 0=off

--// Random chatters names
bot = {
"Tina",
"Amy",
"Linda",
"Cynthia",
"Crystal",
"Sadie",
"Sally",
"Scarlet",
"Storm",
"Summer",
"Ella",
"Eartha",
"Magnolia",
"Meara",
"Nikki",
"Christine",
"Samantha",
"Zelda",
}


--//Phrases they say
convos = {
"Did you hear that Magnis came walking out of Janines room the other day with a big smile on his face?",
"My ears are pointy like your pants.",
"Anyone care for an Elf Girl?",
"Anyone Awake? I am...",
"Should I take off my bra and dance for everyone?",
"Isn't it weird how none of us Elf Girls are in the userlist?",
"ACHOOOO!!",
"Janine you need to wash off some of that perfume!",
"Wheres a good Man When I need one?",
"Luke! I am your mother!",
"Paranoia is just reality on a finer scale.",
"The dingo's got my baby!.....",
"Pay no attention to the man behind the curtain! Magnis should be done soon...",
"Fear is the path to the dark side. Fear leads to anger, anger leads to hate, hate, leads to suffffering...",
"One of the definitions of sanity is the ability to tell real from unreal. Soon we'll need a new definition.",
"Ducking for apples - change one letter and it's the story of my life.",
"Sex is like bridge: If you don't have a good partner, you better have a good hand.",
"A girl's legs are her best friends, but the best of friends must part.",
"You ever dance with the devil by the pale moonlight?",
"Being bad feels pretty good, huh?",
"Get up, boy. I bet you can squeal. I bet you can squeal like a math.pig.",
"If you flash it, they will come.",
"First rule of Janine club is you do not talk about Janine club.",
"Unfortunately, no one can be told what the Matrix is. You have to see it for yourself.",
"I'm trying to free your math.mind, Janine. But I can only show you the door. You're the one that has to walk through it.",
"To deny our own impulses is to deny the very thing that makes us Elven.",
"Well isn't this place a geographic oddity. Two weeks from everywhere.",
"A woman is the most fiendish instrument of torture ever devised to bedevil the days of man. Elven Girls however are just the opposite.",
"Get your stinking paws off me you damn dirty ape. *Glares at Janine*",
"Hello. My name is Indigo Montoya. You killed my father. Prepare to die.",
"Say hello to my two little friends!",
"Resismath.tance is futile.",
"May the farce be with you.",
"I'll get you my pretty, and your little Janine too.",
"I'm from Iowa. I only work as an Elf Girl.",
"I used to hang out at this other hub, but it sucked. When I'm around, I like to do the sucking...",
"You know, Chaggy is our Owner, so if you're looking for a good time, he can make the arrangements, if you know what I mean...",
"Does this short skirt make me look like a slut or is it that I forgot my panties again?",
"Is it hot in here or are the batteries in my 'special toy' overheating again?",
"Ever math.since I got these implants, I feel like people are staring at them and not listening to me.  Hey! I'm talking to you!",
"Magnis doesn't believe in elf girls, he thinks we're fake, so I kicked him in the balls. Now he believes...",
"So, who wants to buy an elfgirl a drink?",
"Anybody else sitting here naked?",
"Hey, could someone do me a favor and massage my implants for me, the doctor said I was supposed to do that to keep them soft",
"Would anyone math.mind if a couple of us elfgirls had an orgy over there by the webcam?",
"I'm tired, can't we just go to bed now?",
"Janine, don't let the door hit you on the ass on the way in your room, Magnis might be injured.",
"I was in Victoria's Secret the other day and found this hot pair of panties, then I remembered that I don't wear them. Oopsie, dropped something and me in this short skirt...",
"... you will never find a more wretched hive of scum and villany ... I love this hub!",
"Oh, ohhhh, ah, ah, ahhh, ahhhhh, unhhh, yes! It's so tight and hard, YES! Looks like I got another math.piece of jigsaw puzzle to fit, almost done now...",
"*grmath.abs Magnis and proceeds to give him a presidential math.experience he'll never forget*",
"*Wonders if she should get breast implants, and decides to show them around and see what everyone thinks*",
"*Grmath.abs math.random user and ravages them with her tongue*",
"For a good time, send me a personal message, the dirtier the better.",
"Whew! It's so hot in here. I'm gonna take off my shirt, any objections?",
"Oh my, its so cold in here my nipples are erect!",
"Can someone help me unbutton my shirt?",
"Are these too big?",
"Can you feel if I have a lump in my breast?",
"Anyone want to Cyber?",
"How does my ass look in these jeans?",
"Has anyone seen my panties?",
"Janine can I borrow your room? Me and Magnis wanna go play a game.",
"LOL!! I forgot to put a bra on today!",
"*Takes off her shirt and begins dancing*",
"I feel an uncontrollable urge to pet a Furry Kitty...",
"ELVES RULE!!!",
"Janine you should get your ears fixed like ours.",
"Where is Magnis? He promised we'd play some games tonight.",
"Hmmm, I wonder whos batteries these are....",
"*Sits down in a chair and forgets to cross her legs*",
"I just realised... I'm not wearing any pants!",
}

--//Responses to question marks in sData
response = {
"I'm an Elf Girl Not an Encyclopedia",
"Yeah! Definately!",
"Nope.",
"Not really sure.",
"What makes you ask that?",
"Of course... O.o",
"I don't know. I'm making this stuff up as I go.",
"Have you tried finding out on the web?",
"Huh?",
"I have no idea.",
"Yes!",
"Ask Janine.",
"Damn Straight!",
"Who knows these things?",
"The answer is probably very ellusive.",
"Are you asking me?",
"How the hell should I know?",
"What kinda question is that to be asking?",
}


--// This function is fired at the serving start
function Main()
SetTimer(5000)
StartTimer()
end

--// This function is fired when a new data arrives
function DataArrival(curUser, sData)
s,e,cmd = string.find(sData,"%b<>%s++(%S+)")
if cmd ~= nil then cmd = (string.sub(cmd,1,string.len(cmd)-1)) end
if (cmd == "elfon") then
heh = 1
elf = bot[math.random(1,table.getn(bot))]
SendToAll("[ElfGirl]"..elf,"So Anyways....")
return 1
elseif (cmd == "elfoff") then
heh = 0
elf = bot[math.random(1,table.getn(bot))]
SendToAll ("[ElfGirl]"..elf, "We'll Be Quiet Now")
return 1
end
s,e,inpm = string.find(sData,"$(To:)")
s,e,question = string.find(sData,"(?)")
if question ~= nil and inpm == nil then
qa = 1
SetTimer(math.random(3000,5000))
end
--// name[curUser.sName] = curUser.sName   --// for later usages
end

function OnTimer()
if heh == 1 and qa ~= 1 then
SetTimer(math.random(math.mintime,math.maxtime))
elf = bot[math.random(1,table.getn(bot))]
chatter = convos[math.random(1,table.getn(convos))]
SendToAll(prefix..""..elf, chatter)
s,e,jan = string.find(chatter,"(Janine)")
if jan ~= nil then SendToAll("[ADSL]Janine","Shut up "..elf.." you stumath.pid bitch!") end
s,e,mag = string.find(chatter,"(Magnis)")
if mag ~= nil then SendToAll("[ADSL]Janine",elf.." if you touch my maggie waggy and I'll rip your damn head off bitch!!") end
s,e,imp = string.find(chatter,"(implant)")
if imp ~= nil then SendToAll("[ADSL]Janine","Implants? I payed $5000 each for math.mine. Don't they look nice?") end
if imp ~= nil then SendToAll(prefix..""..elf,"Really? Yah they look nice may I touch them?") end
s,e,pan = string.find(chatter,"(panties)")
if pan ~= nil then SendToAll("[ADSL]Janine","Bah... Panties, they just slow you down.") end
elseif qa == 1 then
qa = 0
SetTimer(math.random(math.mintime,math.maxtime))
elf = bot[math.random(1,table.getn(bot))]
chatter = response[math.random(1,table.getn(response))]
SendToAll(prefix..""..elf, chatter)
end
end
Title: removed the math. from incorrect locs
Post by: Stravides on 29 March, 2005, 13:41:07
Please remember the [ code] and [ /code]
syntax when posting code :)  I have just made a couple of ammendments where the word math. had crept in where it should not have, and have also re-indented it all...

--// The Elf Girls Random Chatter Bot
--// Revision 0.2b First public release
--// By Chaggydawg
--// Converted to LUA5 by kuipie

--// Use elfon and elfoff to turn it off and on


math.mintime = 100000 --// Minimum time between chatter (milliseconds)
math.maxtime = 200000 --// Maximum time between chatter (milliseconds)
prefix = "[TD]" --// prefix to random chatters names
heh = 1 --// Start script off or on 1=on 0=off

--// Random chatters names
bot = {
"Tina",
"Amy",
"Linda",
"Cynthia",
"Crystal",
"Sadie",
"Sally",
"Scarlet",
"Storm",
"Summer",
"Ella",
"Eartha",
"Magnolia",
"Meara",
"Nikki",
"Christine",
"Samantha",
"Zelda",
}


--//Phrases they say
convos = {
"Did you hear that Magnis came walking out of Janines room the other day with a big smile on his face?",
"My ears are pointy like your pants.",
"Anyone care for an Elf Girl?",
"Anyone Awake? I am...",
"Should I take off my bra and dance for everyone?",
"Isn't it weird how none of us Elf Girls are in the userlist?",
"ACHOOOO!!",
"Janine you need to wash off some of that perfume!",
"Wheres a good Man When I need one?",
"Luke! I am your mother!",
"Paranoia is just reality on a finer scale.",
"The dingo's got my baby!.....",
"Pay no attention to the man behind the curtain! Magnis should be done soon...",
"Fear is the path to the dark side. Fear leads to anger, anger leads to hate, hate, leads to suffffering...",
"One of the definitions of sanity is the ability to tell real from unreal. Soon we'll need a new definition.",
"Ducking for apples - change one letter and it's the story of my life.",
"Sex is like bridge: If you don't have a good partner, you better have a good hand.",
"A girl's legs are her best friends, but the best of friends must part.",
"You ever dance with the devil by the pale moonlight?",
"Being bad feels pretty good, huh?",
"Get up, boy. I bet you can squeal. I bet you can squeal like a pig.",
"If you flash it, they will come.",
"First rule of Janine club is you do not talk about Janine club.",
"Unfortunately, no one can be told what the Matrix is. You have to see it for yourself.",
"I'm trying to free your mind, Janine. But I can only show you the door. You're the one that has to walk through it.",
"To deny our own impulses is to deny the very thing that makes us Elven.",
"Well isn't this place a geographic oddity. Two weeks from everywhere.",
"A woman is the most fiendish instrument of torture ever devised to bedevil the days of man. Elven Girls however are just the opposite.",
"Get your stinking paws off me you damn dirty ape. *Glares at Janine*",
"Hello. My name is Indigo Montoya. You killed my father. Prepare to die.",
"Say hello to my two little friends!",
"Resistance is futile.",
"May the farce be with you.",
"I'll get you my pretty, and your little Janine too.",
"I'm from Iowa. I only work as an Elf Girl.",
"I used to hang out at this other hub, but it sucked. When I'm around, I like to do the sucking...",
"You know, Chaggy is our Owner, so if you're looking for a good time, he can make the arrangements, if you know what I mean...",
"Does this short skirt make me look like a slut or is it that I forgot my panties again?",
"Is it hot in here or are the batteries in my 'special toy' overheating again?",
"Ever since I got these implants, I feel like people are staring at them and not listening to me. Hey! I'm talking to you!",
"Magnis doesn't believe in elf girls, he thinks we're fake, so I kicked him in the balls. Now he believes...",
"So, who wants to buy an elfgirl a drink?",
"Anybody else sitting here naked?",
"Hey, could someone do me a favor and massage my implants for me, the doctor said I was supposed to do that to keep them soft",
"Would anyone mind if a couple of us elfgirls had an orgy over there by the webcam?",
"I'm tired, can't we just go to bed now?",
"Janine, don't let the door hit you on the ass on the way in your room, Magnis might be injured.",
"I was in Victoria's Secret the other day and found this hot pair of panties, then I remembered that I don't wear them. Oopsie, dropped something and me in this short skirt...",
"... you will never find a more wretched hive of scum and villany ... I love this hub!",
"Oh, ohhhh, ah, ah, ahhh, ahhhhh, unhhh, yes! It's so tight and hard, YES! Looks like I got another piece of jigsaw puzzle to fit, almost done now...",
"*grabs Magnis and proceeds to give him a presidential experience he'll never forget*",
"*Wonders if she should get breast implants, and decides to show them around and see what everyone thinks*",
"*Grabs random user and ravages them with her tongue*",
"For a good time, send me a personal message, the dirtier the better.",
"Whew! It's so hot in here. I'm gonna take off my shirt, any objections?",
"Oh my, its so cold in here my nipples are erect!",
"Can someone help me unbutton my shirt?",
"Are these too big?",
"Can you feel if I have a lump in my breast?",
"Anyone want to Cyber?",
"How does my ass look in these jeans?",
"Has anyone seen my panties?",
"Janine can I borrow your room? Me and Magnis wanna go play a game.",
"LOL!! I forgot to put a bra on today!",
"*Takes off her shirt and begins dancing*",
"I feel an uncontrollable urge to pet a Furry Kitty...",
"ELVES RULE!!!",
"Janine you should get your ears fixed like ours.",
"Where is Magnis? He promised we'd play some games tonight.",
"Hmmm, I wonder whos batteries these are....",
"*Sits down in a chair and forgets to cross her legs*",
"I just realised... I'm not wearing any pants!",
}

--//Responses to question marks in sData
response = {
"I'm an Elf Girl Not an Encyclopedia",
"Yeah! Definately!",
"Nope.",
"Not really sure.",
"What makes you ask that?",
"Of course... O.o",
"I don't know. I'm making this stuff up as I go.",
"Have you tried finding out on the web?",
"Huh?",
"I have no idea.",
"Yes!",
"Ask Janine.",
"Damn Straight!",
"Who knows these things?",
"The answer is probably very ellusive.",
"Are you asking me?",
"How the hell should I know?",
"What kinda question is that to be asking?",
}


--// This function is fired at the serving start
function Main()
SetTimer(5000)
StartTimer()
end

--// This function is fired when a new data arrives

function ChatArrival(curUser, sData)
s,e,cmd = string.find(sData,"%b<>%s++(%S+)")
if cmd ~= nil then
cmd = (string.sub(cmd,1,string.len(cmd)-1))
end
if (cmd == "elfon") then
heh = 1
elf = bot[math.random(1,table.getn(bot))]
SendToAll("[ElfGirl]"..elf,"So Anyways....")
return 1
elseif (cmd == "elfoff") then
heh = 0
elf = bot[math.random(1,table.getn(bot))]
SendToAll ("[ElfGirl]"..elf, "We'll Be Quiet Now")
return 1
end
s,e,inpm = string.find(sData,"$(To:)")
s,e,question = string.find(sData,"(?)")
if question ~= nil and inpm == nil then
qa = 1
SetTimer(math.random(3000,5000))
end
--// name[curUser.sName] = curUser.sName --// for later usages
end

function OnTimer()
if heh == 1 and qa ~= 1 then
SetTimer(math.random(math.mintime,math.maxtime))
elf = bot[math.random(1,table.getn(bot))]
chatter = convos[math.random(1,table.getn(convos))]
SendToAll(prefix..""..elf, chatter)
s,e,jan = string.find(chatter,"(Janine)")
if jan ~= nil then
SendToAll("[Elf]Janine","Shut up "..elf.." you stupid bitch!")
end
s,e,mag = string.find(chatter,"(Magnis)")
if mag ~= nil then
SendToAll("[Elf]Janine",elf.." if you touch my maggie waggy and I'll rip your damn head off bitch!!")
end
s,e,imp = string.find(chatter,"(implant)")
if imp ~= nil then
SendToAll("[Elf]Janine","Implants? I payed $5000 each for mine. Don't they look nice?")
end
if imp ~= nil then
SendToAll(prefix..""..elf,"Really? Yah they look nice may I touch them?")
end
s,e,pan = string.find(chatter,"(panties)")
if pan ~= nil then
SendToAll("[Elf]Janine","Bah... Panties, they just slow you down.")
end
elseif qa == 1 then
qa = 0
SetTimer(math.random(math.mintime,math.maxtime))
elf = bot[math.random(1,table.getn(bot))]
chatter = response[math.random(1,table.getn(response))]
SendToAll(prefix..""..elf, chatter)
end
end

Title:
Post by: johny on 29 March, 2005, 19:39:51
hi,
im testing the elf girlbot on a testserver right now with robocop 10.01b and ptokax 330 build 16.09

im wondering why i cant turn on or off this bot, it seems it does not respond on th commands at all.

any help in this is apriciated
Title:
Post by: Tw?sT?d-d?v on 29 March, 2005, 19:49:05
QuoteOriginally posted by johny
hi,
im testing the elf girlbot on a testserver right now with robocop 10.01b and ptokax 330 build 16.09

im wondering why i cant turn on or off this bot, it seems it does not respond on th commands at all.

any help in this is apriciated



try these commands works ok on my test hub

--// Use +elfon and +elfoff to turn it off and on
Title:
Post by: jiten on 29 March, 2005, 20:03:56
QuoteOriginally posted by johny
hi,
im testing the elf girlbot on a testserver right now with robocop 10.01b and ptokax 330 build 16.09

im wondering why i cant turn on or off this bot, it seems it does not respond on th commands at all.

any help in this is apriciated

Replace this in the script:
function DataArrival(curUser, sData)

with this:
function ChatArrival(curUser, sData)

Best regards.
Title:
Post by: Stravides on 29 March, 2005, 20:10:21
Quotetry these commands works ok on my test hub
--// Use +elfon and +elfoff to turn it off and on
Tried it - it fails on mine too hehehe

BUT if i give it NO prefix it works ie elfon elfoff
not +elfon +elfoff

Code Posted above has been changed to reflect this change..

:)
Title:
Post by: johny on 29 March, 2005, 20:55:29
function ChatArrival(curUser, sData)
s,e,cmd = string.find(sData,"%b<>%s++(%S+)")
if cmd ~= nil then
cmd = (string.sub(cmd,1,string.len(cmd)-1))
end
if (cmd=="+elfon") then
heh = 1
elf = bot[math.random(1,table.getn(bot))]
SendToAll("[ElfGirl]"..elf,"So Anyways....")
return 1
elseif (cmd=="+elfoff") then
heh = 0
elf = bot[math.random(1,table.getn(bot))]
SendToAll ("[ElfGirl]"..elf, "We'll Be Quiet Now")
return 1
end
s,e,inpm = string.find(sData,"$(To:)")
s,e,question = string.find(sData,"(?)")
if question ~= nil and inpm == nil then
qa = 1
SetTimer(math.random(3000,5000))
end
--// name[curUser.sName] = curUser.sName --// for later usages
end

hehehe ok guys now you can see that i tryed that too but it does not work at all

[20:56] <[fow]Johny> +elfoff
[20:57] <[fow]Scarlet> LOL!! I forgot to put a bra on today!
[20:57] <[fow]Johny> elfoff
[20:58] <[fow]Ella> Can you feel if I have a lump in my breast?

thats what i saw after my last scriptrestart
Title:
Post by: jiten on 29 March, 2005, 21:10:23
Well, it's working well with me.
Here is the code:

--// The Elf Girls Random Chatter Bot
--// Revision 0.2b First public release
--// By Chaggydawg
--// Converted to LUA5 by kuipie

--// Use elfon and elfoff to turn it off and on


math.mintime = 100000 --// Minimum time between chatter (milliseconds)
math.maxtime = 200000 --// Maximum time between chatter (milliseconds)
prefix = "[TD]" --// prefix to random chatters names
heh = 1 --// Start script off or on 1=on 0=off

--// Random chatters names
bot = {
"Tina",
"Amy",
"Linda",
"Cynthia",
"Crystal",
"Sadie",
"Sally",
"Scarlet",
"Storm",
"Summer",
"Ella",
"Eartha",
"Magnolia",
"Meara",
"Nikki",
"Christine",
"Samantha",
"Zelda",
}


--//Phrases they say
convos = {
"Did you hear that Magnis came walking out of Janines room the other day with a big smile on his face?",
"My ears are pointy like your pants.",
"Anyone care for an Elf Girl?",
"Anyone Awake? I am...",
"Should I take off my bra and dance for everyone?",
"Isn't it weird how none of us Elf Girls are in the userlist?",
"ACHOOOO!!",
"Janine you need to wash off some of that perfume!",
"Wheres a good Man When I need one?",
"Luke! I am your mother!",
"Paranoia is just reality on a finer scale.",
"The dingo's got my baby!.....",
"Pay no attention to the man behind the curtain! Magnis should be done soon...",
"Fear is the path to the dark side. Fear leads to anger, anger leads to hate, hate, leads to suffffering...",
"One of the definitions of sanity is the ability to tell real from unreal. Soon we'll need a new definition.",
"Ducking for apples - change one letter and it's the story of my life.",
"Sex is like bridge: If you don't have a good partner, you better have a good hand.",
"A girl's legs are her best friends, but the best of friends must part.",
"You ever dance with the devil by the pale moonlight?",
"Being bad feels pretty good, huh?",
"Get up, boy. I bet you can squeal. I bet you can squeal like a pig.",
"If you flash it, they will come.",
"First rule of Janine club is you do not talk about Janine club.",
"Unfortunately, no one can be told what the Matrix is. You have to see it for yourself.",
"I'm trying to free your mind, Janine. But I can only show you the door. You're the one that has to walk through it.",
"To deny our own impulses is to deny the very thing that makes us Elven.",
"Well isn't this place a geographic oddity. Two weeks from everywhere.",
"A woman is the most fiendish instrument of torture ever devised to bedevil the days of man. Elven Girls however are just the opposite.",
"Get your stinking paws off me you damn dirty ape. *Glares at Janine*",
"Hello. My name is Indigo Montoya. You killed my father. Prepare to die.",
"Say hello to my two little friends!",
"Resistance is futile.",
"May the farce be with you.",
"I'll get you my pretty, and your little Janine too.",
"I'm from Iowa. I only work as an Elf Girl.",
"I used to hang out at this other hub, but it sucked. When I'm around, I like to do the sucking...",
"You know, Chaggy is our Owner, so if you're looking for a good time, he can make the arrangements, if you know what I mean...",
"Does this short skirt make me look like a slut or is it that I forgot my panties again?",
"Is it hot in here or are the batteries in my 'special toy' overheating again?",
"Ever since I got these implants, I feel like people are staring at them and not listening to me. Hey! I'm talking to you!",
"Magnis doesn't believe in elf girls, he thinks we're fake, so I kicked him in the balls. Now he believes...",
"So, who wants to buy an elfgirl a drink?",
"Anybody else sitting here naked?",
"Hey, could someone do me a favor and massage my implants for me, the doctor said I was supposed to do that to keep them soft",
"Would anyone mind if a couple of us elfgirls had an orgy over there by the webcam?",
"I'm tired, can't we just go to bed now?",
"Janine, don't let the door hit you on the ass on the way in your room, Magnis might be injured.",
"I was in Victoria's Secret the other day and found this hot pair of panties, then I remembered that I don't wear them. Oopsie, dropped something and me in this short skirt...",
"... you will never find a more wretched hive of scum and villany ... I love this hub!",
"Oh, ohhhh, ah, ah, ahhh, ahhhhh, unhhh, yes! It's so tight and hard, YES! Looks like I got another piece of jigsaw puzzle to fit, almost done now...",
"*grabs Magnis and proceeds to give him a presidential experience he'll never forget*",
"*Wonders if she should get breast implants, and decides to show them around and see what everyone thinks*",
"*Grabs random user and ravages them with her tongue*",
"For a good time, send me a personal message, the dirtier the better.",
"Whew! It's so hot in here. I'm gonna take off my shirt, any objections?",
"Oh my, its so cold in here my nipples are erect!",
"Can someone help me unbutton my shirt?",
"Are these too big?",
"Can you feel if I have a lump in my breast?",
"Anyone want to Cyber?",
"How does my ass look in these jeans?",
"Has anyone seen my panties?",
"Janine can I borrow your room? Me and Magnis wanna go play a game.",
"LOL!! I forgot to put a bra on today!",
"*Takes off her shirt and begins dancing*",
"I feel an uncontrollable urge to pet a Furry Kitty...",
"ELVES RULE!!!",
"Janine you should get your ears fixed like ours.",
"Where is Magnis? He promised we'd play some games tonight.",
"Hmmm, I wonder whos batteries these are....",
"*Sits down in a chair and forgets to cross her legs*",
"I just realised... I'm not wearing any pants!",
}

--//Responses to question marks in sData
response = {
"I'm an Elf Girl Not an Encyclopedia",
"Yeah! Definately!",
"Nope.",
"Not really sure.",
"What makes you ask that?",
"Of course... O.o",
"I don't know. I'm making this stuff up as I go.",
"Have you tried finding out on the web?",
"Huh?",
"I have no idea.",
"Yes!",
"Ask Janine.",
"Damn Straight!",
"Who knows these things?",
"The answer is probably very ellusive.",
"Are you asking me?",
"How the hell should I know?",
"What kinda question is that to be asking?",
}


--// This function is fired at the serving start
function Main()
SetTimer(5000)
StartTimer()
end

--// This function is fired when a new data arrives

function ChatArrival(curUser, sData)
s,e,cmd = string.find(sData,"%b<>%s++(%S+)")
if cmd ~= nil then
cmd = (string.sub(cmd,1,string.len(cmd)-1))
end
if (cmd == "elfon") then
heh = 1
elf = bot[math.random(1,table.getn(bot))]
SendToAll("[ElfGirl]"..elf,"So Anyways....")
return 1
elseif (cmd == "elfoff") then
heh = 0
elf = bot[math.random(1,table.getn(bot))]
SendToAll ("[ElfGirl]"..elf, "We'll Be Quiet Now")
return 1
end
s,e,inpm = string.find(sData,"$(To:)")
s,e,question = string.find(sData,"(?)")
if question ~= nil and inpm == nil then
qa = 1
SetTimer(math.random(3000,5000))
end
--// name[curUser.sName] = curUser.sName --// for later usages
end

function OnTimer()
if heh == 1 and qa ~= 1 then
SetTimer(math.random(math.mintime,math.maxtime))
elf = bot[math.random(1,table.getn(bot))]
chatter = convos[math.random(1,table.getn(convos))]
SendToAll(prefix..""..elf, chatter)
s,e,jan = string.find(chatter,"(Janine)")
if jan ~= nil then
SendToAll("[Elf]Janine","Shut up "..elf.." you stupid bitch!")
end
s,e,mag = string.find(chatter,"(Magnis)")
if mag ~= nil then
SendToAll("[Elf]Janine",elf.." if you touch my maggie waggy and I'll rip your damn head off bitch!!")
end
s,e,imp = string.find(chatter,"(implant)")
if imp ~= nil then
SendToAll("[Elf]Janine","Implants? I payed $5000 each for mine. Don't they look nice?")
end
if imp ~= nil then
SendToAll(prefix..""..elf,"Really? Yah they look nice may I touch them?")
end
s,e,pan = string.find(chatter,"(panties)")
if pan ~= nil then
SendToAll("[Elf]Janine","Bah... Panties, they just slow you down.")
end
elseif qa == 1 then
qa = 0
SetTimer(math.random(math.mintime,math.maxtime))
elf = bot[math.random(1,table.getn(bot))]
chatter = response[math.random(1,table.getn(response))]
SendToAll(prefix..""..elf, chatter)
end
end


Btw, the code to copy is between the horizontal lines.

Best regards.
Title:
Post by: johny on 30 March, 2005, 09:04:20
well i tryed everything i could think off now.
bot runs, but i cant get it responding to the commands elfon or elfoff, nothing shows up.
i also tryed it in pm to the bot it self but still nothing.

i am running ptokax 330 build 16.09 with robocop 10.01b
Title:
Post by: jiten on 30 March, 2005, 09:34:05
Btw, the commands are +elfon and +elfoff.
I guess the problem is in the version of PtokaX u're running. I haven't changed to 16.07+ yet.

Cheers
Title:
Post by: java on 20 August, 2005, 05:10:35
Is there any chance off someone fixing this script so it works 100% now? (Preferbly 100% in 0.3.3.21)
If so pls do.  :]
Coz I cant write script at all. :(
Title:
Post by: DJ Bert on 20 August, 2005, 18:49:12
QuoteOriginally posted by java
Is there any chance off someone fixing this script so it works 100% now? (Preferbly 100% in 0.3.3.21)
If so pls do.  :]
Coz I cant write script at all. :(

I Just converted that script as ops-chat allready on march and it's working perfect.

--// The HubOPS Random Chatter Bot by Troubadour (Original idea ElfGirls by Chaggydawg)
--// Converted to LUA 5 by DJ Bert
--// Use +opson and +opsoff to turn it off and on


math.mintime = 100000 --// Minimum time between chatter (milliseconds)
math.maxtime = 200000 --// Maximum time between chatter (milliseconds)
heh = 1 --// Start script off or on 1=on 0=off

--// Random chatters names
bot = {
"Monja",
"(NL)Bitmepper",
"[NL]jampi",
"[NL]-=DJ_Bert=-",
"[NL]-=DJ_Bert&Monja=-",
"[NL]-=Passie99=-",
"[NL]Laroupe1970",
"[NL]marjo",
"MrBuitenhuizen",
"Troubadour",
"[NL]Ricka",
"[NL]Lexus",
"[NL]Xantia",
"[NL]marjo",
"[NL]-=Druifje=-",
"(NL)Bomarlon",
"[NL]-=HUUB=-",
"[NL]-=Iris=-",
}


--//Phrases they say
convos = {
"Did you hear that [NL]Lexus came walking out of [NL]Ricka room the other day with a big smile on his face?",
"My ears are pointy like your pants.",
"Anyone care for Operators?",
"Anyone Awake? I am...",
"Should I take off my bra and dance for everyone?",
"Isn't it weird how none of us Operators are in the userlist?",
"ACHOOOO!!",
"[NL]Ricka you need to wash off some of that perfume!",
"Wheres a good Man When I need one?",
"Huub! I am your mother!",
"Paranoia is just reality on a finer scale.",
"The dingo's got my baby!.....",
"Pay no attention to the man behind the curtain! [NL]Lexus should be done soon...",
"Fear is the path to the dark side. Fear leads to anger, anger leads to hate, hate, leads to suffffering...",
"One of the definitions of sanity is the ability to tell real from unreal. Soon we'll need a new definition.",
"Ducking for apples - change one letter and it's the story of my life.",
"Sex is like bridge: If you don't have a good partner, you better have a good hand.",
"A girl's legs are her best friends, but the best of friends must part.",
"You ever dance with the devil by the pale moonlight?",
"Being bad feels pretty good, huh?",
"Get up, boy. I bet you can squeal. I bet you can squeal like a pig.",
"If you flash it, they will come.",
"First rule of [NL]Ricka club is you do not talk about [NL]Ricka club.",
"Unfortunately, no one can be told what the Matrix is. You have to see it for yourself.",
"I'm trying to free your mind, [NL]Ricka. But I can only show you the door. You're the one that has to walk through it.",
"To deny our own impulses is to deny the very thing that makes us Operators.",
"Well isn't this place a geographic oddity. Two weeks from everywhere.",
"A woman is the most fiendish instrument of torture ever devised to bedevil the days of man. Operators however are just the opposite.",
"Get your stinking paws off me you damn dirty ape. *Glares at [NL]Ricka*",
"Hello. My name is Schlaudia Kiffer. You killed my father. Prepare to die.",
"Say hello to my two little friends!",
"Resistance is futile.",
"May the farce be with you.",
"I'll get you my pretty, and your little [NL]Ricka too.",
"I'm from Iowa. I only work as Operator.",
"I used to hang out at this other hub, but it sucked. When I'm around, I like to do the sucking...",
"You know, DJ Bert is our Owner, so if you're looking for a good time, he can make the arrangements, if you know what I mean...",
"Does this short skirt make me look like a slut or is it that I forgot my panties again?",
"Is it hot in here or are the batteries in my 'special toy' overheating again?",
"Ever since I got these implants, I feel like people are staring at them and not listening to me. Hey! I'm talking to you!",
"[NL]Lexus doesn't believe in Operators, he thinks we're fake, so I kicked him in the balls. Now he believes...",
"So, who wants to buy an Operator a drink?",
"Anybody else sitting here naked?",
"Hey, could someone do me a favor and massage my implants for me, the doctor said I was supposed to do that to keep them soft",
"Would anyone mind if a couple of us Operators had an orgy over there by the webcam?",
"I'm tired, can't we just go to bed now?",
"[NL]Ricka, don't let the door hit you on the ass on the way in your room, [NL]Lexus might be injured.",
"I was in (NL)Bomarlon's Secret the other day and found this hot pair of panties, then I remembered that I don't wear them. Oopsie, dropped something and me in this short skirt...",
"... you will never find a more wretched hive of scum and villany ... I love this hub!",
"Oh, ohhhh, ah, ah, ahhh, ahhhhh, unhhh, yes! It's so tight and hard, YES! Looks like I got another piece of jigsaw puzzle to fit, almost done now...",
"*grabs [NL]-=Iris=- and proceeds to give him a presidential experience he'll never forget*",
"*Wonders if she should get breast implants, and decides to show them around and see what everyone thinks*",
"*Grabs random user and ravages them with her tongue*",
"For a good time, send me a personal message, the dirtier the better.",
"Whew! It's so hot in here. I'm gonna take off my shirt, any objections?",
"Oh my, it's so cold in here my nipples are erect!",
"Can someone help me unbutton my shirt?",
"Are these too big?",
"Can you feel if I have a lump in my breast?",
"Anyone want to Cyber?",
"How does my ass look in these jeans?",
"Has anyone seen my panties?",
"[NL]Ricka can I borrow your room? Me and [NL]-=HUUB=- wanna go play a game.",
"LOL!! I forgot to put a bra on today!",
"*Takes off her shirt and begins dancing*",
"I feel an uncontrollable urge to pet a Furry Kitty...",
"ELVES RULE!!!",
"[NL]Ricka you should get your ears fixed like ours.",
"Where is [NL]Laroupe1970? He promised we'd play some games tonight.",
"Hmmm, I wonder who's batteries these are....",
"*Sits down in a chair and forgets to cross her legs*",
"I just realised... I'm not wearing any pants!",
"Should I take off my bra and dance for everyone?",
"[NL]-=Druifje=- you need to wash off some of that perfume!",
"Paranoia is just reality on a finer scale.",
"Pay no attention to the man behind the curtain! He should be done soon...",
"One of the definitions of sanity is the ability to tell real from unreal. Soon we'll need a new definition.",
"Ducking for apples - change one letter and it's the story of my life.",
"Sex is like bridge: If you don't have a good partner, you better have a good hand.",
"A girl's legs are her best friends, but the best of friends must part.",
"You ever dance with the devil by the pale moonlight?",
"Being bad feels pretty good, huh?",
"If you flash it, they will come.",
"Unfortunately, no one can be told what the Matrix is. You have to see it for yourself.",
"Well isn't this place a geographic oddity. Two weeks from everywhere.",
"You know, [NL]-=DJ_Bert=- is our Owner, so if you're looking for a good time, he can make the arrangements, if you know what I mean...",
"Ever since I got these implants, I feel like people are staring at them and not listening to me.  Hey! I'm talking to you!",
}

--//Responses to question marks in sData
response = {
"I'm an Operator Not an Encyclopedia",
"Yeah! Definately!",
"Nope.",
"Not really sure.",
"What makes you ask that?",
"Of course... O.o",
"I don't know. I'm making this stuff up as I go.",
"Have you tried finding out on the web?",
"Huh?",
"I have no idea.",
"Yes!",
"Ask [NL]-=Passie99=-.",
"Damn Straight!",
"Who knows these things?",
"The answer is probably very ellusive.",
"Are you asking me?",
"How the hell should I know?",
"What kinda question is that to be asking?",
}


--// This function is fired at the serving start
function Main()
SetTimer(50000)
StartTimer()
end

--// This function is fired when a new data arrives

function ChatArrival(curUser, sData)
s,e,cmd = string.find(sData,"%b<>%s++(%S+)")
if cmd ~= nil then
cmd = (string.sub(cmd,1,string.len(cmd)-1))
end
if (cmd == "opson") then
heh = 1
elf = bot[math.random(1,table.getn(bot))]
SendToAll(""..elf,"So Anyways....")
return 1
elseif (cmd == "opsoff") then
heh = 0
elf = bot[math.random(1,table.getn(bot))]
SendToAll (""..elf, "We'll Be Quiet Now")
return 1
end
s,e,inpm = string.find(sData,"$(To:)")
s,e,question = string.find(sData,"(?)")
if question ~= nil and inpm == nil then
qa = 1
SetTimer(math.random(120000,180000))
end
--// name[curUser.sName] = curUser.sName --// for later usages
end

function OnTimer()
if heh == 1 and qa ~= 1 then
SetTimer(math.random(math.mintime,math.maxtime))
elf = bot[math.random(1,table.getn(bot))]
chatter = convos[math.random(1,table.getn(convos))]
SendToAll(""..elf, chatter)
s,e,mon = string.find(chatter,"(Monja)")
if mon ~= nil then
SendToAll("Monja","Shut up "..elf.." you stupid bitch!")
end
s,e,ber = string.find(chatter,"([NL]-=DJ_Bert=-)")
if ber ~= nil then
SendToAll("[NL]-=DJ_Bert=-",elf.." if you touch my maggie waggy and I'll rip your damn head off bitch!!")
end
s,e,iri = string.find(chatter,"([NL]-=Iris=-)")
if iri ~= nil then
SendToAll("[NL]-=Iris=-","Implants? I payed $5000 each for mine. Don't they look nice?")
end
if imp ~= nil then
SendToAll(""..elf,"Really? Yah they look nice may I touch them?")
end
s,e,huu = string.find(chatter,"([NL]-=HUUB=-)")
if huu ~= nil then
SendToAll("[NL]-=HUUB=-","Bah... Panties, they just slow you down.")
end
elseif qa == 1 then
qa = 0
SetTimer(math.random(math.mintime,math.maxtime))
elf = bot[math.random(1,table.getn(bot))]
chatter = response[math.random(1,table.getn(response))]
SendToAll(""..elf, chatter)
end
end



Grtzzz

DJ Bert
Title: Re: Elf girls
Post by: Madman on 04 March, 2006, 21:38:56

--// The Elf Girls Random Chatter Bot
--// Revision 0.2b First public release
--// By Chaggydawg
--// Converted to LUA5 by kuipie
-- Added: Option to use online users instead, request by (uk)jay, coded by Madman, 04.03.06

--// Use Elfon and Elfoff to turn it off and on

math.mintime = 100000 --// Minimum time between chatter (milliseconds)
math.maxtime = 200000 --// Maximum time between chatter (milliseconds)
prefix = "[TD]" --// prefix to random chatters names
UseUsers = 1 -- if Set to 1, use usernames as botnames, skip scripted prefix, 1=on/nil=off
heh = 1 --// Start script off or on 1=on 0=off

--// Random chatters names
Bot = {
"Tina",
"Amy",
"Linda",
"Cynthia",
"Crystal",
"Sadie",
"Sally",
"Scarlet",
"Storm",
"Summer",
"Ella",
"Eartha",
"Magnolia",
"Meara",
"Nikki",
"Christine",
"Samantha",
"Zelda",
}

--//Phrases they say
convos = {
"Did you hear that Magnis came walking out of Janines room the other day with a big smile on his face?",
"My ears are pointy like your pants.",
"Anyone care for an Elf Girl?",
"Anyone Awake? I am...",
"Should I take off my bra and dance for everyone?",
"Isn't it weird how none of us Elf Girls are in the userlist?",
"ACHOOOO!!",
"Janine you need to wash off some of that perfume!",
"Wheres a good Man When I need one?",
"Luke! I am your mother!",
"Paranoia is just reality on a finer scale.",
"The dingo's got my baby!.....",
"Pay no attention to the man behind the curtain! Magnis should be done soon...",
"Fear is the path to the dark side. Fear leads to anger, anger leads to hate, hate, leads to suffffering...",
"One of the definitions of sanity is the ability to tell real from unreal. Soon we'll need a new definition.",
"Ducking for apples - change one letter and it's the story of my life.",
"Sex is like bridge: If you don't have a good partner, you better have a good hand.",
"A girl's legs are her best friends, but the best of friends must part.",
"You ever dance with the devil by the pale moonlight?",
"Being bad feels pretty good, huh?",
"Get up, boy. I bet you can squeal. I bet you can squeal like a pig.",
"If you flash it, they will come.",
"First rule of Janine club is you do not talk about Janine club.",
"Unfortunately, no one can be told what the Matrix is. You have to see it for yoursElf.",
"I'm trying to free your mind, Janine. But I can only show you the door. You're the one that has to walk through it.",
"To deny our own impulses is to deny the very thing that makes us Elven.",
"Well isn't this place a geographic oddity. Two weeks from everywhere.",
"A woman is the most fiendish instrument of torture ever devised to bedevil the days of man. Elven Girls however are just the opposite.",
"Get your stinking paws off me you damn dirty ape. *Glares at Janine*",
"Hello. My name is Indigo Montoya. You killed my father. Prepare to die.",
"Say hello to my two little friends!",
"Resistance is futile.",
"May the farce be with you.",
"I'll get you my pretty, and your little Janine too.",
"I'm from Iowa. I only work as an Elf Girl.",
"I used to hang out at this other hub, but it sucked. When I'm around, I like to do the sucking...",
"You know, Chaggy is our Owner, so if you're looking for a good time, he can make the arrangements, if you know what I mean...",
"Does this short skirt make me look like a slut or is it that I forgot my panties again?",
"Is it hot in here or are the batteries in my 'special toy' overheating again?",
"Ever since I got these implants, I feel like people are staring at them and not listening to me. Hey! I'm talking to you!",
"Magnis doesn't believe in Elf girls, he thinks we're fake, so I kicked him in the balls. Now he believes...",
"So, who wants to buy an Elfgirl a drink?",
"Anybody else sitting here naked?",
"Hey, could someone do me a favor and massage my implants for me, the doctor said I was supposed to do that to keep them soft",
"Would anyone mind if a couple of us Elfgirls had an orgy over there by the webcam?",
"I'm tired, can't we just go to bed now?",
"Janine, don't let the door hit you on the ass on the way in your room, Magnis might be injured.",
"I was in Victoria's Secret the other day and found this hot pair of panties, then I remembered that I don't wear them. Oopsie, dropped something and me in this short skirt...",
"... you will never find a more wretched hive of scum and villany ... I love this hub!",
"Oh, ohhhh, ah, ah, ahhh, ahhhhh, unhhh, yes! It's so tight and hard, YES! Looks like I got another piece of jigsaw puzzle to fit, almost done now...",
"*grabs Magnis and proceeds to give him a presidential experience he'll never forget*",
"*Wonders if she should get breast implants, and decides to show them around and see what everyone thinks*",
"*Grabs random user and ravages them with her tongue*",
"For a good time, send me a personal message, the dirtier the better.",
"Whew! It's so hot in here. I'm gonna take off my shirt, any objections?",
"Oh my, its so cold in here my nipples are erect!",
"Can someone help me unbutton my shirt?",
"Are these too big?",
"Can you feel if I have a lump in my breast?",
"Anyone want to Cyber?",
"How does my ass look in these jeans?",
"Has anyone seen my panties?",
"Janine can I borrow your room? Me and Magnis wanna go play a game.",
"LOL!! I forgot to put a bra on today!",
"*Takes off her shirt and begins dancing*",
"I feel an uncontrollable urge to pet a Furry Kitty...",
"ELVES RULE!!!",
"Janine you should get your ears fixed like ours.",
"Where is Magnis? He promised we'd play some games tonight.",
"Hmmm, I wonder whos batteries these are....",
"*Sits down in a chair and forgets to cross her legs*",
"I just realised... I'm not wearing any pants!",
}

--//Responses to question marks in sData
response = {
"I'm an Elf Girl Not an Encyclopedia",
"Yeah! Definately!",
"Nope.",
"Not really sure.",
"What makes you ask that?",
"Of course... O.o",
"I don't know. I'm making this stuff up as I go.",
"Have you tried finding out on the web?",
"Huh?",
"I have no idea.",
"Yes!",
"Ask Janine.",
"Damn Straight!",
"Who knows these things?",
"The answer is probably very ellusive.",
"Are you asking me?",
"How the hell should I know?",
"What kinda question is that to be asking?",
}


--// This function is fired at the serving start
function Main()
Users = {}
SetTimer(5000)
StartTimer()
if UseUsers then
for _,oUser in frmHub:GetOnlineUsers() do
table.insert(Users, oUser.sName)
end
end
end

--// This function is fired when a new data arrives

function ChatArrival(curUser, sData)
s,e,cmd = string.find(sData,"%b<>%s++(%S+)")
if cmd ~= nil then
cmd = (string.sub(cmd,1,string.len(cmd)-1))
end
if (cmd == "elfon") then
heh = 1
if UseUsers then
Elf = Users[math.random(1, table.getn(Users))]
else
Elf = Bot[math.random(1,table.getn(Bot))]
end
SendToAll("[ElfGirl]"..Elf,"So Anyways....")
return 1
elseif (cmd == "elfoff") then
heh = 0
if UseUsers then
Elf = Users[math.random(1, table.getn(Users))]
else
Elf = Bot[math.random(1,table.getn(Bot))]
end
SendToAll ("[ElfGirl]"..Elf, "We'll Be Quiet Now")
return 1
end
s,e,inpm = string.find(sData,"$(To:)")
s,e,question = string.find(sData,"(?)")
if question ~= nil and inpm == nil then
qa = 1
SetTimer(math.random(3000,5000))
end
--// name[curUser.sName] = curUser.sName --// for later usages
end

function OnTimer()
if heh == 1 and qa ~= 1 then
SetTimer(math.random(math.mintime,math.maxtime))
if UseUsers then
Elf = Users[math.random(1, table.getn(Users))]
else
Elf = Bot[math.random(1,table.getn(Bot))]
end
chatter = convos[math.random(1,table.getn(convos))]
if UseUsers then
SendToAll(Elf, chatter)
else
SendToAll(prefix..""..Elf, chatter)
end
s,e,jan = string.find(chatter,"(Janine)")
if jan ~= nil then
SendToAll("[Elf]Janine","Shut up "..Elf.." you stupid bitch!")
end
s,e,mag = string.find(chatter,"(Magnis)")
if mag ~= nil then
SendToAll("[Elf]Janine",Elf.." if you touch my maggie waggy and I'll rip your damn head off bitch!!")
end
s,e,imp = string.find(chatter,"(implant)")
if imp ~= nil then
SendToAll("[Elf]Janine","Implants? I payed $5000 each for mine. Don't they look nice?")
end
if imp ~= nil then
if UseUsers then
SendToAll(Elf,"Really? Yah they look nice may I touch them?")
else
SendToAll(prefix..""..Elf,"Really? Yah they look nice may I touch them?")
end
end
s,e,pan = string.find(chatter,"(panties)")
if pan ~= nil then
SendToAll("[Elf]Janine","Bah... Panties, they just slow you down.")
end
elseif qa == 1 then
qa = 0
SetTimer(math.random(math.mintime,math.maxtime))
if UseUsers then
Elf = Users[math.random(1, table.getn(Users))]
else
Elf = Bot[math.random(1,table.getn(Bot))]
end
chatter = response[math.random(1,table.getn(response))]
if UseUsers then
SendToAll(Elf, chatter)
else
SendToAll(prefix..""..Elf, chatter)
end
end
end
Title: Re: Elf girls
Post by: Troubadour on 16 March, 2007, 23:48:38
For those who run a dutch hub and like jokes, sayings and one-liners.

http://nederfun.no-ip.com/HubOps.rar (http://nederfun.no-ip.com/HubOps.rar)
Title: Re: Elf girls
Post by: dodgeviper on 30 March, 2007, 17:28:28
[21:00] Syntax D:\Hubbackup\Downloads\scripts\elfgirls.lua:187: bad argument #2 to 'random' (interval is empty)
[21:00] Syntax D:\Hubbackup\Downloads\scripts\elfgirls.lua:158: bad argument #2 to 'random' (interval is empty)


i get this error when i start the script...plz help
Title: Re: Elf girls
Post by: Tw?sT?d-d?v on 30 March, 2007, 18:05:59
Try getting the script again m8     tested on latest beta version and all works here

[16:56] No syntax errors in script file elf.lua
[16:56] Script started.
[16:56] Script stopped.
[16:56] No syntax errors in script file elf.lua
[16:56] Script started.
[16:56] Script stopped.