mirror of
https://github.com/hermensbas/azerothcore_installer.git
synced 2026-01-26 05:46:22 +00:00
initial setup after some tweaking
This commit is contained in:
11
helper/clear-ah.sh
Executable file
11
helper/clear-ah.sh
Executable 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
10
helper/find-character.sh
Executable 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}';"
|
||||
Reference in New Issue
Block a user