diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 7e5f73a28b..2e1a8b227d 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -1087,6 +1087,8 @@ to alberta (98,154) when clicked. mes "Have you checked out the [Tool Shop]alberta,98,154,0,000,0?"; +See also 'navigateto', which can be used for certain NPC events. + URLs ---- Similarly, you can create links to websites that launch in a new window: @@ -9014,6 +9016,30 @@ Valid flag are: --------------------------------------- +*navigateto(""{,,,,,,}); + +Generates a navigation for attached or specified character. Requires client +2011-10-10aRagEXE or newer. The flag specifies how the client will display +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. + +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 +solution rather than sending the map and the monster_id. + +Valid flags are: + NAV_NONE - No services + NAV_AIRSHIP_ONLY - Airship only + NAV_SCROLL_ONLY - Scroll only + NAV_AIRSHIP_AND_SCROLL - Airship and Scroll + NAV_KAFRA_ONLY - Kafra only + NAV_KAFRA_AND_AIRSHIP - Kafra and Airship + NAV_KAFRA_AND_SCROLL - Kafra and Scroll + NAV_ALL - All services + +--------------------------------------- Whew. That's about all of them. diff --git a/src/map/script.h b/src/map/script.h index 7c24cb716e..b121c6ca6f 100644 --- a/src/map/script.h +++ b/src/map/script.h @@ -624,22 +624,14 @@ enum unitdata_npctypes { }; enum navigation_service { - // 0 - NAV_NONE = 0, - // 1(actually 1-9) - NAV_AIRSHIP_ONLY = 1, - // 10 - NAV_SCROLL_ONLY = 10, - // 11(actually 11-99) - NAV_AIRSHIP_AND_SCROLL = NAV_AIRSHIP_ONLY + NAV_SCROLL_ONLY, - // 100 - NAV_KAFRA_ONLY = 100, - // 101(actually 101-109) - NAV_KAFRA_AND_PLANE = NAV_KAFRA_ONLY + NAV_AIRSHIP_ONLY, - // 110 - NAV_KAFRA_AND_SCROLL = NAV_KAFRA_ONLY + NAV_SCROLL_ONLY, - // 111(actually 111-255) - NAV_ALL = NAV_AIRSHIP_ONLY + NAV_SCROLL_ONLY + NAV_KAFRA_ONLY + NAV_NONE = 0, ///< 0 + NAV_AIRSHIP_ONLY = 1, ///< 1 (actually 1-9) + NAV_SCROLL_ONLY = 10, ///< 10 + NAV_AIRSHIP_AND_SCROLL = NAV_AIRSHIP_ONLY + NAV_SCROLL_ONLY, ///< 11 (actually 11-99) + NAV_KAFRA_ONLY = 100, ///< 100 + NAV_KAFRA_AND_AIRSHIP = NAV_KAFRA_ONLY + NAV_AIRSHIP_ONLY, ///< 101 (actually 101-109) + NAV_KAFRA_AND_SCROLL = NAV_KAFRA_ONLY + NAV_SCROLL_ONLY, ///< 110 + NAV_ALL = NAV_AIRSHIP_ONLY + NAV_SCROLL_ONLY + NAV_KAFRA_ONLY ///< 111 (actually 111-255) }; /** diff --git a/src/map/script_constants.h b/src/map/script_constants.h index 37f7d97c44..d2ff1c43ea 100644 --- a/src/map/script_constants.h +++ b/src/map/script_constants.h @@ -3000,7 +3000,7 @@ export_constant(NAV_SCROLL_ONLY); export_constant(NAV_AIRSHIP_AND_SCROLL); export_constant(NAV_KAFRA_ONLY); - export_constant(NAV_KAFRA_AND_PLANE); + export_constant(NAV_KAFRA_AND_AIRSHIP); export_constant(NAV_KAFRA_AND_SCROLL); export_constant(NAV_ALL);