PtokaX forum

Lua 5.3/5.2/5.1 Scripts (for PtokaX 0.4.0.0 and newer) => Help with scripts => Topic started by: Hamachi on 15 February, 2011, 14:47:15

Title: Texts dir in linux update files
Post by: Hamachi on 15 February, 2011, 14:47:15
I have upload new files to my texts in px but it show my old files !!
LIKE:

old !rules:
test

new !rules
test2

But it show: test

are there a function to update this ?
Title: Re: Texts dir in linux update files
Post by: Hamachi on 16 February, 2011, 08:37:25
I look for a script command/function :)
Title: Re: Texts dir in linux update files
Post by: For_Ever_MeXxX on 20 February, 2011, 16:00:31
What you mean with you looking for script cmd / function?
Title: Re: Texts dir in linux update files
Post by: Psycho_Chihuahua on 20 February, 2011, 17:46:41
Quote from: Hamachi on 16 February, 2011, 08:37:25
I look for a script command/function :)

you dont need a script for that as it is implemented in the hubsoft itself  ::)
Title: Re: Texts dir in linux update files
Post by: Hamachi on 21 February, 2011, 09:07:35
I have make a script there find all text files and get them into RC,
but the text in the text files not update, so need somfing i can use in my script so it update :)
Title: Re: Texts dir in linux update files
Post by: the-master on 21 February, 2011, 14:11:20
if you made the script yourself, why didn't you add a RC for the hubcommand !reloadtext ?
theres no need to make a script to update textst, its already in ptokax
Title: Re: Texts dir in linux update files
Post by: Hamachi on 26 February, 2011, 18:31:07
Can i send user commands whit script like:
Core.SendToNick(Bot,"$To: "..Bot.." From: "..Bot.. " $<"..Bot.."> !reloadtxt|")

??

thanks for the help
Title: Re: Texts dir in linux update files
Post by: Hamachi on 22 October, 2011, 11:54:33
I have made it now :)
Quote
if cmd == "reloadtxt" then
   GetTextList()
end