コード例 #1
0
    public override bool OnDying(GameObject attachee, GameObject triggerer)
    {
        foreach (var pc in GameSystems.Party.PartyMembers)
        {
            pc.AddCondition("fallen_paladin");
        }

        if ((attachee.GetMap() == 5093))
        {
            VerboboncGuard.ditch_rings(attachee, triggerer);
        }

        return RunDefault;
    }
コード例 #2
0
    public override bool OnDying(GameObject attachee, GameObject triggerer)
    {
        if (CombatStandardRoutines.should_modify_CR(attachee))
        {
            CombatStandardRoutines.modify_CR(attachee, CombatStandardRoutines.get_av_level());
        }

        foreach (var pc in GameSystems.Party.PartyMembers)
        {
            pc.AddCondition("fallen_paladin");
        }

        if (attachee.GetMap() == 5121 || attachee.GetMap() == 5135 || attachee.GetMap() == 5169 || attachee.GetMap() == 5170 || attachee.GetMap() == 5171 || attachee.GetMap() == 5172)
        {
            SetGlobalVar(334, GetGlobalVar(334) + 1);
            if ((GetGlobalVar(334) >= 2))
            {
                PartyLeader.AddReputation(35);
            }

            if ((GetQuestState(67) == QuestState.Accepted))
            {
                SetGlobalFlag(964, true);
            }

            if ((GetGlobalFlag(942)))
            {
                PartyLeader.AddReputation(35);
            }

            if ((attachee.GetNameId() == 8770))
            {
                StartTimer(86400000, () => VerboboncGuard.new_entry_guard(attachee, triggerer));
            }

            StartTimer(60000, () => VerboboncGuard.go_away(attachee));
        }

        SetGlobalFlag(419, true);
        return(RunDefault);
    }