PtokaX forum

Lua 5.3/5.2/5.1 Scripts (for PtokaX 0.4.0.0 and newer) => Request for scripts => Topic started by: ResidentEvil on 29 March, 2008, 21:52:24

Title: Script to place a text from a file.
Post by: ResidentEvil on 29 March, 2008, 21:52:24
Hello, I need a script to place my HUB rules from a file, for example when I tipe +rules in main, the script reads and shows in PM or MC what is written in file rules.txt . This command alsi can be wisible in user commands or etc. :) Thank you very much :)
Title: Re: Script to place a text from a file.
Post by: Rocheforte on 29 March, 2008, 22:09:39
ptokax has an inbuilt text reader:
save your text files in ptokax/texts
you'll have to enable the text file support
this option is placed in settings/general settings/more general

if you want a rightclick support for your files, visit this thread
http://board.ptokax.ath.cx/index.php?topic=7371.0
in this case don't forget to download this file http://www.PtokaX.org/files/Libs-0.3.6.0d/PXLuaFile
Title: Re: Script to place a text from a file.
Post by: Gnuff? on 30 March, 2008, 04:22:25
Quote from: ResidentEvil on 29 March, 2008, 21:52:24
Hello, I need a script to place my HUB rules from a file, for example when I tipe +rules in main, the script reads and shows in PM or MC what is written in file rules.txt . This command alsi can be wisible in user commands or etc. :) Thank you very much :)


You could also use this:
http://board.ptokax.ath.cx/index.php?topic=7371.0
Title: Re: Script to place a text from a file.
Post by: [NL]ben on 30 March, 2008, 22:13:05
try the rightclick-menu script its works great for rc

save your text files in ptokax/texts
you'll have to enable the text file support
this option is placed in settings/general settings/more general

and put the info to the script