-----------------------------------
-- Area: Lower Jeuno
--  NPC: Sutarara
-- Involved in Quests: Tenshodo Menbership (before accepting)
-- !pos 30 0.1 -2 245
-----------------------------------
require("scripts/globals/quests");
-----------------------------------

function onTrade(player,npc,trade)
end;

function onTrigger(player,npc)
    local TenshodoMembership = player:getQuestStatus(JEUNO,dsp.quest.id.jeuno.TENSHODO_MEMBERSHIP);
    local WildcatJeuno = player:getCharVar("WildcatJeuno");

    if (player:getQuestStatus(JEUNO,dsp.quest.id.jeuno.LURE_OF_THE_WILDCAT) == QUEST_ACCEPTED and player:getMaskBit(WildcatJeuno,10) == false) then
        player:startEvent(10055);
    elseif (TenshodoMembership ~= QUEST_COMPLETED) then
        player:startEvent(208);
    elseif (TenshodoMembership == QUEST_COMPLETED) then
        player:startEvent(211);
    end
end;

function onEventUpdate(player,csid,option)
end;

function onEventFinish(player,csid,option)
    if (csid == 10055) then
        player:setMaskBit(player:getCharVar("WildcatJeuno"),"WildcatJeuno",10,true);
    end
end;