From b01b2fc263db4ba525abe0fb3995654d8fd88f3a Mon Sep 17 00:00:00 2001 From: Ledmitz Date: Thu, 30 Jun 2022 18:13:57 +0000 Subject: tmw-info cmds now shows commands found in the binary and even some found by trial and error --- tmw-info | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'tmw-info') diff --git a/tmw-info b/tmw-info index 8282ffc..559efe0 100755 --- a/tmw-info +++ b/tmw-info @@ -1,9 +1,7 @@ #!/bin/bash # TMW GM Log Downloader (original): https://gitlab.com/liviorecchia/tmw-gm-log-downloader -# TMW GM Log Downloader(deprecated): https://gitlab.com/Ledmitz/tmw-gm-log-downloader -# tmw-gmlog(deprecated): https://gitlab.com/Ledmitz/tmw-gmlog -# tmw-info: https://gitlab.com/Ledmitz/tmw-info -# The Mana World: https://themanaworld.org] +# tmw-info: https://git.themanaworld.org/legacy/tmw-info/ +# The Mana World: https://themanaworld.org # Ledmitz (2020) - GPL 3.0 @@ -376,7 +374,7 @@ elif [ "$1" == 'cmds' ];then echo "You must run \"update-cmds\" first" fi (echo -e "\nClient Commands:" - cat < "$TMW_CMDS/client_commands" | sed 's/<\/*[^>]*>//g' | grep -Eo '/[a-z]+ ' | sort -n | sed -E 's/\n/\t/g'| uniq + (cat < "$TMW_CMDS/client_commands" | sed 's/<\/*[^>]*>//g' | grep -Eo '/[a-z]+ ' | sort -n | sed -E 's/\n/\t/g' & grep -Eao '/[a-z]+ ' '/usr/games/manaplus' & echo -e '/ipctoggle\n/targetmonster\n/movetotarget\n/attack\n/targetattack\n/untarget\n/where\n/navigate X Y\n/sethome\n/movetohome\n/present\n/all\n/pickup\n/useitem ID\n/disablehighlight\n/enablehighlight\n/sit\n/direct\n/turn[up,down,left,right]') | sort -u echo -e "\nDefault Server \"@\" Commands:" cat < "$TMW_CMDS/atcommand_athena.conf" | sed 's/<\/*[^>]*>//g' | grep -Eo '[A-Za-z0-9]+: [0-9]+' echo -e "\nCustom Server \"@\" Commands:" -- cgit v1.2.3-60-g2f50