From d465b232ba34970b9496405e4e032bcca4c9c03e Mon Sep 17 00:00:00 2001 From: qudzy <102037134+qudzy@users.noreply.github.com> Date: Wed, 11 May 2022 11:03:03 +0200 Subject: [PATCH 1/2] Move dungeon suggestion definitions to base folder --- .../playerbots/base/playerbots_dungeon_suggestion_definition.sql | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename playerbots_dungeon_suggestion_definition.sql => sql/playerbots/base/playerbots_dungeon_suggestion_definition.sql (100%) diff --git a/playerbots_dungeon_suggestion_definition.sql b/sql/playerbots/base/playerbots_dungeon_suggestion_definition.sql similarity index 100% rename from playerbots_dungeon_suggestion_definition.sql rename to sql/playerbots/base/playerbots_dungeon_suggestion_definition.sql From 5ba7da5fafc23f1afc65a8d5e6ccfd22be4ae063 Mon Sep 17 00:00:00 2001 From: qudzy <102037134+qudzy@users.noreply.github.com> Date: Fri, 13 May 2022 21:55:14 +0200 Subject: [PATCH 2/2] Correct select randombot sql wildcard syntax error --- src/RandomPlayerbotFactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RandomPlayerbotFactory.cpp b/src/RandomPlayerbotFactory.cpp index 585669ab..db74849b 100644 --- a/src/RandomPlayerbotFactory.cpp +++ b/src/RandomPlayerbotFactory.cpp @@ -249,7 +249,7 @@ void RandomPlayerbotFactory::CreateRandomBots() } std::vector> dels; - QueryResult results = LoginDatabase.Query("SELECT id FROM account WHERE username LIKE ''{}'%%'", sPlayerbotAIConfig->randomBotAccountPrefix.c_str()); + QueryResult results = LoginDatabase.Query("SELECT id FROM account WHERE username LIKE '{}%%'", sPlayerbotAIConfig->randomBotAccountPrefix.c_str()); if (results) { do