Compare commits

..

No commits in common. "82b5c7538ee8284fae527c7d33b00e0ccbf0c4eb" and "fc882f9a9188ed92c843b01e7928661656bd4ccf" have entirely different histories.

730 changed files with 2269 additions and 2506 deletions

View File

@ -980,8 +980,8 @@ AiPlayerbot.RandomBotQuestItems = "5175,5176,5177,5178,6948,11000,12382,13704,16
#
# Randombots automatically learn class quest reward spells on levelup
# Default: 1 (enabled)
AiPlayerbot.AutoLearnQuestSpells = 1
# Default: 0 (disabled)
AiPlayerbot.AutoLearnQuestSpells = 0
# Randombots automatically learn trainable spells on levelup
# Default: 1 (enabled)

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_ACTIONCONTEXT_H
#define PLAYERBOTS_ACTIONCONTEXT_H
#ifndef _PLAYERBOT_ACTIONCONTEXT_H
#define _PLAYERBOT_ACTIONCONTEXT_H
#include "AddLootAction.h"
#include "AttackAction.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_ACCEPTBATTLEGROUNDINVITATIONACTION_H
#define PLAYERBOTS_ACCEPTBATTLEGROUNDINVITATIONACTION_H
#ifndef _PLAYERBOT_ACCEPTBATTLEGROUNDINVITATIONACTION_H
#define _PLAYERBOT_ACCEPTBATTLEGROUNDINVITATIONACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_ACCEPTDUELACTION_H
#define PLAYERBOTS_ACCEPTDUELACTION_H
#ifndef _PLAYERBOT_ACCEPTDUELACTION_H
#define _PLAYERBOT_ACCEPTDUELACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_ACCEPTINVITATIONACTION_H
#define PLAYERBOTS_ACCEPTINVITATIONACTION_H
#ifndef _PLAYERBOT_ACCEPTINVITATIONACTION_H
#define _PLAYERBOT_ACCEPTINVITATIONACTION_H
#include "Action.h"
#include "UseMeetingStoneAction.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_ACCEPTQUESTACTION_H
#define PLAYERBOTS_ACCEPTQUESTACTION_H
#ifndef _PLAYERBOT_ACCEPTQUESTACTION_H
#define _PLAYERBOT_ACCEPTQUESTACTION_H
#include "QuestAction.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_ACCEPTRESURRECTACTION_H
#define PLAYERBOTS_ACCEPTRESURRECTACTION_H
#ifndef _PLAYERBOT_ACCEPTRESURRECTACTION_H
#define _PLAYERBOT_ACCEPTRESURRECTACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_ADDLOOTACTION_H
#define PLAYERBOTS_ADDLOOTACTION_H
#ifndef _PLAYERBOT_ADDLOOTACTION_H
#define _PLAYERBOT_ADDLOOTACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_AREATRIGGERACTION_H
#define PLAYERBOTS_AREATRIGGERACTION_H
#ifndef _PLAYERBOT_AREATRIGGERACTION_H
#define _PLAYERBOT_AREATRIGGERACTION_H
#include "MovementActions.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_ARENATEAMACTIONS_H
#define PLAYERBOTS_ARENATEAMACTIONS_H
#ifndef _PLAYERBOT_ARENATEAMACTION_H
#define _PLAYERBOT_ARENATEAMACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_ATTACKACTION_H
#define PLAYERBOTS_ATTACKACTION_H
#ifndef _PLAYERBOT_ATTACKACTION_H
#define _PLAYERBOT_ATTACKACTION_H
#include "MovementActions.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_AUTOMAINTENANCEONLEVELUPACTION_H
#define PLAYERBOTS_AUTOMAINTENANCEONLEVELUPACTION_H
#ifndef _PLAYERBOT_AUTOTELEPORTFORLEVELACTION_H
#define _PLAYERBOT_AUTOTELEPORTFORLEVELACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_BANKACTION_H
#define PLAYERBOTS_BANKACTION_H
#ifndef _PLAYERBOT_BANKACTION_H
#define _PLAYERBOT_BANKACTION_H
#include "InventoryAction.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_BATTLEGROUNDJOINACTION_H
#define PLAYERBOTS_BATTLEGROUNDJOINACTION_H
#ifndef _PLAYERBOT_BATTLEGROUNDJOINACTION_H
#define _PLAYERBOT_BATTLEGROUNDJOINACTION_H
#include "Action.h"
#include "DBCEnums.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_BATTLEGROUNDTACTICS_H
#define PLAYERBOTS_BATTLEGROUNDTACTICS_H
#ifndef _PLAYERBOT_BATTLEGROUNDTACTICSACTION_H
#define _PLAYERBOT_BATTLEGROUNDTACTICSACTION_H
#include "BattlegroundAV.h"
#include "MovementActions.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_BOSSAURAACTIONS_H
#define PLAYERBOTS_BOSSAURAACTIONS_H
#ifndef _PLAYERBOT_BOSSAURAACTION_H
#define _PLAYERBOT_BOSSAURAACTION_H
#include <string>

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_BUFFACTION_H
#define PLAYERBOTS_BUFFACTION_H
#ifndef _PLAYERBOT_BUFFACTION_H
#define _PLAYERBOT_BUFFACTION_H
#include "InventoryAction.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_BUYACTION_H
#define PLAYERBOTS_BUYACTION_H
#ifndef _PLAYERBOT_BUYACTION_H
#define _PLAYERBOT_BUYACTION_H
#include "InventoryAction.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_CANCELCHANNELACTION_H
#define PLAYERBOTS_CANCELCHANNELACTION_H
#ifndef _PLAYERBOT_CANCELCHANNELACTION_H
#define _PLAYERBOT_CANCELCHANNELACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_CASTCUSTOMSPELLACTION_H
#define PLAYERBOTS_CASTCUSTOMSPELLACTION_H
#ifndef _PLAYERBOT_CASTCUSTOMSPELLACTION_H
#define _PLAYERBOT_CASTCUSTOMSPELLACTION_H
#include "ListSpellsAction.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_CHANGECHATACTION_H
#define PLAYERBOTS_CHANGECHATACTION_H
#ifndef _PLAYERBOT_CHANGECHATACTION_H
#define _PLAYERBOT_CHANGECHATACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_CHANGESTRATEGYACTION_H
#define PLAYERBOTS_CHANGESTRATEGYACTION_H
#ifndef _PLAYERBOT_CHANGESTRATEGYACTION_H
#define _PLAYERBOT_CHANGESTRATEGYACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_CHANGETALENTSACTION_H
#define PLAYERBOTS_CHANGETALENTSACTION_H
#ifndef _PLAYERBOT_CHANGETALENTSACTION_H
#define _PLAYERBOT_CHANGETALENTSACTION_H
#include "Action.h"
#include "Talentspec.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_CHATSHORTCUTACTIONS_H
#define PLAYERBOTS_CHATSHORTCUTACTIONS_H
#ifndef _PLAYERBOT_CHATSHORTCUTACTION_H
#define _PLAYERBOT_CHATSHORTCUTACTION_H
#include "MovementActions.h"

View File

@ -3,9 +3,6 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_CHEATACTION_H
#define PLAYERBOTS_CHEATACTION_H
#include "Action.h"
class PlayerbotAI;
@ -24,5 +21,3 @@ private:
static std::string const GetCheatName(BotCheatMask cheatMask);
void ListCheats();
};
#endif

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_CHECKMAILACTION_H
#define PLAYERBOTS_CHECKMAILACTION_H
#ifndef _PLAYERBOT_CHECKMAILACTION_H
#define _PLAYERBOT_CHECKMAILACTION_H
#include "Action.h"
#include "DatabaseEnvFwd.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_CHECKMOUNTSTATEACTION_H
#define PLAYERBOTS_CHECKMOUNTSTATEACTION_H
#ifndef _PLAYERBOT_CHECKMOUNTSTATEACTION_H
#define _PLAYERBOT_CHECKMOUNTSTATEACTION_H
#include <unordered_map>
#include <vector>

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_CHECKVALUESACTION_H
#define PLAYERBOTS_CHECKVALUESACTION_H
#ifndef _PLAYERBOT_CHECKVALUESACTION_H
#define _PLAYERBOT_CHECKVALUESACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_CHOOSERPGTARGETACTION_H
#define PLAYERBOTS_CHOOSERPGTARGETACTION_H
#ifndef _PLAYERBOT_CHOOSERPGTARGETACTION_H
#define _PLAYERBOT_CHOOSERPGTARGETACTION_H
#include "ObjectGuid.h"
#include "RpgAction.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_CHOOSETARGETACTIONS_H
#define PLAYERBOTS_CHOOSETARGETACTIONS_H
#ifndef _PLAYERBOT_CHOOSETARGETACTIONS_H
#define _PLAYERBOT_CHOOSETARGETACTIONS_H
#include "AttackAction.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_CHOOSETRAVELTARGETACTION_H
#define PLAYERBOTS_CHOOSETRAVELTARGETACTION_H
#ifndef _PLAYERBOT_CHOOSETRAVELTARGETACTION_H
#define _PLAYERBOT_CHOOSETRAVELTARGETACTION_H
#include "MovementActions.h"
#include "TravelMgr.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_COMBATACTIONS_H
#define PLAYERBOTS_COMBATACTIONS_H
#ifndef _PLAYERBOT_COMBATACTIONS_H
#define _PLAYERBOT_COMBATACTIONS_H
#include "ChangeStrategyAction.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_CUSTOMSTRATEGYEDITACTION_H
#define PLAYERBOTS_CUSTOMSTRATEGYEDITACTION_H
#ifndef _PLAYERBOT_CUSTOMSTRATEGYEDITACTION_H
#define _PLAYERBOT_CUSTOMSTRATEGYEDITACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_DEBUGACTION_H
#define PLAYERBOTS_DEBUGACTION_H
#ifndef _PLAYERBOT_DEBUGACTION_H
#define _PLAYERBOT_DEBUGACTION_H
#include "Action.h"
#include "ObjectGuid.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_DELAYACTION_H
#define PLAYERBOTS_DELAYACTION_H
#ifndef _PLAYERBOT_DELAYACTION_H
#define _PLAYERBOT_DELAYACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_DESTROYITEMACTION_H
#define PLAYERBOTS_DESTROYITEMACTION_H
#ifndef _PLAYERBOT_DESTROYITEMACTION_H
#define _PLAYERBOT_DESTROYITEMACTION_H
#include "InventoryAction.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_DROPQUESTACTION_H
#define PLAYERBOTS_DROPQUESTACTION_H
#ifndef _PLAYERBOT_DROPQUESTACTION_H
#define _PLAYERBOT_DROPQUESTACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_EMOTEACTION_H
#define PLAYERBOTS_EMOTEACTION_H
#ifndef _PLAYERBOT_EMOTEACTION_H
#define _PLAYERBOT_EMOTEACTION_H
#include <map>

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_EQUIPACTION_H
#define PLAYERBOTS_EQUIPACTION_H
#ifndef _PLAYERBOT_EQUIPACTION_H
#define _PLAYERBOT_EQUIPACTION_H
#include "ChatHelper.h"
#include "InventoryAction.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_EQUIPGLYPHSACTION_H
#define PLAYERBOTS_EQUIPGLYPHSACTION_H
#ifndef _PLAYERBOT_EQUIPGLYPHSACTION_H
#define _PLAYERBOT_EQUIPGLYPHSACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_FISHINGACTION_H
#define PLAYERBOTS_FISHINGACTION_H
#ifndef _PLAYERBOT_FISHINGACTION_H
#define _PLAYERBOT_FISHINGACTION_H
#include "Action.h"
#include "Event.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_FLAGACTION_H
#define PLAYERBOTS_FLAGACTION_H
#ifndef _PLAYERBOT_FLAGACTION_H
#define _PLAYERBOT_FLAGACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_FOLLOWACTIONS_H
#define PLAYERBOTS_FOLLOWACTIONS_H
#ifndef _PLAYERBOT_FOLLOWACTIONS_H
#define _PLAYERBOT_FOLLOWACTIONS_H
#include "MovementActions.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_GENERICACTIONS_H
#define PLAYERBOTS_GENERICACTIONS_H
#ifndef _PLAYERBOT_GENERICACTIONS_H
#define _PLAYERBOT_GENERICACTIONS_H
#include "AttackAction.h"
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_GENERICSPELLACTIONS_H
#define PLAYERBOTS_GENERICSPELLACTIONS_H
#ifndef _PLAYERBOT_GENERICSPELLACTIONS_H
#define _PLAYERBOT_GENERICSPELLACTIONS_H
#include "Action.h"
#include "PlayerbotAI.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_GIVEITEMACTION_H
#define PLAYERBOTS_GIVEITEMACTION_H
#ifndef _PLAYERBOT_GIVEITEMACTION_H
#define _PLAYERBOT_GIVEITEMACTION_H
#include "InventoryAction.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_GOACTION_H
#define PLAYERBOTS_GOACTION_H
#ifndef _PLAYERBOT_GOACTION_H
#define _PLAYERBOT_GOACTION_H
#include "MovementActions.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_GOSSIPHELLOACTION_H
#define PLAYERBOTS_GOSSIPHELLOACTION_H
#ifndef _PLAYERBOT_GOSSIPHELLOACTION_H
#define _PLAYERBOT_GOSSIPHELLOACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_GREETACTION_H
#define PLAYERBOTS_GREETACTION_H
#ifndef _PLAYERBOT_GREETACTION_H
#define _PLAYERBOT_GREETACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_GUILDACCEPTACTION_H
#define PLAYERBOTS_GUILDACCEPTACTION_H
#ifndef _PLAYERBOT_GUILDACCEPTACTION_H
#define _PLAYERBOT_GUILDACCEPTACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_GUILDBANKACTION_H
#define PLAYERBOTS_GUILDBANKACTION_H
#ifndef _PLAYERBOT_GUILDBANKACTION_H
#define _PLAYERBOT_GUILDBANKACTION_H
#include "InventoryAction.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_GUILDCREATEACTIONS_H
#define PLAYERBOTS_GUILDCREATEACTIONS_H
#ifndef _PLAYERBOT_GUILDCREATEACTION_H
#define _PLAYERBOT_GUILDCREATEACTION_H
#include "ChooseTravelTargetAction.h"
#include "InventoryAction.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_GUILDMANAGEMENTACTIONS_H
#define PLAYERBOTS_GUILDMANAGEMENTACTIONS_H
#ifndef _PLAYERBOT_GUILDMAMANEGEMENTACTION_H
#define _PLAYERBOT_GUILDMAMANEGEMENTACTION_H
#include "Action.h"
#include "Opcodes.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_HELPACTION_H
#define PLAYERBOTS_HELPACTION_H
#ifndef _PLAYERBOT_HELPACTION_H
#define _PLAYERBOT_HELPACTION_H
#include "Action.h"
#include "NamedObjectContext.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_HIREACTION_H
#define PLAYERBOTS_HIREACTION_H
#ifndef _PLAYERBOT_HIREACTION_H
#define _PLAYERBOT_HIREACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_IMBUEACTION_H
#define PLAYERBOTS_IMBUEACTION_H
#ifndef _PLAYERBOT_IMBUEACTION_H
#define _PLAYERBOT_IMBUEACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_INVENTORYACTION_H
#define PLAYERBOTS_INVENTORYACTION_H
#ifndef _PLAYERBOT_INVENTORYACTION_H
#define _PLAYERBOT_INVENTORYACTION_H
#include "Action.h"
#include "ItemVisitors.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_INVENTORYCHANGEFAILUREACTION_H
#define PLAYERBOTS_INVENTORYCHANGEFAILUREACTION_H
#ifndef _PLAYERBOT_INVENTORYCHANGEFAILUREACTION_H
#define _PLAYERBOT_INVENTORYCHANGEFAILUREACTION_H
#include "Action.h"
#include "Item.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_INVITETOGROUPACTION_H
#define PLAYERBOTS_INVITETOGROUPACTION_H
#ifndef _PLAYERBOT_INVITETOGROUPACTION_H
#define _PLAYERBOT_INVITETOGROUPACTION_H
#include "Action.h"
#include "Player.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_LEAVEGROUPACTION_H
#define PLAYERBOTS_LEAVEGROUPACTION_H
#ifndef _PLAYERBOT_LEAVEGROUPACTION_H
#define _PLAYERBOT_LEAVEGROUPACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_LFGACTIONS_H
#define PLAYERBOTS_LFGACTIONS_H
#ifndef _PLAYERBOT_LFGACTIONS_H
#define _PLAYERBOT_LFGACTIONS_H
#include "InventoryAction.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_LISTQUESTSACTIONS_H
#define PLAYERBOTS_LISTQUESTSACTIONS_H
#ifndef _PLAYERBOT_LISTQUESTSACTIONS_H
#define _PLAYERBOT_LISTQUESTSACTIONS_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_LISTSPELLSACTION_H
#define PLAYERBOTS_LISTSPELLSACTION_H
#ifndef _PLAYERBOT_LISTSPELLSACTION_H
#define _PLAYERBOT_LISTSPELLSACTION_H
#include "InventoryAction.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_LOGLEVELACTION_H
#define PLAYERBOTS_LOGLEVELACTION_H
#ifndef _PLAYERBOT_LOGLEVELACTION_H
#define _PLAYERBOT_LOGLEVELACTION_H
#include "Action.h"
#include "LogCommon.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_LOOTACTION_H
#define PLAYERBOTS_LOOTACTION_H
#ifndef _PLAYERBOT_LOOTACTION_H
#define _PLAYERBOT_LOOTACTION_H
#include "InventoryAction.h"
#include "MovementActions.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_LOOTROLLACTION_H
#define PLAYERBOTS_LOOTROLLACTION_H
#ifndef _PLAYERBOT_LOOTROLLACTION_H
#define _PLAYERBOT_LOOTROLLACTION_H
#include "QueryItemUsageAction.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_LOOTSTRATEGYACTION_H
#define PLAYERBOTS_LOOTSTRATEGYACTION_H
#ifndef _PLAYERBOT_LOOTSTRATEGYACTION_H
#define _PLAYERBOT_LOOTSTRATEGYACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_MAILACTION_H
#define PLAYERBOTS_MAILACTION_H
#ifndef _PLAYERBOT_MAILACTION_H
#define _PLAYERBOT_MAILACTION_H
#include "InventoryAction.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_MOVETORPGTARGETACTION_H
#define PLAYERBOTS_MOVETORPGTARGETACTION_H
#ifndef _PLAYERBOT_MOVETORPGTARGETACTION_H
#define _PLAYERBOT_MOVETORPGTARGETACTION_H
#include "MovementActions.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_MOVETOTRAVELTARGETACTION_H
#define PLAYERBOTS_MOVETOTRAVELTARGETACTION_H
#ifndef _PLAYERBOT_MOVETOTRAVELTARGETACTION_H
#define _PLAYERBOT_MOVETOTRAVELTARGETACTION_H
#include "MovementActions.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_MOVEMENTACTIONS_H
#define PLAYERBOTS_MOVEMENTACTIONS_H
#ifndef _PLAYERBOT_MOVEMENTACTIONS_H
#define _PLAYERBOT_MOVEMENTACTIONS_H
#include <cmath>

View File

@ -8,31 +8,6 @@
#include "Event.h"
#include "Playerbots.h"
namespace
{
constexpr uint32 BG_WS_SPELL_WARSONG_FLAG = 23333;
constexpr uint32 BG_WS_SPELL_SILVERWING_FLAG = 23335;
constexpr uint32 BG_EY_NETHERSTORM_FLAG_SPELL = 34976;
bool IsDisallowedShapeshiftForm(Player* bot)
{
if (bot->getClass() == CLASS_DRUID)
{
ShapeshiftForm form = bot->GetShapeshiftForm();
return form == FORM_TRAVEL || form == FORM_AQUA ||
form == FORM_FLIGHT || form == FORM_FLIGHT_EPIC ||
form == FORM_BEAR || form == FORM_DIREBEAR ||
form == FORM_CAT;
}
else if (bot->getClass() == CLASS_PRIEST)
{
return bot->GetShapeshiftForm() == FORM_SPIRITOFREDEMPTION;
}
return false;
}
}
bool DrinkAction::Execute(Event event)
{
if (botAI->HasCheat(BotCheatMask::food))
@ -80,16 +55,10 @@ bool DrinkAction::isUseful()
bool DrinkAction::isPossible()
{
if (bot->IsInCombat() || bot->IsMounted() || IsDisallowedShapeshiftForm(bot))
return false;
if (bot->HasAura(BG_WS_SPELL_WARSONG_FLAG) || bot->HasAura(BG_WS_SPELL_SILVERWING_FLAG) ||
bot->HasAura(BG_EY_NETHERSTORM_FLAG_SPELL))
{
return false;
}
return botAI->HasCheat(BotCheatMask::food) || UseItemAction::isPossible();
return !bot->IsInCombat() && !bot->IsMounted() &&
!botAI->HasAnyAuraOf(GetTarget(), "dire bear form", "bear form", "cat form", "travel form", "aquatic form",
"flight form", "swift flight form", nullptr) &&
(botAI->HasCheat(BotCheatMask::food) || UseItemAction::isPossible());
}
bool EatAction::Execute(Event event)
@ -135,14 +104,8 @@ bool EatAction::isUseful() { return UseItemAction::isUseful() && AI_VALUE2(uint8
bool EatAction::isPossible()
{
if (bot->IsInCombat() || bot->IsMounted() || IsDisallowedShapeshiftForm(bot))
return false;
if (bot->HasAura(BG_WS_SPELL_WARSONG_FLAG) || bot->HasAura(BG_WS_SPELL_SILVERWING_FLAG) ||
bot->HasAura(BG_EY_NETHERSTORM_FLAG_SPELL))
{
return false;
}
return botAI->HasCheat(BotCheatMask::food) || UseItemAction::isPossible();
return !bot->IsInCombat() && !bot->IsMounted() &&
!botAI->HasAnyAuraOf(GetTarget(), "dire bear form", "bear form", "cat form", "travel form", "aquatic form",
"flight form", "swift flight form", nullptr) &&
(botAI->HasCheat(BotCheatMask::food) || UseItemAction::isPossible());
}

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_NONCOMBATACTIONS_H
#define PLAYERBOTS_NONCOMBATACTIONS_H
#ifndef _PLAYERBOT_NONCOMBATACTIONS_H
#define _PLAYERBOT_NONCOMBATACTIONS_H
#include "UseItemAction.h"

View File

@ -3,8 +3,8 @@
* you may redistribute it and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_OPENITEMACTION_H
#define PLAYERBOTS_OPENITEMACTION_H
#ifndef _PLAYERBOT_OPENITEMACTION_H
#define _PLAYERBOT_OPENITEMACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_OUTFITACTION_H
#define PLAYERBOTS_OUTFITACTION_H
#ifndef _PLAYERBOT_OUTFITACTION_H
#define _PLAYERBOT_OUTFITACTION_H
#include "ChatHelper.h"
#include "EquipAction.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_PASSLEADERSHIPTOMASTERACTION_H
#define PLAYERBOTS_PASSLEADERSHIPTOMASTERACTION_H
#ifndef _PLAYERBOT_PASSLEADERSHIPTOMASTERACTION_H
#define _PLAYERBOT_PASSLEADERSHIPTOMASTERACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_PETITIONSIGNACTION_H
#define PLAYERBOTS_PETITIONSIGNACTION_H
#ifndef _PLAYERBOT_PETITIONSIGNACTION_H
#define _PLAYERBOT_PETITIONSIGNACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_PETSACTION_H
#define PLAYERBOTS_PETSACTION_H
#ifndef _PLAYERBOT_PETSACTION_H
#define _PLAYERBOT_PETSACTION_H
#include <string>

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_POSITIONACTION_H
#define PLAYERBOTS_POSITIONACTION_H
#ifndef _PLAYERBOT_POSITIONACTION_H
#define _PLAYERBOT_POSITIONACTION_H
#include "MovementActions.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_PULLACTIONS_H
#define PLAYERBOTS_PULLACTIONS_H
#ifndef _PLAYERBOT_PULLACTIONS_H
#define _PLAYERBOT_PULLACTIONS_H
#include "GenericSpellActions.h"
#include "ReachTargetActions.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_QUERYITEMUSAGEACTION_H
#define PLAYERBOTS_QUERYITEMUSAGEACTION_H
#ifndef _PLAYERBOT_QUERYITEMUSAGEACTION_H
#define _PLAYERBOT_QUERYITEMUSAGEACTION_H
#include "InventoryAction.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_QUERYQUESTACTION_H
#define PLAYERBOTS_QUERYQUESTACTION_H
#ifndef _PLAYERBOT_QUERYQUESTACTION_H
#define _PLAYERBOT_QUERYQUESTACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_QUESTACTION_H
#define PLAYERBOTS_QUESTACTION_H
#ifndef _PLAYERBOT_QUESTACTION_H
#define _PLAYERBOT_QUESTACTION_H
#include "Action.h"
#include "Object.h"

View File

@ -1,6 +1,5 @@
#include "QuestConfirmAcceptAction.h"
#include "QuestPackets.h"
#include "WorldPacket.h"
bool QuestConfirmAcceptAction::Execute(Event event)
@ -19,8 +18,6 @@ bool QuestConfirmAcceptAction::Execute(Event event)
std::ostringstream out;
out << "Quest: " << chat->FormatQuest(quest) << " confirm accept";
botAI->TellMaster(out);
WorldPackets::Quest::QuestConfirmAcceptClient confirmAccept(std::move(sendPacket));
confirmAccept.Read();
bot->GetSession()->HandleQuestConfirmAccept(confirmAccept);
bot->GetSession()->HandleQuestConfirmAccept(sendPacket);
return true;
}

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_QUESTCONFIRMACCEPTACTION_H
#define PLAYERBOTS_QUESTCONFIRMACCEPTACTION_H
#ifndef _PLAYERBOT_QUESTCONFIRMACCEPTACTION_H
#define _PLAYERBOT_QUESTCONFIRMACCEPTACTION_H
#include "AiObjectContext.h"
#include "Player.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_RANDOMBOTUPDATEACTION_H
#define PLAYERBOTS_RANDOMBOTUPDATEACTION_H
#ifndef _PLAYERBOT_RANDOMBOTUPDATEACTION_H
#define _PLAYERBOT_RANDOMBOTUPDATEACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_RANGEACTION_H
#define PLAYERBOTS_RANGEACTION_H
#ifndef _PLAYERBOT_RANGEACTION_H
#define _PLAYERBOT_RANGEACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_REACHTARGETACTIONS_H
#define PLAYERBOTS_REACHTARGETACTIONS_H
#ifndef _PLAYERBOT_REACHTARGETACTIONS_H
#define _PLAYERBOT_REACHTARGETACTIONS_H
#include "GenericSpellActions.h"
#include "MovementActions.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_READYCHECKACTION_H
#define PLAYERBOTS_READYCHECKACTION_H
#ifndef _PLAYERBOT_READYCHECKACTION_H
#define _PLAYERBOT_READYCHECKACTION_H
#include "InventoryAction.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_RELEASESPIRITACTION_H
#define PLAYERBOTS_RELEASESPIRITACTION_H
#ifndef PLAYERBOT_RELEASESPIRITACTION_H
#define PLAYERBOT_RELEASESPIRITACTION_H
#include "Action.h"
#include "ReviveFromCorpseAction.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_REMEMBERTAXIACTION_H
#define PLAYERBOTS_REMEMBERTAXIACTION_H
#ifndef _PLAYERBOT_REMEMBERTAXIACTION_H
#define _PLAYERBOT_REMEMBERTAXIACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_REMOVEAURAACTION_H
#define PLAYERBOTS_REMOVEAURAACTION_H
#ifndef _PLAYERBOT_REMOVEAURAACTION_H
#define _PLAYERBOT_REMOVEAURAACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_REPAIRALLACTION_H
#define PLAYERBOTS_REPAIRALLACTION_H
#ifndef _PLAYERBOT_REPAIRALLACTION_H
#define _PLAYERBOT_REPAIRALLACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_RESETAIACTION_H
#define PLAYERBOTS_RESETAIACTION_H
#ifndef _PLAYERBOT_RESETAIACTION_H
#define _PLAYERBOT_RESETAIACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_RESETINSTANCESACTION_H
#define PLAYERBOTS_RESETINSTANCESACTION_H
#ifndef _PLAYERBOT_RESETINSTANCESACTION_H
#define _PLAYERBOT_RESETINSTANCESACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_REVEALGATHERINGITEMACTION_H
#define PLAYERBOTS_REVEALGATHERINGITEMACTION_H
#ifndef _PLAYERBOT_REVEALGATHERINGITEMACTION_H
#define _PLAYERBOT_REVEALGATHERINGITEMACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_REVIVEFROMCORPSEACTION_H
#define PLAYERBOTS_REVIVEFROMCORPSEACTION_H
#ifndef _PLAYERBOT_REVIVEFROMCORPSEACTION_H
#define _PLAYERBOT_REVIVEFROMCORPSEACTION_H
#include "MovementActions.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_REWARDACTION_H
#define PLAYERBOTS_REWARDACTION_H
#ifndef _PLAYERBOT_REWARDACTION_H
#define _PLAYERBOT_REWARDACTION_H
#include "InventoryAction.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_RTIACTION_H
#define PLAYERBOTS_RTIACTION_H
#ifndef _PLAYERBOT_RTIACTION_H
#define _PLAYERBOT_RTIACTION_H
#include "Action.h"

View File

@ -3,8 +3,8 @@
* and/or modify it under version 3 of the License, or (at your option), any later version.
*/
#ifndef PLAYERBOTS_RTSCACTION_H
#define PLAYERBOTS_RTSCACTION_H
#ifndef _PLAYERBOT_RTSCACTION_H
#define _PLAYERBOT_RTSCACTION_H
#include "SeeSpellAction.h"

Some files were not shown because too many files have changed in this diff Show More