Browse Source

Added to script command navigateto documentation
* Small follow up to 179f734.
* Also corrected an invalid constant.

aleos89 9 years ago
parent
commit
809f220b9f
2 changed files with 3 additions and 1 deletions
  1. 2 0
      doc/script_commands.txt
  2. 1 1
      src/map/script.c

+ 2 - 0
doc/script_commands.txt

@@ -9024,6 +9024,8 @@ a specific route. The hide_window specifies whether to display (1) or not
 display (0) the navigation window. Specify the monster_id to navigate to
 display (0) the navigation window. Specify the monster_id to navigate to
 known locations of the specified monster.
 known locations of the specified monster.
 
 
+When flag is not specified, the default value is NAV_KAFRA_AND_AIRSHIP.
+
 Note: The client requires custom monster spawns be in the navigation file
 Note: The client requires custom monster spawns be in the navigation file
 for using the embedded client Navigation feature to work properly. In this
 for using the embedded client Navigation feature to work properly. In this
 instance sending the player to the map where the monster spawns is a simpler
 instance sending the player to the map where the monster spawns is a simpler

+ 1 - 1
src/map/script.c

@@ -21055,7 +21055,7 @@ BUILDIN_FUNC(navigateto){
 	TBL_PC* sd;
 	TBL_PC* sd;
 	const char *map;
 	const char *map;
 	uint16 x = 0, y = 0, monster_id = 0;
 	uint16 x = 0, y = 0, monster_id = 0;
-	uint8 flag = NAV_KAFRA_AND_PLANE;
+	uint8 flag = NAV_KAFRA_AND_AIRSHIP;
 	bool hideWindow = true;
 	bool hideWindow = true;
 
 
 	map = script_getstr(st,2);
 	map = script_getstr(st,2);