hubadd script
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

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