PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: [G-T-E]Gate? on 19 April, 2004, 16:36:36

Title: Responce Bot 4 mess from deflood.lua
Post by: [G-T-E]Gate? on 19 April, 2004, 16:36:36
Iam in need of a bot to receive responces(messeges) from deflood.lua made by Plop deflood.lua by Plop (http://www.plop.nl/ptokaxbots/Plop/deflood.lua)
The script says that
-----------------------------------------------------------------------
-- name of the opchat so the output of this script shows up there instead of it's own window
-- comment this for own window (aka place -- before it like this text has)
opchat = "-OPChat-"  -- fill in the name here if you use a scripted opchat
--opchat = frmHub:GetOpChatName()     -- uncomment this and make the above a comment if you use the ptokax build-in opchat
-----------------------------------------------------------------------
but I dont want the responces(messeges) coming to my ptokax build-in opchat. It doesnt have to be a large script at all.
A link to the script would be Greatfull
Title:
Post by: Devastator on 19 April, 2004, 17:16:02
me mys self would put

opchat = "-OPChat-" -- fill in the name here if you use a scripted opchat

change the name from "-OPChat-" to something else and it wont pop up in ur own opchat.

eg. "opchat = "Deflood" -- fill in the name here if you use a scripted opchat"

and a seperate bot that is not in the userlist will pop up only wen flooders are being used in ur hub.

I hope this helps!

and i apolgise if u dnt wanna do that!

Devastator
Title:
Post by: [G-T-E]Gate? on 19 April, 2004, 21:38:39
I tried ur suggestion by doing the following,

-----------------------------------------------------------------------
-- name of the opchat so the output of this script shows up there instead of it's own window
-- comment this for own window (aka place -- before it like this text has)
opchat = "Deflood" -- fill in the name here if you use a scripted opchat
--opchat = frmHub:GetOpChatName() -- uncomment this and make the above a comment if you use the ptokax build-in opchat
-----------------------------------------------------------------------
 and the mess comes up in main chat but as> Private message from Deflood: McUrex(rus) - 04/19/04 18:01:11 - banned for using a hub flooder!! (banned on description)

 Then I tried this aswell and the mess comes up in my OPchat
-----------------------------------------------------------------------
-- name of the opchat so the output of this script shows up there instead of it's own window
-- comment this for own window (aka place -- before it like this text has)
--opchat = "Deflood" -- fill in the name here if you use a scripted opchat
opchat = frmHub:GetOpChatName() -- uncomment this and make the above a comment if you use the ptokax build-in opchat
-----------------------------------------------------------------------
I have also below tried and still comes up in OpChat
-----------------------------------------------------------------------
-- name of the opchat so the output of this script shows up there instead of it's own window
-- comment this for own window (aka place -- before it like this text has)
opchat = "Deflood" -- fill in the name here if you use a scripted opchat
opchat = frmHub:GetOpChatName() -- uncomment this and make the above a comment if you use the ptokax build-in opchat
-----------------------------------------------------------------------
 I still would appreciate  a stand alone bot to receive the messeges..
Plezzzzz
Title:
Post by: plop on 19 April, 2004, 22:23:06
try this.
opchat = Bot
deflood has 2 be registered in the userlist, if so the msg's popup in it's own window.

lua sees the difference between Deflood and deflood, thats prob whats causing the problem on your setup.

plop
Title:
Post by: imby on 06 August, 2004, 02:49:07
how do you change it so you don't get any responses from it at all. or so the responses only go to one particular op, not everyone of your ops
Title:
Post by: plop on 06 August, 2004, 05:50:50
QuoteOriginally posted by imby
how do you change it so you don't get any responses from it at all. or so the responses only go to one particular op, not everyone of your ops
in deflood you can find the next function, replace this by this modded version and fill in your nick.
function StoreLog(nick, msg)
   appendto(file)
   if opchat then
      SendPmToNick("the_recieving_nick", opchat, msg.."|")
   else
      SendPmToNick("the_recieving_nick", Bot, msg.."|")
   end
   write(msg.."\n")
   writeto()
   msg = nil
end

plop
Title:
Post by: imby on 06 August, 2004, 06:36:08
cheers *bows in grattitude and respect* . i have a question, what would happen if the user selected was offline when a response was sent to it.
Title:
Post by: plop on 07 August, 2004, 01:47:49
QuoteOriginally posted by imby
cheers *bows in grattitude and respect* . i have a question, what would happen if the user selected was offline when a response was sent to it.
you may rise again. lol
if the nick isn't in the hub then only the log is written.

plop