$UserCommands Help
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

$UserCommands Help

Started by sourabhiitm, 23 September, 2007, 11:10:44

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sourabhiitm

I want to know the formating of usercommands. I know about these two.Is there any other type

1)
curUser:SendData("$UserCommand 1 3 Chat History\\by No of Days$<%[mynick]> !dayhistory %[line:Enter No of days]&#124;")
2)
  curUser:SendData("$UserCommand 1 3 Chat History\\Last 200 chats$<%[mynick]> !history&#124;")
If some 1 can provide me reference for usercommands . It will e great..

Thanks in advance

Rincewind

The structure is this;

$UserCommand <type> <context> <details>|

<type> What is the command?
0 = separator
1 = raw - Most Commands
2 = mainchat - File Related Commands - to prevent sending command more than once in search results
255 = erase all previous commands


<context> What is the command for?
1 = Hub Command - Hub Settings etc...
2 = User Command - User List - commands with %[nick]
4 = File Command - Search Window
3 = 1 + 2 = Hub and User
5 = 1 + 4 = Hub and File
6 = 2 + 4 = User and File
7 = 1 + 2 + 4 = Hub, User and File

<details> Differs per <type>
<type> 0 = leave blank
<type> 1 = <title>$<command> or <menu>\<title>$<command>
<type> 2 = see type 1
<type> 255 = leave blank


--

Also, you can also use %[nick] to pull the nick of the user clicked on. e.g. $UserCommand 1 2 Grimoire\\Security\\Kick$<%[mynick]> +kick %[nick] %[line:Reason]&#124;|

Hope the above helps

sourabhiitm

YA.. IT did .. Thanx a lot..   ;)

SMF spam blocked by CleanTalk