예제 #1
0
 public static bool howdy_ho(GameObject attachee, GameObject triggerer)
 {
     attachee.TurnTowards(PartyLeader);
     PartyLeader.BeginDialog(attachee, 10);
     return(RunDefault);
 }
예제 #2
0
 public static bool get_arrested(GameObject attachee, GameObject triggerer)
 {
     attachee.TurnTowards(PartyLeader);
     PartyLeader.BeginDialog(attachee, 30);
     return(RunDefault);
 }
예제 #3
0
 public static bool talk_arrow_knee(GameObject attachee, GameObject triggerer)
 {
     attachee.TurnTowards(PartyLeader);
     PartyLeader.BeginDialog(attachee, 140);
     return(RunDefault);
 }
예제 #4
0
    public override bool OnHeartbeat(GameObject attachee, GameObject triggerer)
    {
        if ((PartyLeader.HasReputation(61)))
        {
            if ((attachee.GetLeader() != null))
            {
                if ((!GameSystems.Combat.IsCombatActive()))
                {
                    var leader = attachee.GetLeader();
                    leader.RemoveFollower(attachee);
                    PartyLeader.BeginDialog(attachee, 1);
                    DetachScript();
                }
            }
        }
        else if ((GetQuestState(97) == QuestState.Botched))
        {
            attachee.SetObjectFlag(ObjectFlag.OFF);
        }
        else if ((GetGlobalVar(501) == 5))
        {
            if ((attachee.GetLeader() == null))
            {
                if ((!GameSystems.Combat.IsCombatActive()))
                {
                    foreach (var obj in ObjList.ListVicinity(attachee.GetLocation(), ObjectListFilter.OLC_PC))
                    {
                        if ((is_better_to_talk(attachee, obj)))
                        {
                            attachee.TurnTowards(PartyLeader);
                            PartyLeader.BeginDialog(attachee, 100);
                        }
                    }
                }
            }
        }
        // game.new_sid = 0
        else if ((GetGlobalVar(501) == 4))
        {
            if ((attachee.GetLeader() == null))
            {
                if ((!GameSystems.Combat.IsCombatActive()))
                {
                    Sound(4132, 2);
                    Sound(4136, 1);
                    GameSystems.Scroll.ShakeScreen(75, 3200);
                    if ((GetGlobalVar(504) == 0))
                    {
                        if ((PartyAlignment == Alignment.CHAOTIC_GOOD || PartyAlignment == Alignment.CHAOTIC_NEUTRAL || PartyAlignment == Alignment.CHAOTIC_EVIL))
                        {
                            attachee.CastSpell(WellKnownSpells.MagicCircleAgainstChaos, attachee);
                        }
                        else
                        {
                            attachee.CastSpell(WellKnownSpells.DivinePower, attachee);
                        }

                        SetGlobalVar(504, 1);
                    }

                    StartTimer(3000, () => set_var_501(attachee, triggerer));
                }
            }
        }

        return(RunDefault);
    }
예제 #5
0
    public override bool OnHeartbeat(GameObject attachee, GameObject triggerer)
    {
        if ((attachee.GetMap() == 5095))
        {
            if ((!GameSystems.Combat.IsCombatActive()))
            {
                if ((attachee != null && !Utilities.critter_is_unconscious(attachee) && !attachee.D20Query(D20DispatcherKey.QUE_Prone) && attachee.GetLeader() == null))
                {
                    if ((GetGlobalVar(986) != 3))
                    {
                        foreach (var obj in ObjList.ListVicinity(attachee.GetLocation(), ObjectListFilter.OLC_PC))
                        {
                            if ((talk_40(attachee, obj)))
                            {
                                if ((!ScriptDaemon.npc_get(attachee, 1)))
                                {
                                    attachee.TurnTowards(PartyLeader);
                                    PartyLeader.BeginDialog(attachee, 1);
                                    ScriptDaemon.npc_set(attachee, 1);
                                    SetGlobalFlag(559, true);
                                }
                            }
                            else if ((comment_20(attachee, obj)))
                            {
                                if ((!ScriptDaemon.npc_get(attachee, 3)))
                                {
                                    var comment = RandomRange(1, 400);
                                    if ((comment == 20))
                                    {
                                        attachee.FloatLine(10000, triggerer);
                                    }

                                    if ((comment == 60))
                                    {
                                        attachee.FloatLine(10001, triggerer);
                                    }

                                    if ((comment == 100))
                                    {
                                        attachee.FloatLine(10002, triggerer);
                                    }

                                    if ((comment == 140))
                                    {
                                        attachee.FloatLine(10003, triggerer);
                                    }

                                    if ((comment == 180))
                                    {
                                        attachee.FloatLine(10004, triggerer);
                                    }

                                    if ((comment == 220))
                                    {
                                        attachee.FloatLine(10005, triggerer);
                                    }

                                    if ((comment == 260))
                                    {
                                        attachee.FloatLine(10006, triggerer);
                                    }

                                    if ((comment == 300))
                                    {
                                        attachee.FloatLine(10007, triggerer);
                                    }

                                    if ((comment == 340))
                                    {
                                        attachee.FloatLine(10008, triggerer);
                                    }

                                    if ((comment == 380))
                                    {
                                        attachee.FloatLine(10009, triggerer);
                                    }
                                }
                            }
                        }

                        if ((GetGlobalVar(984) == 1 && !ScriptDaemon.npc_get(attachee, 2)))
                        {
                            StartTimer(200, () => ruff_exit(attachee, triggerer));
                            ScriptDaemon.npc_set(attachee, 2);
                        }

                        if (((GetGlobalFlag(555) || GetGlobalFlag(556)) && GetGlobalFlag(558)))
                        {
                            attachee.SetStandpoint(StandPointType.Night, 427);
                            attachee.SetStandpoint(StandPointType.Day, 427);
                        }
                    }
                }
            }

            // game.new_sid = 0
            if ((ScriptDaemon.npc_get(attachee, 3)))
            {
                attachee.SetObjectFlag(ObjectFlag.OFF);
            }
        }

        return(RunDefault);
    }
예제 #6
0
    public override bool OnEnterCombat(GameObject attachee, GameObject triggerer)
    {
        if ((!GetGlobalFlag(833) && attachee.GetMap() == 5065))
        {
            foreach (var pc in GameSystems.Party.PartyMembers)
            {
                if ((pc.type == ObjectType.pc))
                {
                    attachee.AIRemoveFromShitlist(pc);
                }
            }

            foreach (var obj in ObjList.ListVicinity(attachee.GetLocation(), ObjectListFilter.OLC_CRITTERS))
            {
                if ((obj.GetNameId() == 8002 && obj.GetLeader() != null))
                {
                    var leader = obj.GetLeader();
                    leader.BeginDialog(obj, 266);
                }
            }

            if ((attachee.GetNameId() == 14310 && GetGlobalFlag(37) && !GetGlobalFlag(835))) // Lareth dead
            {
                var leader = PartyLeader;
                if ((leader.GetSkillLevel(attachee, SkillId.bluff) >= 10))
                {
                    leader.BeginDialog(attachee, 266);
                }
                else if ((leader.GetSkillLevel(attachee, SkillId.bluff) >= 5))
                {
                    leader.BeginDialog(attachee, 66);
                }
                else
                {
                    leader.BeginDialog(attachee, 166);
                }
            }

            if ((attachee.GetNameId() == 14310 && GetGlobalFlag(834) && !GetGlobalFlag(37) && !GetGlobalFlag(835))) // Lareth alive
            {
                var leader = PartyLeader;
                leader.BeginDialog(attachee, 366);
            }

            if ((attachee.GetNameId() == 14310 && !GetGlobalFlag(834) && !GetGlobalFlag(37) && !GetGlobalFlag(835))) // Lareth not met
            {
                var leader = PartyLeader;
                leader.BeginDialog(attachee, 466);
            }

            return(SkipDefault);
        }

        if ((GetGlobalFlag(839) && attachee.GetMap() == 5065 && !GetGlobalFlag(840)))
        {
            foreach (var pc in GameSystems.Party.PartyMembers)
            {
                if ((pc.type == ObjectType.pc))
                {
                    attachee.AIRemoveFromShitlist(pc);
                }
            }

            foreach (var obj in ObjList.ListVicinity(attachee.GetLocation(), ObjectListFilter.OLC_CRITTERS))
            {
                if ((obj.GetNameId() == 14614 && obj.GetLeader() != null))
                {
                    var leader = obj.GetLeader();
                    leader.BeginDialog(obj, 400);
                    return(SkipDefault);
                }
            }

            if ((GetGlobalFlag(847)))
            {
                var target = GameSystems.MapObject.CreateObject(14617, new locXY(479, 489));
                SetGlobalFlag(841, false);
                SetGlobalFlag(847, false);
                target.TurnTowards(PartyLeader);
                PartyLeader.BeginDialog(target, 350);
            }

            return(SkipDefault);
        }

        if ((GetGlobalFlag(840) && attachee.GetMap() == 5065))
        {
            // game.global_flags[840] = 0
            SetGlobalFlag(849, true);
        }

        return(RunDefault);
    }
예제 #7
0
    public override bool OnHeartbeat(GameObject attachee, GameObject triggerer)
    {
        if ((!GameSystems.Combat.IsCombatActive()) && (!GetGlobalFlag(363)) && (attachee.GetLeader() == null))
        {
            if ((attachee.DistanceTo(PartyLeader) <= 22 && attachee.HasLineOfSight(PartyLeader) && !Utilities.critter_is_unconscious(PartyLeader)))
            {
                if ((!attachee.HasMet(PartyLeader)))
                {
                    attachee.TurnTowards(PartyLeader);
                    PartyLeader.BeginDialog(attachee, 1);
                    DetachScript();
                }
                else if ((!GetGlobalFlag(49) && GetGlobalFlag(48) && GetGlobalFlag(62)))
                {
                    attachee.TurnTowards(PartyLeader);
                    PartyLeader.BeginDialog(attachee, 50);
                    DetachScript();
                }
                else if ((GetGlobalFlag(49)))
                {
                    attachee.TurnTowards(PartyLeader);
                    PartyLeader.BeginDialog(attachee, 60);
                    DetachScript();
                }
                else
                {
                    attachee.TurnTowards(PartyLeader);
                    PartyLeader.BeginDialog(attachee, 70);
                    DetachScript();
                }
            }
            else
            {
                foreach (var obj in ObjList.ListVicinity(attachee.GetLocation(), ObjectListFilter.OLC_PC))
                {
                    if ((attachee.DistanceTo(obj) <= 20 && attachee.HasLineOfSight(obj) && !Utilities.critter_is_unconscious(obj)))
                    {
                        if ((!attachee.HasMet(obj)))
                        {
                            attachee.TurnTowards(obj);
                            obj.BeginDialog(attachee, 1);
                        }
                        else if ((!GetGlobalFlag(49) && GetGlobalFlag(48) && GetGlobalFlag(62)))
                        {
                            attachee.TurnTowards(obj);
                            obj.BeginDialog(attachee, 50);
                        }
                        else if ((GetGlobalFlag(49)))
                        {
                            attachee.TurnTowards(obj);
                            obj.BeginDialog(attachee, 60);
                        }
                        else
                        {
                            attachee.TurnTowards(obj);
                            obj.BeginDialog(attachee, 70);
                        }
                    }
                }
            }
        }

        // Don't scrap the script - because of the "bring the leader here" treatment
        return(RunDefault);
    }
예제 #8
0
    public override bool OnHeartbeat(GameObject attachee, GameObject triggerer)
    {
        if ((GameSystems.Combat.IsCombatActive()))
        {
            return(RunDefault);
        }
        else
        {
            Logger.Info("Hedrack Heartbeat");
            var closest_jones = Utilities.party_closest(attachee);
            if ((attachee.DistanceTo(closest_jones) <= 100))
            {
                SetGlobalVar(719, GetGlobalVar(719) + 1);
                if ((attachee.GetLeader() == null))
                {
                    if ((GetGlobalVar(719) == 4))
                    {
                        attachee.CastSpell(WellKnownSpells.FreedomOfMovement, attachee);
                        attachee.PendingSpellsToMemorized();
                    }

                    if ((GetGlobalVar(719) == 8))
                    {
                        attachee.CastSpell(WellKnownSpells.OwlsWisdom, attachee);
                        attachee.PendingSpellsToMemorized();
                    }

                    if ((GetGlobalVar(719) == 12))
                    {
                        attachee.CastSpell(WellKnownSpells.ShieldOfFaith, attachee);
                        attachee.PendingSpellsToMemorized();
                    }

                    if ((GetGlobalVar(719) == 16))
                    {
                        attachee.CastSpell(WellKnownSpells.ProtectionFromGood, attachee);
                        attachee.PendingSpellsToMemorized();
                    }

                    if ((GetGlobalVar(719) == 20))
                    {
                        attachee.CastSpell(WellKnownSpells.ProtectionFromLaw, attachee);
                        attachee.PendingSpellsToMemorized();
                    }
                }

                if ((GetGlobalVar(719) >= 400))
                {
                    SetGlobalVar(719, 0);
                }
            }

            foreach (var obj in ObjList.ListVicinity(attachee.GetLocation(), ObjectListFilter.OLC_PC))
            {
                if ((is_28_and_under(attachee, obj) && !GetGlobalFlag(812)))
                {
                    if ((GetQuestState(58) != QuestState.Unknown))
                    {
                        SetGlobalFlag(812, true);
                        return(SkipDefault);
                    }
                    else if ((GetGlobalVar(691) == 3))
                    {
                        if ((PartyLeader.GetStat(Stat.hp_current) >= 1 && !PartyLeader.D20Query(D20DispatcherKey.QUE_Prone)))
                        {
                            PartyLeader.TurnTowards(attachee);
                            attachee.TurnTowards(PartyLeader);
                            PartyLeader.BeginDialog(attachee, 40);
                        }
                        else
                        {
                            obj.TurnTowards(attachee);
                            attachee.TurnTowards(obj);
                            obj.BeginDialog(attachee, 40);
                        }
                    }
                    else if ((GetGlobalVar(691) == 2))
                    {
                        if ((PartyLeader.GetStat(Stat.hp_current) >= 1 && !PartyLeader.D20Query(D20DispatcherKey.QUE_Prone)))
                        {
                            PartyLeader.TurnTowards(attachee);
                            attachee.TurnTowards(PartyLeader);
                            PartyLeader.BeginDialog(attachee, 30);
                        }
                        else
                        {
                            obj.TurnTowards(attachee);
                            attachee.TurnTowards(obj);
                            obj.BeginDialog(attachee, 30);
                        }
                    }
                    else if ((GetGlobalVar(691) == 1))
                    {
                        if ((PartyLeader.GetStat(Stat.hp_current) >= 1 && !PartyLeader.D20Query(D20DispatcherKey.QUE_Prone)))
                        {
                            PartyLeader.TurnTowards(attachee);
                            attachee.TurnTowards(PartyLeader);
                            PartyLeader.BeginDialog(attachee, 20);
                        }
                        else
                        {
                            obj.TurnTowards(attachee);
                            attachee.TurnTowards(obj);
                            obj.BeginDialog(attachee, 20);
                        }
                    }
                    else if ((GetGlobalFlag(144)))
                    {
                        if ((!attachee.HasMet(obj)))
                        {
                            if ((PartyLeader.GetStat(Stat.hp_current) >= 1 && !PartyLeader.D20Query(D20DispatcherKey.QUE_Prone)))
                            {
                                PartyLeader.TurnTowards(attachee);
                                attachee.TurnTowards(PartyLeader);
                                PartyLeader.BeginDialog(attachee, 10);
                            }
                            else
                            {
                                obj.TurnTowards(attachee);
                                attachee.TurnTowards(obj);
                                obj.BeginDialog(attachee, 10);
                            }
                        }
                        else
                        {
                            if ((PartyLeader.GetStat(Stat.hp_current) >= 1 && !PartyLeader.D20Query(D20DispatcherKey.QUE_Prone)))
                            {
                                PartyLeader.TurnTowards(attachee);
                                attachee.TurnTowards(PartyLeader);
                                PartyLeader.BeginDialog(attachee, 290);
                            }
                            else
                            {
                                obj.TurnTowards(attachee);
                                attachee.TurnTowards(obj);
                                obj.BeginDialog(attachee, 290);
                            }
                        }
                    }
                    else if ((GetQuestState(58) >= QuestState.Accepted))
                    {
                        if ((PartyLeader.GetStat(Stat.hp_current) >= 1 && !PartyLeader.D20Query(D20DispatcherKey.QUE_Prone)))
                        {
                            PartyLeader.TurnTowards(attachee);
                            attachee.TurnTowards(PartyLeader);
                            PartyLeader.BeginDialog(attachee, 480);
                        }
                        else
                        {
                            obj.TurnTowards(attachee);
                            attachee.TurnTowards(obj);
                            obj.BeginDialog(attachee, 480);
                        }
                    }
                    else if ((attachee.HasMet(obj)))
                    {
                        if ((PartyLeader.GetStat(Stat.hp_current) >= 1 && !PartyLeader.D20Query(D20DispatcherKey.QUE_Prone)))
                        {
                            PartyLeader.TurnTowards(attachee);
                            attachee.TurnTowards(PartyLeader);
                            PartyLeader.BeginDialog(attachee, 490);
                        }
                        else
                        {
                            obj.TurnTowards(attachee);
                            attachee.TurnTowards(obj);
                            obj.BeginDialog(attachee, 490);
                        }
                    }
                    else
                    {
                        if ((PartyLeader.GetStat(Stat.hp_current) >= 1 && !PartyLeader.D20Query(D20DispatcherKey.QUE_Prone)))
                        {
                            PartyLeader.TurnTowards(attachee);
                            attachee.TurnTowards(PartyLeader);
                            PartyLeader.BeginDialog(attachee, 1);
                        }
                        else
                        {
                            obj.TurnTowards(attachee);
                            attachee.TurnTowards(obj);
                            obj.BeginDialog(attachee, 1);
                        }
                    }

                    SetGlobalFlag(812, true);
                }
            }
        }

        return(RunDefault);
    }
예제 #9
0
 public static bool start_talking_10(GameObject attachee, GameObject triggerer)
 {
     attachee.TurnTowards(PartyLeader);
     PartyLeader.BeginDialog(attachee, 1270);
     return RunDefault;
 }
예제 #10
0
 public static bool suspicious_talk(GameObject attachee, GameObject triggerer)
 {
     attachee.TurnTowards(PartyLeader);
     PartyLeader.BeginDialog(attachee, 1180);
     return(RunDefault);
 }
예제 #11
0
 public static bool wakefield_talk(GameObject attachee, GameObject triggerer)
 {
     attachee.TurnTowards(PartyLeader);
     PartyLeader.BeginDialog(attachee, 1150);
     return(RunDefault);
 }
예제 #12
0
 public static void all_done(GameObject attachee, GameObject triggerer)
 {
     PartyLeader.BeginDialog(attachee, 70);
     return;
 }
예제 #13
0
    public override bool OnHeartbeat(GameObject attachee, GameObject triggerer)
    {
        if ((attachee.GetNameId() == 8893))
        {
            if ((attachee.GetLeader() == null))
            {
                if ((!GameSystems.Combat.IsCombatActive()))
                {
                    if ((GetGlobalVar(980) == 3 && GetGlobalVar(981) == 3 && GetGlobalVar(982) == 3 && GetGlobalVar(983) == 3 && GetGlobalVar(984) == 3 && GetGlobalVar(985) == 3 && GetGlobalVar(986) == 3)) // turns on angra
                    {
                        attachee.ClearObjectFlag(ObjectFlag.OFF);
                        if ((!ScriptDaemon.npc_get(attachee, 4)))
                        {
                            Sound(4183, 1);
                            ScriptDaemon.npc_set(attachee, 4);
                        }
                    }

                    var closest_jones = Utilities.party_closest(attachee);
                    if ((attachee.DistanceTo(closest_jones) <= 100))
                    {
                        if ((attachee != null && !Utilities.critter_is_unconscious(attachee) && !attachee.D20Query(D20DispatcherKey.QUE_Prone)))
                        {
                            if ((GetGlobalVar(980) == 3 && GetGlobalVar(981) == 3 && GetGlobalVar(982) == 3 && GetGlobalVar(983) == 3 && GetGlobalVar(984) == 3 && GetGlobalVar(985) == 3 && GetGlobalVar(986) == 3 && !GetGlobalFlag(563)))
                            {
                                SetGlobalVar(973, GetGlobalVar(973) + 1);
                                if ((GetGlobalVar(973) == 10 || GetGlobalVar(973) == 20 || GetGlobalVar(973) == 30 || GetGlobalVar(973) == 40))
                                {
                                    AttachParticles("Trap-Spores", attachee);
                                    var fx = RandomRange(1, 4);
                                    if ((fx == 1))
                                    {
                                        Sound(4167, 1);
                                    }
                                    else if ((fx == 2))
                                    {
                                        Sound(4168, 1);
                                    }
                                    else if ((fx == 3))
                                    {
                                        Sound(4169, 1);
                                    }
                                }

                                if ((GetGlobalVar(973) == 40))
                                {
                                    SetGlobalVar(973, 0);
                                }
                            }
                        }
                    }

                    if ((!GetGlobalFlag(984)))
                    {
                        foreach (var obj in ObjList.ListVicinity(attachee.GetLocation(), ObjectListFilter.OLC_PC))
                        {
                            if ((is_35_and_under(attachee, obj)))
                            {
                                attachee.TurnTowards(PartyLeader);
                                PartyLeader.BeginDialog(attachee, 1);
                                SetGlobalFlag(984, true);
                            }
                        }
                    }

                    if ((GetGlobalFlag(563) && !ScriptDaemon.npc_get(attachee, 2)))
                    {
                        StartTimer(200, () => angra_exit(attachee, triggerer));
                        ScriptDaemon.npc_set(attachee, 2);
                    }
                }
            }

            if ((ScriptDaemon.npc_get(attachee, 3)))
            {
                attachee.SetObjectFlag(ObjectFlag.OFF);
            }
        }
        else if ((attachee.GetNameId() == 8614 || attachee.GetNameId() == 8615 || attachee.GetNameId() == 8616 || attachee.GetNameId() == 8617 || attachee.GetNameId() == 8618 || attachee.GetNameId() == 8619 || attachee.GetNameId() == 8620 || attachee.GetNameId() == 8621))
        {
            if ((attachee.GetLeader() == null))
            {
                if ((!GameSystems.Combat.IsCombatActive()))
                {
                    if ((GetGlobalVar(980) == 3 && GetGlobalVar(981) == 3 && GetGlobalVar(982) == 3 && GetGlobalVar(983) == 3 && GetGlobalVar(984) == 3 && GetGlobalVar(985) == 3 && GetGlobalVar(986) == 3)) // turns on angra co
                    {
                        attachee.ClearObjectFlag(ObjectFlag.OFF);
                    }
                }
            }
        }

        return(RunDefault);
    }
예제 #14
0
    public override bool OnHeartbeat(GameObject attachee, GameObject triggerer)
    {
        if ((!GameSystems.Combat.IsCombatActive()) && (!GetGlobalFlag(363)) && (attachee.GetLeader() == null))
        {
            if ((is_better_to_talk(attachee, PartyLeader)))
            {
                if ((!Utilities.critter_is_unconscious(PartyLeader)))
                {
                    if ((!attachee.HasMet(PartyLeader)))
                    {
                        attachee.TurnTowards(PartyLeader);
                        PartyLeader.BeginDialog(attachee, 1);
                        DetachScript();
                    }
                    else if ((!GetGlobalFlag(49) && GetGlobalFlag(48) && GetGlobalFlag(62)))
                    {
                        attachee.TurnTowards(PartyLeader);
                        PartyLeader.BeginDialog(attachee, 50);
                        DetachScript();
                    }
                    else if ((GetGlobalFlag(49)))
                    {
                        attachee.TurnTowards(PartyLeader);
                        PartyLeader.BeginDialog(attachee, 60);
                        DetachScript();
                    }
                    else
                    {
                        attachee.TurnTowards(PartyLeader);
                        PartyLeader.BeginDialog(attachee, 70);
                        DetachScript();
                    }
                }
            }
            else
            {
                foreach (var obj in ObjList.ListVicinity(attachee.GetLocation(), ObjectListFilter.OLC_PC))
                {
                    if ((Utilities.is_safe_to_talk(attachee, obj)))
                    {
                        if ((!attachee.HasMet(obj)))
                        {
                            attachee.TurnTowards(obj);
                            obj.BeginDialog(attachee, 1);
                        }
                        else if ((!GetGlobalFlag(49) && GetGlobalFlag(48) && GetGlobalFlag(62)))
                        {
                            attachee.TurnTowards(obj);
                            obj.BeginDialog(attachee, 50);
                        }
                        else if ((GetGlobalFlag(49)))
                        {
                            attachee.TurnTowards(obj);
                            obj.BeginDialog(attachee, 60);
                        }
                        else
                        {
                            attachee.TurnTowards(obj);
                            obj.BeginDialog(attachee, 70);
                        }
                    }
                }
            }
        }

        return(RunDefault);
    }