SphereCommunity
[Serv.Map.x.Sector.n function] Problem - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: [Serv.Map.x.Sector.n function] Problem (/Thread-Serv-Map-x-Sector-n-function-Problem)



[Serv.Map.x.Sector.n function] Problem - Extreme - 06-19-2013 03:03 AM

Hello guys,
can someone confirm if this is working?

-Added: Read/Write (SERV.MAP.map_num.SECTOR.sec_num function) to have access to individual sectors.

I tried SERV.MAP.0.SECTOR.489 LIGHT 0
but it doesn't work :/


RE: [Serv.Map.x.Sector.n function] Problem - Mordaunt - 06-19-2013 03:22 AM

Make sure you are using a server version that has that feature, I've used it before, works fine for me.


RE: [Serv.Map.x.Sector.n function] Problem - darksun84 - 06-19-2013 03:41 AM

sec_num it's actually <sector.number> + 1 .

Anyway light works weird, but you can see it works by using other section functions(i used itemcount for testing it).
Well it actually reads the properties but it can't set them properly, i think something override them


RE: [Serv.Map.x.Sector.n function] Problem - Extreme - 06-19-2013 04:25 AM

Where is the like button for darksun84?!
Hahaha how will I know that is X+1 ¬¬

Working fine, thanks!


RE: [Serv.Map.x.Sector.n function] Problem - Mordaunt - 06-19-2013 07:05 AM

Not sure where you are getting your information from dark, but it aint sec_num +1
Unless you are standing in the wrong place....
The first sector for each map is sector 1... sectors don't start from 0 because well why would they..


RE: [Serv.Map.x.Sector.n function] Problem - Ben - 06-19-2013 08:12 AM

Not to argue here, but Sectors are 0 based while the (SERV.MAP.map_num.SECTOR.sec_num function) function is 1 based.
The reason behind the function being 1 based was that MAPLIST.map_num.SECTOR.QTY returns the total number of sectors... I won't go into details as to why it was better this way...


RE: [Serv.Map.x.Sector.n function] Problem - Mordaunt - 06-19-2013 12:26 PM

Because it's your fault? Tongue


RE: [Serv.Map.x.Sector.n function] Problem - Extreme - 06-20-2013 12:51 AM

Could you please write this info in revisions? Big Grin