From 7082e038bd9fa69b28b612036323de8e0cb7b5b9 Mon Sep 17 00:00:00 2001 From: Ledmitz Date: Sun, 22 Jan 2023 16:55:29 -0400 Subject: Fixed mob-search incorect values and added more info from mob DB --- README.md | 1 + tmw-info | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c33818a..627db13 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,7 @@ Use gm-show to quickly display the last 10 gm commands run. Updates automaticall ``` ## Changelog +* 2023-01-22 - mob-search was showing other incorrect info, since CRIT DEF was added to mob DB. Info shows correctly now and more info is shown * 2023-01-06 - Fixed the ordering of the online list to ignore case, so it shows players in a more organized fashion * 2023-01-04 - Fixed mob-search do display proper drops. This was due to a server DB update which added new columns * 2022-12-13 - Changed check for zenity from dpkg -l to find in /bin or /usr/bin diff --git a/tmw-info b/tmw-info index d9d73d8..2a7dd40 100755 --- a/tmw-info +++ b/tmw-info @@ -343,14 +343,14 @@ elif [ "$1" == "mob-search" ]; then echo -e "\ ID: $(echo "$LINE" | awk '{print $1}') NAME: $(echo "$LINE" | awk '{print $2 $3}') LVL: $(echo "$LINE" | awk '{print $4}')\n\ HP: $(echo "$LINE" | awk '{print $5}') SP: $(echo "$LINE" | awk '{print $6}') \ -EXP: $(echo "$LINE" | awk '{print $7}') JOB EXP: $(echo "$LINE" | awk '{print $8}') EXP %: $(echo "$LINE" | awk '{print $47}') \ -MAG EXP: $(echo "$LINE" | awk '{print $46}')\n\ +EXP: $(echo "$LINE" | awk '{print $7}') JOB EXP: $(echo "$LINE" | awk '{print $8}') MAG EXP: $(echo "$LINE" | awk '{print $53}')\n\ RANGE: $(echo "$LINE" | awk '{print $9}') ATTK 1: $(echo "$LINE" | awk '{print $10}') ATTK 2: $(echo "$LINE" | awk '{print $11}')\n\ -DEF: $(echo "$LINE" | awk '{print $12}') MAG DEF: $(echo "$LINE" | awk '{print $13}') ATTK DELAY: $(echo "$LINE" | awk '{print $27}') \ -SPD: $(echo "$LINE" | awk '{print $26}')\n\ -STATS: STR=$(echo "$LINE" | awk '{print $14}') AGI=$(echo "$LINE" | awk '{print $15}') VIT=$(echo "$LINE" | awk '{print $16}') \ -INT=$(echo "$LINE" | awk '{print $17}') DEX=$(echo "$LINE" | awk '{print $18}') LUK=$(echo "$LINE" | awk '{print $19}')\n\ -MUTATIONS: $(echo "$LINE" | awk '{print $56}') MUTATION STR: $(echo "$LINE" | awk '{print $57}')\n\ +DEF: $(echo "$LINE" | awk '{print $12}') MAG DEF: $(echo "$LINE" | awk '{print $13}') CRIT DEF: $(echo "$LINE" | awk '{print $14}') ATTK DELAY: $(echo "$LINE" | awk '{print $28}') \ +SPD: $(echo "$LINE" | awk '{print $27}')\n\ +RACE: $(echo "$LINE" | awk '{print $24}') ELEMENT: $(echo "$LINE" | awk '{print $25}') MODE: $(echo "$LINE" | awk '{print $26}')\n\ +STATS: STR=$(echo "$LINE" | awk '{print $15}') AGI=$(echo "$LINE" | awk '{print $16}') VIT=$(echo "$LINE" | awk '{print $17}') \ +INT=$(echo "$LINE" | awk '{print $18}') DEX=$(echo "$LINE" | awk '{print $19}') LUK=$(echo "$LINE" | awk '{print $20}')\n\ +MUTATIONS: $(echo "$LINE" | awk '{print $61}') MUTATION STR: $(echo "$LINE" | awk '{print $62}')\n\ DROPS: $DROPS\n\ " done < "$TMW_INFO/mob-search$LAST_COUNT.tmp" -- cgit v1.2.3-70-g09d2