PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: Nafigs on 03 November, 2003, 06:02:59

Title: when connects
Post by: Nafigs on 03 November, 2003, 06:02:59
Could anyone help me??? I need a script that shows users Nick and IP when he connects and disconnects in a PM to all OP's. PLZZZZ HELP ME:) Sorry abaout my english!
Title: Fast one
Post by: kepp on 03 November, 2003, 08:33:23
-----------------------
-- Simple bot by Kepp 04/11/03
-- Request from Nafigs
-----------------------
sBot = "Thong" -- :S

function NewUserConnected(user)
user:SendPmToOps(sBot, "A user just entered the hub, Name: "..user.sName.." IP: "..user.sIP)
end

function UserDisconnected(user)
user:SendPmToOps(sBot, "A user just left the hub, Name: "..user.sName.." IP: "..user.sIP)
end
Title:
Post by: Ron_Doe on 03 November, 2003, 09:26:09
is it possible to rewrite  this script so you can send  this message to a user.
I got this chat bot  that i use for kick reports, would like to get this messages to pop up there..


Ron
Title:
Post by: kepp on 03 November, 2003, 09:41:16
I don't know if that's possible from this script but try to add Your Chatbot name where it says "ChatBotName"
:D

-----------------------
-- Simple bot by Kepp 04/11/03
-- Request from Ron_Doe
-----------------------

function NewUserConnected(user)
user:SendPM(ChatBotName, "A user just entered the hub, Name: "..user.sName.." IP: "..user.sIP)
end

function UserDisconnected(user)
user:SendPM(ChatBotName, "A user just left the hub, Name: "..user.sName.." IP: "..user.sIP)
end

??
Title:
Post by: pHaTTy on 03 November, 2003, 10:46:54
I dohnt understadn what you mean by send to a user
Title:
Post by: NightLitch on 03 November, 2003, 10:53:55
This one should do What you want...

-----------------------------------------------------------------
-- Simple Bot That will do what you want
-- By NightLitch
----------------------------------------------------------------
--// Put your BotName here
Bot = "Yubber"
--// Put your ChatBotName here
ChatBotName = "Chatter"


function NewUserConnected(user)
user:SendPM(ChatBotName, "A user just entered the hub, Name: "..user.sName.." IP: "..user.sIP)
user:SendPmToOps(Bot, "A user just entered the hub, Name: "..user.sName.." IP: "..user.sIP)
end

function UserDisconnected(user)
user:SendPM(ChatBotName, "A user just left the hub, Name: "..user.sName.." IP: "..user.sIP)
user:SendPmToOps(Bot, "A user just left the hub, Name: "..user.sName.." IP: "..user.sIP)
end

And If you want all the lines to be sent to the ChatBot just Change (  Bot = "Yubber"  )  to your ChatBotName...

Would look like this:

Bot = "Chatter"
ChatBotName = "Chatter"

OR

just change:

user:SendPmToOps(Bot,

to

user:SendPmToOps(ChatBotName,



/NightLitch
Title:
Post by: DarkElf on 03 November, 2003, 10:58:45
like this??


-----------------------------------------------------------------
-- Simple Bot That will do what you want
-- By NightLitch
----------------------------------------------------------------
--// Put your BotName here
Bot = "Yubber"



function NewUserConnected(user)
user:SendPmToNick(Bot, "You have just entered the hub, with Name: "..user.sName.." and IP: "..user.sIP)
user:SendPmToOps(Bot, "A user just entered the hub, Name: "..user.sName.." IP: "..user.sIP)
end

function UserDisconnected(user)
user:SendPmToNick(Bot, "You have just left the hub, with Name: "..user.sName.." and IP: "..user.sIP)
user:SendPmToOps(Bot, "A user just left the hub, Name: "..user.sName.." IP: "..user.sIP)
end


The user received the 1? message and the operator the 2?..
Title:
Post by: Ron_Doe on 03 November, 2003, 14:34:40
QuoteOriginally posted by (uk-kingdom)pH?tt??
I dohnt understadn what you mean by send to a user

I got a chat bot  that i use for reporting kickmessages to from my fakescanner.
And with this script i could also report who is entering and who is leaving the hub.
All my op's can sign in to this chat if they want to look at the reports.

Thanks for the replys ppl  :-)    i will try to make it work in my hub
Title:
Post by: pHaTTy on 03 November, 2003, 14:42:01
Hmmm i c, thats a pretty bit much script, hmmmmmmm i will have a think about a easy way of doin it
Title:
Post by: pHaTTy on 03 November, 2003, 14:48:30
Ok imb, now what do you want sent to the Ops when a user enters?

UsersName
Ip

anything else?
Title:
Post by: Ron_Doe on 03 November, 2003, 14:57:22
Just username and ip would be fine. think it will be too mutch info  if userinfo would be listed

tryed those other scripts   but nothing would be listed in the chatbot    ,  i might have done something wrong again    :P
Title:
Post by: Nafigs on 03 November, 2003, 17:07:50
Thanks, thats what i was looking for:)))


http://caurule.netfirms.com
Title:
Post by: Nafigs on 03 November, 2003, 17:18:10
hmmmm, i don't know, maybe i'am a stupid one, but this one, doesn't work:(


-- Simple bot by Kepp 04/11/03

-- Request from Nafigs

-----------------------

sBot = "Thong" -- :S



function NewUserConnected(user)

user:SendPmToOps(sBot, "A user just entered the hub, Name: "..user.sName.." IP: "..user.sIP)

end



function UserDisconnected(user)

user:SendPmToOps(sBot, "A user just left the hub, Name: "..user.sName.." IP: "..user.sIP)

end


I put it in the scripts but he doesn't show nothing, when connects or disconnects:(((
Title:
Post by: Nafigs on 03 November, 2003, 17:44:20
Maybe it doesn't work with TD4, if it's so, could someone put one that will work with TD4:) Sorry about my english!
Title:
Post by: pHaTTy on 03 November, 2003, 18:30:41
QuoteOriginally posted by Ron_Doe
Just username and ip would be fine. think it will be too mutch info  if userinfo would be listed

tryed those other scripts   but nothing would be listed in the chatbot    ,  i might have done something wrong again    :P

Huh you want it to be in the chatbot ?

Cant do it if you want OPs to be able to select wether they see it or not, it will have to be a seperate bot altogether...........:S

Or i cud have misunderstood
Title:
Post by: Ron_Doe on 03 November, 2003, 18:54:53
Yes i got another device to handle  that  , only thing i would like to have  is a script who is gathering info about  those who enter and leaves    and send the username and the ip  to a username of my choise.
Title:
Post by: Nafigs on 03 November, 2003, 19:06:33
So, could anyone help me with that what i was saying about TD4 and that script???


http://caurule.netfirms.com
Title:
Post by: Nafigs on 04 November, 2003, 01:09:59
HELLOOO!!!

Is there anyone out there who could give me this script that shows users nick and IP when he connects and disconnects whith works in a TD4???
Title: Login welcome and bye message
Post by: [NL]Portal on 06 August, 2004, 10:38:11
Don`t make this inside your hub , because the mldc donkey shit will rulez the script.

That means you see everybody come inside and go out, also the users from donkey keys.
And also persons who are trying to connect and that they automaticly will be disconnected..

So my advise will be .
Don`t use scripts like that..
I have tryed also , no good results.