FOnline Development > Questions and Answers
FOnline SDK - Question
Bevolard:
How do I make it so I cant see npcs through walls?
I also have a problem with my world map I don't really know how to fix it reveals past the grid and its all uneven
http://tinypic.com/view.php?pic=2n0kinb&s=6
SEGA_RUS:
--- Quote from: Bevolard on September 24, 2012, 04:06:14 am ---How do I make it so I cant see npcs through walls?
--- End quote ---
comment this in config.fos
--- Code: ---__LookChecks |= LOOK_CHECK_DIR;
--- End code ---
P.S
try to change size of worldmap in config.fos
--- Code: --- __GlobalMapWidth = 28; // Maximum 100 its count of suares on horizontal
__GlobalMapHeight = 30; // Maximum 100 its count of suares on vertical
__GlobalMapZoneLength = 50; // Maximum 500 its h and y of 1 square of global
__GlobalMapMaxGroupCount = 10;
--- End code ---
or ask it from one of 2238 devs ;D
and as i see u wana make a 2238 WM
u muct change the mask of WM "Server\maps\relief_tla.png"|
here a message about mask on russian (
Bevolard:
yeah i did change the mask but i could not see the whole map so i changed the size and the problem is the grids are not right :/ thanks for the help by the way
Is there a way to disable fog on the world map?
Kilgore:
--- Quote from: Bevolard on September 24, 2012, 12:25:09 pm ---Is there a way to disable fog on the world map?
--- End quote ---
--- Code: ---void SetFog (uint16 zoneX, uint16 zoneY, int fog)
--- End code ---
An example (from sdk replication.fos):
--- Code: --- zoneX = cr.WorldX / __GlobalMapZoneLength;
zoneY = cr.WorldY / __GlobalMapZoneLength;
cr.SetFog( zoneX, zoneY, FOG_NONE );
cr.SetFog( zoneX - 1, zoneY - 1, FOG_HALF );
cr.SetFog( zoneX, zoneY - 1, FOG_HALF );
cr.SetFog( zoneX + 1, zoneY - 1, FOG_HALF );
cr.SetFog( zoneX - 1, zoneY, FOG_HALF );
cr.SetFog( zoneX + 1, zoneY, FOG_HALF );
cr.SetFog( zoneX - 1, zoneY + 1, FOG_HALF );
cr.SetFog( zoneX, zoneY + 1, FOG_HALF );
cr.SetFog( zoneX + 1, zoneY + 1, FOG_HALF );
--- End code ---
Use a simple loop to make whole worldmap visible.
Remember that having worldmap locations visible is a different thing:
--- Code: ---bool SetKnownLoc (bool byId, uint locNum)
--- End code ---
An example (also from replication.fos):
--- Code: ---cr.SetKnownLoc( false, LOCATION_BrokenHills );
cr.SetKnownLoc( false, LOCATION_NewReno );
--- End code ---
Bevolard:
--- Quote from: Bevolard on September 24, 2012, 12:25:09 pm ---yeah i did change the mask but i could not see the whole map so i changed the size and the problem is the grids are not right :/ thanks for the help by the way
Is there a way to disable fog on the world map?
--- End quote ---
I am very thankful of this
I still want help on this grid problem
http://tinypic.com/view.php?pic=2n0kinb&s=6
and if adding more zones solves this how do i do that?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version