topaz-next / topaz

💎 A server emulator for Final Fantasy XI.
GNU General Public License v3.0
55 stars 80 forks source link

Add support for pausing and resuming NPC pathing during and after interaction #2697

Closed ghost closed 3 years ago

ghost commented 3 years ago

I affirm:

Fixes #2695 and cleans up some styling in the related NPC scripts. Adds optional bool to CLuaBaseEntity::clearPath() to pause AI ticks for pathing, and adds additional binding as CLuaBaseEntity::continuePath() which will clear the previously paused flag.

pathfind.lua patrol function has been reduced, and will cycle through points in the path list.