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/05/08 17:34] masshirodevmashlib [2021/12/25 22:01] (current) masshirodev
Line 1: Line 1:
-A collection of useful functions that are necessary to run my addons. +===== MashLib ===== 
-Feel free to use them for your personal stuff!+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 [[https://discord.gg/CvA8zjNRnq|discord server]]! :D+If you need support with this library or just wanna chat, join my [Discord Server](https://discord.gg/CvA8zjNRnq)! :D
  
 ==== Structure ==== ==== Structure ====
- 
-Updated on 08-05-2021. 
- 
 <code lua> <code lua>
 MashLib = { MashLib = {
     Helpers, -- Helpful stuff     Helpers, -- Helpful stuff
     System, -- FFXIV related stuff (servers, regions, etc)     System, -- FFXIV related stuff (servers, regions, etc)
-    Powershell, -- Powershell related stuff +    Powershell, -- Powershell related functions
-    Space, -- Spatial related stuff+
     Character, -- Character related stuff     Character, -- Character related stuff
     API, -- API Requests     API, -- API Requests
     Crafting, -- Crafting related stuff     Crafting, -- Crafting related stuff
     Gathering, -- Gathering related stuff     Gathering, -- Gathering related stuff
-    Logging, -- In-dept logging 
     Misc, -- Temporary values     Misc, -- Temporary values
     Battle, -- Battle related stuff     Battle, -- Battle related stuff
 +    Hacks, -- Useful hacks
     Hunt, -- The Hunt related stuff     Hunt, -- The Hunt related stuff
-    Hacks -- Useful hacks+    Logging, -- Entity Logging 
 +    Space, -- 2D and 3D space related stuff
 } }
 </code> </code>
  
 +==== API ====
 === Helpers === === Helpers ===
 <code lua> <code lua>
Line 34: Line 32:
     @return {string}     @return {string}
 ]] ]]
-MashLib.Helpers.GetTime(type)+function MashLib.Helpers.GetTime(type) 
 + 
 +--[[ 
 +    Get current date 
 +    @param {type} type 'formatted' or 'formatted_no_spec' 
 +    @return {string} 
 +]] 
 +function MashLib.Helpers.GetDate(type)
  
 --[[ --[[
Line 41: Line 46:
     @return {int}     @return {int}
 ]] ]]
-MashLib.Helpers.TimeSince(time)+function MashLib.Helpers.TimeSince(time)
  
 --[[ --[[
Line 48: Line 53:
     @returns {table}     @returns {table}
 ]] ]]
-MashLib.Helpers.GetKeyInfo(key)+function MashLib.Helpers.GetKeyInfo(key)
  
 --[[ --[[
Line 56: Line 61:
     @returns {string}     @returns {string}
 ]] ]]
-MashLib.Helpers.GetMapName(id, mode)+function MashLib.Helpers.GetMapName(id, mode)
  
 --[[ --[[
Line 63: Line 68:
     @returns {int}     @returns {int}
 ]] ]]
-MashLib.Helpers.ToFixed(float, dec)+function MashLib.Helpers.ToFixed(float, dec)
  
 --[[ --[[
Line 70: Line 75:
     @returns {int}     @returns {int}
 ]] ]]
-MashLib.Helpers.SizeOf(tbl)+function MashLib.Helpers.SizeOf(tbl)
  
 --[[ --[[
Line 77: Line 82:
     @returns {int}     @returns {int}
 ]] ]]
-MashLib.Helpers.HandleCoolDowns(time)+function MashLib.Helpers.HandleCoolDowns(time)
  
 --[[ --[[
Line 84: Line 89:
     @returns {int}     @returns {int}
 ]] ]]
-MashLib.Helpers.GetMax(tbl)+function MashLib.Helpers.GetMax(tbl)
  
 --[[ --[[
Line 91: Line 96:
     @returns {int}     @returns {int}
 ]] ]]
-MashLib.Helpers.GetMin(tbl)+function MashLib.Helpers.GetMin(tbl)
  
 --[[ --[[
Line 97: Line 102:
     @returns {table}     @returns {table}
 ]] ]]
-MashLib.Helpers.GetNormalizationTable()+function MashLib.Helpers.GetNormalizationTable()
  
 --[[ --[[
Line 103: Line 108:
     @returns {table}     @returns {table}
 ]] ]]
-MashLib.Helpers.GetSpecialCharTable()+function MashLib.Helpers.GetSpecialCharTable()
  
 --[[ --[[
Line 111: Line 116:
     @returns {string}     @returns {string}
 ]] ]]
-MashLib.Helpers.Normalize(string, parameterize)+function MashLib.Helpers.Normalize(string, parameterize)
  
 --[[ --[[
Line 118: Line 123:
     @returns {string}     @returns {string}
 ]] ]]
-MashLib.Helpers.GetFileNameFromPath(path)+function MashLib.Helpers.GetFileNameFromPath(path)
  
 --[[ --[[
Line 124: Line 129:
     @param {string} inputstr     @param {string} inputstr
     @param {string} separator     @param {string} separator
 +    @param {string} datatype
     @returns {string}     @returns {string}
 ]] ]]
-MashLib.Helpers.SplitString(inputstr, sep)+function MashLib.Helpers.SplitString(inputstr, sep, datatype) 
 + 
 +--[[ 
 +    Join table into a string 
 +    @param {string} delimiter 
 +    @param {table} table 
 +    @returns {table} 
 +]] 
 +function MashLib.Helpers.Join(delimiter, table)
  
 --[[ --[[
Line 134: Line 148:
     @returns {string}     @returns {string}
 ]] ]]
-MashLib.Helpers.LimitLength(string, length)+function MashLib.Helpers.LimitLength(string, length)
  
 --[[ --[[
Line 141: Line 155:
     @returns {boolean}     @returns {boolean}
 ]] ]]
-MashLib.Helpers.ValidateEmail(str)+function MashLib.Helpers.ValidateEmail(str) 
 + 
 +--[[ 
 +    Returns the percentage of a value 
 +    @param {number} percent 
 +    @param {number} value 
 +    @returns {number} 
 +]] 
 +function MashLib.Helpers.PercentOf(percent, value) 
 + 
 +--[[ 
 +    Removes a value from a table 
 +    @param {table} table 
 +    @param {string} value 
 +    @returns {table} 
 +]] 
 +function MashLib.Helpers.RemoveByValue(table, value) 
 + 
 +--[[ 
 +    Gets a key/value from a value 
 +    @param {table} table 
 +    @param {string} value 
 +    @param {boolean} keyonly 
 +    @returns {table} 
 +]] 
 +function MashLib.Helpers.GetByValue(table, value, keyonly) 
 + 
 +--[[ 
 +    Formats a number with commas 
 +    @param {string} number 
 +    @returns {string} 
 +]] 
 +function MashLib.Helpers.FormatNumber(number) 
 + 
 +--[[ 
 +    Escapes slashes / 
 +    @param {string} string 
 +]] 
 +function MashLib.Helpers.EscapeSlash(string) 
 + 
 +--[[ 
 +    Returns the first entry in a table 
 +    @param {table} table 
 +    @param {bool} key 
 +]] 
 +function MashLib.Helpers.First(table, key) 
 + 
 +--[[ 
 +    Returns the last entry in a table 
 +    @param {table} table 
 +    @param {bool} key 
 +]] 
 +function MashLib.Helpers.Last(table, key) 
 + 
 +--[[ 
 +    Returns the table without empty key/values 
 +    @param {table} table 
 +    @return {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> </code>
  
Line 150: Line 247:
     @returns {Table}     @returns {Table}
 ]] ]]
-MashLib.System.GetCommonKeys()+function MashLib.System.GetCommonKeys()
  
 --[[ --[[
Line 157: Line 254:
     @returns {table}     @returns {table}
 ]] ]]
-MashLib.System.GetServer(id)+function MashLib.System.GetServer(id)
  
 --[[ --[[
Line 164: Line 261:
     @returns {table}     @returns {table}
 ]] ]]
-MashLib.System.GetChannelList()+function MashLib.System.GetChannelList()
  
 --[[ --[[
Line 170: Line 267:
     @returns {table}     @returns {table}
 ]] ]]
-MashLib.System.GetChannel(id)+function MashLib.System.GetChannel(id)
  
 --[[ --[[
Line 177: Line 274:
     @returns {string}     @returns {string}
 ]] ]]
-MashLib.System.GetRegion(id)+function MashLib.System.GetRegion(id)
  
 --[[ --[[
Line 184: Line 281:
     @returns {string}     @returns {string}
 ]] ]]
-MashLib.System.GetJob(id)+function MashLib.System.GetJob(id)
  
 --[[ --[[
Line 191: Line 288:
     @returns {int}     @returns {int}
 ]] ]]
-MashLib.System.GetJobId(name)+function MashLib.System.GetJobId(name)
  
 --[[ --[[
Line 198: Line 295:
     @returns {int}     @returns {int}
 ]] ]]
-MashLib.System.GetJobList(dominion)+function MashLib.System.GetJobList(dominion)
  
 --[[ --[[
Line 204: Line 301:
     @returns {boolean}     @returns {boolean}
 ]] ]]
-MashLib.System.CheckLogin()+function MashLib.System.CheckLogin()
  
 --[[ --[[
-    Get current map's ID by name+    Check if the game is loading 
 +    @returns {boolean} 
 +]] 
 +function MashLib.System.IsLoading() 
 + 
 +--[[ 
 +    Get map's ID by name
     @param {string} name     @param {string} name
     @return {int}     @return {int}
 ]] ]]
-MashLib.System.GetMapId(name)+function MashLib.System.GetMapId(name)
  
 --[[ --[[
Line 218: Line 321:
     @return {table}     @return {table}
 ]] ]]
-MashLib.System.GetMap(id)+function MashLib.System.GetMap(id)
  
 --[[ --[[
Line 225: Line 328:
     @return {variant} Code return     @return {variant} Code return
 ]] ]]
-MashLib.System.Require(filePath)+function MashLib.System.Require(filePath)
  
 --[[ --[[
Line 232: Line 335:
     @return {int}     @return {int}
 ]] ]]
-MashLib.System.GetMapIDFromTerritoryID(id)+function MashLib.System.GetMapIDFromTerritoryID(id)
  
 --[[ --[[
Line 239: Line 342:
     @return {table}     @return {table}
 ]] ]]
-MashLib.System.GetExpansionList(type)+function MashLib.System.GetExpansionList(type)
  
 --[[ --[[
Line 246: Line 349:
     @return {table}     @return {table}
 ]] ]]
-MashLib.System.GetExpansionByID(expansionid)+function MashLib.System.GetExpansionByID(expansionid)
  
 --[[ --[[
Line 254: Line 357:
     @return {table}     @return {table}
 ]] ]]
-MashLib.System.GetFilesInside(folder)+function MashLib.System.GetFilesInside(folder
 + 
 +--[[ 
 +    Changes to and enables Assist Bot Mode 
 +]] 
 +function MashLib.System.EnableAssistMode() 
 + 
 +--[[ 
 +    Disables Bot Mode 
 +]] 
 +function MashLib.System.TurnOffBotMode() 
 + 
 +--[[ 
 +    Searchs for an action by Name 
 +    @param {int} type 
 +    @param {string} name 
 +]] 
 +function MashLib.System.SearchAction(type, name) 
 + 
 +--[[ 
 +    Searchs for an action by Id 
 +    @param {int} type 
 +    @param {int} id 
 +]] 
 +function MashLib.System.SearchActionById(type, id) 
 + 
 +--[[ 
 +    Searchs for an entity nearby 
 +    @param {int} contentId 
 +]] 
 +function MashLib.System.FindEntityAroundPlayer(contentId)
 </code> </code>
  
Line 263: Line 396:
     @param {string} path     @param {string} path
 ]] ]]
-MashLib.Powershell.ExecuteFile(path)+function MashLib.Powershell.ExecuteFile(path)
  
 --[[ --[[
Line 270: Line 403:
     @param {string} path on system     @param {string} path on system
 ]] ]]
-MashLib.Powershell.DownloadFile(url, path)+function MashLib.Powershell.DownloadFile(url, path)
  
 --[[ --[[
Line 276: Line 409:
     @param {string} url     @param {string} url
 ]] ]]
-MashLib.Powershell.OpenLink(url)+function MashLib.Powershell.OpenLink(url
 + 
 +--[[ 
 +    Executes a command on powershell 
 +    @param {string} command 
 +]] 
 +function MashLib.Powershell.Execute(command) 
 + 
 +--[[ 
 +    Plays a sound 
 +    @NOTE: Not yet implemented 
 +]] 
 +function MashLib.Powershell.PlaySound()
 </code> </code>
  
-=== Space ===+=== Character ===
 <code lua> <code lua>
 --[[ --[[
-    Moves character to coords +    Get the list of buffs on your character 
-    @param {table} coords+    @return {table}
 ]] ]]
-MashLib.Space.MoveTo(coords)+function MashLib.Character.GetBuffList()
  
 --[[ --[[
-    Stops character from moving+    Get the list of buffs on your character 
 +    @return {table}
 ]] ]]
-MashLib.Space.Stop()+function MashLib.Character.HasBuff(id)
  
 --[[ --[[
-    Get random coordinates around another coordinates, in a circular area +    Teleports the player to the map with corresponding id 
-    Thanks to Kitanoi <3 +    @param {int} aetheryteid
-    @param {table} coords +
-    @param {int} radius +
-    @return {table}+
 ]] ]]
-MashLib.Space.RandomPosCloseToCoords(coords, radius)+function MashLib.Character.TeleportTo(aetheryteid)
  
 --[[ --[[
-    Calculates the 2D distance between two points +    Teleports the player to the first aetheryte of a map 
-    Thanks to Kali <3 +    @param {int} mapid
-    @param {table} pos +
-    @param {table} pos2 +
-    @param {bool} ignoreradius +
-    @return {int}+
 ]] ]]
-MashLib.Space.Distance2D(pos, pos2, ignoreradius)+function MashLib.Character.TeleportToFirst(mapid)
  
 --[[ --[[
-    Calculates the 3D distance between two points +    Teleports the player to the first aetheryte of a map, skips if already there 
-    Thanks to Kali <3 +    @param {int} mapid
-    @param {table} pos +
-    @param {table} pos2 +
-    @param {bool} ignoreradius +
-    @return {int}+
 ]] ]]
-MashLib.Space.Distance3D(pos, pos2, ignoreradius)+function MashLib.Character.TeleportToMap(mapid)
  
 --[[ --[[
-    Places a flag in the map +    Checks if character is casting teleport 
-    @param {intterritoryid +    @return {boolean}
-    @param {table} world coords -> x, z +
-    @param optinal {int} mapid+
 ]] ]]
-MashLib.Space.SetMapFlag(territoryid, coords, mapid)+function MashLib.Character.IsCastingTeleport()
  
 --[[ --[[
-    Gets the flag position in the map +    Switch between Standard (0) and Legacy (1) move modes 
-    @return {table}+    @param {intid
 ]] ]]
-MashLib.Space.GetMapFlag()+function MashLib.Character.SetMoveModeTo(id) 
 +</code>
  
 +=== Character.Inventory ===
 +<code lua>
 --[[ --[[
-    Converts world coordinates to map coordinates +    Return an inventory item info by id 
-    @param optional {tableworld coords +    @param {intid 
-    @param optional {bool} exact +    @returns {table} 
-    @return {table}+        ResultObject 
 +            .category 
 +            .uicategory 
 +            .searchcategory 
 +            .name 
 +            .max 
 +            .level 
 +            .requiredlevel 
 +            .canequip 
 +            .equipslot 
 +            .class 
 +            .price 
 +            .rarity 
 +            .isunique 
 +            .desynthvalue 
 +            .replairclassjob 
 +            .repairitem 
 +            .iscollectable 
 +            .isuntradeable 
 +            .isbinding
 ]] ]]
-MashLib.Space.WorldToMap(coords, exact)+function MashLib.Character.Inventory.GetItemDetails(id)
  
 --[[ --[[
-    Converts map coordinates to world coordinates +    Get inventory item list to a txt file for speeder 
-    Thanks to Kali and Kitano <3 +    @param {stringsearch 
-    @BUG! https://trello.com/c/lACuNP4q/48-mashhunt-add-mark-manually +    @param {stringnorepeat
-    @param {tablemap coords +
-    @param {int} scale +
-    @return {table}+
 ]] ]]
-MashLib.Space.MapToWorld(coordsmapid)+function MashLib.Character.Inventory.GetSpeederInventory(searchnorepeat)
  
 --[[ --[[
-    Gets a specific map's scale +    Get inventory item list or search 
-    @param {intmapid +    @param {stringsearch 
-    @return {int}+    @param {string} norepeat 
 +    @return {tableitems
 ]] ]]
-MashLib.Space.GetMapScale(id) +function MashLib.Character.Inventory.Get(search, norepeat)
-</code>+
  
-=== Character === 
-<code lua> 
 --[[ --[[
-    Get the list of buffs on your character+    Get item from inventory by Id if quantity == 1 
 +    @param {string} id
     @return {table}     @return {table}
 ]] ]]
-MashLib.Character.GetBuffList()+function MashLib.Character.Inventory.GetOneById(id)
  
 --[[ --[[
-    Teleports the player to the map with corresponding id +    Get item from inventory by Id 
-    @param {intaetheryteid+    @param {string} id 
 +    @param {string} norepeat 
 +    @return {table}
 ]] ]]
-MashLib.Character.TeleportTo(aetheryteid)+function MashLib.Character.Inventory.GetById(id, norepeat)
  
 --[[ --[[
-    Checks if character is casting teleport +    Get item list or search in a specific inventory 
-    @return {boolean}+    @param {string} inventory 
 +    @param {string} search 
 +    @param {boolean} norepeat 
 +    @return {table} items
 ]] ]]
-MashLib.Character.IsCastingTeleport()+function MashLib.Character.Inventory.GetFromSpecific(inventory, search, norepeat)
  
 --[[ --[[
-    Switch between Standard (0) and Legacy (1) move modes +    Move an item to another slot 
-    @param {int} id+    @param {int} inventory 
 +    @param {int} slot 
 +    @param {int} toinventory 
 +    @param {int} toslot
 ]] ]]
-MashLib.Character.SetMoveModeTo(id)+function MashLib.Character.Inventory.Move(inventory, slot, toinventory, toslot) 
 + 
 +--[[ 
 +    Move an item object to another slot 
 +    @param {int} toinventory 
 +    @param {int} toslot 
 +]] 
 +function MashLib.Character.Inventory.MoveObject(object, toinventory, toslot)
 </code> </code>
  
Line 395: Line 561:
     @return {table}     @return {table}
 ]] ]]
-MashLib.API.GetEndpoint(name)+function MashLib.API.GetEndpoint(name)
 </code> </code>
  
Line 405: Line 571:
     @return {table}     @return {table}
 ]] ]]
-MashLib.Crafting.GetCondition(name)+function MashLib.Crafting.GetCondition(name)
 </code> </code>
  
 === Gathering === === Gathering ===
 +=== Battle ===
 <code lua> <code lua>
--- Nothing yet+--[[ 
 +    Get an encounter info by ID 
 +    @param {int} id 
 +    @return {table} 
 +]] 
 +function MashLib.Battle.GetEncounter(id) 
 + 
 +--[[ 
 +    Get a list of skills on a specific job 
 +    @param {int} job 
 +    @return {table} 
 +]] 
 +function MashLib.Battle.GetSkillListByJobID(job)
 </code> </code>
  
-=== Logging ===+=== Hacks ===
 <code lua> <code lua>
 --[[ --[[
-    Logs an entity +    Set character's speed 
-    @param {tabletarget +    @param {int|nilfly 
-    @return {table}+    @param {int|nil} walk 
 +    @param {int|nilmount
 ]] ]]
-MashLib.Logging.Entity(target)+function MashLib.Hacks.Speed.Set(fly, walk, mount)
 </code> </code>
  
-=== Battle ===+=== Hunt ===
 <code lua> <code lua>
 --[[ --[[
-    Get an encounter info by ID +    Get a mark's name by it's id 
-    @param {int} id +    @param {string} expansion 
-    @return {table}+    @param {string} rank 
 +    @param {int} contentid 
 +    @retun {string}
 ]] ]]
-MashLib.Battle.GetEncounter(id)+function MashLib.Hunt.GetMarkNameByID(expansion, rank, contentid)
  
 --[[ --[[
-    Get encounter list+    Get mark list 
 +    @param {string} expansion 
 +    @param {string} rank 
 +    @retun {table} 
 +]] 
 +function MashLib.Hunt.GetMarkList(expansion, rank) 
 + 
 +--[[ 
 +    Gets the mark list on a map 
 +    @param {int} mapid 
 +    @retun {table} 
 +]] 
 +function MashLib.Hunt.GetMarkListOnMap(mapid) 
 + 
 +--[[ 
 +    Gets the mark list per map 
 +    @param {string} option | to_combo 
 +    @retun {table} 
 +]] 
 +function MashLib.Hunt.GetMarkListPerMap(option) 
 +</code> 
 + 
 +=== Space === 
 +<code lua> 
 +--[[ 
 +    Moves character to coords 
 +    @param {table} coords 
 +]] 
 +function MashLib.Space.MoveTo(coords) 
 + 
 +--[[ 
 +    Stops character from moving 
 +]] 
 +function MashLib.Space.Stop() 
 + 
 +--[[ 
 +    Get random coordinates around another coordinates, in a circular area 
 +    Thanks to Kitanoi <3 
 +    @param {table} coords 
 +    @param {int} radius
     @return {table}     @return {table}
 ]] ]]
-MashLib.Battle.GetEncounterList()+function MashLib.Space.RandomPosCloseToCoords(coords, radius)
  
 --[[ --[[
-    Get last skill casted's id +    Calculates the 2D distance between two points 
-    @return {int} id+    Thanks to Kali <3 
 +    @param {table} pos 
 +    @param {table} pos2 
 +    @param {bool} ignoreradius 
 +    @return {int}
 ]] ]]
-MashLib.Battle.GetLastCastID()+function MashLib.Space.Distance2D(pos, pos2, ignoreradius)
  
 --[[ --[[
-    Get skill ID by Name +    Calculates the 3D distance between two points 
-    @param {intjob +    Thanks to Kali <3 
-    @param {stringname +    @param {table} pos 
-    @return {int} id+    @param {tablepos2 
 +    @param {boolignoreradius 
 +    @return {int}
 ]] ]]
-MashLib.Battle.GetSkillId(jobname)+function MashLib.Space.Distance3D(pospos2, ignoreradius)
  
 --[[ --[[
-    Get skill info by ID +    Places a flag in the map 
-    @param {int} job +    @param {int} territoryid 
-    @param {idid +    @param {tableworld coords -> x, z 
-    @return {int} id+    @param optinal {int} mapid
 ]] ]]
-MashLib.Battle.GetSkillInfoById(jobid)+function MashLib.Space.SetMapFlag(territoryidcoords, mapid)
  
 --[[ --[[
-    Get a list of skills on a specific job +    Gets the flag position in the map
-    @param {int} job+
     @return {table}     @return {table}
 ]] ]]
-MashLib.Battle.GetSkillListByJobID(job)+function MashLib.Space.GetMapFlag()
  
 --[[ --[[
-    Get a list of skills with specified cooldowns [(optional) on a specific job] +    Converts world coordinates to map coordinates 
-    @param {intjob +    @param optional {tableworld coords 
-    @param {booleanto_combo +    @param optional {intmapid 
-    @param {intspecific job id+    @param optional {boolexact
     @return {table}     @return {table}
 ]] ]]
-MashLib.Battle.GetSkillListWithCD(to_combospecific) +function MashLib.Space.WorldToMap(coordsmapid, exact)
-</code>+
  
-=== Hunt === 
-<code lua> 
 --[[ --[[
-    Get a mark's name by it's id +    Converts map coordinates to world coordinates 
-    @param {string} expansion +    Thanks to Kali and Kitano <3 
-    @param {stringrank +    @param {tablemap coords 
-    @param {int} contentid +    @param {int} scale 
-    @retun {string}+    @return {table}
 ]] ]]
-MashLib.Hunt.GetMarkNameByID(expansionrank, contentid) +function MashLib.Space.MapToWorld(coordsmapid)
-</code>+
  
-=== Hacks === 
-<code lua> 
 --[[ --[[
-    Set character'speed +    Gets a specific map'scale 
-    @param {int} fly +    @param {int} mapid 
-    @param {int} walk +    @return {int}
-    @param {int} mount+
 ]] ]]
-MashLib.Hacks.Speed.Set(fly, walk, mount)+function MashLib.Space.GetMapScale(id) 
 +</code>
  
 +=== Logging ===
 +<code lua>
 --[[ --[[
-    Reset character's speed+    Logs an entity 
 +    @param {table} target 
 +    @return {table}
 ]] ]]
-MashLib.Hacks.Speed.Reset()+function MashLib.Logging.Entity(target)
 </code> </code>
mashlib.1620495289.txt.gz · Last modified: 2021/05/08 17:34 by masshirodev