hubadd script
 

hubadd script

Started by Annie, 17 April, 2008, 13:48:00

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Annie

I had this in the old hub and wondered if it could be converted for the new 0.4.0.0e hub please


-- 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))

Annie

Thank you very much works great :D

SMF spam blocked by CleanTalk