|
| 1 | +/** |
| 2 | + * @brief Adventure Spot Guide: Rathnite Foothills II |
| 3 | + */ |
| 4 | + |
| 5 | +#load "libs.csx" |
| 6 | + |
| 7 | +public class ScriptedQuest : IQuest |
| 8 | +{ |
| 9 | + public override QuestType QuestType => QuestType.Tutorial; |
| 10 | + public override QuestId QuestId => (QuestId)60300101; // Schedule ID: 1673543808 |
| 11 | + public override ushort RecommendedLevel => 80; |
| 12 | + public override byte MinimumItemRank => 0; |
| 13 | + public override bool IsDiscoverable => true; |
| 14 | + public override StageInfo StageInfo => Stage.PiremothTravelersInn; |
| 15 | + public override QuestAdventureGuideCategory? AdventureGuideCategory => QuestAdventureGuideCategory.QuestUsefulForAdventure; |
| 16 | + |
| 17 | + protected override void InitializeState() |
| 18 | + { |
| 19 | + AddQuestOrderCondition(QuestOrderCondition.HasAreaRank(QuestAreaId.RathniteFoothills, 2)); |
| 20 | + } |
| 21 | + |
| 22 | + protected override void InitializeRewards() |
| 23 | + { |
| 24 | + AddPointReward(PointType.ExperiencePoints, 42000); |
| 25 | + AddWalletReward(WalletType.Gold, 11000); |
| 26 | + AddWalletReward(WalletType.RiftPoints, 1880); |
| 27 | + AddFixedItemReward(ItemId.AcreRoyalFamilyIntaglio, 1); |
| 28 | + } |
| 29 | + |
| 30 | + private class EnemyGroupId |
| 31 | + { |
| 32 | + public const uint Encounter = 10; |
| 33 | + } |
| 34 | + |
| 35 | + protected override void InitializeEnemyGroups() |
| 36 | + { |
| 37 | + AddEnemies(EnemyGroupId.Encounter, Stage.ReservoirUndergroundTunnel, 4, QuestEnemyPlacementType.Manual, new() |
| 38 | + { |
| 39 | + LibDdon.Enemy.Create(EnemyId.WarReadyGorecyclopsLightArmor0, 80, 207360, 0) |
| 40 | + .SetIsAreaBoss(true) |
| 41 | + .SetIsBoss(true) |
| 42 | + .SetEnemyTargetTypesId(TargetTypesId.AreaBoss), |
| 43 | + LibDdon.Enemy.Create(EnemyId.GrimGoblin, 80, 5184, 1) |
| 44 | + .SetEnemyTargetTypesId(TargetTypesId.Normal), |
| 45 | + LibDdon.Enemy.Create(EnemyId.GrimGoblin, 80, 5184, 2) |
| 46 | + .SetEnemyTargetTypesId(TargetTypesId.Normal), |
| 47 | + LibDdon.Enemy.Create(EnemyId.GrimGoblin, 80, 5184, 3) |
| 48 | + .SetEnemyTargetTypesId(TargetTypesId.Normal), |
| 49 | + LibDdon.Enemy.Create(EnemyId.GrimGoblin, 80, 5184, 4) |
| 50 | + .SetEnemyTargetTypesId(TargetTypesId.Normal), |
| 51 | + LibDdon.Enemy.Create(EnemyId.GrimGoblin, 80, 5184, 5) |
| 52 | + .SetEnemyTargetTypesId(TargetTypesId.Normal), |
| 53 | + }); |
| 54 | + } |
| 55 | + |
| 56 | + protected override void InitializeBlocks() |
| 57 | + { |
| 58 | + var process0 = AddNewProcess(0); |
| 59 | + process0.AddNpcTalkAndOrderBlock(Stage.PiremothTravelersInn, NpcId.Bruno, 25798); |
| 60 | + process0.AddSpawnGroupBlock(QuestAnnounceType.Accept, EnemyGroupId.Encounter) |
| 61 | + .AddResultCommands([ |
| 62 | + QuestManager.ResultCommand.QstTalkChg(NpcId.Bruno, 25799) |
| 63 | + ]) |
| 64 | + .AddCheckCommands([ |
| 65 | + QuestManager.CheckCommand.IsEnemyFoundForOrder(1080, 4, 0) |
| 66 | + ]); |
| 67 | + process0.AddRawBlock(QuestAnnounceType.Update) |
| 68 | + .AddCheckCommands([ |
| 69 | + QuestManager.CheckCommand.SceHitIn(1080, 0) // Chest room |
| 70 | + ]); |
| 71 | + process0.AddRawBlock(QuestAnnounceType.CheckpointAndUpdate) |
| 72 | + .AddResultCommands([ |
| 73 | + QuestManager.ResultCommand.QstTalkChg(NpcId.Bruno, 25800) |
| 74 | + ]) |
| 75 | + .AddCheckCommands([ |
| 76 | + QuestManager.CheckCommand.TalkNpc(630, NpcId.Bruno) |
| 77 | + ]); |
| 78 | + process0.AddProcessEndBlock(true); |
| 79 | + } |
| 80 | +} |
| 81 | + |
| 82 | +return new ScriptedQuest(); |
0 commit comments