Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from projecteon/master
Some cleanups
- Loading branch information
Showing
17 changed files
with
202 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
---@meta | ||
---@class alert mq datatype | ||
---@field List fun(index:integer):alertlist Get the item from the list at the specified index | ||
---@field Size MQInt #Get the number of alerts | ||
---@class alert | ||
---@field public Size MQInt # Get the number of alerts | ||
local alert = nil | ||
|
||
---@param index integer | ||
---@return alertlist # Get the item from the list at the specified index | ||
function alert.List(index) end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
--- @class altability | ||
--- @field public AARankRequired MQFloat #Rank required to train | ||
--- @field public CanTrain MQBoolean #Returns true/false on if the Alternative Ability can be trained | ||
--- @field public Cost MQFloat #Base cost to train | ||
--- @field public Description MQString #Basic description | ||
--- @field public ID MQInt #ID | ||
--- @field public Index MQFloat #Returns the index number of the Alternative Ability | ||
--- @field public MaxRank MQFloat #Max rank available in this ability | ||
--- @field public MinLevel MQFloat #Minimum level to train | ||
--- @field public MyReuseTime MQFloat #Reuse time with any hastened AA abilties | ||
--- @field public Name MQString #Name | ||
--- @field public NextIndex MQFloat #Returns the next index number of the Alternative Ability | ||
--- @field public PointsSpent MQFloat #Returns the amount of points spent on an AA | ||
--- @field public Passive MQBoolean #Returns true/false on if the Alternative Ability is passive | ||
--- @field public RequiresAbility altability Required ability (if any) | ||
--- @field public Rank MQFloat #Returns the Rank of the AA | ||
--- @field public RequiresAbilityPoints MQFloat #Points required in above ability | ||
--- @field public ReuseTime MQFloat #Reuse time in seconds | ||
--- @field public ShortName MQString #Short name | ||
--- @field public Spell MQSpell Spell used by the ability (if any) | ||
--- @field public Type MQFloat #Type (1-6) | ||
--- @field public AARankRequired MQFloat # Rank required to train | ||
--- @field public CanTrain MQBoolean # Returns true/false on if the Alternative Ability can be trained | ||
--- @field public Cost MQFloat # Base cost to train | ||
--- @field public Description MQString # Basic description | ||
--- @field public ID MQInt # ID | ||
--- @field public Index MQFloat # Returns the index number of the Alternative Ability | ||
--- @field public MaxRank MQFloat # Max rank available in this ability | ||
--- @field public MinLevel MQFloat # Minimum level to train | ||
--- @field public MyReuseTime MQFloat # Reuse time with any hastened AA abilties | ||
--- @field public Name MQString # Name | ||
--- @field public NextIndex MQFloat # Returns the next index number of the Alternative Ability | ||
--- @field public PointsSpent MQFloat # Returns the amount of points spent on an AA | ||
--- @field public Passive MQBoolean # Returns true/false on if the Alternative Ability is passive | ||
--- @field public RequiresAbility MQAltAbility # Required ability (if any) | ||
--- @field public Rank MQFloat # Returns the Rank of the AA | ||
--- @field public RequiresAbilityPoints MQFloat # Points required in above ability | ||
--- @field public ReuseTime MQFloat # Reuse time in seconds | ||
--- @field public ShortName MQString # Short name | ||
--- @field public Spell MQSpell # Spell used by the ability (if any) | ||
--- @field public Type MQFloat # Type (1-6) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- @class bool | ||
--- @field public ToString "TRUE" for non-zero, or "FALSE" for zero | ||
--- @field public ToString MQString # "TRUE" for non-zero, or "FALSE" for zero |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
--- @class buff : spell | ||
--- @field public Counters MQFloat #The number of counters added by the buff | ||
--- @field public Dar MQFloat #The remaining damage absorption of the buff (if any). This is not entirely accurate, it will only show you to the Dar of your spell when it was initially cast, or what it was when you last zoned (whichever is more recent). | ||
--- @field public Counters MQFloat # The number of counters added by the buff | ||
--- @field public Dar MQFloat # The remaining damage absorption of the buff (if any). This is not entirely accurate, it will only show you to the Dar of your spell when it was initially cast, or what it was when you last zoned (whichever is more recent). | ||
--- @field public Duration ticks The time remaining before the buff fades (not total duration) | ||
--- @field public ID MQInt #The ID of the buff or shortbuff slot | ||
--- @field public Level MQFloat #The level of the person that cast the buff on you (not the level of the spell) | ||
--- @field public Mod MQFloat The modifier to a bard song | ||
--- @field public Remove fun() Removes the named/partial name buff | ||
--- @field public Spell MQSpell The spell | ||
--- @field public ToString MQString #Same as Name | ||
--- @field public ID MQInt # The ID of the buff or shortbuff slot | ||
--- @field public Level MQFloat # The level of the person that cast the buff on you (not the level of the spell) | ||
--- @field public Mod MQFloat # The modifier to a bard song | ||
--- @field public Spell MQSpell # The spell | ||
--- @field public ToString MQString # Same as Name | ||
local buff = nil | ||
|
||
---Removes the named/partial name buff | ||
function buff.Remove() end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
---@class class | ||
---@field public CanCast MQBoolean #Can cast seplls, including Bard | ||
---@field public ClericType MQBoolean #Cleric/Paladin? | ||
---@field public DruidType MQBoolean #Druid/Ranger? | ||
---@field public HealerType MQBoolean #Cleric/Druid/Shaman? | ||
---@field public ID MQInt #The class's ID # | ||
---@field public MercType MQBoolean #Mercenary? | ||
---@field public Name MQString #The long name, as in "Ranger" | ||
---@field public NecromancerType MQBoolean #Necromancer/Shadow Knight? | ||
---@field public PureCaster MQBoolean #Any one of: Cleric, Druid, Shaman, Necromancer, Wizard, Mage, Enchanter | ||
---@field public ShamanType MQBoolean #Shaman/Beastlord? | ||
---@field public ShortName MQString #The short name as in "RNG" | ||
---@field public CanCast MQBoolean # Can cast seplls, including Bard | ||
---@field public ClericType MQBoolean # Cleric/Paladin? | ||
---@field public DruidType MQBoolean # Druid/Ranger? | ||
---@field public HealerType MQBoolean # Cleric/Druid/Shaman? | ||
---@field public ID MQInt # The class's ID # | ||
---@field public MercType MQBoolean # Mercenary? | ||
---@field public Name MQString # The long name, as in "Ranger" | ||
---@field public NecromancerType MQBoolean # Necromancer/Shadow Knight? | ||
---@field public PureCaster MQBoolean # Any one of: Cleric, Druid, Shaman, Necromancer, Wizard, Mage, Enchanter | ||
---@field public ShamanType MQBoolean # Shaman/Beastlord? | ||
---@field public ShortName MQString # The short name as in "RNG" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
---@class corpse : spawn Data related to the current lootable corpse. See [Corpse](https://docs.macroquest.org/reference/top-level-objects/tlo-corpse/) | ||
---@field public Items MQFloat #Number of items on the corpse | ||
---@field public Open MQBoolean #Corpse open? | ||
corpse = {} | ||
---@class corpse : spawn # Data related to the current lootable corpse. See [Corpse](https://docs.macroquest.org/reference/top-level-objects/tlo-corpse/) | ||
---@field public Items MQFloat # Number of items on the corpse | ||
---@field public Open MQBoolean # Corpse open? | ||
local corpse = {} | ||
|
||
---@diagnostic disable: duplicate-set-field | ||
--- Finds an item by partial name in this corpse (use =<name> for exact match) | ||
---@param name string | ||
---@return MQItem | ||
function corpse.Item(name) end | ||
|
||
--- Nth item on the corpse | ||
---@param index any | ||
---@param index integer | ||
---@return MQItem | ||
function corpse.Item(index) end | ||
function corpse.Item(index) end | ||
---@diagnostic enable: duplicate-set-field |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
---@class framelimiter | ||
---@field public BackgroundFPS MQFloat #Value of the target background fps setting. | ||
---@field public ClearScreen MQBoolean #Value of the clear screen when not rendering setting. | ||
---@field public CPU MQFloat #Current CPU usage as % | ||
---@field public Enabled MQBoolean #TRUE if the frame limiter feature is currently active. | ||
---@field public ForegroundFPS MQFloat #Value of the target foreground fps setting. | ||
---@field public MinSimulationFPS MQFloat #Value of the minimum simualtion rate setting. | ||
---@field public RenderFPS MQFloat #Current graphics scene frame rate (visible fps). | ||
---@field public SaveByChar MQBoolean #TRUE if settings for the frame limiter are being saved by character. | ||
---@field public SimulationFPS MQFloat #Current simulation frame rate (game updates per second). | ||
---@field public Status MQString #Either "Foreground" or "Background". | ||
---@field public BackgroundFPS MQFloat # Value of the target background fps setting. | ||
---@field public ClearScreen MQBoolean # Value of the clear screen when not rendering setting. | ||
---@field public CPU MQFloat # Current CPU usage as % | ||
---@field public Enabled MQBoolean # TRUE if the frame limiter feature is currently active. | ||
---@field public ForegroundFPS MQFloat # Value of the target foreground fps setting. | ||
---@field public MinSimulationFPS MQFloat # Value of the minimum simualtion rate setting. | ||
---@field public RenderFPS MQFloat # Current graphics scene frame rate (visible fps). | ||
---@field public SaveByChar MQBoolean # TRUE if settings for the frame limiter are being saved by character. | ||
---@field public SimulationFPS MQFloat # Current simulation frame rate (game updates per second). | ||
---@field public Status MQString # Either "Foreground" or "Background". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
--- @class friends | ||
--- @field public Friend boolean Returns TRUE if name is on your friend list | ||
--- @field public ToString number Number of friends on your friends list | ||
--- @field public ToString MQString # Number of friends on your friends list | ||
local friends = nil | ||
|
||
---@diagnostic disable: duplicate-set-field | ||
---@param name string | ||
---@return boolean | ||
function friends.Friend(name) end | ||
|
||
---@param index integer | ||
---@return string # Returns the name of friend list member at [index] | ||
function friends.Friend(index) end | ||
---@diagnostic enable: duplicate-set-field |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- @class heading | ||
--- @field public Clock MQFloat #The nearest clock direction, e.g. 1-12 | ||
--- @field public Degrees MQFloat #Heading in degrees | ||
--- @field public DegreesCCW MQFloat #Heading in degrees counter-clockwise. This is the way the rest of MQ and EQ uses it. | ||
--- @field public Name MQString #The long compass direction, e.g. "south by southeast" | ||
--- @field public ShortName MQString #The short compass direction, e.g. "SSE" | ||
--- @field public Clock MQFloat # The nearest clock direction, e.g. 1-12 | ||
--- @field public Degrees MQFloat # Heading in degrees | ||
--- @field public DegreesCCW MQFloat # Heading in degrees counter-clockwise. This is the way the rest of MQ and EQ uses it. | ||
--- @field public Name MQString # The long compass direction, e.g. "south by southeast" | ||
--- @field public ShortName MQString # The short compass direction, e.g. "SSE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- @class invslot | ||
--- @field public ID MQInt #ID of this item slot (usable directly by /itemnotify) | ||
--- @field public Item MQItem Item data for the item in this slot | ||
--- @field public Name MQString #For inventory slots not inside packs, the slot name, otherwise NULL | ||
--- @field public Pack invslot Container that must be opened to access the slot with /itemnotify | ||
--- @field public Slot MQInt #Slot number inside the pack which holds the item, otherwise NULL | ||
--- @field public ToString MQString #Same as ID | ||
--- @field public ID MQInt # ID of this item slot (usable directly by /itemnotify) | ||
--- @field public Item MQItem # Item data for the item in this slot | ||
--- @field public Name MQString # For inventory slots not inside packs, the slot name, otherwise NULL | ||
--- @field public Pack MQInvSlot # Container that must be opened to access the slot with /itemnotify | ||
--- @field public Slot MQInt # Slot number inside the pack which holds the item, otherwise NULL | ||
--- @field public ToString MQString # Same as ID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
--- @class skill | ||
--- @field public Activated MQBoolean #Returns TRUE if the skill has been activated | ||
--- @field public AltTimer MQBoolean #Returns TRUE if the skill uses the kick/bash/slam/backstab/frenzy timer | ||
--- @field public ID number Skill number | ||
--- @field public MinLevel MQInt #Minimum level for your class | ||
--- @field public Name MQString #Name of the skill | ||
--- @field public ReuseTime MQFloat #Reuse timer (what number format? ticks, seconds, deciseconds?) | ||
--- @field public SkillCap MQInt #Skill cap based on your current level and class. | ||
--- @field public StartingSkill MQInt #Base skill level for your class | ||
--- @field public ToString MQString #Same as Name | ||
--- @field public Activated MQBoolean # Returns TRUE if the skill has been activated | ||
--- @field public AltTimer MQBoolean # Returns TRUE if the skill uses the kick/bash/slam/backstab/frenzy timer | ||
--- @field public ID MQInt # Skill number | ||
--- @field public MinLevel MQInt # Minimum level for your class | ||
--- @field public Name MQString # Name of the skill | ||
--- @field public ReuseTime MQFloat # Reuse timer (what number format? ticks, seconds, deciseconds?) | ||
--- @field public SkillCap MQInt # Skill cap based on your current level and class. | ||
--- @field public StartingSkill MQInt # Base skill level for your class | ||
--- @field public ToString MQString # Same as Name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.