PtokaX forum

Archive => Archived 5.1 boards => Request for scripts => Topic started by: Djdirect on 22 August, 2007, 11:25:50

Title: script that changes my public hub in privatehub has a precise hour
Post by: Djdirect on 22 August, 2007, 11:25:50
hello  all  :)
I look for a script that changes my public hub in private hub  has a precise hour 

ex:  23h - 8h clock in private hub
       8h - 23h clock go to public hub

I hope that I bore you not too much thank you ;D
sorry for my english
Title: Re: script that changes my public hub in privatehub has a precise hour
Post by: Leun on 22 August, 2007, 11:41:48
its already done:

http://forum.ptokax.org/index.php?topic=5025.0 (http://forum.ptokax.org/index.php?topic=5025.0)

maby you need to modify it a bit..
Title: Re: script that changes my public hub in privatehub has a precise hour
Post by: Djdirect on 22 August, 2007, 12:59:01
merci
but i have this error
is this script in lua 5.1 ?

scripts\LoginBlock with time settings.lua:175: attempt to call a table value

i have make logintimer.dat file in script directory
and paste this
bSettings = {
   ["login"] = {
      ["message"] = "None",
      ["end"] = 0,
      ["enable"] = 0,
      ["start"] = 0,
   },
}

is ok the script was in lua 5
no more error  merci Leun and CrazyGuy  ;)
Title: Re: script that changes my public hub in privatehub has a precise hour
Post by: CrazyGuy on 22 August, 2007, 13:04:42
in function Serialize change

for key, value in tTable do

to

for key, value in pairs(tTable) do

that should do it  8)