About
Eluna Lua Engine © is a lua engine embedded to World of Warcraft emulators. Eluna supports MaNGOS, CMaNGOS, TrinityCore and AzerothCore. We are currently working hard to make Eluna better from inside and outside.
If you are having trouble with installation or scripts, please feel free to open an issue. For documentation and reference see Eluna API (AC version) and Lua reference manual.
Community
You can join the official Eluna Discord server, where you'll be able to find resources, releases and support provided by the community:
The official Azerothcore Discord server offers a channel dedicated to lua development as well:
mod-eluna for AzerothCore
An Eluna module for AzerothCore.
How to install:
1) Download the sources
You can get the sources using git.
download with git
- open a terminal inside your
azerothcore-wotlkfolder - go inside the modules folder:
cd modules - download the module sources using:
git clone https://github.com/azerothcore/mod-eluna.git mod-eluna
2) Build
You need to run the cmake again and rebuild the project.
Eluna API for AC: https://www.azerothcore.org/pages/eluna/index.html
Documentation
- Getting started
- Eluna features
- Function documentation (AC version)
- Hook documentation
- Lua reference manual
- Forum - support, releases, guides
- Example scripts
- Contributing
Links
Additions from Eluna/master
Player
- Added
RegisterPlayerEvent43(PLAYER_EVENT_ON_PET_ADDED_TO_WORLD) fires for pets and summoned creatures: https://github.com/azerothcore/mod-eluna/pull/3 - Added
RegisterPlayerEvent44(PLAYER_EVENT_ON_LEARN_SPELL): https://github.com/azerothcore/mod-eluna/pull/46 - Added
RegisterPlayerEvent45(PLAYER_ON_ACHIEVEMENT_COMPLETE): https://github.com/azerothcore/mod-eluna/pull/47 - Added
RegisterPlayerEvent46(PLAYER_EVENT_ON_FFAPVP_CHANGE): https://github.com/azerothcore/mod-eluna/pull/63 - Added
RegisterPlayerEvent47(PLAYER_EVENT_ON_UPDATE_AREA): https://github.com/azerothcore/mod-eluna/pull/65 - Added
RegisterPlayerEvent48(PLAYER_EVENT_ON_CAN_INIT_TRADE): https://github.com/azerothcore/mod-eluna/pull/83 - Added
RegisterPlayerEvent49(PLAYER_EVENT_ON_CAN_SEND_MAIL): https://github.com/azerothcore/mod-eluna/pull/85 - Added
RegisterPlayerEvent50(PLAYER_EVENT_ON_CAN_JOIN_LFG): https://github.com/azerothcore/mod-eluna/pull/86 - Added
RegisterPlayerEvent51(PLAYER_EVENT_ON_QUEST_REWARD_ITEM): https://github.com/azerothcore/mod-eluna/pull/88 - Added
RegisterPlayerEvent52(PLAYER_EVENT_ON_CREATE_ITEM): https://github.com/azerothcore/mod-eluna/pull/88 - Added
RegisterPlayerEvent53(PLAYER_EVENT_ON_STORE_NEW_ITEM): https://github.com/azerothcore/mod-eluna/pull/88 - Added
RegisterPlayerEvent54(PLAYER_EVENT_ON_COMPLETE_QUEST): https://github.com/azerothcore/mod-eluna/pull/90 - Added
RegisterPlayerEvent55(PLAYER_EVENT_ON_CAN_GROUP_INVITE): https://github.com/azerothcore/mod-eluna/pull/100 - Added
RegisterPlayerEvent56(PLAYER_EVENT_ON_GROUP_ROLL_REWARD_ITEM): https://github.com/azerothcore/mod-eluna/pull/119 - Added
RegisterPlayerEvent57(PLAYER_EVENT_ON_BG_DESERTION): https://github.com/azerothcore/mod-eluna/pull/146 - Added
Player:GetMailCount(): https://github.com/azerothcore/mod-eluna/pull/76 - Added
Player:GetXP(): https://github.com/azerothcore/mod-eluna/pull/77 - Added
Player:GetAchievementCriteriaProgress(): https://github.com/azerothcore/mod-eluna/pull/78 - Added vendor entry as argument to
Player:SendListInventory(object, vendorentry): https://github.com/azerothcore/mod-eluna/pull/48 - Added
Player:GetPlayerSettingValue()andPlayer:UpdatePlayerSetting(): https://github.com/azerothcore/mod-eluna/pull/125 - Added
Player:GetTrader(): https://github.com/azerothcore/mod-eluna/pull/126 - Added
Player:CanCompleteRepeatableQuest(questId): https://github.com/azerothcore/mod-eluna/pull/141 - Added
Player:CanRewardQuest(questId): https://github.com/azerothcore/mod-eluna/pull/141 - Added
Player:SetGlyph(glyphId, slotIndex): https://github.com/azerothcore/mod-eluna/pull/152
Group
- Added
Group:GetGroupType(): https://github.com/azerothcore/mod-eluna/pull/82 - Added
Group:SetMemberFlag(): https://github.com/azerothcore/mod-eluna/pull/102
Unit
- Added
Unit:ModifyThreatPct(): https://github.com/azerothcore/mod-eluna/pull/25 - Added
Unit:GetAttackers(): https://github.com/azerothcore/mod-eluna/pull/116 - Added
Unit:GetThreatList(): https://github.com/azerothcore/mod-eluna/pull/117 - Added
Unit:GetUnitFlags(): https://github.com/azerothcore/mod-eluna/pull/137 - Added
Unit:GetUnitFlagsTwo(): https://github.com/azerothcore/mod-eluna/pull/137 - Added
Unit:SetUnitFlags(flags): https://github.com/azerothcore/mod-eluna/pull/137 - Added
Unit:SetUnitFlagsTwo(flags): https://github.com/azerothcore/mod-eluna/pull/137 - Added
Unit:SetSpeedRate(unitMoveType, speed): https://github.com/azerothcore/mod-eluna/pull/155 - Added
Unit:SetSpeedRate(): https://github.com/azerothcore/mod-eluna/pull/155
GameObject
- Added
GameObject:AddLoot()to add loot at runtime to an empty container: https://github.com/azerothcore/mod-eluna/pull/52
Object
- Added
Object:IsPlayer(): https://github.com/azerothcore/mod-eluna/pull/42
Item
- Added
Item:GetItemTemplate(): https://github.com/azerothcore/mod-eluna/pull/84
Misc
- Added
HttpRequest(): https://github.com/azerothcore/mod-eluna/pull/2 - Added
GetItemTemplate(itemEntry): https://github.com/azerothcore/mod-eluna/pull/84 - Added
ChatHandlermethods: https://github.com/azerothcore/mod-eluna/pull/23 - Added
ItemTemplatemethods: https://github.com/azerothcore/mod-eluna/pull/84 - Added
Rollmethods: https://github.com/azerothcore/mod-eluna/pull/119 - Added logging with
ELUNA_LOG_INFOforRunCommand(): https://github.com/azerothcore/mod-eluna/pull/75 - Added
GetOwnerHalaaandSetOwnerHalaa: https://github.com/azerothcore/mod-eluna/pull/79 - Added
WorldDBQueryAsync,CharDBQueryAsyncandAuthDBQueryAsync: https://github.com/azerothcore/mod-eluna/pull/113
