Пример #1
0
    public static void test_adding_two_followers(GameObject pc, GameObject npc)
    {
        if (((GetGlobalVar(450) & 0x4000) == 0) && ((GetGlobalVar(450) & (1)) == 0))
        {
            pc.AddFollower(npc);
            if (!pc.HasMaxFollowers())
            {
                pc.RemoveFollower(npc);
                ScriptDaemon.npc_set(npc, 1);
            }
            else
            {
                pc.RemoveFollower(npc);
                ScriptDaemon.npc_unset(npc, 1);
            }
        }
        else
        {
            if (GameSystems.Party.NPCFollowersSize <= 1) // original condition - only have 1 NPC (Otis, presumeably) (or less, just in case...)
            {
                ScriptDaemon.npc_set(npc, 1);
            }
            else
            {
                ScriptDaemon.npc_unset(npc, 1);
            }
        }

        return;
    }
Пример #2
0
 public static void talk_talk(GameObject attachee, GameObject triggerer)
 {
     attachee.TurnTowards(PartyLeader);
     PartyLeader.BeginDialog(attachee, 1);
     ScriptDaemon.npc_set(attachee, 2);
     return;
 }
    public override bool OnJoin(GameObject attachee, GameObject triggerer)
    {
        if ((ScriptDaemon.npc_get(attachee, 1)))
        {
            ScriptDaemon.npc_set(attachee, 2);
        }

        return(RunDefault);
    }
    public override bool OnSpellCast(GameObject attachee, GameObject triggerer, SpellPacketBody spell)
    {
        if ((spell.spellEnum == WellKnownSpells.CharmPersonOrAnimal || spell.spellEnum == WellKnownSpells.CharmMonster))
        {
            ScriptDaemon.npc_set(attachee, 1);
        }

        return(RunDefault);
    }
Пример #5
0
    public void ApplySideEffect(GameObject npc, GameObject pc, int lineNumber, out string originalScript)
    {
        switch (lineNumber)
        {
        case 11:
        case 15:
        case 32:
        case 42:
            originalScript = "npc.attack( pc )";
            npc.Attack(pc);
            break;

        case 61:
            originalScript = "npc_set(npc,1)";
            ScriptDaemon.npc_set(npc, 1);
            break;

        case 62:
            originalScript = "npc_set(npc,2)";
            ScriptDaemon.npc_set(npc, 2);
            break;

        case 63:
            originalScript = "npc_set(npc,3)";
            ScriptDaemon.npc_set(npc, 3);
            break;

        case 64:
            originalScript = "npc_set(npc,4)";
            ScriptDaemon.npc_set(npc, 4);
            break;

        case 72:
            originalScript = "npc_set(npc,5)";
            ScriptDaemon.npc_set(npc, 5);
            break;

        case 73:
            originalScript = "npc_set(npc,6)";
            ScriptDaemon.npc_set(npc, 6);
            break;

        case 74:
            originalScript = "npc_set(npc,7)";
            ScriptDaemon.npc_set(npc, 7);
            break;

        case 75:
            originalScript = "npc_set(npc,8)";
            ScriptDaemon.npc_set(npc, 8);
            break;

        default:
            originalScript = null;
            return;
        }
    }
    public void ApplySideEffect(GameObject npc, GameObject pc, int lineNumber, out string originalScript)
    {
        switch (lineNumber)
        {
        case 1:
        case 100:
            originalScript = "game.sound( 4011 )";
            Sound(4011);
            break;

        case 2:
            originalScript = "npc_set(npc, 1); give_default_starting_equipment(1)";
            ScriptDaemon.npc_set(npc, 1);
            give_default_starting_equipment(1);
            ;
            break;

        case 4:
        case 24:
        case 43:
        case 62:
        case 72:
        case 104:
            originalScript = "game.sound( 4010 )";
            Sound(4010);
            break;

        case 21:
        case 61:
        case 71:
        case 101:
            originalScript = "defalt_equipment_autoequip()";
            defalt_equipment_autoequip();
            break;

        case 22:
        case 41:
        case 102:
            originalScript = "pc.money_adj(50000 - pc.money_get() ); npc_set(npc, 2)";
            pc.AdjustMoney(50000 - pc.GetMoney());
            ScriptDaemon.npc_set(npc, 2);
            ;
            break;

        case 6000:
            originalScript = "npc_set(npc, 1); give_default_starting_equipment(2)";
            ScriptDaemon.npc_set(npc, 1);
            give_default_starting_equipment(2);
            ;
            break;

        default:
            originalScript = null;
            return;
        }
    }
    public static void modify_CR(GameObject attachee, int party_av_level)
    {
        ScriptDaemon.npc_set(attachee, 31);
        if (party_av_level == -1)
        {
            party_av_level = get_av_level();
        }

        attachee.SetInt(obj_f.npc_challenge_rating, CR_mod_new(attachee, party_av_level));
    }
Пример #8
0
    public override bool OnFirstHeartbeat(GameObject attachee, GameObject triggerer)
    {
        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 and co
        {
            attachee.ClearObjectFlag(ObjectFlag.OFF);
            if ((!ScriptDaemon.npc_get(attachee, 4)))
            {
                Sound(4183, 1);
                ScriptDaemon.npc_set(attachee, 4);
            }
        }

        return(RunDefault);
    }
Пример #9
0
    public void ApplySideEffect(GameObject npc, GameObject pc, int lineNumber, out string originalScript)
    {
        switch (lineNumber)
        {
        case 12:
        case 22:
            originalScript = "npc_set(npc,1)";
            ScriptDaemon.npc_set(npc, 1);
            break;

        default:
            originalScript = null;
            return;
        }
    }
Пример #10
0
    public override bool OnHeartbeat(GameObject attachee, GameObject triggerer)
    {
        if ((attachee.GetMap() == 5071))
        {
            if ((!ScriptDaemon.npc_get(attachee, 3)))
            {
                attachee.SetInt(obj_f.hp_damage, 50);
                StartTimer(2000, () => talk_talk(attachee, triggerer));
                ScriptDaemon.npc_set(attachee, 3);
            }

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

        return(RunDefault);
    }
Пример #11
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 ((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(983) == 1 && !ScriptDaemon.npc_get(attachee, 2)))
                        {
                            StartTimer(200, () => boonthag_exit(attachee, triggerer));
                            ScriptDaemon.npc_set(attachee, 2);
                        }
                    }
                }
            }

            if ((ScriptDaemon.npc_get(attachee, 3)))
            {
                attachee.SetObjectFlag(ObjectFlag.OFF);
            }
        }

        return(RunDefault);
    }
    public void ApplySideEffect(GameObject npc, GameObject pc, int lineNumber, out string originalScript)
    {
        switch (lineNumber)
        {
        case 7:
        case 46:
        case 55:
        case 65:
        case 73:
        case 83:
        case 93:
            originalScript = "game.quests[96].state = qs_accepted";
            SetQuestState(96, QuestState.Accepted);
            break;

        case 40:
            originalScript = "game.quests[96].state = qs_mentioned";
            SetQuestState(96, QuestState.Mentioned);
            break;

        case 41:
        case 61:
        case 71:
        case 81:
        case 91:
            originalScript = "npc_set(npc,1)";
            ScriptDaemon.npc_set(npc, 1);
            break;

        case 42:
        case 51:
        case 72:
        case 82:
        case 92:
            originalScript = "npc_set(npc,2)";
            ScriptDaemon.npc_set(npc, 2);
            break;

        case 43:
        case 52:
        case 62:
            originalScript = "npc_set(npc,3)";
            ScriptDaemon.npc_set(npc, 3);
            break;

        case 44:
        case 53:
        case 63:
            originalScript = "npc_set(npc,4)";
            ScriptDaemon.npc_set(npc, 4);
            break;

        case 45:
        case 54:
        case 64:
            originalScript = "npc_set(npc,5)";
            ScriptDaemon.npc_set(npc, 5);
            break;

        default:
            originalScript = null;
            return;
        }
    }
    public void ApplySideEffect(GameObject npc, GameObject pc, int lineNumber, out string originalScript)
    {
        switch (lineNumber)
        {
        case 21:
            originalScript = "npc_set(npc,1)";
            ScriptDaemon.npc_set(npc, 1);
            break;

        case 22:
            originalScript = "npc_set(npc,2)";
            ScriptDaemon.npc_set(npc, 2);
            break;

        case 24:
            originalScript = "game.global_vars[949] = 3";
            SetGlobalVar(949, 3);
            break;

        case 25:
            originalScript = "npc_set(npc,7)";
            ScriptDaemon.npc_set(npc, 7);
            break;

        case 26:
            originalScript = "npc_set(npc,3)";
            ScriptDaemon.npc_set(npc, 3);
            break;

        case 30:
            originalScript = "npc.spells_pending_to_memorized()";
            npc.PendingSpellsToMemorized();
            break;

        case 40:
            originalScript = "game.picker( npc, spell_raise_dead, should_resurrect_on, [ 140, 10, 130 ] )";
            // FIXME: picker;
            break;

        case 81:
            originalScript = "pc.money_adj(-100000)";
            pc.AdjustMoney(-100000);
            break;

        case 82:
            originalScript = "pc.money_adj(-200000)";
            pc.AdjustMoney(-200000);
            break;

        case 83:
            originalScript = "pc.money_adj(-300000)";
            pc.AdjustMoney(-300000);
            break;

        case 84:
            originalScript = "pc.money_adj(-400000)";
            pc.AdjustMoney(-400000);
            break;

        case 85:
            originalScript = "pc.money_adj(-500000)";
            pc.AdjustMoney(-500000);
            break;

        case 86:
            originalScript = "pc.money_adj(-600000)";
            pc.AdjustMoney(-600000);
            break;

        case 87:
            originalScript = "pc.money_adj(-700000)";
            pc.AdjustMoney(-700000);
            break;

        case 88:
            originalScript = "pc.money_adj(-800000)";
            pc.AdjustMoney(-800000);
            break;

        case 89:
            originalScript = "pc.money_adj(-900000)";
            pc.AdjustMoney(-900000);
            break;

        case 90:
            originalScript = "pc.money_adj(-1000000)";
            pc.AdjustMoney(-1000000);
            break;

        case 91:
            originalScript = "pc.money_adj(-1100000)";
            pc.AdjustMoney(-1100000);
            break;

        case 92:
            originalScript = "pc.money_adj(-1200000)";
            pc.AdjustMoney(-1200000);
            break;

        case 93:
            originalScript = "pc.money_adj(-1300000)";
            pc.AdjustMoney(-1300000);
            break;

        case 94:
            originalScript = "pc.money_adj(-1400000)";
            pc.AdjustMoney(-1400000);
            break;

        case 95:
            originalScript = "pc.money_adj(-1500000)";
            pc.AdjustMoney(-1500000);
            break;

        case 96:
            originalScript = "pc.money_adj(-1600000)";
            pc.AdjustMoney(-1600000);
            break;

        case 97:
            originalScript = "pc.money_adj(-1700000)";
            pc.AdjustMoney(-1700000);
            break;

        case 98:
            originalScript = "pc.money_adj(-1800000)";
            pc.AdjustMoney(-1800000);
            break;

        case 99:
            originalScript = "pc.money_adj(-1900000)";
            pc.AdjustMoney(-1900000);
            break;

        case 100:
            originalScript = "pc.money_adj(-2000000)";
            pc.AdjustMoney(-2000000);
            break;

        case 110:
            originalScript = "game.particles( 'cast-Transmutation-cast', npc ); pc.has_atoned()";
            AttachParticles("cast-Transmutation-cast", npc);
            pc.AtoneFallenPaladin();
            ;
            break;

        case 131:
            originalScript = "pc.money_adj(-500000); npc.cast_spell( spell_raise_dead, picker_obj )";
            pc.AdjustMoney(-500000);
            npc.CastSpell(WellKnownSpells.RaiseDead, PickedObject);
            ;
            break;

        case 160:
            originalScript = "npc_set(npc,8)";
            ScriptDaemon.npc_set(npc, 8);
            break;

        case 180:
            originalScript = "game.quests[85].state = qs_mentioned";
            SetQuestState(85, QuestState.Mentioned);
            break;

        case 210:
            originalScript = "game.quests[85].state = qs_accepted";
            SetQuestState(85, QuestState.Accepted);
            break;

        case 211:
            originalScript = "game.global_vars[949] = 1";
            SetGlobalVar(949, 1);
            break;

        case 220:
            originalScript = "game.quests[85].state = qs_completed";
            SetQuestState(85, QuestState.Completed);
            break;

        case 230:
            originalScript = "game.quests[86].state = qs_completed; game.party[0].reputation_add(47)";
            SetQuestState(86, QuestState.Completed);
            PartyLeader.AddReputation(47);
            ;
            break;

        case 231:
        case 232:
        case 233:
            originalScript = "game.global_vars[960] = 6";
            SetGlobalVar(960, 6);
            break;

        case 234:
        case 235:
        case 236:
            originalScript = "game.global_vars[960] = 6; game.quests[84].state = qs_botched";
            SetGlobalVar(960, 6);
            SetQuestState(84, QuestState.Botched);
            ;
            break;

        case 261:
            originalScript = "npc_set(npc,4)";
            ScriptDaemon.npc_set(npc, 4);
            break;

        case 262:
            originalScript = "npc_set(npc,5)";
            ScriptDaemon.npc_set(npc, 5);
            break;

        case 263:
            originalScript = "npc_set(npc,6)";
            ScriptDaemon.npc_set(npc, 6);
            break;

        case 301:
            originalScript = "npc_set(npc,9)";
            ScriptDaemon.npc_set(npc, 9);
            break;

        case 302:
            originalScript = "npc_set(npc,10)";
            ScriptDaemon.npc_set(npc, 10);
            break;

        case 303:
            originalScript = "npc_set(npc,11)";
            ScriptDaemon.npc_set(npc, 11);
            break;

        case 304:
            originalScript = "npc_set(npc,12)";
            ScriptDaemon.npc_set(npc, 12);
            break;

        case 312:
            originalScript = "npc_set(npc,13)";
            ScriptDaemon.npc_set(npc, 13);
            break;

        case 313:
            originalScript = "npc_set(npc,14)";
            ScriptDaemon.npc_set(npc, 14);
            break;

        case 314:
            originalScript = "npc_set(npc,15)";
            ScriptDaemon.npc_set(npc, 15);
            break;

        default:
            originalScript = null;
            return;
        }
    }
    public void ApplySideEffect(GameObject npc, GameObject pc, int lineNumber, out string originalScript)
    {
        switch (lineNumber)
        {
        case 1:
            originalScript = "game.global_flags[886] = 1";
            SetGlobalFlag(886, true);
            break;

        case 12:
        case 32:
        case 52:
        case 72:
        case 92:
        case 112:
        case 132:
        case 152:
        case 172:
        case 192:
        case 212:
        case 232:
        case 282:
        case 302:
        case 322:
            originalScript = "npc_set(npc,1)";
            ScriptDaemon.npc_set(npc, 1);
            break;

        case 13:
        case 33:
        case 53:
        case 73:
        case 93:
        case 113:
        case 133:
        case 153:
        case 173:
        case 193:
        case 213:
        case 233:
        case 283:
        case 303:
        case 323:
            originalScript = "npc_set(npc,2)";
            ScriptDaemon.npc_set(npc, 2);
            break;

        case 14:
        case 34:
        case 54:
        case 74:
        case 94:
        case 114:
        case 134:
        case 154:
        case 174:
        case 194:
        case 214:
        case 234:
        case 284:
        case 304:
        case 324:
            originalScript = "npc_set(npc,3)";
            ScriptDaemon.npc_set(npc, 3);
            break;

        case 15:
        case 35:
        case 55:
        case 75:
        case 95:
        case 115:
        case 135:
        case 155:
        case 175:
        case 195:
        case 215:
        case 235:
        case 285:
        case 305:
        case 325:
            originalScript = "npc_set(npc,4)";
            ScriptDaemon.npc_set(npc, 4);
            break;

        case 16:
        case 36:
        case 56:
        case 76:
        case 96:
        case 116:
        case 136:
        case 156:
        case 176:
        case 196:
        case 216:
        case 236:
        case 286:
        case 306:
        case 326:
            originalScript = "npc_set(npc,5)";
            ScriptDaemon.npc_set(npc, 5);
            break;

        case 17:
        case 37:
        case 57:
        case 77:
        case 97:
        case 117:
        case 137:
        case 157:
        case 177:
        case 197:
        case 217:
        case 237:
        case 287:
        case 307:
        case 327:
            originalScript = "npc_set(npc,6)";
            ScriptDaemon.npc_set(npc, 6);
            break;

        case 18:
        case 38:
        case 58:
        case 78:
        case 98:
        case 118:
        case 138:
        case 158:
        case 178:
        case 198:
        case 218:
        case 238:
        case 288:
        case 308:
        case 328:
            originalScript = "npc_set(npc,7)";
            ScriptDaemon.npc_set(npc, 7);
            break;

        case 19:
        case 39:
        case 59:
        case 79:
        case 99:
        case 119:
        case 139:
        case 159:
        case 179:
        case 199:
        case 219:
        case 239:
        case 289:
        case 309:
        case 329:
            originalScript = "npc_set(npc,8)";
            ScriptDaemon.npc_set(npc, 8);
            break;

        case 20:
        case 40:
        case 60:
        case 80:
        case 100:
        case 120:
        case 140:
        case 160:
        case 180:
        case 200:
        case 220:
        case 240:
        case 290:
        case 310:
        case 330:
            originalScript = "npc_set(npc,9)";
            ScriptDaemon.npc_set(npc, 9);
            break;

        case 21:
        case 41:
        case 61:
        case 81:
        case 101:
        case 121:
        case 141:
        case 161:
        case 181:
        case 201:
        case 221:
        case 241:
        case 291:
        case 311:
        case 331:
            originalScript = "npc_set(npc,10)";
            ScriptDaemon.npc_set(npc, 10);
            break;

        case 23:
        case 43:
        case 63:
        case 83:
        case 103:
        case 123:
        case 143:
        case 163:
        case 183:
        case 203:
        case 223:
        case 243:
        case 293:
        case 313:
        case 333:
            originalScript = "npc_set(npc,12)";
            ScriptDaemon.npc_set(npc, 12);
            break;

        case 24:
        case 44:
        case 64:
        case 84:
        case 104:
        case 124:
        case 144:
        case 164:
        case 184:
        case 204:
        case 224:
        case 244:
        case 294:
        case 314:
        case 334:
            originalScript = "npc_set(npc,13)";
            ScriptDaemon.npc_set(npc, 13);
            break;

        case 25:
        case 45:
        case 65:
        case 85:
        case 105:
        case 125:
        case 145:
        case 165:
        case 185:
        case 205:
        case 225:
        case 245:
        case 295:
        case 315:
        case 335:
            originalScript = "npc_set(npc,14)";
            ScriptDaemon.npc_set(npc, 14);
            break;

        case 190:
            originalScript = "game.quests[89].state = qs_completed";
            SetQuestState(89, QuestState.Completed);
            break;

        case 251:
            originalScript = "npc_set(npc,11)";
            ScriptDaemon.npc_set(npc, 11);
            break;

        case 252:
        case 261:
            originalScript = "pc.follower_add( npc )";
            pc.AddFollower(npc);
            break;

        case 270:
            originalScript = "pc.follower_remove( npc ); regenerate(npc,pc)";
            pc.RemoveFollower(npc);
            // TODO regenerate(npc, pc);
            break;

        case 341:
            originalScript = "game.fade_and_teleport(0,0,0,5142,386,380)";
            FadeAndTeleport(0, 0, 0, 5142, 386, 380);
            break;

        case 521:
            originalScript = "npc_set(npc,21)";
            ScriptDaemon.npc_set(npc, 21);
            break;

        case 522:
            originalScript = "npc_set(npc,15)";
            ScriptDaemon.npc_set(npc, 15);
            break;

        case 523:
            originalScript = "npc_set(npc,16)";
            ScriptDaemon.npc_set(npc, 16);
            break;

        case 524:
            originalScript = "npc_set(npc,17)";
            ScriptDaemon.npc_set(npc, 17);
            break;

        case 532:
            originalScript = "npc_set(npc,18)";
            ScriptDaemon.npc_set(npc, 18);
            break;

        case 533:
            originalScript = "npc_set(npc,19)";
            ScriptDaemon.npc_set(npc, 19);
            break;

        case 534:
            originalScript = "npc_set(npc,20)";
            ScriptDaemon.npc_set(npc, 20);
            break;

        case 541:
            originalScript = "pc.money_adj(-1000000)";
            pc.AdjustMoney(-1000000);
            break;

        case 551:
        case 1631:
            originalScript = "pc.money_adj(-400000)";
            pc.AdjustMoney(-400000);
            break;

        case 561:
            originalScript = "pc.money_adj(-800000)";
            pc.AdjustMoney(-800000);
            break;

        case 571:
        case 581:
        case 591:
            originalScript = "pc.money_adj(-600000)";
            pc.AdjustMoney(-600000);
            break;

        case 661:
        case 671:
        case 681:
        case 691:
        case 701:
        case 711:
        case 721:
        case 731:
        case 741:
        case 751:
        case 761:
        case 771:
        case 781:
        case 791:
        case 801:
        case 811:
        case 821:
        case 831:
        case 841:
        case 851:
        case 861:
        case 871:
        case 881:
        case 891:
        case 901:
        case 911:
        case 921:
        case 931:
        case 941:
        case 951:
        case 961:
        case 971:
        case 981:
        case 991:
        case 1001:
        case 1011:
        case 1021:
        case 1031:
        case 1041:
        case 1051:
        case 1061:
        case 1071:
        case 1081:
        case 1091:
        case 1101:
        case 1621:
            originalScript = "pc.money_adj(-100000)";
            pc.AdjustMoney(-100000);
            break;

        case 1110:
            originalScript = "game.global_vars[101] = 2";
            SetGlobalVar(101, 2);
            break;

        case 1111:
        case 1112:
            originalScript = "create_item_in_inventory( 11011, pc )";
            Utilities.create_item_in_inventory(11011, pc);
            break;

        case 1120:
            originalScript = "game.global_vars[102] = 2";
            SetGlobalVar(102, 2);
            break;

        case 1121:
        case 1122:
            originalScript = "create_item_in_inventory( 11012, pc )";
            Utilities.create_item_in_inventory(11012, pc);
            break;

        case 1130:
            originalScript = "game.global_vars[103] = 2";
            SetGlobalVar(103, 2);
            break;

        case 1131:
        case 1132:
            originalScript = "create_item_in_inventory( 11013, pc )";
            Utilities.create_item_in_inventory(11013, pc);
            break;

        case 1140:
            originalScript = "game.global_vars[104] = 2";
            SetGlobalVar(104, 2);
            break;

        case 1141:
        case 1142:
            originalScript = "create_item_in_inventory( 11014, pc )";
            Utilities.create_item_in_inventory(11014, pc);
            break;

        case 1150:
            originalScript = "game.global_vars[105] = 2";
            SetGlobalVar(105, 2);
            break;

        case 1151:
        case 1152:
            originalScript = "create_item_in_inventory( 11015, pc )";
            Utilities.create_item_in_inventory(11015, pc);
            break;

        case 1160:
            originalScript = "game.global_vars[106] = 2";
            SetGlobalVar(106, 2);
            break;

        case 1161:
        case 1162:
            originalScript = "create_item_in_inventory( 11016, pc )";
            Utilities.create_item_in_inventory(11016, pc);
            break;

        case 1170:
            originalScript = "game.global_vars[107] = 2";
            SetGlobalVar(107, 2);
            break;

        case 1171:
        case 1172:
            originalScript = "create_item_in_inventory( 11017, pc )";
            Utilities.create_item_in_inventory(11017, pc);
            break;

        case 1180:
            originalScript = "game.global_vars[108] = 2";
            SetGlobalVar(108, 2);
            break;

        case 1181:
        case 1182:
            originalScript = "create_item_in_inventory( 11018, pc )";
            Utilities.create_item_in_inventory(11018, pc);
            break;

        case 1190:
            originalScript = "game.global_vars[109] = 2";
            SetGlobalVar(109, 2);
            break;

        case 1191:
        case 1192:
            originalScript = "create_item_in_inventory( 11019, pc )";
            Utilities.create_item_in_inventory(11019, pc);
            break;

        case 1200:
            originalScript = "game.global_vars[110] = 2";
            SetGlobalVar(110, 2);
            break;

        case 1201:
        case 1202:
            originalScript = "create_item_in_inventory( 11020, pc )";
            Utilities.create_item_in_inventory(11020, pc);
            break;

        case 1210:
            originalScript = "game.global_vars[111] = 2";
            SetGlobalVar(111, 2);
            break;

        case 1211:
        case 1212:
            originalScript = "create_item_in_inventory( 11021, pc )";
            Utilities.create_item_in_inventory(11021, pc);
            break;

        case 1220:
            originalScript = "game.global_vars[112] = 2";
            SetGlobalVar(112, 2);
            break;

        case 1221:
        case 1222:
            originalScript = "create_item_in_inventory( 11022, pc )";
            Utilities.create_item_in_inventory(11022, pc);
            break;

        case 1230:
            originalScript = "game.global_vars[113] = 2";
            SetGlobalVar(113, 2);
            break;

        case 1231:
        case 1232:
            originalScript = "create_item_in_inventory( 11023, pc )";
            Utilities.create_item_in_inventory(11023, pc);
            break;

        case 1240:
            originalScript = "game.global_vars[114] = 2";
            SetGlobalVar(114, 2);
            break;

        case 1241:
        case 1242:
            originalScript = "create_item_in_inventory( 11024, pc )";
            Utilities.create_item_in_inventory(11024, pc);
            break;

        case 1250:
            originalScript = "game.global_vars[115] = 2";
            SetGlobalVar(115, 2);
            break;

        case 1251:
        case 1252:
            originalScript = "create_item_in_inventory( 11025, pc )";
            Utilities.create_item_in_inventory(11025, pc);
            break;

        case 1260:
            originalScript = "game.global_vars[116] = 2";
            SetGlobalVar(116, 2);
            break;

        case 1261:
        case 1262:
            originalScript = "create_item_in_inventory( 11026, pc )";
            Utilities.create_item_in_inventory(11026, pc);
            break;

        case 1270:
            originalScript = "game.global_vars[117] = 2";
            SetGlobalVar(117, 2);
            break;

        case 1271:
        case 1272:
            originalScript = "create_item_in_inventory( 11027, pc )";
            Utilities.create_item_in_inventory(11027, pc);
            break;

        case 1280:
            originalScript = "game.global_vars[118] = 2";
            SetGlobalVar(118, 2);
            break;

        case 1281:
        case 1282:
            originalScript = "create_item_in_inventory( 11028, pc )";
            Utilities.create_item_in_inventory(11028, pc);
            break;

        case 1290:
            originalScript = "game.global_vars[119] = 2";
            SetGlobalVar(119, 2);
            break;

        case 1291:
        case 1292:
            originalScript = "create_item_in_inventory( 11029, pc )";
            Utilities.create_item_in_inventory(11029, pc);
            break;

        case 1300:
            originalScript = "game.global_vars[120] = 2";
            SetGlobalVar(120, 2);
            break;

        case 1301:
        case 1302:
            originalScript = "create_item_in_inventory( 11030, pc )";
            Utilities.create_item_in_inventory(11030, pc);
            break;

        case 1310:
            originalScript = "game.global_vars[121] = 2";
            SetGlobalVar(121, 2);
            break;

        case 1311:
        case 1312:
            originalScript = "create_item_in_inventory( 11031, pc )";
            Utilities.create_item_in_inventory(11031, pc);
            break;

        case 1320:
            originalScript = "game.global_vars[122] = 2";
            SetGlobalVar(122, 2);
            break;

        case 1321:
        case 1322:
            originalScript = "create_item_in_inventory( 11032, pc )";
            Utilities.create_item_in_inventory(11032, pc);
            break;

        case 1330:
            originalScript = "game.global_vars[123] = 2";
            SetGlobalVar(123, 2);
            break;

        case 1331:
        case 1332:
            originalScript = "create_item_in_inventory( 11033, pc )";
            Utilities.create_item_in_inventory(11033, pc);
            break;

        case 1340:
            originalScript = "game.global_vars[124] = 2";
            SetGlobalVar(124, 2);
            break;

        case 1341:
        case 1342:
            originalScript = "create_item_in_inventory( 11034, pc )";
            Utilities.create_item_in_inventory(11034, pc);
            break;

        case 1350:
            originalScript = "game.global_vars[125] = 2";
            SetGlobalVar(125, 2);
            break;

        case 1351:
        case 1352:
            originalScript = "create_item_in_inventory( 11035, pc )";
            Utilities.create_item_in_inventory(11035, pc);
            break;

        case 1360:
            originalScript = "game.global_vars[126] = 2";
            SetGlobalVar(126, 2);
            break;

        case 1361:
        case 1362:
            originalScript = "create_item_in_inventory( 11036, pc )";
            Utilities.create_item_in_inventory(11036, pc);
            break;

        case 1370:
            originalScript = "game.global_vars[127] = 2";
            SetGlobalVar(127, 2);
            break;

        case 1371:
        case 1372:
            originalScript = "create_item_in_inventory( 11037, pc )";
            Utilities.create_item_in_inventory(11037, pc);
            break;

        case 1380:
            originalScript = "game.global_vars[128] = 2";
            SetGlobalVar(128, 2);
            break;

        case 1381:
        case 1382:
            originalScript = "create_item_in_inventory( 11038, pc )";
            Utilities.create_item_in_inventory(11038, pc);
            break;

        case 1390:
            originalScript = "game.global_vars[129] = 2";
            SetGlobalVar(129, 2);
            break;

        case 1391:
        case 1392:
            originalScript = "create_item_in_inventory( 11039, pc )";
            Utilities.create_item_in_inventory(11039, pc);
            break;

        case 1400:
            originalScript = "game.global_vars[130] = 2";
            SetGlobalVar(130, 2);
            break;

        case 1401:
        case 1402:
            originalScript = "create_item_in_inventory( 11040, pc )";
            Utilities.create_item_in_inventory(11040, pc);
            break;

        case 1410:
            originalScript = "game.global_vars[131] = 2";
            SetGlobalVar(131, 2);
            break;

        case 1411:
        case 1412:
            originalScript = "create_item_in_inventory( 11041, pc )";
            Utilities.create_item_in_inventory(11041, pc);
            break;

        case 1420:
            originalScript = "game.global_vars[132] = 2";
            SetGlobalVar(132, 2);
            break;

        case 1421:
        case 1422:
            originalScript = "create_item_in_inventory( 11042, pc )";
            Utilities.create_item_in_inventory(11042, pc);
            break;

        case 1430:
            originalScript = "game.global_vars[133] = 2";
            SetGlobalVar(133, 2);
            break;

        case 1431:
        case 1432:
            originalScript = "create_item_in_inventory( 11043, pc )";
            Utilities.create_item_in_inventory(11043, pc);
            break;

        case 1440:
            originalScript = "game.global_vars[134] = 2";
            SetGlobalVar(134, 2);
            break;

        case 1441:
        case 1442:
            originalScript = "create_item_in_inventory( 11044, pc )";
            Utilities.create_item_in_inventory(11044, pc);
            break;

        case 1450:
            originalScript = "game.global_vars[135] = 2";
            SetGlobalVar(135, 2);
            break;

        case 1451:
        case 1452:
            originalScript = "create_item_in_inventory( 11045, pc )";
            Utilities.create_item_in_inventory(11045, pc);
            break;

        case 1460:
            originalScript = "game.global_vars[136] = 2";
            SetGlobalVar(136, 2);
            break;

        case 1461:
        case 1462:
            originalScript = "create_item_in_inventory( 11046, pc )";
            Utilities.create_item_in_inventory(11046, pc);
            break;

        case 1470:
            originalScript = "game.global_vars[137] = 2";
            SetGlobalVar(137, 2);
            break;

        case 1471:
        case 1472:
            originalScript = "create_item_in_inventory( 11047, pc )";
            Utilities.create_item_in_inventory(11047, pc);
            break;

        case 1480:
            originalScript = "game.global_vars[138] = 2";
            SetGlobalVar(138, 2);
            break;

        case 1481:
        case 1482:
            originalScript = "create_item_in_inventory( 11048, pc )";
            Utilities.create_item_in_inventory(11048, pc);
            break;

        case 1490:
            originalScript = "game.global_vars[139] = 2";
            SetGlobalVar(139, 2);
            break;

        case 1491:
        case 1492:
            originalScript = "create_item_in_inventory( 11049, pc )";
            Utilities.create_item_in_inventory(11049, pc);
            break;

        case 1500:
            originalScript = "game.global_vars[140] = 2";
            SetGlobalVar(140, 2);
            break;

        case 1501:
        case 1502:
            originalScript = "create_item_in_inventory( 11051, pc )";
            Utilities.create_item_in_inventory(11051, pc);
            break;

        case 1510:
            originalScript = "game.global_vars[141] = 2";
            SetGlobalVar(141, 2);
            break;

        case 1511:
        case 1512:
            originalScript = "create_item_in_inventory( 11052, pc )";
            Utilities.create_item_in_inventory(11052, pc);
            break;

        case 1520:
            originalScript = "game.global_vars[142] = 2";
            SetGlobalVar(142, 2);
            break;

        case 1521:
        case 1522:
            originalScript = "create_item_in_inventory( 11054, pc )";
            Utilities.create_item_in_inventory(11054, pc);
            break;

        case 1530:
            originalScript = "game.global_vars[143] = 2";
            SetGlobalVar(143, 2);
            break;

        case 1531:
        case 1532:
            originalScript = "create_item_in_inventory( 11055, pc )";
            Utilities.create_item_in_inventory(11055, pc);
            break;

        case 1540:
            originalScript = "game.global_vars[144] = 2";
            SetGlobalVar(144, 2);
            break;

        case 1541:
        case 1542:
            originalScript = "create_item_in_inventory( 11056, pc )";
            Utilities.create_item_in_inventory(11056, pc);
            break;

        case 1550:
            originalScript = "game.global_vars[145] = 2";
            SetGlobalVar(145, 2);
            break;

        case 1551:
        case 1552:
            originalScript = "create_item_in_inventory( 11053, pc )";
            Utilities.create_item_in_inventory(11053, pc);
            break;

        case 1560:
            originalScript = "game.global_vars[146] = 2";
            SetGlobalVar(146, 2);
            break;

        case 1561:
        case 1562:
            originalScript = "create_item_in_inventory( 11057, pc )";
            Utilities.create_item_in_inventory(11057, pc);
            break;

        default:
            originalScript = null;
            return;
        }
    }
Пример #15
0
 public static bool krunch_off(GameObject attachee, GameObject triggerer)
 {
     attachee.SetObjectFlag(ObjectFlag.OFF);
     ScriptDaemon.npc_set(attachee, 3);
     return(RunDefault);
 }
Пример #16
0
    public void ApplySideEffect(GameObject npc, GameObject pc, int lineNumber, out string originalScript)
    {
        switch (lineNumber)
        {
        case 80:
            originalScript = "game.areas[4] = 1; game.story_state = 4";
            MakeAreaKnown(4);
            StoryState = 4;
            ;
            break;

        case 151:
            originalScript = "buttin(npc,pc,450)";
            buttin(npc, pc, 450);
            break;

        case 170:
            originalScript = "test_adding_two_followers( pc, npc )";
            test_adding_two_followers(pc, npc);
            break;

        case 180:
            originalScript = "game.global_vars[126] = 1";
            SetGlobalVar(126, 1);
            break;

        case 186:
        case 187:
        case 195:
        case 196:
        case 396:
        case 397:
            originalScript = "buttin(npc,pc,460)";
            buttin(npc, pc, 460);
            break;

        case 220:
            originalScript = "game.global_flags[306] = 1; game.global_vars[126] = 1";
            SetGlobalFlag(306, true);
            SetGlobalVar(126, 1);
            ;
            break;

        case 260:
            originalScript = "game.global_flags[100] = 1; npc_set(npc, 2); pc.follower_add(npc)";
            SetGlobalFlag(100, true);
            ScriptDaemon.npc_set(npc, 2);
            pc.AddFollower(npc);
            ;
            break;

        case 383:
        case 384:
            originalScript = "npc.attack( pc )";
            npc.Attack(pc);
            break;

        case 390:
            originalScript = "game.global_vars[126] = 1; test_adding_two_followers( pc, npc )";
            SetGlobalVar(126, 1);
            test_adding_two_followers(pc, npc);
            ;
            break;

        case 401:
            originalScript = "pc.follower_remove(npc)";
            pc.RemoveFollower(npc);
            break;

        case 501:
            originalScript = "pc.money_adj(-1500000)";
            pc.AdjustMoney(-1500000);
            break;

        case 511:
        case 512:
            originalScript = "create_item_in_inventory(6325,pc)";
            Utilities.create_item_in_inventory(6325, pc);
            break;

        case 22000:
            originalScript = "game.global_vars[905] = 32";
            SetGlobalVar(905, 32);
            break;

        default:
            originalScript = null;
            return;
        }
    }
Пример #17
0
    public void ApplySideEffect(GameObject npc, GameObject pc, int lineNumber, out string originalScript)
    {
        switch (lineNumber)
        {
        case 1:
            originalScript = "game.global_vars[501] = 2; game.quests[107].state = qs_completed";
            SetGlobalVar(501, 2);
            SetQuestState(107, QuestState.Completed);
            ;
            break;

        case 71:
        case 81:
        case 91:
        case 101:
        case 111:
        case 1131:
            originalScript = "npc_set(npc,1)";
            ScriptDaemon.npc_set(npc, 1);
            break;

        case 72:
        case 82:
        case 92:
        case 102:
        case 112:
        case 1132:
            originalScript = "npc_set(npc,2)";
            ScriptDaemon.npc_set(npc, 2);
            break;

        case 73:
        case 83:
        case 93:
        case 103:
        case 113:
        case 1133:
            originalScript = "npc_set(npc,5)";
            ScriptDaemon.npc_set(npc, 5);
            break;

        case 74:
        case 84:
        case 94:
        case 104:
        case 114:
        case 1134:
            originalScript = "npc_set(npc,4)";
            ScriptDaemon.npc_set(npc, 4);
            break;

        case 130:
            originalScript = "check_back(npc,pc)";
            check_back(npc, pc);
            break;

        case 161:
            originalScript = "switch_to_old_man( npc, pc, 1)";
            switch_to_old_man(npc, pc, 1);
            break;

        case 170:
        case 320:
            originalScript = "game.global_vars[501] = 4";
            SetGlobalVar(501, 4);
            break;

        case 171:
        case 321:
            originalScript = "switch_to_old_man( npc, pc, 50); start_alarm(npc,pc)";
            switch_to_old_man(npc, pc, 50);
            start_alarm(npc, pc);
            ;
            break;

        case 181:
            originalScript = "switch_to_old_man( npc, pc, 60)";
            switch_to_old_man(npc, pc, 60);
            break;

        case 200:
        case 1120:
            originalScript = "set_inside_limiter(npc,pc)";
            set_inside_limiter(npc, pc);
            break;

        case 271:
            originalScript = "hextor_movie_setup(npc,pc)";
            hextor_movie_setup(npc, pc);
            break;

        case 280:
            originalScript = "game.quests[97].state = qs_mentioned";
            SetQuestState(97, QuestState.Mentioned);
            break;

        case 311:
            originalScript = "switch_to_old_man( npc, pc, 70)";
            switch_to_old_man(npc, pc, 70);
            break;

        case 871:
        case 1136:
        case 1193:
        case 1203:
        case 1213:
        case 1223:
        case 1233:
            originalScript = "game.quests[97].state = qs_accepted";
            SetQuestState(97, QuestState.Accepted);
            break;

        case 881:
            originalScript = "game.global_vars[510] = 1";
            SetGlobalVar(510, 1);
            break;

        case 891:
            originalScript = "game.quests[97].state = qs_accepted; game.global_vars[510] = 0";
            SetQuestState(97, QuestState.Accepted);
            SetGlobalVar(510, 0);
            ;
            break;

        case 910:
        case 920:
            originalScript = "game.global_vars[501] = 8";
            SetGlobalVar(501, 8);
            break;

        case 911:
            originalScript = "pc.follower_remove( npc )";
            pc.RemoveFollower(npc);
            break;

        case 930:
            originalScript = "very_bad_things(npc,pc)";
            very_bad_things(npc, pc);
            break;

        case 932:
        case 941:
            originalScript = "npc.runoff(npc.location-3)";
            npc.RunOff();
            break;

        case 951:
            originalScript = "create_item_in_inventory(4252,pc)";
            Utilities.create_item_in_inventory(4252, pc);
            break;

        case 952:
            originalScript = "create_item_in_inventory(4253,pc)";
            Utilities.create_item_in_inventory(4253, pc);
            break;

        case 953:
            originalScript = "create_item_in_inventory(4254,pc)";
            Utilities.create_item_in_inventory(4254, pc);
            break;

        case 954:
            originalScript = "create_item_in_inventory(4255,pc)";
            Utilities.create_item_in_inventory(4255, pc);
            break;

        case 962:
            originalScript = "create_item_in_inventory(4256,pc)";
            Utilities.create_item_in_inventory(4256, pc);
            break;

        case 963:
            originalScript = "create_item_in_inventory(4257,pc)";
            Utilities.create_item_in_inventory(4257, pc);
            break;

        case 964:
            originalScript = "create_item_in_inventory(4258,pc)";
            Utilities.create_item_in_inventory(4258, pc);
            break;

        case 965:
            originalScript = "create_item_in_inventory(4259,pc)";
            Utilities.create_item_in_inventory(4259, pc);
            break;

        case 970:
            originalScript = "game.global_flags[505] = 1";
            SetGlobalFlag(505, true);
            break;

        case 980:
            originalScript = "game.quests[101].state = qs_mentioned";
            SetQuestState(101, QuestState.Mentioned);
            break;

        case 981:
            originalScript = "pc.money_adj(100000)";
            pc.AdjustMoney(100000);
            break;

        case 982:
            originalScript = "game.quests[101].state = qs_accepted";
            SetQuestState(101, QuestState.Accepted);
            break;

        case 991:
            originalScript = "game.global_vars[506] = 2";
            SetGlobalVar(506, 2);
            break;

        case 1001:
            originalScript = "game.global_vars[506] = 1";
            SetGlobalVar(506, 1);
            break;

        case 1121:
        case 1141:
            originalScript = "pc.follower_add(npc)";
            pc.AddFollower(npc);
            break;

        case 1135:
        case 1192:
        case 1202:
        case 1212:
        case 1222:
        case 1232:
            originalScript = "npc_set(npc,6)";
            ScriptDaemon.npc_set(npc, 6);
            break;

        case 1153:
        case 1161:
        case 1171:
        case 1183:
            originalScript = "npc.attack( pc )";
            npc.Attack(pc);
            break;

        default:
            originalScript = null;
            return;
        }
    }
    public void ApplySideEffect(GameObject npc, GameObject pc, int lineNumber, out string originalScript)
    {
        switch (lineNumber)
        {
        case 35:
            originalScript = "npc_set(npc,19)";
            ScriptDaemon.npc_set(npc, 19);
            break;

        case 36:
            originalScript = "npc_set(npc,20)";
            ScriptDaemon.npc_set(npc, 20);
            break;

        case 37:
            originalScript = "npc_set(npc,21)";
            ScriptDaemon.npc_set(npc, 21);
            break;

        case 38:
            originalScript = "npc_set(npc,22)";
            ScriptDaemon.npc_set(npc, 22);
            break;

        case 90:
            originalScript = "game.global_vars[964] = 1";
            SetGlobalVar(964, 1);
            break;

        case 91:
        case 111:
        case 121:
        case 201:
            originalScript = "npc_set(npc,1)";
            ScriptDaemon.npc_set(npc, 1);
            break;

        case 92:
        case 101:
        case 122:
        case 202:
            originalScript = "npc_set(npc,2)";
            ScriptDaemon.npc_set(npc, 2);
            break;

        case 93:
        case 102:
        case 112:
        case 203:
            originalScript = "npc_set(npc,3)";
            ScriptDaemon.npc_set(npc, 3);
            break;

        case 100:
            originalScript = "game.quests[79].state = qs_mentioned";
            SetQuestState(79, QuestState.Mentioned);
            break;

        case 110:
            originalScript = "game.quests[80].state = qs_mentioned";
            SetQuestState(80, QuestState.Mentioned);
            break;

        case 120:
            originalScript = "game.quests[81].state = qs_mentioned";
            SetQuestState(81, QuestState.Mentioned);
            break;

        case 140:
            originalScript = "game.quests[79].state = qs_accepted";
            SetQuestState(79, QuestState.Accepted);
            break;

        case 150:
            originalScript = "game.quests[80].state = qs_accepted";
            SetQuestState(80, QuestState.Accepted);
            break;

        case 160:
            originalScript = "game.quests[81].state = qs_accepted";
            SetQuestState(81, QuestState.Accepted);
            break;

        case 180:
            originalScript = "game.global_vars[964] = game.global_vars[964] + 1";
            SetGlobalVar(964, GetGlobalVar(964) + 1);
            break;

        case 181:
        case 331:
            originalScript = "pc.money_adj(30000); game.quests[79].state = qs_completed";
            pc.AdjustMoney(30000);
            SetQuestState(79, QuestState.Completed);
            ;
            break;

        case 182:
        case 341:
            originalScript = "pc.money_adj(50000); game.quests[80].state = qs_completed";
            pc.AdjustMoney(50000);
            SetQuestState(80, QuestState.Completed);
            ;
            break;

        case 183:
        case 351:
            originalScript = "pc.money_adj(40000); game.quests[81].state = qs_completed";
            pc.AdjustMoney(40000);
            SetQuestState(81, QuestState.Completed);
            ;
            break;

        case 190:
        case 260:
            originalScript = "game.global_vars[964] = 5";
            SetGlobalVar(964, 5);
            break;

        case 230:
            originalScript = "game.global_vars[969] = 1";
            SetGlobalVar(969, 1);
            break;

        case 232:
            originalScript = "npc.attack(pc)";
            npc.Attack(pc);
            break;

        case 240:
            originalScript = "game.global_vars[969] = 2";
            SetGlobalVar(969, 2);
            break;

        case 241:
            originalScript = "game.fade_and_teleport(0,0,0,5172,471,489)";
            FadeAndTeleport(0, 0, 0, 5172, 471, 489);
            break;

        case 250:
            originalScript = "game.global_vars[962] = 2";
            SetGlobalVar(962, 2);
            break;

        case 290:
        case 300:
            originalScript = "game.quests[79].state = qs_completed; game.quests[80].state = qs_completed; game.quests[81].state = qs_completed";
            SetQuestState(79, QuestState.Completed);
            SetQuestState(80, QuestState.Completed);
            SetQuestState(81, QuestState.Completed);
            ;
            break;

        case 291:
            originalScript = "pc.money_adj(120000)";
            pc.AdjustMoney(120000);
            break;

        case 330:
            originalScript = "game.global_vars[951] = 3";
            SetGlobalVar(951, 3);
            break;

        case 340:
            originalScript = "game.global_vars[952] = 3";
            SetGlobalVar(952, 3);
            break;

        case 350:
            originalScript = "game.global_vars[953] = 3";
            SetGlobalVar(953, 3);
            break;

        case 361:
            originalScript = "npc_set(npc,7)";
            ScriptDaemon.npc_set(npc, 7);
            break;

        case 362:
            originalScript = "npc_set(npc,6)";
            ScriptDaemon.npc_set(npc, 6);
            break;

        case 363:
            originalScript = "npc_set(npc,5)";
            ScriptDaemon.npc_set(npc, 5);
            break;

        case 364:
            originalScript = "npc_set(npc,4)";
            ScriptDaemon.npc_set(npc, 4);
            break;

        case 365:
            originalScript = "npc_set(npc,10)";
            ScriptDaemon.npc_set(npc, 10);
            break;

        case 366:
            originalScript = "npc_set(npc,11)";
            ScriptDaemon.npc_set(npc, 11);
            break;

        case 402:
            originalScript = "npc_set(npc,8)";
            ScriptDaemon.npc_set(npc, 8);
            break;

        case 403:
            originalScript = "npc_set(npc,9)";
            ScriptDaemon.npc_set(npc, 9);
            break;

        case 410:
            originalScript = "game.global_vars[979] = 2";
            SetGlobalVar(979, 2);
            break;

        case 420:
            originalScript = "game.global_vars[946] = 1";
            SetGlobalVar(946, 1);
            break;

        case 421:
            originalScript = "game.fade_and_teleport(0,0,0,5170,476,483)";
            FadeAndTeleport(0, 0, 0, 5170, 476, 483);
            break;

        case 422:
            originalScript = "game.fade_and_teleport(0,0,0,5135,480,477)";
            FadeAndTeleport(0, 0, 0, 5135, 480, 477);
            break;

        case 440:
            originalScript = "game.global_flags[940] = 1";
            SetGlobalFlag(940, true);
            break;

        case 460:
            originalScript = "game.global_vars[946] = 2; record_time_stamp('achan_off_to_arrest')";
            SetGlobalVar(946, 2);
            ScriptDaemon.record_time_stamp("achan_off_to_arrest");
            ;
            break;

        case 461:
            originalScript = "switch_to_wilfrick( npc, pc, 980)";
            switch_to_wilfrick(npc, pc, 980);
            break;

        case 470:
            originalScript = "game.global_vars[944] = 3";
            SetGlobalVar(944, 3);
            break;

        case 471:
            originalScript = "run_off(npc,pc)";
            run_off(npc, pc);
            break;

        case 491:
            originalScript = "npc_set(npc,12)";
            ScriptDaemon.npc_set(npc, 12);
            break;

        case 492:
            originalScript = "npc_set(npc,13)";
            ScriptDaemon.npc_set(npc, 13);
            break;

        case 493:
            originalScript = "npc_set(npc,14)";
            ScriptDaemon.npc_set(npc, 14);
            break;

        case 494:
            originalScript = "npc_set(npc,15)";
            ScriptDaemon.npc_set(npc, 15);
            break;

        case 502:
            originalScript = "npc_set(npc,16)";
            ScriptDaemon.npc_set(npc, 16);
            break;

        case 503:
            originalScript = "npc_set(npc,17)";
            ScriptDaemon.npc_set(npc, 17);
            break;

        case 504:
            originalScript = "npc_set(npc,18)";
            ScriptDaemon.npc_set(npc, 18);
            break;

        default:
            originalScript = null;
            return;
        }
    }
    public void ApplySideEffect(GameObject npc, GameObject pc, int lineNumber, out string originalScript)
    {
        switch (lineNumber)
        {
        case 1:
            originalScript = "npc_set(npc,1)";
            ScriptDaemon.npc_set(npc, 1);
            break;

        case 6:
        case 15:
        case 25:
        case 35:
            originalScript = "switch_to_ariakas( npc, pc, 310)";
            switch_to_ariakas(npc, pc, 310);
            break;

        case 10:
            originalScript = "npc_set(npc,2)";
            ScriptDaemon.npc_set(npc, 2);
            break;

        case 20:
            originalScript = "npc_set(npc,3)";
            ScriptDaemon.npc_set(npc, 3);
            break;

        case 30:
            originalScript = "npc_set(npc,4)";
            ScriptDaemon.npc_set(npc, 4);
            break;

        case 40:
            originalScript = "npc_set(npc,5)";
            ScriptDaemon.npc_set(npc, 5);
            break;

        case 41:
            originalScript = "switch_to_ariakas( npc, pc, 170); shake(npc,pc)";
            switch_to_ariakas(npc, pc, 170);
            shake(npc, pc);
            ;
            break;

        case 51:
            originalScript = "switch_to_ariakas( npc, pc, 180)";
            switch_to_ariakas(npc, pc, 180);
            break;

        case 61:
            originalScript = "dump_old_man(npc,pc); switch_to_ariakas( npc, pc, 190)";
            dump_old_man(npc, pc);
            switch_to_ariakas(npc, pc, 190);
            ;
            break;

        case 71:
            originalScript = "switch_to_ariakas( npc, pc, 320); shake(npc,pc)";
            switch_to_ariakas(npc, pc, 320);
            shake(npc, pc);
            ;
            break;

        default:
            originalScript = null;
            return;
        }
    }
Пример #20
0
    public void ApplySideEffect(GameObject npc, GameObject pc, int lineNumber, out string originalScript)
    {
        switch (lineNumber)
        {
        case 3:
            originalScript = "npc_set(npc,2)";
            ScriptDaemon.npc_set(npc, 2);
            break;

        case 21:
        case 41:
            originalScript = "npc_set(npc,5)";
            ScriptDaemon.npc_set(npc, 5);
            break;

        case 22:
        case 31:
            originalScript = "npc_set(npc,4)";
            ScriptDaemon.npc_set(npc, 4);
            break;

        case 101:
            originalScript = "npc_set(npc,1)";
            ScriptDaemon.npc_set(npc, 1);
            break;

        case 103:
        case 104:
            originalScript = "party_transfer_to( npc, 12640 )";
            Utilities.party_transfer_to(npc, 12640);
            break;

        case 106:
        case 122:
        case 522:
            originalScript = "game.quests[98].state = qs_accepted";
            SetQuestState(98, QuestState.Accepted);
            break;

        case 500:
            originalScript = "game.quests[98].state = qs_mentioned";
            SetQuestState(98, QuestState.Mentioned);
            break;

        case 520:
            originalScript = "game.global_flags[508] = 1";
            SetGlobalFlag(508, true);
            break;

        case 531:
            originalScript = "game.areas[16] = 1";
            MakeAreaKnown(16);
            break;

        case 600:
        case 610:
            originalScript = "game.quests[98].state = qs_completed";
            SetQuestState(98, QuestState.Completed);
            break;

        case 601:
            originalScript = "game.global_vars[507] = 1; run_off( npc, pc )";
            SetGlobalVar(507, 1);
            // TODO: Original script had run_off here, Removed
            break;

        case 611:
            originalScript = "game.global_vars[507] = 2; run_off( npc, pc )";
            SetGlobalVar(507, 2);
            // TODO: Original script had run_off here, Removed
            break;

        default:
            originalScript = null;
            return;
        }
    }
    public void ApplySideEffect(GameObject npc, GameObject pc, int lineNumber, out string originalScript)
    {
        switch (lineNumber)
        {
        case 2:
            originalScript = "game.fade_and_teleport(300,0,0,5042,492,475)";
            FadeAndTeleport(300, 0, 0, 5042, 492, 475);
            break;

        case 3:
            originalScript = "tele2(pc,5001,515,461)";
            tele2(pc, 5001, 515, 461);
            break;

        case 4:
            originalScript = "tele2(pc,5001,575,441)";
            tele2(pc, 5001, 575, 441);
            break;

        case 5:
            originalScript = "tele2(pc,5001,537,389)";
            tele2(pc, 5001, 537, 389);
            break;

        case 12:
            originalScript = "game.fade_and_teleport(300,0,0,5012,492,485)";
            FadeAndTeleport(300, 0, 0, 5012, 492, 485);
            break;

        case 13:
            originalScript = "tele2(pc,5001,527,330)";
            tele2(pc, 5001, 527, 330);
            break;

        case 14:
            originalScript = "tele2(pc,5001,570,285)";
            tele2(pc, 5001, 570, 285);
            break;

        case 22:
            originalScript = "game.fade_and_teleport(300,0,0,5016,479,485)";
            FadeAndTeleport(300, 0, 0, 5016, 479, 485);
            break;

        case 23:
            originalScript = "tele2(pc,5001,438,699)";
            tele2(pc, 5001, 438, 699);
            break;

        case 24:
            originalScript = "tele2(pc,5001,414,537)";
            tele2(pc, 5001, 414, 537);
            break;

        case 32:
            originalScript = "tele2(pc,5001,764,434)";
            tele2(pc, 5001, 764, 434);
            break;

        case 33:
            originalScript = "tele2(pc,5001,728,392)";
            tele2(pc, 5001, 728, 392);
            break;

        case 34:
            originalScript = "tele2(pc,5001,706,505)";
            tele2(pc, 5001, 706, 505);
            break;

        case 42:
            originalScript = "tele2(pc,5001,645,329)";
            tele2(pc, 5001, 645, 329);
            break;

        case 43:
            originalScript = "tele2(pc,5001,451,334)";
            tele2(pc, 5001, 451, 334);
            break;

        case 44:
            originalScript = "tele2(pc,5001,442,398)";
            tele2(pc, 5001, 442, 398);
            break;

        case 201:
            originalScript = "tele2(pc,5051,479,471)";
            tele2(pc, 5051, 479, 471);
            break;

        case 202:
            originalScript = "tele2(pc,5051,383,484)";
            tele2(pc, 5051, 383, 484);
            break;

        case 203:
            originalScript = "tele2(pc,5051,495,518)";
            tele2(pc, 5051, 495, 518);
            break;

        case 204:
            originalScript = "tele2(pc,5051,488,577)";
            tele2(pc, 5051, 488, 577);
            break;

        case 212:
            originalScript = "tele2(pc,5051,560,470)";
            tele2(pc, 5051, 560, 470);
            break;

        case 213:
            originalScript = "tele2(pc,5051,398,521)";
            tele2(pc, 5051, 398, 521);
            break;

        case 214:
            originalScript = "tele2(pc,5051,556,545)";
            tele2(pc, 5051, 556, 545);
            break;

        case 402:
            originalScript = "game.fade_and_teleport(300,0,0,5169,490,501)";
            FadeAndTeleport(300, 0, 0, 5169, 490, 501);
            break;

        case 403:
            originalScript = "game.fade_and_teleport(300,0,0,5170,501,484)";
            FadeAndTeleport(300, 0, 0, 5170, 501, 484);
            break;

        case 404:
            originalScript = "tele2(pc,5121,140,525)";
            tele2(pc, 5121, 140, 525);
            break;

        case 412:
            originalScript = "tele2(pc,5121,680,455)";
            tele2(pc, 5121, 680, 455);
            break;

        case 413:
        case 434:
            originalScript = "tele2(pc,5121,254,577)";
            tele2(pc, 5121, 254, 577);
            break;

        case 414:
            originalScript = "tele2(pc,5121,459,728)";
            tele2(pc, 5121, 459, 728);
            break;

        case 422:
            originalScript = "tele2(pc,5121,491,211)";
            tele2(pc, 5121, 491, 211);
            break;

        case 423:
            originalScript = "tele2(pc,5121,485,376)";
            tele2(pc, 5121, 485, 376);
            break;

        case 424:
            originalScript = "tele2(pc,5121,579,309)";
            tele2(pc, 5121, 579, 309);
            break;

        case 432:
            originalScript = "tele2(pc,5121,533,560)";
            tele2(pc, 5121, 533, 560);
            break;

        case 433:
            originalScript = "tele2(pc,5121,306,489)";
            tele2(pc, 5121, 306, 489);
            break;

        case 442:
            originalScript = "tele2(pc,5121,449,562)";
            tele2(pc, 5121, 449, 562);
            break;

        case 443:
            originalScript = "tele2(pc,5121,413,295)";
            tele2(pc, 5121, 413, 295);
            break;

        case 444:
            originalScript = "tele2(pc,5121,448,653)";
            tele2(pc, 5121, 448, 653);
            break;

        case 452:
            originalScript = "tele2(pc,5121,570,388)";
            tele2(pc, 5121, 570, 388);
            break;

        case 453:
            originalScript = "tele2(pc,5121,487,404)";
            tele2(pc, 5121, 487, 404);
            break;

        case 454:
            originalScript = "tele2(pc,5121,410,382)";
            tele2(pc, 5121, 410, 382);
            break;

        case 462:
            originalScript = "tele2(pc,5121,310,449)";
            tele2(pc, 5121, 310, 449);
            break;

        case 463:
            originalScript = "tele2(pc,5121,513,626)";
            tele2(pc, 5121, 513, 626);
            break;

        case 464:
            originalScript = "tele2(pc,5121,614,589)";
            tele2(pc, 5121, 614, 589);
            break;

        case 472:
            originalScript = "create_item_in_inventory(11063,pc); npc_set(npc,1)";
            Utilities.create_item_in_inventory(11063, pc);
            ScriptDaemon.npc_set(npc, 1);
            ;
            break;

        case 473:
            originalScript = "create_item_in_inventory(11064,pc); npc_set(npc,2)";
            Utilities.create_item_in_inventory(11064, pc);
            ScriptDaemon.npc_set(npc, 2);
            ;
            break;

        case 474:
            originalScript = "create_item_in_inventory(11065,pc); npc_set(npc,3)";
            Utilities.create_item_in_inventory(11065, pc);
            ScriptDaemon.npc_set(npc, 3);
            ;
            break;

        case 475:
            originalScript = "create_item_in_inventory(11066,pc); npc_set(npc,4)";
            Utilities.create_item_in_inventory(11066, pc);
            ScriptDaemon.npc_set(npc, 4);
            ;
            break;

        case 476:
            originalScript = "create_item_in_inventory(11067,pc); npc_set(npc,5)";
            Utilities.create_item_in_inventory(11067, pc);
            ScriptDaemon.npc_set(npc, 5);
            ;
            break;

        case 477:
            originalScript = "create_item_in_inventory(11068,pc); npc_set(npc,6)";
            Utilities.create_item_in_inventory(11068, pc);
            ScriptDaemon.npc_set(npc, 6);
            ;
            break;

        case 478:
            originalScript = "create_item_in_inventory(11069,pc); game.global_flags[534] = 0";
            Utilities.create_item_in_inventory(11069, pc);
            SetGlobalFlag(534, false);
            ;
            break;

        case 479:
            originalScript = "create_item_in_inventory(11070,pc); npc_set(npc,7)";
            Utilities.create_item_in_inventory(11070, pc);
            ScriptDaemon.npc_set(npc, 7);
            ;
            break;

        case 480:
            originalScript = "create_item_in_inventory(11071,pc); npc_set(npc,8)";
            Utilities.create_item_in_inventory(11071, pc);
            ScriptDaemon.npc_set(npc, 8);
            ;
            break;

        case 481:
            originalScript = "create_item_in_inventory(11072,pc); npc_set(npc,9)";
            Utilities.create_item_in_inventory(11072, pc);
            ScriptDaemon.npc_set(npc, 9);
            ;
            break;

        case 482:
            originalScript = "create_item_in_inventory(11073,pc); npc_set(npc,10)";
            Utilities.create_item_in_inventory(11073, pc);
            ScriptDaemon.npc_set(npc, 10);
            ;
            break;

        case 483:
            originalScript = "create_item_in_inventory(11074,pc)";
            Utilities.create_item_in_inventory(11074, pc);
            break;

        case 1000:
        case 1200:
        case 1210:
            originalScript = "pc.scripts[9] = 0";
            pc.RemoveScript(ObjScriptEvent.Dialog);
            break;

        case 1014:
            originalScript = "game.fade_and_teleport(300,0,0,5079,488,503)";
            FadeAndTeleport(300, 0, 0, 5079, 488, 503);
            break;

        case 1022:
            originalScript = "game.fade_and_teleport(300,0,0,5064,489,567)";
            FadeAndTeleport(300, 0, 0, 5064, 489, 567);
            break;

        case 1023:
            originalScript = "game.fade_and_teleport(300,0,0,5111,494,544)";
            FadeAndTeleport(300, 0, 0, 5111, 494, 544);
            break;

        case 1024:
            originalScript = "game.fade_and_teleport(300,0,0,5065,486,494)";
            FadeAndTeleport(300, 0, 0, 5065, 486, 494);
            break;

        case 1026:
        case 1032:
            originalScript = "game.fade_and_teleport(300,0,0,5112,495,477)";
            FadeAndTeleport(300, 0, 0, 5112, 495, 477);
            break;

        case 1027:
        case 1033:
            originalScript = "game.fade_and_teleport(300,0,0,5092,469,480)";
            FadeAndTeleport(300, 0, 0, 5092, 469, 480);
            break;

        case 1028:
        case 1034:
            originalScript = "game.fade_and_teleport(300,0,0,5110,466,528)";
            FadeAndTeleport(300, 0, 0, 5110, 466, 528);
            break;

        case 1042:
            originalScript = "game.fade_and_teleport(300,0,0,5066,421,589)";
            FadeAndTeleport(300, 0, 0, 5066, 421, 589);
            break;

        case 1043:
            originalScript = "game.fade_and_teleport(300,0,0,5066,547,588)";
            FadeAndTeleport(300, 0, 0, 5066, 547, 588);
            break;

        case 1044:
            originalScript = "game.fade_and_teleport(300,0,0,5066,444,443)";
            FadeAndTeleport(300, 0, 0, 5066, 444, 443);
            break;

        case 1045:
            originalScript = "game.fade_and_teleport(300,0,0,5106,480,473)";
            FadeAndTeleport(300, 0, 0, 5106, 480, 473);
            break;

        case 1062:
            originalScript = "game.fade_and_teleport(300,0,0,5067,564,377)";
            FadeAndTeleport(300, 0, 0, 5067, 564, 377);
            break;

        case 1063:
            originalScript = "game.fade_and_teleport(300,0,0,5067,485,557)";
            FadeAndTeleport(300, 0, 0, 5067, 485, 557);
            break;

        case 1064:
            originalScript = "game.fade_and_teleport(300,0,0,5067,421,520)";
            FadeAndTeleport(300, 0, 0, 5067, 421, 520);
            break;

        case 1066:
        case 1072:
            originalScript = "game.fade_and_teleport(300,0,0,5067,529,540)";
            FadeAndTeleport(300, 0, 0, 5067, 529, 540);
            break;

        case 1067:
        case 1073:
            originalScript = "game.fade_and_teleport(300,0,0,5067,524,484)";
            FadeAndTeleport(300, 0, 0, 5067, 524, 484);
            break;

        case 1082:
            originalScript = "game.fade_and_teleport(300,0,0,5105,406,436)";
            FadeAndTeleport(300, 0, 0, 5105, 406, 436);
            break;

        case 1083:
            originalScript = "game.fade_and_teleport(300,0,0,5105,517,518)";
            FadeAndTeleport(300, 0, 0, 5105, 517, 518);
            break;

        case 1084:
            originalScript = "game.fade_and_teleport(300,0,0,5105,616,606)";
            FadeAndTeleport(300, 0, 0, 5105, 616, 606);
            break;

        case 1086:
        case 1092:
            originalScript = "game.fade_and_teleport(300,0,0,5105,639,445)";
            FadeAndTeleport(300, 0, 0, 5105, 639, 445);
            break;

        case 1087:
        case 1088:
        case 1093:
        case 1094:
            originalScript = "game.fade_and_teleport(300,0,0,5105,552,489)";
            FadeAndTeleport(300, 0, 0, 5105, 552, 489);
            break;

        case 1102:
            originalScript = "game.fade_and_teleport(300,0,0,5080,479,586)";
            FadeAndTeleport(300, 0, 0, 5080, 479, 586);
            break;

        case 1103:
            originalScript = "game.fade_and_teleport(300,0,0,5080,477,352)";
            FadeAndTeleport(300, 0, 0, 5080, 477, 352);
            break;

        case 1104:
            originalScript = "game.fade_and_teleport(300,0,0,5080,479,451)";
            FadeAndTeleport(300, 0, 0, 5080, 479, 451);
            break;

        case 1122:
            originalScript = "game.fade_and_teleport(300,0,0,5083,504,495)";
            FadeAndTeleport(300, 0, 0, 5083, 504, 495);
            break;

        case 1123:
            originalScript = "game.fade_and_teleport(300,0,0,5084,452,472)";
            FadeAndTeleport(300, 0, 0, 5084, 452, 472);
            break;

        case 1124:
            originalScript = "game.fade_and_teleport(300,0,0,5082,483,472)";
            FadeAndTeleport(300, 0, 0, 5082, 483, 472);
            break;

        case 1125:
            originalScript = "game.fade_and_teleport(300,0,0,5081,476,483)";
            FadeAndTeleport(300, 0, 0, 5081, 476, 483);
            break;

        case 3001:
            originalScript = "npc.destroy()";
            npc.Destroy();
            break;

        default:
            originalScript = null;
            return;
        }
    }
    public void ApplySideEffect(GameObject npc, GameObject pc, int lineNumber, out string originalScript)
    {
        switch (lineNumber)
        {
        case 10:
            originalScript = "game.global_flags[969] = 1";
            SetGlobalFlag(969, true);
            break;

        case 27:
            originalScript = "npc_set(npc,5)";
            ScriptDaemon.npc_set(npc, 5);
            break;

        case 50:
            originalScript = "game.quests[69].state = qs_completed";
            SetQuestState(69, QuestState.Completed);
            break;

        case 60:
        case 120:
            originalScript = "game.quests[69].state = qs_mentioned";
            SetQuestState(69, QuestState.Mentioned);
            break;

        case 70:
        case 150:
            originalScript = "game.global_flags[981] = 1";
            SetGlobalFlag(981, true);
            break;

        case 80:
            originalScript = "game.quests[69].state = qs_accepted";
            SetQuestState(69, QuestState.Accepted);
            break;

        case 130:
            originalScript = "npc.item_transfer_to(pc,4407); game.quests[69].state = qs_accepted";
            npc.TransferItemByNameTo(pc, 4407);
            SetQuestState(69, QuestState.Accepted);
            ;
            break;

        case 160:
        case 180:
            originalScript = "game.global_vars[977] = 1";
            SetGlobalVar(977, 1);
            break;

        case 191:
            originalScript = "npc_set(npc,1)";
            ScriptDaemon.npc_set(npc, 1);
            break;

        case 192:
            originalScript = "npc_set(npc,2)";
            ScriptDaemon.npc_set(npc, 2);
            break;

        case 193:
            originalScript = "npc_set(npc,3)";
            ScriptDaemon.npc_set(npc, 3);
            break;

        case 194:
            originalScript = "npc_set(npc,4)";
            ScriptDaemon.npc_set(npc, 4);
            break;

        case 240:
            originalScript = "game.global_vars[939] = 2; game.quests[108].state = qs_completed";
            SetGlobalVar(939, 2);
            SetQuestState(108, QuestState.Completed);
            ;
            break;

        case 311:
        case 350:
        case 361:
            originalScript = "game.quests[89].state = qs_accepted";
            SetQuestState(89, QuestState.Accepted);
            break;

        case 410:
            originalScript = "game.quests[89].state = qs_mentioned";
            SetQuestState(89, QuestState.Mentioned);
            break;

        default:
            originalScript = null;
            return;
        }
    }
Пример #23
0
    public void ApplySideEffect(GameObject npc, GameObject pc, int lineNumber, out string originalScript)
    {
        switch (lineNumber)
        {
        case 4:
        case 11:
        case 24:
        case 73:
        case 83:
        case 91:
        case 102:
        case 112:
        case 122:
        case 132:
        case 142:
        case 153:
        case 162:
        case 172:
        case 182:
        case 192:
        case 202:
        case 212:
        case 222:
        case 232:
            originalScript = "npc.attack( pc )";
            npc.Attack(pc);
            break;

        case 10:
        case 50:
        case 250:
            originalScript = "game.global_flags[530] = 1";
            SetGlobalFlag(530, true);
            break;

        case 42:
        case 51:
        case 242:
            originalScript = "npc_set(npc,1)";
            ScriptDaemon.npc_set(npc, 1);
            break;

        case 44:
        case 62:
            originalScript = "pc.follower_add( npc ); go_to_sleep(npc,pc); game.global_vars[551] = 1";
            pc.AddFollower(npc);
            go_to_sleep(npc, pc);
            SetGlobalVar(551, 1);
            ;
            break;

        case 61:
            originalScript = "go_to_sleep(npc,pc)";
            go_to_sleep(npc, pc);
            break;

        default:
            originalScript = null;
            return;
        }
    }
Пример #24
0
    public void ApplySideEffect(GameObject npc, GameObject pc, int lineNumber, out string originalScript)
    {
        switch (lineNumber)
        {
        case 6:
            originalScript = "game.quests[77].state = qs_botched";
            SetQuestState(77, QuestState.Botched);
            break;

        case 7:
            originalScript = "npc_set(npc,2)";
            ScriptDaemon.npc_set(npc, 2);
            break;

        case 10:
            originalScript = "game.global_flags[968] = 1";
            SetGlobalFlag(968, true);
            break;

        case 21:
        case 22:
        case 23:
            originalScript = "npc_set(npc,1)";
            ScriptDaemon.npc_set(npc, 1);
            break;

        case 24:
            originalScript = "game.global_vars[966] = 1";
            SetGlobalVar(966, 1);
            break;

        case 25:
        case 26:
        case 27:
            originalScript = "game.global_vars[978] = 6; game.global_vars[966] = 2";
            SetGlobalVar(978, 6);
            SetGlobalVar(966, 2);
            ;
            break;

        case 51:
            originalScript = "npc.attack( pc )";
            npc.Attack(pc);
            break;

        case 71:
        case 171:
            originalScript = "game.global_vars[978] = 1; npc_set(npc,2)";
            SetGlobalVar(978, 1);
            ScriptDaemon.npc_set(npc, 2);
            ;
            break;

        case 72:
        case 181:
            originalScript = "game.global_vars[978] = 1; npc_set(npc,3)";
            SetGlobalVar(978, 1);
            ScriptDaemon.npc_set(npc, 3);
            ;
            break;

        case 240:
            originalScript = "game.quests[68].state = qs_mentioned";
            SetQuestState(68, QuestState.Mentioned);
            break;

        case 361:
            originalScript = "npc_set(npc,4)";
            ScriptDaemon.npc_set(npc, 4);
            break;

        default:
            originalScript = null;
            return;
        }
    }
Пример #25
0
    public void ApplySideEffect(GameObject npc, GameObject pc, int lineNumber, out string originalScript)
    {
        switch (lineNumber)
        {
        case 15:
        case 25:
        case 32:
        case 41:
        case 42:
        case 52:
        case 101:
        case 113:
        case 121:
        case 143:
        case 163:
        case 171:
        case 182:
        case 187:
        case 196:
            originalScript = "switch_to_gatekeeper(pc, 1800)";
            Earthcombat.switch_to_gatekeeper(pc, 1800);
            break;

        case 31:
        case 45:
            originalScript = "npc_set(npc, 1)";
            ScriptDaemon.npc_set(npc, 1);
            break;

        case 43:
        case 44:
        case 112:
        case 162:
            originalScript = "npc.attack( pc )";
            npc.Attack(pc);
            break;

        case 51:
            originalScript = "npc_set(npc, 2)";
            ScriptDaemon.npc_set(npc, 2);
            break;

        case 111:
            originalScript = "npc_set(npc, 3)";
            ScriptDaemon.npc_set(npc, 3);
            break;

        case 141:
            originalScript = "npc_set(npc, 4)";
            ScriptDaemon.npc_set(npc, 4);
            break;

        case 142:
            originalScript = "npc_set(npc, 6)";
            ScriptDaemon.npc_set(npc, 6);
            break;

        case 161:
            originalScript = "npc_set(npc, 5)";
            ScriptDaemon.npc_set(npc, 5);
            break;

        case 181:
            originalScript = "npc_set(npc, 7)";
            ScriptDaemon.npc_set(npc, 7);
            break;

        default:
            originalScript = null;
            return;
        }
    }
Пример #26
0
    public void ApplySideEffect(GameObject npc, GameObject pc, int lineNumber, out string originalScript)
    {
        switch (lineNumber)
        {
        case 10:
            originalScript = "increment_var_536(npc,pc); gen_panathaes_loc(npc,pc); pick_kidnapper(npc,pc); gen_kids_loc(npc,pc)";
            increment_var_536(npc, pc);
            gen_panathaes_loc(npc, pc);
            pick_kidnapper(npc, pc);
            gen_kids_loc(npc, pc);
            ;
            break;

        case 11:
            originalScript = "npc_set(npc,1); check_for_locket(npc,pc)";
            ScriptDaemon.npc_set(npc, 1);
            check_for_locket(npc, pc);
            ;
            break;

        case 12:
            originalScript = "npc_set(npc,2); check_for_locket(npc,pc)";
            ScriptDaemon.npc_set(npc, 2);
            check_for_locket(npc, pc);
            ;
            break;

        case 13:
            originalScript = "npc_set(npc,3); check_for_locket(npc,pc)";
            ScriptDaemon.npc_set(npc, 3);
            check_for_locket(npc, pc);
            ;
            break;

        case 14:
            originalScript = "npc_set(npc,4); check_for_locket(npc,pc)";
            ScriptDaemon.npc_set(npc, 4);
            check_for_locket(npc, pc);
            ;
            break;

        case 22:
        case 42:
        case 52:
        case 62:
        case 82:
        case 92:
        case 102:
        case 112:
            originalScript = "npc_set(npc,2)";
            ScriptDaemon.npc_set(npc, 2);
            break;

        case 23:
        case 33:
        case 53:
        case 63:
        case 73:
        case 93:
        case 103:
        case 113:
        case 182:
            originalScript = "npc_set(npc,3)";
            ScriptDaemon.npc_set(npc, 3);
            break;

        case 24:
        case 34:
        case 44:
        case 64:
        case 74:
        case 84:
        case 114:
        case 183:
            originalScript = "npc_set(npc,4)";
            ScriptDaemon.npc_set(npc, 4);
            break;

        case 31:
        case 41:
        case 51:
        case 71:
        case 81:
        case 91:
        case 101:
        case 111:
        case 181:
        case 221:
            originalScript = "npc_set(npc,1)";
            ScriptDaemon.npc_set(npc, 1);
            break;

        case 121:
        case 141:
        case 161:
        case 171:
            originalScript = "npc_set(npc,5)";
            ScriptDaemon.npc_set(npc, 5);
            break;

        case 122:
        case 132:
        case 152:
        case 162:
        case 172:
            originalScript = "npc_set(npc,6)";
            ScriptDaemon.npc_set(npc, 6);
            break;

        case 123:
        case 133:
        case 143:
        case 153:
        case 173:
            originalScript = "npc_set(npc,7)";
            ScriptDaemon.npc_set(npc, 7);
            break;

        case 124:
        case 134:
        case 144:
        case 154:
        case 164:
            originalScript = "npc_set(npc,8)";
            ScriptDaemon.npc_set(npc, 8);
            break;

        case 125:
            originalScript = "npc_set(npc,9)";
            ScriptDaemon.npc_set(npc, 9);
            break;

        case 311:
            originalScript = "game.global_flags[542] = 1";
            SetGlobalFlag(542, true);
            break;

        case 312:
            originalScript = "game.global_vars[560] = 2";
            SetGlobalVar(560, 2);
            break;

        case 313:
            originalScript = "game.global_vars[560] = 1";
            SetGlobalVar(560, 1);
            break;

        case 320:
            originalScript = "increment_var_544(npc,pc); check_evidence_rep_bor(npc,pc)";
            increment_var_544(npc, pc);
            check_evidence_rep_bor(npc, pc);
            ;
            break;

        case 330:
            originalScript = "increment_var_543(npc,pc); increment_var_555(npc,pc); check_evidence_rep_pan(npc,pc)";
            increment_var_543(npc, pc);
            increment_var_555(npc, pc);
            check_evidence_rep_pan(npc, pc);
            ;
            break;

        case 340:
            originalScript = "increment_var_545(npc,pc); increment_var_557(npc,pc); check_evidence_rep_rak(npc,pc)";
            increment_var_545(npc, pc);
            increment_var_557(npc, pc);
            check_evidence_rep_rak(npc, pc);
            ;
            break;

        case 372:
        case 382:
        case 392:
        case 422:
            originalScript = "pc.follower_add( npc )";
            pc.AddFollower(npc);
            break;

        case 401:
            originalScript = "npc_set(npc,11)";
            ScriptDaemon.npc_set(npc, 11);
            break;

        case 410:
            originalScript = "game.global_flags[535] = 1";
            SetGlobalFlag(535, true);
            break;

        case 431:
        case 432:
        case 433:
            originalScript = "npc_set(npc,10)";
            ScriptDaemon.npc_set(npc, 10);
            break;

        case 440:
            originalScript = "game.global_vars[558] = 1";
            SetGlobalVar(558, 1);
            break;

        default:
            originalScript = null;
            return;
        }
    }
Пример #27
0
    public void ApplySideEffect(GameObject npc, GameObject pc, int lineNumber, out string originalScript)
    {
        switch (lineNumber)
        {
        case 10:
            originalScript = "game.global_flags[970] = 1";
            SetGlobalFlag(970, true);
            break;

        case 11:
        case 12:
        case 13:
        case 14:
        case 15:
        case 16:
        case 17:
        case 18:
        case 19:
            originalScript = "schedule_bandits_1(npc,pc)";
            schedule_bandits_1(npc, pc);
            break;

        case 23:
        case 81:
            originalScript = "game.quests[74].state = qs_accepted";
            SetQuestState(74, QuestState.Accepted);
            break;

        case 25:
        case 491:
        case 492:
        case 493:
            originalScript = "game.quests[78].state = qs_accepted";
            SetQuestState(78, QuestState.Accepted);
            break;

        case 26:
            originalScript = "game.global_vars[993] = 4";
            SetGlobalVar(993, 4);
            break;

        case 70:
            originalScript = "game.quests[74].state = qs_mentioned";
            SetQuestState(74, QuestState.Mentioned);
            break;

        case 80:
            originalScript = "game.global_flags[985] = 1";
            SetGlobalFlag(985, true);
            break;

        case 130:
            originalScript = "game.global_flags[986] = 1";
            SetGlobalFlag(986, true);
            break;

        case 141:
            originalScript = "npc_set(npc,4)";
            ScriptDaemon.npc_set(npc, 4);
            break;

        case 142:
            originalScript = "npc_set(npc,5)";
            ScriptDaemon.npc_set(npc, 5);
            break;

        case 162:
        case 163:
        case 172:
        case 173:
        case 253:
        case 941:
        case 942:
        case 981:
        case 982:
            originalScript = "game.global_flags[946] = 1";
            SetGlobalFlag(946, true);
            break;

        case 201:
        case 221:
            originalScript = "distribute_verbobonc_uniform(npc,pc); game.quests[76].state = qs_accepted; ditch_captains(npc,pc)";
            distribute_verbobonc_uniform(npc, pc);
            SetQuestState(76, QuestState.Accepted);
            ditch_captains(npc, pc);
            ;
            break;

        case 202:
        case 222:
            originalScript = "distribute_verbobonc_uniform(npc,pc); game.quests[76].state = qs_accepted; game.quests[77].state = qs_botched; ditch_captains(npc,pc)";
            distribute_verbobonc_uniform(npc, pc);
            SetQuestState(76, QuestState.Accepted);
            SetQuestState(77, QuestState.Botched);
            ditch_captains(npc, pc);
            ;
            break;

        case 211:
        case 231:
            originalScript = "game.quests[76].state = qs_accepted; ditch_captains(npc,pc)";
            SetQuestState(76, QuestState.Accepted);
            ditch_captains(npc, pc);
            ;
            break;

        case 212:
        case 232:
            originalScript = "game.quests[76].state = qs_mentioned";
            SetQuestState(76, QuestState.Mentioned);
            break;

        case 213:
        case 233:
            originalScript = "game.quests[76].state = qs_accepted; game.quests[77].state = qs_botched; ditch_captains(npc,pc)";
            SetQuestState(76, QuestState.Accepted);
            SetQuestState(77, QuestState.Botched);
            ditch_captains(npc, pc);
            ;
            break;

        case 214:
        case 234:
            originalScript = "game.quests[76].state = qs_mentioned; game.quests[77].state = qs_botched";
            SetQuestState(76, QuestState.Mentioned);
            SetQuestState(77, QuestState.Botched);
            ;
            break;

        case 241:
            originalScript = "game.quests[74].state = qs_completed";
            SetQuestState(74, QuestState.Completed);
            break;

        case 254:
            originalScript = "game.quests[76].state = qs_completed";
            SetQuestState(76, QuestState.Completed);
            break;

        case 301:
        case 311:
        case 321:
        case 332:
        case 342:
        case 353:
        case 362:
        case 391:
        case 412:
            originalScript = "game.quests[75].state = qs_botched";
            SetQuestState(75, QuestState.Botched);
            break;

        case 361:
            originalScript = "pc.money_adj(-50000); game.quests[75].state = qs_completed";
            pc.AdjustMoney(-50000);
            SetQuestState(75, QuestState.Completed);
            ;
            break;

        case 371:
        case 381:
            originalScript = "game.quests[75].state = qs_completed";
            SetQuestState(75, QuestState.Completed);
            break;

        case 430:
            originalScript = "game.quests[112].state = qs_completed";
            SetQuestState(112, QuestState.Completed);
            break;

        case 450:
            originalScript = "game.global_vars[993] = 1; game.quests[111].state = qs_completed";
            SetGlobalVar(993, 1);
            SetQuestState(111, QuestState.Completed);
            ;
            break;

        case 460:
            originalScript = "game.quests[78].state = qs_mentioned";
            SetQuestState(78, QuestState.Mentioned);
            break;

        case 500:
            originalScript = "game.global_vars[993] = 2";
            SetGlobalVar(993, 2);
            break;

        case 501:
            originalScript = "slavers_movie_setup(npc,pc)";
            slavers_movie_setup(npc, pc);
            break;

        case 630:
            originalScript = "game.global_vars[993] = 6";
            SetGlobalVar(993, 6);
            break;

        case 700:
            originalScript = "pc.money_adj(1000000); game.quests[78].state = qs_completed";
            pc.AdjustMoney(1000000);
            SetQuestState(78, QuestState.Completed);
            ;
            break;

        case 710:
            originalScript = "game.global_vars[993] = 10";
            SetGlobalVar(993, 10);
            break;

        case 750:
            originalScript = "game.party[0].reputation_add(39)";
            PartyLeader.AddReputation(39);
            break;

        case 780:
            originalScript = "pc.money_adj(750000); game.quests[78].state = qs_completed";
            pc.AdjustMoney(750000);
            SetQuestState(78, QuestState.Completed);
            ;
            break;

        case 790:
            originalScript = "pc.money_adj(500000); game.quests[78].state = qs_completed";
            pc.AdjustMoney(500000);
            SetQuestState(78, QuestState.Completed);
            ;
            break;

        case 800:
            originalScript = "pc.money_adj(250000); game.quests[78].state = qs_completed";
            pc.AdjustMoney(250000);
            SetQuestState(78, QuestState.Completed);
            ;
            break;

        case 810:
            originalScript = "game.quests[78].state = qs_completed";
            SetQuestState(78, QuestState.Completed);
            break;

        case 830:
            originalScript = "game.party[0].reputation_add(50)";
            PartyLeader.AddReputation(50);
            break;

        case 860:
        case 870:
            originalScript = "game.global_vars[997] = 4";
            SetGlobalVar(997, 4);
            break;

        case 900:
            originalScript = "game.quests[78].state = qs_botched";
            SetQuestState(78, QuestState.Botched);
            break;

        case 901:
            originalScript = "game.party[0].reputation_add(41)";
            PartyLeader.AddReputation(41);
            break;

        case 911:
        case 921:
        case 932:
            originalScript = "npc.attack( pc ); game.global_flags[863] = 1";
            npc.Attack(pc);
            SetGlobalFlag(863, true);
            ;
            break;

        case 943:
            originalScript = "npc_set(npc,1)";
            ScriptDaemon.npc_set(npc, 1);
            break;

        case 944:
            originalScript = "npc_set(npc,2)";
            ScriptDaemon.npc_set(npc, 2);
            break;

        case 945:
            originalScript = "npc_set(npc,3)";
            ScriptDaemon.npc_set(npc, 3);
            break;

        case 991:
            originalScript = "switch_to_captain( npc, pc, 280)";
            switch_to_captain(npc, pc, 280);
            break;

        case 992:
            originalScript = "switch_to_captain( npc, pc, 450)";
            switch_to_captain(npc, pc, 450);
            break;

        case 993:
            originalScript = "switch_to_captain( npc, pc, 470)";
            switch_to_captain(npc, pc, 470);
            break;

        case 1041:
            originalScript = "game.global_vars[501] = 1; game.quests[107].state = qs_accepted";
            SetGlobalVar(501, 1);
            SetQuestState(107, QuestState.Accepted);
            ;
            break;

        default:
            originalScript = null;
            return;
        }
    }
Пример #28
0
    public void ApplySideEffect(GameObject npc, GameObject pc, int lineNumber, out string originalScript)
    {
        switch (lineNumber)
        {
        case 1031:
        case 1036:
        case 1041:
            originalScript = "grate_away(npc)";
            grate_away(npc);
            break;

        case 1505:
            originalScript = "npc_set(npc, 1)";
            ScriptDaemon.npc_set(npc, 1);
            break;

        case 1507:
        case 1700:
        case 1720:
        case 2101:
            originalScript = "barrier_away(npc,1)";
            barrier_away(npc, 1);
            break;

        case 1536:
        case 1550:
            originalScript = "unequip(3, pc, 1); unequip(4, pc, 1)";
            Co8.unequip(EquipSlot.WeaponPrimary, pc, true);
            Co8.unequip(EquipSlot.WeaponSecondary, pc, true);
            break;

        case 1551:
            originalScript = "earth_temple_haul_inside(pc, npc, 1555)";
            earth_temple_haul_inside(pc, npc, 1555);
            break;

        case 1555:
        case 2020:
            originalScript = "game.sound( 4057, 1 )";
            Sound(4057, 1);
            break;

        case 1556:
            originalScript = "game.global_vars[454] |= 2**8";
            SetGlobalVar(454, GetGlobalVar(454) | 0x100);
            break;

        case 1561:
        case 1572:
        case 1802:
            originalScript = "switch_to_npc(pc, npc, 'romag',  failsafe_line = 2000)";
            switch_to_npc(pc, npc, "romag", failsafe_line: 2000);
            break;

        case 1562:
        case 1563:
        case 1564:
        case 1575:
        case 1576:
        case 1577:
        case 1805:
        case 1806:
        case 1807:
        case 1905:
        case 1906:
        case 1907:
            originalScript = "earth_attack_party(pc, npc)";
            earth_attack_party(pc, npc);
            break;

        case 1571:
        case 1801:
        case 1901:
        case 1903:
        case 1921:
        case 2001:
            originalScript = "move_party_inside(pc, npc, 2020, 454, 372)";
            move_party_inside(pc, npc, 2020, 454, 372);
            break;

        case 1573:
        case 1803:
            originalScript = "switch_to_npc(pc, npc, 'hartsch',  failsafe_line = 2000)";
            switch_to_npc(pc, npc, "hartsch", failsafe_line: 2000);
            break;

        case 1574:
        case 1804:
            originalScript = "switch_to_npc(pc, npc, 'earth troop commander',  failsafe_line = 2000)";
            switch_to_npc(pc, npc, "earth troop commander", failsafe_line: 2000);
            break;

        case 1701:
        case 1705:
            originalScript = "barrier_away(npc,2)";
            barrier_away(npc, 2);
            break;

        case 1706:
            originalScript = "barrier_away(npc,3)";
            barrier_away(npc, 3);
            break;

        case 1721:
        case 1725:
            originalScript = "barrier_away(npc,4)";
            barrier_away(npc, 4);
            break;

        default:
            originalScript = null;
            return;
        }
    }
Пример #29
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(558, 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(985) == 1 && !ScriptDaemon.npc_get(attachee, 2)))
                        {
                            StartTimer(200, () => krunch_exit(attachee, triggerer));
                            ScriptDaemon.npc_set(attachee, 2);
                        }

                        if (((GetGlobalFlag(555) || GetGlobalFlag(556)) && GetGlobalFlag(559)))
                        {
                            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);
    }
Пример #30
0
    public void ApplySideEffect(GameObject npc, GameObject pc, int lineNumber, out string originalScript)
    {
        switch (lineNumber)
        {
        case 11:
        case 21:
        case 41:
        case 61:
        case 71:
            originalScript = "npc_set(npc,1)";
            ScriptDaemon.npc_set(npc, 1);
            break;

        case 12:
        case 22:
        case 62:
        case 72:
        case 461:
            originalScript = "npc_set(npc,2)";
            ScriptDaemon.npc_set(npc, 2);
            break;

        case 13:
        case 14:
        case 23:
        case 24:
        case 42:
        case 43:
        case 462:
        case 463:
            originalScript = "npc_set(npc,3)";
            ScriptDaemon.npc_set(npc, 3);
            break;

        case 15:
        case 25:
        case 44:
        case 63:
        case 73:
        case 464:
            originalScript = "game.global_vars[977] = 2";
            SetGlobalVar(977, 2);
            break;

        case 28:
            originalScript = "npc_set(npc,18)";
            ScriptDaemon.npc_set(npc, 18);
            break;

        case 29:
            originalScript = "npc_set(npc,26)";
            ScriptDaemon.npc_set(npc, 26);
            break;

        case 30:
            originalScript = "npc_set(npc,27)";
            ScriptDaemon.npc_set(npc, 27);
            break;

        case 32:
            originalScript = "npc_set(npc,28)";
            ScriptDaemon.npc_set(npc, 28);
            break;

        case 130:
            originalScript = "game.global_vars[976] = 1";
            SetGlobalVar(976, 1);
            break;

        case 150:
            originalScript = "game.global_vars[976] = 2";
            SetGlobalVar(976, 2);
            break;

        case 180:
            originalScript = "game.global_vars[969] = 1";
            SetGlobalVar(969, 1);
            break;

        case 182:
        case 232:
            originalScript = "npc.attack(pc)";
            npc.Attack(pc);
            break;

        case 190:
            originalScript = "game.global_vars[969] = 2";
            SetGlobalVar(969, 2);
            break;

        case 191:
            originalScript = "game.fade_and_teleport(0,0,0,5172,471,489)";
            FadeAndTeleport(0, 0, 0, 5172, 471, 489);
            break;

        case 251:
            originalScript = "npc_set(npc,4)";
            ScriptDaemon.npc_set(npc, 4);
            break;

        case 252:
            originalScript = "npc_set(npc,5)";
            ScriptDaemon.npc_set(npc, 5);
            break;

        case 253:
            originalScript = "npc_set(npc,6)";
            ScriptDaemon.npc_set(npc, 6);
            break;

        case 254:
            originalScript = "npc_set(npc,7)";
            ScriptDaemon.npc_set(npc, 7);
            break;

        case 255:
        case 282:
            originalScript = "npc_set(npc,10)";
            ScriptDaemon.npc_set(npc, 10);
            break;

        case 256:
        case 283:
            originalScript = "npc_set(npc,11)";
            ScriptDaemon.npc_set(npc, 11);
            break;

        case 257:
            originalScript = "npc_set(npc,14)";
            ScriptDaemon.npc_set(npc, 14);
            break;

        case 258:
            originalScript = "npc_set(npc,15)";
            ScriptDaemon.npc_set(npc, 15);
            break;

        case 259:
            originalScript = "npc_set(npc,16)";
            ScriptDaemon.npc_set(npc, 16);
            break;

        case 260:
            originalScript = "npc_set(npc,17)";
            ScriptDaemon.npc_set(npc, 17);
            break;

        case 292:
            originalScript = "npc_set(npc,12)";
            ScriptDaemon.npc_set(npc, 12);
            break;

        case 293:
            originalScript = "npc_set(npc,13)";
            ScriptDaemon.npc_set(npc, 13);
            break;

        case 300:
            originalScript = "game.global_vars[979] = 2";
            SetGlobalVar(979, 2);
            break;

        case 310:
            originalScript = "game.global_vars[947] = 1";
            SetGlobalVar(947, 1);
            break;

        case 311:
            originalScript = "game.fade_and_teleport(0,0,0,5170,476,483)";
            FadeAndTeleport(0, 0, 0, 5170, 476, 483);
            break;

        case 312:
            originalScript = "game.fade_and_teleport(0,0,0,5135,480,477)";
            FadeAndTeleport(0, 0, 0, 5135, 480, 477);
            break;

        case 320:
            originalScript = "game.global_vars[947] = 2; record_time_stamp('absalom_off_to_arrest')";
            SetGlobalVar(947, 2);
            ScriptDaemon.record_time_stamp("absalom_off_to_arrest");
            ;
            break;

        case 321:
            originalScript = "switch_to_wilfrick( npc, pc, 980)";
            switch_to_wilfrick(npc, pc, 980);
            break;

        case 340:
            originalScript = "game.global_flags[940] = 1";
            SetGlobalFlag(940, true);
            break;

        case 350:
            originalScript = "game.global_flags[942] = 1";
            SetGlobalFlag(942, true);
            break;

        case 370:
            originalScript = "game.global_vars[944] = 2";
            SetGlobalVar(944, 2);
            break;

        case 371:
            originalScript = "game.quests[88].state = qs_completed";
            SetQuestState(88, QuestState.Completed);
            break;

        case 372:
            originalScript = "game.quests[88].state = qs_completed; game.quests[67].state = qs_botched";
            SetQuestState(88, QuestState.Completed);
            SetQuestState(67, QuestState.Botched);
            ;
            break;

        case 380:
            originalScript = "game.global_vars[944] = 1";
            SetGlobalVar(944, 1);
            break;

        case 381:
            originalScript = "game.quests[87].state = qs_completed";
            SetQuestState(87, QuestState.Completed);
            break;

        case 382:
            originalScript = "game.quests[87].state = qs_completed; game.quests[66].state = qs_botched";
            SetQuestState(87, QuestState.Completed);
            SetQuestState(66, QuestState.Botched);
            ;
            break;

        case 412:
            originalScript = "npc_set(npc,8)";
            ScriptDaemon.npc_set(npc, 8);
            break;

        case 413:
            originalScript = "npc_set(npc,9)";
            ScriptDaemon.npc_set(npc, 9);
            break;

        case 450:
            originalScript = "game.global_vars[944] = 3";
            SetGlobalVar(944, 3);
            break;

        case 451:
            originalScript = "run_off(npc,pc)";
            run_off(npc, pc);
            break;

        case 471:
            originalScript = "npc_set(npc,19)";
            ScriptDaemon.npc_set(npc, 19);
            break;

        case 472:
            originalScript = "npc_set(npc,20)";
            ScriptDaemon.npc_set(npc, 20);
            break;

        case 473:
            originalScript = "npc_set(npc,21)";
            ScriptDaemon.npc_set(npc, 21);
            break;

        case 474:
            originalScript = "npc_set(npc,22)";
            ScriptDaemon.npc_set(npc, 22);
            break;

        case 482:
            originalScript = "npc_set(npc,23)";
            ScriptDaemon.npc_set(npc, 23);
            break;

        case 483:
            originalScript = "npc_set(npc,24)";
            ScriptDaemon.npc_set(npc, 24);
            break;

        case 484:
            originalScript = "npc_set(npc,25)";
            ScriptDaemon.npc_set(npc, 25);
            break;

        default:
            originalScript = null;
            return;
        }
    }