Bläddra i källkod

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

aleos89 9 år sedan
förälder
incheckning
809f220b9f
2 ändrade filer med 3 tillägg och 1 borttagningar
  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
 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
 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

+ 1 - 1
src/map/script.c

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