Files
azerothcore_installer/helper/find-character.sh
2024-07-22 23:26:52 +00:00

11 lines
439 B
Bash
Executable File

#!/bin/bash
if [ -z "$1" ]
then
echo "Parameter is null, first paramter 'character name' should not be empty";
exit 1;
fi
# find character and account id by name, mainly used for configuring the ah-bot mod.
sudo mysql -u root --database="acore_auth" -e "select acc.id as accountId, ch.guid as characterId from acore_auth.account as acc inner join acore_characters.characters as ch where acc.id = ch.account and acc.username = '${1}';"