-----------------------------------
-- Area: Windurst_Woods
--  NPC: Nhobi Zalkia
-- Only sells when Windurst controlls Kuzotz Region
-- Confirmed shop stock, August 2013
-----------------------------------
local ID = require("scripts/zones/Windurst_Woods/IDs")
require("scripts/globals/events/harvest_festivals")
require("scripts/globals/shop")
require("scripts/globals/zone")
-----------------------------------

function onTrade(player,npc,trade)
    onHalloweenTrade(player,trade,npc)
end

function onTrigger(player,npc)
    local RegionOwner = GetRegionOwner(dsp.region.KUZOTZ)
    if RegionOwner ~= dsp.nation.WINDURST then
        player:showText(npc,ID.text.NHOBI_ZALKIA_CLOSED_DIALOG)
    else
        player:showText(npc,ID.text.NHOBI_ZALKIA_OPEN_DIALOG)

        local stock =
        {
            916,   855,  -- Cactuar Needle
            4412,  299,  -- Thundermelon
            4491,  184   -- Watermelon
        }
        dsp.shop.general(player, stock, WINDURST)
    end
end

function onEventUpdate(player,csid,option)
end

function onEventFinish(player,csid,option)
end
