PtokaX forum

Archive => Archived 5.1 boards => Request for scripts => Topic started by: JaPaja on 13 November, 2006, 23:14:12

Title: Bot - How is it called?
Post by: JaPaja on 13 November, 2006, 23:14:12
Hello,

i want ask if there exist any bot, that show new connected user in mainchat this:

Nick: ??????
IP: ??????
Clas: ?????

How is he called? I cant find him.

JaPaja
Title: Re: Bot - How is it called?
Post by: Markitos on 13 November, 2006, 23:33:56
Here's one but ultra simple  :D search for log in info or something like that...I'll be away from the forum due holidays so someone will help you...
Code (lua) Select

sBot = frmHub:GetHubBotName()
NewUserConnected = function(user)
local profile = GetProfileName(user.iProfile) or "Unregistered"
user:SendData(sBot,"Hi "..user.sName.." your ip is "..user.sIP.." as"..profile)
end
Title: Re: Bot - How is it called?
Post by: CrazyGuy on 13 November, 2006, 23:37:44

NewUserConnected = function(User)
SendToAll(frmHub:GetHubBotName(), frmHub:GetHubName().." gives a welcome to:\r\n"Nickname:\t"..User.sName.."\r\nIP:\t"..User.sIP.."\r\nProfile:\t"..GetProfileName(User.iProfile))
end
OpConnected = NewUserConnected


Not that I recommend throwing IPs in mainchat  :-\
Title: Re: Bot - How is it called?
Post by: CrazyGuy on 14 November, 2006, 12:27:28
Thnx Mutor for the finishing touches  ;D