From 7d8c3ccc61a2f46173c87ce1247f52b2384c7579 Mon Sep 17 00:00:00 2001 From: sruon Date: Sun, 19 Apr 2026 00:42:05 -0600 Subject: [PATCH] Chuchuroon patrol nodes --- scripts/zones/Nashmau/npcs/Chuchuroon.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 scripts/zones/Nashmau/npcs/Chuchuroon.lua diff --git a/scripts/zones/Nashmau/npcs/Chuchuroon.lua b/scripts/zones/Nashmau/npcs/Chuchuroon.lua new file mode 100644 index 00000000000..6fbb2f1dc65 --- /dev/null +++ b/scripts/zones/Nashmau/npcs/Chuchuroon.lua @@ -0,0 +1,21 @@ +----------------------------------- +-- Area: Nashmau +-- NPC: Chuchuroon +----------------------------------- +---@type TNpcEntity +local entity = {} + +local pathNodes = +{ + { x = -20.826, y = 0.000, z = -44.997, wait = 3000 }, + { x = -10.165, y = 0.000, z = -36.021, wait = 3000 }, + { x = -16.420, y = 0.000, z = -34.094, wait = 3000 }, +} + +entity.onSpawn = function(npc) + npc:initNpcAi() + npc:setPos(xi.path.first(pathNodes)) + npc:pathThrough(pathNodes, xi.path.flag.PATROL) +end + +return entity