Skip to content

cbeneke/ElunaScripts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

Content

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

Coding Style

Indention

For Indention use 4 spaces.

Naming

File naming

Filenames shall be lowercase snake_case. The files shall have a prefix npc_ for NPCs and boss_ for boss-NPCs,

Variable naming

  • 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

Directory structure

Sort the files into their respective zones. Every instance and zone shall have a own subdirectory. Zones shall have the prefix zone_.

Links

Eluna Source

Eluna Wiki

Eluna Support Forum

About

Lua scripts for Eluna

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Lua 100.0%