PtokaX forum

Archive => Archived 5.0 boards => Request for scripts => Topic started by: CaSaNoVa on 10 October, 2005, 01:32:57

Title: Hub Configuration
Post by: CaSaNoVa on 10 October, 2005, 01:32:57
Hi to all :)

I want to know if it's possible a script that takes configuration of hub, as !hconfig on robocop script.

 :rolleyes:
Title:
Post by: CaSaNoVa on 10 October, 2005, 16:37:11
And how? :)  8o
Title:
Post by: CaSaNoVa on 11 October, 2005, 17:49:32
okkkkkkkkk tkx ^^
Title:
Post by: 6Marilyn6Manson6 on 11 October, 2005, 18:02:25
You see this:


local tmp = "\r\n\r\n\t---<>-------------------------------------------------------------------------------------------<>---\r\n"..
"\t"..tabspace.."[ "..frmHub:GetHubName().." ]\r\n"..
"\t---<>-------------------------------------------------------------------------------------------<>---\r\n"..
"\tHub Desc: \t"..frmHub:GetHubDescr().."\r\n"..
"\tHub Topic: \t"..Topic.."\r\n"..
"\tHub Owner: \t"..HubOwner..", currently: "..OwnerIn.."\r\n"..
"\tHub Addy: \t"..frmHub:GetHubAddress().."\t port: "..frmHub:GetHubPort().."\r\n"..
"\tHub Stats: \t"..Webaddy.."\r\n"..
"\tHub Time: \t( "..os.date("%B %d %Y %X ").." ) - "..TZone .."\r\n"..
"\tBot Name: \t"..frmHub:GetHubBotName().."\r\n"..
"\tSec. Alias: \t"..frmHub:GetHubSecAliasName().."\r\n"..
"\tOps Chat: \t"..frmHub:GetOpChatName().."\r\n"..
"\tRedirect To: \t"..frmHub:GetRedirectAddress().."\r\n"..
"\tReg Server: \t"..GetEnable(frmHub:GetRegServer()).."\r\n"..
"\tRedirect All: \t"..GetStatus(frmHub:GetRedirectAll()).."\r\n"..
"\tRedirect Full: \t"..GetStatus(frmHub:GetRedirectFull()).."\r\n"..
"\tMin Slots: \t"..frmHub:GetMinSlots().." per user.\r\n"..
"\tMax Slots: \t"..frmHub:GetMaxSlots().." per user.\r\n"..
"\tSlot Ratio: \t"..frmHub:GetSlotRatio().." slot(s) per "..frmHub:GetHubRatio().." hub(s).\r\n"..
"\tMax Hubs: \t"..frmHub:GetMaxHubs().." per user.\r\n"..
"\tMax Users: \t"..frmHub:GetMaxUsers().."\r\n"..
"\tMax Logins: \t"..frmHub:GetMaxLogins().."\r\n"..
"\tMin Share: \t"..string.format("%.2f GB",frmHub:GetMinShare()/1024).."\r\n"..
"\tHub Share: \t"..string.format("%.2f TB",frmHub:GetCurrentShareAmount()/(1024 * 1024 * 1024 * 1024)).."\r\n"..
"\tMasters Online: \t"..cProfile("Master").."\r\n"..
"\tOps Online: \t"..cProfile("Operator").."\r\n"..
"\tVips Online: \t"..cProfile("VIP").."\r\n"..
"\tRegs Online: \t"..cProfile("REG").."\r\n"..
"\t---<>-------------------------------------------------------------------------------------------<>---\r\n"..
"\tTotal Online:\t\t"..table.getn(frmHub:GetOnlineOperators()) + table.getn(frmHub:GetOnlineNonOperators()).."\r\n"..
"\t---<>-------------------------------------------------------------------------------------------<>---\r\n"..
"\tNotice(s):\r\n"..
"\t-- "..Notice1.."\r\n"..
"\t-- "..Notice2.."\r\n"..
"\t-- "..Notice3.."\r\n"..
"\t---<>-------------------------------------------------------------------------------------------<>---\r\n"


This part can be the base of your script... c ya
Title:
Post by: 6Marilyn6Manson6 on 12 October, 2005, 12:18:17
QuoteOriginally posted by Mutor
flaws look mighty familiar :P

Yeah Mutor... I have stripped it from your script AdTimer 1.1d :). C ya