Skip to content
MMOMinion edited this page Oct 3, 2013 · 11 revisions

ActionList

  • The ActionList is a lua metatable and holds all the Spell/Skill/Action/Itemusage/Trait data there is.
  • The ActionList returns a lua table, where the index of each entry represents the ActionID (aka. SpellID or SkillID) and the value is an object of type ACTION.

Accessing the ActionList

  • The ActionList can be called with several filters, seperated by comma, which can be combined to get the Actions wanted. Make sure you use a combination of filters which can logically combined, meaning, using "type=1,type=9" wont work, since each of it excludes the usage of the other.
  • Example:
local al = ActionList("type=1,job=26")
if ( al ) then
   local i,action = next(al)
   while (i~=nil and action ~=nil) do
      -- the 'd' command is a global command for printing out information into the console
      d("ActionID: ".. tostring(i).. " ActionName: "..tostring(action.name))  
      local i,e = next(al,i)  
   end  
end

ActionList Filters

name=actionid=number
Returns the Action with the ID of "number".
type=number
Returns all Actions of Actiontype "number".
job=number
Returns all Actions that belong to the JOB of "number". NOTE: This excludes all crossclass actions as well as general actions incl limitbreakers!
level=number
Returns Entities which are targeting the player.
minlevel=number
Returns all Acitons with a level larger than "number".
manlevel=number
Returns all Acitons with a level below "number".
Clone this wiki locally