User Tools

Site Tools



mashlib

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mashlib [2021/12/14 12:20] masshirodevmashlib [2021/12/25 22:01] (current) masshirodev
Line 1: Line 1:
-MashLib+===== MashLib =====
 A collection of useful commands that are going to be necessary to run my future addons. A collection of useful commands that are going to be necessary to run my future addons.
  
-## Support+==== Support ====
 If you need support with this library or just wanna chat, join my [Discord Server](https://discord.gg/CvA8zjNRnq)! :D If you need support with this library or just wanna chat, join my [Discord Server](https://discord.gg/CvA8zjNRnq)! :D
  
-## Structure +==== Structure ==== 
-```lua+<code lua>
 MashLib = { MashLib = {
     Helpers, -- Helpful stuff     Helpers, -- Helpful stuff
Line 22: Line 22:
     Space, -- 2D and 3D space related stuff     Space, -- 2D and 3D space related stuff
 } }
-```+</code>
  
-## API +==== API ==== 
-### Helpers +=== Helpers === 
-```lua+<code lua>
 --[[ --[[
     Get current time     Get current time
Line 216: Line 216:
 function MashLib.Helpers.DeleteEmpty(table) function MashLib.Helpers.DeleteEmpty(table)
  
-```+--[[ 
 +    Returns a table without the key/value passed 
 +    @param {table} table 
 +    @param {string} key 
 +    @return {table} 
 +]] 
 +function MashLib.Helpers.DeleteByKey(table, key) 
 + 
 +--[[ 
 +    Returns a table without the key/value passed 
 +    @param {table} table 
 +    @param {any} value 
 +    @return {table} 
 +]] 
 +function MashLib.Helpers.DeleteByValue(table, value) 
 + 
 +--[[ 
 +    Returns minion's quest id from GarlandTools quest id 
 +    @param {int} questId 
 +    @return {int} 
 +]] 
 +function MashLib.Helpers.GetMinionQuestId(questId) 
 + 
 +</code>
  
-### System +=== System === 
-```lua+<code lua>
 --[[ --[[
     Get most common keys from the keyboard.     Get most common keys from the keyboard.
Line 365: Line 388:
 ]] ]]
 function MashLib.System.FindEntityAroundPlayer(contentId) function MashLib.System.FindEntityAroundPlayer(contentId)
-```+</code>
  
-### Powershell +=== Powershell === 
-```lua+<code lua>
 --[[ --[[
     Execute a powershell file (.ps1)     Execute a powershell file (.ps1)
Line 399: Line 422:
 ]] ]]
 function MashLib.Powershell.PlaySound() function MashLib.Powershell.PlaySound()
-```+</code>
  
-### Character +=== Character === 
-```lua+<code lua>
 --[[ --[[
     Get the list of buffs on your character     Get the list of buffs on your character
Line 444: Line 467:
 ]] ]]
 function MashLib.Character.SetMoveModeTo(id) function MashLib.Character.SetMoveModeTo(id)
-```+</code>
  
-### Character.Inventory +=== Character.Inventory === 
-```lua+<code lua>
 --[[ --[[
     Return an inventory item info by id     Return an inventory item info by id
Line 529: Line 552:
 ]] ]]
 function MashLib.Character.Inventory.MoveObject(object, toinventory, toslot) function MashLib.Character.Inventory.MoveObject(object, toinventory, toslot)
-```+</code>
  
-### API +=== API === 
-```lua+<code lua>
 --[[ --[[
     Get an API endpoint's info by name     Get an API endpoint's info by name
Line 539: Line 562:
 ]] ]]
 function MashLib.API.GetEndpoint(name) function MashLib.API.GetEndpoint(name)
-```+</code>
  
-### Crafting +=== Crafting === 
-```lua+<code lua>
 --[[ --[[
     Get a craft condition by name     Get a craft condition by name
Line 549: Line 572:
 ]] ]]
 function MashLib.Crafting.GetCondition(name) function MashLib.Crafting.GetCondition(name)
-```+</code>
  
-### Gathering +=== Gathering === 
-### Battle +=== Battle === 
-```lua+<code lua>
 --[[ --[[
     Get an encounter info by ID     Get an encounter info by ID
Line 567: Line 590:
 ]] ]]
 function MashLib.Battle.GetSkillListByJobID(job) function MashLib.Battle.GetSkillListByJobID(job)
-```+</code>
  
-### Hacks +=== Hacks === 
-```lua+<code lua>
 --[[ --[[
     Set character's speed     Set character's speed
Line 578: Line 601:
 ]] ]]
 function MashLib.Hacks.Speed.Set(fly, walk, mount) function MashLib.Hacks.Speed.Set(fly, walk, mount)
-```+</code>
  
-### Hunt +=== Hunt === 
-```lua+<code lua>
 --[[ --[[
     Get a mark's name by it's id     Get a mark's name by it's id
Line 612: Line 635:
 ]] ]]
 function MashLib.Hunt.GetMarkListPerMap(option) function MashLib.Hunt.GetMarkListPerMap(option)
-```+</code>
  
-### Space +=== Space === 
-```lua+<code lua>
 --[[ --[[
     Moves character to coords     Moves character to coords
Line 694: Line 717:
 ]] ]]
 function MashLib.Space.GetMapScale(id) function MashLib.Space.GetMapScale(id)
-```+</code>
  
-### Logging +=== Logging === 
-```lua+<code lua>
 --[[ --[[
     Logs an entity     Logs an entity
Line 704: Line 727:
 ]] ]]
 function MashLib.Logging.Entity(target) function MashLib.Logging.Entity(target)
-```+</code>
mashlib.1639484410.txt.gz · Last modified: 2021/12/14 12:20 by masshirodev