User Tools

Site Tools


misc_func

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
misc_func [2022/07/05 15:08] – [File] adminmisc_func [2022/09/03 23:25] (current) – external edit 127.0.0.1
Line 838: Line 838:
 |**Parameters:** |**Parameters:**
 |scriptfilename |scriptfilename
 +
 +|}
 +
 +===== Maps =====
 +{|style="font-size:85%; border:solid 2px; width: 50%;"
 +|style="font-size:150%;  padding: 2px" colspan="2" | **Co-Ordinates of a Decoded Map**
 +|- style="background-color:#f0f0f0;"
 +|**Syntax**
 +|style="width: 90%" | Misc.GetMapInfo(serial)
 +|-
 +|colspan="2" |**Description:**
 +|-
 +|colspan="2" | Retrieve the co-ordinates of a decoded t-map. Your code would look like:
 +<code>
 +#
 +mapInfo = Misc.GetMapInfo(0x400BFD6C)
 +print("Treasure at ({}, {}), Origin ({}, {}), pin at ({}, {})"
 +    .format(mapInfo.MapOrigin.X+mapInfo.PinPosition.X, mapInfo.MapOrigin.Y+mapInfo.PinPosition.Y,
 +            mapInfo.MapOrigin.X, mapInfo.MapOrigin.Y, mapInfo.PinPosition.X, mapInfo.PinPosition.Y))
 +#
 +</code>
 +
 +|- style="background-color:#f0f0f0;"
 +|**Note:**
 +|The pin position is an offset from the origin, so you have to add them to get absolute location
 +
 +|- style="background-color:#f0f0f0;"
 +|**Returns**
 +|MapInfo{ PinPosition, MapOrigin, MapEnd }
 +|-
 +|**In Object:**
 +|Misc
 +|- style="background-color:#f0f0f0;"
 +|**Parameters:**
 +|serial - Serial of the t-map
  
 |} |}
misc_func.1657033684.txt.gz · Last modified: 2022/09/03 22:41 (external edit)

Exception: Git command failed to perform periodic pull: From https://github.com/RazorEnhanced/razorenhanced.github.io * branch main -> FETCH_HEAD error

Exception: Git command failed to perform periodic pull: From https://github.com/RazorEnhanced/razorenhanced.github.io * branch main -> FETCH_HEAD error

An unforeseen error has occured. This is most likely a bug somewhere. It might be a problem in the gitbacked plugin.

More info has been written to the DokuWiki error log.