Skip to content

Commit

Permalink
Missing Character Members Added (#74)
Browse files Browse the repository at this point in the history
* - Character.AbilityTimer
- Character.AbilityTimerTotal
- Character.BlockedBuff
- Character.BlockedPetBuff

* Added Social TLO and Item.Range
  • Loading branch information
DerpleMQ2 authored Feb 3, 2024
1 parent dac979a commit 5a2f781
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 0 deletions.
44 changes: 44 additions & 0 deletions mq/datatype/_character.lua
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,27 @@ function character.AltAbilityTimer(index) end
function character.AltAbilityTimer(name) end
---@diagnostic enable: duplicate-set-field

---@diagnostic disable: duplicate-set-field
---@param index integer|string # Alt ability #
---@return timestamp
function character.AbilityTimer(index) end

---@param name string
---@return timestamp
function character.AbilityTimer(name) end
---@diagnostic enable: duplicate-set-field

---@diagnostic disable: duplicate-set-field
---@param index integer|string # ability #
---@return timestamp
function character.AbilityTimerTotal(index) end

---@param name string
---@return timestamp
function character.AbilityTimerTotal(name) end

---@diagnostic enable: duplicate-set-field

---@param name string
---@return integer
function character.AltCurrency(name) end
Expand Down Expand Up @@ -288,6 +309,29 @@ function character.Bank(slot) end
---@return MQItem
function character.SharedBank(slot) end

---@diagnostic disable: duplicate-set-field
---@param spellId integer # Spell ID
---@return spell
function character.BlockedPetBuff(spellId) end

---@param spellId integer # Spell ID
---@return spell
function character.BlockedBuff(spellId) end

---@param spellName string # Spell Name
---@return spell
function character.BlockedBuff(spellName) end

---@diagnostic enable: duplicate-set-field
---@param spellId integer # Spell ID
---@return spell
function character.BlockedPetBuff(spellId) end

---@param spellName string # Spell Name
---@return spell
function character.BlockedPetBuff(spellName) end
---@diagnostic enable: duplicate-set-field

---@diagnostic disable: duplicate-set-field
---@param name string
---@return integer # Slot in your spell book assigned to spell name
Expand Down
1 change: 1 addition & 0 deletions mq/datatype/_item.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
---@field public Purity MQFloat #Purity of item
---@field public Race fun(filter: number|string): MQString #Returns the #th long race name of the listed races on an item. Items suitable for ALL races will effectively have all 15 races listed.
---@field public Races MQFloat #The number of races that can use the item. Items suitable for ALL races will return 15.
---@field public Range integer #Range of the item
---@field public RequiredLevel MQFloat #Returns the Required Level of an item. Items with no required level will return 0.
---@field public SellPrice MQFloat #Price to sell this item at this merchant
---@field public Shielding MQFloat #Shielding
Expand Down
12 changes: 12 additions & 0 deletions mq/datatype/_social.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---@meta

---@class social # This datatype accesses you EQ Social Buttons
---@field Name string # The Label of the Social
---@field TimerBegin integer # Timer Begin of the Social
---@field TimerEnd integer # Timer End of the Social
---@field Color integer # Social Color code index
local social = {}

---@param index integer # 0-4 index of the cmd line you want
---@return MQString
function social.Cmd(index) end
5 changes: 5 additions & 0 deletions mq/mq.lua
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,11 @@ function TLO.Mount(index) end
---@return keyringitem
function TLO.Mount(name) end

----Returns the Socail button at this index (0-119)
---@param index integer
---@return social
function TLO.Social(index) end

----Returns a count of Spawns by use of a [Spawn Search](https://docs.macroquest.org/reference/general/spawn-search/) filter
---@param filter string
---@return MQInt
Expand Down

0 comments on commit 5a2f781

Please sign in to comment.