-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #569 from pacampbell/msq_s2_1
feat: Season 2.1 Main Story Quests
- Loading branch information
Showing
17 changed files
with
1,579 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
Arrowgene.Ddon.Database/Files/Database/Script/migration_msq_2.1.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
INSERT INTO ddon_quest_progress(character_common_id, quest_type, quest_id, step, variant_quest_id) | ||
VALUES ((SELECT character_common_id FROM ddon_completed_quests WHERE quest_id = 20070), 3, 20080, 0, 0); |
24 changes: 24 additions & 0 deletions
24
Arrowgene.Ddon.Database/Sql/Core/Migration/00000017_Msq21Migration.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System.Data.Common; | ||
|
||
namespace Arrowgene.Ddon.Database.Sql.Core.Migration | ||
{ | ||
public class Msq21Migration : IMigrationStrategy | ||
{ | ||
public uint From => 16; | ||
public uint To => 17; | ||
|
||
private readonly DatabaseSetting DatabaseSetting; | ||
|
||
public Msq21Migration(DatabaseSetting databaseSetting) | ||
{ | ||
DatabaseSetting = databaseSetting; | ||
} | ||
|
||
public bool Migrate(IDatabase db, DbConnection conn) | ||
{ | ||
string adaptedSchema = DdonDatabaseBuilder.GetAdaptedSchema(DatabaseSetting, "Script/migration_msq_2.1.sql"); | ||
db.Execute(conn, adaptedSchema); | ||
return true; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
155 changes: 155 additions & 0 deletions
155
Arrowgene.Ddon.Shared/Files/Assets/quests/q00020080.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
{ | ||
"state_machine": "GenericStateMachine", | ||
"type": "Main", | ||
"comment": "A Fresh Incident", | ||
"quest_id": 20080, | ||
"next_quest": 20090, | ||
"base_level": 64, | ||
"minimum_item_rank": 0, | ||
"discoverable": true, | ||
"order_conditions": [ | ||
{"type": "MinimumLevel", "Param1": 64} | ||
], | ||
"rewards": [ | ||
{ | ||
"type": "exp", | ||
"amount": 98000 | ||
}, | ||
{ | ||
"type": "wallet", | ||
"wallet_type": "Gold", | ||
"amount": 25000 | ||
}, | ||
{ | ||
"type": "wallet", | ||
"wallet_type": "RiftPoints", | ||
"amount": 2000 | ||
}, | ||
{ | ||
"type": "fixed", | ||
"loot_pool": [ | ||
{ | ||
"item_id": 14191, | ||
"num": 1 | ||
}, | ||
{ | ||
"item_id": 11510, | ||
"num": 5 | ||
} | ||
] | ||
} | ||
], | ||
"enemy_groups": [ | ||
{ | ||
"stage_id": { | ||
"id": 335, | ||
"group_id": 4 | ||
}, | ||
"enemies": [ | ||
{ | ||
"comment": "Medusa", | ||
"enemy_id": "0x015610", | ||
"level": 64, | ||
"exp": 156320, | ||
"named_enemy_params_id": 934, | ||
"is_boss": true | ||
}, | ||
{ | ||
"comment": "Eliminator", | ||
"enemy_id": "0x010530", | ||
"level": 64, | ||
"exp": 15632, | ||
"named_enemy_params_id": 934 | ||
}, | ||
{ | ||
"comment": "Eliminator", | ||
"enemy_id": "0x010530", | ||
"level": 64, | ||
"exp": 15632, | ||
"named_enemy_params_id": 934 | ||
} | ||
] | ||
} | ||
], | ||
"processes": [ | ||
{ | ||
"comment": "Process 0", | ||
"blocks": [ | ||
{ | ||
"type": "NpcTalkAndOrder", | ||
"stage_id": { | ||
"id": 3 | ||
}, | ||
"flags": [ | ||
{"type": "WorldManageLayout", "action": "Clear", "value": 8630, "quest_id": 70034001, "comment": "Spawns Gurdolin, Lise and Elliot"} | ||
], | ||
"npc_id": "Joseph", | ||
"message_id": 0 | ||
}, | ||
{ | ||
"type": "PlayEvent", | ||
"stage_id": { | ||
"id": 3 | ||
}, | ||
"event_id": 140, | ||
"flags": [ | ||
{"type": "WorldManageLayout", "action": "Clear", "value": 7390, "quest_id": 70032001, "comment": "The White Dragon (Full)"} | ||
] | ||
}, | ||
{ | ||
"type": "TalkToNpc", | ||
"announce_type": "Accept", | ||
"stage_id": { | ||
"id": 3 | ||
}, | ||
"npc_id": "Klaus0", | ||
"message_id": 15308, | ||
"flags": [ | ||
{"type": "WorldManageLayout", "action": "Set", "value": 7390, "quest_id": 70032001, "comment": "The White Dragon (Full)"} | ||
] | ||
}, | ||
{ | ||
"type": "PartyGather", | ||
"announce_type": "Update", | ||
"checkpoint": true, | ||
"stage_id": { | ||
"id": 335 | ||
}, | ||
"location": { | ||
"x": -2984, | ||
"y": 1539, | ||
"z": 2350 | ||
} | ||
}, | ||
{ | ||
"type": "PlayEvent", | ||
"stage_id": { | ||
"id": 335 | ||
}, | ||
"event_id": 20 | ||
}, | ||
{ | ||
"type": "KillGroup", | ||
"announce_type": "Update", | ||
"groups": [ 0 ] | ||
}, | ||
{ | ||
"type": "PlayEvent", | ||
"stage_id": { | ||
"id": 335 | ||
}, | ||
"event_id": 25 | ||
}, | ||
{ | ||
"type": "TalkToNpc", | ||
"announce_type": "Update", | ||
"stage_id": { | ||
"id": 3 | ||
}, | ||
"npc_id": "Joseph", | ||
"message_id": 15325 | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.