Author Topic: hubadd script  (Read 1427 times)

0 Members and 1 Guest are viewing this topic.

Offline Annie

  • Double Ace
  • *
  • Posts: 104
  • Karma: +13/-5
hubadd script
« on: 17 April, 2008, 13:48:00 »
I had this in the old hub and wondered if it could be converted for the new 0.4.0.0e hub please


Code: [Select]
-- Customize your own Ontimer Hub-Addmessage
-- to be added in txt directory of RoboCop (drive:\PtokaX\script\txt)
-- add '--' at the begin of any info text line to cancel that line of text
-- use tabs '\t', or remove them, to correct the right border line if necessary

SendAdMessage = function()
local weeks,days,hours,minutes,seconds = GetUptimeSeconds(frmHub:GetUpTime())
local name,version = getHubVersion()
local info = "\r\n\r\n"
info = info.."  ...\r\n"
info = info.."  ? Hub Information:\r\n"
info = info.."  ...\r\n"
info = info.."  ? Hub owner:\t\t\t"..(tSettings.HubOwner or "n/a").."\r\n"
info = info.."  ? Hub name:\t\t\t"..(frmHub:GetHubName() or "n/a").."\r\n"
info = info.."  ? Hub address:\t\t\t"..frmHub:GetHubAddress()..":"..frmHub:GetHubPort().."\r\n"
info = info.."  ? Hub description:\t\t\t"..(frmHub:GetHubDescr() or "n/a").."\r\n"
info = info.."  ? Hub uptime:\t\t\t"..weeks.." Weeks "..days.." Days "..hours.." Hours "..minutes.." Minutes and "..seconds.." Seconds\r\n"
info = info.."  ? Hub software:\t\t\t"..name.." "..version.." running RoboCop v"..sScriptVersion.." - by Optimus? & Octavo\r\n"
info = info.."  ? Hub web address:\t\t"..(tSettings.WebAdress or "n/a").."\r\n"
info = info.."  ? Hub share amount:\t\t"..ConvShare(frmHub:GetCurrentShareAmount()).."\r\n"
info = info.."  ? Hub users (actual/max):\t\t"..(frmHub:GetUsersCount() or 0).." / "..(frmHub:GetMaxUsers() or 0).."\r\n"
info = info.."  ? Hub users peak (actual/max):\t"..(frmHub:GetActualUsersPeak() or 0).." / "..(frmHub:GetMaxUsersPeak() or 0).."\r\n"
info = info.."  ...\r\n"
info = info.."  ? Announcements:\r\n"
info = info.."  ...\r\n"
info = info.."  ? Hub Radio Website: \r\n"
                info = info.."  ? Radio Link  \r\n"
info = info.."  ...\r\n"
SendToAll(tSettings.sBot, info)
end

I know its a robo script but can somebody make it so it runs in the hub because im not using robo no more or if you could make one similar it normally rotates about every hour    thanks :o))
« Last Edit: 17 April, 2008, 13:50:13 by Annie »

PtokaX forum

hubadd script
« on: 17 April, 2008, 13:48:00 »

Offline Annie

  • Double Ace
  • *
  • Posts: 104
  • Karma: +13/-5
Re: hubadd script
« Reply #1 on: 18 April, 2008, 10:47:34 »
Thank you very much works great :D

PtokaX forum

Re: hubadd script
« Reply #1 on: 18 April, 2008, 10:47:34 »