コード例 #1
0
ファイル: Zaxis.cs プロジェクト: GrognardsFromHell/OpenTemple
    public override bool OnDying(GameObject attachee, GameObject triggerer)
    {
        if (CombatStandardRoutines.should_modify_CR(attachee))
        {
            CombatStandardRoutines.modify_CR(attachee, CombatStandardRoutines.get_av_level());
        }

        attachee.FloatLine(12014, 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());
        }

        SetGlobalVar(30, GetGlobalVar(30) + 1);
        return(RunDefault);
    }
コード例 #3
0
    public override bool OnDying(GameObject attachee, GameObject triggerer)
    {
        if (CombatStandardRoutines.should_modify_CR(attachee))
        {
            CombatStandardRoutines.modify_CR(attachee, CombatStandardRoutines.get_av_level());
        }

        SetGlobalFlag(106, true);
        ScriptDaemon.record_time_stamp(458);
        return(RunDefault);
    }
コード例 #4
0
    public override bool OnDying(GameObject attachee, GameObject triggerer)
    {
        if (CombatStandardRoutines.should_modify_CR(attachee))
        {
            CombatStandardRoutines.modify_CR(attachee, CombatStandardRoutines.get_av_level());
        }

        SetGlobalFlag(202, false);
        ScriptDaemon.set_f("skole_dead");
        return(RunDefault);
    }
コード例 #5
0
    public override bool OnDying(GameObject attachee, GameObject triggerer)
    {
        if (CombatStandardRoutines.should_modify_CR(attachee))
        {
            CombatStandardRoutines.modify_CR(attachee, CombatStandardRoutines.get_av_level());
        }

        SetQuestState(35, QuestState.Botched);
        SetGlobalFlag(329, true);
        return(RunDefault);
    }
コード例 #6
0
    public override bool OnDying(GameObject attachee, GameObject triggerer)
    {
        if (CombatStandardRoutines.should_modify_CR(attachee))
        {
            CombatStandardRoutines.modify_CR(attachee, CombatStandardRoutines.get_av_level());
        }

        // attachee.destroy()
        // attachee.object_flag_set(OF_OFF)
        return(RunDefault);
    }
コード例 #7
0
ファイル: Drow.cs プロジェクト: GrognardsFromHell/OpenTemple
    public override bool OnDying(GameObject attachee, GameObject triggerer)
    {
        if (CombatStandardRoutines.should_modify_CR(attachee))
        {
            CombatStandardRoutines.modify_CR(attachee, CombatStandardRoutines.get_av_level());
        }

        if ((attachee.GetNameId() == 14708))
        {
            SetGlobalVar(999, GetGlobalVar(999) + 1);
            Utilities.create_item_in_inventory(6120, attachee);
        }
        else if ((attachee.GetNameId() == 14724))
        {
            SetGlobalVar(999, GetGlobalVar(999) + 1);
            Utilities.create_item_in_inventory(6120, attachee);
        }
        else if ((attachee.GetNameId() == 14725))
        {
            SetGlobalVar(999, GetGlobalVar(999) + 1);
            Utilities.create_item_in_inventory(6093, attachee);
        }
        else if ((attachee.GetNameId() == 14726))
        {
            SetGlobalVar(999, GetGlobalVar(999) + 1);
            Utilities.create_item_in_inventory(6334, attachee);
        }
        else if ((attachee.GetNameId() == 14733))
        {
            SetGlobalVar(999, GetGlobalVar(999) + 1);
        }
        else if ((attachee.GetNameId() == 14734))
        {
            SetGlobalVar(999, GetGlobalVar(999) + 1);
            Utilities.create_item_in_inventory(6120, attachee);
        }
        else if ((attachee.GetNameId() == 14735))
        {
            SetGlobalVar(999, GetGlobalVar(999) + 1);
            Utilities.create_item_in_inventory(6223, attachee);
        }
        else if ((attachee.GetNameId() == 14736))
        {
            SetGlobalVar(999, GetGlobalVar(999) + 1);
            Utilities.create_item_in_inventory(6334, attachee);
        }
        else if ((attachee.GetNameId() == 14737))
        {
            SetGlobalVar(999, GetGlobalVar(999) + 1);
        }

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

        attachee.FloatLine(1000, triggerer);
        SetGlobalVar(986, 3);
        SetGlobalFlag(560, true);
        return(RunDefault);
    }
コード例 #9
0
    public override bool OnDying(GameObject attachee, GameObject triggerer)
    {
        if ((attachee.GetLeader() == null))
        {
            if (CombatStandardRoutines.should_modify_CR(attachee))
            {
                CombatStandardRoutines.modify_CR(attachee, CombatStandardRoutines.get_av_level());
            }
        }

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

        if ((attachee.GetMap() == 5066))
        {
            SetGlobalFlag(117, true);
        }

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

        if ((attachee.GetNameId() == 14342 && attachee.FindItemByName(4083) == null)) // Lamia
        {
            Utilities.create_item_in_inventory(4083, attachee);
        }

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

        if ((!PartyLeader.HasReputation(9)))
        {
            PartyLeader.AddReputation(9);
        }

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

        if ((attachee.GetLeader() != null))
        {
            SetGlobalVar(29, GetGlobalVar(29) + 1);
        }

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

        SetGlobalVar(28, GetGlobalVar(28) + 1);
        if ((GetGlobalVar(28) >= 5))
        {
            GameSystems.MapObject.CreateObject(14330, SelectedPartyLeader.GetLocation());
        }

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

        SetGlobalVar(23, GetGlobalVar(23) + 1);
        if ((GetGlobalVar(23) >= 2))
        {
            PartyLeader.AddReputation(92);
        }

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

        SetGlobalFlag(974, true);
        if ((GetQuestState(77) == QuestState.Completed && GetGlobalFlag(992) && !GetGlobalFlag(935)))
        {
            PartyLeader.AddReputation(43);
        }

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

        SetGlobalFlag(995, true);
        if (!triggerer.HasReputation(26))
        {
            triggerer.AddReputation(26);
        }

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

        AttachParticles("ef-MinoCloud", attachee);
        AttachParticles("Orb-Summon-Earth Elemental", attachee);
        AttachParticles("Mon-EarthElem-Unconceal", attachee);
        Sound(4042, 1);
        attachee.SetObjectFlag(ObjectFlag.OFF);
        SetGlobalFlag(531, false);
        return(SkipDefault);
    }
コード例 #19
0
ファイル: Kenan.cs プロジェクト: GrognardsFromHell/OpenTemple
    public override bool OnDying(GameObject attachee, GameObject triggerer)
    {
        if (CombatStandardRoutines.should_modify_CR(attachee))
        {
            CombatStandardRoutines.modify_CR(attachee, CombatStandardRoutines.get_av_level());
        }

        SetGlobalFlag(948, true);
        if ((GetGlobalFlag(949) && GetGlobalFlag(950) && GetGlobalFlag(951) && GetGlobalFlag(952) && GetGlobalFlag(953) && GetGlobalFlag(954)))
        {
            PartyLeader.AddReputation(40);
        }

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

        SetGlobalVar(14, GetGlobalVar(14) + 1);
        if ((attachee.GetStat(Stat.subdual_damage) >= attachee.GetStat(Stat.hp_current)))
        {
            SetGlobalVar(13, GetGlobalVar(13) - 1);
        }

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

        SetGlobalFlag(97, true);
        if ((GetQuestState(36) == QuestState.Accepted))
        {
            SetQuestState(36, QuestState.Completed);
        }

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

        SetGlobalVar(764, GetGlobalVar(764) + 1);
        if ((GetGlobalVar(764) >= 8))
        {
            SetGlobalFlag(977, true); // flag to say that bandits are gone from courtyard so ambush can fire
        }

        return(RunDefault);
    }
コード例 #23
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");
        }

        SetGlobalFlag(844, true);
        return(RunDefault);
    }
コード例 #24
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() == 5093))
        {
            ditch_rings(attachee, triggerer);
            if ((GetGlobalVar(956) == 0))
            {
                SetGlobalVar(957, GetGlobalVar(957) + 1);
            }
        }
        else 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, () => new_entry_guard(attachee, triggerer));
            }

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

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

        SetGlobalVar(27, GetGlobalVar(27) + 1);
        if ((GetGlobalVar(27) >= 3))
        {
            GameSystems.MapObject.CreateObject(14316, attachee.GetLocation());
            SetGlobalVar(27, -1000);
        }

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

        attachee.FloatLine(12014, triggerer); // added by ShiningTed
        SetGlobalFlag(135, true);
        if ((attachee.GetLeader() != null))
        {
            SetGlobalVar(29, GetGlobalVar(29) + 1);
        }

        return(RunDefault);
    }
コード例 #27
0
ファイル: Zert.cs プロジェクト: GrognardsFromHell/OpenTemple
    public override bool OnDying(GameObject attachee, GameObject triggerer)
    {
        if (CombatStandardRoutines.should_modify_CR(attachee))
        {
            CombatStandardRoutines.modify_CR(attachee, CombatStandardRoutines.get_av_level());
        }

        SetGlobalFlag(700, true);
        attachee.FloatLine(12014, triggerer);
        if ((attachee.GetLeader() != null && attachee.GetMap() != 5091 && attachee.GetMap() != 5002))
        {
            SetGlobalVar(29, GetGlobalVar(29) + 1);
        }

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

        SetGlobalFlag(369, true);
        if (GetQuestState(42) >= QuestState.Mentioned)
        {
            SetQuestState(42, QuestState.Completed);
            triggerer.AddReputation(21);
        }

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

        SetGlobalVar(987, GetGlobalVar(987) + 1);
        if (GetGlobalVar(987) == 2)
        {
            SetGlobalFlag(945, true);
            SetGlobalVar(994, 3);
        }

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

        SetGlobalVar(755, GetGlobalVar(755) + 1);
        // Record time when you killed a moathouse bugbear
        if (GetGlobalVar(404) == 0)
        {
            SetGlobalVar(404, CurrentTimeSeconds);
        }

        return(RunDefault);
    }