public override bool OnDying(GameObject attachee, GameObject triggerer) { if (CombatStandardRoutines.should_modify_CR(attachee)) { CombatStandardRoutines.modify_CR(attachee, CombatStandardRoutines.get_av_level()); } StartTimer(86400000, () => new_orrengaard(attachee)); // 1 day var boots = attachee.FindItemByName(6011); boots.SetObjectFlag(ObjectFlag.OFF); var gloves = attachee.FindItemByName(6012); gloves.SetObjectFlag(ObjectFlag.OFF); var clothes = attachee.FindItemByName(6344); clothes.SetObjectFlag(ObjectFlag.OFF); var staff = attachee.FindItemByName(4214); staff.SetObjectFlag(ObjectFlag.OFF); var robe = attachee.FindItemByName(6333); robe.SetObjectFlag(ObjectFlag.OFF); var circlet = attachee.FindItemByName(6335); circlet.SetObjectFlag(ObjectFlag.OFF); return(RunDefault); }
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() == 5170 || attachee.GetMap() == 5135)) { SetGlobalFlag(992, true); SetGlobalFlag(935, true); PartyLeader.AddReputation(44); } else if ((attachee.GetMap() == 5156)) { if ((GetGlobalFlag(940))) { SetGlobalFlag(935, true); PartyLeader.AddReputation(44); } SetGlobalFlag(992, true); } return(RunDefault); }
public override bool OnDying(GameObject attachee, GameObject triggerer) { if (CombatStandardRoutines.should_modify_CR(attachee)) { CombatStandardRoutines.modify_CR(attachee, CombatStandardRoutines.get_av_level()); } SetGlobalFlag(196, true); if ((!GetGlobalFlag(232))) { attachee.FloatLine(12014, triggerer); SetGlobalVar(23, GetGlobalVar(23) + 1); if (GetGlobalVar(23) >= 2) { PartyLeader.AddReputation(92); } } else { SetGlobalVar(29, GetGlobalVar(29) + 1); attachee.FloatLine(12014, triggerer); } return(RunDefault); }
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(501, true); SetGlobalVar(511, GetGlobalVar(511) + 1); if ((GetGlobalVar(511) >= 12 && GetGlobalFlag(501))) { SetGlobalFlag(511, true); if ((GetGlobalFlag(511) && GetGlobalFlag(512) && GetGlobalFlag(513) && GetGlobalFlag(514) && GetGlobalFlag(515) && GetGlobalFlag(516) && GetGlobalFlag(517) && GetGlobalFlag(518) && GetGlobalFlag(519) && GetGlobalFlag(520) && GetGlobalFlag(521) && GetGlobalFlag(522))) { SetQuestState(97, QuestState.Completed); PartyLeader.AddReputation(52); SetGlobalVar(501, 7); } } return(RunDefault); }
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() == 5010)) { rngfighttime_set(); SetGlobalFlag(426, true); } SetGlobalFlag(814, true); if ((GetGlobalFlag(815))) { foreach (var pc in GameSystems.Party.PartyMembers) { if ((pc.HasReputation(23))) { pc.RemoveReputation(23); } } } if ((!PartyLeader.HasReputation(9))) { PartyLeader.AddReputation(9); } return(RunDefault); }
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"); } SetGlobalVar(334, GetGlobalVar(334) + 1); if ((GetGlobalVar(334) >= 2)) { PartyLeader.AddReputation(35); } if ((GetQuestState(67) == QuestState.Accepted)) { SetGlobalFlag(964, true); } StartTimer(60000, () => go_away(attachee)); return(RunDefault); }
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() == 5069)) { SetGlobalVar(3, GetGlobalVar(3) + 1); if ((PartyAlignment == Alignment.LAWFUL_NEUTRAL || PartyAlignment == Alignment.CHAOTIC_NEUTRAL || PartyAlignment == Alignment.NEUTRAL || PartyAlignment == Alignment.LAWFUL_EVIL || PartyAlignment == Alignment.CHAOTIC_EVIL || PartyAlignment == Alignment.NEUTRAL_EVIL)) { var ring = attachee.FindItemByName(3000); ring.Destroy(); } } else if ((attachee.GetMap() == 5002)) { if ((PartyAlignment == Alignment.LAWFUL_GOOD || PartyAlignment == Alignment.CHAOTIC_GOOD || PartyAlignment == Alignment.NEUTRAL_GOOD || PartyAlignment == Alignment.LAWFUL_EVIL || PartyAlignment == Alignment.CHAOTIC_EVIL || PartyAlignment == Alignment.NEUTRAL_EVIL)) { var ring = attachee.FindItemByName(3000); ring.Destroy(); } } else if ((attachee.GetMap() == 5003)) { if ((PartyAlignment == Alignment.LAWFUL_GOOD || PartyAlignment == Alignment.CHAOTIC_GOOD || PartyAlignment == Alignment.NEUTRAL_GOOD || PartyAlignment == Alignment.LAWFUL_NEUTRAL || PartyAlignment == Alignment.CHAOTIC_NEUTRAL || PartyAlignment == Alignment.NEUTRAL)) { var ring = attachee.FindItemByName(3000); ring.Destroy(); } } return(RunDefault); }
public override bool OnDying(GameObject attachee, GameObject triggerer) { if (CombatStandardRoutines.should_modify_CR(attachee)) { CombatStandardRoutines.modify_CR(attachee, CombatStandardRoutines.get_av_level()); } SetGlobalFlag(976, true); attachee.SetObjectFlag(ObjectFlag.OFF); AttachParticles("ef-MinoCloud", attachee); AttachParticles("Brasier", attachee); Sound(4038, 1); var cloak = attachee.FindItemByName(6427); cloak.SetObjectFlag(ObjectFlag.OFF); var armor = attachee.FindItemByName(6475); armor.SetObjectFlag(ObjectFlag.OFF); var boots = attachee.FindItemByName(6045); boots.SetObjectFlag(ObjectFlag.OFF); var gloves = attachee.FindItemByName(6046); gloves.SetObjectFlag(ObjectFlag.OFF); var helm = attachee.FindItemByName(6209); helm.SetObjectFlag(ObjectFlag.OFF); var ring = attachee.FindItemByName(6083); ring.SetObjectFlag(ObjectFlag.OFF); var weapon = attachee.FindItemByName(4185); weapon.SetObjectFlag(ObjectFlag.OFF); return(RunDefault); }
public override bool OnDying(GameObject attachee, GameObject triggerer) { if (CombatStandardRoutines.should_modify_CR(attachee)) { CombatStandardRoutines.modify_CR(attachee, CombatStandardRoutines.get_av_level()); } SetGlobalFlag(336, true); SetGlobalFlag(284, true); if ((attachee.GetLeader() == null && attachee.FindItemByName(5009) == null && GetGlobalFlag(850))) { SetGlobalFlag(850, false); Utilities.create_item_in_inventory(5009, attachee); } if ((!GetGlobalFlag(233))) { SetGlobalVar(23, GetGlobalVar(23) + 1); if ((GetGlobalVar(23) >= 2)) { PartyLeader.AddReputation(92); } } else { SetGlobalVar(29, GetGlobalVar(29) + 1); } return(RunDefault); }
public override bool OnDying(GameObject attachee, GameObject triggerer) { if (CombatStandardRoutines.should_modify_CR(attachee)) { CombatStandardRoutines.modify_CR(attachee, CombatStandardRoutines.get_av_level()); } return(RunDefault); }
public override bool OnDying(GameObject attachee, GameObject triggerer) { if (CombatStandardRoutines.should_modify_CR(attachee)) { CombatStandardRoutines.modify_CR(attachee, CombatStandardRoutines.get_av_level()); } GameSystems.MapObject.CreateObject(14324, attachee.GetLocation()); return(RunDefault); }
public override bool OnDying(GameObject attachee, GameObject triggerer) { if (CombatStandardRoutines.should_modify_CR(attachee)) { CombatStandardRoutines.modify_CR(attachee, CombatStandardRoutines.get_av_level()); } StartTimer(8000, () => acolyte_start_game()); return(RunDefault); }
public override bool OnDying(GameObject attachee, GameObject triggerer) { if (CombatStandardRoutines.should_modify_CR(attachee)) { CombatStandardRoutines.modify_CR(attachee, CombatStandardRoutines.get_av_level()); } ScriptDaemon.record_time_stamp(507); return(RunDefault); }
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); }
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); }
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); }
public override bool OnDying(GameObject attachee, GameObject triggerer) { if (CombatStandardRoutines.should_modify_CR(attachee)) { CombatStandardRoutines.modify_CR(attachee, CombatStandardRoutines.get_av_level()); } SetGlobalVar(985, 3); SetGlobalFlag(565, true); return(RunDefault); }
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); SetQuestState(59, QuestState.Botched); return(RunDefault); }
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); }
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); }
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); }
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); }
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); }
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() == 14360) { SetGlobalVar(30, GetGlobalVar(30) + 1); } return(RunDefault); }
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); }
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); }
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); }
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); }
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); }
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); }