initial setup after some tweaking

This commit is contained in:
bash
2024-07-22 23:26:52 +00:00
parent 1f10fe58e0
commit 12425e05fa
23 changed files with 784 additions and 2 deletions

11
helper/clear-ah.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
read -p "This will delete all items of the auction house, are you sure? (Y)es/(N)o: " -n 1 -r
echo " ";
if [[ $REPLY =~ ^[Yy]$ ]];
then
sudo mysql -u root --database="acore_characters" -e "DELETE FROM auctionhouse;"
fi

10
helper/find-character.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/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}';"