This repo is a fork of the official Eluna repo and contains refactored scripts for Eluna. The changes will be submitted to the official Eluna repo whenever they seem to work flawless.
Feel free to use anything within this repo as you please, and commit your own scripts for review and possible acceptance into the repo and/or the official Eluna repo
For Indention use 4 spaces.
Filenames shall be lowercase snake_case. The files shall have a prefix npc_ for NPCs and boss_ for boss-NPCs,
- Local variabales and objects shall be camelCase.
- Immutable variables shall be ALL_CAPS and have a prefix SPELL_, BOSS_, NPC_, etc respective to which ID they are releated to.
- Functions shall be PascalCase.
Example:
local BOSS_RANDOM_NAME = 12345
local SPELL_RANDOM_NAME = 54321
function Myfunction(event, creature)
local isChanneled = true
creature:CastSpell(BOSS_RANDOM_NAME, SPELL_RANDOM_NAME, isChanneled)
end
Sort the files into their respective zones. Every instance and zone shall have a own subdirectory. Zones shall have the prefix zone_.
