Skip to content

Commit

Permalink
Revert "Remove plugins, should be in its own repo (#80)" (#81)
Browse files Browse the repository at this point in the history
This reverts commit c1ae161.
  • Loading branch information
johnfking authored Apr 3, 2024
1 parent c1ae161 commit 3701efa
Show file tree
Hide file tree
Showing 7 changed files with 331 additions and 0 deletions.
68 changes: 68 additions & 0 deletions mq/plugins/DanNet/_TLO.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---@meta

--- DanNet Lua Bindings
---@class TLO.DanNet
---@field Name MQString # Current node name (fully qualified)
---@field Version MQString # Current build version
---@field Debug MQBoolean # Debugging flag
---@field LocalEcho MQBoolean # Local echo flag (outgoing echo)
---@field CommandEcho MQBoolean # Command echo (incoming commands)
---@field FullNames MQBoolean # Print fully qualified names?
---@field FrontDelim MQBoolean # Use a front | in arrays?
---@field Timeout MQString # Timeout for implicit delay in /dquery and /dobserve commands
---@field ObserveDelay MQInt # Delay between observe broadcasts (in ms)
---@field Evasive MQInt # Time to classify a peer as evasive (in ms)
---@field EvasiveRefresh MQBoolean
---@field Expired MQInt # Keepalive time for non-responding peers (in ms)
---@field Keepalive MQInt # Keepalive time for local actor pipe (in ms)
---@field PeerCount MQInt # Number of connected peers
---@field Peers MQString # List of connected peers
---@field GroupCount MQInt # Number of all groups
---@field Groups MQString # List of all groups
---@field JoinedCount MQInt # Number of joined groups
---@field Joined MQString # List of joined groups
TLO.DanNet = {}

---@param peerName string
---@return peer|fun(): string|nil
function TLO.DanNet(peerName) end

---@param groupName string
---@return string # all peers in the [groupName] group
function TLO.DanNet.Peers(groupName) end

---- Observe accessor
---@return string # List all queries observers have registered
function TLO.DanNet.O() end

---- Observe accessor
---@return string # List all queries that self has registered on peer
function TLO.DanNet.Observe() end

---- Observe accessor
---@param query string
---@return string # Lists all peers that have registered that query as an observer on self
function TLO.DanNet.O(query) end

---- Observe accessor
---@param query string
---@return string # Lists all peers that have registered that query as an observer on self
function TLO.DanNet.Observe(query) end

---@return integer # Count observed data on self
function TLO.DanNet.OCount() end

---@return integer # Count observed data on self
function TLO.DanNet.ObserveCount() end

---@return boolean # Determine if query has been set as observed data on self
function TLO.DanNet.OSet() end

---@return boolean # Determine if query has been set as observed data on self
function TLO.DanNet.ObserveSet() end

---@return observer # Last executed query
function TLO.DanNet.Q() end

---@return observer # Last executed query
function TLO.DanNet.Query() end
45 changes: 45 additions & 0 deletions mq/plugins/DanNet/_datatypes.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---@class observer
---@field Received MQInt # The last received timestamp, or 0 for never received

---@class peer
peer = nil

---- Observe accessor
---@return string # List all queries that self has registered on peer
function peer.O() end

---- Observe accessor
---@return string # List all queries that self has registered on peer
function peer.Observe() end

---- Observe accessor
---@param query string
---@return string # attempt to retrieve the data specified on the remote peer
function peer.O(query) end

---- Observe accessor
---@param query string
---@return observer | fun(): string # Attempt to retrieve the data specified on the remote peer
function peer.Observe(query) end

---@return integer # Count observed data on peer
function peer.OCount() end

---@return integer # Count observed data on peer
function peer.ObserveCount() end

---@param query string
---@return boolean # Determine if query has been set as observed data on peer
function peer.OSet(query) end

---@param query string
---@return boolean # Determine if query has been set as observed data on peer
function peer.ObserveSet(query) end

---@param query string
---@return observer | fun(): string # Last executed query
function peer.Q(query) end

---@param query string
---@return observer | fun(): string # Last executed query
function peer.Query(query) end
14 changes: 14 additions & 0 deletions mq/plugins/EQBC/_TLO.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---@meta

--- EQBC Lua Bindings
---@class TLO.EQBC
---@field Connected MQBoolean #Client connection status
---@field Names MQString #List of connected characters (space delmited)
---@field Port MQString #OFFLINE if not connected, port if connected
---@field Server MQString #Hostname or IP of server you connected to
---@field ToonName MQString #Character name as seen by EQBC \(may reflect YouPlayer\)
TLO.EQBC = {}

---#Option enabled/disabled status. \(see **/bccmd set** for complete list\)
---@param name string e.g. "localecho"
function TLO.EQBC.Setting(name) end
92 changes: 92 additions & 0 deletions mq/plugins/MoveUtils/_TLO.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
---@meta

--- MoveUtils Lua Bindings
---@class TLO.MoveUtils
---@field Command MQString #Returns the currently active command. MAKECAMP returns if a camp is setup but no other command is currently in use ["NONE", "STICK", "MOVETO", "MAKECAMP", "CIRCLE"]
---@field Stuck MQBoolean #Returns true if plugin stucklogic has determined you are currently stuck
---@field Summoned MQBoolean #Returns true if BreakOnSummon is enabled and has fired due to your character being summoned beyond breakonsummon distance
---@field StuckLogic MQBoolean #Returns TRUE if stucklogic is enabled
---@field Verbosity MQBoolean #Returns TRUE if verbosity is enabled
---@field FullVerbosity MQBoolean #Returns TRUE if fullverbosity is enabled
---@field TotalSilence MQBoolean #Returns TRUE if totalsilence is enabled
---@field Aggro MQBoolean #Returns TRUE if you are facing your target and your target is facing you
---@field TryToJump MQBoolean #Returns TRUE if stucklogic trytojump is enabled
---@field PauseMinDelay MQInt #Returns the min delay for mousepause and mpause to resume command in ms
---@field PauseMaxDelay MQInt #Returns the max delay for mousepause and mpause to resume command in ms
---@field PulseCheck MQInt #Returns the number of pulses used to average movement rate for stucklogic
---@field PulseUnstuck MQInt #Returns the number of pulses successfully moved forward after being stuck to be considered unstuck
---@field DistStuck MQFloat #Returns the amount of distance needed to have moved \(compared against pulse average\) or else considered stuck by stucklogic
---@field Version MQFloat #Returns the version number of the plugin
---@field MovePause MQBoolean #Returns TRUE if mpause \(PauseKB\) is enabled
---@field GM MQBoolean #Returns TRUE if BreakOnGM fired
TLO.MoveUtils = {}

--- Stick Lua Bindings
---@class Stick
---@field Status MQString #Returns ON if any form of stick is active ["OFF", "PAUSED" or "ON"]
---@field Active MQBoolean #Returns TRUE if any form of stick is active
---@field Broken MQBoolean #Returns TRUE if BreakOnHit event has halted stick prematurely
---@field Distance MQFloat #Returns current distance used by stick
---@field MoveBehind MQBoolean #Returns TRUE if stick behind is active
---@field MoveBack MQBoolean #Returns TRUE if moveback is active
---@field Loose MQBoolean #Returns TRUE if loose sticking is enabled
---@field Paused MQBoolean #Returns TRUE if plugin is paused
---@field Behind MQBoolean #Returns TRUE if currently behind target \(regardless of _/stick behind_\), false if outside of stick dist or not behind
---@field Stopped MQBoolean #Returns TRUE if stick is within stick distance
---@field Pin MQBoolean #Returns TRUE if stick pin is active
---@field StickTarget MQInt #Returns spawnid of stick target if stick id/hold used, else spawnid of current target, 0 if no target and id/hold not used
---@field StickTargetName MQString #Returns DisplayedName of stick target if stick id/hold used, else current target or NONE if no target and hold/id not used
---@field DistMod MQFloat #Returns current stickdist modifier
---@field DistModPercent MQFloat #Returns current stickdist percent modifier
---@field Always MQBoolean #Returns TRUE if /stick always is active
TLO.Stick = {}

--- MoveTo Lua Bindings
---@class TLO.MoveTo
---@field Moving MQBoolean #Returns TRUE if moveto or camp return is active
---@field Stopped MQBoolean #Returns TRUE if the last moveto command completed successfully
---@field CampStopped MQBoolean #Returns TRUE if within moveto distance of makecamp Y X location
---@field UseWalk MQBoolean #Returns TRUE if UseWalk is enabled
---@field ArrivalDist MQFloat #Returns acceptable arrival distance
---@field ArrivalDistY MQFloat #Returns acceptable arrival distance for precisey
---@field ArrivalDistX MQFloat #Returns acceptable arrival distance for precisex
---@field Broken MQBoolean #Returns TRUE if BreakOnAggro or BreakOnHit event have halted moveto prematurely
TLO.MoveTo = {}

--- MakeCamp Lua Bindings
---@class TLO.MakeCamp
---@field Status MQString #Returns status of MakeCamp command. AltCamp returns OFF ["OFF", "PAUSED" or "ON"]
---@field Leash MQBoolean #Returns TRUE if plugin stucklogic has determined you are currently stuck
---@field AnchorX MQFloat #Returns location of current camp X anchor
---@field AnchorY MQFloat #Returns location of current camp Y anchor
---@field LeashLength MQFloat #Returns size of Leash Length
---@field CampRadius MQFloat #Returns size of camp radius
---@field MinDelay MQInt #Returns the min delay for auto-returning to camp in ms
---@field MaxDelay MQInt #Returns the max delay for auto-returning to camp in ms
---@field Returning MQBoolean #Returns TRUE if /makecamp return issued
---@field AltAnchorX MQFloat #Returns location of current altcamp X anchor
---@field AltAnchorY MQFloat #Returns location of current altcamp Y anchor
---@field CampDist MQFloat #Returns distance to camp anchor from your current location. Returns 0.00 if camp is disabled
---@field AltCampDist MQFloat #Returns distance to altcamp anchor from your current location. Returns 0.00 if camp is disabled
---@field AltRadius MQFloat #Returns size of altcamp radius
---@field Scatter MQBoolean #Returns TRUE if camp scattering enabled
---@field ReturnNoAggro MQBoolean #Returns TRUE if ReturnNoAggro is enabled
---@field ReturnNotLooting MQBoolean #Returns TRUE if ReturnNotLooting is enabled
---@field ReturnHaveTarget MQBoolean #Returns TRUE if ReturnHaveTarget is enabled
---@field Bearing MQFloat #Returns the bearing \(heading\) of camp scattering
---@field ScatDist MQFloat #Returns the distance from anchor to perform scatter
---@field ScatSize MQFloat #Returns the size of scattering radius
TLO.MakeCamp = {}

--- Circle Lua Bindings
---@class TLO.Circle
---@field Status MQString #Returns ON if circling ["OFF", "PAUSED" or "ON"]
---@field CircleY MQFloat #Returns the location of circle center Y
---@field CircleX MQFloat #Returns the location of circle center X
---@field Drunken MQBoolean #Returns TRUE if drunken
---@field Rotation MQString #Returns CCW if reverse circling ["CW" or "CCW"]
---@field Direction MQString #Returns movement direction of current circle ["FORWARDS" or "BACKWARDS"]
---@field Clockwise MQBoolean #Returns FALSE if reverse circling
---@field Backwards MQBoolean #Returns TRUE if movement direction backwards
---@field Radius MQFloat #Returns the radius size of circle
TLO.Circle = {}
14 changes: 14 additions & 0 deletions mq/plugins/NetBots/_TLO.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---@meta

--- NetBots Lua Bindings
---@class TLO.NetBots
---@field Client fun(index: integer): string The name of the netbot at the given index in the array
---@field Counts MQInt #The number of connected clients.
---@field Enable MQBoolean #The plugin status.
---@field Listen MQBoolean #The grab parameter status.
---@field Output MQBoolean #The send parameter status.
TLO.NetBots = {}

---@param name string # Name of he netbot
---@return netbot|"NULL" # Returns the netbot with the given name or 'NULL' if not found
function TLO.NetBots(name) end
89 changes: 89 additions & 0 deletions mq/plugins/NetBots/_datatypes.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
--- @class netbot
--- @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 Class class Class of Name.
--- @field public Level MQInt #Level of Name.
--- @field public PctExp MQFloat #Percent Experience of Name.
--- @field public PctAAExp MQFloat #Percent AA Experience of Name.
--- @field public PctGroupLeaderExp MQFloat #Percent Group Leader Experience of Name. EMU servers only.
--- @field public CurrentHPs MQInt #Current Hitpoints of Name.
--- @field public MaxHPs MQInt #Total Hitpoints of Name
--- @field public PctHPs MQInt #Current Hitpoints percentage of Name.
--- @field public CurrentEndurance MQInt #Current Endurace of Name. Requires Extended=1 in the ini.
--- @field public MaxEndurance MQInt #Total Endurance of Name. Requires Extended=1 in the ini.
--- @field public PctEndurace MQInt #Current Endurance percentage of Name. Requires Extended=1 in the ini.
--- @field public CurrentMana MQInt #Current Mana of Name.
--- @field public MaxMana MQInt #Total Mana of Name.
--- @field public PctMana MQInt #Current Mana percentage of Name.
--- @field public PetID MQInt #Spawn ID of Name's pet.
--- @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 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?
--- @field public Binding MQBoolean #Is Name kneeling?
--- @field public Ducking MQBoolean #Is Name ducking?
--- @field public Feigning MQBoolean #Is Name feigning?
--- @field public Grouped MQBoolean #Is Name in a group? (not necessarily your own group)
--- @field public Invis MQBoolean #Is Name invis?
--- @field public Levitating MQBoolean #Is Name levitating?
--- @field public LFG MQBoolean #Is Name LFG?
--- @field public Mounted MQBoolean #Is Name on a mount?
--- @field public Moving MQBoolean #Is Name moving?
--- @field public Detrimentals MQInt #Total of detrimental counts for Name.
--- @field public Detrimental MQString #A string list of all detrimental types affecting Name.
--- @field public Raid MQBoolean #Is Name in a raid?
--- @field public Sitting MQBoolean #Is Name sitting?
--- @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 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.
--- @field public UnusedAA MQInt #Total unspent AAs of Name.
--- @field public CombatState MQInt #Combat State of Name.
--- @field public Counters MQInt #Cursed,etc. counters for Name.
--- @field public Cursed MQInt #Cursed counters for Name.
--- @field public Diseased MQInt #Diseased counters for Name.
--- @field public Poisoned MQInt #Poisoned counters for Name.
--- @field public Corrupted MQInt #Corrupted counters for Name.
--- @field public EnduDrain MQInt #Endurance drain counters for Name.
--- @field public LifeDrain MQInt #HP drain counters for Name.
--- @field public ManaDrain MQInt #Mana drain counters for Name.
--- @field public Blinded MQInt #Blinded counters for Name.
--- @field public CastingLevel MQInt #CastingLevel counters for Name.
--- @field public Charmed MQInt #Charmed counters for Name.
--- @field public Feared MQInt #Feared counters for Name.
--- @field public Healing MQInt #Healing counters for Name.
--- @field public Invulnerable MQInt #Invulnerable counters for Name.
--- @field public Mesmerized MQInt #Mesmerized counters for Name.
--- @field public Rooted MQInt #Rooted counters for Name.
--- @field public Silenced MQInt #Silenced counters for Name.
--- @field public Slowed MQInt #Slowed counters for Name.
--- @field public Snared MQInt #Snared counters for Name.
--- @field public SpellCost MQInt #SpellCost counters for Name.
--- @field public SpellSlowed MQInt #SpellSlowed counters for Name.
--- @field public SpellDamage MQInt #SpellDamage counters for Name.
--- @field public Trigger MQInt #Trigger counters for Name.
--- @field public Resistance MQInt #Resistance counters for Name.
--- @field public NoCure MQInt #NoCure counters for Name.
--- @field public Location MQString #The Y,X,Z location of Name.
--- @field public Heading MQString #The Heading of Name.
--- @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.
9 changes: 9 additions & 0 deletions mq/plugins/Twist/_TLO.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---@meta

--- Twist Lua Bindings
---@class TLO.Twist
---@field Twisting MQBoolean #Returns TRUE if currently twisting, FALSE if not and NULL if plugin not loaded.
---@field Current MQInt #Returns the current gem being sung, -1 for item or 0 if not twisting
---@field Next MQInt #Returns the next gem to be sung, -1 for item or 0 if not twisting
---@field List MQString #Returns the twist sequence in a format suitable for /twist.
TLO.Twist = {}

0 comments on commit 3701efa

Please sign in to comment.