public static bool run_off(GameObject attachee, GameObject triggerer)
 {
     // loc = location_from_axis(427,406)
     // attachee.runoff(loc)
     attachee.RunOff();
     Co8.Timed_Destroy(attachee, 5000);
     return(RunDefault);
 }
Beispiel #2
0
 public static bool run_off(GameObject attachee, GameObject triggerer)
 {
     // for pc in game.party:
     // attachee.ai_shitlist_remove( pc )
     // attachee.reaction_set( pc, 50 )
     attachee.RunOff();
     Co8.Timed_Destroy(attachee, 5000);
     return(RunDefault);
 }
    public override void OnBeginRound(SpellPacketBody spell)
    {
        if (GameSystems.Combat.IsCombatActive())
        {
            var time = 6000 * spell.casterLevel;
            Co8.Timed_Destroy(spell.Targets[0].Object, time);
        }

        Logger.Info("Mordenkainen's Faithful Hound OnBeginRound");
    }
    public static bool run_off(GameObject npc, GameObject pc)
    {
        SetGlobalFlag(288, true);
        var location = new locXY(484, 490);

        npc.RunOff(location);
        Co8.Timed_Destroy(npc, 5000);
        // game.timevent_add( give_reward, (), 1209600000 )
        // game.timevent_add( give_reward, (), 720000 )
        QueueRandomEncounter(3605);
        foreach (var obj in ObjList.ListVicinity(npc.GetLocation(), ObjectListFilter.OLC_NPC))
        {
            if ((obj.GetNameId() == 14079 || obj.GetNameId() == 14080 || obj.GetNameId() == 14067 || obj.GetNameId() == 14078))
            {
                obj.RunOff(location);
                Co8.Timed_Destroy(obj, 5000);
            }
        }

        return(RunDefault);
    }