script commands to show in 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

script commands to show in help

Started by exlepra, 16 March, 2005, 15:25:30

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

exlepra

Hi, is there way to somehow "register" a command used in a script to show it in !help?
I mean let say I have a script that listens to a command and does something like !showmethemoney , obviously that command is not listed when someone types !help in hubchat.
thx

Psycho_Chihuahua

#1
why not use right click commands?

like this for example

-- PtokaX Lua 5 version by PPK
-- UserCommand extension script for PtokaX by Gadget
-- Modificied by Zigurds

function NewUserConnected(curUser)
if curUser.bUserCommand then
curUser:SendData("$UserCommand 255 7")
curUser:SendData("$UserCommand 0 3")
curUser:SendData("$UserCommand 1 3 *** Users Befehle ***$|")
curUser:SendData("$UserCommand 1 3 Regeln$<%[mynick]> !rules|")
curUser:SendData("$UserCommand 1 3 Help$<%[mynick]> !help|")
curUser:SendData("$UserCommand 1 3 Meine IP$<%[mynick]> !myip|")
curUser:SendData("$UserCommand 1 3 Schreibe in 3ter person$<%[mynick]> !me %[line:Enter your message]|")
curUser:SendData("$UserCommand 1 3 GeoIP\\Get Country Stats.$<%[mynick]> +TopLand|")
curUser:SendData("$UserCommand 1 1 GeoIP\\Get User's Country$<%[mynick]> +Land %[nick]|")
curUser:SendData("$UserCommand 1 1 GeoIP\\Country by IP$<%[mynick]> +Land %[line:IP?]|")
curUser:SendData("$UserCommand 0 3")
curUser:SendData("$UserCommand 1 1 Quiz\\Quiz Hilfe$<%[mynick]> +trivhelp|")
curUser:SendData("$UserCommand 0 3")
end
end
function OpConnected(curUser)
if curUser.bUserCommand then
curUser:SendData("$UserCommand 255 7")
curUser:SendData("$UserCommand 0 3")
curUser:SendData("$UserCommand 1 3 *** OP's Befehle ***$|")
curUser:SendData("$UserCommand 1 3 Users\\Regeln$<%[mynick]> !rules|")
curUser:SendData("$UserCommand 1 3 Users\\Help$<%[mynick]> !help|")
curUser:SendData("$UserCommand 1 3 Users\\Meine IP$<%[mynick]> !myip|")
curUser:SendData("$UserCommand 1 3 Users\\Schreibe in 3tter person$<%[mynick]> !me %[line:Enter your message]|")
curUser:SendData("$UserCommand 0 3")
curUser:SendData("$UserCommand 1 1 Quiz\\Quiz Hilfe$<%[mynick]> +trivhelp|")
curUser:SendData("$UserCommand 0 3")
curUser:SendData("$UserCommand 1 3 BanMenu\\Trenne user$<%[mynick]> !drop %[nick]|")
curUser:SendData("$UserCommand 1 3 BanMenu\\Banne und kicke user$<%[mynick]> !ban %[nick] %[line:Enter a reason]|")
curUser:SendData("$UserCommand 1 3 BanMenu\\Banne nick$<%[mynick]> !nickban %[nick]|")
curUser:SendData("$UserCommand 1 3 BanMenu\\Banne IP$<%[mynick]> !banip %[line:Enter an IP to ban]|")
curUser:SendData("$UserCommand 1 3 BanMenu\\Zeige temp banlist$<%[mynick]> !gettempbanlist|")
curUser:SendData("$UserCommand 1 3 BanMenu\\L?sche alle temp bans$<%[mynick]> !clrtempban|")
curUser:SendData("$UserCommand 1 3 BanMenu\\Zeige banliste$<%[mynick]> !getbanlist|")
curUser:SendData("$UserCommand 1 3 BanMenu\\L?sche alle perm bans$<%[mynick]> !clrpermban|")
curUser:SendData("$UserCommand 1 2 Gag Menu\\Gagge user$<%[mynick]> !gag %[nick]|")
curUser:SendData("$UserCommand 1 2 Gag Menu\\Ungagge user$<%[mynick]> !ungag %[nick]|")
curUser:SendData("$UserCommand 1 3 Reg Menu\\Regge User$<%[mynick]> !addreguser %[nick] %[line:Enter a password] Reg|")
curUser:SendData("$UserCommand 1 3 Reg Menu\\Regge VIP$<%[mynick]> !addreguser %[nick] %[line:Enter a password] VIP|")
curUser:SendData("$UserCommand 1 3 Reg Menu\\Regge OP$<%[mynick]> !addreguser %[nick] %[line:Enter a password] Operator|")
curUser:SendData("$UserCommand 1 3 Reg Menu\\Del Reg$<%[mynick]> !delreguser %[nick]|")
curUser:SendData("$UserCommand 1 3 Options\\Hub statistiken$<%[mynick]> !stat|")
curUser:SendData("$UserCommand 1 3 Options\\?ndere hub thema$<%[mynick]> !topic %[line:write new topic, 'off' for clear topic]|")
curUser:SendData("$UserCommand 1 3 Options\\Mass message$<%[mynick]> !massmsg %[line:write message]|")
curUser:SendData("$UserCommand 1 3 Options\\Temp OP user$<%[mynick]> !op %[nick]|")
curUser:SendData("$UserCommand 1 3 Options\\?ndere deinen passwort$<%[mynick]> !passwd %[line:Your new password]|")
curUser:SendData("$UserCommand 1 3 Options\\Reload txt files$<%[mynick]> !reloadtxt|")
curUser:SendData("$UserCommand 1 3 GeoIP\\Get Country Stats.$<%[mynick]> +TopLand|")
curUser:SendData("$UserCommand 1 1 GeoIP\\Get User's Country$<%[mynick]> +Land %[nick]|")
curUser:SendData("$UserCommand 1 1 GeoIP\\Country by IP$<%[mynick]> +Land %[line:IP?]|")
curUser:SendData("$UserCommand 1 2 Zeige user info$<%[mynick]> !getinfo %[nick]|<%[mynick]> !userinfo %[nick]|")
curUser:SendData("$UserCommand 0 3")
curUser:SendData("$UserCommand 1 3 Temp Banne und kick user$<%[mynick]> !tempban %[nick] %[line:Eingabe der Zeit (m/h/d/w/M/Y)] %[line:Einen Grund angeben]|")
curUser:SendData("$UserCommand 1 3 Temp Unban ip...$<%[mynick]> !tempunban %[line:Eingabe der IP des unbans]|")
curUser:SendData("$UserCommand 1 3 Unban user oder ip...$<%[mynick]> !unban %[line:Eingabe der IP oder name des unbans]|")
curUser:SendData("$UserCommand 0 3")
curUser:SendData("$UserCommand 2 6 1].Porno - 1 monat $<%[mynick]> !tempban %[nick] 1M 1.rule |")
curUser:SendData("$UserCommand 2 6 2].Fake - 3 monate $<%[mynick]> !tempban %[nick] 3m 2.rule |")
curUser:SendData("$UserCommand 2 6 3].Spam - 2 wochen $<%[mynick]> !tempban %[nick] 2w 9.rule |")
end
if (curUser.iProfile == 0) then
curUser:SendData("$UserCommand 255 7")
curUser:SendData("$UserCommand 0 3")
curUser:SendData("$UserCommand 1 3 *** OP's commands ***$|")
curUser:SendData("$UserCommand 1 3 Users\\Regeln$<%[mynick]> !rules|")
curUser:SendData("$UserCommand 1 3 Users\\Help$<%[mynick]> !help|")
curUser:SendData("$UserCommand 1 3 Users\\Meine IP$<%[mynick]> !myip|")
curUser:SendData("$UserCommand 1 3 Users\\Schreibe in 3rd person$<%[mynick]> !me %[line:Enter your message]|")
curUser:SendData("$UserCommand 0 3")
curUser:SendData("$UserCommand 1 1 Quiz\\Quiz Hilfe$<%[mynick]> +trivhelp|")
curUser:SendData("$UserCommand 0 3")
curUser:SendData("$UserCommand 1 3 BanMenu\\Trenne user$<%[mynick]> !drop %[nick]|")
curUser:SendData("$UserCommand 1 3 BanMenu\\Banne und kick user$<%[mynick]> !ban %[nick] %[line:Enter a reason]|")
curUser:SendData("$UserCommand 1 3 BanMenu\\Banne nick$<%[mynick]> !nickban %[nick]|")
curUser:SendData("$UserCommand 1 3 BanMenu\\Banne IP$<%[mynick]> !banip %[line:Enter an IP to ban]|")
curUser:SendData("$UserCommand 1 3 BanMenu\\Zeige temp banlist$<%[mynick]> !gettempbanlist|")
curUser:SendData("$UserCommand 1 3 BanMenu\\L?sche all temp bans$<%[mynick]> !clrtempban|")
curUser:SendData("$UserCommand 1 3 BanMenu\\Zeige banlist$<%[mynick]> !getbanlist|")
curUser:SendData("$UserCommand 1 3 BanMenu\\L?sche alle perm bans$<%[mynick]> !clrpermban|")
curUser:SendData("$UserCommand 1 2 Gag Menu\\Gagge user$<%[mynick]> !gag %[nick]|")
curUser:SendData("$UserCommand 1 2 Gag Menu\\Ungagge user$<%[mynick]> !ungag %[nick]|")
curUser:SendData("$UserCommand 1 3 Reg Menu\\Regge User$<%[mynick]> !addreguser %[nick] %[line:Enter a password] Reg|")
curUser:SendData("$UserCommand 1 3 Reg Menu\\Regge VIP$<%[mynick]> !addreguser %[nick] %[line:Enter a password] VIP|")
curUser:SendData("$UserCommand 1 3 Reg Menu\\Regge OP$<%[mynick]> !addreguser %[nick] %[line:Enter a password] Operator|")
curUser:SendData("$UserCommand 1 3 Reg Menu\\Del Reg$<%[mynick]> !delreguser %[nick]|")
curUser:SendData("$UserCommand 1 3 Options\\Hub statistiken$<%[mynick]> !stat|")
curUser:SendData("$UserCommand 1 3 Options\\?ndere hub thema$<%[mynick]> !topic %[line:write new topic, 'off' for clear topic]|")
curUser:SendData("$UserCommand 1 3 Options\\Mass message$<%[mynick]> !massmsg %[line:write message]|")
curUser:SendData("$UserCommand 1 3 Options\\Temp OP user$<%[mynick]> !op %[nick]|")
curUser:SendData("$UserCommand 1 3 Options\\?ndere dein passwort$<%[mynick]> !passwd %[line:Your new password]|")
curUser:SendData("$UserCommand 1 3 GeoIP\\Get Country Stats.$<%[mynick]> +TopLand|")
curUser:SendData("$UserCommand 1 1 GeoIP\\Get User's Country$<%[mynick]> +Land %[nick]|")
curUser:SendData("$UserCommand 1 1 GeoIP\\Country by IP$<%[mynick]> +Land %[line:IP?]|")
curUser:SendData("$UserCommand 1 3 Options\\Reload txt files$<%[mynick]> !reloadtxt|")
curUser:SendData("$UserCommand 1 2 Zeige user info$<%[mynick]> !getinfo %[nick]|<%[mynick]> !userinfo %[nick]|")
curUser:SendData("$UserCommand 0 3")
curUser:SendData("$UserCommand 1 3 Temp Ban and kick user$<%[mynick]> !tempban %[nick] %[line:Enter a time (m/h/d/w/M/Y)] %[line:Enter a reason]|")
curUser:SendData("$UserCommand 1 3 Temp Unban ip...$<%[mynick]> !tempunban %[line:Enter an IP to unban]|")
curUser:SendData("$UserCommand 1 3 Unban user or ip...$<%[mynick]> !unban %[line:Enter an IP or name to unban]|")
curUser:SendData("$UserCommand 0 3")
curUser:SendData("$UserCommand 2 6 1].Porno - 1 months $<%[mynick]> !tempban %[nick] 1M 1.rule |")
curUser:SendData("$UserCommand 2 6 2].Fake - 3 months $<%[mynick]> !tempban %[nick] 3m 2.rule |")
curUser:SendData("$UserCommand 2 6 3].Spam - 2 weeks $<%[mynick]> !tempban %[nick] 2w 9.rule |")
curUser:SendData("$UserCommand 0 3")
curUser:SendData("$UserCommand 1 3 Master\\Restart scripts$<%[mynick]> !restartscripts|")
curUser:SendData("$UserCommand 1 3 Master\\Restart hub$<%[mynick]> !restart|")
end
end

well you would have to adapt this one to your own needings  :D
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

exlepra

its a solution, but if user disabled the "accept custom user command form hub" option it wont work.

SMF spam blocked by CleanTalk