|
1 |
| -# 本译文源于一个过期的版本。 |
2 |
| -## |
3 |
| -## |
4 |
| -## |
5 |
| -## |
| 1 | +### [](https://github.com/ElunaLuaEngine/Eluna) |
6 | 2 |
|
7 |
| -#  mod-eluna-lua-engine for AzerothCore |
8 |
| -- 最新版本在Azerothcore的构建状态: [](https://github.com/azerothcore/mod-eluna-lua-engine) |
| 3 | +## 关于 |
| 4 | + |
| 5 | +Eluna Lua Engine © 是嵌入到魔兽世界模拟器中的lua引擎。 Eluna支持MaNGOS,CMaNGOS,TrinityCore和AzerothCore。 |
| 6 | +我们目前正在努力使Eluna从内到外变得更好。 |
| 7 | + |
| 8 | +如果您在安装或脚本方面遇到问题,请随时提出问题。 |
| 9 | +有关文档和参考,请参阅[Eluna API (AC版)](https://www.azerothcore.org/pages/eluna/index.html) and [Lua 参考手册](http://www.lua.org/manual/5.2/). |
| 10 | + |
| 11 | + |
| 12 | +## 社区 |
| 13 | + |
| 14 | +您可以加入官方的Eluna Discord服务器,在那里您将能够找到社区提供的资源,版本和支持: |
| 15 | +<a href="https://discord.gg/bjkCVWqqfX"> |
| 16 | + <img src="https://img.shields.io/badge/discord-join-7289DA.svg?logo=discord&longCache=true&style=flat" /> |
| 17 | +</a> |
| 18 | + |
| 19 | +官方的Azerothcore Discord服务器也提供了一个专门用于lua开发的通道: |
| 20 | +<a href="https://discord.gg/gkt4y2x"> |
| 21 | + <img src="https://img.shields.io/badge/discord-join-7289DA.svg?logo=discord&longCache=true&style=flat" /> |
| 22 | +</a> |
| 23 | + |
| 24 | +#  mod-eluna for AzerothCore |
| 25 | +- azerothcore 的最新构建状态:[](https://github.com/azerothcore/mod-eluna) |
9 | 26 |
|
10 | 27 | [english](README.md) | [中文说明](README_CN.md) | [Español](README_ES.md)
|
11 | 28 |
|
12 |
| -一个用于Azerothcore的[Eluna](https://github.com/ElunaLuaEngine/Eluna)模块. |
| 29 | +一个AzerothCore的[Eluna](https://github.com/ElunaLuaEngine/Eluna)模块。 |
| 30 | + |
13 | 31 |
|
14 | 32 | ## 如何安装:
|
15 | 33 |
|
16 |
| -### 1) 下载源码 |
| 34 | +### 1) 下载源代码 |
| 35 | + |
| 36 | +您可以使用 git 获取源代码。 |
17 | 37 |
|
18 |
| -你可以使用git(推荐)或手动下载源代码的方法安装。 |
19 | 38 |
|
20 |
| -#### 使用git(推荐)下载 |
| 39 | +#### 使用 git 下载 |
21 | 40 |
|
22 |
| -1. 在你的`azerothcore-wotlk`源码文件夹中打开命令行(win的用户进入目录后shift+鼠标右键可以通过右键菜单打开) |
23 |
| -2. 进入 **modules** 文件夹,命令行中输入: `cd modules` |
24 |
| -3. 下载模块源码: |
| 41 | +1. 在命令行中打开 `azerothcore-wotlk` 的文件夹。 |
| 42 | +2. 进入 **modules** 文件夹: `cd modules` |
| 43 | +3. 使用以下命令下载模块源代码。 |
25 | 44 | ```
|
26 |
| -git clone https://github.com/azerothcore/mod-eluna-lua-engine.git |
| 45 | +git clone https://github.com/azerothcore/mod-eluna.git mod-eluna |
27 | 46 | ```
|
28 |
| -4. 下载模块源码后进入文件夹 **mod-eluna-lua-engine**,命令行中输入: `cd mod-eluna-lua-engine` |
29 |
| -5. 下载Eluna源码,命令行中输入: `git submodule update --init` |
30 | 47 |
|
31 |
| -可选: 模块中集成的Eluna是稳定版本,如果你要更新Eluna到最新版本,你可以进入目录**LuaEngine**(命令行输入:`cd LuaEngine`),进入后输入`git pull`获取即可更新最新版本. |
32 |
| -请注意,最新版本可能和稳定版的源码不匹配.视情况可能需要自行修正. |
| 48 | +### 2) 构建 |
| 49 | + |
| 50 | +您需要再次运行 cmake 并重新生成项目。 |
| 51 | + |
| 52 | +AC版的Eluna API: |
| 53 | +[https://www.azerothcore.org/pages/eluna/index.html](https://www.azerothcore.org/pages/eluna/index.html) |
| 54 | + |
| 55 | + |
| 56 | +## 文档 |
33 | 57 |
|
34 |
| -#### 手动下载 |
| 58 | +* [入门指南](https://github.com/ElunaLuaEngine/Eluna/blob/master/docs/USAGE.md) |
| 59 | +* [Eluna特性](https://github.com/ElunaLuaEngine/Eluna/blob/master/docs/IMPL_DETAILS.md) |
| 60 | +* [功能文档(AC版本)](https://www.azerothcore.org/pages/eluna/index.html) |
| 61 | +* [Hook文档](https://github.com/ElunaLuaEngine/Eluna/blob/master/Hooks.h) |
| 62 | +* [Lua参考手册](http://www.lua.org/manual/5.2/) |
| 63 | +* [论坛 - 支持, 发布, 指南](https://www.getmangos.eu/forums/forum/119-eluna-central/) |
| 64 | +* [示例脚本](https://github.com/ElunaLuaEngine/Scripts) |
| 65 | +* [贡献](https://github.com/ElunaLuaEngine/Eluna/blob/master/docs/CONTRIBUTING.md) |
35 | 66 |
|
36 |
| -1. 下载 [mod-eluna-lua-engine](https://github.com/azerothcore/mod-eluna-lua-engine/archive/master.zip) |
37 |
| -2. 解压到你的`azerothcore-wotlk`源码中的**modules**文件夹中,请确保路径看起来是这样的`azerothcore-wotlk/modules/mod-eluna-lua-engine` |
38 |
| -3. 下载 [Eluna](https://github.com/azerothcore/Eluna/archive/master.zip) |
39 |
| -4. 把文件解压到 `mod-eluna-lua-engine/LuaEngine`. `LuaEngine.h`这个文件的路径看起来应该是这样的`mod-eluna-lua-engine/LuaEngine/LuaEngine.h`. |
40 | 67 |
|
41 |
| -### 2) 生成 |
| 68 | +## 链接 |
42 | 69 |
|
43 |
| -你需要重新CMake并重新生成你的项目. |
| 70 | +* [MaNGOS](http://getmangos.eu/) |
| 71 | +* [cMaNGOS](http://cmangos.net/) |
| 72 | +* [TrinityCore](http://www.trinitycore.org/) |
| 73 | +* [AzerothCore](http://www.azerothcore.org/) |
| 74 | +* [Lua.org](http://www.lua.org/) |
| 75 | +* [License](https://github.com/ElunaLuaEngine/Eluna/blob/master/docs/LICENSE.md) |
44 | 76 |
|
45 | 77 |
|
46 |
| -Eluna API : |
47 |
| -[http://elunaluaengine.github.io/](http://elunaluaengine.github.io/) |
48 |
| -Eluna 中文文档(重构): |
49 |
| -[http://wiki.uiwow.com/doku.php/eluna:start](http://wiki.uiwow.com/doku.php/eluna:start) |
| 78 | +## 来自Eluna/master的拓展 |
50 | 79 |
|
| 80 | +- 添加了 HttpRequest 方法. https://github.com/azerothcore/Eluna/pull/2 |
| 81 | +- 添加玩家注册事件43(当宠物添加到世界中时): `PLAYER_EVENT_ON_PET_ADDED_TO_WORLD` https://github.com/azerothcore/Eluna/pull/3 |
| 82 | +- 添加聊天处理方法到玩家事件中。 https://github.com/azerothcore/Eluna/pull/23 |
| 83 | +- 暴露方法 `ModifyThreatPct()`. https://github.com/azerothcore/Eluna/pull/25 |
| 84 | +- 暴露方法 `Object:IsPlayer()`. https://github.com/azerothcore/Eluna/pull/42 |
| 85 | +- 添加玩家注册事件44(当玩家学习技能时): `PLAYER_EVENT_ON_LEARN_SPELL`. https://github.com/azerothcore/mod-eluna/pull/46 |
| 86 | +- 添加玩家注册事件45(当玩家完成成就时): `PLAYER_ON_ACHIEVEMENT_COMPLETE`。 https://github.com/azerothcore/mod-eluna/pull/47 |
| 87 | +- 新增参数*商人Id*到方法player:SendListInventory(object, vendorentry)中。 https://github.com/azerothcore/mod-eluna/pull/48 |
| 88 | +- 添加方法`gameobject:AddLoot()`, 可以在线给**空**的容器中添加战利品。 https://github.com/azerothcore/mod-eluna/pull/52 |
0 commit comments