[Question] UserCommands/subCommands
 

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

[Question] UserCommands/subCommands

Started by Snooze, 22 March, 2004, 10:34:04

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Snooze

Hey guys,

I've been playing with the usercommands and were trying to make a subcommand. Is it me going about it wrong or does the hub software not support it ?

Ex:

curUser:SendData("$UserCommand 1 3 Help\Show Help menu$<%[mynick]> +help|") 
curUser:SendData("$UserCommand 1 3 Help\Show Help menu2$<%[mynick]> +help2|") 
curUser:SendData("$UserCommand 1 3 Help\Show Help menu3$<%[mynick]> +help&3#124;")

**Snooze

Snooze

#1
Hmm... Solved..

Im not sure why but it has to be done like this:


 user:SendData("$UserCommand 1 2  ? Help\\Hub Help$<%[mynick]> !help|")
  user:SendData("$UserCommand 1 2  ? Help\\Log Help$<%[mynick]> !loghelp2|")

[=robbase=]

Here's 1 I use for robocop

-- UserCommand extension script for PtokaX by Gadget
function NewUserConnected(curUser)
curUser:SendData("$UserCommand 255 7")
curUser:SendData("$UserCommand 0 3")
curUser:SendData("$UserCommand 1 3 *** HOUSE NATION ***$<%[mynick]> !rules|")
curUser:SendData("$UserCommand 255 7")
curUser:SendData("$UserCommand 0 3")  
curUser:SendData("$UserCommand 1 3 Hub Rules$<%[mynick]> !rules|")
curUser:SendData("$UserCommand 1 3 Show Help Menu$<%[mynick]> !userhelp|")
curUser:SendData("$UserCommand 1 3 House Charts$<%[mynick]> !faq|")
curUser:SendData("$UserCommand 1 3 Show New Releases$<%[mynick]> !shows|")
curUser:SendData("$UserCommand 1 3 Away From Keyboard$<%[mynick]> !away %[line:Enter a reason]|")
curUser:SendData("$UserCommand 1 3 Returned$<%[mynick]> !back %[line:Enter a reason]|")
curUser:SendData("$UserCommand 1 3 Register To Hub$<%[mynick]> !regme %[line:password]|")
curUser:SendData("$UserCommand 1 3 Report Fakers$<%[mynick]> !report %[line:nickname]|")
curUser:SendData("$UserCommand 1 3 Whats my IP$<%[mynick]> !myip|")
curUser:SendData("$UserCommand 1 3 Make Donation$<%[mynick]> !network|")
curUser:SendData("$UserCommand 255 7")
curUser:SendData("$UserCommand 0 3")
curUser:SendData("$UserCommand 1 3 *** REG ONLY ***$<%[mynick]> !rules|")
curUser:SendData("$UserCommand 255 7")
curUser:SendData("$UserCommand 0 3")
curUser:SendData("$UserCommand 1 3 Show Users With Free Slots$<%[mynick]> !slots|")
curUser:SendData("$UserCommand 1 3 Show Reg Users$<%[mynick]> !showreg|")
curUser:SendData("$UserCommand 1 3 Show Most Online Users$<%[mynick]> !tophubbers|")
curUser:SendData("$UserCommand 1 3 Show Your Online Time$<%[mynick]> !myhubtime|")
curUser:SendData("$UserCommand 1 3 Last Seen User$<%[mynick]> !seen %[nick]|")
curUser:SendData("$UserCommand 1 3 Change Password$<%[mynick]> !repass %[line:new password]|")


 
end

Skrollster

i was thinking of making a how to add usercommands..

but i didn't get specially far...

References: Wiki @ DC++ @ Sourceforge

Examples:

Put a horizontal separator bar in the menu for Hub commands
$UserCommand 0 1 |

Put a horizontal separator bar in the menu for User commands
$UserCommand 0 2 |

Put a horizontal separator bar in the menu for Hub commands and User commands
$UserCommand 0 3 |

Put a horizontal separator bar in the menu for User file commands
$UserCommand 0 4 |

Put a horizontal separator bar in the menu for Hub commands and User file commands
$UserCommand 0 5 |

Put a horizontal separator bar in the menu for User commands and User file commands
$UserCommand 0 6 |

Put a horizontal separator bar in the menu for Hub commands and User commands and User file commands
$UserCommand 0 7 |

Corayzon

a while ago when i was tring to figure this one out...i found a really nice site that explained really well...and had all the settings and how to's for $usercommand syntax...

Ill have a look now to see if i can find the site...

SMF spam blocked by CleanTalk