关灯
开启左侧

魔兽SF模拟器服务端机器人代码(最新T端适用的335WOTLK)

  [复制链接]
admin实名认证 发表于 2016-4-20 22:38:03 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题
 
---
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;



以上是部分代码,全部代码请下载附件


游客,如果您要查看本帖隐藏内容请回复


 

精彩评论11

倒序浏览
tripsac0912 发表于 2022-9-13 16:25:58 | 显示全部楼层
 
找了好久终于找到了
 
paker5200 发表于 2022-5-14 13:06:13 | 显示全部楼层
 
这是哪种机器人
 
天野漂 发表于 2021-10-4 09:46:07 | 显示全部楼层
 
模拟器服务端机器人代码
 
蒋佳李 发表于 2021-7-21 12:01:21 | 显示全部楼层
 
幻化系统幻化系统幻化系统
 
qilinhuhu 发表于 2021-6-10 22:58:01 | 显示全部楼层
 
小白一个 顶一下,吾爱尚玩免费服务端下载!
 
asers实名认证 发表于 2020-3-1 19:49:15 | 显示全部楼层
 
然后怎么用呢??
 
xixi8678 发表于 2020-2-18 13:55:22 | 显示全部楼层
 
看看这个怎么使用 感谢!
 
sdw5212959 发表于 2019-7-25 20:24:31 | 显示全部楼层
 
感谢分享 谢谢
 
samcen 发表于 2019-5-20 21:25:39 | 显示全部楼层
 
哇,学习学习
 
popman12333 发表于 2019-4-1 15:49:23 | 显示全部楼层
 
吾爱尚玩免费服务端下载!每天20金币走起!
 
redbit 发表于 2019-3-31 20:29:26 | 显示全部楼层
 
学习了,感谢大神分享
 
VIP介绍
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 最佳新人

    注册账号后积极发帖的会员
  • 活跃会员

    经常参与各类话题的讨论,发帖内容较有主见
  • 热心会员

    经常帮助其他会员答疑
  • 推广达人

    积极宣传本站,为本站带来更多注册会员
  • 宣传达人

    积极宣传本站,为本站带来更多的用户访问量
  • 灌水之王

    经常在论坛发帖,且发帖量较大
  • 突出贡献

    长期对论坛的繁荣而不断努力,或多次提出建设性意见
  • 优秀版主

    活跃且尽责职守的版主
  • 荣誉管理

    曾经为论坛做出突出贡献目前已离职的版主
  • 论坛元老

    为论坛做出突出贡献的会员

0关注

5粉丝

3421帖子

排行榜
作者专栏

QQ交流群&&微信订阅号

QQ交流群

微信订阅号

吾爱尚玩资源基地永久域名:

Www.523Play.Com

在线管理员QQ:1589479632

邮箱:Email@523play.com

QQ交流群:558936238

Copyright   ©2015-2116  吾爱尚玩资源基地|523play.comPowered by©523Pplay.Com技术支持:吾爱尚玩资源基地