---
src/server/game/AI/CoreAI/PetAI.cpp | 8 +
src/server/game/AI/PlayerBots/PlayerbotAI.cpp | 4353 ++++++++++++++++++++
src/server/game/AI/PlayerBots/PlayerbotAI.h | 284 ++
src/server/game/AI/PlayerBots/PlayerbotClassAI.cpp | 594 +++
src/server/game/AI/PlayerBots/PlayerbotClassAI.h | 162 +
.../game/AI/PlayerBots/PlayerbotDeathKnightAI.cpp | 325 ++
.../game/AI/PlayerBots/PlayerbotDeathKnightAI.h | 61 +
src/server/game/AI/PlayerBots/PlayerbotDruidAI.cpp | 676 +++
src/server/game/AI/PlayerBots/PlayerbotDruidAI.h | 70 +
.../game/AI/PlayerBots/PlayerbotHunterAI.cpp | 561 +++
src/server/game/AI/PlayerBots/PlayerbotHunterAI.h | 70 +
src/server/game/AI/PlayerBots/PlayerbotMageAI.cpp | 384 ++
src/server/game/AI/PlayerBots/PlayerbotMageAI.h | 69 +
.../game/AI/PlayerBots/PlayerbotPaladinAI.cpp | 536 +++
src/server/game/AI/PlayerBots/PlayerbotPaladinAI.h | 70 +
.../game/AI/PlayerBots/PlayerbotPriestAI.cpp | 400 ++
src/server/game/AI/PlayerBots/PlayerbotPriestAI.h | 59 +
src/server/game/AI/PlayerBots/PlayerbotRogueAI.cpp | 266 ++
src/server/game/AI/PlayerBots/PlayerbotRogueAI.h | 41 +
.../game/AI/PlayerBots/PlayerbotShamanAI.cpp | 555 +++
src/server/game/AI/PlayerBots/PlayerbotShamanAI.h | 75 +
.../game/AI/PlayerBots/PlayerbotWarlockAI.cpp | 410 ++
src/server/game/AI/PlayerBots/PlayerbotWarlockAI.h | 57 +
.../game/AI/PlayerBots/PlayerbotWarriorAI.cpp | 400 ++
src/server/game/AI/PlayerBots/PlayerbotWarriorAI.h | 57 +
src/server/game/CMakeLists.txt | 2 +
src/server/game/Chat/Chat.cpp | 11 +
src/server/game/Chat/Chat.h | 7 +
src/server/game/Chat/Commands/Level0.cpp | 180 +
src/server/game/Chat/Commands/Level1.cpp | 5 +-
src/server/game/Chat/Commands/Level3.cpp | 204 +
src/server/game/Entities/Creature/Creature.cpp | 3 +
src/server/game/Entities/Creature/Creature.h | 13 +
src/server/game/Entities/Creature/GossipDef.h | 1 +
.../game/Entities/Creature/TemporarySummon.cpp | 8 +
src/server/game/Entities/Object/Object.cpp | 27 +-
src/server/game/Entities/Player/Player.cpp | 340 ++-
src/server/game/Entities/Player/Player.h | 112 +-
src/server/game/Entities/Unit/Unit.cpp | 2 +
src/server/game/Groups/Group.cpp | 106 +-
src/server/game/Groups/Group.h | 19 +
src/server/game/Maps/Map.cpp | 22 +-
src/server/game/Quests/QuestDef.h | 4 +-
src/server/game/Scripting/ScriptLoader.cpp | 2 +
.../Server/Protocol/Handlers/CharacterHandler.cpp | 175 +
.../game/Server/Protocol/Handlers/ChatHandler.cpp | 28 +-
.../game/Server/Protocol/Handlers/GroupHandler.cpp | 33 +-
.../game/Server/Protocol/Handlers/NPCHandler.cpp | 3 +-
src/server/game/Server/WorldSession.cpp | 116 +-
src/server/game/Server/WorldSession.h | 12 +
src/server/game/Weather/Weather.cpp | 2 +-
src/server/game/World/World.cpp | 2 +
src/server/game/World/World.h | 1 +
src/server/scripts/Custom/CMakeLists.txt | 1 +
src/server/scripts/Custom/script_bot_giver.cpp | 163 +
src/server/shared/Common.h | 4 +
src/server/worldserver/worldserver.conf.dist | 52 +
57 files changed, 12166 insertions(+), 37 deletions(-)
create mode 100644 src/server/game/AI/PlayerBots/PlayerbotAI.cpp
create mode 100644 src/server/game/AI/PlayerBots/PlayerbotAI.h
create mode 100644 src/server/game/AI/PlayerBots/PlayerbotClassAI.cpp
create mode 100644 src/server/game/AI/PlayerBots/PlayerbotClassAI.h
create mode 100644 src/server/game/AI/PlayerBots/PlayerbotDeathKnightAI.cpp
create mode 100644 src/server/game/AI/PlayerBots/PlayerbotDeathKnightAI.h
create mode 100644 src/server/game/AI/PlayerBots/PlayerbotDruidAI.cpp
create mode 100644 src/server/game/AI/PlayerBots/PlayerbotDruidAI.h
create mode 100644 src/server/game/AI/PlayerBots/PlayerbotHunterAI.cpp
create mode 100644 src/server/game/AI/PlayerBots/PlayerbotHunterAI.h
create mode 100644 src/server/game/AI/PlayerBots/PlayerbotMageAI.cpp
create mode 100644 src/server/game/AI/PlayerBots/PlayerbotMageAI.h
create mode 100644 src/server/game/AI/PlayerBots/PlayerbotPaladinAI.cpp
create mode 100644 src/server/game/AI/PlayerBots/PlayerbotPaladinAI.h
create mode 100644 src/server/game/AI/PlayerBots/PlayerbotPriestAI.cpp
create mode 100644 src/server/game/AI/PlayerBots/PlayerbotPriestAI.h
create mode 100644 src/server/game/AI/PlayerBots/PlayerbotRogueAI.cpp
create mode 100644 src/server/game/AI/PlayerBots/PlayerbotRogueAI.h
create mode 100644 src/server/game/AI/PlayerBots/PlayerbotShamanAI.cpp
create mode 100644 src/server/game/AI/PlayerBots/PlayerbotShamanAI.h
create mode 100644 src/server/game/AI/PlayerBots/PlayerbotWarlockAI.cpp
create mode 100644 src/server/game/AI/PlayerBots/PlayerbotWarlockAI.h
create mode 100644 src/server/game/AI/PlayerBots/PlayerbotWarriorAI.cpp
create mode 100644 src/server/game/AI/PlayerBots/PlayerbotWarriorAI.h
create mode 100644 src/server/scripts/Custom/script_bot_giver.cpp
diff --git a/src/server/game/AI/CoreAI/PetAI.cpp b/src/server/game/AI/CoreAI/PetAI.cpp
index ac142db..17921f6 100755
--- a/src/server/game/AI/CoreAI/PetAI.cpp
+++ b/src/server/game/AI/CoreAI/PetAI.cpp
@@ -46,6 +46,7 @@ PetAI::PetAI(Creature *c) : CreatureAI(c), i_tracker(TIME_INTERVAL_LOOK)
void PetAI::EnterEvadeMode()
{
+ if(me->GetIAmABot() && me->GetBotAI()) me->GetBotAI()->EnterEvadeMode();
}
bool PetAI::_needToStop()
@@ -83,6 +84,12 @@ void PetAI::UpdateAI(const uint32 diff)
if (!me->isAlive())
return;
以上是部分代码,全部代码请下载附件
|