diff options
author | Ledmitz <smoothshifter@tuta.io> | 2022-06-30 18:13:57 +0000 |
---|---|---|
committer | Ledmitz <smoothshifter@tuta.io> | 2022-06-30 18:13:57 +0000 |
commit | b01b2fc263db4ba525abe0fb3995654d8fd88f3a (patch) | |
tree | 47a4985d9feaa47308193e43b1ba339c010d6bdc | |
parent | 246b9ca57618203e2cd8dbf9f478aa90f645197b (diff) | |
download | tmw-info-b01b2fc263db4ba525abe0fb3995654d8fd88f3a.tar.gz tmw-info-b01b2fc263db4ba525abe0fb3995654d8fd88f3a.tar.bz2 tmw-info-b01b2fc263db4ba525abe0fb3995654d8fd88f3a.tar.xz tmw-info-b01b2fc263db4ba525abe0fb3995654d8fd88f3a.zip |
tmw-info cmds now shows commands found in the binary and even some found by trial and error
-rwxr-xr-x | tmw-info | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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:" |