public static void check_evidence_rep_rak(GameObject attachee, GameObject triggerer) { if ((PartyLeader.HasReputation(74))) { PartyLeader.AddReputation(77); PartyLeader.RemoveReputation(74); } else if ((PartyLeader.HasReputation(71))) { PartyLeader.AddReputation(74); PartyLeader.RemoveReputation(71); } else if ((!PartyLeader.HasReputation(71))) { if ((!PartyLeader.HasReputation(74))) { if ((!PartyLeader.HasReputation(77))) { PartyLeader.AddReputation(71); } } } return; }
public static void check_evidence_rep_bor(GameObject attachee, GameObject triggerer) { if ((PartyLeader.HasReputation(72))) { PartyLeader.AddReputation(75); PartyLeader.RemoveReputation(72); } else if ((PartyLeader.HasReputation(69))) { PartyLeader.AddReputation(72); PartyLeader.RemoveReputation(69); } else if ((!PartyLeader.HasReputation(69))) { if ((!PartyLeader.HasReputation(72))) { if ((!PartyLeader.HasReputation(75))) { PartyLeader.AddReputation(69); } } } return; }
public static void check_evidence_rep_pan(GameObject attachee, GameObject triggerer) { if ((PartyLeader.HasReputation(73))) { PartyLeader.AddReputation(76); PartyLeader.RemoveReputation(73); } else if ((PartyLeader.HasReputation(70))) { PartyLeader.AddReputation(73); PartyLeader.RemoveReputation(70); } else if ((!PartyLeader.HasReputation(70))) { if ((!PartyLeader.HasReputation(73))) { if ((!PartyLeader.HasReputation(76))) { PartyLeader.AddReputation(70); } } } return; }
public static bool clear_reps(GameObject attachee, GameObject triggerer) { PartyLeader.RemoveReputation(35); // Constable Killer PartyLeader.RemoveReputation(34); // Slaughterer of Verbobonc if ((GetGlobalVar(993) == 8)) { SetGlobalVar(993, 9); // removes Dyvers rescuer murder arrest status } return(RunDefault); }
public static bool repo_man() { if ((GetGlobalVar(963) == 7)) { SetQuestState(82, QuestState.Botched); SetGlobalVar(963, 8); SetGlobalFlag(966, false); PartyLeader.AddReputation(38); PartyLeader.RemoveReputation(37); } return(RunDefault); }
public static bool increment_rep(GameObject attachee, GameObject triggerer) { if ((PartyLeader.HasReputation(81))) { PartyLeader.AddReputation(82); PartyLeader.RemoveReputation(81); } else if ((PartyLeader.HasReputation(82))) { PartyLeader.AddReputation(83); PartyLeader.RemoveReputation(82); } else if ((PartyLeader.HasReputation(83))) { PartyLeader.AddReputation(84); PartyLeader.RemoveReputation(83); } else if ((PartyLeader.HasReputation(84))) { PartyLeader.AddReputation(85); PartyLeader.RemoveReputation(84); } else if ((PartyLeader.HasReputation(85))) { PartyLeader.AddReputation(86); PartyLeader.RemoveReputation(85); } else if ((PartyLeader.HasReputation(86))) { PartyLeader.AddReputation(87); PartyLeader.RemoveReputation(86); } else if ((PartyLeader.HasReputation(87))) { PartyLeader.AddReputation(88); PartyLeader.RemoveReputation(87); } else if ((PartyLeader.HasReputation(88))) { PartyLeader.AddReputation(89); PartyLeader.RemoveReputation(88); } else { PartyLeader.AddReputation(81); } return(RunDefault); }
public override bool OnResurrect(GameObject attachee, GameObject triggerer) { SetGlobalFlag(814, false); if ((PartyLeader.HasReputation(9))) { foreach (var pc in GameSystems.Party.PartyMembers) { if ((!pc.HasReputation(23))) { pc.AddReputation(23); } } PartyLeader.RemoveReputation(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() == 8893)) { AttachParticles("Orb-Summon-Glabrezu", attachee); SetGlobalFlag(562, true); if ((GetGlobalFlag(560) && GetGlobalFlag(561))) { PartyLeader.AddReputation(62); } if ((!GetGlobalFlag(564))) { PartyLeader.AddReputation(90); } attachee.SetObjectFlag(ObjectFlag.OFF); spawn_phylactery(); } else if ((attachee.GetNameId() == 14949)) { AttachParticles("hit-HOLY-medium", attachee); SetGlobalFlag(564, true); Sound(4184, 1); if ((GetGlobalFlag(562))) { if ((PartyLeader.HasReputation(90))) { PartyLeader.RemoveReputation(90); } } attachee.SetObjectFlag(ObjectFlag.OFF); } return(RunDefault); }
public static void rep_routine(GameObject attachee, GameObject triggerer) { if ((PartyLeader.HasReputation(75))) { PartyLeader.AddReputation(78); PartyLeader.RemoveReputation(75); } else if ((PartyLeader.HasReputation(76))) { PartyLeader.AddReputation(78); PartyLeader.RemoveReputation(76); } else if ((PartyLeader.HasReputation(77))) { PartyLeader.AddReputation(78); PartyLeader.RemoveReputation(77); } return; }
public void ApplySideEffect(GameObject npc, GameObject pc, int lineNumber, out string originalScript) { switch (lineNumber) { case 1: case 30: originalScript = "game.global_flags[197] = 1"; SetGlobalFlag(197, true); break; case 50: originalScript = "game.quests[16].state = qs_mentioned"; SetQuestState(16, QuestState.Mentioned); break; case 54: case 55: originalScript = "game.quests[16].state = qs_accepted"; SetQuestState(16, QuestState.Accepted); break; case 101: case 402: originalScript = "game.quests[64].state = qs_completed"; SetQuestState(64, QuestState.Completed); break; case 102: case 103: case 104: originalScript = "npc.attack(pc)"; npc.Attack(pc); break; case 141: case 142: originalScript = "game.global_flags[39] = 1; pc.money_adj(-18000)"; SetGlobalFlag(39, true); pc.AdjustMoney(-18000); ; break; case 161: case 162: originalScript = "game.global_flags[39] = 1; pc.money_adj(-15000)"; SetGlobalFlag(39, true); pc.AdjustMoney(-15000); ; break; case 191: case 193: originalScript = "pc.money_adj(+20000); pc.condition_add_with_args(\"Fallen_Paladin\",0,0)"; pc.AdjustMoney(+20000); pc.AddCondition("Fallen_Paladin", 0, 0); ; break; case 192: case 194: originalScript = "pc.money_adj(+2000); pc.condition_add_with_args(\"Fallen_Paladin\",0,0)"; pc.AdjustMoney(+2000); pc.AddCondition("Fallen_Paladin", 0, 0); ; break; case 201: case 202: originalScript = "npc.item_transfer_to_by_proto(pc,4107)"; npc.TransferItemByProtoTo(pc, 4107); break; case 215: case 270: originalScript = "game.areas[2] = 1; game.story_state = 1"; MakeAreaKnown(2); StoryState = 1; ; break; case 216: case 217: case 271: case 272: case 421: case 422: originalScript = "game.worldmap_travel_by_dialog(2)"; WorldMapTravelByDialog(2); break; case 240: originalScript = "game.quests[16].state = qs_completed"; SetQuestState(16, QuestState.Completed); break; case 241: case 245: originalScript = "pc.money_adj(+5000); pc.condition_add_with_args(\"Fallen_Paladin\",0,0)"; pc.AdjustMoney(+5000); pc.AddCondition("Fallen_Paladin", 0, 0); ; break; case 242: case 246: originalScript = "pc.money_adj(+10000); pc.condition_add_with_args(\"Fallen_Paladin\",0,0)"; pc.AdjustMoney(+10000); pc.AddCondition("Fallen_Paladin", 0, 0); ; break; case 320: originalScript = "game.global_flags[67] = 1"; SetGlobalFlag(67, true); break; case 330: originalScript = "game.areas[2] = 1; game.story_state = 1; game.quests[30].state = qs_completed"; MakeAreaKnown(2); StoryState = 1; SetQuestState(30, QuestState.Completed); ; break; case 340: originalScript = "game.quests[30].state = qs_completed"; SetQuestState(30, QuestState.Completed); break; case 370: originalScript = "game.areas[3] = 1; game.story_state = 3"; MakeAreaKnown(3); StoryState = 3; ; break; case 371: case 372: originalScript = "game.worldmap_travel_by_dialog(3)"; WorldMapTravelByDialog(3); break; case 390: originalScript = "game.global_flags[428] = 1"; SetGlobalFlag(428, true); break; case 401: originalScript = "game.quests[64].state = qs_botched"; SetQuestState(64, QuestState.Botched); break; case 441: case 442: originalScript = "game.global_flags[41] = 1"; SetGlobalFlag(41, true); break; case 1000: originalScript = "game.gloabl_vars[750] = 1; game.global_vars[751] = 1"; throw new NotSupportedException("Conversion failed."); case 1001: originalScript = "switch_to_gremag(npc,pc)"; switch_to_gremag(npc, pc); break; case 1010: originalScript = "game.global_vars[750] = 1; game.global_vars[751] = 1"; SetGlobalVar(750, 1); SetGlobalVar(751, 1); ; break; case 1012: case 1013: case 1100: case 1101: originalScript = "game.global_vars[750] = 1; game.global_vars[751] = 1; npc.attack( pc )"; SetGlobalVar(750, 1); SetGlobalVar(751, 1); npc.Attack(pc); ; break; case 2000: case 2100: originalScript = "game.party[0].reputation_remove(23)"; PartyLeader.RemoveReputation(23); break; case 2012: case 2112: originalScript = "game.global_flags[883] = 1"; SetGlobalFlag(883, true); break; case 2024: case 2124: originalScript = "buff_npc(npc,pc)"; buff_npc(npc, pc); break; case 2036: originalScript = "buff_npc_three(npc,pc)"; buff_npc_three(npc, pc); break; case 2048: case 2148: originalScript = "buff_npc_two(npc,pc)"; buff_npc_two(npc, pc); break; case 2049: case 2149: originalScript = "npc.attack( pc )"; npc.Attack(pc); break; case 2136: originalScript = "buff_npc_four(npc,pc)"; buff_npc_four(npc, pc); break; case 3000: case 3100: originalScript = "game.global_flags[843] = 1"; SetGlobalFlag(843, true); break; default: originalScript = null; return; } }
public void ApplySideEffect(GameObject npc, GameObject pc, int lineNumber, out string originalScript) { switch (lineNumber) { case 1: case 30: originalScript = "game.global_flags[197] = 1"; SetGlobalFlag(197, true); break; case 11: case 12: originalScript = "game.global_flags[41] = 1"; SetGlobalFlag(41, true); break; case 40: originalScript = "game.quests[16].state = qs_mentioned"; SetQuestState(16, QuestState.Mentioned); break; case 44: case 45: originalScript = "game.quests[16].state = qs_accepted"; SetQuestState(16, QuestState.Accepted); break; case 71: case 382: originalScript = "game.quests[64].state = qs_completed"; SetQuestState(64, QuestState.Completed); break; case 72: case 73: case 74: originalScript = "npc.attack(pc)"; npc.Attack(pc); break; case 111: case 112: originalScript = "game.global_flags[39] = 1; pc.money_adj(-20000)"; SetGlobalFlag(39, true); pc.AdjustMoney(-20000); ; break; case 131: case 132: originalScript = "game.global_flags[39] = 1; pc.money_adj(-15000)"; SetGlobalFlag(39, true); pc.AdjustMoney(-15000); ; break; case 161: case 163: originalScript = "pc.money_adj(+20000); pc.condition_add_with_args(\"Fallen_Paladin\",0,0)"; pc.AdjustMoney(+20000); pc.AddCondition("Fallen_Paladin", 0, 0); ; break; case 162: case 164: case 211: case 215: originalScript = "pc.money_adj(+5000); pc.condition_add_with_args(\"Fallen_Paladin\",0,0)"; pc.AdjustMoney(+5000); pc.AddCondition("Fallen_Paladin", 0, 0); ; break; case 171: case 172: originalScript = "npc.item_transfer_to_by_proto(pc,4107); pc.condition_add_with_args(\"Fallen_Paladin\",0,0)"; npc.TransferItemByProtoTo(pc, 4107); pc.AddCondition("Fallen_Paladin", 0, 0); ; break; case 185: case 240: originalScript = "game.areas[2] = 1; game.story_state = 1"; MakeAreaKnown(2); StoryState = 1; ; break; case 186: case 187: case 241: case 242: originalScript = "game.worldmap_travel_by_dialog(2)"; WorldMapTravelByDialog(2); break; case 210: originalScript = "game.quests[16].state = qs_completed"; SetQuestState(16, QuestState.Completed); break; case 212: case 216: originalScript = "pc.money_adj(+10000); pc.condition_add_with_args(\"Fallen_Paladin\",0,0)"; pc.AdjustMoney(+10000); pc.AddCondition("Fallen_Paladin", 0, 0); ; break; case 290: originalScript = "game.global_flags[293] = 1"; SetGlobalFlag(293, true); break; case 330: originalScript = "game.quests[91].state = qs_mentioned"; SetQuestState(91, QuestState.Mentioned); break; case 331: case 332: originalScript = "game.global_flags[294] = 1; game.quests[91].state = qs_accepted"; SetGlobalFlag(294, true); SetQuestState(91, QuestState.Accepted); ; break; case 350: originalScript = "game.quests[91].state = qs_completed; game.quests[92].state = qs_mentioned"; SetQuestState(91, QuestState.Completed); SetQuestState(92, QuestState.Mentioned); ; break; case 351: case 352: originalScript = "game.global_flags[295] = 1; game.quests[92].state = qs_accepted"; SetGlobalFlag(295, true); SetQuestState(92, QuestState.Accepted); ; break; case 360: originalScript = "game.quests[92].state = qs_completed; game.quests[93].state = qs_mentioned"; SetQuestState(92, QuestState.Completed); SetQuestState(93, QuestState.Mentioned); ; break; case 361: originalScript = "game.global_flags[296] = 1; game.quests[93].state = qs_accepted"; SetGlobalFlag(296, true); SetQuestState(93, QuestState.Accepted); ; break; case 362: originalScript = "game.global_flags[296] = 1; game.quests[92].state = qs_accepted"; SetGlobalFlag(296, true); SetQuestState(92, QuestState.Accepted); ; break; case 370: originalScript = "game.party[0].reputation_add( 24 ); game.quests[93].state = qs_completed"; PartyLeader.AddReputation(24); SetQuestState(93, QuestState.Completed); ; break; case 380: originalScript = "game.global_flags[428] = 1"; SetGlobalFlag(428, true); break; case 381: originalScript = "game.quests[64].state = qs_botched"; SetQuestState(64, QuestState.Botched); break; case 1000: originalScript = "game.gloabl_vars[750] = 1; game.global_vars[751] = 1"; throw new NotSupportedException("Conversion failed."); case 1001: originalScript = "switch_to_rannos(npc,pc)"; switch_to_rannos(npc, pc); break; case 1010: originalScript = "game.global_vars[750] = 1; game.global_vars[751] = 1"; SetGlobalVar(750, 1); SetGlobalVar(751, 1); ; break; case 1012: case 1013: case 1100: case 1101: originalScript = "game.global_vars[750] = 1; game.global_vars[751] = 1; npc.attack( pc )"; SetGlobalVar(750, 1); SetGlobalVar(751, 1); npc.Attack(pc); ; break; case 2100: originalScript = "game.party[0].reputation_remove(23)"; PartyLeader.RemoveReputation(23); break; case 2112: originalScript = "game.global_flags[883] = 1"; SetGlobalFlag(883, true); break; case 2124: originalScript = "buff_npc(npc,pc)"; buff_npc(npc, pc); break; case 2136: originalScript = "buff_npc_four(npc,pc)"; buff_npc_four(npc, pc); break; case 2148: originalScript = "buff_npc_two(npc,pc)"; buff_npc_two(npc, pc); break; case 2149: originalScript = "npc.attack( pc )"; npc.Attack(pc); break; case 3000: case 3100: originalScript = "game.global_flags[843] = 1"; SetGlobalFlag(843, true); break; default: originalScript = null; return; } }
public override bool OnResurrect(GameObject attachee, GameObject triggerer) { SetGlobalFlag(949, false); PartyLeader.RemoveReputation(40); return(RunDefault); }
public void ApplySideEffect(GameObject npc, GameObject pc, int lineNumber, out string originalScript) { switch (lineNumber) { case 13: originalScript = "npc_2(npc)"; Scripts.npc_2(npc); break; case 14: originalScript = "npc_1(npc)"; Scripts.npc_1(npc); break; case 25: originalScript = "game.global_vars[963] = 2"; SetGlobalVar(963, 2); break; case 81: originalScript = "game.global_vars[963] = 3"; SetGlobalVar(963, 3); break; case 101: originalScript = "pc.money_adj(-10000000); game.global_vars[963] = 4"; pc.AdjustMoney(-10000000); SetGlobalVar(963, 4); ; break; case 102: case 152: originalScript = "game.global_vars[963] = 5"; SetGlobalVar(963, 5); break; case 130: originalScript = "game.global_flags[966] = 1; game.party[0].reputation_add(37)"; SetGlobalFlag(966, true); PartyLeader.AddReputation(37); ; break; case 151: originalScript = "pc.money_adj(-5500000); game.global_vars[963] = 6"; pc.AdjustMoney(-5500000); SetGlobalVar(963, 6); ; break; case 160: originalScript = "game.global_flags[966] = 1; game.quests[82].state = qs_accepted; game.party[0].reputation_add(37)"; SetGlobalFlag(966, true); SetQuestState(82, QuestState.Accepted); PartyLeader.AddReputation(37); ; break; case 171: originalScript = "pc.money_adj(-5500000)"; pc.AdjustMoney(-5500000); break; case 180: originalScript = "game.global_vars[963] = 4; game.quests[82].state = qs_completed"; SetGlobalVar(963, 4); SetQuestState(82, QuestState.Completed); ; break; case 211: originalScript = "pc.money_adj(-8250000); game.quests[82].unbotch(); game.quests[82].state = qs_completed; game.party[0].reputation_remove(38)"; pc.AdjustMoney(-8250000); UnbotchQuest(82); SetQuestState(82, QuestState.Completed); PartyLeader.RemoveReputation(38); ; break; case 561: originalScript = "make_withdrawal(npc,pc)"; make_withdrawal(npc, pc); break; default: originalScript = null; return; } }