Lua 5.3/5.2/5.1 Scripts (for PtokaX 0.4.0.0 and newer) > HOW-TO's

Newbie Help Ptokax and Lua

(1/1)

getsam123:
hi all
I am new to PtokaX and lua.I am unable understand the proper flow thing to do use scripts.I am confused with client lua script and PtokaX server script and unable to run any.I am Using eiskaltdcpp as client as its cross-platform and running a PtokaX server on Raspberry Pi (so its a dedicated hub in my LAN).I am able to download and upload files with users and other basic things are working fine.Please provide a getting started with scripts for Ptokax for achieving following features.

1. No PtokaX proper guide is available,the wiki is does not give all the info.
2. How to exactly run scripts for PtokaX (after placing scripts in "scripts" dir and enabling them in Scripts.xml ).Dont have a GUI as Ptokax is on linux.
3. Does these PtokaX scripts provide commands for clients or they are to be run on server.
4. There client side lua scripts available for eiskaltdcpp but dont know how to use them.
5.Adding registered user with GUI,(I tried editing RegisteredUsers.xml with my nick as master but i don't know how to use the privilege commands )

PPK:

--- Quote from: getsam123 on 01 February, 2014, 12:09:24 ---2. How to exactly run scripts for PtokaX (after placing scripts in "scripts" dir and enabling them in Scripts.xml ).Dont have a GUI as Ptokax is on linux.
--- End quote ---
When you have script in scripts directory then you can start script as Master or Operator with chat command !startscript scriptname

--- Quote from: getsam123 on 01 February, 2014, 12:09:24 ---3. Does these PtokaX scripts provide commands for clients
--- End quote ---
Some scripts yes, some no. Depend on script.

--- Quote from: getsam123 on 01 February, 2014, 12:09:24 ---5.Adding registered user with GUI,(I tried editing RegisteredUsers.xml with my nick as master but i don't know how to use the privilege commands )

--- End quote ---
To list available commands use !help chat command.

Navigation

[0] Message Index

Go to full version