PtokaX forum

Archive => Archived 5.1 boards => Request for scripts => Topic started by: moo on 10 December, 2007, 11:06:05

Title: My own +help
Post by: moo on 10 December, 2007, 11:06:05
Hi ,
I have a lot of scripts which use the command +help (trivia,vote,message board and even ptokax ) and i wanna have my own +help . When someone type +help or !help it will appear to him my own message...but I'd be glad if it will appear different message to each profile.


Thank you for previous support ..you're the best guys.
Title: Re: My own +help
Post by: CrazyGuy on 10 December, 2007, 11:26:02
Well, the easiest way to establish this is by writing help files using textcommands.
I would recommend to use a different name than just +help because this is used for PtokaX inbuild commands.
If you want different help files for each profile, you could append the profile name to the textcommand name.
For example:

help_operator
help_master
help_unregistered

Textcommands should be saved as .txt files in the PtokaX/text folder.
The filename will be the command name.
Although this gives some flexability, this does not prevent users from reading help files of other profiles (i.e. all textcommands are by default available to all profiles). If you want to add any limitations, it needs to be scripted.

Lemmy know how this helps you  :)
Title: Re: My own +help
Post by: moo on 10 December, 2007, 11:36:01
this is really the simplest way ...but i don't wanna let users to read help_master or help_op ..
Each profile should be able to read only his help file.
Do you thinks this is possible ?
Title: Re: My own +help
Post by: rEALx on 10 December, 2007, 12:05:35

I think u r looking for TextCommands 1.0e LUA 5.0/5.1 by Mutor

Quote
   TextCommands 1.0e LUA 5.0/5.1
   
   By Mutor        04/23/06

   Generates a list of text files in the specified folder
   Sends context menus (right click) to specified users.

   **IMPORTANT NOTE: This script requires bluebear's Px extension
   library, PxUtilities. It's available for both Lua 5.0.2 & Lua 5.1
   This script will not work without it, and it's free. With this lib
   we can avoid the dreaded shell pop up.

This script has an option to send help files to all and specific help files to OPs.

Get it here http://board.ptokax.ath.cx/index.php?topic=6868.0 (http://board.ptokax.ath.cx/index.php?topic=6868.0)

rEALx