Author Topic: Script to place a text from a file.  (Read 2243 times)

0 Members and 1 Guest are viewing this topic.

Offline ResidentEvil

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-3
Script to place a text from a file.
« 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 :)
I need 6 Gold Stars and 666 Karma Pluses !!!
I'm just starting with PtokaX and LUA :) Don't castigate me :)

PtokaX forum

Script to place a text from a file.
« on: 29 March, 2008, 21:52:24 »

Offline Rocheforte

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: Script to place a text from a file.
« Reply #1 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

Offline Gnuff?

  • Double Ace
  • *
  • Posts: 121
  • Karma: +21/-1
    • ?????Gnuff?s Hideout??????
Re: Script to place a text from a file.
« Reply #2 on: 30 March, 2008, 04:22:25 »
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
Gnuff

Offline [NL]ben

  • Junior Member
  • **
  • Posts: 17
  • Karma: +1/-0
    • THE HOT NETWORK NEW STYLE forum
Re: Script to place a text from a file.
« Reply #3 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
member of the thnns network
hollandse-mp3-paleis.no-ip.info

PtokaX forum

Re: Script to place a text from a file.
« Reply #3 on: 30 March, 2008, 22:13:05 »