Skip to content

Commit

Permalink
Fix issues with netbots defs (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
projecteon authored Jun 23, 2024
1 parent 2d4066f commit 0b8e322
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions mq/plugins/NetBots/_datatypes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
--- @field public Name MQString #Name of Name.
--- @field public Zone MQInt #Zone ID of Name.
--- @field public Instance MQInt #Instance ID of Name.
--- @field public ID fun(): integer|'NULL' Spawn ID of Name.
--- @field public MQInt Spawn ID of Name.
--- @field public Class class Class of Name.
--- @field public Level MQInt #Level of Name.
--- @field public PctExp MQFloat #Percent Experience of Name.
Expand All @@ -21,7 +21,7 @@
--- @field public PetHP MQInt #Hitpoints of Name's pet.
--- @field public TargetID MQInt #Spawn ID of Name's target.
--- @field public TargetHP MQInt #Hitpoints of Name's target.
--- @field public Casting spell | fun(): 'NULL' Spell Name is casting.
--- @field public Casting MQSpell Spell Name is casting.
--- @field public State MQString #State of Name (STUN STAND SIT DUCK BIND FEIGN DEAD UNKNOWN).
--- @field public Attacking MQBoolean #Is Name Attacking?
--- @field public AFK MQBoolean #Is Name AFK?
Expand All @@ -41,16 +41,11 @@
--- @field public Standing MQBoolean #Is Name standing?
--- @field public Stunned MQBoolean #Is Name stunned?
--- @field public FreeBuffSlots MQInt #Total free buff slots Name has.
--- @field public InZone fun(): boolean|'NULL' Is Name in the same zone as you?
--- @field public InZone MQBoolean Is Name in the same zone as you?
--- @field public InGroup MQBoolean #Is Name in your group?
--- @field public Leader MQString #Is Name the group leader?
--- @field public Note MQString #Is Name the group leader?
--- @field public Updated MQInt #Timestamp of last NetBots update from Name.
--- @field public Gem fun(): string|fun(gemNumber?: integer): spell All spells Name has memorized, or Spell that is memorized in Gem[gemNumber].
--- @field public Buff fun(): string|fun(gemNumberOrSpellName?: integer|string): spell All buffs Name currently has, or spell in Gem[gemNumberOrSpellName] or buff name by [gemNumberOrSpellName]
--- @field public Duration fun(): string|fun(gemNumber?: integer): integer Duration remaining of all buffs Name has or Duration of the buff on Name in slot Gem[gemNumber].
--- @field public ShortBuff fun(): string|fun(gemNumberOrSpellName?: integer|string): spell All short duration buffs Name currently has, or spell in Gem[gemNumberOrSpellName] or buff name by [gemNumberOrSpellName]
--- @field public PetBuff fun(): string|fun(gemNumberOrSpellName?: integer|string): spell All pet buffs Name currently has, or spell in Gem[gemNumberOrSpellName] or buff name by [gemNumberOrSpellName]
--- @field public Stacks fun(buffId: integer): boolean Returns true if the buffId will stack on netbot.
--- @field public TotalAA MQInt #Total AAs Name has.
--- @field public UsedAA MQInt #Total spend AAs of Name.
Expand Down Expand Up @@ -86,4 +81,17 @@
--- @field public MacroName MQString #The running macro of Name, empty string if none running.
--- @field public MacroState MQInt #The macro state for Name. 0=No macro running, 1=Running, 2=Paused
--- @field public NavigationActive MQBoolean #If running a MQ2Nav path for Name.
--- @field public NavigationPaused MQBoolean #If a MQ2Nav path is paused for Name.
--- @field public NavigationPaused MQBoolean #If a MQ2Nav path is paused for Name.
local netbot = {}

---@return string Space delmited string with all buff spell IDs
---@overload fun(buffIndex: integer): spell
function netbot.Buff() end

---@return string Space delmited string with all buff spell IDs
---@overload fun(buffIndex: integer): spell
function netbot.PetBuff() end

---@return string Space delmited string with all buff spell IDs
---@overload fun(buffIndex: integer): spell
function netbot.ShortBuff() end

0 comments on commit 0b8e322

Please sign in to comment.