Sectorid: Difference between revisions

From Vendetta Lua
Jump to navigationJump to search
Otutytaqo (talk | contribs)
No edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:
sectorid = (s-1)*256 + (x-1)*16 + y
sectorid = (s-1)*256 + (x-1)*16 + y


>= See Also =
Take note that SplitSectorid returns a triple (systemid, sectorh, sectorv) with the coordinates swapped, so sectorh = y and sectorv = x.
 
= See Also =


* [[API Index#GetCurrentSectorid|GetCurrentSectorid]]
* [[API Index#GetCurrentSectorid|GetCurrentSectorid]]
Line 11: Line 13:
* [[API Index#LocationStr|LocationStr]]
* [[API Index#LocationStr|LocationStr]]
* [[API Index#ShortLocationStr|ShortLocationStr]]
* [[API Index#ShortLocationStr|ShortLocationStr]]
 
[[Category:Functions/Values]]
----
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
----
=[http://ikozaqopa.co.cc Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly]=
----
=[http://ikozaqopa.co.cc CLICK HERE]=
----
</div>

Latest revision as of 11:04, 28 March 2023

The sectorid is a numeric value representing a sector in the universe. Currently it's ranging from 1 (Sol II A-1) to 7680 (Dantia P-16)

Given systemid (s), and coordinates (x, y), you could determine the sectorid mathematically using the following formula

sectorid = (s-1)*256 + (x-1)*16 + y

Take note that SplitSectorid returns a triple (systemid, sectorh, sectorv) with the coordinates swapped, so sectorh = y and sectorv = x.

See Also