PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: Janhouse on 24 April, 2004, 14:11:16

Title: hub info script
Post by: Janhouse on 24 April, 2004, 14:11:16
I am looking for hub info script. I need script that every 15 minutes write message in main chat window.
It is like robocop user info.

<>========<>
            HUB IP: ***
            HUB ...: ***
           <>========<>

If somebody have it, please give it to me. Thanx...
Title:
Post by: nErBoS on 24 April, 2004, 15:14:34
Hi,

Hope it helps...

--Requested by Janhouse
--Made by nErBoS

sBot = "HUB-Infor"

HubAdrress = "1.1.1.1" --Write here your HubAdress
Time = 15 --Time in minutes btw every show

min = 60

function Main()
frmHub:RegBot(sBot)
iClock = clock()
StartTimer()
end

function OnTimer()
if (clock() >= iClock + Time*min) then
local sTmp = ""
sTmp = sTmp.."<>===============================<>\r\n"
sTmp = sTmp.."HUB Name: "..frmHub:GetHubName().."\r\n"
sTmp = sTmp.."HUB IP: "..HubAdrress.."\r\n"
sTmp = sTmp.."HUB Description: "..frmHub:GetHubDescr().."\r\n"
sTmp = sTmp.."HUB Redirect Address: "..frmHub:GetRedirectAddress().."\r\n"
sTmp = sTmp.."HUB Max Users: "..frmHub:GetMaxUsers().."\r\n"
sTmp = sTmp.."<>===============================<>"
SendToAll(sBot, sTmp)
iClock = clock()
end
end

Best regards, nErBoS
Title:
Post by: Janhouse on 24 April, 2004, 18:20:46
Thanx!  :D  8)  :)  ;)