diff --git a/src/scripts/instances/questbattles/ABeaconforBadThings.cpp b/src/scripts/instances/questbattles/ABeaconforBadThings.cpp new file mode 100644 index 00000000..3b957f97 --- /dev/null +++ b/src/scripts/instances/questbattles/ABeaconforBadThings.cpp @@ -0,0 +1,53 @@ +#include +#include + +using namespace Sapphire; + +class ABeaconforBadThings : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_WAVE1_01 = 6642829; + static constexpr auto BNPC_WAVE1_02 = 6643459; + static constexpr auto BNPC_WAVE1_03 = 6643462; + static constexpr auto P_BNPC_GIRL = 6648027; + static constexpr auto P_BNPC_MOTHER = 6648001; + static constexpr auto P_BNPC_SYLPHIE = 6647996; + static constexpr auto EOBJ_MIASMA_01 = 6650032; + static constexpr auto QIB_YELL_GATTY_01 = 4290; + static constexpr auto BNPC_WAVE2_GATE_01 = 6740811; + static constexpr auto BNPC_WAVE2_GATE_02 = 6740812; + static constexpr auto BNPC_WAVE2_GATE_03 = 6740813; + static constexpr auto BNPC_WAVE2_01 = 6740817; + static constexpr auto BNPC_WAVE2_02 = 6740818; + static constexpr auto BNPC_WAVE2_03 = 6740819; + static constexpr auto DEF_ACTION_MONSTER_SUMMON = 3439; + static constexpr auto BNPC_WAVE3_GATE_01 = 6740861; + static constexpr auto BNPC_WAVE3_GATE_02 = 6740862; + static constexpr auto BNPC_WAVE3_GATE_03 = 6740863; + static constexpr auto BNPC_WAVE3_01 = 6740865; + static constexpr auto BNPC_WAVE3_02 = 6740866; + static constexpr auto BNPC_WAVE3_03 = 6740867; + +public: + ABeaconforBadThings() : Sapphire::ScriptAPI::QuestBattleScript( 151 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( ABeaconforBadThings ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/ADangerousProposition.cpp b/src/scripts/instances/questbattles/ADangerousProposition.cpp new file mode 100644 index 00000000..65148aa8 --- /dev/null +++ b/src/scripts/instances/questbattles/ADangerousProposition.cpp @@ -0,0 +1,52 @@ +#include +#include + +using namespace Sapphire; + +class ADangerousProposition : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_BOSS = 3792898; + static constexpr auto INIT_POP_01 = 3792905; + static constexpr auto INIT_POP_02 = 3792907; + static constexpr auto INIT_POP_03 = 3792908; + static constexpr auto INIT_POP_04 = 3792909; + static constexpr auto INIT_POP_05 = 3792911; + static constexpr auto INIT_POP_06 = 3792912; + static constexpr auto INIT_POP_07 = 3792913; + static constexpr auto INIT_POP_08 = 3792914; + static constexpr auto INIT_POP_09 = 3792916; + static constexpr auto INIT_POP_10 = 3792917; + static constexpr auto INIT_POP_11 = 3911020; + static constexpr auto INIT_P_POP_01 = 4259221; + static constexpr auto BNPC_001 = 543; + static constexpr auto LOC_POS_PC_FIRST = 3879338; + static constexpr auto LOC_ACTOR0 = 1003009; + static constexpr auto BNPC_NAME_01 = 626; + static constexpr auto DEF_ACTION_BLIND_POISON = 1089; + static constexpr auto DEF_BLIND = 15; + +public: + ADangerousProposition() : Sapphire::ScriptAPI::QuestBattleScript( 7 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2005192, 5760474, 4, { -51.493111f, 0.309087f, 71.436897f }, 1.000000f, -0.000006f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( ADangerousProposition ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/AFlarefortheDramatic.cpp b/src/scripts/instances/questbattles/AFlarefortheDramatic.cpp new file mode 100644 index 00000000..f8ec416b --- /dev/null +++ b/src/scripts/instances/questbattles/AFlarefortheDramatic.cpp @@ -0,0 +1,81 @@ +#include +#include + +using namespace Sapphire; + +class AFlarefortheDramatic : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto P_BNPC_YAMITRA_01 = 5907982; + static constexpr auto P_BNPC_ROEGA_01 = 5907983; + static constexpr auto BNPC_CUP_01 = 5907984; + static constexpr auto BNPC_SORD_01 = 5907985; + static constexpr auto BNPC_CEPTER_01 = 5907986; + static constexpr auto BNPC_COIN_01 = 5907987; + static constexpr auto BNPC_METEOR_01 = 5907988; + static constexpr auto BNPC_DARK_MARSH_01 = 5920798; + static constexpr auto NCUT_01 = 968; + static constexpr auto YELL_QIB_CUP_DOUBLE_01 = 2727; + static constexpr auto YELL_QIB_SWORD_END = 2931; + static constexpr auto YELL_QIB_CEPTER_END = 2932; + static constexpr auto YELL_QIB_COIN_END = 2933; + static constexpr auto BNPC_ACTION_SUMMON_DARK_MARSH = 4841; + static constexpr auto BNPC_ACTION_SUMMON_COMMET_TRIGGER = 3269; + static constexpr auto BNPC_ACTION_SUMMON_COMET = 4842; + static constexpr auto BNPC_ACTION_DEBRIS_BURST = 4844; + static constexpr auto BNPC_ACTION_DOUBLE = 3443; + static constexpr auto BNPC_ACTION_DOUBLE_TRIGGER = 4777; + static constexpr auto BNPC_ACTION_DARK_FIRE3 = 5049; + static constexpr auto STATUS_DOUBLE = 1280; + static constexpr auto LOCKON_BY_COMET = 7; + static constexpr auto POP_RANGE_DARK_MARSH_01 = 5920904; + static constexpr auto POP_RANGE_DARK_MARSH_02 = 5920905; + static constexpr auto POP_RANGE_DARK_MARSH_03 = 5920906; + static constexpr auto POP_RANGE_DARK_MARSH_04 = 5920908; + static constexpr auto POP_RANGE_DARK_MARSH_05 = 5920939; + static constexpr auto POP_RANGE_DARK_MARSH_06 = 5920940; + static constexpr auto POP_RANGE_DARK_MARSH_07 = 5920991; + static constexpr auto POP_RANGE_DARK_MARSH_08 = 5920992; + static constexpr auto LCUT_ACTOR0 = 1014921; + static constexpr auto LCUT_ACTOR1 = 1013845; + static constexpr auto LCUT_ACTOR2 = 1014636; + static constexpr auto LCUT_ACTOR3 = 1014633; + static constexpr auto LCUT_ACTOR4 = 1014634; + static constexpr auto LCUT_ACTOR5 = 1014635; + static constexpr auto LCUT_POS_ACTOR0 = 5907983; + static constexpr auto QST_HEAVNA707 = 67205; + static constexpr auto BNPCBASE_ID_CUP = 4834; + static constexpr auto BNPCBASE_ID_COMET = 4838; + static constexpr auto BNPC_ACTION_MEGIDDO_FLAME = 4839; + static constexpr auto BNPC_ACTION_FAST_CAST_DARK_FIRE3 = 4840; + static constexpr auto BNPC_ACTION_EXPLOSION_DARK_MARSH = 962; + static constexpr auto BNPC_ACTION_IMPACT_COMMET = 4843; + static constexpr auto BNPCBASE_ID_DARK_MARSH = 4904; + static constexpr auto LCUT_BGM0 = 94; + static constexpr auto LCUT_BGM1 = 91; + static constexpr auto LOC_VFX0 = 251; + static constexpr auto LOC_SE0 = 52; + +public: + AFlarefortheDramatic() : Sapphire::ScriptAPI::QuestBattleScript( 148 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( AFlarefortheDramatic ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/AGameofLifeandDeath.cpp b/src/scripts/instances/questbattles/AGameofLifeandDeath.cpp new file mode 100644 index 00000000..5ec6cf31 --- /dev/null +++ b/src/scripts/instances/questbattles/AGameofLifeandDeath.cpp @@ -0,0 +1,133 @@ +#include +#include + +using namespace Sapphire; + +class AGameofLifeandDeath : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto P_BNPC_JACKE = 6959281; + static constexpr auto P_BNPC_OBORO = 6959282; + static constexpr auto P_BNPC_YUKI = 6959283; + static constexpr auto P_BNPC_VKEBBE = 6959341; + static constexpr auto P_BNPC_PERIMUHAURIMU = 6959342; + static constexpr auto BNPC_BOSS_ZAKURO = 6954394; + static constexpr auto BNPC_P1_TRASH_01 = 6959313; + static constexpr auto BNPC_P1_TRASH_02 = 6959314; + static constexpr auto BNPC_P1_TRASH_03 = 6959316; + static constexpr auto BNPC_P1_TRASH_04 = 6959317; + static constexpr auto BNPC_P1_TRASH_05 = 6959318; + static constexpr auto BNPC_P1_TRASH_06 = 6959319; + static constexpr auto BNPC_P1_TRASH_07 = 6959320; + static constexpr auto BNPC_P1_TRASH_08 = 6969442; + static constexpr auto BNPC_P1_GUARD_01 = 6959327; + static constexpr auto BNPC_P1_GUARD_02 = 6959328; + static constexpr auto BNPC_P1_GUARD_03 = 6959329; + static constexpr auto QIB_YELL_01 = 5676; + static constexpr auto QIB_YELL_02 = 5677; + static constexpr auto QIB_YELL_03 = 5678; + static constexpr auto QIB_YELL_04 = 5679; + static constexpr auto QIB_YELL_05 = 5680; + static constexpr auto QIB_YELL_06 = 5681; + static constexpr auto QIB_YELL_08 = 5683; + static constexpr auto QIB_YELL_09 = 4589; + static constexpr auto ER_VKEBBE_RESCUE = 6969449; + static constexpr auto BNPCSTATE_NORMAL = 0; + static constexpr auto BNPCSTATE_BOUND = 118; + static constexpr auto EOBJ_VKEBBE_BIND = 6969631; + static constexpr auto EOBJ_PERIMUHAURIMU_BIND = 6969634; + static constexpr auto EOBJ_MAKIBISHI = 6971206; + static constexpr auto EVENT_ACTION_01 = 42; + static constexpr auto BNPC_P2_TRASH_01 = 6971209; + static constexpr auto BNPC_P2_TRASH_02 = 6971210; + static constexpr auto BNPC_P2_TRASH_03 = 6971211; + static constexpr auto BNPC_P2_TRASH_04 = 6971212; + static constexpr auto BNPC_P2_TRASH_05 = 6971213; + static constexpr auto BNPC_P2_TRASH_06 = 6971214; + static constexpr auto BNPC_P2_TRASH_07 = 6971216; + static constexpr auto BNPC_P2_TRASH_08 = 6971217; + static constexpr auto BNPC_P2_TRASH_09 = 6971219; + static constexpr auto BNPC_P2_TRASH_10 = 6971221; + static constexpr auto BNPC_KARASU = 6971224; + static constexpr auto ACTION_MAKIBISHI = 8513; + static constexpr auto STATUS_PARAM_MAKIBISHI_DOT = 3296; + static constexpr auto PR_KARASU_ESCAPE = 6971517; + static constexpr auto BNPC_P3_GUARD_01 = 7005448; + static constexpr auto BNPC_P3_GUARD_02 = 7005449; + static constexpr auto BNPC_P3_GUARD_03 = 7005450; + static constexpr auto BNPC_P3_GUARD_04 = 7005730; + static constexpr auto BNPC_P3_GUARD_05 = 7005731; + static constexpr auto PR_YUKI_MOVE_FINAL = 7003839; + static constexpr auto PR_JACKE_MOVE_FINAL = 7004138; + static constexpr auto PR_VKEBEE_MOVE_FINAL = 7004140; + static constexpr auto PR_OBORO_MOVE_FINAL = 7004141; + static constexpr auto EOBJ_BOSS_ROOM_CONTROL = 7005846; + static constexpr auto BNPC_BOSS_ARC_01 = 7005847; + static constexpr auto BNPC_BOSS_LNC_01 = 7005848; + static constexpr auto BNPC_BOSS_LNC_02 = 7005849; + static constexpr auto BNPC_BOSS_ARC_02 = 7005850; + static constexpr auto BNPC_BOSS_ARC_03 = 7005851; + static constexpr auto P_BNPC_JACKE_BOSS = 7005853; + static constexpr auto P_BNPC_OBORO_BOSS = 7005854; + static constexpr auto P_BNPC_YUKI_BOSS = 7005855; + static constexpr auto P_BNPC_VKEBBE_BOSS = 7005856; + static constexpr auto P_BNPC_PERIMUHAURIMU_BOSS = 7005857; + static constexpr auto BNPC_BOSS_LNC_HPLOW_01 = 7005916; + static constexpr auto BNPC_BOSS_LNC_HPLOW_02 = 7005918; + static constexpr auto BNPC_BOSS_ARC_HPLOW_01 = 7005919; + static constexpr auto BNPC_BOSS_ARC_HPLOW_02 = 7005917; + static constexpr auto BNPC_BOSS_KARASU_01 = 7005858; + static constexpr auto BNPC_BOSS_TOUMEI_01 = 7005868; + static constexpr auto BNPC_BOSS_TOUMEI_02 = 7005869; + static constexpr auto BNPC_BOSS_TOUMEI_03 = 7005870; + static constexpr auto BNPC_BOSS_TOUMEI_04 = 7005871; + static constexpr auto BNPC_BOSS_TOUMEI_05 = 7005872; + static constexpr auto BNPC_BOSS_TOUMEI_06 = 7005873; + static constexpr auto BNPC_BOSS_TOUMEI_07 = 7005874; + static constexpr auto BNPC_BOSS_TOUMEI_08 = 7005875; + static constexpr auto BNPC_BOSS_TOUMEI_DAMMY_HATE = 7005878; + static constexpr auto PR_BOSS_START = 7005852; + static constexpr auto PR_OBORO_RAITON_AVOID = 7005883; + static constexpr auto PR_JACKE_RAITON_AVOID = 7005885; + static constexpr auto PR_YUKI_RAITON_AVOID = 7005886; + static constexpr auto PR_VKEBEE_RAITON_AVOID = 7005887; + static constexpr auto PR_PERIMUHAURIMU_RAITON_AVOID = 7005888; + static constexpr auto ACTION_HISSATSUKEN_30 = 9516; + static constexpr auto ACTION_HISSATSUKEN_90 = 9515; + static constexpr auto ACTION_RAITON = 9517; + static constexpr auto ACTION_TENNOIN = 2259; + static constexpr auto ACTION_DEPOP_TRRIGER = 3269; + static constexpr auto ACTION_TOUMEI_RAITON = 9518; + static constexpr auto LOCKON_RAITION = 21; + static constexpr auto BGM_BOSS_04 = 39; + static constexpr auto LOC_ACTOR0 = 1022853; + static constexpr auto LOC_ACTOR1 = 1023640; + static constexpr auto LOC_ACTOR2 = 1023641; + static constexpr auto LOC_MARKER_00 = 6991796; + static constexpr auto STATUS_PARAM_HIDE = 1197; + +public: + AGameofLifeandDeath() : Sapphire::ScriptAPI::QuestBattleScript( 177 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2008480, 6894787, 4, { 564.783630f, -60.304729f, -136.444901f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_1", 2004541, 0, 4, { 800.087585f, 0.000000f, 44.317749f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( AGameofLifeandDeath ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/ASpectaclefortheAges.cpp b/src/scripts/instances/questbattles/AJourneyofPurification.cpp similarity index 66% rename from src/scripts/instances/questbattles/ASpectaclefortheAges.cpp rename to src/scripts/instances/questbattles/AJourneyofPurification.cpp index 0f0ec242..6cde9941 100644 --- a/src/scripts/instances/questbattles/ASpectaclefortheAges.cpp +++ b/src/scripts/instances/questbattles/AJourneyofPurification.cpp @@ -1,17 +1,30 @@ #include -#include +#include using namespace Sapphire; -class ASpectaclefortheAges : - public Sapphire::ScriptAPI::InstanceContentScript +class AJourneyofPurification : public Sapphire::ScriptAPI::QuestBattleScript { +private: + static constexpr auto BNPC_FORTEM_01 = 5867698; + static constexpr auto BNPC_FORTEM_02 = 5867702; + static constexpr auto BNPC_ESCHIVA_01 = 5867712; + static constexpr auto BNPC_P1_WOLF_01 = 5867745; + static constexpr auto BNPC_P1_WOLF_02 = 5867754; + static constexpr auto BNPC_P1_WILDDILLE_01 = 5867767; + static constexpr auto BNPC_P1_WILDDILLE_02 = 5867769; + static constexpr auto BNPC_P1_DARKSPRITE_01 = 5867781; + static constexpr auto BNPC_P1_WOLF_ADD_01 = 5867782; + static constexpr auto BNPC_P1_WILDDILLE_ADD_01 = 5867793; + static constexpr auto BNPC_P1_GOOBBUE_ADD_01 = 5867801; + static constexpr auto YELL_FORTEM01_DEAD_01 = 2635; + static constexpr auto YELL_FORTEM02_DEAD_01 = 2636; + public: - ASpectaclefortheAges() : - Sapphire::ScriptAPI::InstanceContentScript( 5001 ) + AJourneyofPurification() : Sapphire::ScriptAPI::QuestBattleScript( 115 ) { } - void onInit( InstanceContent& instance ) override + void onInit( QuestBattle& instance ) override { instance.registerEObj( "sgbg_w_qic_001_04a", 2006993, 6235274, 4, { -35.822102f, 298.899994f, -205.263199f }, 1.000000f, 0.000000f ); instance.registerEObj( "unknown_0", 2006952, 0, 4, { -35.712589f, 298.899994f, -204.878006f }, 1.000000f, 0.000000f ); @@ -33,12 +46,12 @@ public: } - void onUpdate( InstanceContent& instance, uint32_t currTime ) override + void onUpdate( QuestBattle& instance, uint32_t currTime ) override { } - void onEnterTerritory( InstanceContent& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, uint16_t param2 ) override { @@ -46,4 +59,4 @@ public: }; -EXPOSE_SCRIPT( ASpectaclefortheAges ); \ No newline at end of file +EXPOSE_SCRIPT( AJourneyofPurification ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/AJoyefulReunion.cpp b/src/scripts/instances/questbattles/AJoyefulReunion.cpp new file mode 100644 index 00000000..551bbad6 --- /dev/null +++ b/src/scripts/instances/questbattles/AJoyefulReunion.cpp @@ -0,0 +1,58 @@ +#include +#include + +using namespace Sapphire; + +class AJoyefulReunion : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_CELESTAUX = 5873785; + static constexpr auto BNPC_HAILLENARTE_01 = 5873786; + static constexpr auto BNPC_HAILLENARTE_02 = 5873787; + static constexpr auto BNPC_HAILLENARTE_03 = 5873788; + static constexpr auto BNPC_HAILLENARTE_04 = 5873789; + static constexpr auto BNPC_P1_ABIS_01 = 5873790; + static constexpr auto BNPC_P1_ABIS_02 = 5873791; + static constexpr auto BNPC_P1_ABIS_03 = 5873792; + static constexpr auto BNPC_P1_ABIS_04 = 5873793; + static constexpr auto BNPC_P1_ABIS_05 = 5873795; + static constexpr auto BNPC_P1_RINGDRAGON_01 = 5873802; + static constexpr auto BNPC_P1_DRAKE_01 = 5873794; + static constexpr auto BNPC_P1_DRAKE_02 = 5873798; + static constexpr auto BNPC_P1_DRAKE_03 = 5873799; + static constexpr auto ENPC_ROSTNSTHAL = 5873783; + static constexpr auto ENPC_BAURENDOUIN = 5873784; + static constexpr auto YELL_CELESTAUX_DEAD = 2654; + static constexpr auto YELL_HAILLENARTE_01_DEAD = 2655; + static constexpr auto YELL_HAILLENARTE_02_DEAD = 2656; + static constexpr auto YELL_HAILLENARTE_03_DEAD = 2657; + static constexpr auto YELL_HAILLENARTE_04_DEAD = 2658; + static constexpr auto LOC_MARKER_01 = 5934854; + static constexpr auto LOC_ACTOR0 = 1014580; + static constexpr auto LOC_ACTOR1 = 1015073; + static constexpr auto CUT_SCENE_01 = 974; + static constexpr auto LOC_BGM0 = 39; + +public: + AJoyefulReunion() : Sapphire::ScriptAPI::QuestBattleScript( 118 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( AJoyefulReunion ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/ASeriesofUnfortunateEvents.cpp b/src/scripts/instances/questbattles/ASeriesofUnfortunateEvents.cpp new file mode 100644 index 00000000..6577de15 --- /dev/null +++ b/src/scripts/instances/questbattles/ASeriesofUnfortunateEvents.cpp @@ -0,0 +1,88 @@ +#include +#include + +using namespace Sapphire; + +class ASeriesofUnfortunateEvents : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_GOAL_POS_01 = 5886177; + static constexpr auto BNPC_COMPANION_EMMANELLAIN = 5886178; + static constexpr auto BNPC_COMPANION_HAURCHEFANT = 5886179; + static constexpr auto BNPC_COMPANION_SOLDIER = 5886180; + static constexpr auto BNPC_ENEMY_PUGILIST_VANUVANU_01 = 5886181; + static constexpr auto BNPC_ENEMY_ROGUE_VANUVANU_02 = 5886182; + static constexpr auto BNPC_ENEMY_PUGILIST_VANUVANU_03 = 5886191; + static constexpr auto BNPC_ENEMY_ROGUE_VANUVANU_04 = 5886193; + static constexpr auto BNPC_ENEMY_PUGILIST_VANUVANU_05 = 5886194; + static constexpr auto BNPC_ENEMY_PUGILIST_VANUVANU_06 = 5886196; + static constexpr auto BNPC_ENEMY_ROGUE_VANUVANU_07 = 5886197; + static constexpr auto BNPC_ENEMY_ROGUE_VANUVANU_08 = 5886198; + static constexpr auto BNPC_ENEMY_PUGILIST_VANUVANU_09 = 5886200; + static constexpr auto BNPC_ENEMY_THAUMATURGE_VANUVANU_10 = 5886201; + static constexpr auto BNPC_ENEMY_PUGILIST_VANUVANU_11 = 5886207; + static constexpr auto BNPC_ENEMY_ROGUE_VANUVANU_12 = 5886208; + static constexpr auto BNPC_ENEMY_THAUMATURGE_VANUVANU_13 = 5886209; + static constexpr auto BNPC_ENEMY_PUGILIST_VANUVANU_14 = 5886211; + static constexpr auto BNPC_ENEMY_PUGILIST_VANUVANU_15 = 5886212; + static constexpr auto BNPC_ENEMY_ROGUE_VANUVANU_16 = 5886213; + static constexpr auto BNPC_ENEMY_ROGUE_VANUVANU_17 = 5886214; + static constexpr auto BNPC_ENEMY_PUGILIST_VANUVANU_18 = 5886217; + static constexpr auto BNPC_ENEMY_ROGUE_VANUVANU_19 = 5886218; + static constexpr auto BNPC_ENEMY_THAUMATURGE_VANUVANU_20 = 5886219; + static constexpr auto BNPC_ENEMY_PUGILIST_VANUVANU_21 = 5891945; + static constexpr auto BNPC_ENEMY_PUGILIST_VANUVANU_22 = 5891946; + static constexpr auto BNPC_ENEMY_ROGUE_VANUVANU_23 = 5891947; + static constexpr auto BNPC_ENEMY_ROGUE_VANUVANU_24 = 5891948; + static constexpr auto ENPC_GOAL_SOLDIER = 5886176; + static constexpr auto ENPC_ELDER_VANUVANU = 5886237; + static constexpr auto POPRANGE_HAURCHEFANT_MOVE_POS_01 = 5886220; + static constexpr auto POPRANGE_SOLDIER_MOVE_POS_01 = 5886221; + static constexpr auto ERANGE_VANUVANU_TERRITORY_01 = 5886222; + static constexpr auto EOBJ_ARREST_01 = 5886226; + static constexpr auto QIB_YELL_01 = 2647; + static constexpr auto QIB_YELL_02 = 2692; + static constexpr auto QIB_YELL_03 = 2693; + static constexpr auto QIB_YELL_04 = 2695; + static constexpr auto QIB_YELL_05 = 2696; + static constexpr auto QIB_YELL_06 = 2697; + static constexpr auto EVENT_ACTION_ARREST = 42; + static constexpr auto CUT_SCENE_N_01 = 794; + static constexpr auto ACTION_SCRIPT_TRIGGER = 3269; + static constexpr auto BGM_LATE_BATTLE = 39; + static constexpr auto BEHAVIOR_EMMANELLAIN_RELEASED = 30600; + static constexpr auto BNPC_WAY_STOP = 5904722; + static constexpr auto BNPC_STATE_CAUGHT = 118; + static constexpr auto BNPC_STATE_NORMAL = 0; + static constexpr auto LOC_POS_ACTOR0 = 5908313; + static constexpr auto LOC_POS_ACTOR1 = 5908314; + static constexpr auto LOC_POS_ACTOR2 = 5908315; + static constexpr auto LOC_ACTOR0 = 1012438; + static constexpr auto LOC_ACTOR1 = 1012472; + static constexpr auto LOC_ACTOR2 = 1012471; + static constexpr auto ACTION_TIMELINE_EVENT_BASE_CAUTION = 4227; + static constexpr auto ACTION_TIMELINE_EVENT_BASE_KNEE_SEACH = 1014; + +public: + ASeriesofUnfortunateEvents() : Sapphire::ScriptAPI::QuestBattleScript( 104 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( ASeriesofUnfortunateEvents ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/ATestofCourage.cpp b/src/scripts/instances/questbattles/ATestofCourage.cpp new file mode 100644 index 00000000..8c167fc8 --- /dev/null +++ b/src/scripts/instances/questbattles/ATestofCourage.cpp @@ -0,0 +1,134 @@ +#include +#include + +using namespace Sapphire; + +class ATestofCourage : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_BUNCHIN = 7132423; + static constexpr auto BNPC_KABUTO = 7132425; + static constexpr auto BNPC_KEKKISAKAN = 7132432; + static constexpr auto BNPC_SHIKITAHE = 7132433; + static constexpr auto BNPC_ZUKIN = 7132434; + static constexpr auto BNPC_MAKURA = 7132435; + static constexpr auto BNPC_ENEMY_SAMURAI_4 = 7132436; + static constexpr auto BNPC_ENEMY_SAMURAI_5 = 7132437; + static constexpr auto BNPC_ENEMY_NINJA_4 = 7132438; + static constexpr auto BNPC_ENEMY_NINJA_5 = 7132441; + static constexpr auto BNPC_ENEMY_MANTA_1 = 7132439; + static constexpr auto BNPC_ENEMY_MANTA_2 = 7132444; + static constexpr auto BNPC_ENEMY_MANTA_4_WEAK = 7132457; + static constexpr auto BNPC_ENEMY_MANTA_5_WEAK = 7132458; + static constexpr auto BNPC_ENEMY_MANTA_6_WEAK = 7132459; + static constexpr auto BNPC_ENEMY_SAMURAI_7_WEAK = 7132460; + static constexpr auto BNPC_ENEMY_SAMURAI_8_WEAK = 7132461; + static constexpr auto BNPC_ENEMY_SAMURAI_9_WEAK = 7132462; + static constexpr auto BNPC_ENEMY_NINJA_7_WEAK = 7132463; + static constexpr auto BNPC_ENEMY_NINJA_8_WEAK = 7132464; + static constexpr auto BNPC_ENEMY_NINJA_9_WEAK = 7132465; + static constexpr auto BNPC_ENEMY_MAGIC_1 = 7132467; + static constexpr auto BNPC_ENEMY_MAGIC_2 = 7132468; + static constexpr auto BNPC_ENEMY_SAMURAI_10 = 7132472; + static constexpr auto BNPC_ENEMY_SAMURAI_11 = 7132473; + static constexpr auto BNPC_ENEMY_SHAUGI = 7132474; + static constexpr auto BNPC_TOUMEI_ETHER = 7144992; + static constexpr auto BNPC_TOUMEI_ETHER_FOR_KABUTO = 7156920; + static constexpr auto BNPC_TOUMEI_HATE = 7144993; + static constexpr auto BNPC_TOUMEI_KABUTO_ULTIMATE = 7149030; + static constexpr auto BNPC_WATERBALL_1 = 7151732; + static constexpr auto BNPC_WATERBALL_2 = 7151733; + static constexpr auto BNPC_WATERBALL_3 = 7151734; + static constexpr auto BNPC_WATERBALL_4 = 7163733; + static constexpr auto BNPC_WATERBALL_BIGACTION_1 = 7164425; + static constexpr auto BNPC_WATERBALL_BIGACTION_2 = 7164426; + static constexpr auto BNPC_TOUMEI_SHAUGI_ACTION_01 = 7151812; + static constexpr auto BNPC_TOUMEI_SHAUGI_ACTION_02 = 7163734; + static constexpr auto BNPC_TOUMEI_SHAUGI_ACTION_03 = 7163735; + static constexpr auto BNPC_TOUMEI_SHAUGI_ACTION_04 = 7163736; + static constexpr auto STATUS_PARAM_HOT = 3474; + static constexpr auto STATUS_PARAM_TO_DAMAGE_UP = 3475; + static constexpr auto STATUS_PARAM_TAKE_DAMAGE_DOWN = 3476; + static constexpr auto STATUS_PARAM_STUN = 3464; + static constexpr auto STATUS_PARAM_DAMAGE_UP = 3465; + static constexpr auto STATUS_STUN = 930; + static constexpr auto STATUS_PARAM_INVUL = 1496; + static constexpr auto STATUS_DAMEGE_UP = 658; + static constexpr auto ACTION_TOUMEI_EXEC_BUFF = 10031; + static constexpr auto ACTION_IAIGIRI = 10035; + static constexpr auto ACTION_GTAE = 10063; + static constexpr auto ACTION_SHERE = 10064; + static constexpr auto ACTION_SUMMON_WATERBALL = 10065; + static constexpr auto ACTION_BIGACTION = 10051; + static constexpr auto ACTION_DISTANCE_AWAY = 10072; + static constexpr auto ACTION_RAIDDAMAGE = 10074; + static constexpr auto ACTION_TOUMEI_SHERE = 10067; + static constexpr auto EOBJ_TRESURE_1 = 7144991; + static constexpr auto EOBJ_TRESURE_2 = 7146915; + static constexpr auto EOBJ_TRESURE_3 = 7151735; + static constexpr auto EOBJ_SHARED_CONTROL_1 = 7146130; + static constexpr auto EOBJ_SHARED_CONTROL_2 = 7146132; + static constexpr auto EOBJ_SHARED_CONTROL_2_2 = 7146133; + static constexpr auto EOBJ_SHARED_CONTROL_3 = 7146134; + static constexpr auto EOBJ_SHARED_CONTROL_3_BEFORE = 7156930; + static constexpr auto EOBJ_SHARED_CONTROL_4 = 7146136; + static constexpr auto EOBJ_SHARED_CONTROL_BOSS = 7151740; + static constexpr auto EOBJ_SHARED_CONTROL_BOSS_ROOM = 7163737; + static constexpr auto EVENTACTION_SYMPATHY = 60; + static constexpr auto EVENT_RANGE_FOUND_BUNCHIN = 7156917; + static constexpr auto EVENT_RANGE_PHASE3_KABUTO_MOVE01 = 7156924; + static constexpr auto EVENT_RANGE_PHASE_3_BEFORE_ADD_POP = 7156931; + static constexpr auto EVENT_RANGE_PHASE_3_ADD_POP = 7141113; + static constexpr auto EVENT_RANGE_PHASE2 = 7146579; + static constexpr auto EVENT_RANGE_BOSS = 7151385; + static constexpr auto POP_RANGE_TRESURE_1 = 7141093; + static constexpr auto POP_RANGE_PHASE_3_KABUTO = 7141094; + static constexpr auto POP_RANGE_PHASE_4_KABUTO = 7141098; + static constexpr auto POP_RANGE_PHASE_4_KABUTO_MOVE01 = 7163525; + static constexpr auto POP_RANGE_TRESURE_3 = 7141115; + static constexpr auto POP_RANGE_BOSS_PC = 7151386; + static constexpr auto POP_RANGE_BOSS_KABUTO = 7151387; + static constexpr auto POP_RANGE_TRESURE2_MOVE = 7146918; + static constexpr auto POP_RANGE_TRESURE_3_NPC = 7151736; + static constexpr auto POP_RANGE_TO_BUNCHIN_02 = 7140836; + static constexpr auto POP_RANGE_TO_BUNCHIN_01 = 7156916; + static constexpr auto POP_RANGE_PHASE2_KABUTO_01 = 7156921; + static constexpr auto POP_RANGE_PHASE2_KABUTO_02 = 7156922; + static constexpr auto POP_RANGE_PHASE3_KABUTO_MOVE01 = 7156923; + static constexpr auto POP_RANGE_PHASE3_KABUTO_MOVE02 = 7156932; + static constexpr auto POP_RANGE_PHASE3_KABUTO_MOVE03 = 7163484; + static constexpr auto CHANNELING_DARK = 65; + static constexpr auto CHANNELING_WATER = 3; + static constexpr auto CHANNELING_DISTANCE_AWAY = 57; + static constexpr auto LOCKON_SHARE = 62; + static constexpr auto BGM_BOSS_BATTLE = 39; + static constexpr auto POS_PLAYER = 7151729; + static constexpr auto POS_HIRUMAKI = 7151730; + static constexpr auto ACTION_EVENT_BASE_LIE1 = 981; + static constexpr auto EVENT_MENACE = 946; + +public: + ATestofCourage() : Sapphire::ScriptAPI::QuestBattleScript( 179 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2008480, 6894787, 4, { 564.783630f, -60.304729f, -136.444901f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_1", 2004541, 0, 4, { 800.087585f, 0.000000f, 44.317749f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( ATestofCourage ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/AVermilionVendetta.cpp b/src/scripts/instances/questbattles/AVermilionVendetta.cpp new file mode 100644 index 00000000..7e316519 --- /dev/null +++ b/src/scripts/instances/questbattles/AVermilionVendetta.cpp @@ -0,0 +1,74 @@ +#include +#include + +using namespace Sapphire; + +class AVermilionVendetta : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto P_BNPC_XRHUNTIA = 6797880; + static constexpr auto P_BNPC_ARIA = 6797881; + static constexpr auto BNPC_PACK1_SKE_01 = 6797884; + static constexpr auto BNPC_PACK1_SKE_02 = 6798700; + static constexpr auto BNPC_PACK1_SKE_03 = 6798701; + static constexpr auto BNPC_PACK2_SKE_01 = 6797885; + static constexpr auto BNPC_PACK2_SKE_02 = 6798702; + static constexpr auto BNPC_PACK2_SKE_03 = 6798703; + static constexpr auto BNPC_PACK3_THA_01 = 6797888; + static constexpr auto BNPC_PACK3_THA_02 = 6798705; + static constexpr auto BNPC_PACK4_THA_01 = 6797891; + static constexpr auto BNPC_PACK4_THA_02 = 6798706; + static constexpr auto BNPC_PACK5_THA_01 = 6797892; + static constexpr auto BNPC_PACK5_THA_02 = 6798707; + static constexpr auto BNPC_PACK6_THA_BOSS = 6797901; + static constexpr auto BNPC_PACK6_THA_01 = 6797900; + static constexpr auto BNPC_PACK6_THA_02 = 6797899; + static constexpr auto BNPC_SHADOW_BOSS = 6798708; + static constexpr auto ER_PACK3_START = 6798710; + static constexpr auto BGM_BOSSBATTLE = 37; + static constexpr auto LOCKON_SHARE = 62; + static constexpr auto STATUS_VULNERABILITY = 202; + static constexpr auto ACTION_DARK_SHARE = 7981; + static constexpr auto BNPC_GIMMICK_01 = 6798812; + static constexpr auto BNPC_GIMMICK_02 = 6798813; + static constexpr auto BNPC_GIMMICK_03 = 6798814; + static constexpr auto BNPC_DARK_SPRITE_01 = 6798815; + static constexpr auto BNPC_DARK_SPRITE_02 = 6798816; + static constexpr auto BNPC_DARK_SPRITE_03 = 6798817; + static constexpr auto CHANNELING_DARK = 1; + static constexpr auto BNPCBASE_DARK_SPRITE = 6886; + static constexpr auto STATUS_PARAM_REGEN = 2810; + static constexpr auto STATUS_PARAM_INFINITY_INVINCIBLE = 1721; + static constexpr auto PR_ARIA_MOVE_01 = 6798818; + static constexpr auto BNPC_SUMMON_MAHOUJIN = 6824106; + static constexpr auto PR_DARKBALL_MOVE_01 = 6825253; + static constexpr auto BNPC_DARKBALL = 6824699; + static constexpr auto DEF_ACTION_TORRIGER = 3269; + static constexpr auto QIB_YELL_03 = 4784; + +public: + AVermilionVendetta() : Sapphire::ScriptAPI::QuestBattleScript( 164 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "Entrance", 2000182, 6228959, 5, { 457.583801f, 5.680784f, 280.512787f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "unknown_0", 2000608, 2807920, 4, { -95.322441f, -25.054260f, 61.518002f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( AVermilionVendetta ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/Absolution.cpp b/src/scripts/instances/questbattles/Absolution.cpp new file mode 100644 index 00000000..894bbcd6 --- /dev/null +++ b/src/scripts/instances/questbattles/Absolution.cpp @@ -0,0 +1,79 @@ +#include +#include + +using namespace Sapphire; + +class Absolution : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_RIELLE = 5892194; + static constexpr auto BNPC_SIDURGU = 5892195; + static constexpr auto BNPC_P1_YSTRIDE = 5892196; + static constexpr auto BNPC_P1_GLA_A_01 = 5892197; + static constexpr auto BNPC_P1_GLA_A_02 = 5892198; + static constexpr auto BNPC_P1_GLA_A_03 = 5892199; + static constexpr auto BNPC_P1_LNC_B_01 = 5892200; + static constexpr auto BNPC_P1_PGL_A_01 = 5892201; + static constexpr auto BNPC_P1_PGL_B_01 = 5892202; + static constexpr auto BNPC_P2_ARC_B_01 = 5892203; + static constexpr auto BNPC_P2_LNC_B_01 = 5892204; + static constexpr auto BNPC_P2_PGL_A_01 = 5892205; + static constexpr auto BNPC_P2_EXC_A_01 = 5892206; + static constexpr auto BNPC_P3_ARC_A_01 = 5892207; + static constexpr auto BNPC_P3_ARC_B_01 = 5892208; + static constexpr auto BNPC_P3_PGL_A_01 = 5892209; + static constexpr auto BNPC_P3_LNC_B_01 = 5892210; + static constexpr auto BNPC_P3_GLA_A_01 = 5892211; + static constexpr auto BNPC_P3_EXC_B_01 = 5892212; + static constexpr auto BNPC_P4_GLA_READER = 5892213; + static constexpr auto BNPC_P4_EXC_A_01 = 5892214; + static constexpr auto BNPC_P4_EXC_B_01 = 5892215; + static constexpr auto BNPC_P4_EXC_A_02 = 5892216; + static constexpr auto BNPC_P4_LNC_B_01 = 5892217; + static constexpr auto BNPC_P4_LNC_B_02 = 5892218; + static constexpr auto BNPC_P4_ARC_B_01 = 5892219; + static constexpr auto BNPC_P4_GLA_A_01 = 5892220; + static constexpr auto BNPC_P4_GLA_B_01 = 5892221; + static constexpr auto BNPC_P4_PGL_B_01 = 5892222; + static constexpr auto BNPC_P4_LNC_A_01 = 5892223; + static constexpr auto BNPC_P4_ARC_A_01 = 5892224; + static constexpr auto BNPC_P4_ARC_B_02 = 5892225; + static constexpr auto PR_P4_READER_MOVE = 5934824; + static constexpr auto YELL_P4_GLA_READER_MOVEEND = 2728; + static constexpr auto YELL_P4_GLA_READER_LOOP = 3589; + static constexpr auto YELL_P4_GLA_READER_DEAD = 3342; + static constexpr auto BGM_LASTHALF = 91; + static constexpr auto LOC_ACTOR0 = 1014593; + static constexpr auto LOC_ACTOR1 = 1015435; + static constexpr auto LOC_ACTOR2 = 1014617; + static constexpr auto LOC_ACTOR3 = 1015433; + static constexpr auto LOC_ACTOR4 = 1015434; + static constexpr auto LOC_MARKER_01 = 5959858; + static constexpr auto CUT_SCENE_01 = 995; + static constexpr auto BGM_0 = 317; + static constexpr auto ACTION_GOAL_TRIGER1 = 3269; + static constexpr auto ACTION_GOAL_TRIGER2 = 4777; + +public: + Absolution() : Sapphire::ScriptAPI::QuestBattleScript( 139 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( Absolution ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/AgainsttheShadow.cpp b/src/scripts/instances/questbattles/AgainsttheShadow.cpp new file mode 100644 index 00000000..9ba8cd44 --- /dev/null +++ b/src/scripts/instances/questbattles/AgainsttheShadow.cpp @@ -0,0 +1,47 @@ +#include +#include + +using namespace Sapphire; + +class AgainsttheShadow : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_WIDARGELT = 5886248; + static constexpr auto BNPC_P1_KEGEMNK_01 = 5886249; + static constexpr auto BNPC_P1_KEGEMNK_02 = 5886250; + static constexpr auto BNPC_P1_ENERGY_01 = 5887413; + static constexpr auto BNPC_P1_ENERGY_02 = 5916107; + static constexpr auto ACTION_ENERGY_SUMMON = 1094; + static constexpr auto LOC_POP_0 = 5919819; + static constexpr auto LOC_POP_1 = 5919820; + static constexpr auto LOC_ACTOR_0 = 1014543; + static constexpr auto LOC_ACTOR_1 = 1014540; + static constexpr auto LOC_ACTOR_2 = 1014541; + static constexpr auto BGM_BATTLE = 107; + static constexpr auto LOC_ACTION1 = 1071; + static constexpr auto LOC_ACTION2 = 173; + static constexpr auto LOCKON_BY_ENERGY_BALL_THUNDER = 1; + +public: + AgainsttheShadow() : Sapphire::ScriptAPI::QuestBattleScript( 123 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( AgainsttheShadow ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/AlwaysBetonBlack.cpp b/src/scripts/instances/questbattles/AlwaysBetonBlack.cpp new file mode 100644 index 00000000..5842d6e2 --- /dev/null +++ b/src/scripts/instances/questbattles/AlwaysBetonBlack.cpp @@ -0,0 +1,50 @@ +#include +#include + +using namespace Sapphire; + +class AlwaysBetonBlack : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_1ST_A_01 = 4278135; + static constexpr auto INIT_P_POP_1ST_B_01 = 4278137; + static constexpr auto INIT_P_POP_1ST_C_01 = 4278138; + static constexpr auto INIT_POP_BOSS = 4278139; + static constexpr auto INIT_POP_2ND_VOIDGATE_A = 4278142; + static constexpr auto INIT_POP_2ND_VOIDGATE_B = 4278143; + static constexpr auto INIT_POP_3RD_VOIDGATE_C = 4278156; + static constexpr auto INIT_POP_3RD_C_01_RANDOM_POP = 4278157; + static constexpr auto INIT_POP_2ND_A_01_RANDOM_POP = 4278336; + static constexpr auto INIT_POP_2ND_B_01_RANDOM_POP = 4278337; + static constexpr auto INIT_ENPC_POP_01 = 4284477; + static constexpr auto CUT_START_NCUT = 344; + static constexpr auto CUT_END_NCUT = 345; + static constexpr auto QIB_YELL_01 = 1872; + static constexpr auto QIB_YELL_02 = 1873; + static constexpr auto QIB_YELL_03 = 1874; + static constexpr auto POP_RANGE_DAZA_MOVE = 4330432; + static constexpr auto JOB_STORY_MES = 3646; + +public: + AlwaysBetonBlack() : Sapphire::ScriptAPI::QuestBattleScript( 74 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( AlwaysBetonBlack ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/ABloodyReunion.cpp b/src/scripts/instances/questbattles/AnArtfortheLiving.cpp similarity index 62% rename from src/scripts/instances/questbattles/ABloodyReunion.cpp rename to src/scripts/instances/questbattles/AnArtfortheLiving.cpp index 11660d61..740aa386 100644 --- a/src/scripts/instances/questbattles/ABloodyReunion.cpp +++ b/src/scripts/instances/questbattles/AnArtfortheLiving.cpp @@ -1,17 +1,64 @@ #include -#include +#include using namespace Sapphire; -class ABloodyReunion : - public Sapphire::ScriptAPI::InstanceContentScript +class AnArtfortheLiving : public Sapphire::ScriptAPI::QuestBattleScript { +private: + static constexpr auto P_BNPC_YMHITRA = 6866618; + static constexpr auto P_BNPC_DANCINGWOLF = 6866648; + static constexpr auto P_BNPC_PRIMIE = 6894059; + static constexpr auto BNPC_WAVE1_SARI_01 = 6866660; + static constexpr auto BNPC_WAVE1_SARI_02 = 6866663; + static constexpr auto BNPC_WAVE1_SARI_03 = 6866664; + static constexpr auto BNPC_SUMMONINGSYSTEM = 6873449; + static constexpr auto BNPC_WAVE2_SARI_01 = 6894125; + static constexpr auto BNPC_WAVE2_SARI_02 = 6894126; + static constexpr auto BNPC_WAVE2_SARI_03 = 6894127; + static constexpr auto BNPC_WAVE2_SARI_04 = 6894130; + static constexpr auto BNPC_WAVE2_SARI_05 = 6894131; + static constexpr auto BNPC_WAVE2_SARI_06 = 6894132; + static constexpr auto CHANNELING_INVINCIBLE = 2; + static constexpr auto STATUS_INVINCIBLE = 1721; + static constexpr auto ACTION_BOSS_SUMMON = 8632; + static constexpr auto PR_SARI_MOVE_01 = 6894164; + static constexpr auto PR_SARI_MOVE_02 = 6894165; + static constexpr auto QIB_YELL_01 = 4809; + static constexpr auto QIB_YELL_02 = 4810; + static constexpr auto QIB_YELL_03 = 4811; + static constexpr auto QIB_YELL_04 = 4812; + static constexpr auto QIB_YELL_07 = 5027; + static constexpr auto QIB_YELL_08 = 5028; + static constexpr auto BNPC_NAME_SARI = 6709; + static constexpr auto BNPC_WAVE3_MINOTAUR = 6894732; + static constexpr auto BNPC_WAVE3_SARI_01 = 6894881; + static constexpr auto BNPC_WAVE3_SARI_02 = 6894883; + static constexpr auto BNPC_WAVE4_HOLY_MACHINE = 6894885; + static constexpr auto BNPC_WAVE4_SARI_01 = 6894887; + static constexpr auto BNPC_WAVE4_SARI_02 = 6894889; + static constexpr auto LOCKON_LANDMINE = 31; + static constexpr auto BNPC_TOUMEI_SET_LANDMINE = 6895057; + static constexpr auto BNPC_LANDMINE = 6895056; + static constexpr auto ACTION_SET_LANDMINE = 8639; + static constexpr auto BNPCTYPE_LANDMINE = 7381; + static constexpr auto BNPCTYPE_TOUMEI_LANDMINE = 7383; + static constexpr auto BNPC_WAVE5_MECHA_HYDRA = 6895383; + static constexpr auto BNPC_WAVE5_SARI_01 = 6895384; + static constexpr auto BNPC_WAVE5_SARI_02 = 6895385; + static constexpr auto BNPC_BROKEN_SARI_01 = 6895455; + static constexpr auto BNPC_BROKEN_SARI_02 = 6895457; + static constexpr auto BNPC_BROKEN_SARI_03 = 6895458; + static constexpr auto BNPC_BROKEN_SARI_04 = 6895459; + static constexpr auto BNPCBASE_SARI = 7350; + static constexpr auto BNPCBASE_HOLY_MACHINE = 7382; + static constexpr auto BNPCBASE_MECHA_HYDRA = 7384; + public: - ABloodyReunion() : - Sapphire::ScriptAPI::InstanceContentScript( 5002 ) + AnArtfortheLiving() : Sapphire::ScriptAPI::QuestBattleScript( 171 ) { } - void onInit( InstanceContent& instance ) override + void onInit( QuestBattle& instance ) override { instance.registerEObj( "unknown_0", 2002735, 0, 4, { -133.497498f, 394.924286f, -295.299713f }, 1.400000f, -1.570451f ); instance.registerEObj( "sgpl_w_lvd_b0118_col_char", 2002872, 5786705, 4, { -140.602203f, 394.529388f, -295.997314f }, 1.000000f, 0.000000f ); @@ -54,12 +101,12 @@ public: } - void onUpdate( InstanceContent& instance, uint32_t currTime ) override + void onUpdate( QuestBattle& instance, uint32_t currTime ) override { } - void onEnterTerritory( InstanceContent& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, uint16_t param2 ) override { @@ -67,4 +114,4 @@ public: }; -EXPOSE_SCRIPT( ABloodyReunion ); \ No newline at end of file +EXPOSE_SCRIPT( AnArtfortheLiving ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/AnEgistentialCrisis.cpp b/src/scripts/instances/questbattles/AnEgistentialCrisis.cpp new file mode 100644 index 00000000..ae570f68 --- /dev/null +++ b/src/scripts/instances/questbattles/AnEgistentialCrisis.cpp @@ -0,0 +1,156 @@ +#include +#include + +using namespace Sapphire; + +class AnEgistentialCrisis : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto P_BNPC_YMHITRA = 7585499; + static constexpr auto P_BNPC_DANCINGWOLF = 7585497; + static constexpr auto P_BNPC_SMN_A = 7585494; + static constexpr auto P_BNPC_SMN_B = 7585495; + static constexpr auto P_BNPC_SMN_C = 7585496; + static constexpr auto P_BNPC_PRIMIE = 7585500; + static constexpr auto BNPC_SARI = 7585498; + static constexpr auto QIB_YELL_01 = 4626; + static constexpr auto QIB_YELL_02 = 4627; + static constexpr auto QIB_YELL_03 = 4628; + static constexpr auto QIB_YELL_04 = 4629; + static constexpr auto QIB_YELL_05 = 4630; + static constexpr auto QIB_YELL_06 = 4631; + static constexpr auto QIB_YELL_07 = 4847; + static constexpr auto QIB_YELL_08 = 4848; + static constexpr auto QIB_YELL_09 = 4849; + static constexpr auto QIB_YELL_10 = 4850; + static constexpr auto PR_PRIMIE_MOVE_01 = 7585501; + static constexpr auto PR_PRIMIE_MOVE_02 = 7585510; + static constexpr auto PR_PRIMIE_MOVE_03 = 7585515; + static constexpr auto PR_YMHITRA_MOVE_01 = 7585502; + static constexpr auto PR_YMHITRA_MOVE_02 = 7585509; + static constexpr auto PR_YMHITRA_MOVE_03 = 7585514; + static constexpr auto BEHAVIOR_YMHITRA_01 = 30932; + static constexpr auto BEHAVIOR_YMHITRA_02 = 30933; + static constexpr auto BNPC_PACK1_01 = 7585503; + static constexpr auto BNPC_PACK1_02 = 7585504; + static constexpr auto BNPC_PACK1_03 = 7585505; + static constexpr auto BNPC_PACK1_04 = 7585506; + static constexpr auto BNPC_PACK1_05 = 7585507; + static constexpr auto BNPC_PACK1_06 = 7585508; + static constexpr auto BNPC_PACK2_01 = 7585511; + static constexpr auto BNPC_PACK2_02 = 7585512; + static constexpr auto BNPC_PACK2_03 = 7585513; + static constexpr auto BNPC_PACK3_01 = 7585516; + static constexpr auto BNPC_PACK3_02 = 7585517; + static constexpr auto ER_AROUND_BOSS = 7585518; + static constexpr auto BNPC_TOUMEI_A = 7585519; + static constexpr auto BNPC_TOUMEI_B_01 = 7585520; + static constexpr auto BNPC_TOUMEI_B_02 = 7585521; + static constexpr auto BNPC_TOUMEI_B_03 = 7585522; + static constexpr auto BNPC_TOUMEI_B_04 = 7585523; + static constexpr auto BNPC_DIVE_WYVERN_01 = 7585524; + static constexpr auto BNPC_DIVE_WYVERN_02 = 7585525; + static constexpr auto BNPC_DIVE_WYVERN_03 = 7585526; + static constexpr auto BNPC_DIVE_WYVERN_04 = 7585527; + static constexpr auto BNPC_DIVE_WYVERN_05 = 7585528; + static constexpr auto ACTION_MEGA_FLARE = 8564; + static constexpr auto ACTION_MEGA_FLARE_STRIKE = 8565; + static constexpr auto ACTION_TRANCE_BAHAMUT = 8566; + static constexpr auto BGM_BOSSBATTLE = 39; + static constexpr auto BNPC_BOSS_ADD_WYVERN_01 = 7585529; + static constexpr auto BNPC_BOSS_ADD_WYVERN_02 = 7585530; + static constexpr auto BNPC_BOSS_ADD_WYVERN_03 = 7585531; + static constexpr auto BNPCTYPE_ADD_WYVERN = 7319; + static constexpr auto BNPC_BOSS_GUARD_01 = 7585532; + static constexpr auto BNPC_BOSS_GUARD_02 = 7585533; + static constexpr auto ER_AROUND_SMN_B = 7585557; + +public: + AnEgistentialCrisis() : Sapphire::ScriptAPI::QuestBattleScript( 170 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "sgvf_w_lvd_b0286", 2005325, 7585378, 4, { 187.869202f, 8.108603f, 250.084000f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "sgvf_w_lvd_b0286_1", 2005326, 7585380, 4, { 57.053249f, 17.165449f, -249.904694f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "sgvf_w_lvd_b0286_2", 2005327, 7585382, 4, { -314.464996f, 41.657890f, 126.635803f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "AllagantomelithA1", 2005338, 7585392, 4, { 18.148529f, 18.849100f, 267.572693f }, 0.991760f, 0.000048f ); + // States -> ma_off (id: 4) ma_on (id: 5) ma_off2on (id: 8) ma_on2off (id: 9) ma_on_r (id: 10) ma_off2on_r (id: 11) ma_on_r2 (id: 12) ma_off2on_r2 (id: 13) ma_on2off_r (id: 24) ma_on2off_r2 (id: 30) + instance.registerEObj( "sgbg_s2p1_q1_ocup1", 2005502, 7585393, 4, { 18.255230f, 16.804850f, 267.227814f }, 1.000000f, 0.000000f ); + // States -> cap_ser_off2on (id: 5) cap_ser_on (id: 6) cap_off (id: 7) cap_on2off (id: 8) cap_fla_on (id: 9) cap_fla_off2on (id: 10) cap_sto_on (id: 11) cap_sto_off2on (id: 12) + instance.registerEObj( "AllagantomelithA2", 2005339, 7585396, 4, { 8.120948f, 21.013821f, 167.772705f }, 0.991760f, 0.000048f ); + // States -> ma_off (id: 4) ma_on (id: 5) ma_off2on (id: 8) ma_on2off (id: 9) ma_on_r (id: 10) ma_off2on_r (id: 11) ma_on_r2 (id: 12) ma_off2on_r2 (id: 13) ma_on2off_r (id: 24) ma_on2off_r2 (id: 30) + instance.registerEObj( "sgbg_s2p1_q1_ocup1_1", 2005503, 7585397, 4, { 8.225257f, 19.763350f, 167.312195f }, 1.000000f, 0.000000f ); + // States -> cap_ser_off2on (id: 5) cap_ser_on (id: 6) cap_off (id: 7) cap_on2off (id: 8) cap_fla_on (id: 9) cap_fla_off2on (id: 10) cap_sto_on (id: 11) cap_sto_off2on (id: 12) + instance.registerEObj( "AllagantomelithA3", 2005340, 7585400, 4, { 96.414833f, 34.135899f, 108.177002f }, 0.991760f, 0.000048f ); + // States -> ma_off (id: 4) ma_on (id: 5) ma_off2on (id: 8) ma_on2off (id: 9) ma_on_r (id: 10) ma_off2on_r (id: 11) ma_on_r2 (id: 12) ma_off2on_r2 (id: 13) ma_on2off_r (id: 24) ma_on2off_r2 (id: 30) + instance.registerEObj( "sgbg_s2p1_q1_ocup1_2", 2005504, 7585401, 4, { 96.322990f, 33.288559f, 107.972397f }, 1.000000f, 0.000000f ); + // States -> cap_ser_off2on (id: 5) cap_ser_on (id: 6) cap_off (id: 7) cap_on2off (id: 8) cap_fla_on (id: 9) cap_fla_off2on (id: 10) cap_sto_on (id: 11) cap_sto_off2on (id: 12) + instance.registerEObj( "AllagantomelithA4", 2005341, 7585404, 4, { 200.335693f, 30.775141f, 68.234734f }, 0.991760f, 0.000048f ); + // States -> ma_off (id: 4) ma_on (id: 5) ma_off2on (id: 8) ma_on2off (id: 9) ma_on_r (id: 10) ma_off2on_r (id: 11) ma_on_r2 (id: 12) ma_off2on_r2 (id: 13) ma_on2off_r (id: 24) ma_on2off_r2 (id: 30) + instance.registerEObj( "sgbg_s2p1_q1_ocup1_3", 2005505, 7585405, 4, { 200.310593f, 29.688540f, 68.217537f }, 1.000000f, 0.000000f ); + // States -> cap_ser_off2on (id: 5) cap_ser_on (id: 6) cap_off (id: 7) cap_on2off (id: 8) cap_fla_on (id: 9) cap_fla_off2on (id: 10) cap_sto_on (id: 11) cap_sto_off2on (id: 12) + instance.registerEObj( "AllagantomelithB1", 2005342, 7585408, 4, { 157.733093f, 4.437783f, -49.087921f }, 0.991760f, 0.000048f ); + // States -> ma_off (id: 4) ma_on (id: 5) ma_off2on (id: 8) ma_on2off (id: 9) ma_on_r (id: 10) ma_off2on_r (id: 11) ma_on_r2 (id: 12) ma_off2on_r2 (id: 13) ma_on2off_r (id: 24) ma_on2off_r2 (id: 30) + instance.registerEObj( "sgbg_s2p1_q1_ocup1_4", 2005506, 7585409, 4, { 157.696793f, 2.356474f, -49.159088f }, 1.000000f, 0.000000f ); + // States -> cap_ser_off2on (id: 5) cap_ser_on (id: 6) cap_off (id: 7) cap_on2off (id: 8) cap_fla_on (id: 9) cap_fla_off2on (id: 10) cap_sto_on (id: 11) cap_sto_off2on (id: 12) + instance.registerEObj( "AllagantomelithB2", 2005343, 7585412, 4, { 51.290970f, 32.733749f, -82.673607f }, 0.991760f, 0.000000f ); + // States -> ma_off (id: 4) ma_on (id: 5) ma_off2on (id: 8) ma_on2off (id: 9) ma_on_r (id: 10) ma_off2on_r (id: 11) ma_on_r2 (id: 12) ma_off2on_r2 (id: 13) ma_on2off_r (id: 24) ma_on2off_r2 (id: 30) + instance.registerEObj( "sgbg_s2p1_q1_ocup1_5", 2005507, 7585413, 4, { 51.310070f, 31.154039f, -82.935127f }, 1.000000f, 0.000000f ); + // States -> cap_ser_off2on (id: 5) cap_ser_on (id: 6) cap_off (id: 7) cap_on2off (id: 8) cap_fla_on (id: 9) cap_fla_off2on (id: 10) cap_sto_on (id: 11) cap_sto_off2on (id: 12) + instance.registerEObj( "AllagantomelithB3", 2005344, 7585416, 4, { 74.829063f, 13.976150f, -16.412930f }, 0.991760f, 0.000048f ); + // States -> ma_off (id: 4) ma_on (id: 5) ma_off2on (id: 8) ma_on2off (id: 9) ma_on_r (id: 10) ma_off2on_r (id: 11) ma_on_r2 (id: 12) ma_off2on_r2 (id: 13) ma_on2off_r (id: 24) ma_on2off_r2 (id: 30) + instance.registerEObj( "sgbg_s2p1_q1_ocup1_6", 2005508, 7585417, 4, { 74.846779f, 11.294810f, -16.719721f }, 1.000000f, 0.000000f ); + // States -> cap_ser_off2on (id: 5) cap_ser_on (id: 6) cap_off (id: 7) cap_on2off (id: 8) cap_fla_on (id: 9) cap_fla_off2on (id: 10) cap_sto_on (id: 11) cap_sto_off2on (id: 12) + instance.registerEObj( "AllagantomelithB4", 2005345, 7585420, 4, { -47.222630f, 31.708929f, -92.240723f }, 0.991760f, 0.000048f ); + // States -> ma_off (id: 4) ma_on (id: 5) ma_off2on (id: 8) ma_on2off (id: 9) ma_on_r (id: 10) ma_off2on_r (id: 11) ma_on_r2 (id: 12) ma_off2on_r2 (id: 13) ma_on2off_r (id: 24) ma_on2off_r2 (id: 30) + instance.registerEObj( "sgbg_s2p1_q1_ocup1_7", 2005509, 7585421, 4, { -47.175869f, 29.272760f, -92.573776f }, 1.000000f, 0.000000f ); + // States -> cap_ser_off2on (id: 5) cap_ser_on (id: 6) cap_off (id: 7) cap_on2off (id: 8) cap_fla_on (id: 9) cap_fla_off2on (id: 10) cap_sto_on (id: 11) cap_sto_off2on (id: 12) + instance.registerEObj( "AllagantomelithC2", 2005346, 7585424, 4, { -163.868805f, 46.920021f, 1.751138f }, 0.991760f, 0.000048f ); + // States -> ma_off (id: 4) ma_on (id: 5) ma_off2on (id: 8) ma_on2off (id: 9) ma_on_r (id: 10) ma_off2on_r (id: 11) ma_on_r2 (id: 12) ma_off2on_r2 (id: 13) ma_on2off_r (id: 24) ma_on2off_r2 (id: 30) + instance.registerEObj( "sgbg_s2p1_q1_ocup1_8", 2005510, 7585425, 4, { -164.055405f, 45.557041f, 1.093665f }, 1.000000f, 0.000000f ); + // States -> cap_ser_off2on (id: 5) cap_ser_on (id: 6) cap_off (id: 7) cap_on2off (id: 8) cap_fla_on (id: 9) cap_fla_off2on (id: 10) cap_sto_on (id: 11) cap_sto_off2on (id: 12) + instance.registerEObj( "AllagantomelithD2", 2005347, 7585428, 4, { -32.930420f, 18.645050f, 19.141041f }, 0.991760f, 0.000048f ); + // States -> ma_off (id: 4) ma_on (id: 5) ma_off2on (id: 8) ma_on2off (id: 9) ma_on_r (id: 10) ma_off2on_r (id: 11) ma_on_r2 (id: 12) ma_off2on_r2 (id: 13) ma_on2off_r (id: 24) ma_on2off_r2 (id: 30) + instance.registerEObj( "sgbg_s2p1_q1_ocup1_9", 2005511, 7585429, 4, { -32.986580f, 17.328630f, 18.981670f }, 1.000000f, 0.000000f ); + // States -> cap_ser_off2on (id: 5) cap_ser_on (id: 6) cap_off (id: 7) cap_on2off (id: 8) cap_fla_on (id: 9) cap_fla_off2on (id: 10) cap_sto_on (id: 11) cap_sto_off2on (id: 12) + instance.registerEObj( "AllagantomelithD3", 2005348, 7585432, 4, { -62.119572f, 40.360111f, 48.813599f }, 0.991760f, 0.000048f ); + // States -> ma_off (id: 4) ma_on (id: 5) ma_off2on (id: 8) ma_on2off (id: 9) ma_on_r (id: 10) ma_off2on_r (id: 11) ma_on_r2 (id: 12) ma_off2on_r2 (id: 13) ma_on2off_r (id: 24) ma_on2off_r2 (id: 30) + instance.registerEObj( "sgbg_s2p1_q1_ocup1_10", 2005512, 7585433, 4, { -62.187111f, 38.493420f, 48.440479f }, 1.000000f, 0.000000f ); + // States -> cap_ser_off2on (id: 5) cap_ser_on (id: 6) cap_off (id: 7) cap_on2off (id: 8) cap_fla_on (id: 9) cap_fla_off2on (id: 10) cap_sto_on (id: 11) cap_sto_off2on (id: 12) + instance.registerEObj( "AllagantomelithC4", 2005349, 7585436, 4, { -148.508499f, 43.280338f, 161.458603f }, 0.991760f, 0.000048f ); + // States -> ma_off (id: 4) ma_on (id: 5) ma_off2on (id: 8) ma_on2off (id: 9) ma_on_r (id: 10) ma_off2on_r (id: 11) ma_on_r2 (id: 12) ma_off2on_r2 (id: 13) ma_on2off_r (id: 24) ma_on2off_r2 (id: 30) + instance.registerEObj( "sgbg_s2p1_q1_ocup1_11", 2005513, 7585437, 4, { -148.519196f, 41.333549f, 161.070908f }, 1.000000f, 0.000000f ); + // States -> cap_ser_off2on (id: 5) cap_ser_on (id: 6) cap_off (id: 7) cap_on2off (id: 8) cap_fla_on (id: 9) cap_fla_off2on (id: 10) cap_sto_on (id: 11) cap_sto_off2on (id: 12) + instance.registerEObj( "AllagantomelithC3", 2005350, 7585440, 4, { -167.072998f, 26.487570f, 71.059898f }, 0.991760f, 0.088708f ); + // States -> ma_off (id: 4) ma_on (id: 5) ma_off2on (id: 8) ma_on2off (id: 9) ma_on_r (id: 10) ma_off2on_r (id: 11) ma_on_r2 (id: 12) ma_off2on_r2 (id: 13) ma_on2off_r (id: 24) ma_on2off_r2 (id: 30) + instance.registerEObj( "sgbg_s2p1_q1_ocup1_12", 2005514, 7585441, 4, { -167.089294f, 24.449400f, 70.683212f }, 1.000000f, 0.000000f ); + // States -> cap_ser_off2on (id: 5) cap_ser_on (id: 6) cap_off (id: 7) cap_on2off (id: 8) cap_fla_on (id: 9) cap_fla_off2on (id: 10) cap_sto_on (id: 11) cap_sto_off2on (id: 12) + instance.registerEObj( "AllagantomelithC1", 2005351, 7585444, 4, { -120.087196f, 28.019110f, -46.859772f }, 0.991760f, 0.000048f ); + // States -> ma_off (id: 4) ma_on (id: 5) ma_off2on (id: 8) ma_on2off (id: 9) ma_on_r (id: 10) ma_off2on_r (id: 11) ma_on_r2 (id: 12) ma_off2on_r2 (id: 13) ma_on2off_r (id: 24) ma_on2off_r2 (id: 30) + instance.registerEObj( "sgbg_s2p1_q1_ocup1_13", 2005515, 7585445, 4, { -120.122597f, 27.122120f, -47.061981f }, 1.000000f, 0.000000f ); + // States -> cap_ser_off2on (id: 5) cap_ser_on (id: 6) cap_off (id: 7) cap_on2off (id: 8) cap_fla_on (id: 9) cap_fla_off2on (id: 10) cap_sto_on (id: 11) cap_sto_off2on (id: 12) + instance.registerEObj( "AllagantomelithD1", 2005352, 7585448, 4, { 15.841110f, 19.797770f, 101.591301f }, 0.991760f, 0.000048f ); + // States -> ma_off (id: 4) ma_on (id: 5) ma_off2on (id: 8) ma_on2off (id: 9) ma_on_r (id: 10) ma_off2on_r (id: 11) ma_on_r2 (id: 12) ma_off2on_r2 (id: 13) ma_on2off_r (id: 24) ma_on2off_r2 (id: 30) + instance.registerEObj( "sgbg_s2p1_q1_ocup1_14", 2005516, 7585449, 4, { 15.812600f, 18.748220f, 101.435699f }, 1.000000f, 0.000000f ); + // States -> cap_ser_off2on (id: 5) cap_ser_on (id: 6) cap_off (id: 7) cap_on2off (id: 8) cap_fla_on (id: 9) cap_fla_off2on (id: 10) cap_sto_on (id: 11) cap_sto_off2on (id: 12) + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( AnEgistentialCrisis ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/AnIlluminatiIncident.cpp b/src/scripts/instances/questbattles/AnIlluminatiIncident.cpp new file mode 100644 index 00000000..cd906b84 --- /dev/null +++ b/src/scripts/instances/questbattles/AnIlluminatiIncident.cpp @@ -0,0 +1,103 @@ +#include +#include + +using namespace Sapphire; + +class AnIlluminatiIncident : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_COMPANION_BRAYFLOX = 5886492; + static constexpr auto BNPC_COMPANION_ALPHINAUD = 5886496; + static constexpr auto BNPC_COMPANION_YSHTOLA = 5886497; + static constexpr auto BNPC_ENEMY_LEADER_GOBLIN_01 = 5886499; + static constexpr auto BNPC_ENEMY_FIGHTER_GOBLIN_02 = 5886500; + static constexpr auto BNPC_ENEMY_FIGHTER_GOBLIN_03 = 5886501; + static constexpr auto BNPC_ENEMY_SNIPER_GOBLIN_04 = 5886502; + static constexpr auto BNPC_SUMMON_CARBUNCLE = 5886508; + static constexpr auto BNPC_OBJ_SMALL_BOMB_01 = 5886511; + static constexpr auto BNPC_OBJ_SMALL_BOMB_02 = 5886512; + static constexpr auto BNPC_OBJ_SMALL_BOMB_03 = 5886513; + static constexpr auto BNPC_OBJ_SMALL_BOMB_04 = 5886514; + static constexpr auto BNPC_OBJ_SMALL_BOMB_05 = 5886515; + static constexpr auto BNPC_OBJ_SMALL_BOMB_06 = 5886516; + static constexpr auto BNPC_OBJ_SMALL_BOMB_07 = 5886517; + static constexpr auto BNPC_OBJ_SMALL_BOMB_08 = 5886518; + static constexpr auto BNPC_OBJ_SMALL_BOMB_09 = 5886519; + static constexpr auto BNPC_OBJ_SMALL_BOMB_10 = 5886520; + static constexpr auto BNPC_OBJ_SMALL_BOMB_11 = 5886521; + static constexpr auto BNPC_ENEMY_FIGHTER_GOBLIN_05 = 5886545; + static constexpr auto BNPC_ENEMY_FIGHTER_GOBLIN_06 = 5886547; + static constexpr auto BNPC_ENEMY_SNIPER_GOBLIN_07 = 5886548; + static constexpr auto BNPC_ENEMY_SNIPER_GOBLIN_08 = 5886549; + static constexpr auto BNPC_ENEMY_FIGHTER_GOBLIN_09 = 5886550; + static constexpr auto BNPC_ENEMY_GLIDER_GOBLIN_10 = 5886551; + static constexpr auto BNPC_ENEMY_GLIDER_GOBLIN_11 = 5886552; + static constexpr auto BNPC_ENEMY_FIGHTER_GOBLIN_12 = 5886563; + static constexpr auto BNPC_ENEMY_SNIPER_GOBLIN_13 = 5886564; + static constexpr auto BNPC_ENEMY_FIGHTER_GOBLIN_14 = 5886565; + static constexpr auto BNPC_ENEMY_SNIPER_GOBLIN_15 = 5886566; + static constexpr auto BNPC_ENEMY_FIGHTER_GOBLIN_16 = 5886568; + static constexpr auto BNPC_ENEMY_SNIPER_GOBLIN_17 = 5886569; + static constexpr auto BNPC_ENEMY_GLIDER_GOBLIN_18 = 5886570; + static constexpr auto BNPC_ENEMY_MACHINE_GOBLIN_19 = 5886571; + static constexpr auto BNPC_OBJ_BIG_BOMB_01 = 5886573; + static constexpr auto BNPC_OBJ_BIG_BOMB_02 = 5886578; + static constexpr auto BNPC_OBJ_BIG_BOMB_03 = 5886582; + static constexpr auto BNPC_OBJ_BIG_BOMB_04 = 5886583; + static constexpr auto BNPC_OBJ_BIG_BOMB_05 = 5886585; + static constexpr auto BNPC_OBJ_BIG_BOMB_06 = 5886587; + static constexpr auto NPC_YELL_YSHTOLA_01 = 2637; + static constexpr auto NPC_YELL_YSHTOLA_02 = 2638; + static constexpr auto NPC_YELL_YSHTOLA_03 = 2639; + static constexpr auto NPC_YELL_YSHTOLA_04 = 2781; + static constexpr auto NPC_YELL_YSHTOLA_05 = 2782; + static constexpr auto ACTION_BOMB_DISPERSAL = 1933; + static constexpr auto ACTION_YSHTOLA_SPIRITUAL_RAY = 4023; + static constexpr auto STATUS_PARAM_DEBUFF_YSHTOLA_SPIRITUAL_RAY = 1702; + static constexpr auto DEF_ACTION_SUMMON_PET_BNPC = 4785; + static constexpr auto LOC_POS_ACTOR0 = 5919735; + static constexpr auto LOC_POS_ACTOR1 = 5919743; + static constexpr auto LOC_POS_ACTOR2 = 5919747; + static constexpr auto LOC_POS_ACTOR100 = 5919760; + static constexpr auto LOC_ACTOR0 = 1011887; + static constexpr auto LOC_ACTOR1 = 1011889; + static constexpr auto LOC_ACTOR2 = 1012487; + static constexpr auto LOC_ACTOR3 = 1012488; + static constexpr auto LOC_ACTOR4 = 1012489; + static constexpr auto LOC_ACTOR5 = 1012490; + static constexpr auto LOC_ACTOR6 = 1012491; + static constexpr auto ACTION_TIMELINE_EVENT_TALK_DEMIHUMAN = 949; + static constexpr auto ACTION_TIMELINE_EVENT_SIGH = 4229; + static constexpr auto ACTION_TIMELINE_EMOTE_GROUND_LOOP = 654; + static constexpr auto LOC_BGM0 = 113; + static constexpr auto LOC_POS_CAM0 = 5922528; + static constexpr auto LINE_VOICE_YSHTOLA_002 = 8201093; + static constexpr auto LINE_VOICE_YSHTOLA_006 = 8201097; + static constexpr auto LINE_VOICE_YSHTOLA_005 = 8201096; + static constexpr auto NPC_YELL_YSHTOLA_VOICE_002 = 3485; + static constexpr auto NPC_YELL_YSHTOLA_VOICE_006 = 3489; + static constexpr auto NPC_YELL_YSHTOLA_VOICE_005 = 3488; + +public: + AnIlluminatiIncident() : Sapphire::ScriptAPI::QuestBattleScript( 112 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( AnIlluminatiIncident ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/AndMyAxe.cpp b/src/scripts/instances/questbattles/AndMyAxe.cpp new file mode 100644 index 00000000..8b03dd75 --- /dev/null +++ b/src/scripts/instances/questbattles/AndMyAxe.cpp @@ -0,0 +1,91 @@ +#include +#include + +using namespace Sapphire; + +class AndMyAxe : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_CURIOUSGORGE_01 = 5821944; + static constexpr auto BNPC_WHEISKAET_01 = 5821948; + static constexpr auto BNPC_BROKENMOUNTAIN_01 = 5821952; + static constexpr auto BNPC_EYNZAHR_01 = 5821946; + static constexpr auto BNPC_1T_SOL_01 = 5821959; + static constexpr auto BNPC_1T_SOL_02 = 5821960; + static constexpr auto BNPC_1T_LNC_01 = 5821966; + static constexpr auto BNPC_1T_LNC_02 = 5821967; + static constexpr auto BNPC_1T_LNC_03 = 5821973; + static constexpr auto BNPC_1T_LNC_04 = 5821976; + static constexpr auto BNPC_1T_FIG_01 = 5821963; + static constexpr auto BNPC_1T_FIG_02 = 5821964; + static constexpr auto BNPC_1T_MAG_01 = 5821968; + static constexpr auto BNPC_1T_MAG_02 = 5821971; + static constexpr auto BNPC_2T_SOL_01 = 5822009; + static constexpr auto BNPC_2T_FIG_01 = 5822010; + static constexpr auto BNPC_2T_LNC_01 = 5822012; + static constexpr auto BNPC_2T_LNC_02 = 5822013; + static constexpr auto BNPC_2T_MAG_01 = 5822014; + static constexpr auto BNPC_3T_KARLBOSS_01 = 5822020; + static constexpr auto BNPC_3T_INVI_01 = 5822027; + static constexpr auto BNPC_3T_SAHBOSS_01 = 5822030; + static constexpr auto BNPC_4T_SOUL_01 = 5822038; + static constexpr auto BNPC_4T_SOUL_02 = 5822039; + static constexpr auto BNPC_4T_SOUL_03 = 5822040; + static constexpr auto BNPC_4T_SOUL_04 = 5822041; + static constexpr auto BNPC_4T_SOUL_05 = 5822042; + static constexpr auto BNPC_4T_SOUL_06 = 5822043; + static constexpr auto BNPC_4T_SOUL_07 = 5822044; + static constexpr auto BNPC_4T_SOUL_08 = 5822045; + static constexpr auto WARP_01 = 5827124; + static constexpr auto BGM_BOSS_BATTLE = 91; + static constexpr auto LOGMESSAGE_01 = 3204; + static constexpr auto LOGMESSAGE_02 = 2099; + static constexpr auto BNPCBASE_GENSHO_SOUL = 4157; + static constexpr auto BNPCBASE_TOUMEI = 4146; + static constexpr auto DEF_ACTION_KARA_HASHA = 3058; + static constexpr auto DEF_ACTION_KARA_CHAKUDAN = 4749; + static constexpr auto STATUS_MARKING = 420; + static constexpr auto LOCKON_FOR_MARKING = 8; + static constexpr auto DEF_ACTION_MARKING = 4002; + static constexpr auto STATUS_PARAM_MARKING = 1283; + static constexpr auto STATUS_PARAM_ANTI_MARKING = 1284; + static constexpr auto BNPCNAME_KARLBOSS = 4154; + static constexpr auto NCUT_01 = 934; + static constexpr auto LOC_ACTOR1 = 1014475; + static constexpr auto LOC_ACTOR2 = 1014476; + static constexpr auto LOC_ACTOR3 = 1014477; + static constexpr auto LOC_ACTOR4 = 1014478; + static constexpr auto LOC_POS1 = 5911693; + static constexpr auto LOC_ACTION1 = 1071; + static constexpr auto LOC_BGM1 = 39; + static constexpr auto BNPC_CURIOUSGORGE_02 = 5957444; + static constexpr auto BNPC_WHEISKAET_02 = 5957445; + static constexpr auto BNPC_BROKENMOUNTAIN_02 = 5957447; + static constexpr auto BNPC_EYNZAHR_02 = 5957446; + +public: + AndMyAxe() : Sapphire::ScriptAPI::QuestBattleScript( 103 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "Entrance", 2000182, 6228959, 5, { 457.583801f, 5.680784f, 280.512787f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "unknown_0", 2000608, 2807920, 4, { -95.322441f, -25.054260f, 61.518002f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( AndMyAxe ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/AppetiteforDestruction.cpp b/src/scripts/instances/questbattles/AppetiteforDestruction.cpp new file mode 100644 index 00000000..397daad2 --- /dev/null +++ b/src/scripts/instances/questbattles/AppetiteforDestruction.cpp @@ -0,0 +1,99 @@ +#include +#include + +using namespace Sapphire; + +class AppetiteforDestruction : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_COMPANION_WIDARGELT_01 = 5908791; + static constexpr auto BNPC_COMPANION_OTCHAKHA_01 = 5908792; + static constexpr auto BNPC_ENEMY_HRAHATIA_01 = 5908804; + static constexpr auto BNPC_ENEMY_PACK_A_MNK_01 = 5908820; + static constexpr auto BNPC_ENEMY_PACK_A_MNK_02 = 5908821; + static constexpr auto BNPC_ENEMY_PACK_A_MNK_03 = 5908822; + static constexpr auto BNPC_ENEMY_PACK_A_MNK_04 = 5908823; + static constexpr auto BNPC_ENEMY_PACK_B_MNK_01 = 5908838; + static constexpr auto BNPC_ENEMY_PACK_B_MNK_02 = 5908840; + static constexpr auto BNPC_COMPANION_WIDARGELT_02 = 5908845; + static constexpr auto BNPC_COMPANION_OTCHAKHA_02 = 5908847; + static constexpr auto BNPC_COMPANION_DZENTSA_01 = 5908849; + static constexpr auto BNPC_ENEMY_HRAHATIA_02 = 5908852; + static constexpr auto BNPC_ENEMY_PACK_C_MNK_01 = 5908854; + static constexpr auto BNPC_ENEMY_PACK_C_MNK_02 = 5908856; + static constexpr auto BNPC_ENEMY_PACK_C_MNK_03 = 5908857; + static constexpr auto BNPC_ENEMY_PACK_C_MNK_04 = 5908858; + static constexpr auto BNPC_ENEMY_PACK_C_MNK_05 = 5908860; + static constexpr auto BNPC_ENEMY_PACK_C_MNK_06 = 5908861; + static constexpr auto BNPC_ENEMY_POP_MNK_01 = 5908862; + static constexpr auto BNPC_ENEMY_POP_MNK_02 = 5915942; + static constexpr auto BNPC_ENEMY_POP_MNK_03 = 5915943; + static constexpr auto BNPC_ENEMY_POP_MNK_04 = 5915944; + static constexpr auto ENPC_DZENTSA_01 = 5908803; + static constexpr auto WARP_PC_POINT_01 = 5908843; + static constexpr auto LOGMESSAGE_SHADOW_CHAKURA = 3270; + static constexpr auto LOGMESSAGE_KAIHUKU = 3213; + static constexpr auto LOGMESSAGE_POWER_UP = 3271; + static constexpr auto BNPC_TYPE_MNK = 4653; + static constexpr auto MNK_POP_INTERVAL_1 = 20; + static constexpr auto CUT_SCENE_01 = 960; + static constexpr auto BNPC_ENEMY_ENERGY_BALL_THUNDER_01 = 5912441; + static constexpr auto BNPC_ENEMY_ENERGY_BALL_BLACK_01 = 5912448; + static constexpr auto BNPC_ENEMY_ENERGY_BALL_BLACK_02 = 5912449; + static constexpr auto BNPC_ENEMY_ENERGY_BALL_BLACK_03 = 5912450; + static constexpr auto BNPC_ACTION_SUMMON_ENERGY_BALL_THUNDER = 1094; + static constexpr auto BNPC_ACTION_SUMMON_ENERGY_BALL_BLACK = 4760; + static constexpr auto BNPC_ACTION_THUNDER_BALL_BURST = 1093; + static constexpr auto EOBJ_THUNDER_GRAUND = 5912535; + static constexpr auto STATUS_INFINITY_STACK_REGEN = 1743; + static constexpr auto STATUS_INFINITY_ATTACK_DAMAGE_UP = 1744; + static constexpr auto STATUS_THUNDER_MAGIC_DOT = 1745; + static constexpr auto BNPC_BASE_ENERGY_BALL_THUNDER = 4651; + static constexpr auto BNPC_BASE_ENERGY_BALL_BLACK = 4652; + static constexpr auto LOCKON_BY_ENERGY_BALL_THUNDER = 1; + static constexpr auto POP_RANGE_ENERGY_BALL_BLACK_01 = 5912707; + static constexpr auto POP_RANGE_ENERGY_BALL_BLACK_02 = 5912710; + static constexpr auto POP_RANGE_ENERGY_BALL_BLACK_03 = 5912712; + static constexpr auto POP_RANGE_ENERGY_BALL_BLACK_04 = 5912713; + static constexpr auto POP_RANGE_ENERGY_BALL_THUNDER_01 = 5912727; + static constexpr auto POP_RANGE_ENERGY_BALL_THUNDER_02 = 5912728; + static constexpr auto POP_RANGE_ENERGY_BALL_THUNDER_03 = 5912729; + static constexpr auto POP_RANGE_ENERGY_BALL_THUNDER_04 = 5912730; + static constexpr auto POP_RANGE_ENERGY_BALL_THUNDER_05 = 5912731; + static constexpr auto POP_RANGE_ENERGY_BALL_THUNDER_06 = 5912732; + static constexpr auto LOC_POP_0 = 5919784; + static constexpr auto LOC_POP_1 = 5919785; + static constexpr auto LOC_ACTOR_0 = 1014543; + static constexpr auto LOC_ACTOR_1 = 1014541; + static constexpr auto LOC_ACTOR_2 = 1014542; + static constexpr auto LOC_ACTOR_3 = 1014013; + static constexpr auto LOC_ACTOR_4 = 1014014; + static constexpr auto POP_RANGE_RESQUE_01 = 5927592; + static constexpr auto POP_RANGE_RESQUE_02 = 5927593; + static constexpr auto LOC_BGM_1 = 91; + static constexpr auto POP_RANGE_ENERGY_BALL_BLACK_05 = 5959843; + static constexpr auto POP_RANGE_ENERGY_BALL_BLACK_06 = 5959844; + +public: + AppetiteforDestruction() : Sapphire::ScriptAPI::QuestBattleScript( 132 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( AppetiteforDestruction ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/AsGoesLightSoGoesDarkness.cpp b/src/scripts/instances/questbattles/AsGoesLightSoGoesDarkness.cpp new file mode 100644 index 00000000..e0c6ead3 --- /dev/null +++ b/src/scripts/instances/questbattles/AsGoesLightSoGoesDarkness.cpp @@ -0,0 +1,177 @@ +#include +#include + +using namespace Sapphire; + +class AsGoesLightSoGoesDarkness : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto LOC_MARKER_01 = 6137635; + static constexpr auto LOC_MARKER_02 = 6137636; + static constexpr auto LOC_MARKER_03 = 6137639; + static constexpr auto LOC_MARKER_04 = 6148118; + static constexpr auto LOC_ACTOR0 = 1009751; + static constexpr auto LOC_ACTOR1 = 1012497; + static constexpr auto LOC_ACTOR2 = 1015886; + static constexpr auto LOC_ACTOR10 = 1015853; + static constexpr auto LOC_ACTOR11 = 1015854; + static constexpr auto LOC_ACTOR12 = 1015855; + static constexpr auto LOC_ACTOR13 = 1015856; + static constexpr auto LOC_ACTOR14 = 1015887; + static constexpr auto LOC_ACTOR15 = 1015888; + static constexpr auto LOC_ACTOR_POP_100 = 6147799; + static constexpr auto LOC_ACTOR_POP_101 = 6147800; + static constexpr auto LOC_ACTOR_POP_102 = 6147801; + static constexpr auto LOC_ACTOR_POP_103 = 6147802; + static constexpr auto LOC_ACTOR_POP_104 = 6147803; + static constexpr auto LOC_ACTOR_POP_110 = 6147805; + static constexpr auto LOC_ACTOR_POP_111 = 6147806; + static constexpr auto LOC_SE0 = 46; + static constexpr auto LOC_BGM0 = 316; + static constexpr auto P_BNPC_AYMERIC = 6149367; + static constexpr auto P_BNPC_ARTOIREL = 6149368; + static constexpr auto P_BNPC_THANCRED_01 = 6149369; + static constexpr auto P_BNPC_ALPHINAUD = 6149370; + static constexpr auto P_BNPC_YASHTOLA = 6149371; + static constexpr auto P_BNPC_AYMERIC_AFTER_LCUT = 6154014; + static constexpr auto P_BNPC_ARTOIREL_AFTER_LCUT = 6154015; + static constexpr auto BNPC_SORD_ELE_FEM_P1_A01 = 6149344; + static constexpr auto BNPC_PUGILIST_ELE_MALE_A02 = 6153943; + static constexpr auto BNPC_ARCHER_ELE_FEM_A03 = 6153944; + static constexpr auto BNPC_PUGILIST_HUM_MALE_A04 = 6160873; + static constexpr auto BNPC_ARCHER_ELE_FEM_A05 = 6160890; + static constexpr auto BNPC_ARCHER_ELE_FEM_B01 = 6160891; + static constexpr auto BNPC_PUGILIST_ELE_MALE_B02 = 6160879; + static constexpr auto BNPC_PUGILIST_HUM_MALE_B03 = 6160880; + static constexpr auto BNPC_SORD_ELE_MALE_P2_C01 = 6149347; + static constexpr auto BNPC_PUGILIST_ELE_MALE_C02 = 6160888; + static constexpr auto BNPC_THAUMATURGE_ELE_FEM_C03 = 6160889; + static constexpr auto BNPC_ARCHER_ELE_FEM_C04 = 6153938; + static constexpr auto BNPC_PUGILIST_ELE_MALE_C05 = 6153939; + static constexpr auto BNPC_PUGILIST_ELE_MALE_ADD01 = 6160943; + static constexpr auto BNPC_ARCHER_ELE_FEM_ADD02 = 6160942; + static constexpr auto BNPC_PUGILIST_HUM_MALE_ADD03 = 6153934; + static constexpr auto BNPC_THAUMATURGE_ELE_FEM_ADD04 = 6153935; + static constexpr auto BNPC_THAUMATURGE_ELE_FEM_D01 = 6153951; + static constexpr auto BNPC_PUGILIST_HUM_MALE_D03 = 6160894; + static constexpr auto BNPC_SORD_ELE_FEM_P3_E01 = 6149349; + static constexpr auto BNPC_ARCHER_ELE_FEM_E02 = 6160908; + static constexpr auto BNPC_ARCHER_ELE_FEM_E03 = 6160909; + static constexpr auto BNPC_SORD_ELE_MALE_LEADER = 6149353; + static constexpr auto BNPC_PUGILIST_HUM_MALE_F01 = 6160944; + static constexpr auto BNPC_THAUMATURGE_ELE_MALE_F02 = 6160945; + static constexpr auto BNPC_THAUMATURGE_ELE_MALE_G01 = 6160949; + static constexpr auto BNPC_ARCHER_ELE_FEM_H01 = 6163963; + static constexpr auto BNPC_THAUMATURGE_ELE_MALE_H02 = 6163964; + static constexpr auto BNPC_PUGILIST_HUM_MALE_H03 = 6163965; + static constexpr auto BNPC_ARCHER_ELE_FEM_H04 = 6163967; + static constexpr auto BNPC_HORSE_DOLL_WHITE = 6153807; + static constexpr auto BNPC_HORSE_DOLL_BLACK = 6153826; + static constexpr auto P_BNPC_HOSTAGE_A = 6149336; + static constexpr auto P_BNPC_HOSTAGE_B = 6149348; + static constexpr auto P_BNPC_HOSTAGE_C = 6149355; + static constexpr auto P_BNPC_HOSTAGE_D = 6149358; + static constexpr auto P_BNPC_HOSTAGE_E = 6149362; + static constexpr auto P_BNPC_HOSTAGE_F = 6149364; + static constexpr auto EOBJ_DOOR_A = 6147777; + static constexpr auto EOBJ_DOOR_B = 6147778; + static constexpr auto EOBJ_DOOR_C = 6147780; + static constexpr auto EOBJ_DOOR_D = 6147783; + static constexpr auto EOBJ_DOOR_E = 6147784; + static constexpr auto EOBJ_DOOR_F = 6147779; + static constexpr auto EOBJ_SCREEN = 6147792; + static constexpr auto PRANGE_AYMERIC_MOVE_01 = 6153771; + static constexpr auto PRANGE_AYMERIC_MOVE_02 = 6153773; + static constexpr auto PRANGE_AYMERIC_MOVE_03 = 6153820; + static constexpr auto PRANGE_AYMERIC_MOVE_04 = 6153952; + static constexpr auto PRANGE_AYMERIC_MOVE_HOSTAGE_A = 6163030; + static constexpr auto PRANGE_AYMERIC_MOVE_HOSTAGE_B = 6163028; + static constexpr auto PRANGE_ARTOIREL_MOVE_01 = 6153836; + static constexpr auto PRANGE_ARTOIREL_MOVE_02 = 6153837; + static constexpr auto PRANGE_ARTOIREL_MOVE_03 = 6153838; + static constexpr auto PRANGE_ARTOIREL_MOVE_04 = 6163031; + static constexpr auto PRANGE_ARTOIREL_MOVE_HOSTAGE_A = 6163029; + static constexpr auto PRANGE_ARTOIREL_MOVE_HOSTAGE_B = 6163027; + static constexpr auto PRANGE_YASHTOLA_MOVE_01 = 6153834; + static constexpr auto PRANGE_YASHTOLA_MOVE_02 = 6153835; + static constexpr auto PRANGE_THANCRED_MOVE_01 = 6153953; + static constexpr auto PRANGE_PC_LCUT_WARP = 6153821; + static constexpr auto ERANGE_THANCRED_ACTION_01 = 6153766; + static constexpr auto ERANGE_SAVING_HOSTAGE_02 = 6153772; + static constexpr auto ERANGE_P3PACK_MOVE = 6153812; + static constexpr auto ERANGE_LCUT_START = 6153815; + static constexpr auto ERANGE_GOOL = 6153829; + static constexpr auto EOBJ_HOSTAGE_HANDCUFFS_01 = 6153827; + static constexpr auto EOBJ_HOSTAGE_HANDCUFFS_02 = 6153828; + static constexpr auto STATUS_BIND_INFINITY = 1975; + static constexpr auto BNPC_TOUMEI_ADD_HATE = 6161053; + static constexpr auto BNPC_TOUMEI_AYMERIC_FOLLOW = 6164149; + +public: + AsGoesLightSoGoesDarkness() : Sapphire::ScriptAPI::QuestBattleScript( 150 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "sgvf_w_lvd_b0118", 2002872, 5588600, 4, { 0.359463f, 300.000000f, 26.171600f }, 1.000000f, 0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "unknown_0", 2002735, 0, 4, { 0.428600f, 300.000000f, 24.562250f }, 1.000000f, 0.000000f ); + instance.registerEObj( "sgvf_w_lvd_b0118_1", 2005580, 5873754, 4, { 0.360928f, 300.000000f, -15.306860f }, 1.000000f, 0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "unknown_1", 2006743, 5474300, 4, { 39.139400f, -300.007690f, 29.587160f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_2", 2006744, 5474303, 4, { 43.961182f, -299.855103f, -30.197689f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_3", 2006745, 6143050, 4, { -34.927921f, -300.007690f, -80.460876f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_4", 2006746, 6147782, 4, { -38.559631f, -300.007690f, -72.068359f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_5", 2006747, 6147781, 4, { -38.986820f, -300.007690f, -30.014530f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_6", 2006748, 6143048, 4, { 52.795311f, -299.984589f, -36.063671f }, 1.000000f, 0.000000f ); + instance.registerEObj( "sgvf_w_lvd_b0250", 2006749, 6147791, 4, { 0.604760f, -291.999908f, -117.413803f }, 1.000000f, 0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "Bonds", 2006752, 0, 4, { -52.262211f, -300.000793f, -27.878300f }, 0.991760f, 0.000144f ); + instance.registerEObj( "Bonds_1", 2006752, 0, 4, { 56.960300f, -299.984589f, -73.657806f }, 0.991760f, 0.000048f ); + instance.registerEObj( "sgvf_w_lvd_b0118_2", 2002872, 5581166, 4, { -18.416611f, -292.000000f, -99.614120f }, 1.000000f, 0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "unknown_7", 2002735, 0, 4, { -20.099001f, -292.000000f, -98.859291f }, 0.700000f, -1.570796f ); + instance.registerEObj( "sgvf_w_lvd_b0250_1", 2005106, 5581173, 4, { -0.494135f, -292.000000f, -117.713799f }, 1.000000f, 0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "unknown_8", 2002735, 0, 4, { 18.757099f, 0.000000f, 72.079903f }, 1.000000f, -1.570451f ); + instance.registerEObj( "sgvf_w_lvd_b0118_3", 2002872, 5583050, 4, { 17.161560f, 0.000000f, 73.880867f }, 1.000000f, 0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "unknown_9", 2005087, 5474300, 4, { 37.735470f, -300.007690f, 30.228149f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_10", 2005088, 5499954, 4, { 51.884090f, -300.000000f, -35.577080f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_11", 2005089, 5474303, 4, { 44.255379f, -300.000000f, -31.015051f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_12", 2005090, 5474308, 4, { -36.242680f, -300.000000f, -29.871010f }, 1.000000f, -0.000345f ); + instance.registerEObj( "unknown_13", 2005091, 5474306, 4, { -37.591751f, -300.000000f, -69.819733f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_14", 2005092, 5499959, 4, { -33.701191f, -300.000000f, -79.843872f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_15", 2005093, 5499966, 4, { 6.953651f, -281.975708f, -150.744995f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_16", 2005094, 5476161, 4, { 101.518402f, -263.140503f, -12.115350f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_17", 2005095, 5476162, 4, { 101.390800f, -263.204315f, 11.842000f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_18", 2005096, 5474532, 4, { 99.222763f, -264.000000f, -0.362554f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_19", 2005097, 5499987, 4, { 22.634041f, 0.000000f, 71.960167f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_20", 2005098, 5499980, 4, { -17.585621f, 0.000000f, 72.136276f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_21", 2005099, 5444302, 4, { -92.607063f, -0.015320f, 0.076233f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_22", 2005100, 5499663, 4, { -52.663239f, 291.000000f, 42.623951f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_23", 2005101, 5499660, 4, { -67.359016f, 291.000000f, 42.656231f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_24", 2005102, 5499645, 4, { -66.869476f, 291.000000f, 55.587841f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_25", 2005103, 5499653, 4, { -53.398609f, 291.000000f, 55.570320f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_26", 2005104, 5499600, 4, { -46.140011f, 291.000000f, 48.667049f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Entrance", 2000182, 5578486, 5, { -5.010592f, -300.000000f, 86.198753f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "Shortcut", 2000700, 0, 4, { 11.135890f, -300.000000f, 78.862717f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Exit", 2000139, 0, 4, { 0.136796f, 299.977112f, -9.654591f }, 0.991760f, 0.000048f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( AsGoesLightSoGoesDarkness ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/AttheEndofOurHope.cpp b/src/scripts/instances/questbattles/AttheEndofOurHope.cpp new file mode 100644 index 00000000..0c2557bb --- /dev/null +++ b/src/scripts/instances/questbattles/AttheEndofOurHope.cpp @@ -0,0 +1,84 @@ +#include +#include + +using namespace Sapphire; + +class AttheEndofOurHope : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_ENEMY_GLADIATOR_HERETIC_01 = 5888456; + static constexpr auto BNPC_ENEMY_GLADIATOR_HERETIC_02 = 5888460; + static constexpr auto BNPC_ENEMY_CONJURER_HERETIC_03 = 5888461; + static constexpr auto BNPC_ENEMY_LANCER_HERETIC_04 = 5888462; + static constexpr auto BNPC_ENEMY_ARCANIST_HERETIC_05 = 5888463; + static constexpr auto BNPC_ENEMY_GLADIATOR_HERETIC_06 = 5888464; + static constexpr auto BNPC_ENEMY_GLADIATOR_HERETIC_07 = 5888465; + static constexpr auto BNPC_ENEMY_CONJURER_HERETIC_08 = 5888466; + static constexpr auto EOBJ_FOOTPRINT_01 = 5888470; + static constexpr auto EOBJ_FOOTPRINT_02 = 5888471; + static constexpr auto EOBJ_FOOTPRINT_03 = 5888472; + static constexpr auto EOBJ_HIDING_PLACE_01 = 5888473; + static constexpr auto ERANGE_HIDING_PLACE_01 = 5888476; + static constexpr auto LOG_MESSAGE_EOBJ_01 = 3252; + static constexpr auto LOG_MESSAGE_EOBJ_02 = 3253; + static constexpr auto NPC_YELL_GLADIATOR_HERETIC_A_01 = 2640; + static constexpr auto NPC_YELL_GLADIATOR_HERETIC_B_01 = 2641; + static constexpr auto NPC_YELL_CONJURER_HERETIC_01 = 2642; + static constexpr auto NPC_YELL_LANCER_HERETIC_01 = 2643; + static constexpr auto NPC_YELL_LANCER_HERETIC_02 = 2644; + static constexpr auto NPC_YELL_ARCANIST_HERETIC_01 = 2645; + static constexpr auto NPC_YELL_ARCANIST_HERETIC_02 = 2646; + static constexpr auto NPC_YELL_LANCER_HERETIC_DEAD = 2753; + static constexpr auto EVENT_ACTION_FOOTPRINT = 21; + static constexpr auto EVENT_ACTION_HIDING_PLACE = 50; + static constexpr auto CUT_SCENE_N_01 = 792; + static constexpr auto LOC_POS_ACTOR0 = 5908334; + static constexpr auto LOC_POS_ACTOR1 = 5908335; + static constexpr auto LOC_POS_ACTOR2 = 5908336; + static constexpr auto LOC_POS_ACTOR3 = 5908337; + static constexpr auto LOC_POS_ACTOR4 = 5908338; + static constexpr auto LOC_POS_ACTOR5 = 5908339; + static constexpr auto LOC_POS_ACTOR6 = 5908341; + static constexpr auto LOC_ACTOR0 = 1012497; + static constexpr auto LOC_ACTOR1 = 1012473; + static constexpr auto LOC_ACTOR2 = 1012474; + static constexpr auto LOC_ACTOR3 = 1012475; + static constexpr auto LOC_ACTOR4 = 1012476; + static constexpr auto ACTION_TIMELINE_EVENT_BASE_GUARD_STAND = 808; + static constexpr auto ACTION_TIMELINE_EVENT_BASE_GUARD_LOOK_AWAY = 845; + static constexpr auto ACTION_TIMELINE_BATTLE_CORPSE = 73; + static constexpr auto BNPC_SPRIT = 4311; + static constexpr auto BNPC_BOMB = 4312; + static constexpr auto BNPC_FLOWER = 4313; + static constexpr auto BNPC_COBLYN = 4314; + static constexpr auto BNPC_BARD = 4840; + static constexpr auto BNPC_GOLLILA_DORAGON = 4841; + static constexpr auto POP_RANGE_ENEMY_HIDE_OUT = 5908743; + static constexpr auto BGM_BOSS_BATTLE = 39; + static constexpr auto BNPC_TOUMEI_HIDE_OUT = 5909462; + static constexpr auto LOC_EOBJ0 = 2006171; + static constexpr auto LOC_POS_ACTOR7 = 5910314; + +public: + AttheEndofOurHope() : Sapphire::ScriptAPI::QuestBattleScript( 111 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( AttheEndofOurHope ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/AusteritiesofEarth.cpp b/src/scripts/instances/questbattles/AusteritiesofEarth.cpp new file mode 100644 index 00000000..71bb5a75 --- /dev/null +++ b/src/scripts/instances/questbattles/AusteritiesofEarth.cpp @@ -0,0 +1,65 @@ +#include +#include + +using namespace Sapphire; + +class AusteritiesofEarth : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_1_BOSS_TITAN_EGI_01 = 4301700; + static constexpr auto INIT_POP_1_EARTH_ELE_POP_01 = 4301671; + static constexpr auto INIT_POP_1_EARTH_ELE_POP_02 = 4301672; + static constexpr auto INIT_POP_1_EARTH_ELE_POP_03 = 4301673; + static constexpr auto INIT_POP_2_EARTH_GOLEM_POP_01 = 4301681; + static constexpr auto INIT_POP_2_EARTH_GOLEM_POP_02 = 4301682; + static constexpr auto INIT_POP_2_EARTH_GOLEM_POP_03 = 4301686; + static constexpr auto INIT_POP_2_EARTH_GOLEM_POP_04 = 4321624; + static constexpr auto INIT_POP_2_EARTH_GOLEM_POP_05 = 4321625; + static constexpr auto INIT_POP_2_EARTH_GOLEM_POP_06 = 4321626; + static constexpr auto INIT_POP_2_EARTH_GOLEM_POP_07 = 4321627; + static constexpr auto INIT_POP_2_EARTH_GOLEM_POP_08 = 4321628; + static constexpr auto INIT_POP_2_EARTH_GOLEM_POP_09 = 4321629; + static constexpr auto INIT_POP_3_TRISTAN_01 = 4301698; + static constexpr auto INIT_POP_3_BOSS_IFRIT_EGI_01 = 4301699; + static constexpr auto INIT_P_POP_MITRA_01 = 4301637; + static constexpr auto CUT_START_NCUT = 351; + static constexpr auto CUT_INSART_NCUT = 352; + static constexpr auto CUT_END_NCUT = 353; + static constexpr auto BGM_TRISTAN_BATTLE = 37; + static constexpr auto EOBJ_DAMAGE_RANGE_EARTH_01 = 4321459; + static constexpr auto EOBJ_DAMAGE_RANGE_EARTH_02 = 4321585; + static constexpr auto EOBJ_DAMAGE_RANGE_EARTH_03 = 4321586; + static constexpr auto EOBJ_DAMAGE_RANGE_EARTH_04 = 4321587; + static constexpr auto EOBJ_DAMAGE_RANGE_EARTH_05 = 4321588; + static constexpr auto EOBJ_DAMAGE_RANGE_EARTH_06 = 4321589; + static constexpr auto EOBJ_DAMAGE_RANGE_EARTH_07 = 4321590; + static constexpr auto EOBJ_DAMAGE_RANGE_EARTH_08 = 4321591; + static constexpr auto EOBJ_DAMAGE_RANGE_EARTH_09 = 4321623; + static constexpr auto STATUS_CUSTOM_EARTH_DOT = 701; + static constexpr auto DEF_ACTION_EARTH_FURY = 1332; + static constexpr auto WARP_01 = 4329955; + static constexpr auto JOB_STORY_MES = 3673; + +public: + AusteritiesofEarth() : Sapphire::ScriptAPI::QuestBattleScript( 80 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( AusteritiesofEarth ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/AusteritiesofFlame.cpp b/src/scripts/instances/questbattles/AusteritiesofFlame.cpp new file mode 100644 index 00000000..d5e1d638 --- /dev/null +++ b/src/scripts/instances/questbattles/AusteritiesofFlame.cpp @@ -0,0 +1,45 @@ +#include +#include + +using namespace Sapphire; + +class AusteritiesofFlame : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_MITRA_01 = 4300437; + static constexpr auto INIT_POP_1_BOSS_IFRIT_EGI_01 = 4300450; + static constexpr auto INIT_POP_2_FIRE_ELE_01 = 4300454; + static constexpr auto INIT_POP_2_FIRE_ELE_02 = 4300455; + static constexpr auto INIT_POP_2_FIRE_ELE_03 = 4300456; + static constexpr auto INIT_POP_3_ANCHOR_01 = 4300459; + static constexpr auto INIT_POP_3_ANCHOR_02 = 4300461; + static constexpr auto INIT_POP_3_ANCHOR_03 = 4300462; + static constexpr auto LOGMESSAGE_QIB_01 = 3222; + static constexpr auto BNPC_BASE_TYPE_SPRIT = 1515; + static constexpr auto BNPC_BASE_TYPE_BOSS = 1513; + static constexpr auto CUT_START_NCUT = 350; + static constexpr auto QIB_CHANNELING_FIRE = 5; + +public: + AusteritiesofFlame() : Sapphire::ScriptAPI::QuestBattleScript( 79 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( AusteritiesofFlame ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/AusteritiesofWind.cpp b/src/scripts/instances/questbattles/AusteritiesofWind.cpp new file mode 100644 index 00000000..e3362408 --- /dev/null +++ b/src/scripts/instances/questbattles/AusteritiesofWind.cpp @@ -0,0 +1,47 @@ +#include +#include + +using namespace Sapphire; + +class AusteritiesofWind : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_MITRA_01 = 4302425; + static constexpr auto INIT_POP_1_BOSS_GARUDA_EGI_01 = 4302448; + static constexpr auto INIT_POP_2_GARUDA_FZR_POP_02 = 4302452; + static constexpr auto INIT_POP_2_GARUDA_FZR_POP_03 = 4302454; + static constexpr auto INIT_POP_2_GARUDA_FZR_POP_04 = 4302455; + static constexpr auto INIT_POP_1_BOSS_GARUDA_EGI_CHILD_A = 4321859; + static constexpr auto INIT_POP_1_BOSS_GARUDA_EGI_CHILD_B = 4321860; + static constexpr auto CUT_START_NCUT = 354; + static constexpr auto DEF_ACTION_GARUDA_AIRIAL_SLASH = 794; + static constexpr auto JOB_STORY_MES = 3675; + +public: + AusteritiesofWind() : Sapphire::ScriptAPI::QuestBattleScript( 81 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2000200, 2489513, 4, { 111.832100f, 24.171450f, -613.209473f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_1", 2000201, 2489537, 4, { 47.863529f, 24.380640f, -739.987976f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_2", 2000202, 2489511, 4, { 127.017097f, 24.144819f, -719.131226f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_3", 2000203, 2489539, 4, { 176.514206f, 24.118999f, -640.707825f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_4", 2000204, 0, 4, { 223.131302f, 22.248779f, -596.149780f }, 0.991760f, 0.000048f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( AusteritiesofWind ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/AxeintheStone.cpp b/src/scripts/instances/questbattles/AxeintheStone.cpp new file mode 100644 index 00000000..19317ef2 --- /dev/null +++ b/src/scripts/instances/questbattles/AxeintheStone.cpp @@ -0,0 +1,61 @@ +#include +#include + +using namespace Sapphire; + +class AxeintheStone : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_1ST_01 = 4107368; + static constexpr auto INIT_P_POP_2ST_01 = 4107369; + static constexpr auto INIT_POP_1ST_01 = 4107370; + static constexpr auto INIT_POP_1ST_02 = 4107372; + static constexpr auto INIT_POP_1ST_03 = 4107432; + static constexpr auto INIT_POP_2ST_01 = 4107418; + static constexpr auto INIT_POP_2ST_02 = 4107419; + static constexpr auto INIT_POP_2ST_03 = 4107420; + static constexpr auto INIT_POP_2ST_04 = 4107433; + static constexpr auto INIT_POP_3ST_01 = 4107421; + static constexpr auto INIT_POP_3ST_02 = 4107422; + static constexpr auto INIT_POP_3ST_03 = 4107423; + static constexpr auto INIT_POP_3ST_04 = 4107434; + static constexpr auto INIT_POP_3ST_05 = 4107435; + static constexpr auto INIT_POP_4ST_01 = 4107424; + static constexpr auto INIT_POP_4ST_02 = 4107425; + static constexpr auto INIT_POP_4ST_03 = 4107426; + static constexpr auto INIT_POP_4ST_04 = 4107427; + static constexpr auto INIT_POP_4ST_05 = 4107428; + static constexpr auto INIT_POP_4ST_06 = 4107436; + static constexpr auto INIT_POP_4ST_07 = 4107437; + static constexpr auto CUT_SCENE_01 = 37; + static constexpr auto LOC_ACTOR0 = 1002674; + static constexpr auto LOC_ACTOR1 = 1002696; + static constexpr auto LOC_ACTOR2 = 1002112; + static constexpr auto LOC_ACTOR3 = 1002680; + static constexpr auto LOC_FACE0 = 604; + static constexpr auto LOC_FACE1 = 617; + static constexpr auto LOC_POS_ACTOR0 = 4244349; + +public: + AxeintheStone() : Sapphire::ScriptAPI::QuestBattleScript( 25 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( AxeintheStone ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/BestServedwithColdSteel.cpp b/src/scripts/instances/questbattles/BestServedwithColdSteel.cpp new file mode 100644 index 00000000..d9e36a29 --- /dev/null +++ b/src/scripts/instances/questbattles/BestServedwithColdSteel.cpp @@ -0,0 +1,117 @@ +#include +#include + +using namespace Sapphire; + +class BestServedwithColdSteel : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto P_BNPC_RAUBAHN = 6793472; + static constexpr auto P_BNPC_ALISAIE = 6793473; + static constexpr auto P_BNPC_SOUJA_CNJ = 6793474; + static constexpr auto P_BNPC_FUMETSU_PGL = 6793475; + static constexpr auto P_BNPC_MNARGO = 6844587; + static constexpr auto P_BNPC_CONRAD = 6844589; + static constexpr auto P_BNPC_KAIHOUGUN_SWD = 6844591; + static constexpr auto P_BNPC_KAIHOUGUN_LNC = 6844592; + static constexpr auto P_BNPC_KAIHOUGUN_ARC = 6844593; + static constexpr auto BNPC_GREENWART = 6793476; + static constexpr auto BNPC_KMACHINE_IRONSPIKE_PTYPE = 6793480; + static constexpr auto BNPC_EMPIRE_A = 6793483; + static constexpr auto BNPC_EMPIRE_B = 6793484; + static constexpr auto BNPC_EMPIRE_C = 6793485; + static constexpr auto BNPC_EMPIRE_D = 6793486; + static constexpr auto BNPC_EMPIRE_E = 6843401; + static constexpr auto BNPC_EMPIRE_G = 6843400; + static constexpr auto BNPC_TOUMEI_GTAE1 = 6843181; + static constexpr auto BNPC_TOUMEI_GTAE2 = 6843182; + static constexpr auto BNPC_TOUMEI_GTAE3 = 6843587; + static constexpr auto BNPC_TOUMEI_GTAE4 = 6880898; + static constexpr auto BNPC_TOUMEI_GTAE5 = 6880899; + static constexpr auto BNPC_TOUMEI_GTAE_PLAYER = 6843630; + static constexpr auto BNPC_MOVINGBOM = 6844116; + static constexpr auto BNPC_MANTISMACHINE_01 = 6927847; + static constexpr auto BNPC_MANTISMACHINE_02 = 6927848; + static constexpr auto BNPC_MANTISMACHINE_03 = 6927864; + static constexpr auto BNPC_MANTISMACHINE_04 = 6927865; + static constexpr auto BNPC_MANTISMACHINE_05 = 6927866; + static constexpr auto BNPC_MANTISMACHINE_06 = 6927867; + static constexpr auto BNPC_MANTISMACHINE_07 = 6927871; + static constexpr auto BNPC_MANTISMACHINE_08 = 6927872; + static constexpr auto BNPC_MANTISMACHINE_09 = 6927873; + static constexpr auto BNPC_MANTISMACHINE_10 = 6928393; + static constexpr auto BNPC_MANTISMACHINE_11 = 6940085; + static constexpr auto BNPC_MANTISMACHINE_12 = 6940087; + static constexpr auto BNPC_MANTISMACHINE_13 = 6940089; + static constexpr auto BNPC_MANTISMACHINE_14 = 6940090; + static constexpr auto BNPC_MANTISMACHINE_15 = 6940091; + static constexpr auto BNPC_MANTISMACHINE_16 = 6940092; + static constexpr auto P_RANGE_MULTIPLE_GTAE1 = 6843358; + static constexpr auto P_RANGE_MULTIPLE_GTAE2 = 6843359; + static constexpr auto P_RANGE_MULTIPLE_GTAE3 = 6843581; + static constexpr auto P_RANGE_MULTIPLE_GTAE4 = 6843582; + static constexpr auto P_RANGE_MULTIPLE_GTAE5 = 6843583; + static constexpr auto P_RANGE_MULTIPLE_GTAE6 = 6843585; + static constexpr auto P_RANGE_MULTIPLE_GTAE7 = 6880872; + static constexpr auto P_RANGE_MULTIPLE_GTAE8 = 6880870; + static constexpr auto P_RANGE_MULTIPLE_GTAE9 = 6880887; + static constexpr auto P_RANGE_MULTIPLE_GTAE10 = 6880888; + static constexpr auto P_RANGE_MNARGO_MOVE = 6928434; + static constexpr auto P_RANGE_CONRAD_MOVE = 6928435; + static constexpr auto P_RANGE_kAIHOUGUN_MOVE_01 = 6928436; + static constexpr auto P_RANGE_kAIHOUGUN_MOVE_02 = 6928437; + static constexpr auto P_RANGE_kAIHOUGUN_MOVE_03 = 6928438; + static constexpr auto PRANGE_GREENWART_MOVE = 6928441; + static constexpr auto PRANGE_KMACHINE_MOVE = 6928439; + static constexpr auto PRANGE_EMPIRE_C_MOVE = 6928440; + static constexpr auto PRANGE_EMPIRE_A_MOVE = 6928443; + static constexpr auto ACTION_IDLESTATE_TRRIGER = 3269; + static constexpr auto ACTION_MOVINGBOM = 8119; + static constexpr auto ACTION_MULTIPLE_GTAE = 8120; + static constexpr auto ACTION_IMOTAL_FLAME = 8118; + static constexpr auto ACTION_SELF_DESTRUCT = 9169; + static constexpr auto BNPC_STATE_EXHAUSTED = 6; + static constexpr auto BNPC_STATE_NORMAL = 0; + static constexpr auto BNPC_STATE_SCARED = 123; + static constexpr auto YELL_RAUBAHN_06 = 4397; + static constexpr auto YELL_RAUBAHN_07 = 4398; + static constexpr auto YELL_GREENWART_REACTION = 4399; + static constexpr auto LINEVOICE_RAUBAHN_06 = 8201320; + static constexpr auto LINEVOICE_RAUBAHN_07 = 8201321; + static constexpr auto CHANNELING_MOVINGBOM = 54; + static constexpr auto BGM_BOSSBATTLE = 165; + static constexpr auto STATUS_STUN = 2991; + static constexpr auto LOC_ACTOR_01 = 1018376; + static constexpr auto LOC_ACTOR_03 = 1018318; + static constexpr auto LOC_ACTOR_04 = 1019082; + static constexpr auto LOC_ACTOR_05 = 1019702; + static constexpr auto LOC_ACTOR_06 = 1019703; + static constexpr auto LOC_MARKER_01 = 6972307; + static constexpr auto LOC_IDLE_01 = 34; + static constexpr auto LOC_ACTION_01 = 1; + static constexpr auto LOC_FACE_01 = 614; + static constexpr auto BNPC_TOUMEI_DAMMY_HATE = 7012786; + +public: + BestServedwithColdSteel() : Sapphire::ScriptAPI::QuestBattleScript( 159 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( BestServedwithColdSteel ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/BigSolleretstoFill.cpp b/src/scripts/instances/questbattles/BigSolleretstoFill.cpp new file mode 100644 index 00000000..e86e058c --- /dev/null +++ b/src/scripts/instances/questbattles/BigSolleretstoFill.cpp @@ -0,0 +1,55 @@ +#include +#include + +using namespace Sapphire; + +class BigSolleretstoFill : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_CONSTAINT = 5891815; + static constexpr auto BNPC_P1_ACN_01 = 5891816; + static constexpr auto BNPC_P1_GLA_01 = 5891818; + static constexpr auto BNPC_P1_PGL_01 = 5891819; + static constexpr auto BNPC_P1_PGL_02 = 5891820; + static constexpr auto BNPC_P2_SUMMON_01 = 5891821; + static constexpr auto BNPC_P3_SUMMON_01 = 5891822; + static constexpr auto BNPC_P3_SUMMON_02 = 5891823; + static constexpr auto BNPC_P2_DEATHGAZE_01 = 5891824; + static constexpr auto BNPC_P3_DEATHGAZE_01 = 5891825; + static constexpr auto BNPC_P3_DEATHGAZE_02 = 5891826; + static constexpr auto POPTIME_P2_DEATHGAZE = 30; + static constexpr auto POPTIME_P3_DEATHGAZE = 30; + static constexpr auto LCUT_ACTOR0 = 1014655; + static constexpr auto LCUT_ACTOR1 = 1014656; + static constexpr auto LCUT_ACTOR2 = 1014657; + static constexpr auto LCUT_ACTOR3 = 1014658; + static constexpr auto LCUT_ACTOR4 = 1014659; + static constexpr auto LCUT_POS_ACTOR0 = 5900235; + static constexpr auto LCUT_POS_ACTOR1 = 5900238; + static constexpr auto LCUT_POS_ACTOR2 = 5900239; + static constexpr auto LCUT_POS_ACTOR3 = 5900240; + static constexpr auto LCUT_POS_ACTOR4 = 5900241; + +public: + BigSolleretstoFill() : Sapphire::ScriptAPI::QuestBattleScript( 140 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( BigSolleretstoFill ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/BigTroubleinLittleAlaMhigo.cpp b/src/scripts/instances/questbattles/BigTroubleinLittleAlaMhigo.cpp new file mode 100644 index 00000000..529d7fea --- /dev/null +++ b/src/scripts/instances/questbattles/BigTroubleinLittleAlaMhigo.cpp @@ -0,0 +1,71 @@ +#include +#include + +using namespace Sapphire; + +class BigTroubleinLittleAlaMhigo : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_01 = 4251863; + static constexpr auto INIT_P_POP_02 = 4251864; + static constexpr auto INIT_P_POP_03 = 4251867; + static constexpr auto INIT_P_POP_04 = 4251873; + static constexpr auto INIT_P_POP_05 = 4251874; + static constexpr auto INIT_POP_1ST_01 = 4252035; + static constexpr auto INIT_POP_1ST_02 = 4252772; + static constexpr auto INIT_POP_1ST_03 = 4252773; + static constexpr auto INIT_POP_1ST_04 = 4252774; + static constexpr auto INIT_POP_1ST_05 = 4252775; + static constexpr auto INIT_POP_1ST_06 = 4252776; + static constexpr auto INIT_POP_2ST_01 = 4252781; + static constexpr auto INIT_POP_2ST_02 = 4252782; + static constexpr auto INIT_POP_2ST_03 = 4252783; + static constexpr auto INIT_POP_2ST_04 = 4252784; + static constexpr auto INIT_POP_2ST_05 = 4252785; + static constexpr auto INIT_POP_3ST_01 = 4252786; + static constexpr auto INIT_POP_3ST_02 = 4252787; + static constexpr auto INIT_POP_3ST_03 = 4252788; + static constexpr auto INIT_POP_3ST_04 = 4252789; + static constexpr auto INIT_POP_3ST_05 = 4252790; + static constexpr auto YELL_QIB_01 = 1127; + static constexpr auto YELL_QIB_02 = 1128; + static constexpr auto LOC_ACTOR0 = 1006215; + static constexpr auto LOC_ACTOR1 = 1008116; + static constexpr auto LOC_ACTOR2 = 1007661; + static constexpr auto LOC_ACTOR3 = 1007662; + static constexpr auto LOC_ACTOR4 = 1007663; + static constexpr auto LOC_ACTOR5 = 1003230; + static constexpr auto LOC_ACTOR6 = 1003228; + static constexpr auto LOC_ACTOR7 = 1003228; + static constexpr auto LOC_POS_ACTOR0 = 4316733; + static constexpr auto LOC_POS_ACTOR1 = 4316734; + static constexpr auto LOC_POS_ACTOR2 = 4316737; + static constexpr auto LOC_POS_ACTOR3 = 4316740; + static constexpr auto LOC_POS_ACTOR4 = 4316745; + static constexpr auto LOC_ACTION1 = 936; + static constexpr auto LOC_ACTION2 = 985; + static constexpr auto LOC_BGM1 = 83; + +public: + BigTroubleinLittleAlaMhigo() : Sapphire::ScriptAPI::QuestBattleScript( 58 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( BigTroubleinLittleAlaMhigo ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/BleederofthePack.cpp b/src/scripts/instances/questbattles/BleederofthePack.cpp new file mode 100644 index 00000000..0bd6bd9b --- /dev/null +++ b/src/scripts/instances/questbattles/BleederofthePack.cpp @@ -0,0 +1,71 @@ +#include +#include + +using namespace Sapphire; + +class BleederofthePack : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_1ST_01 = 4126558; + static constexpr auto INIT_POP_1ST_01 = 4126546; + static constexpr auto INIT_POP_1ST_02 = 4126547; + static constexpr auto INIT_POP_1ST_03 = 4126548; + static constexpr auto INIT_POP_1ST_04 = 4126549; + static constexpr auto INIT_POP_1ST_05 = 4126550; + static constexpr auto INIT_POP_1ST_06 = 4126551; + static constexpr auto INIT_POP_2ST_01 = 4126569; + static constexpr auto INIT_POP_2ST_02 = 4126570; + static constexpr auto INIT_POP_2ST_03 = 4126571; + static constexpr auto INIT_POP_2ST_04 = 4126573; + static constexpr auto INIT_POP_2ST_05 = 4126574; + static constexpr auto INIT_POP_2ST_06 = 4126575; + static constexpr auto INIT_POP_3ST_01 = 4126627; + static constexpr auto INIT_POP_3ST_02 = 4126628; + static constexpr auto INIT_POP_3ST_03 = 4126629; + static constexpr auto INIT_POP_3ST_04 = 4126631; + static constexpr auto INIT_POP_3ST_05 = 4126632; + static constexpr auto INIT_POP_3ST_06 = 4126633; + static constexpr auto INIT_POP_4ST_01 = 4126649; + static constexpr auto INIT_POP_4ST_02 = 4126655; + static constexpr auto INIT_POP_4ST_03 = 4126656; + static constexpr auto INIT_POP_4ST_04 = 4126657; + static constexpr auto INIT_POP_4ST_05 = 4126658; + static constexpr auto INIT_POP_5ST_01 = 4126659; + static constexpr auto P_WARP_01 = 4127467; + static constexpr auto INIT_ENPC_POP_01 = 4097270; + static constexpr auto BGM_01 = 37; + static constexpr auto LOC_ACTOR0 = 1003497; + static constexpr auto LOC_ACTOR1 = 1002696; + static constexpr auto LOC_ACTOR2 = 1003498; + static constexpr auto LOC_ACTOR3 = 1003499; + static constexpr auto LOC_POS_ACTOR0 = 4097270; + static constexpr auto LOC_POS_ACTOR1 = 4164696; + static constexpr auto LOC_POS_ACTOR2 = 4164697; + static constexpr auto LOC_ACTION1 = 961; + static constexpr auto LOC_ACTION2 = 824; + static constexpr auto LOC_ACTION3 = 795; + static constexpr auto LOC_ACTION4 = 934; + +public: + BleederofthePack() : Sapphire::ScriptAPI::QuestBattleScript( 27 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( BleederofthePack ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/BloodDragoon.cpp b/src/scripts/instances/questbattles/BloodDragoon.cpp deleted file mode 100644 index dcf7a55a..00000000 --- a/src/scripts/instances/questbattles/BloodDragoon.cpp +++ /dev/null @@ -1,62 +0,0 @@ -#include -#include - -using namespace Sapphire; - -class BloodDragoon : - public Sapphire::ScriptAPI::InstanceContentScript -{ -public: - BloodDragoon() : - Sapphire::ScriptAPI::InstanceContentScript( 5021 ) - { } - - void onInit( InstanceContent& instance ) override - { - instance.registerEObj( "sgvf_w_lvd_b0118", 2007896, 6803926, 4, { 3.704567f, -0.506593f, 225.007507f }, 1.000000f, 0.000000f ); - // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) - instance.registerEObj( "sgvf_w_lvd_b0118_1", 2002872, 6805825, 4, { 4.867329f, -0.098875f, 275.309509f }, 1.000000f, 0.000000f ); - // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) - instance.registerEObj( "unknown_0", 2002735, 0, 4, { 4.932000f, -0.320500f, 274.559509f }, 1.000000f, -0.000000f ); - instance.registerEObj( "sgpl_w_transparent04", 2007899, 6802026, 4, { -28.138130f, -45.000000f, -32.892731f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgvf_w_lvd_b0118_2", 2002872, 6806775, 4, { -28.390051f, -45.148991f, 8.165403f }, 1.000000f, 0.000000f ); - // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) - instance.registerEObj( "unknown_1", 2002735, 0, 4, { -28.551781f, -45.222500f, 5.617400f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_2", 2007903, 6773193, 4, { -18.557831f, -44.964081f, -0.932714f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_3", 2007904, 6773192, 4, { -30.723289f, -45.025860f, 1.953206f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_4", 2007905, 6773194, 4, { -42.383171f, -44.962471f, -5.125507f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_5", 2008196, 0, 4, { -37.125240f, -45.059940f, -9.414856f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_6", 2008310, 6879064, 4, { -23.194941f, -45.000000f, -3.016589f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgbg_e3d2_d2_mete1", 2007457, 7008362, 4, { -28.500000f, -45.000000f, -14.000000f }, 1.000000f, -0.000000f ); - // States -> b4_mete_off_01 (id: 1) b4_mete_off_02 (id: 2) b4_mete_on_01 (id: 3) b4_mete_off_03 (id: 4) b4_mete_on_02 (id: 5) b4_mete_on_03 (id: 6) b4_mete_on_04 (id: 7) b4_mete_on_05 (id: 8) b4_mete_on_06 (id: 9) b4_mete_fdout (id: 18) - instance.registerEObj( "sgvf_w_lvd_b0118_3", 2002872, 6806776, 4, { 24.174879f, -167.392899f, -453.406586f }, 1.000000f, 0.000000f ); - // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) - instance.registerEObj( "unknown_7", 2002735, 0, 4, { 24.419100f, -167.350601f, -455.580109f }, 1.000000f, -0.000000f ); - instance.registerEObj( "unknown_8", 2007894, 6525794, 4, { -36.023540f, 4.305134f, 406.807404f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_9", 2007895, 6525806, 4, { 4.331786f, 1.464790f, 289.456207f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_10", 2007897, 6540078, 4, { -49.525101f, -45.174839f, 117.206200f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_11", 2007898, 6540093, 4, { -14.321400f, -42.200001f, 42.272179f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_12", 2007900, 6525664, 4, { -19.668949f, -188.037003f, -235.950302f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_13", 2007901, 6525665, 4, { 25.192631f, -172.808502f, -362.417114f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_14", 2007902, 6525180, 4, { 23.936859f, -172.125198f, -405.882996f }, 1.000000f, 0.000000f ); - instance.registerEObj( "Entrance", 2000182, 6797774, 5, { -23.838560f, 8.289917f, 482.742615f }, 1.000000f, 0.000000f ); - // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) - instance.registerEObj( "Shortcut", 2000700, 0, 4, { -20.252930f, 8.134582f, 489.817200f }, 1.000000f, 0.000000f ); - instance.registerEObj( "Exit", 2000139, 0, 4, { 23.942671f, -167.617996f, -486.860809f }, 0.991760f, 0.000048f ); - - } - - void onUpdate( InstanceContent& instance, uint32_t currTime ) override - { - - } - - void onEnterTerritory( InstanceContent& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, - uint16_t param2 ) override - { - - } - -}; - -EXPOSE_SCRIPT( BloodDragoon ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/BloodontheDeck.cpp b/src/scripts/instances/questbattles/BloodontheDeck.cpp deleted file mode 100644 index b7662a01..00000000 --- a/src/scripts/instances/questbattles/BloodontheDeck.cpp +++ /dev/null @@ -1,34 +0,0 @@ -#include -#include - -using namespace Sapphire; - -class BloodontheDeck : - public Sapphire::ScriptAPI::InstanceContentScript -{ -public: - BloodontheDeck() : - Sapphire::ScriptAPI::InstanceContentScript( 5009 ) - { } - - void onInit( InstanceContent& instance ) override - { - instance.registerEObj( "sgbg_w_qic_004_01a", 2007457, 6904219, 4, { 5.684449f, 16.347240f, 3.782750f }, 1.000000f, 0.000000f ); - // States -> cage01_close_01 (id: 8) cage01_open_01 (id: 10) cage01_open_02 (id: 11) - - } - - void onUpdate( InstanceContent& instance, uint32_t currTime ) override - { - - } - - void onEnterTerritory( InstanceContent& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, - uint16_t param2 ) override - { - - } - -}; - -EXPOSE_SCRIPT( BloodontheDeck ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/BloodontheSands.cpp b/src/scripts/instances/questbattles/BloodontheSands.cpp new file mode 100644 index 00000000..f53bf06b --- /dev/null +++ b/src/scripts/instances/questbattles/BloodontheSands.cpp @@ -0,0 +1,66 @@ +#include +#include + +using namespace Sapphire; + +class BloodontheSands : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_BOX_01 = 5867998; + static constexpr auto BNPC_JOYE = 5868001; + static constexpr auto BNPC_P1_CRAB_01 = 5868003; + static constexpr auto BNPC_P1_CRAB_02 = 5868005; + static constexpr auto BNPC_P1_CRAB_03 = 5868006; + static constexpr auto BNPC_P1_CRAB_04 = 5868007; + static constexpr auto BNPC_P1_CRAB_05 = 5868008; + static constexpr auto BNPC_P2_CRAB_01 = 5868009; + static constexpr auto BNPC_P2_CRAB_02 = 5868010; + static constexpr auto BNPC_P2_CRAB_03 = 5868011; + static constexpr auto BNPC_P2_KURAGE_01 = 5868012; + static constexpr auto BNPC_P2_KURAGE_02 = 5868013; + static constexpr auto BNPC_P2_KURAGE_03 = 5868014; + static constexpr auto BNPC_P3_CRAB_01 = 5868015; + static constexpr auto BNPC_P3_CRAB_02 = 5868018; + static constexpr auto BNPC_P3_CRAB_03 = 5868019; + static constexpr auto BNPC_P3_CRAB_04 = 5868020; + static constexpr auto BNPC_P3_CRAB_05 = 5868022; + static constexpr auto BNPC_P3_KURAGE_01 = 5868023; + static constexpr auto BNPC_P3_KURAGE_02 = 5868024; + static constexpr auto BNPC_P3_KURAGE_03 = 5868025; + static constexpr auto BNPC_P3_KURAGE_04 = 5868026; + static constexpr auto BNPC_P4_SUIRYU_01 = 5868028; + static constexpr auto ENPC_ROSTNSTHAL = 5868079; + static constexpr auto ENPC_STEPHANIVIEN = 5868080; + static constexpr auto YELL_JOY_TRANCE_01 = 2663; + static constexpr auto ACTION_JOY_TRANCE_01 = 4265; + static constexpr auto LOC_MARKER_01 = 5927544; + static constexpr auto LOC_ACTOR0 = 1014579; + static constexpr auto LOC_ACTOR1 = 1014580; + static constexpr auto LOC_ACTOR2 = 1015124; + static constexpr auto LOC_BGM0 = 96; + +public: + BloodontheSands() : Sapphire::ScriptAPI::QuestBattleScript( 117 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2009569, 0, 4, { 763.213318f, 9.000000f, 358.016998f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_1", 2009570, 0, 4, { 748.506775f, 9.000000f, 520.002930f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( BloodontheSands ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/BringingDowntheMountain.cpp b/src/scripts/instances/questbattles/BringingDowntheMountain.cpp new file mode 100644 index 00000000..b4e545e5 --- /dev/null +++ b/src/scripts/instances/questbattles/BringingDowntheMountain.cpp @@ -0,0 +1,56 @@ +#include +#include + +using namespace Sapphire; + +class BringingDowntheMountain : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_1ST_01 = 4127474; + static constexpr auto INIT_P_POP_1ST_02 = 4127475; + static constexpr auto INIT_POP_BOSS_01 = 4127476; + static constexpr auto INIT_POP_1ST_01 = 4127477; + static constexpr auto INIT_POP_1ST_02 = 4127478; + static constexpr auto INIT_POP_1ST_03 = 4127479; + static constexpr auto INIT_POP_1ST_04 = 4127480; + static constexpr auto INIT_POP_1ST_05 = 4127481; + static constexpr auto INIT_POP_1ST_06 = 4127482; + static constexpr auto INIT_POP_2ST_01 = 4127485; + static constexpr auto INIT_POP_2ST_02 = 4127486; + static constexpr auto INIT_POP_2ST_03 = 4127487; + static constexpr auto INIT_POP_2ST_04 = 4127488; + static constexpr auto INIT_POP_2ST_05 = 4127489; + static constexpr auto INIT_POP_2ST_06 = 4127490; + static constexpr auto INIT_POP_3ST_01 = 4127491; + static constexpr auto INIT_POP_3ST_02 = 4127492; + static constexpr auto INIT_POP_3ST_03 = 4127493; + static constexpr auto INIT_POP_3ST_04 = 4127494; + static constexpr auto INIT_POP_3ST_05 = 4127495; + static constexpr auto INIT_POP_3ST_06 = 4127496; + static constexpr auto STATUS_HAELED_DOWN = 172; + static constexpr auto CUT_SCENE_01 = 41; + static constexpr auto CUT_SCENE_02 = 42; + +public: + BringingDowntheMountain() : Sapphire::ScriptAPI::QuestBattleScript( 28 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( BringingDowntheMountain ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/BrotherfromAnotherMother.cpp b/src/scripts/instances/questbattles/BrotherfromAnotherMother.cpp new file mode 100644 index 00000000..2d45f1d4 --- /dev/null +++ b/src/scripts/instances/questbattles/BrotherfromAnotherMother.cpp @@ -0,0 +1,52 @@ +#include +#include + +using namespace Sapphire; + +class BrotherfromAnotherMother : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_ENPC_POP_1_ERIC_01 = 4306244; + static constexpr auto INIT_EOBJ_POP_1_MACHIN_01 = 4306245; + static constexpr auto INIT_POP_1_IMP_01 = 4306246; + static constexpr auto INIT_POP_1_IMP_02 = 4306247; + static constexpr auto INIT_POP_1_IMP_03 = 4306248; + static constexpr auto INIT_POP_1_IMP_04 = 4306249; + static constexpr auto INIT_POP_1_IMP_05 = 4306250; + static constexpr auto INIT_POP_1_IMP_06 = 4306251; + static constexpr auto INIT_POP_2_IMP_BOSS_01 = 4306253; + static constexpr auto INIT_POP_3_MASEKIKUN_01 = 4306259; + static constexpr auto INIT_POP_3_MASEKIKUN_02 = 4306260; + static constexpr auto INIT_POP_3_MASEKIKUN_03 = 4306261; + static constexpr auto CUT_END_NCUT = 338; + static constexpr auto LOC_POS_ACTOR0 = 4324013; + static constexpr auto LOC_ACTOR0 = 1006749; + static constexpr auto LOC_ACTOR1 = 1007892; + static constexpr auto LOC_ACTOR2 = 1007893; + static constexpr auto LOC_ACTOR3 = 1007894; + static constexpr auto LOC_POS_ACTOR1 = 4325065; + static constexpr auto LOC_POS_ACTOR2 = 4325150; + +public: + BrotherfromAnotherMother() : Sapphire::ScriptAPI::QuestBattleScript( 70 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( BrotherfromAnotherMother ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/BrotherlyLove.cpp b/src/scripts/instances/questbattles/BrotherlyLove.cpp new file mode 100644 index 00000000..fad6d2e0 --- /dev/null +++ b/src/scripts/instances/questbattles/BrotherlyLove.cpp @@ -0,0 +1,62 @@ +#include +#include + +using namespace Sapphire; + +class BrotherlyLove : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_IDA = 4255892; + static constexpr auto INIT_P_POP_PAPARIMO = 4255894; + static constexpr auto INIT_POP_BOSS = 4255868; + static constexpr auto INIT_POP_1_THM_01 = 4255869; + static constexpr auto INIT_POP_1_THM_02 = 4255870; + static constexpr auto INIT_POP_1_THM_03 = 4255871; + static constexpr auto INIT_POP_2_CNJ_01 = 4255896; + static constexpr auto INIT_POP_2_GLA_01 = 4255897; + static constexpr auto INIT_POP_2_GLA_02 = 4255898; + static constexpr auto INIT_POP_2_MOL_01 = 4255903; + static constexpr auto INIT_POP_2_MOL_02 = 4255904; + static constexpr auto INIT_POP_3_MOL_01 = 4261134; + static constexpr auto INIT_POP_3_THM_01 = 4261155; + static constexpr auto INIT_ENPC_01 = 4256371; + static constexpr auto LOC_ACTOR0 = 1003005; + static constexpr auto LOC_ACTOR1 = 1008117; + static constexpr auto LOC_ACTOR2 = 1002275; + static constexpr auto LOC_ACTOR3 = 1002276; + static constexpr auto LOC_ACTOR4 = 1007007; + static constexpr auto LOC_POS_ACTOR0 = 4307105; + static constexpr auto LOC_POS_ACTOR1 = 4307106; + static constexpr auto LOC_POS_ACTOR2 = 4307107; + static constexpr auto LOC_POS_ACTOR3 = 4307108; + static constexpr auto LOC_ACTION1 = 956; + static constexpr auto LOC_ACTION2 = 954; + static constexpr auto LOC_ACTION3 = 962; + static constexpr auto POP_RANGE_MONSTER_DEPOP = 4332127; + static constexpr auto LOC_ACTOR5 = 1008173; + static constexpr auto LOC_BGM1 = 39; + static constexpr auto LOC_BGM2 = 93; + +public: + BrotherlyLove() : Sapphire::ScriptAPI::QuestBattleScript( 57 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( BrotherlyLove ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/ChasingShadows.cpp b/src/scripts/instances/questbattles/ChasingShadows.cpp new file mode 100644 index 00000000..9556d87e --- /dev/null +++ b/src/scripts/instances/questbattles/ChasingShadows.cpp @@ -0,0 +1,50 @@ +#include +#include + +using namespace Sapphire; + +class ChasingShadows : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_BOSS = 3802315; + static constexpr auto INIT_P_POP_IDA = 3802271; + static constexpr auto INIT_P_POP_PAPARIMO = 3802272; + static constexpr auto INIT_POP_ENEMY_B_01 = 4094218; + static constexpr auto INIT_POP_ENEMY_B_02 = 4094220; + static constexpr auto INIT_POP_ENEMY_B_03 = 4094232; + static constexpr auto INIT_POP_ENEMY_B_04 = 4094233; + static constexpr auto INIT_POP_ENEMY_B_05 = 4094474; + static constexpr auto INIT_POP_ENEMY_B_06 = 4094475; + static constexpr auto INIT_POP_ENEMY_A_01 = 4094238; + static constexpr auto INIT_POP_ENEMY_A_02 = 4094239; + static constexpr auto INIT_POP_ENEMY_A_03 = 4094240; + static constexpr auto INIT_POP_ENEMY_A_04 = 4094471; + static constexpr auto INIT_POP_ENEMY_A_05 = 4094472; + static constexpr auto INIT_POP_ENEMY_A_06 = 4094473; + static constexpr auto CUT_SCENE_01 = 54; + static constexpr auto HOW_TO_QIB = 79; + +public: + ChasingShadows() : Sapphire::ScriptAPI::QuestBattleScript( 11 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2005192, 5760474, 4, { -51.493111f, 0.309087f, 71.436897f }, 1.000000f, -0.000006f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( ChasingShadows ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/ChoicesandPaths.cpp b/src/scripts/instances/questbattles/ChoicesandPaths.cpp new file mode 100644 index 00000000..d6b0ac0c --- /dev/null +++ b/src/scripts/instances/questbattles/ChoicesandPaths.cpp @@ -0,0 +1,69 @@ +#include +#include + +using namespace Sapphire; + +class ChoicesandPaths : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_BOSS_01 = 6852479; + static constexpr auto BNPC_ZAKO_PACK1_01 = 6852489; + static constexpr auto BNPC_ZAKO_PACK1_02 = 6852490; + static constexpr auto BNPC_ZAKO_PACK1_03 = 6852491; + static constexpr auto BNPC_ZAKO_PACK1_04 = 6852492; + static constexpr auto BNPC_ZAKO_PACK1_05 = 6865996; + static constexpr auto BNPC_ZAKO_PACK1_06 = 6865997; + static constexpr auto BNPC_ZAKO_PACK1_07 = 6865999; + static constexpr auto BNPC_ZAKO_PACK2_01 = 6866000; + static constexpr auto BNPC_ZAKO_PACK2_02 = 6866001; + static constexpr auto BNPC_ZAKO_PACK2_03 = 6866003; + static constexpr auto BNPC_ZAKO_PACK2_04 = 6866004; + static constexpr auto BNPC_ZAKO_PACK2_05 = 6866005; + static constexpr auto BNPC_ZAKO_PACK2_06 = 6866006; + static constexpr auto BNPC_ZAKO_PACK2_07 = 6866007; + static constexpr auto BNPC_ZAKO_PACK2_08 = 6866008; + static constexpr auto BNPC_ZAKO_PACK2_09 = 6866009; + static constexpr auto BNPC_ZAKO_PACK3_01 = 6866016; + static constexpr auto BNPC_ZAKO_PACK3_02 = 6866018; + static constexpr auto BNPC_ZAKO_PACK3_03 = 6866019; + static constexpr auto BNPC_ZAKO_PACK3_04 = 6866022; + static constexpr auto BNPC_ZAKO_PACK3_05 = 6866023; + static constexpr auto BNPC_ZAKO_PACK3_06 = 6866025; + static constexpr auto BNPC_ZAKO_PACK3_07 = 6866026; + static constexpr auto BNPC_ZAKO_PACK3_08 = 6866027; + static constexpr auto BNPC_ZAKO_PACK3_09 = 6866028; + static constexpr auto EOBJ_FIRE_DAMAGE_AREA = 6866276; + static constexpr auto STATUS_PARAM_FIRE_DAMAGE = 2917; + static constexpr auto ACTION_DARK_FIRE_II = 2175; + static constexpr auto LOCKON_BOSS_CHARGE = 30; + static constexpr auto QIB_YELL_01 = 4528; + static constexpr auto QIB_YELL_02 = 4529; + static constexpr auto QIB_YELL_03 = 4530; + static constexpr auto QIB_YELL_04 = 4531; + static constexpr auto QIB_YELL_05 = 4532; + static constexpr auto QIB_YELL_06 = 4533; + static constexpr auto ACTION_HEWERALD_CHARGE = 8305; + +public: + ChoicesandPaths() : Sapphire::ScriptAPI::QuestBattleScript( 152 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( ChoicesandPaths ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/CloseEncountersoftheVIthKind.cpp b/src/scripts/instances/questbattles/CloseEncountersoftheVIthKind.cpp new file mode 100644 index 00000000..63210fcf --- /dev/null +++ b/src/scripts/instances/questbattles/CloseEncountersoftheVIthKind.cpp @@ -0,0 +1,73 @@ +#include +#include + +using namespace Sapphire; + +class CloseEncountersoftheVIthKind : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto CUT_SCENE_N_01 = 895; + static constexpr auto CUT_SCENE_N_02 = 896; + static constexpr auto BNPC_COMPANION_ALPHINAUD = 5872315; + static constexpr auto BNPC_COMPANION_ESTINIEN = 5872316; + static constexpr auto BNPC_COMPANION_Y_SHTOLA = 5873153; + static constexpr auto BNPC_ENEMY_BOSS = 5872306; + static constexpr auto BNPC_ENEMY_ZAKO_KEN = 5872308; + static constexpr auto BNPC_ENEMY_ZAKO_YARI = 5872309; + static constexpr auto BNPC_ENEMY_ZAKO_JU = 5872310; + static constexpr auto BNPC_ENEMY_ZAKO_YUMI = 5872311; + static constexpr auto BNPC_ENEMY_TRANS_BATTALION_NOLOG_NOHIT_00 = 5872328; + static constexpr auto BNPC_ENEMY_TRANS_BATTALION_NOLOG_NOHIT_01 = 5872329; + static constexpr auto BNPC_ENEMY_TRANS_BATTALION_NOLOG_NOHIT_02 = 5872332; + static constexpr auto BNPC_ENEMY_TRANS_BATTALION_NOLOG_NOHIT_03 = 5872333; + static constexpr auto BNPC_ENEMY_TRANS_BATTALION_NOLOG_NOHIT_04 = 5872334; + static constexpr auto BNPC_ENEMY_TRANS_BATTALION_NOLOG_NOHIT_05 = 5872337; + static constexpr auto BNPC_ENEMY_TRANS_BATTALION_NOLOG_NOHIT_06 = 5872338; + static constexpr auto BNPC_ENEMY_TRANS_BATTALION_NOLOG_NOHIT_07 = 5872339; + static constexpr auto BNPC_JUJIGIRI = 5891787; + static constexpr auto DEF_ACTION_JUJIGIRI = 3924; + static constexpr auto DEF_ACTION_MAGIC_FIELD = 4006; + static constexpr auto EOBJ_MAGIC_FIELD = 5891583; + static constexpr auto STATUSPARAM_MAGIC_DOT = 1698; + static constexpr auto BNPC_ENEMY_ADD_KEN = 5891587; + static constexpr auto BNPC_ENEMY_ADD_YARI = 5891588; + static constexpr auto BNPC_SEIRINSUI_01 = 5891755; + static constexpr auto BNPC_SEIRINSUI_02 = 5891756; + static constexpr auto BNPC_SEIRINSUI_03 = 5891757; + static constexpr auto BNPC_SEIRINSUI_04 = 5891758; + static constexpr auto BNPC_SEIRINSUI_05 = 5891759; + static constexpr auto BNPC_SEIRINSUI_06 = 5891760; + static constexpr auto BNPC_SEIRINSUI_07 = 5891761; + static constexpr auto BNPC_SEIRINSUI_08 = 5891765; + static constexpr auto DEF_ACTION_SEIRINSUI_BAKUHATSU = 3922; + static constexpr auto DEF_ACTION_JUJIGIRI_TOSHIN = 3825; + static constexpr auto BNPC_SUMMON_CARBUNCLE = 5911934; + static constexpr auto DEF_ACTION_SUMMON_PET_BNPC = 4786; + static constexpr auto BNPCBASE_SEIRINSUI = 3948; + static constexpr auto BNPCBASE_JUJIGIRI = 3933; + static constexpr auto POP_RANGE_Y_SHTOLA_MOVE_01 = 5936437; + static constexpr auto LINE_VOICE_ALPHINAUD_007 = 8201091; + +public: + CloseEncountersoftheVIthKind() : Sapphire::ScriptAPI::QuestBattleScript( 110 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( CloseEncountersoftheVIthKind ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/CloyingVictory.cpp b/src/scripts/instances/questbattles/CloyingVictory.cpp new file mode 100644 index 00000000..f338b23a --- /dev/null +++ b/src/scripts/instances/questbattles/CloyingVictory.cpp @@ -0,0 +1,88 @@ +#include +#include + +using namespace Sapphire; + +class CloyingVictory : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_1TEAM_EXC_01 = 5072084; + static constexpr auto INIT_POP_1TEAM_EXC_02 = 5072086; + static constexpr auto INIT_POP_1TEAM_EXC_03 = 5072087; + static constexpr auto INIT_POP_1TEAM_CNJ_01 = 5072088; + static constexpr auto INIT_POP_1TEAM_ARC_01 = 5072089; + static constexpr auto INIT_POP_1TEAM_ARC_02 = 5072090; + static constexpr auto INIT_POP_1TEAM_ARC_03 = 5072091; + static constexpr auto INIT_POP_2TEAM_EXC_01 = 5072110; + static constexpr auto INIT_POP_2TEAM_EXC_02 = 5072111; + static constexpr auto INIT_POP_2TEAM_EXC_03 = 5072112; + static constexpr auto INIT_POP_2TEAM_CNJ_01 = 5072114; + static constexpr auto INIT_POP_2TEAM_ARC_01 = 5072115; + static constexpr auto INIT_POP_2TEAM_ARC_02 = 5072117; + static constexpr auto INIT_POP_2TEAM_ARC_03 = 5072119; + static constexpr auto INIT_POP_3TEAM_BOS_01 = 5072145; + static constexpr auto INIT_POP_3TEAM_GLA_01 = 5072146; + static constexpr auto INIT_POP_3TEAM_GLA_02 = 5072147; + static constexpr auto INIT_POP_3TEAM_GLA_03 = 5072148; + static constexpr auto INIT_POP_EX_DEV_01 = 5072762; + static constexpr auto INIT_POP_EX_DEV_02 = 5072763; + static constexpr auto INIT_POP_EX_DEV_03 = 5072764; + static constexpr auto INIT_POP_EX_GAR_01 = 5072766; + static constexpr auto INIT_POP_EX_GAR_02 = 5072768; + static constexpr auto INIT_POP_EX_GAR_03 = 5072765; + static constexpr auto INIT_POP_NOTAR_01 = 5072780; + static constexpr auto INIT_P_POP_NOTAR_01 = 5072782; + static constexpr auto INIT_POP_NOTAR_02 = 5072784; + static constexpr auto INIT_P_POP_NOTAR_02 = 5072783; + static constexpr auto INIT_POP_NOTAR_03 = 5072785; + static constexpr auto INIT_P_POP_NOTAR_03 = 5072786; + static constexpr auto INIT_POP_ACTOR_EXPLOSION = 5110373; + static constexpr auto INIT_P_POP_1ST_JACKE_01 = 5073620; + static constexpr auto INIT_P_POP_1ST_PERIMU_01 = 5073621; + static constexpr auto INIT_P_POP_1ST_VKEBBE_01 = 5073622; + static constexpr auto INIT_NPC_MOVE_JACKE_01 = 5073744; + static constexpr auto INIT_NPC_MOVE_PERIMU_01 = 5073745; + static constexpr auto INIT_NPC_MOVE_VKEBBE_01 = 5073746; + static constexpr auto DEVICE_BNPC_BASE_TYPE = 3470; + static constexpr auto LOGMESSAGE_QIB_EXPLOSION_90 = 3246; + static constexpr auto LOGMESSAGE_QIB_EXPLOSION_60 = 3247; + static constexpr auto LOGMESSAGE_QIB_EXPLOSION_30 = 3248; + static constexpr auto LOGMESSAGE_QIB_EXPLOSION_20 = 3249; + static constexpr auto LOGMESSAGE_QIB_EXPLOSION_10 = 3250; + static constexpr auto LOGMESSAGE_QIB_EXPLOSION_5 = 3251; + static constexpr auto DEF_ACTION_EXPLOSION = 3201; + static constexpr auto EOBJ_QIB_1 = 5071851; + static constexpr auto EOBJ_QIB_2 = 5071920; + static constexpr auto ER_RECT_01 = 5110387; + static constexpr auto QIB_YELL_01 = 2343; + static constexpr auto QIB_YELL_02 = 2344; + static constexpr auto QIB_YELL_03 = 2345; + static constexpr auto CUT_SCENE_01 = 688; + static constexpr auto CUT_SCENE_02 = 689; + static constexpr auto DEF_ACTION_EXPLOSION_TRIGGER = 3269; + +public: + CloyingVictory() : Sapphire::ScriptAPI::QuestBattleScript( 95 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "Companychest", 2000470, 4255757, 4, { 90.371834f, 41.346722f, 60.735680f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Huntboard", 2004438, 4887771, 4, { 94.366341f, 40.247021f, 60.480110f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( CloyingVictory ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/ComeRainorShrine.cpp b/src/scripts/instances/questbattles/ComeRainorShrine.cpp new file mode 100644 index 00000000..c0fe44f9 --- /dev/null +++ b/src/scripts/instances/questbattles/ComeRainorShrine.cpp @@ -0,0 +1,95 @@ +#include +#include + +using namespace Sapphire; + +class ComeRainorShrine : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto EOBJ_TEMPLE_W = 6784229; + static constexpr auto EOBJ_TEMPLE_S = 6784233; + static constexpr auto EOBJ_TEMPLE_E = 6784235; + static constexpr auto EOBJ_TEMPLE_N = 6784236; + static constexpr auto EOBJ_TEMPLE_W_AFTER = 6784694; + static constexpr auto EOBJ_TEMPLE_S_AFTER = 6784695; + static constexpr auto EOBJ_TEMPLE_E_AFTER = 6784696; + static constexpr auto EOBJ_TEMPLE_N_AFTER = 6784697; + static constexpr auto P_BNPC_KYOKUHOU_01 = 6783228; + static constexpr auto EVENT_ACTION_01 = 22; + static constexpr auto BNPC_HOKORA_TOUMEI_W = 6798139; + static constexpr auto BNPC_HOKORA_TOUMEI_S = 6798360; + static constexpr auto BNPC_HOKORA_TOUMEI_E = 6798361; + static constexpr auto BNPC_HOKORA_TOUMEI_N = 6798362; + static constexpr auto STATUS_ASTROLOGIAN_COMPOSE_STAR = 837; + static constexpr auto PR_KYOKUHOU_HOKORA_MOVE_W = 6798151; + static constexpr auto PR_KYOKUHOU_HOKORA_MOVE_S = 6798363; + static constexpr auto PR_KYOKUHOU_HOKORA_MOVE_E = 6798364; + static constexpr auto PR_KYOKUHOU_HOKORA_MOVE_N = 6798365; + static constexpr auto DEF_ACTION_TORRIGER = 3269; + static constexpr auto DEF_ACTION_TORRIGER_B = 4777; + static constexpr auto PR_KYOKUHOU_HOKORA_BATTLE_S_01 = 7002389; + static constexpr auto PR_KYOKUHOU_HOKORA_BATTLE_S_02 = 6798367; + static constexpr auto PR_KYOKUHOU_HOKORA_BATTLE_E = 6798372; + static constexpr auto BNPC_S_BHOOT_01 = 6798368; + static constexpr auto BNPC_S_BHOOT_02 = 6798369; + static constexpr auto BNPC_S_BHOOT_03 = 6798370; + static constexpr auto BNPC_E_KURAGE = 6798373; + static constexpr auto BNPC_E_BHOOT_01 = 6798374; + static constexpr auto BNPC_E_BHOOT_02 = 6798375; + static constexpr auto BNPC_E_STREET_GHOST_01 = 6798377; + static constexpr auto BNPC_E_STREET_GHOST_02 = 6798378; + static constexpr auto BNPC_E_STREET_GHOST_03 = 6798379; + static constexpr auto BNPC_E_STREET_GHOST_04 = 6798380; + static constexpr auto BNPC_E_STREET_GHOST_05 = 6798381; + static constexpr auto BNPC_E_STREET_GHOST_06 = 6798382; + static constexpr auto BNPC_E_STREET_GHOST_07 = 6798383; + static constexpr auto BNPC_E_STREET_GHOST_08 = 6798385; + static constexpr auto BNPC_E_STREET_GHOST_09 = 6798386; + static constexpr auto BNPC_E_STREET_GHOST_10 = 6798387; + static constexpr auto BNPC_E_STREET_GHOST_11 = 6798388; + static constexpr auto BNPC_E_STREET_GHOST_12 = 6798389; + static constexpr auto ER_E_HOKORA_AROUND = 6798390; + static constexpr auto BNPC_STREET_GHOST = 6878; + static constexpr auto BNPC_N_STREET_GHOST_01 = 6798394; + static constexpr auto BNPC_N_STREET_GHOST_02 = 6798395; + static constexpr auto BNPC_N_STREET_GHOST_03 = 6798396; + static constexpr auto BNPC_N_STREET_GHOST_04 = 6798397; + static constexpr auto BNPC_N_STREET_GHOST_05 = 6798398; + static constexpr auto BNPC_N_STREET_GHOST_06 = 6798399; + static constexpr auto BNPC_N_STREET_GHOST_07 = 6798400; + static constexpr auto BNPC_N_STREET_GHOST_08 = 6798401; + static constexpr auto BNPC_N_STREET_GHOST_09 = 6798402; + static constexpr auto ER_N_HOKORA_AROUND = 6798421; + static constexpr auto BNPC_N_BOSS = 6798428; + +public: + ComeRainorShrine() : Sapphire::ScriptAPI::QuestBattleScript( 154 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2000608, 6538194, 4, { -27.571140f, -3.000000f, 46.619968f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_1", 2000608, 6538193, 4, { -28.307659f, 3.999977f, 61.762589f }, 1.000000f, 0.000000f ); + instance.registerEObj( "ClanHuntboard", 2008655, 6422886, 4, { -31.520060f, 0.076252f, -43.853790f }, 0.991760f, 0.000048f ); + instance.registerEObj( "sgbg_w_qic_004_03a", 2002872, 6799085, 4, { -79.087517f, -3.006042f, 41.336670f }, 0.991760f, 0.000048f ); + instance.registerEObj( "sgbg_w_qic_004_03a_1", 2002872, 6799087, 4, { -61.668732f, -3.014119f, 84.855003f }, 0.991760f, -1.567030f ); + instance.registerEObj( "unknown_2", 2007457, 6611234, 4, { 137.621094f, 14.816470f, 92.484863f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_3", 2007457, 6538193, 4, { -27.894131f, 3.999977f, 61.384491f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_4", 2007457, 6538194, 4, { -28.259020f, -3.000000f, 46.489510f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( ComeRainorShrine ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/CuriousGorgeMeetsHisMatch.cpp b/src/scripts/instances/questbattles/CuriousGorgeMeetsHisMatch.cpp deleted file mode 100644 index c1f36db8..00000000 --- a/src/scripts/instances/questbattles/CuriousGorgeMeetsHisMatch.cpp +++ /dev/null @@ -1,35 +0,0 @@ -#include -#include - -using namespace Sapphire; - -class CuriousGorgeMeetsHisMatch : - public Sapphire::ScriptAPI::InstanceContentScript -{ -public: - CuriousGorgeMeetsHisMatch() : - Sapphire::ScriptAPI::InstanceContentScript( 5013 ) - { } - - void onInit( InstanceContent& instance ) override - { - instance.registerEObj( "Summoningbell", 2000401, 4260827, 4, { 14.143430f, 5.238082f, 13.664930f }, 1.000000f, 0.000000f ); - // States -> vf_rtbell_on (id: 10) - instance.registerEObj( "Teamboard", 2009097, 4302533, 4, { 15.508660f, 6.051773f, -14.767720f }, 1.000000f, 0.000000f ); - - } - - void onUpdate( InstanceContent& instance, uint32_t currTime ) override - { - - } - - void onEnterTerritory( InstanceContent& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, - uint16_t param2 ) override - { - - } - -}; - -EXPOSE_SCRIPT( CuriousGorgeMeetsHisMatch ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/DarkwingDragon.cpp b/src/scripts/instances/questbattles/DarkwingDragon.cpp deleted file mode 100644 index 737570b8..00000000 --- a/src/scripts/instances/questbattles/DarkwingDragon.cpp +++ /dev/null @@ -1,45 +0,0 @@ -#include -#include - -using namespace Sapphire; - -class DarkwingDragon : - public Sapphire::ScriptAPI::InstanceContentScript -{ -public: - DarkwingDragon() : - Sapphire::ScriptAPI::InstanceContentScript( 5016 ) - { } - - void onInit( InstanceContent& instance ) override - { - instance.registerEObj( "unknown_0", 2008290, 6894789, 4, { 375.272888f, -4.893838f, 290.605011f }, 1.000000f, 0.000000f ); - instance.registerEObj( "Yol", 2008330, 0, 4, { 466.995514f, 21.157949f, -328.188995f }, 1.000000f, 0.000000f ); - instance.registerEObj( "Ovoo", 2008289, 6872570, 4, { 354.000000f, -0.790344f, 296.500000f }, 0.991760f, 0.000048f ); - // States -> land_def (id: 3) land_def_anim (id: 4) land_on (id: 5) land_on_anim (id: 6) land_on_omen (id: 7) land_on_omen (id: 8) land_off (id: 19) land_off_anim (id: 20) - instance.registerEObj( "unknown_1", 2004967, 0, 4, { -187.899506f, 1.653982f, 760.298279f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgbg_e3f3_q1_gmc02", 2007457, 7653044, 4, { -223.010605f, 3.178310f, 519.218811f }, 0.991760f, 0.000048f ); - // States -> smto_on (id: 19) smto_c_on (id: 3) smto_off (id: 1) smto_off_anim (id: 2) smto_c_off (id: 4) smto_fdout (id: 18) - instance.registerEObj( "sgvf_w_lvd_b1472", 2007457, 7653055, 4, { -186.572403f, 4.189117f, 532.602173f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgvf_w_lvd_b1472_1", 2007457, 7653056, 4, { -186.602600f, 6.933841f, 568.871582f }, 0.991760f, 0.000048f ); - instance.registerEObj( "sgvf_w_lvd_b1199", 2007457, 7669017, 4, { -186.572403f, 5.921182f, 550.737427f }, 1.000000f, 0.000000f ); - // States -> circle_off (id: 3) circle_off (id: 4) circle_on (id: 5) circle_on (id: 6) - instance.registerEObj( "sgvf_w_lvd_b1199_1", 2007457, 7632420, 4, { -223.165497f, 2.660000f, 519.000000f }, 1.000000f, 0.000000f ); - // States -> circle_off (id: 3) circle_off (id: 4) circle_on (id: 5) circle_on (id: 6) - - } - - void onUpdate( InstanceContent& instance, uint32_t currTime ) override - { - - } - - void onEnterTerritory( InstanceContent& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, - uint16_t param2 ) override - { - - } - -}; - -EXPOSE_SCRIPT( DarkwingDragon ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/DeclarationofBlood.cpp b/src/scripts/instances/questbattles/DeclarationofBlood.cpp new file mode 100644 index 00000000..37d2b91f --- /dev/null +++ b/src/scripts/instances/questbattles/DeclarationofBlood.cpp @@ -0,0 +1,58 @@ +#include +#include + +using namespace Sapphire; + +class DeclarationofBlood : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_FRAY = 5892100; + static constexpr auto BNPC_P1_BOSS = 5892101; + static constexpr auto BNPC_P1_MOB_01 = 5892107; + static constexpr auto BNPC_P1_MOB_02 = 5892110; + static constexpr auto BNPC_P1_MOB_03 = 5892111; + static constexpr auto BNPC_P1_MOB_04 = 5892113; + static constexpr auto BNPC_P1_MOB_05 = 5892115; + static constexpr auto BNPC_P2_MOB_01 = 5892116; + static constexpr auto BNPC_P2_MOB_02 = 5892118; + static constexpr auto BNPC_P2_MOB_03 = 5892119; + static constexpr auto BNPC_P2_MOB_04 = 5892121; + static constexpr auto BNPC_P2_HEALER_01 = 5892108; + static constexpr auto BNPC_P2_HEALER_02 = 5892109; + static constexpr auto YELL_MOB_01 = 2674; + static constexpr auto YELL_MOB_02 = 2675; + static constexpr auto YELL_MOB_03 = 2676; + static constexpr auto YELL_MOB_04 = 2677; + static constexpr auto YELL_HEALER_01 = 2678; + static constexpr auto YELL_HEALER_02 = 2679; + static constexpr auto YELL_HEALER_03 = 2680; + static constexpr auto YELL_ADD_MOB_01 = 2681; + static constexpr auto YELL_BOSS_01 = 3149; + static constexpr auto EOBJ_BOX = 5928029; + static constexpr auto EOBJ_BOX_TARGET = 5928033; + static constexpr auto EVENTACTION_SEARCH = 7; + static constexpr auto BNPC_TOUMEI_IMAGAWA_HATE = 5961390; + +public: + DeclarationofBlood() : Sapphire::ScriptAPI::QuestBattleScript( 137 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( DeclarationofBlood ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/DestructionintheNameofJustice.cpp b/src/scripts/instances/questbattles/DestructionintheNameofJustice.cpp new file mode 100644 index 00000000..cb483649 --- /dev/null +++ b/src/scripts/instances/questbattles/DestructionintheNameofJustice.cpp @@ -0,0 +1,63 @@ +#include +#include + +using namespace Sapphire; + +class DestructionintheNameofJustice : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_P1_BLM_A_01 = 5874136; + static constexpr auto BNPC_P1_BLM_A_02 = 5874137; + static constexpr auto BNPC_P1_BLM_B_01 = 5874139; + static constexpr auto BNPC_P2_BLM_B_01 = 5874143; + static constexpr auto BNPC_P2_BLM_B_02 = 5874290; + static constexpr auto BNPC_P2_GATE_01 = 5874291; + static constexpr auto BNPC_P2_GATE_02 = 5874292; + static constexpr auto BNPC_P2_PURIN_01 = 5887399; + static constexpr auto BNPC_P2_PURIN_02 = 5887400; + static constexpr auto BNPC_P3_BLM_A_01 = 5874293; + static constexpr auto BNPC_P3_BLM_B_01 = 5874296; + static constexpr auto BNPC_P3_GATE_01 = 5874590; + static constexpr auto BNPC_P3_GATE_02 = 5874591; + static constexpr auto BNPC_P3_GATE_03 = 5874592; + static constexpr auto BNPC_P3_GARGOYLE_01 = 5887401; + static constexpr auto BNPC_P3_GARGOYLE_02 = 5887402; + static constexpr auto BNPC_P3_GARGOYLE_03 = 5887403; + static constexpr auto ENPC_DOUSHI_01 = 5874135; + static constexpr auto POPTIME_PURIN = 30; + static constexpr auto POPTIME_GARGOYLE = 30; + static constexpr auto LOC_POS_ACTOR1 = 5911929; + static constexpr auto LOC_POS_ACTOR2 = 5911966; + static constexpr auto LOC_ACTOR1 = 1013068; + static constexpr auto LOC_POS_ACTOR3 = 5911967; + static constexpr auto LOC_POS_ACTOR4 = 5911968; + static constexpr auto LOC_ACTOR2 = 1013052; + static constexpr auto LOC_ACTOR3 = 1013053; + static constexpr auto LOC_ACTOR4 = 1013054; + static constexpr auto LOC_BGM_1 = 39; + static constexpr auto LOC_ACTION_1 = 1039; + static constexpr auto LOC_ACTION_2 = 1014; + +public: + DestructionintheNameofJustice() : Sapphire::ScriptAPI::QuestBattleScript( 114 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( DestructionintheNameofJustice ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/DivineIntervention.cpp b/src/scripts/instances/questbattles/DivineIntervention.cpp new file mode 100644 index 00000000..4f6d8834 --- /dev/null +++ b/src/scripts/instances/questbattles/DivineIntervention.cpp @@ -0,0 +1,74 @@ +#include +#include + +using namespace Sapphire; + +class DivineIntervention : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_COMPANION_ALPHINAUD = 5853419; + static constexpr auto BNPC_ENEMY_GRINNAUX = 5853420; + static constexpr auto BNPC_ENEMY_PAULECRAIN = 5853421; + static constexpr auto BNPC_VFX_CHAIN_01 = 5853427; + static constexpr auto BNPC_VFX_ELECTRON_01 = 5853422; + static constexpr auto BNPC_VFX_ELECTRON_02 = 5853423; + static constexpr auto BNPC_VFX_ELECTRON_03 = 5853424; + static constexpr auto BNPC_VFX_ELECTRON_04 = 5853425; + static constexpr auto BNPC_TOUMEI_PLAYER = 5853426; + static constexpr auto BNPC_VFX_ELECTRON_06 = 5927949; + static constexpr auto BNPC_VFX_ELECTRON_07 = 5927950; + static constexpr auto BNPC_VFX_ELECTRON_08 = 5927951; + static constexpr auto BNPC_VFX_ELECTRON_09 = 5927952; + static constexpr auto INIT_ENPC_TATARU = 5853510; + static constexpr auto QIB_YELL_01 = 2582; + static constexpr auto CUT_SCENE_N_01 = 796; + static constexpr auto STATUS_FETTERS = 667; + static constexpr auto STATUS_PARAM_FETTERS = 1433; + static constexpr auto CHANNELING_CHAIN = 10; + static constexpr auto DEF_ACTION_CHAIN_GANG = 3991; + static constexpr auto DEF_ACTION_LIGHTENING = 3992; + static constexpr auto LOC_POS_ACTOR0 = 5908213; + static constexpr auto LOC_POS_ACTOR1 = 5908214; + static constexpr auto LOC_POS_ACTOR2 = 5908215; + static constexpr auto LOC_POS_ACTOR3 = 5908216; + static constexpr auto LOC_POS_ACTOR4 = 5908217; + static constexpr auto LOC_POS_ACTOR5 = 5908218; + static constexpr auto LOC_POS_ACTOR6 = 5908219; + static constexpr auto LOC_ACTOR0 = 1008181; + static constexpr auto LOC_ACTOR1 = 1012189; + static constexpr auto LOC_ACTOR2 = 1012465; + static constexpr auto LOC_ACTOR3 = 1012466; + static constexpr auto LOC_ACTOR4 = 1012467; + static constexpr auto LOC_ACTOR5 = 1012468; + static constexpr auto LOC_ACTOR6 = 1012469; + static constexpr auto ACTION_TIMELIN_EVENT_BASE_KNEE_SUFFERING = 936; + static constexpr auto ACTION_TIMELIN_EVENT_BASE_FRIGHTENED3 = 4215; + static constexpr auto ACTION_TIMELIN_EVENT_BASE_CHAIR_SIT = 788; + static constexpr auto LOC_POS_CAM0 = 5908250; + static constexpr auto BNPCBASE_CHAIN = 4140; + static constexpr auto BNPCBASE_ELECTRON = 3780; + +public: + DivineIntervention() : Sapphire::ScriptAPI::QuestBattleScript( 105 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2006981, 5656867, 4, { 0.000000f, 0.000000f, -15.851080f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( DivineIntervention ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/DoingIttheBardWay.cpp b/src/scripts/instances/questbattles/DoingIttheBardWay.cpp new file mode 100644 index 00000000..4ea16ffc --- /dev/null +++ b/src/scripts/instances/questbattles/DoingIttheBardWay.cpp @@ -0,0 +1,40 @@ +#include +#include + +using namespace Sapphire; + +class DoingIttheBardWay : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_1_BOSS_IKU_01 = 4298952; + static constexpr auto INIT_POP_1_WLF_01 = 4298953; + static constexpr auto INIT_POP_1_WLF_02 = 4298954; + static constexpr auto INIT_POP_2_IKE_LNC_001 = 4298957; + static constexpr auto INIT_POP_2_IKE_CNJ_001 = 4298958; + static constexpr auto CUT_START_NCUT = 325; + static constexpr auto CUT_END_NCUT = 326; + static constexpr auto JOB_STORY_MES = 3665; + +public: + DoingIttheBardWay() : Sapphire::ScriptAPI::QuestBattleScript( 77 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( DoingIttheBardWay ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/DragoonsFate.cpp b/src/scripts/instances/questbattles/DragoonsFate.cpp new file mode 100644 index 00000000..e3c04c05 --- /dev/null +++ b/src/scripts/instances/questbattles/DragoonsFate.cpp @@ -0,0 +1,73 @@ +#include +#include + +using namespace Sapphire; + +class DragoonsFate : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_BLDDRG_GROUND_01 = 5896375; + static constexpr auto P_BNPC_HEUSTIENNE_01 = 5896376; + static constexpr auto BNPC_BLDDRG_FLY_01 = 5896420; + static constexpr auto POP_FLY_FRONT_01 = 5896427; + static constexpr auto POP_FLY_FRONT_02 = 5896433; + static constexpr auto POP_FLY_FRONT_03 = 5896438; + static constexpr auto POP_FLY_LEFT_01 = 5896440; + static constexpr auto POP_FLY_LEFT_02 = 5896442; + static constexpr auto POP_FLY_LEFT_03 = 5896443; + static constexpr auto POP_FLY_BACK_01 = 5896447; + static constexpr auto POP_FLY_BACK_02 = 5896448; + static constexpr auto POP_FLY_BACK_03 = 5896468; + static constexpr auto POP_FLY_RIGHT_01 = 5896469; + static constexpr auto POP_FLY_RIGHT_02 = 5896473; + static constexpr auto POP_FLY_RIGHT_03 = 5896477; + static constexpr auto BNPC_ICE_PATTERN_A_RIGHT_UP = 5896559; + static constexpr auto BNPC_ICE_PATTERN_A_LEFT_UP = 5896825; + static constexpr auto BNPC_ICE_PATTERN_A_LEFT_DOWN = 5896826; + static constexpr auto BNPC_ICE_PATTERN_A_RIGHT_DOWN = 5896827; + static constexpr auto BNPC_ICE_PATTERN_B_UP = 5896828; + static constexpr auto BNPC_ICE_PATTERN_B_LEFT = 5896829; + static constexpr auto BNPC_ICE_PATTERN_B_DOWN = 5896830; + static constexpr auto BNPC_ICE_PATTERN_B_RIGHT = 5896831; + static constexpr auto STATUS_FREEZE = 1519; + static constexpr auto LOCK_ON_MARK = 22; + static constexpr auto ACTION_DRAGON_FLY = 4258; + static constexpr auto ACTION_CAUTERIZE = 4260; + static constexpr auto ACTION_TOUCH_DOWN = 4998; + static constexpr auto STATUS_PARAM_MARKING = 1726; + static constexpr auto STATUS_PARAM_ANTI_MARKING = 1729; + static constexpr auto STATUS_MARKING = 904; + static constexpr auto STATUS_ANTI_MARKING = 475; + static constexpr auto LOC_ACTOR_BLDDRG = 1014530; + static constexpr auto LOC_ACTOR_HEUS = 1014531; + static constexpr auto LEVEL_POINT_HEUS = 5883420; + static constexpr auto LEVEL_POINT_BLDDRG = 5883423; + static constexpr auto LOC_FACE1 = 616; + static constexpr auto ACTION_TIMELINE_EVENT_BASE_MUNE_OSAE = 4222; + static constexpr auto LOC_BGM1 = 91; + static constexpr auto BNPC_TOUMEI_PLAYER = 5936683; + static constexpr auto BNPC_TOUMEI_PLAYER_B = 5963092; + +public: + DragoonsFate() : Sapphire::ScriptAPI::QuestBattleScript( 142 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( DragoonsFate ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/DutyHonorCountry.cpp b/src/scripts/instances/questbattles/DutyHonorCountry.cpp new file mode 100644 index 00000000..624805dc --- /dev/null +++ b/src/scripts/instances/questbattles/DutyHonorCountry.cpp @@ -0,0 +1,82 @@ +#include +#include + +using namespace Sapphire; + +class DutyHonorCountry : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_1ST_01 = 4087433; + static constexpr auto INIT_P_POP_1ST_02 = 4087434; + static constexpr auto INIT_POP_1ST_BOSS = 4087437; + static constexpr auto INIT_POP_1ST_ARC_01_01 = 4087440; + static constexpr auto INIT_POP_1ST_ARC_01_02 = 4087443; + static constexpr auto INIT_POP_1ST_ARC_01_03 = 4087445; + static constexpr auto INIT_POP_1ST_PGL_01_04 = 4087449; + static constexpr auto INIT_POP_1ST_PGL_01_05 = 4087451; + static constexpr auto INIT_POP_1ST_PGL_01_06 = 4087452; + static constexpr auto INIT_P_POP_1ST_03 = 4087459; + static constexpr auto INIT_P_POP_1ST_04 = 4087460; + static constexpr auto INIT_POP_1ST_CNJ_02_01 = 4087493; + static constexpr auto INIT_POP_1ST_THM_02_02 = 4087494; + static constexpr auto INIT_POP_1ST_ARC_02_03 = 4087498; + static constexpr auto INIT_POP_1ST_ARC_02_04 = 4087499; + static constexpr auto INIT_POP_1ST_PGL_02_05 = 4087502; + static constexpr auto INIT_POP_1ST_PGL_02_06 = 4087504; + static constexpr auto INIT_POP_1ST_MON_03_01 = 4087563; + static constexpr auto INIT_POP_2ND_01 = 4087572; + static constexpr auto INIT_POP_2ND_02 = 4087573; + static constexpr auto INIT_P_POP_2ND_01 = 4087577; + static constexpr auto WARP_01 = 4087657; + static constexpr auto ACTION_CURE = 120; + static constexpr auto ACTION_PRO = 123; + static constexpr auto INIT_NOTAR_P_POP_1ST_01 = 4089037; + static constexpr auto INIT_NOTAR_P_POP_1ST_02 = 4089038; + static constexpr auto INIT_NOTAR_P_POP_1ST_03 = 4089039; + static constexpr auto INIT_NOTAR_P_POP_1ST_04 = 4089040; + static constexpr auto INIT_NOTAR_P_POP_1ST_05 = 4089041; + static constexpr auto INIT_NOTAR_P_POP_1ST_06 = 4089043; + static constexpr auto INIT_NOTAR_P_POP_1ST_07 = 4089044; + static constexpr auto INIT_NOTAR_P_POP_1ST_08 = 4089045; + static constexpr auto INIT_NOTAR_P_POP_1ST_09 = 4089046; + static constexpr auto INIT_NOTAR_POP_1ST_01 = 4089052; + static constexpr auto INIT_NOTAR_POP_1ST_02 = 4089055; + static constexpr auto INIT_NOTAR_POP_1ST_03 = 4089053; + static constexpr auto INIT_NOTAR_POP_1ST_04 = 4089054; + static constexpr auto INIT_NOTAR_POP_1ST_05 = 4089050; + static constexpr auto INIT_NOTAR_POP_1ST_06 = 4089051; + static constexpr auto INIT_NOTAR_POP_1ST_07 = 4089048; + static constexpr auto INIT_NOTAR_POP_1ST_08 = 4089049; + static constexpr auto INIT_NOTAR_POP_1ST_09 = 4089047; + static constexpr auto DEF_ACTION_MONSTER_SUMMON = 867; + static constexpr auto DEF_WEATHER_RETURN = 2; + static constexpr auto DEF_POISON = 18; + static constexpr auto CUT_SCENE_01 = 194; + static constexpr auto CUT_SCENE_02 = 195; + static constexpr auto CUT_SCENE_03 = 196; + static constexpr auto BGM_MASKED_BATTLE = 94; + static constexpr auto DEF_WEATHER_BOSS = 19; + +public: + DutyHonorCountry() : Sapphire::ScriptAPI::QuestBattleScript( 38 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( DutyHonorCountry ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/DutyandtheBeast.cpp b/src/scripts/instances/questbattles/DutyandtheBeast.cpp new file mode 100644 index 00000000..bacf1a54 --- /dev/null +++ b/src/scripts/instances/questbattles/DutyandtheBeast.cpp @@ -0,0 +1,77 @@ +#include +#include + +using namespace Sapphire; + +class DutyandtheBeast : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_P1_CURIOUS_01 = 5867394; + static constexpr auto BNPC_P1_GENSYO_TAMASHII_01 = 5867395; + static constexpr auto BNPC_P1_GENSYO_TAMASHII_02 = 5867397; + static constexpr auto BNPC_P1_GENSYO_TAMASHII_03 = 5867398; + static constexpr auto BNPC_P1_GENSYO_TAMASHII_04 = 5867399; + static constexpr auto BNPC_P2_GENSYO_TAMASHII_01 = 5867425; + static constexpr auto BNPC_P2_GENSYO_TAMASHII_02 = 5867426; + static constexpr auto BNPC_P2_GENSYO_TAMASHII_03 = 5867427; + static constexpr auto BNPC_P3_GENSYO_TAMASHII_01 = 5867431; + static constexpr auto BNPC_P3_GENSYO_TAMASHII_02 = 5867432; + static constexpr auto BNPC_P3_GENSYO_TAMASHII_03 = 5867433; + static constexpr auto BNPC_P3_GENSYO_IKARI_CHASE_01 = 5867443; + static constexpr auto BNPC_P3_GENSYO_IKARI_CHASE_02 = 5867442; + static constexpr auto BNPC_P3_GENSYO_IKARI_CHASE_03 = 5867444; + static constexpr auto ENPC_P1_BROKEN_01 = 5867445; + static constexpr auto LOG_MESSAGE_01 = 3608; + static constexpr auto BGM_BATTLE = 39; + static constexpr auto LOC_ACTOR1 = 1014672; + static constexpr auto LOC_ACTOR2 = 1014476; + static constexpr auto LOC_ACTOR3 = 1014638; + static constexpr auto LOC_POS1 = 5871798; + static constexpr auto EVENT_BASE_KNEE_SUFFERING = 936; + static constexpr auto ACTION_DEPOP_TRIGER = 3269; + static constexpr auto LOC_ACTOR4 = 1014475; + static constexpr auto LOC_POS2 = 5911679; + static constexpr auto EVENT_BASE_GROUND_TIRED = 824; + static constexpr auto STATUS_PARAM_KNOCK_DOWN = 1414; + static constexpr auto LOGMESSAGE_RAGE_01 = 3297; + +public: + DutyandtheBeast() : Sapphire::ScriptAPI::QuestBattleScript( 102 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "sgbg_w_qic_001_04a", 2006993, 6235274, 4, { -35.822102f, 298.899994f, -205.263199f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_0", 2006952, 0, 4, { -35.712589f, 298.899994f, -204.878006f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Exit", 2000139, 0, 4, { 556.049377f, 348.102509f, -752.435730f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Entrance", 2000182, 4600289, 5, { 523.532471f, 348.223389f, -736.685730f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "unknown_1", 2002332, 0, 4, { 533.090881f, 348.691895f, -742.750916f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_2", 2002333, 0, 4, { 539.940430f, 348.836395f, -734.401489f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_3", 2000608, 3967803, 4, { 202.369598f, 257.761108f, 80.435272f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_4", 2000608, 3976993, 4, { 273.634705f, 254.600204f, 106.048500f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_5", 2000608, 3986797, 4, { 205.504898f, 246.188995f, 194.875702f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_6", 2000608, 3986798, 4, { 326.313385f, 239.193497f, 221.138901f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_7", 2000608, 2718481, 4, { 240.552307f, 302.769714f, -199.979996f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_8", 2000608, 4065433, 4, { 204.970001f, 302.119995f, -216.311600f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_9", 2000608, 2814617, 4, { 205.869995f, 302.219086f, -276.681396f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_10", 2000608, 2763112, 4, { -433.000000f, 211.007706f, -216.148605f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_11", 2000608, 4187649, 4, { -453.000000f, 211.000000f, -281.046600f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_12", 2000608, 4187961, 4, { -416.000000f, 210.788193f, -279.813812f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( DutyandtheBeast ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/EmissaryoftheDawn.cpp b/src/scripts/instances/questbattles/EmissaryoftheDawn.cpp deleted file mode 100644 index 230b5c34..00000000 --- a/src/scripts/instances/questbattles/EmissaryoftheDawn.cpp +++ /dev/null @@ -1,36 +0,0 @@ -#include -#include - -using namespace Sapphire; - -class EmissaryoftheDawn : - public Sapphire::ScriptAPI::InstanceContentScript -{ -public: - EmissaryoftheDawn() : - Sapphire::ScriptAPI::InstanceContentScript( 5025 ) - { } - - void onInit( InstanceContent& instance ) override - { - instance.registerEObj( "sgbg_e3e9_a1_grk01", 2007457, 7463402, 4, { -7.066119f, -0.015320f, 4.851629f }, 0.991760f, 0.000048f ); - instance.registerEObj( "WoundedPopularis", 2009561, 7508935, 4, { -6.516740f, -0.015320f, 6.499700f }, 0.991760f, 0.000048f ); - instance.registerEObj( "sgvf_w_lvd_b1199", 2007457, 7420739, 4, { -0.523771f, 0.000000f, 2.522100f }, 1.000000f, 0.000000f ); - // States -> circle_off (id: 3) circle_off (id: 4) circle_on (id: 5) circle_on (id: 6) - - } - - void onUpdate( InstanceContent& instance, uint32_t currTime ) override - { - - } - - void onEnterTerritory( InstanceContent& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, - uint16_t param2 ) override - { - - } - -}; - -EXPOSE_SCRIPT( EmissaryoftheDawn ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/EscapefromCastrumCentri.cpp b/src/scripts/instances/questbattles/EscapefromCastrumCentri.cpp new file mode 100644 index 00000000..375dbed6 --- /dev/null +++ b/src/scripts/instances/questbattles/EscapefromCastrumCentri.cpp @@ -0,0 +1,85 @@ +#include +#include + +using namespace Sapphire; + +class EscapefromCastrumCentri : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_1_BIGGS = 4278226; + static constexpr auto INIT_P_POP_1_ARMOR_WEDGE = 4278227; + static constexpr auto INIT_POP_1_1_EXC_LEADER = 4278232; + static constexpr auto INIT_POP_1_1_LNC_01 = 4278234; + static constexpr auto INIT_POP_1_1_THM_01 = 4278235; + static constexpr auto INIT_P_POP_1_PAPALYMO = 4278239; + static constexpr auto INIT_P_POP_1_URIANGER = 4278243; + static constexpr auto INIT_ENPC_1_MINFILIA = 4278275; + static constexpr auto INIT_ENPC_1_TATARU = 4278277; + static constexpr auto INIT_POP_1_2_LNC_01 = 4278298; + static constexpr auto INIT_POP_1_2_CNJ_01 = 4278300; + static constexpr auto INIT_POP_1_2_GLA_01 = 4278305; + static constexpr auto INIT_ENPC_2_MINFILIA = 4288517; + static constexpr auto INIT_ENPC_2_TATARU = 4288518; + static constexpr auto INIT_ENPC_2_BIGGS = 4288515; + static constexpr auto INIT_P_POP_2_PAPALYMO = 4278513; + static constexpr auto INIT_P_POP_2_URIANGER = 4278521; + static constexpr auto INIT_POP_2_1_LNC_01 = 4278529; + static constexpr auto INIT_POP_2_1_GLA_01 = 4278538; + static constexpr auto INIT_POP_2_1_CNJ_01 = 4278558; + static constexpr auto INIT_POP_2_1_KIL_01 = 4278569; + static constexpr auto INIT_POP_2_1_THM_01 = 4278577; + static constexpr auto INIT_POP_2_2_KIL_01 = 4285260; + static constexpr auto INIT_POP_2_2_KIL_02 = 4285261; + static constexpr auto INIT_POP_2_2_LNC_01 = 4285274; + static constexpr auto INIT_POP_2_2_THM_01 = 4285278; + static constexpr auto INIT_POP_2_2_THM_02 = 4285317; + static constexpr auto INIT_POP_2_2_TOOL_01 = 4286888; + static constexpr auto INIT_POP_2_2_TOOL_02 = 4286889; + static constexpr auto INIT_POP_2_2_TOOL_03 = 4286891; + static constexpr auto INIT_POP_2_3_STL_03 = 4287242; + static constexpr auto INIT_POP_2_2_CNJ_03 = 4287243; + static constexpr auto INIT_P_POP_PET = 4308235; + static constexpr auto WARP_01 = 4278503; + static constexpr auto INIT_EO_POP_URIANGER_HANDS_ON = 4307830; + static constexpr auto INIT_EO_POP_PAPALYMO_HANDS_ON = 4307829; + static constexpr auto EVENT_ACTION_01 = 42; + static constexpr auto INIT_ENPC_POP_URIANGER = 4307929; + static constexpr auto INIT_ENPC_POP_PAPALYMO = 4307930; + static constexpr auto YELL_QIB_URIANGER_01 = 1192; + static constexpr auto YELL_QIB_PAPALYMO_01 = 1193; + static constexpr auto YELL_QIB_01 = 1693; + static constexpr auto YELL_QIB_02 = 1694; + static constexpr auto YELL_QIB_03 = 1695; + static constexpr auto LOGMESSAGE_QIB_01 = 3214; + static constexpr auto LOGMESSAGE_QIB_02 = 3215; + static constexpr auto LOGMESSAGE_QIB_03 = 3216; + static constexpr auto DEF_ACTION_SUMMON_PET_BNPC = 1307; + static constexpr auto STATUS_CUSTOM_REGEN = 691; + static constexpr auto CUT_SCENE_01 = 258; + static constexpr auto CUT_SCENE_02 = 259; + static constexpr auto BGM_BATTLE_2ND = 36; + static constexpr auto DEF_WEATHER_SUNY = 2; + +public: + EscapefromCastrumCentri() : Sapphire::ScriptAPI::QuestBattleScript( 65 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( EscapefromCastrumCentri ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/EveryLittleThingSheDoesIsMagitek.cpp b/src/scripts/instances/questbattles/EveryLittleThingSheDoesIsMagitek.cpp new file mode 100644 index 00000000..87ea7d5a --- /dev/null +++ b/src/scripts/instances/questbattles/EveryLittleThingSheDoesIsMagitek.cpp @@ -0,0 +1,42 @@ +#include +#include + +using namespace Sapphire; + +class EveryLittleThingSheDoesIsMagitek : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_01 = 4277157; + static constexpr auto INIT_P_POP_02 = 4277164; + static constexpr auto INIT_POP_1ST_01 = 4277127; + static constexpr auto INIT_POP_1ST_02 = 4277134; + static constexpr auto INIT_POP_1ST_03 = 4277135; + static constexpr auto INIT_POP_1ST_04 = 4277136; + static constexpr auto INIT_ENPC_01 = 4277249; + static constexpr auto INIT_ENPC_02 = 4277250; + static constexpr auto CUT_SCENE_01 = 256; + static constexpr auto CUT_SCENE_02 = 257; + +public: + EveryLittleThingSheDoesIsMagitek() : Sapphire::ScriptAPI::QuestBattleScript( 64 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( EveryLittleThingSheDoesIsMagitek ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/EwerRight.cpp b/src/scripts/instances/questbattles/EwerRight.cpp new file mode 100644 index 00000000..4505ceff --- /dev/null +++ b/src/scripts/instances/questbattles/EwerRight.cpp @@ -0,0 +1,50 @@ +#include +#include + +using namespace Sapphire; + +class EwerRight : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_FEMAIL_01 = 5885434; + static constexpr auto BNPC_LUNA_01 = 5885435; + static constexpr auto BNPC_SEBASTIAN_01 = 5885436; + static constexpr auto BNPC_DIR_DUMMY_01 = 5926960; + static constexpr auto BNPC_P1_GLD_01 = 5885437; + static constexpr auto BNPC_P1_LNC_01 = 5885438; + static constexpr auto BNPC_P1_LNC_02 = 5885439; + static constexpr auto BNPC_P2_ACN_01 = 5885456; + static constexpr auto BNPC_P2_LNC_01 = 5885457; + static constexpr auto BNPC_P2_GLD_01 = 5885458; + static constexpr auto BNPC_P2_GOLEM_01 = 5890367; + static constexpr auto ACTION_SUMMON = 4779; + static constexpr auto YELL_FEMAIL01_01 = 2649; + static constexpr auto LOC_MARK_01 = 5932734; + static constexpr auto LOC_ACTOR_LEVE = 1014684; + static constexpr auto LOC_ACTOR_QUIMP = 1014685; + static constexpr auto LOC_ACTOR_AST = 1014955; + static constexpr auto MOT_EVENT_LOOK_WEAPON = 1064; + +public: + EwerRight() : Sapphire::ScriptAPI::QuestBattleScript( 120 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( EwerRight ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/FacingYourDemons.cpp b/src/scripts/instances/questbattles/FacingYourDemons.cpp new file mode 100644 index 00000000..2fa87ba2 --- /dev/null +++ b/src/scripts/instances/questbattles/FacingYourDemons.cpp @@ -0,0 +1,53 @@ +#include +#include + +using namespace Sapphire; + +class FacingYourDemons : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_01 = 4031416; + static constexpr auto INIT_POP_02 = 4031423; + static constexpr auto INIT_POP_03 = 4031424; + static constexpr auto INIT_POP_04 = 4031425; + static constexpr auto INIT_P_POP_01 = 4031419; + static constexpr auto INIT_P_POP_02 = 4031420; + static constexpr auto INIT_P_POP_03 = 4031421; + static constexpr auto INIT_P_POP_04 = 4031422; + static constexpr auto INIT_P_POP_05 = 4143519; + static constexpr auto INIT_P_POP_06 = 4143524; + static constexpr auto CUT_CLSTHM30010 = 168; + static constexpr auto CUT_CLSTHM30020 = 169; + static constexpr auto DEF_ACTION_MONSTER_SUMMON = 867; + static constexpr auto DEF_ACTION_SUCCUBUS_SILENCE = 869; + static constexpr auto PR_FIXED_POS_01 = 4208386; + static constexpr auto PR_FIXED_POS_02 = 4208387; + static constexpr auto PR_FIXED_POS_03 = 4208388; + +public: + FacingYourDemons() : Sapphire::ScriptAPI::QuestBattleScript( 43 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "Exit", 2000605, 0, 4, { -715.942383f, 69.420113f, -830.370300f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_0", 2000606, 3861081, 4, { -670.462280f, 63.293751f, -801.510986f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Entrance", 2000604, 4262798, 5, { -677.634888f, 64.116386f, -803.174927f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( FacingYourDemons ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/FamiliarFaces.cpp b/src/scripts/instances/questbattles/FamiliarFaces.cpp new file mode 100644 index 00000000..d84d6597 --- /dev/null +++ b/src/scripts/instances/questbattles/FamiliarFaces.cpp @@ -0,0 +1,67 @@ +#include +#include + +using namespace Sapphire; + +class FamiliarFaces : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_COMPANION_ALPHINAUD = 5862338; + static constexpr auto BNPC_COMPANION_BANUBANU = 5862336; + static constexpr auto BNPC_CENTURIO_BOSS = 5862331; + static constexpr auto BNPC_EMPIRE_SWORD_01_02 = 5862332; + static constexpr auto BNPC_EMPIRE_SWORD_01_03 = 5862333; + static constexpr auto BNPC_EMPIRE_SWORD_01_04 = 5862334; + static constexpr auto BNPC_EMPIRE_MAGIC_01_05 = 5862335; + static constexpr auto BNPC_EMPIRE_AIRSHIP_02_01 = 5864438; + static constexpr auto BNPC_EMPIRE_SWORD_02_02 = 5864439; + static constexpr auto BNPC_EMPIRE_SWORD_02_03 = 5864440; + static constexpr auto BNPC_EMPIRE_SWORD_02_04 = 5864441; + static constexpr auto BNPC_EMPIRE_MAGIC_02_05 = 5864442; + static constexpr auto BNPC_EMPIRE_SWORD_03_01 = 5864443; + static constexpr auto BNPC_EMPIRE_SWORD_03_02 = 5864444; + static constexpr auto BNPC_COMPANION_PET_CARBUNCLE_RED = 5878644; + static constexpr auto DEF_ACTION_SUMMON_PET_BNPC = 4785; + static constexpr auto QIB_YELL_01 = 2650; + static constexpr auto QIB_YELL_02 = 2651; + static constexpr auto LOC_MAKER_BANUBANU = 5916636; + static constexpr auto LOC_MAKER_ZAKO01 = 5916640; + static constexpr auto LOC_MAKER_ZAKO02 = 5916644; + static constexpr auto LOC_MAKER_AL = 5916653; + static constexpr auto LOC_MAKER_PC = 5916656; + static constexpr auto LOC_MAKER_ZAKO03 = 5916663; + static constexpr auto LOC_MAKER_TAICHO = 5916664; + static constexpr auto LOC_ACTOR_AL = 1011887; + static constexpr auto LOC_ACTOR_RONUBANU = 1012482; + static constexpr auto LOC_ACTOR_TAICHO = 1012483; + static constexpr auto LOC_ACTOR_ZAKO01 = 1012484; + static constexpr auto LOC_ACTOR_ZAKO02 = 1012485; + static constexpr auto LOC_ACTOR_ZAKO03 = 1012486; + static constexpr auto LOC_MAKER_START = 5917403; + static constexpr auto LOC_ACTION0 = 985; + static constexpr auto LOC_ACTION1 = 4194; + static constexpr auto BNPCSTATE_SCARED = 123; + +public: + FamiliarFaces() : Sapphire::ScriptAPI::QuestBattleScript( 107 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( FamiliarFaces ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/FeatherintheCap.cpp b/src/scripts/instances/questbattles/FeatherintheCap.cpp new file mode 100644 index 00000000..f25c6aae --- /dev/null +++ b/src/scripts/instances/questbattles/FeatherintheCap.cpp @@ -0,0 +1,66 @@ +#include +#include + +using namespace Sapphire; + +class FeatherintheCap : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_LUNA_01 = 5886119; + static constexpr auto BNPC_SEBASTIAN_01 = 5886120; + static constexpr auto BNPC_HUNTER_01 = 5886154; + static constexpr auto BNPC_HUNTER_02 = 5886155; + static constexpr auto BNPC_HUNTER_03 = 5886156; + static constexpr auto BNPC_HUNTER_04 = 5886157; + static constexpr auto BNPC_P1_GLD_01 = 5886121; + static constexpr auto BNPC_P1_LNC_01 = 5886122; + static constexpr auto BNPC_P1_LNC_02 = 5886123; + static constexpr auto BNPC_P2_ACN_01 = 5886146; + static constexpr auto BNPC_P2_LNC_01 = 5886147; + static constexpr auto BNPC_P2_LNC_02 = 5886148; + static constexpr auto BNPC_P2_ARC_01 = 5886149; + static constexpr auto BNPC_P2_ARC_02 = 5886150; + static constexpr auto BNPC_P2_ARC_03 = 5886151; + static constexpr auto BNPC_P2_ARC_04 = 5886152; + static constexpr auto BNPC_P2_ARC_05 = 5886153; + static constexpr auto BNPC_P2_BANDERSNATCH_01 = 5890660; + static constexpr auto ACTION_SUMMON = 4779; + static constexpr auto LOC_ACTOR_HUNTER_01 = 1015097; + static constexpr auto LOC_ACTOR_HUNTER_02 = 1015098; + static constexpr auto LOC_ACTOR_HUNTER_03 = 1015099; + static constexpr auto LOC_ACTOR_HUNTER_04 = 1015100; + static constexpr auto LOC_ACTOR_JANE = 1014691; + static constexpr auto LOC_ACTOR_QUIMP = 1014685; + static constexpr auto LOC_ACTOR_LEVE = 1014684; + static constexpr auto LOC_ACTOR_CELIE = 1015074; + static constexpr auto LOC_ACTOR_ENEMY_01 = 1015101; + static constexpr auto LOC_ACTOR_ENEMY_02 = 1015102; + static constexpr auto LOC_ACTOR_ENEMY_03 = 1015103; + static constexpr auto LOC_LEVEL_ENEMY_01 = 5936432; + static constexpr auto LOC_LEVEL_LEVE_01 = 5935764; + static constexpr auto LOC_LEVEL_QUIMP_01 = 5935771; + static constexpr auto LOC_BGM0 = 39; + +public: + FeatherintheCap() : Sapphire::ScriptAPI::QuestBattleScript( 121 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( FeatherintheCap ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/FeintandStrike.cpp b/src/scripts/instances/questbattles/FeintandStrike.cpp new file mode 100644 index 00000000..85710185 --- /dev/null +++ b/src/scripts/instances/questbattles/FeintandStrike.cpp @@ -0,0 +1,78 @@ +#include +#include + +using namespace Sapphire; + +class FeintandStrike : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_1ST_01 = 4102995; + static constexpr auto INIT_P_POP_1ST_02 = 4102998; + static constexpr auto INIT_P_POP_1ST_03 = 4103009; + static constexpr auto INIT_P_POP_1ST_04 = 4103010; + static constexpr auto INIT_POP_1ST_BOSS = 4102991; + static constexpr auto INIT_POP_1ST_ARC_01_01 = 4102992; + static constexpr auto INIT_POP_1ST_ARC_01_02 = 4102993; + static constexpr auto INIT_POP_1ST_ARC_01_03 = 4102994; + static constexpr auto INIT_POP_1ST_PGL_01_04 = 4102999; + static constexpr auto INIT_POP_1ST_PGL_01_05 = 4103000; + static constexpr auto INIT_POP_1ST_PGL_01_06 = 4103001; + static constexpr auto INIT_POP_1ST_CNJ_02_01 = 4103170; + static constexpr auto INIT_POP_1ST_THM_02_02 = 4103171; + static constexpr auto INIT_POP_1ST_ARC_02_03 = 4103160; + static constexpr auto INIT_POP_1ST_ARC_02_04 = 4103161; + static constexpr auto INIT_POP_1ST_PGL_02_05 = 4103168; + static constexpr auto INIT_POP_1ST_PGL_02_06 = 4103169; + static constexpr auto INIT_POP_1ST_MON_03_01 = 4103180; + static constexpr auto INIT_POP_2ND_01 = 4103186; + static constexpr auto INIT_POP_2ND_02 = 4103187; + static constexpr auto INIT_P_POP_2ND_01 = 4103188; + static constexpr auto WARP_01 = 4102986; + static constexpr auto ACTION_CURE = 120; + static constexpr auto ACTION_PRO = 123; + static constexpr auto DEF_ACTION_MONSTER_SUMMON = 867; + static constexpr auto DEF_ACTION_DOKUBARI = 619; + static constexpr auto CUT_SCENE_01 = 208; + static constexpr auto CUT_SCENE_02 = 209; + static constexpr auto INIT_NOTAR_P_POP_1ST_01 = 4103313; + static constexpr auto INIT_NOTAR_P_POP_1ST_02 = 4103316; + static constexpr auto INIT_NOTAR_P_POP_1ST_03 = 4103321; + static constexpr auto INIT_NOTAR_P_POP_1ST_04 = 4103323; + static constexpr auto INIT_NOTAR_P_POP_1ST_05 = 4103325; + static constexpr auto INIT_NOTAR_POP_1ST_01 = 4103314; + static constexpr auto INIT_NOTAR_POP_1ST_02 = 4103317; + static constexpr auto INIT_NOTAR_POP_1ST_03 = 4103322; + static constexpr auto INIT_NOTAR_POP_1ST_04 = 4103324; + static constexpr auto INIT_NOTAR_POP_1ST_05 = 4103327; + static constexpr auto DEF_POISON = 18; + static constexpr auto DEF_WEATHER_BOSS = 19; + static constexpr auto ACTION_CUREA = 135; + static constexpr auto DEF_WEATHER_RETURN = 2; + static constexpr auto BGM_MASKED_BATTLE = 94; + +public: + FeintandStrike() : Sapphire::ScriptAPI::QuestBattleScript( 36 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "Entrance", 2000182, 6228959, 5, { 457.583801f, 5.680784f, 280.512787f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "unknown_0", 2000608, 2807920, 4, { -95.322441f, -25.054260f, 61.518002f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( FeintandStrike ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/FireandBlood.cpp b/src/scripts/instances/questbattles/FireandBlood.cpp new file mode 100644 index 00000000..d4e4d869 --- /dev/null +++ b/src/scripts/instances/questbattles/FireandBlood.cpp @@ -0,0 +1,64 @@ +#include +#include + +using namespace Sapphire; + +class FireandBlood : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto CUT_SCENE_N_01 = 854; + static constexpr auto CUT_SCENE_N_02 = 855; + static constexpr auto INIT_POP_BNPC_COMPANION_ALPHINAUD = 5866564; + static constexpr auto INIT_POP_BNPC_COMPANION_HILDA = 5866565; + static constexpr auto INIT_POP_BNPC_ENEMY_P1_CHARIBERT = 5866560; + static constexpr auto INIT_POP_BNPC_ENEMY_P1_ZAKO_GEN = 5866561; + static constexpr auto INIT_POP_BNPC_ENEMY_P1_ZAKO_JU1 = 5866562; + static constexpr auto INIT_POP_BNPC_ENEMY_P1_ZAKO_JU2 = 5877278; + static constexpr auto INIT_POP_BNPC_ENEMY_GIMMIC_VFX_FIREBALL = 5866580; + static constexpr auto SECOND_POP_BNPC_ENEMY_P2_A_ZAKO_JU = 5875773; + static constexpr auto SECOND_POP_BNPC_ENEMY_P2_B_ZAKO_YARI = 5866571; + static constexpr auto SECOND_POP_BNPC_ENEMY_P2_B_ZAKO_KEN = 5866572; + static constexpr auto SECOND_POP_BNPC_ENEMY_P2_C_ZAKO_YARI = 5866568; + static constexpr auto SECOND_POP_BNPC_ENEMY_P2_C_ZAKO_KEN = 5866569; + static constexpr auto THIRD_POP_BNPC_COMPANION_HAURCHEFANT = 5866579; + static constexpr auto THIRD_POP_BNPC_ENEMY_P3_D_ZAKO_JU = 5866577; + static constexpr auto THIRD_POP_BNPC_ENEMY_P3_D_ZAKO_GEN = 5866578; + static constexpr auto EOBJ_DAMAGE_AREA = 5898500; + static constexpr auto STATUS_PARAM_FIRE_DAMAGE = 1700; + static constexpr auto ACTION_DARK_FIREGA = 3791; + static constexpr auto ACTION_FIRERA = 2175; + static constexpr auto STATUS_FIRE_DOT = 267; + static constexpr auto DEF_ACTION_SUMMON_PET_BNPC = 4785; + static constexpr auto BNPC_COMPANION_PET_CARBUNCLE_RED = 5898576; + static constexpr auto LOCKON_FIRE = 25; + static constexpr auto QIB_YELL_01 = 2659; + static constexpr auto QIB_YELL_02 = 2660; + static constexpr auto QIB_YELL_03 = 2661; + static constexpr auto QIB_YELL_04 = 2662; + +public: + FireandBlood() : Sapphire::ScriptAPI::QuestBattleScript( 109 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "ClanHuntboard", 2005909, 5863338, 4, { 73.908386f, 24.322830f, 22.067520f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_0", 2000608, 5105673, 4, { 84.499992f, 24.124950f, 22.859011f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_1", 2000608, 5048108, 4, { 97.900009f, 24.465071f, -4.244444f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( FireandBlood ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/FiveEasyPieces.cpp b/src/scripts/instances/questbattles/FiveEasyPieces.cpp new file mode 100644 index 00000000..1a7181e3 --- /dev/null +++ b/src/scripts/instances/questbattles/FiveEasyPieces.cpp @@ -0,0 +1,47 @@ +#include +#include + +using namespace Sapphire; + +class FiveEasyPieces : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_BOSS = 4268988; + static constexpr auto INIT_POP_1ST_A_01 = 4268991; + static constexpr auto INIT_POP_1ST_B_01 = 4268992; + static constexpr auto INIT_POP_1ST_C_01 = 4268993; + static constexpr auto INIT_POP_1ST_D_01 = 4268994; + static constexpr auto INIT_POP_2ND_ENERGIE_01 = 4269009; + static constexpr auto INIT_P_POP_FOR_BUFF_ACTION = 4307688; + static constexpr auto POP_RANGE_ENEMY_MOVE_01 = 4269001; + static constexpr auto LOGMESSAGE_QIB_01 = 3203; + static constexpr auto LOGMESSAGE_QIB_02 = 3213; + static constexpr auto DEF_ACTION_ENERGY_SUMMON = 1094; + static constexpr auto DEF_ACTION_CHACKRA = 1310; + static constexpr auto CUT_START_NCUT = 340; + static constexpr auto CUT_END_NCUT = 341; + static constexpr auto JOB_STORY_MES = 3626; + +public: + FiveEasyPieces() : Sapphire::ScriptAPI::QuestBattleScript( 71 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( FiveEasyPieces ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/FoolMeTwice.cpp b/src/scripts/instances/questbattles/FoolMeTwice.cpp new file mode 100644 index 00000000..cd6d4229 --- /dev/null +++ b/src/scripts/instances/questbattles/FoolMeTwice.cpp @@ -0,0 +1,58 @@ +#include +#include + +using namespace Sapphire; + +class FoolMeTwice : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_CID = 4270049; + static constexpr auto INIT_POP_1_ARC_01 = 4270002; + static constexpr auto INIT_POP_1_ARC_02 = 4270003; + static constexpr auto INIT_POP_1_LNC_01 = 4270007; + static constexpr auto INIT_POP_1_LNC_02 = 4270008; + static constexpr auto INIT_POP_1_GLA_01 = 4270011; + static constexpr auto INIT_POP_1_ARMOR_01 = 4270036; + static constexpr auto INIT_POP_2_CNJ_01 = 4270059; + static constexpr auto INIT_POP_2_LNC_01 = 4270060; + static constexpr auto INIT_POP_2_ARC_01 = 4270061; + static constexpr auto LOC_ACTOR0 = 1003855; + static constexpr auto LOC_ACTOR1 = 1007668; + static constexpr auto LOC_ACTOR2 = 1007669; + static constexpr auto LOC_ACTOR3 = 1007669; + static constexpr auto LOC_ACTOR4 = 1002908; + static constexpr auto LOC_ACTOR5 = 1007667; + static constexpr auto LOC_POS_ACTOR0 = 4323824; + static constexpr auto LOC_POS_ACTOR1 = 4323827; + static constexpr auto LOC_POS_ACTOR2 = 4323828; + static constexpr auto LOC_POS_ACTOR3 = 4323829; + static constexpr auto LOC_POS_ACTOR4 = 4323830; + static constexpr auto LOC_ACTION1 = 587; + static constexpr auto QIB_LOG_MESSAGE_01 = 3226; + static constexpr auto DEF_ACTION_OVER_BOOST = 1286; + static constexpr auto CUT_SCENE_01 = 255; + static constexpr auto BGM_BATTLE = 76; + +public: + FoolMeTwice() : Sapphire::ScriptAPI::QuestBattleScript( 63 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( FoolMeTwice ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/ForgottenbutNotGone.cpp b/src/scripts/instances/questbattles/ForgottenbutNotGone.cpp new file mode 100644 index 00000000..5f6d4a5b --- /dev/null +++ b/src/scripts/instances/questbattles/ForgottenbutNotGone.cpp @@ -0,0 +1,55 @@ +#include +#include + +using namespace Sapphire; + +class ForgottenbutNotGone : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_ARUKA_01 = 4304120; + static constexpr auto INIT_POP_1_THM_ZOKU_01 = 4304111; + static constexpr auto INIT_POP_1_LNC_ZOKU_01 = 4304112; + static constexpr auto INIT_POP_1_LNC_ZOKU_02 = 4304113; + static constexpr auto INIT_POP_2_EXC_ZOKU_01 = 4304114; + static constexpr auto INIT_POP_2_LNC_ZOKU_01 = 4304115; + static constexpr auto INIT_POP_2_THM_ZOKU_01 = 4304116; + static constexpr auto INIT_POP_3_LNC_ZOKU_01 = 4304117; + static constexpr auto INIT_POP_3_EXC_ZOKU_01 = 4304118; + static constexpr auto INIT_POP_3_GLA_ZOKU_01 = 4304119; + static constexpr auto POP_EVENT_RANGE_01 = 4304405; + static constexpr auto POP_EVENT_RANGE_02 = 4304406; + static constexpr auto POP_EVENT_RANGE_03 = 4304410; + static constexpr auto EOBJ_BOX = 4305018; + static constexpr auto EVENT_ACTION_01 = 2; + static constexpr auto YELL_QIB_01 = 1246; + static constexpr auto YELL_QIB_02 = 1247; + static constexpr auto YELL_QIB_03 = 1248; + static constexpr auto POP_RANGE_ALKAZOLKA_MOVE = 4308993; + static constexpr auto CUT_END_NCUT = 357; + static constexpr auto EOBJ_BOX_TARGET = 4322850; + +public: + ForgottenbutNotGone() : Sapphire::ScriptAPI::QuestBattleScript( 83 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2009569, 0, 4, { 763.213318f, 9.000000f, 358.016998f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_1", 2009570, 0, 4, { 748.506775f, 9.000000f, 520.002930f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( ForgottenbutNotGone ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/FortuneFavorstheBole.cpp b/src/scripts/instances/questbattles/FortuneFavorstheBole.cpp new file mode 100644 index 00000000..f8a6d933 --- /dev/null +++ b/src/scripts/instances/questbattles/FortuneFavorstheBole.cpp @@ -0,0 +1,115 @@ +#include +#include + +using namespace Sapphire; + +class FortuneFavorstheBole : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_PACK_A_LNC_01 = 5898639; + static constexpr auto BNPC_PACK_A_ARC_01 = 5898640; + static constexpr auto BNPC_PACK_A_ARC_02 = 5898644; + static constexpr auto BNPC_PACK_B_LNC_01 = 5898690; + static constexpr auto BNPC_PACK_B_ARC_01 = 5898691; + static constexpr auto BNPC_PACK_B_ARC_02 = 5898692; + static constexpr auto BNPC_PACK_B_CNJ_01 = 5898693; + static constexpr auto BNPC_STAR_A_BAT_01 = 5898699; + static constexpr auto BNPC_STAR_A_BAT_02 = 5898704; + static constexpr auto BNPC_STAR_A_BAT_03 = 5898705; + static constexpr auto BNPC_STAR_B_WISP_01 = 5898706; + static constexpr auto BNPC_STAR_B_WISP_02 = 5898707; + static constexpr auto BNPC_STAR_B_YAMANE_01 = 5898708; + static constexpr auto BNPC_PACK_C_LNC_01 = 5898710; + static constexpr auto BNPC_PACK_C_ARC_01 = 5898711; + static constexpr auto BNPC_PACK_C_THM_01 = 5898712; + static constexpr auto BNPC_PACK_C_CNJ_01 = 5898713; + static constexpr auto BNPC_STAR_C_TREANT_01 = 5898717; + static constexpr auto BNPC_STAR_C_BAT_01 = 5898718; + static constexpr auto BNPC_STAR_C_BAT_02 = 5898719; + static constexpr auto BNPC_PACK_D_ACN_BOSS_01 = 5898722; + static constexpr auto BNPC_PACK_D_ARC_01 = 5898724; + static constexpr auto BNPC_PACK_D_ARC_02 = 5898725; + static constexpr auto BNPC_ADD_DEEP_EYE_01 = 5898739; + static constexpr auto BNPC_ADD_GOLEM_01 = 5898740; + static constexpr auto P_BNPC_SEBAS_01 = 5898750; + static constexpr auto P_BNPC_LNC_01 = 5898751; + static constexpr auto P_BNPC_LUNA_01 = 5898752; + static constexpr auto EOBJ_TAROT_FIRE_01 = 5898834; + static constexpr auto EOBJ_TAROT_WATER_01 = 5898836; + static constexpr auto EOBJ_TAROT_WIND_01 = 5898837; + static constexpr auto EOBJ_TAROT_EARTH_01 = 5898840; + static constexpr auto EOBJ_TAROT_LIGHTNING_01 = 5898841; + static constexpr auto EOBJ_TAROT_ICE_01 = 5898842; + static constexpr auto EVENT_ACTION_01 = 22; + static constexpr auto LOG_MESSAGE_ACCESE_FIRE_01 = 3256; + static constexpr auto LOG_MESSAGE_ACCESE_WATER_01 = 3257; + static constexpr auto LOG_MESSAGE_ACCESE_WIND_01 = 3258; + static constexpr auto LOG_MESSAGE_ACCESE_EARTH_01 = 3259; + static constexpr auto LOG_MESSAGE_ACCESE_LIGHTNING_01 = 3260; + static constexpr auto LOG_MESSAGE_ACCESE_ICE_01 = 3261; + static constexpr auto STATUS_PARAM_STAR_POWER = 1747; + static constexpr auto NCUT_01 = 980; + static constexpr auto STATUS_PLAY_TAROT_FIRE_01 = 829; + static constexpr auto STATUS_PLAY_TAROT_WATER_01 = 833; + static constexpr auto STATUS_PLAY_TAROT_WIND_01 = 831; + static constexpr auto STATUS_PLAY_TAROT_EARTH_01 = 830; + static constexpr auto STATUS_PLAY_TAROT_LIGHTNING_01 = 834; + static constexpr auto STATUS_PLAY_TAROT_ICE_01 = 832; + static constexpr auto YELL_QIB_FIRE_LNC_01 = 2664; + static constexpr auto YELL_QIB_EARTH_SEBAS_01 = 2665; + static constexpr auto YELL_QIB_WIND_LNC_01 = 2666; + static constexpr auto YELL_QIB_ICE_SEBAS_01 = 2667; + static constexpr auto YELL_QIB_LIGHTNING_LNC_01 = 2668; + static constexpr auto YELL_QIB_LEVEVA_01 = 2783; + static constexpr auto YELL_QIB_YATO_01 = 2784; + static constexpr auto ENPC_OLD_AST_01 = 5900085; + static constexpr auto PR_LEVEVA_MOVE_01 = 5913204; + static constexpr auto BEHAVIOR_LEVEVA_01 = 30617; + static constexpr auto BGM_START = 113; + static constexpr auto P_BNPC_TOUMEI_FOLLOW_PLAYER = 5914841; + static constexpr auto EVENT_RANGE_PACK_B_SENSE = 5915107; + static constexpr auto EVENT_RANGE_PACK_C_SENSE = 5915618; + static constexpr auto EVENT_RANGE_PACK_D_SENSE = 5915672; + static constexpr auto BNPCBASE_BAT = 4297; + static constexpr auto BNPCBASE_WISP = 4298; + static constexpr auto BNPCBASE_YAMANE = 4299; + static constexpr auto BNPCBASE_TRENT = 4300; + static constexpr auto BNPCBASE_DEEP_EYES = 4309; + static constexpr auto BNPCBASE_GOLEM = 4310; + static constexpr auto ACTION_SUMMON_MONSTER = 4779; + static constexpr auto LOC_ACTOR_MACE = 1014686; + static constexpr auto LOC_ACTOR_LEVE = 1015607; + static constexpr auto LOC_ACTOR_QUIMP = 1014685; + static constexpr auto LOC_ACTOR_GUARD = 1014688; + static constexpr auto LOC_ACTOR_CELIE = 1014687; + static constexpr auto LOC_ACTION_BASE_01 = 936; + static constexpr auto LOC_LOG_MES_EARTH = 5340; + static constexpr auto LOC_ACTION0 = 979; + static constexpr auto LOC_BGM0 = 211; + +public: + FortuneFavorstheBole() : Sapphire::ScriptAPI::QuestBattleScript( 143 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "Entrance", 2000182, 5021407, 5, { 623.000000f, 23.872311f, 94.505638f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "Exit", 2000139, 0, 4, { 623.000000f, 23.656260f, 61.956181f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( FortuneFavorstheBole ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/ForwardtheRoyalMarines.cpp b/src/scripts/instances/questbattles/ForwardtheRoyalMarines.cpp new file mode 100644 index 00000000..ced25c03 --- /dev/null +++ b/src/scripts/instances/questbattles/ForwardtheRoyalMarines.cpp @@ -0,0 +1,95 @@ +#include +#include + +using namespace Sapphire; + +class ForwardtheRoyalMarines : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto EOBJ_A_COLOR_A_GARUKI = 5887310; + static constexpr auto EOBJ_B_COLOR_B_HECTO = 5887311; + static constexpr auto EOBJ_C_COLOR_C_ATARI = 5887312; + static constexpr auto EOBJ_D_COLOR_A_GARUKI = 5887313; + static constexpr auto EOBJ_E_COLOR_B_HECTO = 5887314; + static constexpr auto EOBJ_F_COLOR_C_ATARI = 5887315; + static constexpr auto EOBJ_G_COLOR_A_GARUKI = 5887316; + static constexpr auto EOBJ_H_COLOR_B_HECTO = 5887317; + static constexpr auto EOBJ_I_COLOR_C_ATARI = 5887318; + static constexpr auto EOBJ_J_COLOR_A_GARUKI = 5887319; + static constexpr auto EOBJ_K_COLOR_B_HECTO = 5887320; + static constexpr auto EOBJ_L_COLOR_C_ATARI = 5887321; + static constexpr auto BNPC_MEFUSAGI_01 = 5887404; + static constexpr auto BNPC_ALKA_SEARCH_01 = 5889537; + static constexpr auto BNPC_ALKA_FIGHT_01 = 5887405; + static constexpr auto BNPC_JUKREN_SEARCH_01 = 5889756; + static constexpr auto BNPC_JUKREN_FIGHT_01 = 5887406; + static constexpr auto BNPC_KIEI_SEARCH_01 = 5889757; + static constexpr auto BNPC_KIEI_FIGHT_01 = 5887407; + static constexpr auto P_BNPC_SURITO_01 = 5887408; + static constexpr auto P_BNPC_KAIHEI_01 = 5887409; + static constexpr auto P_BNPC_KAIHEI_02 = 5889672; + static constexpr auto P_BNPC_GUNSOU_01 = 5887410; + static constexpr auto WARP_PC_POINT = 5887211; + static constexpr auto BNPC_A_COLOR_A_GARUKI = 5888477; + static constexpr auto BNPC_B_COLOR_B_HECTO = 5888488; + static constexpr auto BNPC_D_COLOR_A_GARUKI = 5888478; + static constexpr auto BNPC_E_COLOR_B_HECTO = 5888489; + static constexpr auto BNPC_G_COLOR_A_GARUKI = 5888482; + static constexpr auto BNPC_H_COLOR_B_HECTO = 5888490; + static constexpr auto BNPC_J_COLOR_A_GARUKI = 5888486; + static constexpr auto BNPC_K_COLOR_B_HECTO = 5888498; + static constexpr auto BNPC_PARASITE_01 = 5888500; + static constexpr auto BNPC_PARASITE_02 = 5888501; + static constexpr auto BNPC_PARASITE_03 = 5888502; + static constexpr auto BNPC_MEFUSAGI_EFFECT_01 = 5888510; + static constexpr auto BNPC_MEFUSAGI_EFFECT_02 = 5931936; + static constexpr auto BNPC_MEFUSAGI_EFFECT_03 = 5931939; + static constexpr auto BNPC_MEFUSAGI_EFFECT_04 = 5931942; + static constexpr auto ER_RECT_01 = 5888754; + static constexpr auto NCUT_01 = 940; + static constexpr auto NCUT_02 = 941; + static constexpr auto EVENT_ACTION_01 = 21; + static constexpr auto POP_RANGE_MOVE_MEFUSAGI_EFFECT_01 = 5888551; + static constexpr auto LOC_POS1 = 5917738; + static constexpr auto LOC_ACTOR1 = 1007111; + static constexpr auto LOC_ACTOR2 = 1014649; + static constexpr auto LOC_ACTOR3 = 1014650; + static constexpr auto LOC_ACTOR4 = 1014661; + static constexpr auto BEHAVIOR_TALK = 30073; + static constexpr auto LOG_MESSAGE_OK_01 = 3293; + static constexpr auto LOG_MESSAGE_OK_02 = 3294; + static constexpr auto LOG_MESSAGE_OK_03 = 3295; + static constexpr auto LOG_MESSAGE_NG_01 = 3296; + static constexpr auto BGM_LAST_BATTLE = 91; + static constexpr auto POP_RANGE_MOVE_FOLLOW_EFFECT_01 = 5931951; + static constexpr auto ACTION_SUMMON_PARASITE = 4984; + static constexpr auto STATUS_TRANSFORMATION = 565; + static constexpr auto STATUS_TONBERRY_DISEASE = 785; + static constexpr auto POP_RANGE_MOVE_JUKUREN_BATTLE_01 = 5932642; + static constexpr auto POP_RANGE_MOVE_KIEI_BATTLE_01 = 5932643; + static constexpr auto LOC_BGM0 = 117; + static constexpr auto STATUS_PARAM_TONBERRY_DISEASE = 1501; + +public: + ForwardtheRoyalMarines() : Sapphire::ScriptAPI::QuestBattleScript( 135 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( ForwardtheRoyalMarines ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/Foxfire.cpp b/src/scripts/instances/questbattles/Foxfire.cpp new file mode 100644 index 00000000..ef5f6002 --- /dev/null +++ b/src/scripts/instances/questbattles/Foxfire.cpp @@ -0,0 +1,102 @@ +#include +#include + +using namespace Sapphire; + +class Foxfire : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto P_BNPC_KYOKUHOU_01 = 6796961; + static constexpr auto P_BNPC_LEVELVA_01 = 6796959; + static constexpr auto P_BNPC_UDOKU_01 = 6796953; + static constexpr auto P_BNPC_UDOKU_MINI_01 = 6796952; + static constexpr auto P_BNPC_UDOKU_MINI_02 = 6796954; + static constexpr auto BNPC_YOUKO_01 = 6796950; + static constexpr auto BNPC_ZAKO_WAVE01_01 = 6797047; + static constexpr auto BNPC_ZAKO_WAVE01_02 = 6797048; + static constexpr auto BNPC_ZAKO_WAVE01_03 = 6797049; + static constexpr auto BNPC_ZAKO_WAVE01_04 = 6797053; + static constexpr auto BNPC_ZAKO_WAVE02_01 = 6938916; + static constexpr auto BNPC_ZAKO_WAVE02_02 = 6938917; + static constexpr auto BNPC_ZAKO_WAVE02_03 = 6938918; + static constexpr auto BNPC_ZAKO_WAVE03_01 = 6938922; + static constexpr auto BNPC_YOUKO_FUNDO_01 = 6939038; + static constexpr auto BNPC_YOUKO_FUNDO_02 = 6939039; + static constexpr auto BNPC_YOUKO_FUNDO_03 = 6949956; + static constexpr auto BNPC_YOUKO_FUNDO_04 = 6949957; + static constexpr auto BNPC_BOSSADD1_01 = 6949958; + static constexpr auto BNPC_BOSSADD1_02 = 6949959; + static constexpr auto BNPC_BOSSADD1_03 = 6949962; + static constexpr auto ERANGE_01 = 6797270; + static constexpr auto ERANGE_02 = 6938832; + static constexpr auto P_BNPC_CITIZEN_P1_01 = 6938731; + static constexpr auto P_BNPC_CITIZEN_P1_02 = 6938732; + static constexpr auto SE_WOMAN_SHOUT = 116; + static constexpr auto QIB_YELL_01 = 5145; + static constexpr auto QIB_YELL_02 = 5146; + static constexpr auto QIB_YELL_03 = 5147; + static constexpr auto QIB_YELL_04 = 5148; + static constexpr auto QIB_YELL_05 = 5149; + static constexpr auto QIB_YELL_06 = 5150; + static constexpr auto QIB_YELL_07 = 5151; + static constexpr auto QIB_YELL_08 = 5152; + static constexpr auto PR_PHASE2_YOUKO_WARP = 6938833; + static constexpr auto PR_PHASE3_YOUKO_WARP = 6938893; + static constexpr auto PR_PHASE2_5_KYOKUHOU_MOVE01 = 6938962; + static constexpr auto PR_DEBUG_BOSSBATTLE = 6950271; + static constexpr auto PR_PHASE2_5_LEVELVA_MOVE01 = 6938963; + static constexpr auto PR_LEVELVA_MOVE02 = 6950272; + static constexpr auto ACTION_SCRIPT_TRIGGER = 3269; + static constexpr auto ACTION_YOUKO_WARP_START = 9267; + static constexpr auto ACTION_YOUKO_WARP_END = 9268; + static constexpr auto ACTION_URAMI_LAZER = 9311; + static constexpr auto ACTION_JOUKA = 9336; + static constexpr auto ACTION_FINAL_HEAL = 3595; + static constexpr auto CHANNELING_FUNDO = 1; + static constexpr auto CHANNELING_URAMI = 5; + static constexpr auto STATUS_INVINCIBLE = 325; + static constexpr auto LOG_MSG_01 = 5382; + static constexpr auto LOG_MSG_02 = 5383; + static constexpr auto LOG_MSG_03 = 5384; + static constexpr auto LOG_MSG_04 = 5385; + static constexpr auto BNPC_YOUKO_URAMI_01 = 6950669; + static constexpr auto BNPC_YOUKO_URAMI_02 = 6950670; + static constexpr auto BNPC_BOSSADD2_01 = 6950759; + static constexpr auto BNPC_BOSSADD2_02 = 6950762; + static constexpr auto BNPC_BOSSADD2_03 = 6950763; + static constexpr auto BNPC_YOUKO_KOKORO = 6951562; + static constexpr auto STATUS_ASTROLOGIAN_COMPOSE_STAR = 837; + static constexpr auto P_BNPC_YOUKO = 6951650; + static constexpr auto BNPCSTATE_SPECIAL_IDLE_1 = 68; + +public: + Foxfire() : Sapphire::ScriptAPI::QuestBattleScript( 156 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2000608, 6538194, 4, { -27.571140f, -3.000000f, 46.619968f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_1", 2000608, 6538193, 4, { -28.307659f, 3.999977f, 61.762589f }, 1.000000f, 0.000000f ); + instance.registerEObj( "ClanHuntboard", 2008655, 6422886, 4, { -31.520060f, 0.076252f, -43.853790f }, 0.991760f, 0.000048f ); + instance.registerEObj( "sgbg_w_qic_004_03a", 2002872, 6799085, 4, { -79.087517f, -3.006042f, 41.336670f }, 0.991760f, 0.000048f ); + instance.registerEObj( "sgbg_w_qic_004_03a_1", 2002872, 6799087, 4, { -61.668732f, -3.014119f, 84.855003f }, 0.991760f, -1.567030f ); + instance.registerEObj( "unknown_2", 2007457, 6611234, 4, { 137.621094f, 14.816470f, 92.484863f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_3", 2007457, 6538193, 4, { -27.894131f, 3.999977f, 61.384491f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_4", 2007457, 6538194, 4, { -28.259020f, -3.000000f, 46.489510f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( Foxfire ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/GrinnersintheMist.cpp b/src/scripts/instances/questbattles/GrinnersintheMist.cpp new file mode 100644 index 00000000..54506162 --- /dev/null +++ b/src/scripts/instances/questbattles/GrinnersintheMist.cpp @@ -0,0 +1,64 @@ +#include +#include + +using namespace Sapphire; + +class GrinnersintheMist : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_1ST_01 = 5042744; + static constexpr auto INIT_POP_1ST_02 = 5045543; + static constexpr auto INIT_POP_1ST_03 = 5045551; + static constexpr auto INIT_POP_1ST_04 = 5045556; + static constexpr auto INIT_POP_1ST_05 = 5045558; + static constexpr auto INIT_POP_1ST_06 = 5045559; + static constexpr auto INIT_POP_1ST_07 = 5045561; + static constexpr auto INIT_POP_1ST_08 = 5045562; + static constexpr auto INIT_POP_2ST_01 = 5045696; + static constexpr auto INIT_POP_3ST_01 = 5045697; + static constexpr auto INIT_POP_3ST_02 = 5045705; + static constexpr auto INIT_P_POP_1ST_01 = 5042741; + static constexpr auto INIT_P_POP_1ST_02 = 5042742; + static constexpr auto INIT_NPC_MOVE_POINT_01 = 5046389; + static constexpr auto INIT_NPC_MOVE_POINT_02 = 5046388; + static constexpr auto STATUS_PARM_HIDDEN_FOR_BNPC = 1197; + static constexpr auto STATUS_PARM_HIDDEN_FOR_PLAYER = 1240; + static constexpr auto DEF_ACTION_TP_DAMAGE = 3114; + static constexpr auto LCUT_ACTOR0 = 1010200; + static constexpr auto LCUT_ACTOR1 = 1010202; + static constexpr auto LCUT_ACTOR2 = 1010246; + static constexpr auto LCUT_ACTOR3 = 1010247; + static constexpr auto LCUT_ACTOR4 = 1010248; + static constexpr auto LCUT_POS0 = 5110379; + static constexpr auto LCUT_POS1 = 5110381; + static constexpr auto LCUT_POS2 = 5110382; + static constexpr auto LCUT_ACTION0 = 979; + static constexpr auto LCUT_FACE0 = 617; + static constexpr auto LCUT_FACE1 = 608; + static constexpr auto LCUT_BGM1 = 130; + +public: + GrinnersintheMist() : Sapphire::ScriptAPI::QuestBattleScript( 93 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "sgbg_w_qic_004_01a", 2007457, 6904219, 4, { 5.684449f, 16.347240f, 3.782750f }, 1.000000f, 0.000000f ); + // States -> cage01_close_01 (id: 8) cage01_open_01 (id: 10) cage01_open_02 (id: 11) + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( GrinnersintheMist ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/GuardianofEorzea.cpp b/src/scripts/instances/questbattles/GuardianofEorzea.cpp new file mode 100644 index 00000000..417a905e --- /dev/null +++ b/src/scripts/instances/questbattles/GuardianofEorzea.cpp @@ -0,0 +1,57 @@ +#include +#include + +using namespace Sapphire; + +class GuardianofEorzea : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_1ST_01 = 4755440; + static constexpr auto INIT_POP_2ST_01 = 4755441; + static constexpr auto INIT_ENPC_01 = 4759673; + static constexpr auto INIT_ENPC_02 = 4759674; + static constexpr auto INIT_ENPC_03 = 4759676; + static constexpr auto INIT_ENPC_04 = 4759677; + static constexpr auto QIB_YELL_01 = 2240; + static constexpr auto QIB_YELL_02 = 2241; + static constexpr auto QIB_YELL_03 = 2242; + static constexpr auto INIT_ENPC_05 = 4759678; + static constexpr auto INIT_ENPC_06 = 4759679; + static constexpr auto INIT_ENPC_07 = 4868546; + static constexpr auto CUT_SCENE_01 = 580; + static constexpr auto LOC_ACTOR0 = 1009412; + static constexpr auto LOC_ACTOR1 = 1009413; + static constexpr auto LOC_ACTOR2 = 1009688; + static constexpr auto LOC_ACTOR3 = 1009689; + static constexpr auto LOC_ACTOR4 = 1008176; + static constexpr auto LOC_ACTOR5 = 1008178; + static constexpr auto LOC_ACTOR6 = 1009690; + static constexpr auto LOC_ACTOR7 = 1009691; + static constexpr auto LOC_POS_ACTOR0 = 4887579; + static constexpr auto LOC_POS_ACTOR1 = 4887580; + static constexpr auto ACTION_TIMELINE_FACIAL_COMEON = 608; + static constexpr auto ACTION_TIMELINE_EVENT_BASE_IDLE4 = 787; + +public: + GuardianofEorzea() : Sapphire::ScriptAPI::QuestBattleScript( 89 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( GuardianofEorzea ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/HandsofHealing.cpp b/src/scripts/instances/questbattles/HandsofHealing.cpp new file mode 100644 index 00000000..066d4c7d --- /dev/null +++ b/src/scripts/instances/questbattles/HandsofHealing.cpp @@ -0,0 +1,71 @@ +#include +#include + +using namespace Sapphire; + +class HandsofHealing : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_DRGZMB_01 = 5886546; + static constexpr auto P_BNPC_RAYAO_01 = 5886556; + static constexpr auto P_BNPC_ARUHN_01 = 5886558; + static constexpr auto P_BNPC_SERVANT_01 = 5886561; + static constexpr auto BNPC_SKL_WAVE02_01 = 5887859; + static constexpr auto BNPC_SKL_WAVE02_02 = 5887860; + static constexpr auto BNPC_SKL_WAVE02_03 = 5887861; + static constexpr auto BNPC_SKL_WAVE02_04 = 5911561; + static constexpr auto BNPC_SKL_WAVE02_05 = 5911562; + static constexpr auto BNPC_SKL_WAVE01_01 = 5922857; + static constexpr auto BNPC_SKL_WAVE01_02 = 5922858; + static constexpr auto BNPC_SKL_WAVE01_03 = 5922859; + static constexpr auto BNPC_ETHER_01 = 5887863; + static constexpr auto BNPC_ETHER_02 = 5888386; + static constexpr auto BNPC_WAVE02_ZMB_01 = 5887930; + static constexpr auto BNPC_WAVE02_ZMB_02 = 5887931; + static constexpr auto BNPC_WAVE02_ZMB_03 = 5888028; + static constexpr auto ENPC_NECROMANCER_01 = 5888162; + static constexpr auto STATUS_PARAM_DOT_MAGIC = 1740; + static constexpr auto BNPC_TOUMEI_FOR_ETHER_MAINTAIN_BATTLE_MODE = 5910322; + static constexpr auto TORIGGER_ACTION_ETHER_HP_CONDITION = 3269; + static constexpr auto TORIGGER_ACTION_ETHER_HP_CONDITION_B = 4777; + static constexpr auto LOC_ACTOR_ESCHIVA = 1014683; + static constexpr auto LOC_ACTOR_RAYAO = 1007130; + static constexpr auto LOC_ACTOR_ARUN = 1007131; + static constexpr auto LOC_ACTOR_ARAKA = 1014682; + static constexpr auto LOC_LEVEL_ARAKA = 5890302; + static constexpr auto LOC_ACTOR_DRGZMB = 1014702; + static constexpr auto LOC_FACE1 = 611; + static constexpr auto LOC_FACE2 = 620; + static constexpr auto LOC_FACE3 = 617; + static constexpr auto LOC_FACE4 = 604; + static constexpr auto BNPC_SKL_WAVE01_04 = 5958827; + static constexpr auto BNPC_SKL_WAVE01_05 = 5958826; + static constexpr auto BNPC_SKL_WAVE02_06 = 5958840; + static constexpr auto BNPC_SKL_WAVE02_07 = 5958841; + static constexpr auto BNPC_ACTION_SOUL_DOUSE = 4182; + static constexpr auto STATUS_MALADY = 1867; + static constexpr auto LOC_BATTLE_BGM_01 = 91; + +public: + HandsofHealing() : Sapphire::ScriptAPI::QuestBattleScript( 134 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( HandsofHealing ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/HeartoftheForest.cpp b/src/scripts/instances/questbattles/HeartoftheForest.cpp new file mode 100644 index 00000000..3a12c6ee --- /dev/null +++ b/src/scripts/instances/questbattles/HeartoftheForest.cpp @@ -0,0 +1,82 @@ +#include +#include + +using namespace Sapphire; + +class HeartoftheForest : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_ATOWA_01 = 4290072; + static constexpr auto INIT_P_POP_RAYAO_01 = 4290082; + static constexpr auto INIT_P_POP_ARUN_01 = 4290083; + static constexpr auto INIT_P_POP_MOTHER_TREE_01 = 4290091; + static constexpr auto INIT_POP_1_TRENT_01 = 4290093; + static constexpr auto INIT_POP_1_TRENT_02 = 4290094; + static constexpr auto INIT_POP_1_TRENT_03 = 4290095; + static constexpr auto INIT_POP_1_CRAB_02 = 4290106; + static constexpr auto INIT_POP_1_CRAB_01 = 4290109; + static constexpr auto INIT_POP_1_CRAB_03 = 4290111; + static constexpr auto INIT_POP_2_TRENT_01 = 4292762; + static constexpr auto INIT_POP_2_TRENT_02 = 4292763; + static constexpr auto INIT_POP_2_TRENT_03 = 4292764; + static constexpr auto INIT_POP_2_OTYU_02 = 4292765; + static constexpr auto INIT_POP_2_OTYU_01 = 4292766; + static constexpr auto INIT_POP_2_OTYU_03 = 4292767; + static constexpr auto INIT_POP_3_TREE_ANGER_01 = 4290117; + static constexpr auto INIT_POP_3_TREE_ANGER_02 = 4290118; + static constexpr auto INIT_POP_3_TREE_ANGER_03 = 4290120; + static constexpr auto INIT_POP_3_TREE_ANGER_04 = 4290121; + static constexpr auto INIT_POP_3_TREE_ANGER_05 = 4290122; + static constexpr auto INIT_POP_3_TREE_ANGER_06 = 4290123; + static constexpr auto INIT_POP_3_TREE_ANGER_07 = 4290124; + static constexpr auto INIT_POP_3_TREE_ANGER_08 = 4290126; + static constexpr auto INIT_POP_3_TREE_ANGER_09 = 4290127; + static constexpr auto INIT_POP_3_TREE_ANGER_10 = 4290128; + static constexpr auto INIT_POP_3_TREE_ANGER_11 = 4290129; + static constexpr auto INIT_POP_3_TREE_ANGER_12 = 4290130; + static constexpr auto INIT_POP_3_TREE_ANGER_13 = 4290132; + static constexpr auto INIT_POP_3_TREE_ANGER_14 = 4290133; + static constexpr auto INIT_POP_3_TREE_ANGER_15 = 4290134; + static constexpr auto INIT_POP_3_TREE_ANGER_16 = 4290136; + static constexpr auto INIT_POP_3_TREE_ANGER_17 = 4290137; + static constexpr auto INIT_POP_3_TRENT_01 = 4292906; + static constexpr auto INIT_POP_3_TRENT_02 = 4292907; + static constexpr auto INIT_POP_3_TRENT_03 = 4292908; + static constexpr auto BNPC_BASE_TYPE_TRENT = 1701; + static constexpr auto BNPC_BASE_TYPE_OTYU = 1703; + static constexpr auto BNPC_BASE_TYPE_CRAB = 1705; + static constexpr auto BNPC_BASE_TYPE_ANGER = 1704; + static constexpr auto STATUS_CUSTOM_TREE_DOT1 = 689; + static constexpr auto STATUS_CUSTOM_TREE_DOT2 = 690; + static constexpr auto QIB_YELL_01 = 1173; + static constexpr auto INIT_POP_KEEP_TARGETING = 4306921; + static constexpr auto QIB_LOGMESSAGE_01 = 3210; + static constexpr auto QIB_LOGMESSAGE_02 = 3211; + static constexpr auto CUT_START_NCUT = 348; + static constexpr auto CUT_END_NCUT = 349; + static constexpr auto JOB_STORY_MES = 3656; + +public: + HeartoftheForest() : Sapphire::ScriptAPI::QuestBattleScript( 76 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2005192, 5760474, 4, { -51.493111f, 0.309087f, 71.436897f }, 1.000000f, -0.000006f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( HeartoftheForest ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/HeroicReprise.cpp b/src/scripts/instances/questbattles/HeroicReprise.cpp new file mode 100644 index 00000000..7c3c38ae --- /dev/null +++ b/src/scripts/instances/questbattles/HeroicReprise.cpp @@ -0,0 +1,73 @@ +#include +#include + +using namespace Sapphire; + +class HeroicReprise : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_FRAY = 5891995; + static constexpr auto BNPC_RESCUE_01 = 5891996; + static constexpr auto BNPC_RESCUE_02 = 5891997; + static constexpr auto BNPC_RESCUE_03 = 5891999; + static constexpr auto BNPC_DIR_DUMMY_01 = 5927524; + static constexpr auto BNPC_DIR_DUMMY_02 = 5927525; + static constexpr auto BNPC_DIR_DUMMY_03 = 5927526; + static constexpr auto BNPC_P1_LNC_01 = 5892007; + static constexpr auto BNPC_P1_LNC_02 = 5892008; + static constexpr auto BNPC_P1_LNC_03 = 5892011; + static constexpr auto BNPC_P1_LNC_04 = 5892012; + static constexpr auto BNPC_P1_LNC_05 = 5892013; + static constexpr auto BNPC_P1_LNC_06 = 5892014; + static constexpr auto BNPC_P1_THM_01 = 5892010; + static constexpr auto BNPC_P1_THM_02 = 5892015; + static constexpr auto BNPC_P2_LNC_01 = 5892058; + static constexpr auto BNPC_P2_LNC_02 = 5892059; + static constexpr auto BNPC_P2_LNC_03 = 5892062; + static constexpr auto BNPC_P2_LNC_04 = 5892065; + static constexpr auto BNPC_P2_THM_01 = 5892063; + static constexpr auto BNPC_P2_THM_02 = 5892066; + static constexpr auto BNPC_P2_DRAKE_01 = 5892060; + static constexpr auto BNPC_P2_DRAKE_02 = 5892064; + static constexpr auto BNPC_P2_DRAKE_03 = 5892067; + static constexpr auto BNPC_P3_DRAKE_01 = 5892079; + static constexpr auto BNPC_P3_DRAKE_02 = 5892080; + static constexpr auto BNPC_P3_PGL_01 = 5892085; + static constexpr auto BNPC_P2_GOAL_01 = 5892087; + static constexpr auto BNPC_P2_GOAL_01_02 = 5927597; + static constexpr auto BNPC_P2_GOAL_01_03 = 5927598; + static constexpr auto BNPC_P3_GOAL = 5892088; + static constexpr auto EOBJ_RESCUE = 5892004; + static constexpr auto ACTION_GOAL_TRIGER = 3269; + static constexpr auto ACTION_YELL_TRIGER = 4777; + static constexpr auto EVENTACTION_RESCUE = 39; + static constexpr auto YELL_RESCUE_01 = 2669; + static constexpr auto YELL_RESCUE_02 = 2670; + static constexpr auto YELL_RESCUE_03 = 2673; + static constexpr auto YELL_RESCUE_04 = 3065; + static constexpr auto YELL_AMALJA_01 = 2671; + static constexpr auto YELL_AMALJA_02 = 2672; + +public: + HeroicReprise() : Sapphire::ScriptAPI::QuestBattleScript( 136 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( HeroicReprise ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/HisForgottenHome.cpp b/src/scripts/instances/questbattles/HisForgottenHome.cpp new file mode 100644 index 00000000..44c85025 --- /dev/null +++ b/src/scripts/instances/questbattles/HisForgottenHome.cpp @@ -0,0 +1,70 @@ +#include +#include + +using namespace Sapphire; + +class HisForgottenHome : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto P_BNPC_ASAHI = 7189295; + static constexpr auto P_BNPC_YUGIRI = 7189303; + static constexpr auto P_BNPC_YUGIRI_AVATAR = 7253964; + static constexpr auto P_BNPC_YUGIRI_AVATAR_2 = 7283041; + static constexpr auto P_BNPC_ALISAIE = 7189304; + static constexpr auto P_BNPC_ISSE = 7189305; + static constexpr auto P_BNPC_AZAMI = 7189306; + static constexpr auto BNPC_KOJIN_BOSS = 7189311; + static constexpr auto BNPC_KOJIN_SAMURAI_01 = 7189312; + static constexpr auto BNPC_KOJIN_SAMURAI_02 = 7189313; + static constexpr auto BNPC_KOJIN_SAMURAI_03 = 7189314; + static constexpr auto BNPC_KOJIN_SAMURAI_04 = 7189315; + static constexpr auto BNPC_KOJIN_SAMURAI_05 = 7293406; + static constexpr auto BNPC_KOJIN_SAMURAI_06 = 7293407; + static constexpr auto BNPC_KOJIN_SAMURAI_07 = 7293408; + static constexpr auto BNPC_KOJIN_NINJA_01 = 7226515; + static constexpr auto BNPC_KOJIN_NINJA_02 = 7226527; + static constexpr auto BNPC_KOJIN_NINJA_03 = 7226528; + static constexpr auto BNPC_KOJIN_NINJA_04 = 7226534; + static constexpr auto BNPC_KOJIN_NINJA_05 = 7226538; + static constexpr auto BNPC_KOJIN_NINJA_06 = 7226539; + static constexpr auto BNPC_KOJIN_NINJA_07 = 7226540; + static constexpr auto BNPC_KOJIN_NINJA_08 = 7226541; + static constexpr auto BNPC_KOJIN_MAGIC_01 = 7226535; + static constexpr auto BNPC_KOJIN_MAGIC_02 = 7226537; + static constexpr auto EOBJ_DAMAGE_AREA = 7253968; + static constexpr auto QIB_YELL_StmBdc106_01 = 6631; + static constexpr auto QIB_YELL_StmBdc106_02 = 6632; + static constexpr auto ACTION_WATER_SHARE = 10573; + static constexpr auto ACTION_BLIND = 3206; + static constexpr auto ACTION_ICE_FLOOR = 10874; + static constexpr auto ACTION_TRIGGER = 3269; + static constexpr auto LOCKON_WATER_SHARE = 62; + static constexpr auto LOCKON_ICE_FLOOR = 26; + static constexpr auto STATUS_DOT_DMAGE = 3590; + static constexpr auto ACTION_JUBAKU = 3207; + static constexpr auto EOBJ_JUBAKU_AREA = 7335014; + static constexpr auto STATUS_JUBAKU = 1039; + +public: + HisForgottenHome() : Sapphire::ScriptAPI::QuestBattleScript( 178 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( HisForgottenHome ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/HistoryRepeating.cpp b/src/scripts/instances/questbattles/HistoryRepeating.cpp new file mode 100644 index 00000000..2e64bfcb --- /dev/null +++ b/src/scripts/instances/questbattles/HistoryRepeating.cpp @@ -0,0 +1,74 @@ +#include +#include + +using namespace Sapphire; + +class HistoryRepeating : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_1_LNC_01 = 4294343; + static constexpr auto INIT_POP_1_LNC_02 = 4294344; + static constexpr auto INIT_POP_1_THM_01 = 4294345; + static constexpr auto INIT_POP_1_EXC_01 = 4294347; + static constexpr auto INIT_POP_1_EXC_02 = 4294348; + static constexpr auto INIT_POP_1_SEI_01 = 4294351; + static constexpr auto INIT_POP_2_LNC_01 = 4294439; + static constexpr auto INIT_POP_2_THM_01 = 4294440; + static constexpr auto INIT_POP_2_EXC_01 = 4294441; + static constexpr auto INIT_POP_3_SKE_01 = 4294750; + static constexpr auto INIT_POP_3_SKE_02 = 4294751; + static constexpr auto INIT_POP_3_LNC_01 = 4294752; + static constexpr auto INIT_POP_3_EXC_01 = 4294754; + static constexpr auto INIT_POP_4_LNC_01 = 4294755; + static constexpr auto INIT_POP_4_THM_01 = 4294756; + static constexpr auto INIT_POP_4_EXC_01 = 4294758; + static constexpr auto INIT_POP_5_THM_01 = 4294763; + static constexpr auto INIT_POP_5_LNC_02 = 4294764; + static constexpr auto INIT_POP_5_SKE_01 = 4294766; + static constexpr auto DEF_ACTION_CHARM_SONG = 1329; + static constexpr auto QIB_YELL_01 = 1321; + static constexpr auto QIB_YELL_02 = 1342; + static constexpr auto QIB_YELL_03 = 1343; + static constexpr auto QIB_YELL_04 = 1344; + static constexpr auto INIT_POP_SONG_BALL_A = 4317589; + static constexpr auto INIT_POP_SONG_BALL_A_2 = 4317648; + static constexpr auto INIT_POP_SONG_BALL_B = 4317650; + static constexpr auto BNPC_TYPE_SONG_BALL_A = 1633; + static constexpr auto BNPC_TYPE_SONG_BALL_B = 1634; + static constexpr auto INIT_P_POP_KEEP_TARGETING = 4317701; + static constexpr auto LOC_ACTOR0 = 1007700; + static constexpr auto LOC_ACTOR1 = 1002236; + static constexpr auto LOC_POS_ACTOR0 = 4334457; + static constexpr auto LOC_POS_ACTOR1 = 4334458; + static constexpr auto LOC_POS_ACTOR2 = 4334459; + static constexpr auto LOC_POS_CAM1 = 4334460; + static constexpr auto LOC_FACE0 = 604; + static constexpr auto LOC_FACE1 = 619; + static constexpr auto LOC_BGM1 = 112; + +public: + HistoryRepeating() : Sapphire::ScriptAPI::QuestBattleScript( 86 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "Entrance", 2000182, 6228959, 5, { 457.583801f, 5.680784f, 280.512787f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "unknown_0", 2000608, 2807920, 4, { -95.322441f, -25.054260f, 61.518002f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( HistoryRepeating ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/Homecoming.cpp b/src/scripts/instances/questbattles/Homecoming.cpp new file mode 100644 index 00000000..1ef9e534 --- /dev/null +++ b/src/scripts/instances/questbattles/Homecoming.cpp @@ -0,0 +1,39 @@ +#include +#include + +using namespace Sapphire; + +class Homecoming : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_01 = 3777844; + static constexpr auto LOC_POS_FIRST = 3867063; + static constexpr auto INIT_POP_02 = 3906824; + static constexpr auto INIT_POP_03 = 3906825; + static constexpr auto BNPC_001 = 539; + static constexpr auto LOC_ACTOR0 = 1000199; + +public: + Homecoming() : Sapphire::ScriptAPI::QuestBattleScript( 4 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2005192, 5760474, 4, { -51.493111f, 0.309087f, 71.436897f }, 1.000000f, -0.000006f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( Homecoming ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/HopeontheWaves.cpp b/src/scripts/instances/questbattles/HopeontheWaves.cpp new file mode 100644 index 00000000..9e693c82 --- /dev/null +++ b/src/scripts/instances/questbattles/HopeontheWaves.cpp @@ -0,0 +1,126 @@ +#include +#include + +using namespace Sapphire; + +class HopeontheWaves : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto WARP_01 = 7186209; + static constexpr auto NCUT_01 = 1676; + static constexpr auto NCUT_02 = 1677; + static constexpr auto P_BNPC_PIRATE_01 = 7288485; + static constexpr auto P_BNPC_PIRATE_02 = 7288494; + static constexpr auto P_BNPC_PIRATE_03 = 7288495; + static constexpr auto P_BNPC_PIRATE_04 = 7288497; + static constexpr auto P_BNPC_PIRATE_05 = 7288498; + static constexpr auto P_BNPC_ALPHINAUD = 7288500; + static constexpr auto P_BNPC_CARBUNCLE_WHITE = 7288502; + static constexpr auto P_BNPC_YUGIRI = 7288507; + static constexpr auto P_BNPC_TANSUI = 7288519; + static constexpr auto BNPC_ENEMY_EMPIRE_SPEAR_01 = 7288522; + static constexpr auto BNPC_ENEMY_EMPIRE_SPEAR_02 = 7288525; + static constexpr auto BNPC_ENEMY_EMPIRE_SPEAR_03 = 7288526; + static constexpr auto BNPC_ENEMY_EMPIRE_SPEAR_04 = 7288527; + static constexpr auto BNPC_ENEMY_EMPIRE_SPEAR_05 = 7288528; + static constexpr auto BNPC_ENEMY_EMPIRE_CONJ_01 = 7288529; + static constexpr auto BNPC_ENEMY_EMPIRE_CONJ_02 = 7288530; + static constexpr auto BNPC_ENEMY_EMPIRE_CONJ_03 = 7288531; + static constexpr auto BNPC_ENEMY_EMPIRE_CONJ_04 = 7288532; + static constexpr auto BNPC_ENEMY_EMPIRE_SWORD_01 = 7288533; + static constexpr auto BNPC_ENEMY_EMPIRE_SWORD_02 = 7288534; + static constexpr auto BNPC_KMACHINE_IRONSPIKE = 7288535; + static constexpr auto PR_TANSUI_MOVE_POS = 7288548; + static constexpr auto PR_PIRATE_MOVE_POS = 7292066; + static constexpr auto PR_PIRATE_MOVE_POS2 = 7315871; + static constexpr auto EOBJ_SHARED_CONTROL = 7295786; + static constexpr auto EVENT_RANGE_NEXT_CUT = 7291574; + static constexpr auto P_BNPC_ALPHINAUD_2 = 7292138; + static constexpr auto P_BNPC_CARBUNCLE_WHITE_2 = 7292140; + static constexpr auto P_BNPC_YUGIRI_2 = 7292141; + static constexpr auto P_BNPC_TANSUI_2 = 7292143; + static constexpr auto P_BNPC_YUGIRI_AVATAR01 = 7307562; + static constexpr auto P_BNPC_YUGIRI_AVATAR02 = 7307565; + static constexpr auto BNPC_ENEMY_EMPIRE_LEADER = 7292111; + static constexpr auto BNPC_ENEMY_EMPIRE_SPEAR_06 = 7292072; + static constexpr auto BNPC_ENEMY_EMPIRE_SPEAR_07 = 7292100; + static constexpr auto BNPC_ENEMY_EMPIRE_CONJ_05 = 7292073; + static constexpr auto BNPC_ENEMY_EMPIRE_CONJ_06 = 7292101; + static constexpr auto BNPC_ENEMY_EMPIRE_SWORD_03 = 7292079; + static constexpr auto BNPC_ENEMY_EMPIRE_SWORD_04 = 7292102; + static constexpr auto BNPC_KMACHINE_IRONSPIKE_01 = 7292118; + static constexpr auto BNPC_KMACHINE_IRONSPIKE_02 = 7292121; + static constexpr auto BNPC_KMACHINE_IRONSPIKE_03 = 7292124; + static constexpr auto BNPC_KMACHINE_IRONSPIKE_04 = 7292125; + static constexpr auto BNPC_MACHINE_WHEELED = 7292132; + static constexpr auto BNPC_TOUMEI_ACTION_LB = 7292152; + static constexpr auto BNPC_TOUMEI_ACTION_DIST = 7292160; + static constexpr auto BNPC_MACHINE_BIT_01 = 7292516; + static constexpr auto BNPC_MACHINE_BIT_02 = 7292517; + static constexpr auto BNPC_MACHINE_BIT_03 = 7292518; + static constexpr auto BNPC_MACHINE_BIT_04 = 7292519; + static constexpr auto BNPC_MACHINE_BIT_BOM_01 = 7292524; + static constexpr auto BNPC_MACHINE_BIT_BOM_02 = 7292524; + static constexpr auto BNPC_MACHINE_BIT_BOM_03 = 7292524; + static constexpr auto BNPC_MACHINE_BIT_BOM_04 = 7292524; + static constexpr auto BNPC_MACHINE_BIT_BOM_05 = 7292524; + static constexpr auto BNPC_MACHINE_BIT_BOM_06 = 7292524; + static constexpr auto BNPC_TOUMEI_POS01 = 7292520; + static constexpr auto BNPC_TOUMEI_POS02 = 7292521; + static constexpr auto BNPC_TOUMEI_POS03 = 7292136; + static constexpr auto P_BNPC_GOSETSU = 7309542; + static constexpr auto P_BNPC_YOTSUYU = 7309544; + static constexpr auto PR_MACHINE_BIT_BOM_POS01 = 7292522; + static constexpr auto ACTION_DIST_MISSILE = 10816; + static constexpr auto ACTION_TOUMEI_DIST_MISSILE = 10893; + static constexpr auto ACTION_KMACHINE_SUICIDE = 10928; + static constexpr auto ACTION_SLOW_AREA = 10892; + static constexpr auto ACTION_BLIND = 3206; + static constexpr auto ACTION_LB = 10894; + static constexpr auto ACTION_SUMMON = 9158; + static constexpr auto LOCKON_DIST = 17; + static constexpr auto BNPCBASE_KMACHINE_IRONSPIKE_01 = 8468; + static constexpr auto BNPCBASE_KMACHINE_IRONSPIKE_02 = 8468; + static constexpr auto BNPCBASE_KMACHINE_IRONSPIKE_03 = 8468; + static constexpr auto BNPCBASE_KMACHINE_IRONSPIKE_04 = 8468; + static constexpr auto BNPCBASE_MACHINE_WHEELED = 8469; + static constexpr auto EOBJ_SLOW_AREA = 7292514; + static constexpr auto EOBJ_WALL_CONTROL = 7307561; + static constexpr auto EOBJ_GOSETSU_KATANA = 7315865; + static constexpr auto STATUS_SLOW_TIME = 3620; + static constexpr auto QIB_YELL_StmBdc103_01 = 6733; + static constexpr auto QIB_YELL_StmBdc103_02 = 3089; + static constexpr auto QIB_YELL_StmBdc103_03 = 6736; + static constexpr auto LOC_BGM1 = 107; + static constexpr auto LOGMESSAGE_LB_COUNT_01 = 9201; + static constexpr auto LOGMESSAGE_LB_COUNT_02 = 9202; + static constexpr auto LOGMESSAGE_LB_COUNT_03 = 9203; + static constexpr auto LOGMESSAGE_LB_COUNT_04 = 9204; + static constexpr auto LOGMESSAGE_LB_COUNT_05 = 9205; + static constexpr auto LINEVOICE_ALPHINAUD_01 = 8201086; + +public: + HopeontheWaves() : Sapphire::ScriptAPI::QuestBattleScript( 181 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2008480, 6894787, 4, { 564.783630f, -60.304729f, -136.444901f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_1", 2004541, 0, 4, { 800.087585f, 0.000000f, 44.317749f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( HopeontheWaves ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/HowtoQuitYou.cpp b/src/scripts/instances/questbattles/HowtoQuitYou.cpp new file mode 100644 index 00000000..43d93b5c --- /dev/null +++ b/src/scripts/instances/questbattles/HowtoQuitYou.cpp @@ -0,0 +1,105 @@ +#include +#include + +using namespace Sapphire; + +class HowtoQuitYou : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_1ST_A_01 = 4272556; + static constexpr auto INIT_POP_1ST_A_02 = 4272557; + static constexpr auto INIT_POP_1ST_A_03 = 4272558; + static constexpr auto INIT_POP_1ST_A_04 = 4272559; + static constexpr auto INIT_POP_1ST_A_05 = 4272560; + static constexpr auto INIT_P_POP_01 = 4329195; + static constexpr auto INIT_P_POP_02 = 4272571; + static constexpr auto INIT_P_POP_03 = 4272573; + static constexpr auto INIT_POP_2ND_B_01 = 4272579; + static constexpr auto INIT_POP_2ND_B_02 = 4272580; + static constexpr auto INIT_POP_2ND_B_03 = 4272581; + static constexpr auto INIT_POP_2ND_B_04 = 4272582; + static constexpr auto INIT_POP_2ND_B_05 = 4272583; + static constexpr auto INIT_POP_BOSS = 4273307; + static constexpr auto WARP_01 = 4273310; + static constexpr auto INIT_POP_3RD_C_01 = 4273323; + static constexpr auto INIT_POP_3RD_C_02 = 4273324; + static constexpr auto INIT_POP_3RD_C_03 = 4273327; + static constexpr auto INIT_POP_3RD_C_04 = 4273328; + static constexpr auto INIT_POP_3RD_C_05 = 4273331; + static constexpr auto INIT_POP_3RD_C_06 = 4273332; + static constexpr auto INIT_POP_3RD_C_07 = 4273334; + static constexpr auto INIT_POP_3RD_C_08 = 4273335; + static constexpr auto INIT_POP_3RD_C_09 = 4273336; + static constexpr auto INIT_POP_3RD_C_10 = 4273338; + static constexpr auto INIT_POP_3RD_C_11 = 4273341; + static constexpr auto INIT_POP_3RD_C_12 = 4273343; + static constexpr auto INIT_POP_3RD_C_13 = 4273344; + static constexpr auto INIT_POP_4TH_D_01 = 4273694; + static constexpr auto INIT_POP_4TH_D_02 = 4273695; + static constexpr auto INIT_POP_4TH_D_03 = 4273696; + static constexpr auto INIT_POP_4TH_D_04 = 4273697; + static constexpr auto INIT_POP_4TH_D_05 = 4273700; + static constexpr auto INIT_POP_4TH_D_06 = 4273701; + static constexpr auto INIT_POP_4TH_D_07 = 4273702; + static constexpr auto INIT_POP_4TH_D_08 = 4273704; + static constexpr auto INIT_POP_4TH_D_09 = 4273705; + static constexpr auto INIT_POP_4TH_D_10 = 4273706; + static constexpr auto INIT_POP_4TH_D_11 = 4273708; + static constexpr auto INIT_POP_4TH_C_01 = 4273709; + static constexpr auto INIT_POP_4TH_C_02 = 4273710; + static constexpr auto INIT_POP_4TH_C_03 = 4273713; + static constexpr auto INIT_POP_4TH_C_04 = 4273714; + static constexpr auto INIT_POP_4TH_C_05 = 4273715; + static constexpr auto INIT_POP_4TH_C_06 = 4273716; + static constexpr auto INIT_POP_4TH_C_07 = 4273727; + static constexpr auto INIT_POP_4TH_C_08 = 4273729; + static constexpr auto INIT_POP_4TH_C_09 = 4273732; + static constexpr auto INIT_POP_4TH_C_10 = 4273733; + static constexpr auto INIT_POP_4TH_C_11 = 4273735; + static constexpr auto INIT_POP_4TH_C_12 = 4273738; + static constexpr auto INIT_POP_4TH_C_13 = 4273740; + static constexpr auto INIT_POP_4TH_C_14 = 4302586; + static constexpr auto INIT_POP_4TH_C_15 = 4302587; + static constexpr auto INIT_POP_4TH_C_16 = 4302589; + static constexpr auto INIT_POP_4TH_C_17 = 4302590; + static constexpr auto INIT_ENPC_POP_01 = 4274643; + static constexpr auto INIT_ENPC_POP_02 = 4274644; + static constexpr auto LOG_EVENT_QIB_WAR500_BTL_01 = 3204; + static constexpr auto LOG_EVENT_QIB_WAR500_BTL_02 = 3205; + static constexpr auto BGM_JOB_SHIREN = 91; + static constexpr auto LOC_ACTOR0 = 1007128; + static constexpr auto LOC_ACTOR1 = 1007141; + static constexpr auto LOC_ACTOR2 = 1007142; + static constexpr auto LOC_ACTOR3 = 1007143; + static constexpr auto LOC_POS_ACTOR0 = 4312944; + static constexpr auto CUT_INSART_NCUT = 323; + static constexpr auto CUT_END_NCUT = 324; + static constexpr auto INIT_ENPC_POP_03 = 4322368; + static constexpr auto INIT_ENPC_POP_04 = 4322688; + static constexpr auto JOB_STORY_MES = 3606; + +public: + HowtoQuitYou() : Sapphire::ScriptAPI::QuestBattleScript( 67 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2009569, 0, 4, { 763.213318f, 9.000000f, 358.016998f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_1", 2009570, 0, 4, { 748.506775f, 9.000000f, 520.002930f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( HowtoQuitYou ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheCarteneauFlatsHeliodrome.cpp b/src/scripts/instances/questbattles/ICouldHaveTrancedAllNight.cpp similarity index 51% rename from src/scripts/instances/questbattles/TheCarteneauFlatsHeliodrome.cpp rename to src/scripts/instances/questbattles/ICouldHaveTrancedAllNight.cpp index edbd246c..0aec7de3 100644 --- a/src/scripts/instances/questbattles/TheCarteneauFlatsHeliodrome.cpp +++ b/src/scripts/instances/questbattles/ICouldHaveTrancedAllNight.cpp @@ -1,17 +1,67 @@ #include -#include +#include using namespace Sapphire; -class TheCarteneauFlatsHeliodrome : - public Sapphire::ScriptAPI::InstanceContentScript +class ICouldHaveTrancedAllNight : public Sapphire::ScriptAPI::QuestBattleScript { +private: + static constexpr auto P_BNPC_ROEGA_01 = 5919002; + static constexpr auto P_BNPC_YAMITRA_01 = 5919004; + static constexpr auto BNPC_CUP_01 = 5919028; + static constexpr auto BNPC_IF_EGI_A = 5919032; + static constexpr auto BNPC_TAI_EGI_A = 5919041; + static constexpr auto BNPC_GAL_EGI_A = 5919042; + static constexpr auto BNPC_IF_EGI_B = 5919046; + static constexpr auto BNPC_TAI_EGI_B = 5919047; + static constexpr auto BNPC_GAL_EGI_B = 5919048; + static constexpr auto EOBJ_BAHA_AETHER_AREA_01 = 5919142; + static constexpr auto EOBJ_BAHA_AETHER_AREA_02 = 5919143; + static constexpr auto EOBJ_BAHA_AETHER_AREA_03 = 5919144; + static constexpr auto EOBJ_BAHA_AETHER_AREA_04 = 5919145; + static constexpr auto EOBJ_BAHA_AETHER_AREA_05 = 5919146; + static constexpr auto EOBJ_BAHA_AETHER_AREA_06 = 5919147; + static constexpr auto STATUS_PARAM_BAHA_AETHER = 1754; + static constexpr auto STATUS_BAHA_TRANS = 1750; + static constexpr auto EVENT_ACTION_01 = 19; + static constexpr auto LOG_MESSAGE_BAHA_FIRE_SENSE_01 = 3280; + static constexpr auto LOG_MESSAGE_BAHA_WING_SENSE_01 = 3282; + static constexpr auto LOG_MESSAGE_BAHA_CLAW_SENSE_01 = 3284; + static constexpr auto LOG_MESSAGE_BAHA_IMAGE_01 = 3281; + static constexpr auto LOG_MESSAGE_BAHA_IMAGE_02 = 3283; + static constexpr auto LOG_MESSAGE_BAHA_IMAGE_03 = 3285; + static constexpr auto LOG_MESSAGE_BAHA_IMAGE_04 = 3286; + static constexpr auto LOG_MESSAGE_BAHA_IMAGE_05 = 3287; + static constexpr auto LOG_MESSAGE_BAHA_IMAGE_06 = 3288; + static constexpr auto LOG_MESSAGE_TRANS_SUCCESS = 3289; + static constexpr auto NCUT_01 = 967; + static constexpr auto POPRANGE_EGI_01 = 5923525; + static constexpr auto POPRANGE_EGI_02 = 5923528; + static constexpr auto POPRANGE_EGI_03 = 5923529; + static constexpr auto POPRANGE_EGI_04 = 5923531; + static constexpr auto POPRANGE_EGI_05 = 5923532; + static constexpr auto POPRANGE_EGI_06 = 5923533; + static constexpr auto LCUT_ACTOR0 = 1014921; + static constexpr auto LCUT_ACTOR1 = 1013845; + static constexpr auto LCUT_ACTOR2 = 1014636; + static constexpr auto LCUT_POS_ACTOR0 = 5923743; + static constexpr auto LCUT_POS_ACTOR1 = 5918992; + static constexpr auto LCUT_POS_ACTOR2 = 5919028; + static constexpr auto BNPC_BASE_ID_CUP_01 = 4897; + static constexpr auto LCUT_ACTION0 = 983; + static constexpr auto BNPC_TOUMEI_TRANCE_EFFECT = 5959636; + static constexpr auto BNPC_ACTION_TRANCE_EFFECT = 5074; + static constexpr auto LCUT_BGM0 = 114; + static constexpr auto LCUT_POS_CAM0 = 5963631; + static constexpr auto LOC_VFX0 = 251; + static constexpr auto LOC_SE0 = 52; + static constexpr auto BNPC_HATE_SCAPEGOAT = 7022197; + public: - TheCarteneauFlatsHeliodrome() : - Sapphire::ScriptAPI::InstanceContentScript( 5004 ) + ICouldHaveTrancedAllNight() : Sapphire::ScriptAPI::QuestBattleScript( 149 ) { } - void onInit( InstanceContent& instance ) override + void onInit( QuestBattle& instance ) override { instance.registerEObj( "sgbg_l1p1_q3_swhu1", 2005078, 5573675, 4, { -150.601807f, -15.195440f, 86.396042f }, 0.991760f, 0.000048f ); // States -> magic_go (id: 33) magic_down (id: 56) magic_2down (id: 57) magic_on (id: 58) magic_2on (id: 59) @@ -41,12 +91,12 @@ public: } - void onUpdate( InstanceContent& instance, uint32_t currTime ) override + void onUpdate( QuestBattle& instance, uint32_t currTime ) override { } - void onEnterTerritory( InstanceContent& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, uint16_t param2 ) override { @@ -54,4 +104,4 @@ public: }; -EXPOSE_SCRIPT( TheCarteneauFlatsHeliodrome ); \ No newline at end of file +EXPOSE_SCRIPT( ICouldHaveTrancedAllNight ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/InCrimsonItBegan.cpp b/src/scripts/instances/questbattles/InCrimsonItBegan.cpp new file mode 100644 index 00000000..f233521c --- /dev/null +++ b/src/scripts/instances/questbattles/InCrimsonItBegan.cpp @@ -0,0 +1,133 @@ +#include +#include + +using namespace Sapphire; + +class InCrimsonItBegan : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_WARP_POINT_001 = 6842088; + static constexpr auto CUT_SCENE_01 = 1394; + static constexpr auto P_BNPC_ALPHINAUD = 6828499; + static constexpr auto P_BNPC_CARBUNCLE = 6828504; + static constexpr auto P_BNPC_PIPIN = 6828509; + static constexpr auto P_BNPC_ALISAIE = 6828511; + static constexpr auto P_BNPC_KRILE = 6828515; + static constexpr auto BNPC_EMPIER_PHASE1_THM1 = 6889827; + static constexpr auto BNPC_EMPIER_PHASE1_THM2 = 6889828; + static constexpr auto BNPC_EMPIER_PHASE1_EXC1 = 6889829; + static constexpr auto BNPC_EMPIER_PHASE1_EXC2 = 6889831; + static constexpr auto BNPC_EMPIER_PHASE1_PGL1 = 6889830; + static constexpr auto P_BNPC_PHASE1_HOSTAGE1 = 6889837; + static constexpr auto P_BNPC_PHASE1_HOSTAGE2 = 6889836; + static constexpr auto P_BNPC_PHASE1_HOSTAGE3 = 6889838; + static constexpr auto PRANGE_PHASE1_HOSTAGE1 = 6889840; + static constexpr auto PRANGE_PHASE1_HOSTAGE2 = 6889841; + static constexpr auto PRANGE_PHASE1_HOSTAGE3 = 6889842; + static constexpr auto ERANGE_PHASE1 = 6889834; + static constexpr auto ERANGE_PHASE2 = 6890073; + static constexpr auto ERANGE_PHASE3 = 6890276; + static constexpr auto P_BNPC_PHASE2_HOSTAGE1 = 6890159; + static constexpr auto P_BNPC_PHASE2_HOSTAGE2 = 6890160; + static constexpr auto P_BNPC_KAIHOUGUN_PHASE2_SWD1 = 6890173; + static constexpr auto P_BNPC_KAIHOUGUN_PHASE2_EXC1 = 6890181; + static constexpr auto BNPC_EMPIER_PHASE2_EXC1 = 6890206; + static constexpr auto BNPC_EMPIER_PHASE2_PGL1 = 6890188; + static constexpr auto BNPC_EMPIER_PHASE2_THM1 = 6890189; + static constexpr auto BNPC_EMPIER_PHASE2_THM2 = 6890191; + static constexpr auto BNPC_EMPIER_PHASE2_MACHINE1 = 6890192; + static constexpr auto BNPC_EMPIER_PHASE2_MACHINE2 = 6890201; + static constexpr auto P_BNPC_PHASE3_HOSTAGE1 = 6890300; + static constexpr auto P_BNPC_PHASE3_HOSTAGE2 = 6890305; + static constexpr auto P_BNPC_KAIHOUGUN_PHASE3_SWD1 = 6890306; + static constexpr auto P_BNPC_KAIHOUGUN_PHASE3_EXC1 = 6890307; + static constexpr auto BNPC_EMPIER_PHASE3_EXC1 = 6890318; + static constexpr auto BNPC_EMPIER_PHASE3_PGL1 = 6890309; + static constexpr auto BNPC_WOLFMAN_PHASE3_SAM1 = 6890320; + static constexpr auto BNPC_WOLFMAN_PHASE3_LNC1 = 6890321; + static constexpr auto BNPC_WOLFMAN_PHASE3_ARC1 = 6890322; + static constexpr auto BNPC_WOLFMAN_PHASE3_ARC2 = 6890327; + static constexpr auto EOBJ_BOSS_ROOM_CONTROL = 6890473; + static constexpr auto ERANGE_PHASE4 = 6890642; + static constexpr auto BNPC_SKULL_FORCE_PHASE4_FORDLA = 6828565; + static constexpr auto BNPC_SKULL_FORCE_PHASE4_THM1 = 6890671; + static constexpr auto BNPC_SKULL_FORCE_PHASE4_THM2 = 6890672; + static constexpr auto BNPC_SKULL_FORCE_PHASE4_SWD1 = 6890673; + static constexpr auto BNPC_SKULL_FORCE_PHASE4_LNC1 = 6890674; + static constexpr auto BNPC_ZENOS = 6828566; + static constexpr auto BNPC_STATE_EXHAUSTED = 6; + static constexpr auto BNPC_STATE_SCARE = 7; + static constexpr auto BNPC_STATE_ACTIVE = 1; + static constexpr auto BNPC_STATE_ATTRIBUTE_CHANGE_A1_B1_C0_KEEP = 139; + static constexpr auto BEHAVIOR_HOSTAGE_PHASE1 = 30936; + static constexpr auto BEHAVIOR_ALPHINAUD_PHASE1 = 30937; + static constexpr auto PRANGE_PHASE1_ALPHINAUD1 = 6891799; + static constexpr auto PRANGE_PHASE2_KAIHOUGUN_EXC = 6892443; + static constexpr auto PRANGE_PHASE2_KAIHOUGUN_SWD = 6892444; + static constexpr auto PRANGE_PHASE1_ALISAIE1 = 6892447; + static constexpr auto BEHAVIOR_PIPIN_PHASE1 = 30938; + static constexpr auto BEHAVIOR_KRILE_PHASE1 = 30939; + static constexpr auto YELL_KRILE_01 = 4789; + static constexpr auto YELL_PIPIN_01 = 4790; + static constexpr auto YELL_HOSTAGE_04 = 4792; + static constexpr auto YELL_HOSTAGE_05 = 4793; + static constexpr auto YELL_HOSTAGE_06 = 4794; + static constexpr auto YELL_KAIHOUGUN_01 = 4799; + static constexpr auto YELL_KAIHOUGUN_02 = 4800; + static constexpr auto YELL_ALPHINAUD_02 = 4801; + static constexpr auto YELL_WOLFMAN_01 = 4802; + static constexpr auto YELL_WOLFMAN_02 = 4803; + static constexpr auto YELL_FORDOLA_03 = 4791; + static constexpr auto STATUS_KNOCKDOWN_ETERNAL = 3000; + static constexpr auto STATUS_KNOCKDOWN = 3001; + static constexpr auto STATUS_STUN = 2991; + static constexpr auto STATUS_TERROR = 3331; + static constexpr auto PRANGE_HOSTAGE_DEPOP = 6828473; + static constexpr auto BNPC_TOUMEI_HOCK_NPCDEAD = 6894431; + static constexpr auto P_BNPC_PIPIN_SECOND = 6842091; + static constexpr auto P_BNPC_ALISAIE_SECOND = 6842089; + static constexpr auto BNPC_FUJINKEN = 6895494; + static constexpr auto BNPC_RAIJINKEN_01 = 6895495; + static constexpr auto BNPC_RAIJINKEN_02 = 6940216; + static constexpr auto BNPC_RAIJINKEN_03 = 6940214; + static constexpr auto BNPC_RAIJINKEN_04 = 6940227; + static constexpr auto BNPC_RAIJINKEN_05 = 6940210; + static constexpr auto BNPC_RAIJINKEN_06 = 6940230; + static constexpr auto BNPC_RAIJINKEN_07 = 6940212; + static constexpr auto BNPC_RAIJINKEN_08 = 6940226; + static constexpr auto BNPC_RAIJINKEN_09 = 6940235; + static constexpr auto BNPC_RAIJINKEN_10 = 6940237; + static constexpr auto BNPC_RAIJINKEN_11 = 6940236; + static constexpr auto BNPC_RAIJINKEN_12 = 6940238; + static constexpr auto ENPC_ALPINAUD = 6971433; + static constexpr auto ENPC_KRILE = 6971434; + static constexpr auto ACTION_RAIDDAMAGE_PHASE1 = 8693; + static constexpr auto ACTION_HATE_RESETED = 3269; + static constexpr auto LINEVOICE_FORDOLA_03 = 8201359; + static constexpr auto LINEVOICE_PIPIN_03 = 8201328; + static constexpr auto BGM_ZENOS_BATTLE = 207; + +public: + InCrimsonItBegan() : Sapphire::ScriptAPI::QuestBattleScript( 155 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "ClanHuntboard", 2008654, 0, 4, { 95.105537f, 0.652042f, 22.605730f }, 1.000000f, -1.231116f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( InCrimsonItBegan ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/InHerDefense.cpp b/src/scripts/instances/questbattles/InHerDefense.cpp new file mode 100644 index 00000000..548a8ed6 --- /dev/null +++ b/src/scripts/instances/questbattles/InHerDefense.cpp @@ -0,0 +1,164 @@ +#include +#include + +using namespace Sapphire; + +class InHerDefense : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_COMPANION_OBORO_01 = 5907854; + static constexpr auto BNPC_COMPANION_AKAGI_01 = 5907861; + static constexpr auto BNPC_ENEMY_ROSALINDE_01 = 5907866; + static constexpr auto BNPC_ENEMY_REDWAY_01 = 5907870; + static constexpr auto BNPC_ENEMY_PACK_A_EXC_01 = 5907872; + static constexpr auto BNPC_ENEMY_PACK_A_ARC_01 = 5907873; + static constexpr auto BNPC_ENEMY_PACK_A_ARC_02 = 5907874; + static constexpr auto BNPC_ENEMY_PACK_B_EXC_01 = 5907875; + static constexpr auto BNPC_ENEMY_PACK_B_EXC_02 = 5907876; + static constexpr auto BNPC_ENEMY_PACK_B_ARC_01 = 5907877; + static constexpr auto BNPC_ENEMY_PACK_C_EXC_01 = 5907878; + static constexpr auto BNPC_ENEMY_PACK_C_EXC_02 = 5907879; + static constexpr auto BNPC_ENEMY_PACK_C_ARC_01 = 5907880; + static constexpr auto BNPC_ENEMY_RANDOM_POP_01 = 5907881; + static constexpr auto BNPC_ENEMY_RANDOM_BAT_01 = 5907882; + static constexpr auto BNPC_ENEMY_PACK_D_EXC_01 = 5907883; + static constexpr auto BNPC_ENEMY_PACK_D_EXC_02 = 5907884; + static constexpr auto BNPC_ENEMY_PACK_D_EXC_03 = 5907885; + static constexpr auto BNPC_ENEMY_PACK_E_EXC_01 = 5907887; + static constexpr auto BNPC_ENEMY_PACK_E_EXC_02 = 5907888; + static constexpr auto BNPC_ENEMY_PACK_E_CNJ_01 = 5907889; + static constexpr auto ENPC_ROSALINDE_01 = 5907902; + static constexpr auto ENPC_YUKI_01 = 5907903; + static constexpr auto ENPC_SERVANT_01 = 5907904; + static constexpr auto ENPC_SERVANT_02 = 5907905; + static constexpr auto CUT_SCENE_01 = 962; + static constexpr auto EOBJ_OBORO_HANDS_ON = 5908237; + static constexpr auto EVENT_ACTION_01 = 42; + static constexpr auto BAT_POP_INTERVAL_1 = 12; + static constexpr auto MOVING_POINT_01 = 5908273; + static constexpr auto LCUT_ACTOR0 = 1013846; + static constexpr auto LCUT_ACTOR1 = 1013847; + static constexpr auto LCUT_ACTOR2 = 1013850; + static constexpr auto LCUT_ACTOR3 = 1013851; + static constexpr auto LCUT_ACTOR4 = 1010597; + static constexpr auto LCUT_POS_ACTOR0 = 5907903; + static constexpr auto LCUT_POS_ACTOR1 = 5907904; + static constexpr auto LCUT_POS_ACTOR2 = 5907905; + static constexpr auto LCUT_BASE_ACTION0 = 1056; + static constexpr auto LCUT_ACTION0 = 1062; + static constexpr auto YELL_QIB_01 = 3157; + static constexpr auto YELL_QIB_02 = 3158; + static constexpr auto BNPC_TOUMEI_RAITON_FOR_PLAYER_01 = 5931210; + static constexpr auto BNPC_TOUMEI_RAITON_FOR_PLAYER_02 = 5931211; + static constexpr auto BNPC_TOUMEI_RAITON_FOR_PLAYER_03 = 5931212; + static constexpr auto BNPC_TOUMEI_RAITON_FOR_FIXED_POINT = 5931680; + static constexpr auto BNPC_RAITON_TARGET_01 = 5931380; + static constexpr auto BNPC_RAITON_TARGET_02 = 5931383; + static constexpr auto BNPC_RAITON_TARGET_03 = 5931384; + static constexpr auto BNPC_RAITON_TARGET_04 = 5931386; + static constexpr auto BNPC_RAITON_TARGET_05 = 5931387; + static constexpr auto BNPC_RAITON_TARGET_06 = 5931388; + static constexpr auto BNPC_RAITON_TARGET_07 = 5931390; + static constexpr auto BNPC_RAITON_TARGET_08 = 5931391; + static constexpr auto BNPC_RAITON_TARGET_09 = 5931392; + static constexpr auto DEF_ACTION_RAITON_GT = 4977; + static constexpr auto STATUS_HOLMGANG = 88; + static constexpr auto BNPC_ACTION_EXECUTION = 1003; + static constexpr auto EOBJ_MAKIBISHI = 5933081; + static constexpr auto STATUS_MAKIBISHI_DAMAGE = 1221; + static constexpr auto DEF_ACTION_MAKIBISHI = 4987; + static constexpr auto BNPC_ESCAPE = 5935138; + static constexpr auto BNPC_ACTION_OBORO_ESCAPE_TORIGGER = 3269; + static constexpr auto STATUS_HYOUTON_BIND = 612; + +public: + InHerDefense() : Sapphire::ScriptAPI::QuestBattleScript( 131 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "sgvf_w_btl_b0485", 2004341, 4797423, 4, { -368.761902f, 1.900000f, 20.220869f }, 1.000000f, -0.000000f ); + // States -> omen (id: 3) fukidasi (id: 4) end_0f (id: 5) end_anm (id: 6) omen1 (id: 8) + instance.registerEObj( "sgvf_w_btl_b0485_1", 2004342, 4797424, 4, { -367.525085f, 1.900000f, 26.995680f }, 1.000000f, -0.000000f ); + // States -> omen (id: 3) fukidasi (id: 4) end_0f (id: 5) end_anm (id: 6) omen1 (id: 8) + instance.registerEObj( "sgvf_w_btl_b0485_2", 2004343, 4797425, 4, { -371.746185f, 1.900000f, 32.584270f }, 1.000000f, -0.000000f ); + // States -> omen (id: 3) fukidasi (id: 4) end_0f (id: 5) end_anm (id: 6) omen1 (id: 8) + instance.registerEObj( "sgvf_w_btl_b0485_3", 2004338, 4797426, 4, { -362.507385f, 1.900000f, 48.482269f }, 1.000000f, -0.000000f ); + // States -> omen (id: 3) fukidasi (id: 4) end_0f (id: 5) end_anm (id: 6) omen1 (id: 8) + instance.registerEObj( "sgvf_w_btl_b0485_4", 2004339, 4797427, 4, { -355.184601f, 1.899924f, 47.853260f }, 1.000000f, -0.000000f ); + // States -> omen (id: 3) fukidasi (id: 4) end_0f (id: 5) end_anm (id: 6) omen1 (id: 8) + instance.registerEObj( "sgvf_w_btl_b0485_5", 2004340, 4797428, 4, { -349.628601f, 1.899914f, 52.138340f }, 1.000000f, -0.000000f ); + // States -> omen (id: 3) fukidasi (id: 4) end_0f (id: 5) end_anm (id: 6) omen1 (id: 8) + instance.registerEObj( "sgvf_w_btl_b0485_6", 2004335, 4797429, 4, { -334.406708f, 1.899990f, 43.799950f }, 1.000000f, -0.000000f ); + // States -> omen (id: 3) fukidasi (id: 4) end_0f (id: 5) end_anm (id: 6) omen1 (id: 8) + instance.registerEObj( "sgvf_w_btl_b0485_7", 2004336, 4797430, 4, { -336.870087f, 1.900000f, 37.104382f }, 1.000000f, -0.000000f ); + // States -> omen (id: 3) fukidasi (id: 4) end_0f (id: 5) end_anm (id: 6) omen1 (id: 8) + instance.registerEObj( "sgvf_w_btl_b0485_8", 2004337, 4797431, 4, { -332.837006f, 1.900000f, 30.666309f }, 1.000000f, -0.000000f ); + // States -> omen (id: 3) fukidasi (id: 4) end_0f (id: 5) end_anm (id: 6) omen1 (id: 8) + instance.registerEObj( "sgvf_w_btl_b0485_9", 2004344, 4797421, 4, { -341.024414f, 1.880961f, 15.649740f }, 1.000000f, -0.000000f ); + // States -> omen (id: 3) fukidasi (id: 4) end_0f (id: 5) end_anm (id: 6) omen1 (id: 8) + instance.registerEObj( "sgvf_w_btl_b0485_10", 2004345, 4797419, 4, { -348.232788f, 1.900000f, 15.852800f }, 1.000000f, -0.000000f ); + // States -> omen (id: 3) fukidasi (id: 4) end_0f (id: 5) end_anm (id: 6) omen1 (id: 8) + instance.registerEObj( "sgvf_w_btl_b0485_11", 2004346, 4797422, 4, { -353.540588f, 1.899946f, 11.553900f }, 1.000000f, -0.000000f ); + // States -> omen (id: 3) fukidasi (id: 4) end_0f (id: 5) end_anm (id: 6) omen1 (id: 8) + instance.registerEObj( "Entrance", 2000182, 4685106, 5, { 320.642792f, 3.735552f, 302.314301f }, 0.991760f, 0.000048f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "unknown_0", 2002735, 0, 4, { 220.874298f, 64.988159f, 13.046390f }, 0.991760f, 0.000048f ); + instance.registerEObj( "sgvf_w_lvd_b0118", 2002872, 4685143, 4, { 220.800797f, 64.801514f, 13.539410f }, 1.000000f, 0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "sgvf_w_lvd_b0250", 2004050, 4685147, 4, { 219.745102f, 64.682983f, -33.707211f }, 0.991760f, 0.000048f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "sgpl_w_transparent05", 2004049, 4685157, 4, { 219.958694f, 65.018677f, 47.991199f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_1", 2002735, 0, 4, { -60.079769f, 44.339741f, -124.669800f }, 1.000000f, -1.570451f ); + instance.registerEObj( "sgvf_w_lvd_b0118_1", 2002872, 4685162, 4, { -61.990799f, 44.123230f, -125.263000f }, 1.000000f, -1.570451f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "sgvf_w_lvd_b0118_2", 2004051, 4685163, 4, { -98.791832f, 44.299992f, -124.783699f }, 1.000000f, 0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "unknown_2", 2002735, 0, 4, { -315.480286f, 1.957748f, 33.432499f }, 0.991760f, -1.184874f ); + instance.registerEObj( "sgvf_w_lvd_b0118_3", 2002872, 4685167, 4, { -314.885803f, 1.999334f, 32.833080f }, 1.000000f, 0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "Shortcut", 2000700, 0, 4, { 325.360901f, 6.499028f, 292.726807f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_3", 2004052, 4584550, 4, { 165.269104f, 52.440060f, -190.280197f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Stonepedestal", 2004057, 4588393, 4, { 163.784195f, 52.706680f, -185.027100f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_4", 2004053, 4584553, 4, { -35.849411f, 44.986191f, -124.177696f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Stonepedestal_1", 2004058, 4588617, 4, { -32.145729f, 44.996059f, -118.336502f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Stonepedestal_2", 2004059, 4588610, 4, { -32.404221f, 44.937031f, -128.964096f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Exit", 2000139, 0, 4, { -326.989685f, 2.000000f, 43.114891f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Treasurecoffer", 2004074, 0, 4, { 191.947693f, 59.006939f, -163.899307f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Treasurecoffer_1", 2004075, 0, 4, { 194.472900f, 59.156731f, -165.022003f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Treasurecoffer_2", 2004076, 0, 4, { 196.017197f, 59.853050f, -161.548294f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Treasurecoffer_3", 2004077, 0, 4, { 198.798004f, 60.096630f, -162.115204f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Treasurecoffer_4", 2004078, 0, 4, { 199.929993f, 60.852970f, -158.189896f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Treasurecoffer_5", 2004079, 0, 4, { 203.014206f, 61.084290f, -158.453995f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Wildbananatree", 2004062, 4706914, 4, { 206.036896f, 65.302567f, -27.040119f }, 0.991760f, 0.000048f ); + instance.registerEObj( "Wildbananatree_1", 2004063, 4722842, 4, { 199.376907f, 64.682983f, -11.735090f }, 0.991760f, 0.000048f ); + instance.registerEObj( "Wildbananatree_2", 2004064, 4706915, 4, { 205.968002f, 64.690811f, 3.866779f }, 0.991760f, 0.000048f ); + instance.registerEObj( "Wildbananatree_3", 2004065, 4706916, 4, { 236.652100f, 64.927116f, -28.061340f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_5", 2004066, 0, 4, { 206.655502f, 65.036621f, -25.903111f }, 0.991760f, -1.260904f ); + instance.registerEObj( "unknown_6", 2004067, 0, 4, { 200.604294f, 64.690804f, -10.987260f }, 0.991760f, -0.736456f ); + instance.registerEObj( "unknown_7", 2004068, 0, 4, { 206.716095f, 64.690811f, 3.346290f }, 0.991760f, -0.921409f ); + instance.registerEObj( "unknown_8", 2004069, 0, 4, { 235.736603f, 64.682983f, -27.115360f }, 0.991760f, 0.613842f ); + instance.registerEObj( "unknown_9", 2004060, 4585424, 4, { -218.153107f, -0.000002f, -6.398464f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_10", 2004061, 4585624, 4, { -307.270905f, 4.409851f, 14.023010f }, 0.991760f, 0.000048f ); + instance.registerEObj( "Wildbananatree_4", 2004070, 4722840, 4, { 241.380005f, 64.956383f, -12.841170f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Wildbananatree_5", 2004071, 4706917, 4, { 234.644501f, 64.824364f, 2.652663f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_11", 2004072, 0, 4, { 239.884903f, 64.690811f, -12.610960f }, 1.000000f, 0.600320f ); + instance.registerEObj( "unknown_12", 2004073, 0, 4, { 233.623596f, 64.760551f, 2.089992f }, 1.000000f, 0.684586f ); + instance.registerEObj( "unknown_13", 2004129, 0, 4, { -80.000000f, 44.200001f, -124.500000f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( InHerDefense ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/InLovingMemory.cpp b/src/scripts/instances/questbattles/InLovingMemory.cpp new file mode 100644 index 00000000..01e584dd --- /dev/null +++ b/src/scripts/instances/questbattles/InLovingMemory.cpp @@ -0,0 +1,116 @@ +#include +#include + +using namespace Sapphire; + +class InLovingMemory : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto P_BNPC_ARUKA = 6901737; + static constexpr auto P_BNPC_SETOTO = 6901735; + static constexpr auto BNPC_DOLL_01 = 6901738; + static constexpr auto BNPC_DOLL_02 = 6901739; + static constexpr auto BNPC_DOLL_03 = 6901741; + static constexpr auto BNPC_DOLL_04 = 6901742; + static constexpr auto BNPC_HUMBABA = 6901917; + static constexpr auto BNPC_SEARCH_TRASH_01 = 6958147; + static constexpr auto BNPC_SEARCH_TRASH_02 = 6958148; + static constexpr auto BNPC_SEARCH_TRASH_03 = 6958149; + static constexpr auto BNPC_SEARCH_TRASH_04 = 6958150; + static constexpr auto BNPC_SEARCH_TRASH_05 = 6958151; + static constexpr auto BNPC_SEARCH_TRASH_06 = 6958152; + static constexpr auto BNPC_SEARCH_TRASH_07 = 6958153; + static constexpr auto BNPC_SEARCH_TRASH_08 = 6958154; + static constexpr auto BNPC_SEARCH_TRASH_09 = 6958155; + static constexpr auto EOBJ_CLOSE_BOOK01 = 6901867; + static constexpr auto EOBJ_CLOSE_BOOK02 = 6901868; + static constexpr auto EOBJ_BAG01 = 6901869; + static constexpr auto EOBJ_BAG02 = 6901870; + static constexpr auto EOBJ_OPEN_BOOK01 = 6901875; + static constexpr auto EOBJ_CHEST01 = 6901877; + static constexpr auto EVENT_ACTION_01 = 24; + static constexpr auto EOBJ_WALL = 6958171; + static constexpr auto EOBJ_WALL_BOSS = 6970234; + static constexpr auto EOBJ_TREASURE_CHEST_B = 6958451; + static constexpr auto EOBJ_TREASURE_CHEST_S = 6958680; + static constexpr auto LOG_MSG_DROP_BOX_B = 5386; + static constexpr auto LOG_MSG_DROP_BOX_S = 5387; + static constexpr auto BNPC_DEAD_DOLL_01 = 6958508; + static constexpr auto BNPC_DEAD_DOLL_02 = 6958509; + static constexpr auto BNPC_DEAD_DOLL_03 = 6958510; + static constexpr auto BNPC_DEAD_DOLL_04 = 6958511; + static constexpr auto BNPC_DEAD_DOLL_05 = 6958512; + static constexpr auto ER_BOSS_PHASE = 6958532; + static constexpr auto BGM_BOSS_BATTLE = 206; + static constexpr auto BNPC_THUNDER_BALL = 6958665; + static constexpr auto ACTION_THUNDER_II = 8990; + static constexpr auto PR_SETOTO_MOVE_01 = 6958668; + static constexpr auto ACTION_THUNDER_SPARK = 8991; + static constexpr auto ACTION_HUMBABA_BREATH = 8989; + static constexpr auto BNPC_TOUMEI = 6958726; + static constexpr auto BNPC_TOUMEI_ACTION = 6958747; + static constexpr auto STATUS_HASTE = 8; + +public: + InLovingMemory() : Sapphire::ScriptAPI::QuestBattleScript( 176 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "sgvf_w_lvd_b0118", 2002872, 5040923, 4, { 203.452301f, 0.116688f, 208.657593f }, 1.000000f, 0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "unknown_0", 2002735, 0, 4, { 199.471802f, 0.116693f, 210.128204f }, 1.000000f, 0.000000f ); + instance.registerEObj( "sgbg_f1d7_a4_scy01", 2005153, 5619221, 4, { 198.706802f, -20.000010f, 229.113907f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_1", 2004696, 5009720, 4, { -200.316895f, -4.301562f, -43.621670f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_2", 2004697, 5009721, 4, { -47.771290f, -0.000000f, -71.658272f }, 1.000000f, 0.000000f ); + instance.registerEObj( "sgbg_f1d7_a1_evl01", 2004698, 5031991, 4, { -125.087196f, -2.000000f, 28.417601f }, 1.000000f, -0.000000f ); + // States -> evils_def (id: 17) evils_off_anim (id: 22) evils_on (id: 23) evils_on_anim (id: 24) + instance.registerEObj( "sgvf_f1d7_b0574", 2004699, 5031992, 4, { -104.790604f, -2.000000f, 47.174728f }, 1.000000f, 0.000000f ); + // States -> vf_baria1_off (id: 3) vf_baria_on (id: 6) + instance.registerEObj( "unknown_3", 2004700, 0, 4, { 2.343430f, 48.179089f, -2.083742f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_4", 2004702, 5009732, 4, { 125.604897f, 43.999989f, 3.999085f }, 1.000000f, 0.005971f ); + instance.registerEObj( "unknown_5", 2004701, 0, 4, { 149.666000f, 44.200001f, -0.006115f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_6", 2004703, 5010816, 4, { 196.927399f, 44.000019f, -101.381798f }, 1.000000f, 0.000000f ); + instance.registerEObj( "sgbg_f1d7_a1_evl01_1", 2004704, 5032163, 4, { 199.696106f, 44.000000f, -181.197006f }, 1.000000f, 0.000000f ); + // States -> evils_def (id: 17) evils_off_anim (id: 22) evils_on (id: 23) evils_on_anim (id: 24) + instance.registerEObj( "Aetherialflow", 2004705, 5032164, 4, { 199.682800f, 44.163898f, -180.392395f }, 1.000000f, -0.000000f ); + instance.registerEObj( "Fellorb", 2004706, 5009746, 4, { 200.094101f, -0.000008f, 0.050249f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Aetherialflow_1", 2004707, 5033533, 4, { 199.899506f, 0.000000f, -3.297300f }, 1.000000f, -0.000000f ); + instance.registerEObj( "unknown_7", 2004768, 5033548, 4, { 210.649307f, 0.116687f, -6.120441f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_8", 2004769, 5033549, 4, { 189.489807f, 0.116688f, -6.804901f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_9", 2004770, 5033551, 4, { 204.506500f, 0.116687f, 9.902725f }, 1.000000f, 0.000000f ); + instance.registerEObj( "sgvf_w_lvd_b0118_1", 2004708, 5034801, 4, { -119.510101f, -2.400002f, 18.885540f }, 1.000000f, 0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "sgvf_w_lvd_b0118_2", 2002872, 5034800, 4, { -130.314606f, -2.400000f, -18.221069f }, 1.000000f, 0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "unknown_10", 2002735, 0, 4, { -125.041801f, -1.964380f, -20.543480f }, 1.000000f, 0.000000f ); + instance.registerEObj( "sgpl_f1d7_a1_gar0", 2004996, 5390927, 4, { -112.845497f, -2.400000f, 12.122500f }, 1.000000f, 0.785314f ); + instance.registerEObj( "sgpl_f1d7_a1_gar0_1", 2004997, 5390928, 4, { -112.845497f, -2.400000f, -12.378100f }, 1.000000f, 0.785457f ); + instance.registerEObj( "sgpl_f1d7_a1_gar0_2", 2004998, 5390929, 4, { -137.250000f, -2.400000f, 12.122500f }, 1.000000f, -0.785410f ); + instance.registerEObj( "sgpl_f1d7_a1_gar0_3", 2004999, 5390930, 4, { -137.396194f, -2.400000f, -12.366500f }, 1.000000f, -0.785398f ); + instance.registerEObj( "sgvf_w_lvd_b0118_3", 2004782, 5038257, 4, { 198.459198f, 43.991699f, -172.369705f }, 1.000000f, 0.000048f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "sgvf_w_lvd_b0118_4", 2002872, 5038255, 4, { 197.802597f, 43.991699f, -125.932701f }, 1.000000f, -0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "unknown_11", 2002735, 0, 4, { 199.511703f, 44.022221f, -130.601303f }, 1.000000f, -0.000000f ); + instance.registerEObj( "Entrance", 2000182, 5018466, 5, { -255.724792f, -9.199999f, -5.249732f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "Shortcut", 2000700, 0, 4, { -252.173401f, -9.199999f, 5.737248f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Exit", 2000139, 0, 4, { 200.798599f, -0.000008f, 240.880905f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( InLovingMemory ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/InNaturesEmbrace.cpp b/src/scripts/instances/questbattles/InNaturesEmbrace.cpp new file mode 100644 index 00000000..14826e50 --- /dev/null +++ b/src/scripts/instances/questbattles/InNaturesEmbrace.cpp @@ -0,0 +1,46 @@ +#include +#include + +using namespace Sapphire; + +class InNaturesEmbrace : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_BOSS = 3796294; + static constexpr auto INIT_POP_YODOMI_01 = 4273807; + static constexpr auto INIT_POP_YODOMI_02 = 4273810; + static constexpr auto INIT_POP_IMP_01 = 4273820; + static constexpr auto INIT_POP_IMP_02 = 4273821; + static constexpr auto INIT_P_POP_SYLPHIE = 3873175; + static constexpr auto CUT_SCENE_01 = 19; + static constexpr auto CUT_SCENE_02 = 20; + static constexpr auto DEF_YODOMI_DORAIN = 1127; + static constexpr auto QIB_YELL_01 = 1003; + static constexpr auto QIB_YELL_02 = 1004; + +public: + InNaturesEmbrace() : Sapphire::ScriptAPI::QuestBattleScript( 17 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "Entrance", 2000182, 5021407, 5, { 623.000000f, 23.872311f, 94.505638f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "Exit", 2000139, 0, 4, { 623.000000f, 23.656260f, 61.956181f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( InNaturesEmbrace ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/InThalsName.cpp b/src/scripts/instances/questbattles/InThalsName.cpp deleted file mode 100644 index e5c38fc4..00000000 --- a/src/scripts/instances/questbattles/InThalsName.cpp +++ /dev/null @@ -1,34 +0,0 @@ -#include -#include - -using namespace Sapphire; - -class InThalsName : - public Sapphire::ScriptAPI::InstanceContentScript -{ -public: - InThalsName() : - Sapphire::ScriptAPI::InstanceContentScript( 5006 ) - { } - - void onInit( InstanceContent& instance ) override - { - instance.registerEObj( "unknown_0", 2004364, 0, 4, { -93.101089f, -13.129550f, 6.845694f }, 1.000000f, 0.000000f ); - instance.registerEObj( "Companychest", 2000470, 4255822, 4, { 128.974701f, 5.067919f, -40.913502f }, 1.000000f, -0.343160f ); - - } - - void onUpdate( InstanceContent& instance, uint32_t currTime ) override - { - - } - - void onEnterTerritory( InstanceContent& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, - uint16_t param2 ) override - { - - } - -}; - -EXPOSE_SCRIPT( InThalsName ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/InterdimensionalRift.cpp b/src/scripts/instances/questbattles/InterdimensionalRift.cpp deleted file mode 100644 index fed42b04..00000000 --- a/src/scripts/instances/questbattles/InterdimensionalRift.cpp +++ /dev/null @@ -1,42 +0,0 @@ -#include -#include - -using namespace Sapphire; - -class InterdimensionalRift : - public Sapphire::ScriptAPI::InstanceContentScript -{ -public: - InterdimensionalRift() : - Sapphire::ScriptAPI::InstanceContentScript( 5023 ) - { } - - void onInit( InstanceContent& instance ) override - { - instance.registerEObj( "sgvf_z3o1_b1212", 2007457, 6944598, 4, { -14.915330f, -256.500000f, 385.545197f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgvf_z3o1_b1212_1", 2007457, 6944604, 4, { -280.000000f, -239.750000f, 196.500000f }, 1.000000f, -0.000000f ); - instance.registerEObj( "sgvf_z3o1_b1212_2", 2007457, 6944605, 4, { -255.313797f, -226.000000f, -187.394394f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgvf_z3o1_b1212_3", 2007457, 6944606, 4, { -246.604706f, -226.000000f, -192.211807f }, 1.000000f, 0.000000f ); - instance.registerEObj( "Exit", 2000046, 0, 4, { 843.573914f, 427.000000f, 948.472290f }, 1.000000f, 0.000000f ); - instance.registerEObj( "Exit_1", 2000046, 0, 4, { -207.965302f, -224.000000f, -147.401306f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_0", 2007457, 6889957, 4, { 1.846330f, -271.700012f, 428.457886f }, 0.991760f, 0.000049f ); - instance.registerEObj( "Matterrelocationdevice", 2008501, 6938814, 4, { -16.956310f, -256.250000f, 382.407898f }, 0.991760f, 0.000048f ); - instance.registerEObj( "sgbg_z3o1_a1_cub01", 2007457, 6954336, 4, { -7.878613f, -256.250000f, 385.557495f }, 1.000000f, 0.000000f ); - instance.registerEObj( "Matterrelocationdevice_1", 2000048, 6938826, 4, { -286.946014f, -239.764999f, 192.797699f }, 0.991760f, 0.000048f ); - - } - - void onUpdate( InstanceContent& instance, uint32_t currTime ) override - { - - } - - void onEnterTerritory( InstanceContent& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, - uint16_t param2 ) override - { - - } - -}; - -EXPOSE_SCRIPT( InterdimensionalRift ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/IntheDarkofNight.cpp b/src/scripts/instances/questbattles/IntheDarkofNight.cpp new file mode 100644 index 00000000..76399ced --- /dev/null +++ b/src/scripts/instances/questbattles/IntheDarkofNight.cpp @@ -0,0 +1,69 @@ +#include +#include + +using namespace Sapphire; + +class IntheDarkofNight : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_IZORUDE_BOSS = 7808975; + static constexpr auto BNPC_TOUMEI_ACTION_A01 = 7810191; + static constexpr auto BNPC_TOUMEI_ACTION_A02 = 7810209; + static constexpr auto BNPC_TOUMEI_ACTION_B01 = 7810198; + static constexpr auto BNPC_TOUMEI_ACTION_B02 = 7810200; + static constexpr auto BNPC_TOUMEI_ACTION_B03 = 7810202; + static constexpr auto BNPC_TOUMEI_ACTION_B04 = 7810207; + static constexpr auto P_BNPC_NOCTIS = 7808974; + static constexpr auto BNPC_TOUMEI_ACTION_C01 = 7821422; + static constexpr auto BNPC_TOUMEI_ACTION_C02 = 7821430; + static constexpr auto BNPC_TOUMEI_ACTION_C03 = 7821431; + static constexpr auto BNPC_TOUMEI_ACTION_C04 = 7821432; + static constexpr auto BNPC_TOUMEI_ACTION_C05 = 7821433; + static constexpr auto BNPC_TOUMEI_ACTION_C06 = 7821434; + static constexpr auto BNPC_TOUMEI_ACTION_D01 = 7821435; + static constexpr auto BNPC_TOUMEI_ACTION_D02 = 7821436; + static constexpr auto BNPC_TOUMEI_ACTION_D03 = 7821437; + static constexpr auto BNPC_TOUMEI_ACTION_D04 = 7821438; + static constexpr auto BNPC_TOUMEI_ACTION_D05 = 7821439; + static constexpr auto BNPC_TOUMEI_ACTION_D06 = 7821440; + static constexpr auto BNPC_TOUMEI_ACTION_E01 = 7840020; + static constexpr auto BNPC_TOUMEI_ACTION_E02 = 7840030; + static constexpr auto BNPC_TOUMEI_TARGET = 7840047; + static constexpr auto BNPC_TOUMEI_TARGETAE_01 = 7846607; + static constexpr auto BNPC_TOUMEI_TARGETAE_02 = 7846618; + static constexpr auto ACTION_CLAW_SHARE = 14606; + static constexpr auto ACTION_SIX_LASER = 14602; + static constexpr auto ACTION_SIX_LASER_TOUMEI = 14603; + static constexpr auto ACTION_TOWER_ATTACK = 14608; + static constexpr auto ACTION_TOWER_ATTACK_TOUMEI_SMALL = 14609; + static constexpr auto ACTION_TOWER_ATTACK_TOUMEI_WIDE = 14610; + static constexpr auto ACTION_TOWER_ATTACK_TOUMEI_SMALL_2 = 14981; + static constexpr auto ACTION_STOMP = 14605; + static constexpr auto ACTION_TARGETAE_ATTACK = 15082; + static constexpr auto ACTION_TARGETAE_ATTACK_TOUMEI = 15083; + static constexpr auto LOCKON_CLAW_SHARE = 93; + static constexpr auto LOCKON_TARGETAE = 129; + +public: + IntheDarkofNight() : Sapphire::ScriptAPI::QuestBattleScript( 184 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( IntheDarkofNight ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/IntheEyesofGodsandMen.cpp b/src/scripts/instances/questbattles/IntheEyesofGodsandMen.cpp new file mode 100644 index 00000000..92250ac3 --- /dev/null +++ b/src/scripts/instances/questbattles/IntheEyesofGodsandMen.cpp @@ -0,0 +1,93 @@ +#include +#include + +using namespace Sapphire; + +class IntheEyesofGodsandMen : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_ENPC_01 = 4261248; + static constexpr auto INIT_P_POP_PASCALERET = 4261257; + static constexpr auto INIT_POP_1_EXC_01 = 4261259; + static constexpr auto INIT_POP_ALDLEC = 4261262; + static constexpr auto INIT_POP_1_CNJ_01 = 4261275; + static constexpr auto INIT_POP_1_ARC_01 = 4261276; + static constexpr auto INIT_POP_1_PGL_01 = 4261278; + static constexpr auto INIT_P_POP_OLSHIFAN = 4261300; + static constexpr auto INIT_POP_2_PGL_01 = 4261302; + static constexpr auto INIT_POP_2_LNC_01 = 4261303; + static constexpr auto INIT_POP_3_DRAGON_01 = 4261305; + static constexpr auto EVENT_ACTION_01 = 22; + static constexpr auto INIT_EO_POP_01 = 4285063; + static constexpr auto LOG_EVENT_QIB_GAIUSB803_01 = 3206; + static constexpr auto LOG_EVENT_QIB_GAIUSB803_02 = 3208; + static constexpr auto LOG_EVENT_QIB_GAIUSB803_03 = 3209; + static constexpr auto YELL_QIB_GIEIM_01 = 1030; + static constexpr auto YELL_QIB_PASCALERET_02 = 1031; + static constexpr auto YELL_QIB_GIEIM_03 = 1032; + static constexpr auto YELL_QIB_ALDLEC_04 = 1033; + static constexpr auto YELL_QIB_OLSHIFAN_05 = 1034; + static constexpr auto YELL_QIB_OLSHIFAN_06 = 1371; + static constexpr auto INIT_POP_3_EXC_01 = 4287236; + static constexpr auto INIT_POP_3_CNJ_01 = 4287237; + static constexpr auto POP_RANGE_ALDLEC_01 = 4321748; + static constexpr auto POP_RANGE_PASCALERET_01 = 4321746; + static constexpr auto POP_RANGE_OLSHIFAN_01 = 4287139; + static constexpr auto POP_RANGE_OLSHIFAN_02 = 4321747; + static constexpr auto POP_RANGE_DRAGON_02 = 4287173; + static constexpr auto BGM_OLSHIFAN_AFTER_POP = 36; + static constexpr auto LOC_ACTOR0 = 1007675; + static constexpr auto LOC_ACTOR1 = 1006902; + static constexpr auto LOC_ACTOR2 = 1007681; + static constexpr auto LOC_ACTOR3 = 1007665; + static constexpr auto LOC_ACTOR4 = 1007666; + static constexpr auto LOC_ACTOR5 = 1006905; + static constexpr auto LOC_ACTOR6 = 1006906; + static constexpr auto LOC_ACTOR7 = 1007699; + static constexpr auto LOC_POS_ACTOR0 = 4323475; + static constexpr auto LOC_POS_ACTOR1 = 4323476; + static constexpr auto LOC_POS_ACTOR2 = 4323477; + static constexpr auto LOC_POS_ACTOR3 = 4323478; + static constexpr auto LOC_ACTION1 = 979; + static constexpr auto LOC_BGM1 = 114; + +public: + IntheEyesofGodsandMen() : Sapphire::ScriptAPI::QuestBattleScript( 60 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "sgbg_w_qic_001_04a", 2006993, 6235274, 4, { -35.822102f, 298.899994f, -205.263199f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_0", 2006952, 0, 4, { -35.712589f, 298.899994f, -204.878006f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Exit", 2000139, 0, 4, { 556.049377f, 348.102509f, -752.435730f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Entrance", 2000182, 4600289, 5, { 523.532471f, 348.223389f, -736.685730f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "unknown_1", 2002332, 0, 4, { 533.090881f, 348.691895f, -742.750916f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_2", 2002333, 0, 4, { 539.940430f, 348.836395f, -734.401489f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_3", 2000608, 3967803, 4, { 202.369598f, 257.761108f, 80.435272f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_4", 2000608, 3976993, 4, { 273.634705f, 254.600204f, 106.048500f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_5", 2000608, 3986797, 4, { 205.504898f, 246.188995f, 194.875702f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_6", 2000608, 3986798, 4, { 326.313385f, 239.193497f, 221.138901f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_7", 2000608, 2718481, 4, { 240.552307f, 302.769714f, -199.979996f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_8", 2000608, 4065433, 4, { 204.970001f, 302.119995f, -216.311600f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_9", 2000608, 2814617, 4, { 205.869995f, 302.219086f, -276.681396f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_10", 2000608, 2763112, 4, { -433.000000f, 211.007706f, -216.148605f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_11", 2000608, 4187649, 4, { -453.000000f, 211.000000f, -281.046600f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_12", 2000608, 4187961, 4, { -416.000000f, 210.788193f, -279.813812f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( IntheEyesofGodsandMen ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/IntoaCopperHell.cpp b/src/scripts/instances/questbattles/IntoaCopperHell.cpp new file mode 100644 index 00000000..437bd8a5 --- /dev/null +++ b/src/scripts/instances/questbattles/IntoaCopperHell.cpp @@ -0,0 +1,60 @@ +#include +#include + +using namespace Sapphire; + +class IntoaCopperHell : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_A = 4094987; + static constexpr auto INIT_POP_B = 4094990; + static constexpr auto INIT_POP_C = 4094992; + static constexpr auto CUT_SCENE_01 = 76; + static constexpr auto CUT_SCENE_02 = 77; + static constexpr auto CUT_SCENE_03 = 78; + static constexpr auto LOC_ACTOR0 = 1005138; + static constexpr auto LOC_ACTOR1 = 1004748; + static constexpr auto LOC_ACTOR2 = 1004749; + static constexpr auto LOC_ACTOR3 = 1005117; + static constexpr auto LOC_ACTOR4 = 1005119; + static constexpr auto LOC_ACTOR5 = 1005120; + static constexpr auto LOC_ACTOR8 = 1004653; + static constexpr auto LOC_ACTOR9 = 1004654; + static constexpr auto LOC_POS_ACTOR0 = 4176169; + static constexpr auto LOC_POS_ACTOR1 = 4176170; + static constexpr auto LOC_POS_ACTOR2 = 4176171; + static constexpr auto LOC_FACE0 = 604; + static constexpr auto LOC_FACE1 = 617; + static constexpr auto LOC_FACE2 = 620; + static constexpr auto LOC_FACE3 = 605; + static constexpr auto LOC_FACE4 = 611; + +public: + IntoaCopperHell() : Sapphire::ScriptAPI::QuestBattleScript( 44 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2009578, 2091611, 4, { 31.545870f, 7.999978f, -121.025002f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_1", 2009578, 2091610, 4, { 4.407776f, 8.022990f, -105.310699f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_2", 2009578, 2091597, 4, { -184.324402f, 18.000000f, 65.271606f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_3", 2009578, 2091596, 4, { -146.806107f, 14.005000f, 63.857010f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Companychest", 2000470, 4255821, 4, { -149.301498f, 4.552717f, -91.365868f }, 0.991760f, -0.619932f ); + instance.registerEObj( "Huntboard", 2004440, 2217635, 4, { -152.330902f, 4.230781f, -92.351143f }, 0.991760f, 0.000048f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( IntoaCopperHell ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/IntotheDragonsMaw.cpp b/src/scripts/instances/questbattles/IntotheDragonsMaw.cpp new file mode 100644 index 00000000..35a142e4 --- /dev/null +++ b/src/scripts/instances/questbattles/IntotheDragonsMaw.cpp @@ -0,0 +1,70 @@ +#include +#include + +using namespace Sapphire; + +class IntotheDragonsMaw : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_1_ESTINIAN_01 = 4287051; + static constexpr auto INIT_POP_2_DRGON_HEART_01 = 4287059; + static constexpr auto INIT_POP_3_DRAGON_POWER_02 = 4287079; + static constexpr auto INIT_POP_3_DRAGON_POWER_03 = 4287082; + static constexpr auto INIT_POP_3_DRAGON_POWER_04 = 4287083; + static constexpr auto INIT_POP_3_DRAGON_POWER_05 = 4287085; + static constexpr auto INIT_POP_3_DRAGON_POWER_06 = 4287086; + static constexpr auto INIT_POP_3_DRAGON_POWER_07 = 4287087; + static constexpr auto INIT_ENPC_POP_ALBERIC = 4287046; + static constexpr auto LOG_EVENT_QIB_JOBDRG500_01 = 3207; + static constexpr auto LOG_EVENT_QIB_JOBDRG500_02 = 3220; + static constexpr auto LOG_EVENT_QIB_JOBDRG500_03 = 3213; + static constexpr auto LOG_EVENT_QIB_JOBDRG500_04 = 3221; + static constexpr auto STATUS_CUSTOM_DRAGON_EYE_POWER = 698; + static constexpr auto DEF_ACTION_DRAGON_BLESS = 1063; + static constexpr auto DEF_ACTION_DRAGON_DIVE = 1064; + static constexpr auto EOBJ_DAMAGE_RANGE_FIRE = 4313761; + static constexpr auto STATUS_CUSTOM_DAMAGE_RANGE_FIRE = 677; + static constexpr auto CUT_START_NCUT = 336; + static constexpr auto CUT_END_NCUT = 337; + static constexpr auto JOB_STORY_MES = 3636; + +public: + IntotheDragonsMaw() : Sapphire::ScriptAPI::QuestBattleScript( 72 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "sgbg_w_qic_001_04a", 2006993, 6235274, 4, { -35.822102f, 298.899994f, -205.263199f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_0", 2006952, 0, 4, { -35.712589f, 298.899994f, -204.878006f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Exit", 2000139, 0, 4, { 556.049377f, 348.102509f, -752.435730f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Entrance", 2000182, 4600289, 5, { 523.532471f, 348.223389f, -736.685730f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "unknown_1", 2002332, 0, 4, { 533.090881f, 348.691895f, -742.750916f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_2", 2002333, 0, 4, { 539.940430f, 348.836395f, -734.401489f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_3", 2000608, 3967803, 4, { 202.369598f, 257.761108f, 80.435272f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_4", 2000608, 3976993, 4, { 273.634705f, 254.600204f, 106.048500f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_5", 2000608, 3986797, 4, { 205.504898f, 246.188995f, 194.875702f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_6", 2000608, 3986798, 4, { 326.313385f, 239.193497f, 221.138901f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_7", 2000608, 2718481, 4, { 240.552307f, 302.769714f, -199.979996f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_8", 2000608, 4065433, 4, { 204.970001f, 302.119995f, -216.311600f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_9", 2000608, 2814617, 4, { 205.869995f, 302.219086f, -276.681396f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_10", 2000608, 2763112, 4, { -433.000000f, 211.007706f, -216.148605f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_11", 2000608, 4187649, 4, { -453.000000f, 211.000000f, -281.046600f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_12", 2000608, 4187961, 4, { -416.000000f, 210.788193f, -279.813812f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( IntotheDragonsMaw ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/IshgardianJustice.cpp b/src/scripts/instances/questbattles/IshgardianJustice.cpp new file mode 100644 index 00000000..dad272cb --- /dev/null +++ b/src/scripts/instances/questbattles/IshgardianJustice.cpp @@ -0,0 +1,107 @@ +#include +#include + +using namespace Sapphire; + +class IshgardianJustice : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_COMPANION_FRAY_01 = 5909968; + static constexpr auto BNPC_ENEMY_PHASE_1_GLA_01 = 5909971; + static constexpr auto BNPC_ENEMY_PHASE_1_LNC_01 = 5909972; + static constexpr auto BNPC_ENEMY_PHASE_1_LNC_02 = 5909973; + static constexpr auto WARP_PC_POINT_01 = 5909978; + static constexpr auto BNPC_COMPANION_FRAY_02 = 5909979; + static constexpr auto BNPC_ENEMY_PHASE_2_DARK_FIRE_01 = 5909981; + static constexpr auto BNPC_ENEMY_PHASE_2_DARK_FIRE_02 = 5909982; + static constexpr auto BNPC_ENEMY_PHASE_2_DARK_FIRE_03 = 5909983; + static constexpr auto ER_RECT_01 = 5909984; + static constexpr auto BNPC_ENEMY_PHASE_3_PACK_A_GLA_01 = 5909990; + static constexpr auto BNPC_ENEMY_PHASE_3_PACK_A_LNC_01 = 5909992; + static constexpr auto BNPC_ENEMY_PHASE_3_PACK_A_LNC_02 = 5909993; + static constexpr auto BNPC_ENEMY_PHASE_3_PACK_A_CNJ_01 = 5909994; + static constexpr auto BNPC_ENEMY_PHASE_3_PACK_A_DARK_FIRE_01 = 5910058; + static constexpr auto BNPC_ENEMY_PHASE_3_PACK_A_DARK_FIRE_02 = 5910059; + static constexpr auto BNPC_ENEMY_PHASE_3_PACK_A_DARK_FIRE_03 = 5910060; + static constexpr auto BNPC_ENEMY_PHASE_3_PACK_A_DARK_FIRE_04 = 5910061; + static constexpr auto BNPC_ENEMY_PHASE_3_PACK_B_GLA_01 = 5910062; + static constexpr auto BNPC_ENEMY_PHASE_3_PACK_B_LNC_01 = 5910063; + static constexpr auto BNPC_ENEMY_PHASE_3_PACK_B_LNC_02 = 5910064; + static constexpr auto BNPC_ENEMY_PHASE_3_PACK_B_CNJ_01 = 5910065; + static constexpr auto BNPC_ENEMY_PHASE_3_PACK_B_DARK_FIRE_01 = 5910066; + static constexpr auto BNPC_ENEMY_PHASE_3_PACK_B_DARK_FIRE_02 = 5910067; + static constexpr auto BNPC_ENEMY_PHASE_3_PACK_B_DARK_FIRE_03 = 5910068; + static constexpr auto BNPC_ENEMY_PHASE_3_PACK_B_DARK_FIRE_04 = 5910070; + static constexpr auto ER_RECT_02 = 5910073; + static constexpr auto BNPC_ENEMY_PHASE_4_LEADER_01 = 5910079; + static constexpr auto BNPC_ENEMY_PHASE_4_LNC_01 = 5910080; + static constexpr auto BNPC_ENEMY_PHASE_4_CNJ_01 = 5910081; + static constexpr auto ENPC_DAUGHTER_01 = 5910082; + static constexpr auto ENPC_DAUGHTER_02 = 5911134; + static constexpr auto EOBJ_DAUGHTER_HANDS_ON = 5910084; + static constexpr auto BNPC_ENEMY_PHASE_4_DARK_FIRE_01 = 5910085; + static constexpr auto BNPC_ENEMY_PHASE_4_DARK_FIRE_02 = 5910086; + static constexpr auto BNPC_ENEMY_PHASE_4_DARK_FIRE_03 = 5910087; + static constexpr auto BNPC_ENEMY_PHASE_4_DARK_FIRE_04 = 5910088; + static constexpr auto BNPC_ENEMY_PHASE_4_DARK_FIRE_05 = 5910089; + static constexpr auto BNPC_ENEMY_PHASE_4_DARK_FIRE_06 = 5910090; + static constexpr auto BNPC_ENEMY_PHASE_4_DARK_FIRE_07 = 5910091; + static constexpr auto BNPC_ENEMY_PHASE_4_DARK_FIRE_08 = 5910092; + static constexpr auto BNPC_ENEMY_PHASE_5_LNC_01 = 5910093; + static constexpr auto BNPC_ENEMY_PHASE_5_CNJ_01 = 5910094; + static constexpr auto BNPC_ENEMY_PHASE_5_DARK_FIRE_01 = 5910096; + static constexpr auto BNPC_ENEMY_PHASE_5_DARK_FIRE_02 = 5910097; + static constexpr auto BNPC_ENEMY_PHASE_5_DARK_FIRE_03 = 5910145; + static constexpr auto BNPC_ENEMY_PHASE_5_DARK_FIRE_04 = 5910146; + static constexpr auto BNPC_ENEMY_PHASE_5_DARK_FIRE_05 = 5910147; + static constexpr auto BNPC_ENEMY_PHASE_5_DARK_FIRE_06 = 5910148; + static constexpr auto BNPC_ENEMY_PHASE_5_DARK_FIRE_07 = 5910149; + static constexpr auto BNPC_ENEMY_PHASE_5_DARK_FIRE_08 = 5910150; + static constexpr auto BNPC_ENEMY_BIG_DARK_FIRE_01 = 5910172; + static constexpr auto EVENT_ACTION_01 = 34; + static constexpr auto LOGMESSAGE_DARK_HEART_30 = 3276; + static constexpr auto LOGMESSAGE_DARK_HEART_60 = 3277; + static constexpr auto LOGMESSAGE_DARK_HEART_100 = 3278; + static constexpr auto LOGMESSAGE_DARK_FIRE_POP = 3279; + static constexpr auto ACTION_DARK_FIRE = 4736; + static constexpr auto BNPC_TYPE_01_DARK_FIRE = 4643; + static constexpr auto BNPC_TOUMEI_FOLLOW_PLAYER = 5912186; + static constexpr auto BEHAVIOR_FRAY_01 = 30607; + static constexpr auto ER_RECT_03 = 5912223; + static constexpr auto QIB_YELL_01 = 2770; + static constexpr auto QIB_YELL_02 = 2771; + static constexpr auto QIB_YELL_03 = 2772; + static constexpr auto POP_RANGE_ENEMY_RETREAT = 5912400; + static constexpr auto ER_RECT_04 = 5912508; + static constexpr auto STATUS_PARAM_KNOCK_DOWN = 1414; + static constexpr auto LOC_ACTOR1 = 1014592; + static constexpr auto LOC_ACTOR2 = 1014985; + static constexpr auto LOC_ACTOR3 = 1014986; + static constexpr auto LOC_ACTOR4 = 1014987; + static constexpr auto LOC_ACTOR5 = 1014988; + static constexpr auto LOC_ACTOR6 = 1014989; + static constexpr auto LOC_POS = 5927429; + +public: + IshgardianJustice() : Sapphire::ScriptAPI::QuestBattleScript( 145 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( IshgardianJustice ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/ItsProbablyaTrap.cpp b/src/scripts/instances/questbattles/ItsProbablyaTrap.cpp deleted file mode 100644 index 918bad75..00000000 --- a/src/scripts/instances/questbattles/ItsProbablyaTrap.cpp +++ /dev/null @@ -1,40 +0,0 @@ -#include -#include - -using namespace Sapphire; - -class ItsProbablyaTrap : - public Sapphire::ScriptAPI::InstanceContentScript -{ -public: - ItsProbablyaTrap() : - Sapphire::ScriptAPI::InstanceContentScript( 5005 ) - { } - - void onInit( InstanceContent& instance ) override - { - instance.registerEObj( "unknown_0", 2000608, 6538194, 4, { -27.571140f, -3.000000f, 46.619968f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_1", 2000608, 6538193, 4, { -28.307659f, 3.999977f, 61.762589f }, 1.000000f, 0.000000f ); - instance.registerEObj( "ClanHuntboard", 2008655, 6422886, 4, { -31.520060f, 0.076252f, -43.853790f }, 0.991760f, 0.000048f ); - instance.registerEObj( "sgbg_w_qic_004_03a", 2002872, 6799085, 4, { -79.087517f, -3.006042f, 41.336670f }, 0.991760f, 0.000048f ); - instance.registerEObj( "sgbg_w_qic_004_03a_1", 2002872, 6799087, 4, { -61.668732f, -3.014119f, 84.855003f }, 0.991760f, -1.567030f ); - instance.registerEObj( "unknown_2", 2007457, 6611234, 4, { 137.621094f, 14.816470f, 92.484863f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_3", 2007457, 6538193, 4, { -27.894131f, 3.999977f, 61.384491f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_4", 2007457, 6538194, 4, { -28.259020f, -3.000000f, 46.489510f }, 1.000000f, 0.000000f ); - - } - - void onUpdate( InstanceContent& instance, uint32_t currTime ) override - { - - } - - void onEnterTerritory( InstanceContent& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, - uint16_t param2 ) override - { - - } - -}; - -EXPOSE_SCRIPT( ItsProbablyaTrap ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/JustDeserts.cpp b/src/scripts/instances/questbattles/JustDeserts.cpp new file mode 100644 index 00000000..e0e31641 --- /dev/null +++ b/src/scripts/instances/questbattles/JustDeserts.cpp @@ -0,0 +1,41 @@ +#include +#include + +using namespace Sapphire; + +class JustDeserts : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_01 = 4082418; + static constexpr auto BNPC_NAME_01 = 750; + static constexpr auto DEF_ACTION_SAND_BREATH = 445; + static constexpr auto LOC_ACTOR1 = 1003064; + static constexpr auto LOC_POS_ACTOR0 = 4126749; + static constexpr auto LOC_POS_ACTOR1 = 4126755; + static constexpr auto DEF_BLIND = 15; + static constexpr auto CUT_SCENE_01 = 203; + static constexpr auto LOC_TALKSHAPE1 = 8; + +public: + JustDeserts() : Sapphire::ScriptAPI::QuestBattleScript( 29 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( JustDeserts ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/KeepingtheFlameAlive.cpp b/src/scripts/instances/questbattles/KeepingtheFlameAlive.cpp new file mode 100644 index 00000000..4140e619 --- /dev/null +++ b/src/scripts/instances/questbattles/KeepingtheFlameAlive.cpp @@ -0,0 +1,183 @@ +#include +#include + +using namespace Sapphire; + +class KeepingtheFlameAlive : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_COMPANION_ALPHINAUD = 5855176; + static constexpr auto BNPC_COMPANION_YUGIRI = 5855177; + static constexpr auto BNPC_COMPANION_RAUBAHN = 5855194; + static constexpr auto BNPC_ENEMY_ILBERD = 5856053; + static constexpr auto BNPC_ENEMY_YUYUHASE = 5856054; + static constexpr auto BNPC_ENEMY_LAURENTIUS = 5856055; + static constexpr auto BNPC_ENEMY_01_03 = 5855179; + static constexpr auto BNPC_ENEMY_01_04 = 5855184; + static constexpr auto BNPC_ENEMY_01_05 = 5855190; + static constexpr auto BNPC_ENEMY_01_06 = 5855192; + static constexpr auto BNPC_ENEMY_FANCE_01_08 = 5855628; + static constexpr auto BNPC_ENEMY_POISON_015_01 = 5855616; + static constexpr auto BNPC_ENEMY_015_02 = 5855710; + static constexpr auto BNPC_ENEMY_015_03 = 5855713; + static constexpr auto BNPC_ENEMY_015_04 = 5855716; + static constexpr auto BNPC_ENEMY_015_05 = 5855717; + static constexpr auto BNPC_ENEMY_015_06 = 5855719; + static constexpr auto BNPC_ENEMY_02_01 = 5855722; + static constexpr auto BNPC_ENEMY_02_02 = 5855723; + static constexpr auto BNPC_ENEMY_04_01 = 5856047; + static constexpr auto BNPC_ENEMY_04_02 = 5856048; + static constexpr auto BNPC_ENEMY_04_03 = 5856050; + static constexpr auto BNPC_ENEMY_05_01 = 5856051; + static constexpr auto BNPC_ENEMY_05_02 = 5856052; + static constexpr auto BNPC_ENEMY_YUYUHASE_ENSHUTSU = 5872397; + static constexpr auto CUT_SCENE_N_heavna20310 = 800; + static constexpr auto CUT_SCENE_N_heavna20320 = 801; + static constexpr auto CUT_SCENE_N_heavna20330 = 802; + static constexpr auto INIT_WARP_POINT_001 = 5856633; + static constexpr auto POP_RANGE_YUGIRI_MOVE_1 = 5868421; + static constexpr auto POP_RANGE_ALPHINAUD_MOVE_1 = 5868423; + static constexpr auto POP_RANGE_YUYUHASE_MOVE_1 = 5872399; + static constexpr auto RECT_RAUBAHN_FLOOR_OKU = 5856639; + static constexpr auto RECT_RAUBAHN_FLOOR_TEMAE = 5868403; + static constexpr auto EOBJ_KEY = 5863326; + static constexpr auto EOBJ_POISON_GAS = 5870807; + static constexpr auto YELL_QIB_ZAKO_01 = 2620; + static constexpr auto YELL_QIB_ZAKO_02 = 2621; + static constexpr auto YELL_QIB_ALPHINAUD_01 = 3059; + static constexpr auto YELL_QIB_YUGIRI_01 = 3060; + static constexpr auto STATUS_PARAM_POISON_GAS = 1413; + static constexpr auto STATUS_PARAM_POISON_GAS_RAUBAHN = 1401; + static constexpr auto WEATHER_POISON_GAS = 52; + static constexpr auto EOBJ_DOOR_A = 5927467; + static constexpr auto EOBJ_DOOR_B = 5872211; + static constexpr auto EOBJ_DOOR_C = 5927468; + static constexpr auto EOBJ_DOOR_D = 5927469; + static constexpr auto LOC_ACTOR_YU = 1011896; + static constexpr auto LOC_ACTOR_RA = 1012451; + static constexpr auto LOC_ACTOR_AL = 1008181; + static constexpr auto LOC_MARKER_PC = 5877895; + static constexpr auto LOC_MARKER_YU = 5878129; + static constexpr auto LOC_MARKER_AL = 5878132; + static constexpr auto LOC_MARKER_RA = 5878330; + static constexpr auto LOC_ACTOR_ZI = 1012452; + static constexpr auto EOBJ_KOUSOKU_BARRIER = 5875680; + static constexpr auto LOC_EOBJ_KOSOKU = 2005907; + static constexpr auto LOC_MARKER_YUYU = 5892038; + static constexpr auto LOC_MARKER_ILU = 5892039; + static constexpr auto LOC_ACTOR_YUYU = 1012447; + static constexpr auto LOC_ACTOR_ROR = 1012454; + static constexpr auto LOC_ACTOR_ILU = 1008191; + static constexpr auto LOC_MARKER_KAGI = 5900433; + static constexpr auto LOC_MARKER_YUYU_2 = 5905985; + static constexpr auto LOC_MARKER_ROL_2 = 5905987; + static constexpr auto SE_HIRAKU = 95; + static constexpr auto SE_TOZIRU = 96; + static constexpr auto SE_AKERU = 63; + static constexpr auto ACTION_TOHO_SUIYAKU = 3202; + static constexpr auto RECT_PHASE4_PACK_E = 5927556; + static constexpr auto EVENT_ACTION_01 = 21; + static constexpr auto LOG_MESSAGE_01 = 3292; + static constexpr auto EOBJ_RAUBAHN_RELEASED = 5927557; + static constexpr auto EVENT_ACTION_02 = 46; + static constexpr auto EOBJ_POISON_GAS_DEVICE = 5888360; + static constexpr auto BGM_LATE_BATTLE = 107; + static constexpr auto LOC_MARKER_KUSARI_RAU = 5935156; + static constexpr auto LOC_EOBJ_KASE = 2006368; + static constexpr auto LOC_MARKER_AL_2 = 5936095; + static constexpr auto LOC_MARKER_YUGI_2 = 5936096; + static constexpr auto EOBJ_BOSS_COVERED = 5936469; + static constexpr auto LOC_MARKER_SHIELD = 5941245; + static constexpr auto EOBJ_CHAIN = 5935143; + static constexpr auto BNPC_BATTLE_FIELD_EDGE_01 = 5961632; + static constexpr auto BNPC_BATTLE_FIELD_EDGE_02 = 5961633; + static constexpr auto BNPC_BATTLE_FIELD_EDGE_03 = 5961634; + static constexpr auto BNPC_BATTLE_FIELD_EDGE_04 = 5961635; + static constexpr auto BNPC_BATTLE_FIELD_EDGE_05 = 5961636; + static constexpr auto BNPC_BATTLE_FIELD_EDGE_06 = 5961637; + static constexpr auto BNPC_BATTLE_FIELD_EDGE_07 = 5961638; + static constexpr auto BNPC_BATTLE_FIELD_EDGE_08 = 5961639; + static constexpr auto BNPC_FOR_JUMP_01 = 5961655; + static constexpr auto BNPC_FOR_JUMP_02 = 5961656; + static constexpr auto BNPC_FOR_JUMP_03 = 5961657; + static constexpr auto BNPC_FOR_JUMP_04 = 5961658; + +public: + KeepingtheFlameAlive() : Sapphire::ScriptAPI::QuestBattleScript( 106 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "Thalsscepter", 2003646, 0, 4, { -270.088409f, 17.593571f, 31.956100f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_0", 2003695, 4617495, 4, { -280.035614f, 17.622829f, 22.302071f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_1", 2003696, 4563389, 4, { -286.231689f, 17.622749f, 20.657721f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Thalsscepter_1", 2003674, 0, 4, { -271.908386f, 17.593571f, 6.173567f }, 0.991760f, 0.000048f ); + instance.registerEObj( "Thalsscepter_2", 2003675, 0, 4, { -244.251801f, 17.593571f, 30.251480f }, 0.991760f, 0.000048f ); + instance.registerEObj( "Thalsscepter_3", 2003676, 0, 4, { -246.038696f, 17.593571f, 4.371015f }, 0.991760f, 0.000048f ); + instance.registerEObj( "Mammetactivator", 2003641, 4616318, 4, { -84.695412f, -10.178000f, -91.555862f }, 0.991760f, 0.000048f ); + instance.registerEObj( "Shadowyorb", 2003642, 0, 4, { 163.469803f, 6.240906f, 219.745102f }, 0.991760f, 0.000048f ); + instance.registerEObj( "Shadowyorb_1", 2003643, 0, 4, { 154.283905f, 6.240900f, 239.520905f }, 0.991760f, 0.000048f ); + instance.registerEObj( "Shadowyorb_2", 2003644, 0, 4, { 143.742905f, 6.240900f, 210.525208f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Shadowyorb_3", 2003645, 0, 4, { 134.607193f, 6.240900f, 230.328094f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_2", 2003569, 4603298, 4, { 148.951706f, 4.509544f, 224.628006f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Exit", 2001610, 4569374, 4, { -278.262390f, 17.622650f, 19.181259f }, 0.991760f, 0.000048f ); + // States -> vf_htras1_on (id: 2) vf_htras1_of (id: 3) + instance.registerEObj( "Shortcut", 2000700, 0, 4, { 139.879395f, -0.228372f, -31.551029f }, 0.991760f, 0.000048f ); + instance.registerEObj( "Entrance", 2000182, 4569369, 5, { 149.187393f, -0.228943f, -35.111019f }, 0.991760f, 0.000048f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "unknown_3", 2002575, 0, 4, { 160.775299f, -1.641945f, -10.606120f }, 0.991760f, -1.265160f ); + instance.registerEObj( "unknown_4", 2002735, 0, 4, { -50.385818f, -10.178000f, -114.820198f }, 0.991760f, -1.005012f ); + instance.registerEObj( "sgvf_w_lvd_b0118", 2002872, 4569384, 4, { -48.920971f, -10.792460f, -116.285103f }, 0.991760f, -1.062825f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "unknown_5", 2002735, 0, 4, { 129.072403f, 4.509535f, 216.306305f }, 1.000000f, 1.129171f ); + instance.registerEObj( "sgvf_w_lvd_b0118_1", 2002872, 4569379, 4, { 130.018494f, 4.509536f, 217.130295f }, 0.991760f, 0.000048f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "unknown_6", 2002735, 0, 4, { -233.786301f, 17.622999f, 16.764700f }, 1.000000f, -1.486617f ); + instance.registerEObj( "sgvf_w_lvd_b0118_2", 2002872, 4569389, 4, { -233.389206f, 17.622990f, 16.739140f }, 0.991760f, 0.000048f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "unknown_7", 2003506, 4594991, 4, { 101.606300f, -4.171019f, -69.914146f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_8", 2003507, 4598981, 4, { -41.245178f, -10.879700f, -121.934898f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_9", 2003508, 4603945, 4, { -52.140079f, -10.696590f, -91.691528f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_10", 2003509, 4564172, 4, { 130.022095f, -0.534058f, 5.172791f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_11", 2003510, 4594992, 4, { 123.552200f, -2.731445f, 25.131590f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_12", 2003511, 4598084, 4, { 89.130997f, -3.711910f, 78.724213f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_13", 2003512, 4599477, 4, { 73.157578f, -3.335556f, 178.491302f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_14", 2003513, 4594999, 4, { 100.220802f, 0.477127f, 203.242798f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_15", 2003514, 4616527, 4, { 167.865707f, 4.509536f, 233.584396f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_16", 2003515, 4567234, 4, { -191.532196f, 4.456180f, 94.520203f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_17", 2003516, 4567237, 4, { -128.869400f, 12.073380f, 96.752960f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_18", 2003517, 4567232, 4, { -66.065460f, 14.565810f, 26.350080f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_19", 2003518, 4567230, 4, { -171.754501f, 12.467810f, 12.301850f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_20", 2003519, 4596306, 4, { -198.995102f, 11.315890f, 13.488570f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_21", 2003520, 4565306, 4, { 96.452271f, -3.738525f, 39.688599f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_22", 2003521, 4565309, 4, { 127.885902f, -3.738525f, 60.807129f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_23", 2003522, 4565307, 4, { 82.383423f, -3.646973f, 59.189701f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_24", 2003523, 4565308, 4, { 108.323700f, -3.738525f, 80.552368f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_25", 2003524, 4565302, 4, { -2.324507f, 0.927634f, 144.329300f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_26", 2003525, 4565303, 4, { 27.311819f, 0.927548f, 166.238098f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_27", 2003526, 4565305, 4, { 68.331223f, 0.927661f, 136.889404f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_28", 2003527, 4595900, 4, { 77.372299f, -10.608900f, -91.074203f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_29", 2003528, 4595901, 4, { 36.027271f, -9.635880f, -104.808601f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_30", 2003529, 4595903, 4, { 2.165477f, -11.282240f, -188.867599f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_31", 2003530, 4618276, 4, { -10.216280f, -11.049250f, -152.788300f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_32", 2003531, 4595904, 4, { -21.241859f, -11.023320f, -136.299393f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Entrance_1", 2000182, 4970117, 5, { -243.015701f, 19.074579f, 10.923530f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "Exit_1", 2000139, 0, 4, { -272.688904f, 19.074579f, 18.222231f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( KeepingtheFlameAlive ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/KeepingtheOath.cpp b/src/scripts/instances/questbattles/KeepingtheOath.cpp new file mode 100644 index 00000000..b1919e97 --- /dev/null +++ b/src/scripts/instances/questbattles/KeepingtheOath.cpp @@ -0,0 +1,86 @@ +#include +#include + +using namespace Sapphire; + +class KeepingtheOath : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_SOLKIZAGIL_01 = 4293473; + static constexpr auto INIT_P_POP_JENLINCE_01 = 4293474; + static constexpr auto INIT_POP_1_OGA_01 = 4293477; + static constexpr auto INIT_POP_1_ARLIMAN_01 = 4293479; + static constexpr auto INIT_POP_2_PGL_SAKATU_01 = 4293524; + static constexpr auto INIT_POP_2_PGL_SAKATU_02 = 4293525; + static constexpr auto INIT_POP_2_PGL_SAKATU_03 = 4293526; + static constexpr auto INIT_POP_3_PGL_SAKATU_01 = 4293534; + static constexpr auto INIT_POP_3_PGL_SAKATU_02 = 4293535; + static constexpr auto INIT_POP_3_PGL_SAKATU_03 = 4293536; + static constexpr auto INIT_POP_3_GLA_SAKATU_01 = 4293547; + static constexpr auto INIT_POP_3_GLA_SAKATU_02 = 4293548; + static constexpr auto INIT_POP_3_BOSS_SAKATU_01 = 4293553; + static constexpr auto POP_EOBJ_COMEET_POINT_01 = 4293747; + static constexpr auto POP_EOBJ_COMEET_OMEN_01 = 4293748; + static constexpr auto INIT_P_POP_SOLKIZAGIL_02 = 4293791; + static constexpr auto INIT_P_POP_JENLINCE_02 = 4293788; + static constexpr auto INIT_POP_4_PGL_SAKATU_01 = 4293994; + static constexpr auto INIT_POP_4_PGL_SAKATU_02 = 4293995; + static constexpr auto INIT_POP_4_PGL_SAKATU_03 = 4293996; + static constexpr auto INIT_POP_4_SUMMON_MAMONJIN_01 = 4293997; + static constexpr auto INIT_POP_4_DETHEGAIZE_01 = 4293999; + static constexpr auto EVENT_ACTION_01 = 6; + static constexpr auto INIT_P_POP_JENLINCE_03 = 4302195; + static constexpr auto INIT_P_POP_SOLKIZAGIL_03 = 4302196; + static constexpr auto WARP_01 = 4302204; + static constexpr auto CUT_START_NCUT = 332; + static constexpr auto CUT_END_NCUT = 333; + static constexpr auto BGM_LASTHALF = 91; + static constexpr auto BGM_SEARCH_PHASE = 141; + static constexpr auto INIT_P_POP_STAR_MAP_TARGET = 4323575; + static constexpr auto DEF_ACTION_STAR_MAP = 1116; + static constexpr auto POP_AVOID_STAR_MAP_MOVE = 4323599; + static constexpr auto POP_ENEMY_MOVE_01 = 4293554; + static constexpr auto POP_ENEMY_MOVE_02 = 4323984; + static constexpr auto PR_SOLKIZAGIL_MOVE = 4330647; + static constexpr auto JOB_STORY_MES = 3616; + +public: + KeepingtheOath() : Sapphire::ScriptAPI::QuestBattleScript( 69 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "sgbg_w_qic_001_04a", 2006993, 6235274, 4, { -35.822102f, 298.899994f, -205.263199f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_0", 2006952, 0, 4, { -35.712589f, 298.899994f, -204.878006f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Exit", 2000139, 0, 4, { 556.049377f, 348.102509f, -752.435730f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Entrance", 2000182, 4600289, 5, { 523.532471f, 348.223389f, -736.685730f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "unknown_1", 2002332, 0, 4, { 533.090881f, 348.691895f, -742.750916f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_2", 2002333, 0, 4, { 539.940430f, 348.836395f, -734.401489f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_3", 2000608, 3967803, 4, { 202.369598f, 257.761108f, 80.435272f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_4", 2000608, 3976993, 4, { 273.634705f, 254.600204f, 106.048500f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_5", 2000608, 3986797, 4, { 205.504898f, 246.188995f, 194.875702f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_6", 2000608, 3986798, 4, { 326.313385f, 239.193497f, 221.138901f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_7", 2000608, 2718481, 4, { 240.552307f, 302.769714f, -199.979996f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_8", 2000608, 4065433, 4, { 204.970001f, 302.119995f, -216.311600f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_9", 2000608, 2814617, 4, { 205.869995f, 302.219086f, -276.681396f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_10", 2000608, 2763112, 4, { -433.000000f, 211.007706f, -216.148605f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_11", 2000608, 4187649, 4, { -453.000000f, 211.000000f, -281.046600f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_12", 2000608, 4187961, 4, { -416.000000f, 210.788193f, -279.813812f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( KeepingtheOath ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/KeepingtheSpiritAlive.cpp b/src/scripts/instances/questbattles/KeepingtheSpiritAlive.cpp new file mode 100644 index 00000000..08d17344 --- /dev/null +++ b/src/scripts/instances/questbattles/KeepingtheSpiritAlive.cpp @@ -0,0 +1,46 @@ +#include +#include + +using namespace Sapphire; + +class KeepingtheSpiritAlive : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_01 = 4074121; + static constexpr auto INIT_POP_02 = 4074122; + static constexpr auto INIT_POP_03 = 4074123; + static constexpr auto INIT_ENPC_POP_01 = 4074347; + static constexpr auto BGM_NOMAL = 101; + static constexpr auto BGM_LVUP = 23; + static constexpr auto NCUT_20010 = 165; + static constexpr auto WARP_PC_POINT = 4106159; + +public: + KeepingtheSpiritAlive() : Sapphire::ScriptAPI::QuestBattleScript( 31 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2009578, 2091611, 4, { 31.545870f, 7.999978f, -121.025002f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_1", 2009578, 2091610, 4, { 4.407776f, 8.022990f, -105.310699f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_2", 2009578, 2091597, 4, { -184.324402f, 18.000000f, 65.271606f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_3", 2009578, 2091596, 4, { -146.806107f, 14.005000f, 63.857010f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Companychest", 2000470, 4255821, 4, { -149.301498f, 4.552717f, -91.365868f }, 0.991760f, -0.619932f ); + instance.registerEObj( "Huntboard", 2004440, 2217635, 4, { -152.330902f, 4.230781f, -92.351143f }, 0.991760f, 0.000048f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( KeepingtheSpiritAlive ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/KindredSpirits.cpp b/src/scripts/instances/questbattles/KindredSpirits.cpp new file mode 100644 index 00000000..93978653 --- /dev/null +++ b/src/scripts/instances/questbattles/KindredSpirits.cpp @@ -0,0 +1,74 @@ +#include +#include + +using namespace Sapphire; + +class KindredSpirits : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_RIELLE = 5892157; + static constexpr auto BNPC_P1_GOAL_01 = 5892158; + static constexpr auto BNPC_P1_GOAL_02 = 5892159; + static constexpr auto BNPC_P1_GOAL_03 = 5892161; + static constexpr auto BNPC_P1_GOAL_04 = 5892162; + static constexpr auto BNPC_P1_GOAL_05 = 5892163; + static constexpr auto BNPC_P1_GLA_01 = 5892164; + static constexpr auto BNPC_P1_GLA_02 = 5892174; + static constexpr auto BNPC_P1_LNC_01 = 5892165; + static constexpr auto BNPC_P1_LNC_02 = 5892168; + static constexpr auto BNPC_P1_LNC_03 = 5892169; + static constexpr auto BNPC_P1_LNC_04 = 5892175; + static constexpr auto BNPC_P1_LNC_05 = 5892176; + static constexpr auto BNPC_P1_LNC_06 = 5892178; + static constexpr auto BNPC_P1_ARC_01 = 5892170; + static constexpr auto BNPC_P1_ARC_02 = 5892177; + static constexpr auto BNPC_P1_ARC_03 = 5892180; + static constexpr auto BNPC_P1_BOSS = 5892181; + static constexpr auto ACTION_GOAL_TRIGER = 3269; + static constexpr auto BNPCBASE_IGNORE_01 = 132; + static constexpr auto BNPCBASE_IGNORE_02 = 395; + static constexpr auto BNPCBASE_IGNORE_03 = 720; + static constexpr auto MOUNT_BOSS = 45; + static constexpr auto MOUNT_MOB = 10; + static constexpr auto BGM_BATTLE_BEGIN = 39; + +public: + KindredSpirits() : Sapphire::ScriptAPI::QuestBattleScript( 138 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "sgbg_w_qic_001_04a", 2006993, 6235274, 4, { -35.822102f, 298.899994f, -205.263199f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_0", 2006952, 0, 4, { -35.712589f, 298.899994f, -204.878006f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Exit", 2000139, 0, 4, { 556.049377f, 348.102509f, -752.435730f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Entrance", 2000182, 4600289, 5, { 523.532471f, 348.223389f, -736.685730f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "unknown_1", 2002332, 0, 4, { 533.090881f, 348.691895f, -742.750916f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_2", 2002333, 0, 4, { 539.940430f, 348.836395f, -734.401489f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_3", 2000608, 3967803, 4, { 202.369598f, 257.761108f, 80.435272f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_4", 2000608, 3976993, 4, { 273.634705f, 254.600204f, 106.048500f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_5", 2000608, 3986797, 4, { 205.504898f, 246.188995f, 194.875702f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_6", 2000608, 3986798, 4, { 326.313385f, 239.193497f, 221.138901f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_7", 2000608, 2718481, 4, { 240.552307f, 302.769714f, -199.979996f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_8", 2000608, 4065433, 4, { 204.970001f, 302.119995f, -216.311600f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_9", 2000608, 2814617, 4, { 205.869995f, 302.219086f, -276.681396f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_10", 2000608, 2763112, 4, { -433.000000f, 211.007706f, -216.148605f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_11", 2000608, 4187649, 4, { -453.000000f, 211.000000f, -281.046600f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_12", 2000608, 4187961, 4, { -416.000000f, 210.788193f, -279.813812f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( KindredSpirits ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/LanceofDestiny.cpp b/src/scripts/instances/questbattles/LanceofDestiny.cpp new file mode 100644 index 00000000..3878648e --- /dev/null +++ b/src/scripts/instances/questbattles/LanceofDestiny.cpp @@ -0,0 +1,46 @@ +#include +#include + +using namespace Sapphire; + +class LanceofDestiny : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_01 = 4248895; + static constexpr auto INIT_POP_BOSS = 4248927; + static constexpr auto INIT_POP_A_01 = 4248928; + static constexpr auto INIT_POP_A_02 = 4248929; + static constexpr auto INIT_POP_A_03 = 4248938; + static constexpr auto INIT_POP_A_04 = 4248939; + static constexpr auto INIT_POP_B_01 = 4248948; + static constexpr auto INIT_POP_C_01 = 4248944; + static constexpr auto INIT_POP_C_02 = 4248945; + static constexpr auto LOG_MSG_EVENT_QIB_LNC004_BTL_01 = 3201; + static constexpr auto LOG_MSG_EVENT_QIB_LNC004_BTL_02 = 3202; + static constexpr auto DEF_ACTION_BOA_WS_CRITICAL = 335; + static constexpr auto CUT_SCENE_01 = 21; + static constexpr auto CUT_SCENE_02 = 319; + +public: + LanceofDestiny() : Sapphire::ScriptAPI::QuestBattleScript( 55 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( LanceofDestiny ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/LeiasLegacy.cpp b/src/scripts/instances/questbattles/LeiasLegacy.cpp new file mode 100644 index 00000000..b660e188 --- /dev/null +++ b/src/scripts/instances/questbattles/LeiasLegacy.cpp @@ -0,0 +1,46 @@ +#include +#include + +using namespace Sapphire; + +class LeiasLegacy : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_01 = 2319770; + static constexpr auto INIT_POP_02 = 2319771; + static constexpr auto INIT_POP_03 = 2319772; + static constexpr auto INIT_POP_04 = 2319773; + static constexpr auto INIT_EO_POP_01 = 3867263; + static constexpr auto LOC_ACTOR0 = 1003008; + static constexpr auto LOC_ACTOR1 = 1000816; + static constexpr auto LOC_ACTOR2 = 1003016; + static constexpr auto LOC_ACTOR3 = 1003017; + static constexpr auto LOC_ACTOR4 = 1003018; + static constexpr auto INIT_P_POP_KUPURU_KOPO = 4097283; + static constexpr auto DEF_ACTION_WS_CRITICAL_LANCER = 477; + static constexpr auto INIT_EN_POP_01 = 4107577; + +public: + LeiasLegacy() : Sapphire::ScriptAPI::QuestBattleScript( 14 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2005192, 5760474, 4, { -51.493111f, 0.309087f, 71.436897f }, 1.000000f, -0.000006f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( LeiasLegacy ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/LikeMotherLikeDaughter.cpp b/src/scripts/instances/questbattles/LikeMotherLikeDaughter.cpp new file mode 100644 index 00000000..400c652c --- /dev/null +++ b/src/scripts/instances/questbattles/LikeMotherLikeDaughter.cpp @@ -0,0 +1,62 @@ +#include +#include + +using namespace Sapphire; + +class LikeMotherLikeDaughter : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_PRIN_1_01 = 4249083; + static constexpr auto INIT_POP_PRIN_1_02 = 4249087; + static constexpr auto INIT_POP_PRIN_1_03 = 4249088; + static constexpr auto INIT_POP_YODOMI = 4250414; + static constexpr auto INIT_P_POP_WULFIUE = 4249072; + static constexpr auto INIT_P_POP_NOLANEL = 4249073; + static constexpr auto INIT_P_POP_JOACIN = 4249074; + static constexpr auto INIT_POP_TREE_2_01 = 4249097; + static constexpr auto INIT_POP_TREE_2_02 = 4249098; + static constexpr auto INIT_POP_YAMANE_2_01 = 4249106; + static constexpr auto INIT_POP_YAMANE_2_02 = 4249107; + static constexpr auto INIT_POP_EARTH_SPRIT = 4249109; + static constexpr auto INIT_POP_TREE_3_01 = 4250514; + static constexpr auto INIT_POP_TREE_3_02 = 4250515; + static constexpr auto INIT_P_POP_ELEMENTAL_THUNDER = 4249116; + static constexpr auto INIT_P_POP_ELEMENTAL_WIND = 4249117; + static constexpr auto INIT_P_POP_ELEMENTAL_WATER = 4249119; + static constexpr auto INIT_P_POP_PRIN_BOSS = 4249132; + static constexpr auto INIT_ENPC_POP_01 = 4249177; + static constexpr auto INIT_ENPC_POP_02 = 4249178; + static constexpr auto INIT_ENPC_POP_03 = 4249179; + static constexpr auto INIT_ENPC_POP_04 = 4249180; + static constexpr auto DEF_WEATHER_BOLT = 10; + static constexpr auto DEF_WEATHER_FINE = 1; + static constexpr auto YELL_QIB_WULFIUE_01 = 996; + static constexpr auto YELL_QIB_NOLANEL_01 = 997; + static constexpr auto YELL_QIB_JOACIN_01 = 998; + +public: + LikeMotherLikeDaughter() : Sapphire::ScriptAPI::QuestBattleScript( 56 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "Entrance", 2000182, 5021407, 5, { 623.000000f, 23.872311f, 94.505638f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "Exit", 2000139, 0, 4, { 623.000000f, 23.656260f, 61.956181f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( LikeMotherLikeDaughter ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/LordoftheInferno.cpp b/src/scripts/instances/questbattles/LordoftheInferno.cpp new file mode 100644 index 00000000..0ebd16fc --- /dev/null +++ b/src/scripts/instances/questbattles/LordoftheInferno.cpp @@ -0,0 +1,62 @@ +#include +#include + +using namespace Sapphire; + +class LordoftheInferno : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_BOSS = 4098741; + static constexpr auto INIT_P_POP_A = 4098743; + static constexpr auto INIT_P_POP_B = 4098744; + static constexpr auto INIT_P_POP_C = 4098745; + static constexpr auto INIT_P_POP_SER = 4098749; + static constexpr auto INIT_POP_1ST_01 = 4098775; + static constexpr auto INIT_POP_1ST_02 = 4098776; + static constexpr auto INIT_POP_1ST_03 = 4098777; + static constexpr auto INIT_POP_1ST_04 = 4098783; + static constexpr auto INIT_POP_1ST_05 = 4098784; + static constexpr auto INIT_POP_1ST_06 = 4098791; + static constexpr auto INIT_POP_1ST_07 = 4098792; + static constexpr auto INIT_POP_2ND_01 = 4098806; + static constexpr auto INIT_POP_2ND_02 = 4098810; + static constexpr auto INIT_POP_2ND_03 = 4098819; + static constexpr auto INIT_POP_2ND_04 = 4098821; + static constexpr auto INIT_POP_2ND_05 = 4098823; + static constexpr auto INIT_POP_3RD_01 = 4098839; + static constexpr auto INIT_POP_3RD_02 = 4098840; + static constexpr auto INIT_POP_3RD_03 = 4098842; + static constexpr auto INIT_POP_1ST_08 = 4098866; + static constexpr auto INIT_POP_1ST_09 = 4098871; + static constexpr auto INIT_POP_3RD_04 = 4098886; + static constexpr auto INIT_POP_3RD_05 = 4098887; + static constexpr auto INIT_POP_3RD_06 = 4098888; + static constexpr auto INIT_POP_3RD_07 = 4098889; + static constexpr auto INIT_ENPC_POP_01 = 4100860; + static constexpr auto CUT_SCENE_01 = 84; + static constexpr auto CUT_SCENE_02 = 85; + static constexpr auto UNLOCK_IMAGE_DUNGEON = 77; + +public: + LordoftheInferno() : Sapphire::ScriptAPI::QuestBattleScript( 45 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( LordoftheInferno ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/LurkersintheGrotto.cpp b/src/scripts/instances/questbattles/LurkersintheGrotto.cpp new file mode 100644 index 00000000..00478abc --- /dev/null +++ b/src/scripts/instances/questbattles/LurkersintheGrotto.cpp @@ -0,0 +1,42 @@ +#include +#include + +using namespace Sapphire; + +class LurkersintheGrotto : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_BOSS = 4083604; + static constexpr auto INIT_POP_01_01 = 4083606; + static constexpr auto INIT_POP_01_02 = 4083607; + static constexpr auto INIT_POP_02_01 = 4083608; + static constexpr auto INIT_POP_02_02 = 4083609; + static constexpr auto INIT_POP_02_03 = 4083610; + static constexpr auto INIT_POP_02_04 = 4083611; + static constexpr auto INIT_P_POP_01 = 4083622; + static constexpr auto CUT_SCENE_01 = 133; + static constexpr auto HOW_TO_QIB = 79; + +public: + LurkersintheGrotto() : Sapphire::ScriptAPI::QuestBattleScript( 35 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( LurkersintheGrotto ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/MasterMusosai.cpp b/src/scripts/instances/questbattles/MasterMusosai.cpp new file mode 100644 index 00000000..eb6f55bb --- /dev/null +++ b/src/scripts/instances/questbattles/MasterMusosai.cpp @@ -0,0 +1,91 @@ +#include +#include + +using namespace Sapphire; + +class MasterMusosai : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_MUSOSAI = 6783224; + static constexpr auto LOC_ACTOR0 = 1020968; + static constexpr auto LOC_ACTOR1 = 1020969; + static constexpr auto LOC_ACTOR2 = 1020970; + static constexpr auto LOC_ACTOR3 = 1022927; + static constexpr auto LOC_ACTOR4 = 1022928; + static constexpr auto LOC_MARKER_00 = 6942129; + static constexpr auto LOC_MARKER_01 = 6942136; + static constexpr auto LOC_SE0 = 142; + static constexpr auto LOC_SE1 = 153; + static constexpr auto LOC_BGM0 = 39; + static constexpr auto BNPC_ENEMY_BEROALD = 6984416; + static constexpr auto BNPC_ENEMY_AXE_01 = 6984417; + static constexpr auto BNPC_ENEMY_AXE_02 = 6984418; + static constexpr auto BNPC_ENEMY_BOW_01 = 6984419; + static constexpr auto BNPC_ENEMY_BOW_02 = 6984442; + static constexpr auto BNPC_ENEMY_BOW_03 = 6984443; + static constexpr auto BNPC_ENEMY_BOW_04 = 6984457; + static constexpr auto ENPC_SHOWMAN = 6942131; + static constexpr auto BNPC_MUSOSAI_02 = 6997754; + static constexpr auto BNPC_TOUMEI_SCAPEGOAT = 6997977; + static constexpr auto BNPC_TOUMEI_BEROALD = 6984494; + static constexpr auto PR_MOVE_BOW_POS_01 = 6984642; + static constexpr auto PR_MOVE_BOW_POS_02 = 6984730; + static constexpr auto PR_MOVE_BOW_POS_03 = 6984774; + static constexpr auto PR_MOVE_BOW_POS_04 = 6984776; + static constexpr auto PR_MOVE_BEROALD_POS = 6996457; + static constexpr auto PR_PLAYER_SEC_POS = 6997801; + static constexpr auto ACT_IAIDO_SINGLE = 7487; + static constexpr auto ACT_IAIDO_MULTI = 7488; + static constexpr auto ACT_IAIDO_DOT = 7489; + static constexpr auto ACT_MUSOUSAI_KATSU = 9505; + static constexpr auto ACT_FASTBLADE = 9503; + static constexpr auto ACT_SAMURAI_W1 = 7477; + static constexpr auto ACT_SAMURAI_W21 = 7478; + static constexpr auto ACT_SAMURAI_W22 = 7479; + static constexpr auto ACT_SAMURAI_W23 = 7480; + static constexpr auto ACT_SAMURAI_W31 = 7481; + static constexpr auto ACT_SAMURAI_W32 = 7482; + static constexpr auto BNPCSTATE_ARM_CROSS = 169; + static constexpr auto BNPCSTATE_ACTIVE = 1; + static constexpr auto BEHAVIOR_BEROALD_BASE_01 = 31047; + static constexpr auto BEHAVIOR_BEROALD_BASE_02 = 31048; + static constexpr auto BEHAVIOR_BEROALD_BASE_03 = 31049; + static constexpr auto BEHAVIOR_AXE01_BASE = 30066; + static constexpr auto BEHAVIOR_AXE02_BASE = 30078; + static constexpr auto STA_IAIDO_DOT = 2831; + static constexpr auto YELL_MUSOUSAI_01 = 6324; + static constexpr auto YELL_MUSOUSAI_02 = 6325; + static constexpr auto YELL_MUSOUSAI_03 = 6326; + static constexpr auto YELL_MUSOUSAI_04 = 6327; + static constexpr auto YELL_MUSOUSAI_05 = 6328; + static constexpr auto YELL_BEROALD_07 = 6335; + static constexpr auto YELL_BEROALD_08 = 6336; + static constexpr auto YELL_BEROALD_09 = 6337; + static constexpr auto SE_APPLAUSE = 142; + static constexpr auto LOC_BGM1 = 209; + +public: + MasterMusosai() : Sapphire::ScriptAPI::QuestBattleScript( 157 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2004364, 0, 4, { -93.101089f, -13.129550f, 6.845694f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Companychest", 2000470, 4255822, 4, { 128.974701f, 5.067919f, -40.913502f }, 1.000000f, -0.343160f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( MasterMusosai ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/MasterandStudent.cpp b/src/scripts/instances/questbattles/MasterandStudent.cpp new file mode 100644 index 00000000..fa6fabf6 --- /dev/null +++ b/src/scripts/instances/questbattles/MasterandStudent.cpp @@ -0,0 +1,65 @@ +#include +#include + +using namespace Sapphire; + +class MasterandStudent : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_GEKKAI = 5032404; + static constexpr auto BNPC_GEKKAI_BUNSHIN_01 = 5112962; + static constexpr auto BNPC_GEKKAI_BUNSHIN_02 = 5112979; + static constexpr auto BNPC_GEKKAI_BUNSHIN_03 = 5112980; + static constexpr auto BNPC_ZAKO_01 = 5112969; + static constexpr auto BNPC_ZAKO_02 = 5112977; + static constexpr auto BNPC_OBORO = 5112967; + static constexpr auto BNPC_TSUBAME = 5112968; + static constexpr auto BNPC_TOUMEI_RAITON_FOR_PLAYER_01 = 5112965; + static constexpr auto BNPC_TOUMEI_RAITON_FOR_PLAYER_02 = 5114065; + static constexpr auto BNPC_TOUMEI_RAITON_FOR_PLAYER_03 = 5114066; + static constexpr auto BNPC_TOUMEI_RAITON_FOR_FIXED_POINT = 5112964; + static constexpr auto BNPC_RAITON_TARGET_01 = 5113180; + static constexpr auto BNPC_RAITON_TARGET_02 = 5113181; + static constexpr auto BNPC_RAITON_TARGET_03 = 5113182; + static constexpr auto BNPC_RAITON_TARGET_04 = 5113183; + static constexpr auto BNPC_RAITON_TARGET_05 = 5113184; + static constexpr auto BNPC_RAITON_TARGET_06 = 5113185; + static constexpr auto BNPC_RAITON_TARGET_07 = 5113186; + static constexpr auto BNPC_RAITON_TARGET_08 = 5118217; + static constexpr auto BNPC_RAITON_TARGET_09 = 5118218; + static constexpr auto BNPC_RAITON_TARGET_10 = 5118221; + static constexpr auto DEF_ACTION_RAITON_GT = 3203; + static constexpr auto DEF_ACTION_BUNSHIN = 3206; + static constexpr auto STATUS_FIRE_DOT = 267; + static constexpr auto DEF_ACTION_KATON_GT = 3205; + static constexpr auto QIB_YELL_01 = 2347; + static constexpr auto QIB_YELL_02 = 2348; + static constexpr auto QIB_YELL_03 = 2349; + static constexpr auto QIB_YELL_04 = 2350; + static constexpr auto CUT_SCENE_00 = 692; + static constexpr auto CUT_SCENE_01 = 693; + static constexpr auto BNPC_SHUKUCHI_TARGET = 5420138; + +public: + MasterandStudent() : Sapphire::ScriptAPI::QuestBattleScript( 100 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( MasterandStudent ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/MasterofMarksmanship.cpp b/src/scripts/instances/questbattles/MasterofMarksmanship.cpp new file mode 100644 index 00000000..c1222dd4 --- /dev/null +++ b/src/scripts/instances/questbattles/MasterofMarksmanship.cpp @@ -0,0 +1,112 @@ +#include +#include + +using namespace Sapphire; + +class MasterofMarksmanship : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_ROSTNSTHAL_01 = 5895579; + static constexpr auto BNPC_JOYE_01 = 5895580; + static constexpr auto BNPC_ROSTNSTHAL_02 = 5895760; + static constexpr auto BNPC_01_CONDOR_01 = 5895588; + static constexpr auto BNPC_01_CONDOR_02 = 5895590; + static constexpr auto BNPC_01_CONDOR_03 = 5895592; + static constexpr auto BNPC_01_CONDOR_04 = 5895593; + static constexpr auto BNPC_01_CONDOR_05 = 5895594; + static constexpr auto BNPC_01_CONDOR_06 = 5895595; + static constexpr auto BNPC_01_CONDOR_07 = 5895596; + static constexpr auto BNPC_01_CONDOR_08 = 5895598; + static constexpr auto BNPC_01_COEURL_01 = 5895601; + static constexpr auto BNPC_01_COEURL_02 = 5895602; + static constexpr auto BNPC_01_COEURL_03 = 5895603; + static constexpr auto BNPC_01_COEURL_04 = 5895604; + static constexpr auto BNPC_01_COEURL_05 = 5895634; + static constexpr auto BNPC_01_COEURL_06 = 5895635; + static constexpr auto BNPC_01_COEURL_07 = 5895636; + static constexpr auto BNPC_01_RINGTAIL_01 = 5895606; + static constexpr auto BNPC_01_RINGTAIL_02 = 5895607; + static constexpr auto BNPC_01_RINGTAIL_03 = 5895608; + static constexpr auto BNPC_01_RINGTAIL_04 = 5895609; + static constexpr auto BNPC_01_RINGTAIL_05 = 5895610; + static constexpr auto BNPC_01_RINGTAIL_06 = 5895612; + static constexpr auto BNPC_01_RINGTAIL_07 = 5895613; + static constexpr auto BNPC_01_RINGTAIL_08 = 5895614; + static constexpr auto BNPC_01_SPRITE_01 = 5895615; + static constexpr auto BNPC_01_SPRITE_02 = 5895616; + static constexpr auto BNPC_01_SPRITE_03 = 5895618; + static constexpr auto BNPC_01_SPRITE_04 = 5895619; + static constexpr auto BNPC_01_SPRITE_05 = 5895620; + static constexpr auto BNPC_01_SPRITE_06 = 5895623; + static constexpr auto BNPC_01_SPRITE_07 = 5895624; + static constexpr auto BNPC_01_SPRITE_08 = 5895625; + static constexpr auto BNPC_01_GOLEM_01 = 5895626; + static constexpr auto BNPC_01_GOLEM_02 = 5895627; + static constexpr auto BNPC_01_GOLEM_03 = 5895628; + static constexpr auto BNPC_01_GOLEM_04 = 5895629; + static constexpr auto BNPC_01_GOLEM_05 = 5895630; + static constexpr auto BNPC_01_GOLEM_06 = 5895631; + static constexpr auto BNPC_01_GOLEM_07 = 5895632; + static constexpr auto BNPC_02_BOMB_01 = 5895642; + static constexpr auto BNPC_02_BOMB_02 = 5895646; + static constexpr auto BNPC_02_BOMB_03 = 5895648; + static constexpr auto BNPC_03_WEASEL_01 = 5895752; + static constexpr auto BNPC_03_WEASEL_02 = 5895755; + static constexpr auto BNPC_03_TIGER_01 = 5895753; + static constexpr auto BNPC_03_TIGER_02 = 5895756; + static constexpr auto MOVING_POINT_01 = 5895586; + static constexpr auto MOVING_POINT_02 = 5895757; + static constexpr auto ER_RECT_01 = 5895759; + static constexpr auto WARP_PC_POINT_01 = 5895762; + static constexpr auto MOVING_POINT_JOYE_01 = 5908268; + static constexpr auto BNPC_TYPE_01_GOLEM = 4287; + static constexpr auto BNPC_TYPE_02_BOMB = 4291; + static constexpr auto BNPC_TYPE_03_WEASEL = 4294; + static constexpr auto BNPC_TYPE_03_TIGER = 4295; + static constexpr auto ENPC_STEPHANIVIEN_01 = 5899500; + static constexpr auto ENPC_JOYE_01 = 5899501; + static constexpr auto BEHAVIOR_ROSTNSTHAL_01 = 30601; + static constexpr auto BEHAVIOR_JOYE_01 = 30602; + static constexpr auto BEHAVIOR_JOYE_02 = 30603; + static constexpr auto BEHAVIOR_JOYE_03 = 30604; + static constexpr auto BEHAVIOR_JOYE_04 = 30605; + static constexpr auto QIB_YELL_01 = 2723; + static constexpr auto QIB_YELL_02 = 2724; + static constexpr auto QIB_YELL_03 = 2725; + static constexpr auto QIB_YELL_04 = 2726; + static constexpr auto ACTION_SCRIPT_TRIGGER = 3269; + static constexpr auto ACTION_HEART_SHOT = 2875; + static constexpr auto BGM_BOSS_BATTLE = 39; + static constexpr auto LOC_MARKER_01 = 5923224; + static constexpr auto LOC_ACTOR0 = 1014580; + static constexpr auto LOC_ACTOR1 = 1015124; + static constexpr auto LOC_ACTOR2 = 1014579; + +public: + MasterofMarksmanship() : Sapphire::ScriptAPI::QuestBattleScript( 127 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2000200, 2489513, 4, { 111.832100f, 24.171450f, -613.209473f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_1", 2000201, 2489537, 4, { 47.863529f, 24.380640f, -739.987976f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_2", 2000202, 2489511, 4, { 127.017097f, 24.144819f, -719.131226f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_3", 2000203, 2489539, 4, { 176.514206f, 24.118999f, -640.707825f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_4", 2000204, 0, 4, { 223.131302f, 22.248779f, -596.149780f }, 0.991760f, 0.000048f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( MasterofMarksmanship ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/MatsubaMayhem.cpp b/src/scripts/instances/questbattles/MatsubaMayhem.cpp deleted file mode 100644 index 0db75ab7..00000000 --- a/src/scripts/instances/questbattles/MatsubaMayhem.cpp +++ /dev/null @@ -1,40 +0,0 @@ -#include -#include - -using namespace Sapphire; - -class MatsubaMayhem : - public Sapphire::ScriptAPI::InstanceContentScript -{ -public: - MatsubaMayhem() : - Sapphire::ScriptAPI::InstanceContentScript( 5011 ) - { } - - void onInit( InstanceContent& instance ) override - { - instance.registerEObj( "unknown_0", 2000608, 6538194, 4, { -27.571140f, -3.000000f, 46.619968f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_1", 2000608, 6538193, 4, { -28.307659f, 3.999977f, 61.762589f }, 1.000000f, 0.000000f ); - instance.registerEObj( "ClanHuntboard", 2008655, 6422886, 4, { -31.520060f, 0.076252f, -43.853790f }, 0.991760f, 0.000048f ); - instance.registerEObj( "sgbg_w_qic_004_03a", 2002872, 6799085, 4, { -79.087517f, -3.006042f, 41.336670f }, 0.991760f, 0.000048f ); - instance.registerEObj( "sgbg_w_qic_004_03a_1", 2002872, 6799087, 4, { -61.668732f, -3.014119f, 84.855003f }, 0.991760f, -1.567030f ); - instance.registerEObj( "unknown_2", 2007457, 6611234, 4, { 137.621094f, 14.816470f, 92.484863f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_3", 2007457, 6538193, 4, { -27.894131f, 3.999977f, 61.384491f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_4", 2007457, 6538194, 4, { -28.259020f, -3.000000f, 46.489510f }, 1.000000f, 0.000000f ); - - } - - void onUpdate( InstanceContent& instance, uint32_t currTime ) override - { - - } - - void onEnterTerritory( InstanceContent& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, - uint16_t param2 ) override - { - - } - -}; - -EXPOSE_SCRIPT( MatsubaMayhem ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/MyFirstMudra.cpp b/src/scripts/instances/questbattles/MyFirstMudra.cpp new file mode 100644 index 00000000..d7b042f9 --- /dev/null +++ b/src/scripts/instances/questbattles/MyFirstMudra.cpp @@ -0,0 +1,55 @@ +#include +#include + +using namespace Sapphire; + +class MyFirstMudra : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_ENPC_01 = 5032993; + static constexpr auto INIT_ENPC_02 = 5032994; + static constexpr auto INIT_POP_OBORO_01 = 5032995; + static constexpr auto INIT_POP_ONIBI_1_01 = 5032996; + static constexpr auto INIT_POP_ONIBI_1_02 = 5032997; + static constexpr auto INIT_POP_ONIBI_1_03 = 5032998; + static constexpr auto INIT_POP_ONIBI_1_04 = 5032999; + static constexpr auto INIT_POP_ONIBI_1_05 = 5033000; + static constexpr auto INIT_POP_ONIBI_1_06 = 5033001; + static constexpr auto INIT_POP_TOAD_01 = 5033011; + static constexpr auto INIT_POP_ONIBI_2_01 = 5033002; + static constexpr auto INIT_POP_ONIBI_2_02 = 5033003; + static constexpr auto INIT_POP_ONIBI_2_03 = 5033004; + static constexpr auto INIT_POP_ONIBI_2_04 = 5033005; + static constexpr auto INIT_POP_ONIBI_2_05 = 5033006; + static constexpr auto INIT_POP_ONIBI_2_06 = 5033007; + static constexpr auto INIT_POP_ONIBI_3_01 = 5033008; + static constexpr auto INIT_POP_ONIBI_3_02 = 5033009; + static constexpr auto INIT_POP_ONIBI_3_03 = 5033010; + static constexpr auto PC_ACTION_FUUMA = 2265; + static constexpr auto QIB_YELL_01 = 2346; + +public: + MyFirstMudra() : Sapphire::ScriptAPI::QuestBattleScript( 96 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2009569, 0, 4, { 763.213318f, 9.000000f, 358.016998f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_1", 2009570, 0, 4, { 748.506775f, 9.000000f, 520.002930f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( MyFirstMudra ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/Naadam.cpp b/src/scripts/instances/questbattles/Naadam.cpp deleted file mode 100644 index 0ea4ae01..00000000 --- a/src/scripts/instances/questbattles/Naadam.cpp +++ /dev/null @@ -1,45 +0,0 @@ -#include -#include - -using namespace Sapphire; - -class Naadam : - public Sapphire::ScriptAPI::InstanceContentScript -{ -public: - Naadam() : - Sapphire::ScriptAPI::InstanceContentScript( 5008 ) - { } - - void onInit( InstanceContent& instance ) override - { - instance.registerEObj( "unknown_0", 2008290, 6894789, 4, { 375.272888f, -4.893838f, 290.605011f }, 1.000000f, 0.000000f ); - instance.registerEObj( "Yol", 2008330, 0, 4, { 466.995514f, 21.157949f, -328.188995f }, 1.000000f, 0.000000f ); - instance.registerEObj( "Ovoo", 2008289, 6872570, 4, { 354.000000f, -0.790344f, 296.500000f }, 0.991760f, 0.000048f ); - // States -> land_def (id: 3) land_def_anim (id: 4) land_on (id: 5) land_on_anim (id: 6) land_on_omen (id: 7) land_on_omen (id: 8) land_off (id: 19) land_off_anim (id: 20) - instance.registerEObj( "unknown_1", 2004967, 0, 4, { -187.899506f, 1.653982f, 760.298279f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgbg_e3f3_q1_gmc02", 2007457, 7653044, 4, { -223.010605f, 3.178310f, 519.218811f }, 0.991760f, 0.000048f ); - // States -> smto_on (id: 19) smto_c_on (id: 3) smto_off (id: 1) smto_off_anim (id: 2) smto_c_off (id: 4) smto_fdout (id: 18) - instance.registerEObj( "sgvf_w_lvd_b1472", 2007457, 7653055, 4, { -186.572403f, 4.189117f, 532.602173f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgvf_w_lvd_b1472_1", 2007457, 7653056, 4, { -186.602600f, 6.933841f, 568.871582f }, 0.991760f, 0.000048f ); - instance.registerEObj( "sgvf_w_lvd_b1199", 2007457, 7669017, 4, { -186.572403f, 5.921182f, 550.737427f }, 1.000000f, 0.000000f ); - // States -> circle_off (id: 3) circle_off (id: 4) circle_on (id: 5) circle_on (id: 6) - instance.registerEObj( "sgvf_w_lvd_b1199_1", 2007457, 7632420, 4, { -223.165497f, 2.660000f, 519.000000f }, 1.000000f, 0.000000f ); - // States -> circle_off (id: 3) circle_off (id: 4) circle_on (id: 5) circle_on (id: 6) - - } - - void onUpdate( InstanceContent& instance, uint32_t currTime ) override - { - - } - - void onEnterTerritory( InstanceContent& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, - uint16_t param2 ) override - { - - } - -}; - -EXPOSE_SCRIPT( Naadam ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/Nightkin.cpp b/src/scripts/instances/questbattles/Nightkin.cpp new file mode 100644 index 00000000..5a8fbaa7 --- /dev/null +++ b/src/scripts/instances/questbattles/Nightkin.cpp @@ -0,0 +1,133 @@ +#include +#include + +using namespace Sapphire; + +class Nightkin : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto P_BNPC_SIRUN_01 = 6828450; + static constexpr auto BNPC_BOSS = 6828480; + static constexpr auto EOBJ_BOOKS_01 = 6828550; + static constexpr auto EOBJ_BOOKS_02 = 6828551; + static constexpr auto EOBJ_BOOKS_03 = 6828552; + static constexpr auto EOBJ_BOOKS_04 = 6828553; + static constexpr auto EOBJ_BOOKS_05 = 6828554; + static constexpr auto EOBJ_BOOKS_06 = 6828555; + static constexpr auto EOBJ_DOOR_01 = 6829006; + static constexpr auto EOBJ_DOOR_02 = 6840287; + static constexpr auto BGM_BOSSBATTLE = 309; + static constexpr auto EVENT_ACTION_01 = 21; + static constexpr auto LOGMESSAGE_BOOK_NOT_RELATED = 5349; + static constexpr auto EOBJ_SMN_GIMMICK_01 = 6935381; + static constexpr auto EOBJ_SMN_GIMMICK_02 = 6935530; + static constexpr auto EOBJ_SMN_GIMMICK_03 = 6937457; + static constexpr auto EOBJ_SMN_GIMMICK_04 = 6937458; + static constexpr auto EOBJ_SMN_GIMMICK_05 = 6937459; + static constexpr auto EOBJ_SMN_GIMMICK_06 = 6937460; + static constexpr auto BNPC_BOSSADD_WAVE1_01 = 6935533; + static constexpr auto BNPC_BOSSADD_WAVE1_02 = 6935532; + static constexpr auto BNPC_BOSSADD_WAVE1_03 = 6937468; + static constexpr auto BNPC_BOSSADD_WAVE1_04 = 6937469; + static constexpr auto BNPC_BOSSADD_WAVE1_05 = 6937470; + static constexpr auto BNPC_BOSSADD_WAVE1_06 = 6937472; + static constexpr auto PR_SMN_GIMMICK_01 = 6935561; + static constexpr auto PR_SMN_GIMMICK_02 = 6935562; + static constexpr auto PR_SMN_GIMMICK_03 = 6937473; + static constexpr auto PR_SMN_GIMMICK_04 = 6937474; + static constexpr auto PR_SMN_GIMMICK_05 = 6937475; + static constexpr auto PR_SMN_GIMMICK_06 = 6937476; + static constexpr auto BNPC_SMN_GIMMICK_TOUMEI_01 = 6935578; + static constexpr auto BNPC_SMN_GIMMICK_TOUMEI_02 = 6935579; + static constexpr auto BNPC_SMN_GIMMICK_TOUMEI_03 = 6937462; + static constexpr auto BNPC_SMN_GIMMICK_TOUMEI_04 = 6937465; + static constexpr auto BNPC_SMN_GIMMICK_TOUMEI_05 = 6937466; + static constexpr auto BNPC_SMN_GIMMICK_TOUMEI_06 = 6937467; + static constexpr auto PR_BATTLE_CORE = 6935784; + static constexpr auto ACTION_SCRIPT_TRIGGER = 3269; + static constexpr auto ACTION_SCRIPT_TRIGGER_B = 4777; + static constexpr auto ACTION_SCRIPT_TRIGGER_JIBAKU = 4731; + static constexpr auto ACTION_BOSS_SUMMON = 9196; + static constexpr auto BNPC_TRASH1_01 = 6937505; + static constexpr auto BNPC_TRASH1_02 = 6937506; + static constexpr auto BNPC_TRASH2_01 = 6937507; + static constexpr auto BNPC_TRASH2_02 = 6937508; + static constexpr auto BNPC_TRASH2_03 = 6937509; + static constexpr auto BNPC_TRASH2_04 = 6937510; + static constexpr auto BNPC_TRASH3_01 = 6937511; + static constexpr auto BNPC_TRASH3_02 = 6937512; + static constexpr auto BNPC_TRASH3_03 = 6937513; + static constexpr auto BNPC_TRASH4_01 = 6937514; + static constexpr auto BNPC_TRASH4_02 = 6937516; + static constexpr auto BNPC_TRASH4_03 = 6937517; + static constexpr auto ER_BOSS_ROOM_JUDGE = 6937544; + static constexpr auto LOCKON_VOID_SPARK = 23; + static constexpr auto ACTION_VOID_SPARK = 8216; + static constexpr auto BNPC_DARKBALL = 6938101; + static constexpr auto BGM_DUNGEON = 303; + static constexpr auto ACTION_DARKBALL_SPARK = 8261; + static constexpr auto QIB_YELL_01 = 5429; + +public: + Nightkin() : Sapphire::ScriptAPI::QuestBattleScript( 166 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2002735, 0, 4, { 353.541412f, -39.250000f, -59.553089f }, 1.000000f, -1.570451f ); + instance.registerEObj( "sgvf_w_lvd_b0118", 2002872, 5419624, 4, { 350.673187f, -39.000000f, -60.588070f }, 1.000000f, 0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "OnGarleanHierarchyVolume1", 2005891, 0, 4, { -199.611694f, 6.900000f, -56.354649f }, 1.000000f, -0.298927f ); + instance.registerEObj( "OnGarleanHierarchyVolume2", 2005892, 0, 4, { -72.116417f, 0.900000f, -9.577726f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Essences&Permutations", 2005893, 0, 4, { 54.309052f, -8.099999f, 62.262531f }, 1.000000f, 0.000000f ); + instance.registerEObj( "OvertheHorizon", 2005894, 0, 4, { 113.656601f, -8.153534f, 83.276863f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Leatherbounddiary", 2005895, 0, 4, { 253.342499f, -24.000000f, -16.578369f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Leatherbounddiary_1", 2005896, 0, 4, { 252.532898f, -40.000000f, -78.517921f }, 1.000000f, 0.000000f ); + instance.registerEObj( "sgvf_w_lvd_b0118_1", 2002872, 5419606, 4, { -22.327221f, 0.000000f, -0.318492f }, 1.000000f, 0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "sgvf_w_lvd_b0118_2", 2005019, 5419607, 4, { 22.309731f, 0.000000f, -0.124082f }, 1.000000f, 0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "unknown_1", 2002735, 0, 4, { -20.486000f, 0.000000f, 0.109200f }, 1.000000f, -1.570451f ); + instance.registerEObj( "unknown_2", 2005316, 5774736, 4, { -11.221270f, 0.000000f, -6.534676f }, 1.000000f, 0.000000f ); + instance.registerEObj( "sgpl_d2d3_dbook01", 2005328, 5815254, 4, { -10.516900f, 0.000000f, -1.875240f }, 1.000000f, 0.000000f ); + // States -> step_all_off (id: 15) step1_all_on (id: 16) step1_side_off (id: 17) step2_all_on (id: 18) step2_side_off (id: 19) step3_all_on (id: 20) step3_side_off (id: 21) + instance.registerEObj( "sgvf_w_lvd_b0118_3", 2002872, 5419612, 4, { 178.337997f, -8.000000f, 53.739559f }, 1.000000f, 0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "sgvf_w_lvd_b0118_4", 2005020, 5419614, 4, { 179.630203f, -8.000000f, 0.354116f }, 1.000000f, 0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "unknown_3", 2002735, 0, 4, { 177.873505f, -8.000000f, 52.121300f }, 1.000000f, 0.000000f ); + instance.registerEObj( "sgbg_d2d3_a0_gmc17", 2005354, 5852274, 4, { 177.539993f, -7.995000f, 32.977421f }, 1.000000f, 0.000000f ); + // States -> bk03_def (id: 5) bk03_on (id: 6) bk03_on_anim (id: 8) bk03_brt (id: 11) bk03_brt_anim (id: 12) bk03_brt_ofanim (id: 14) bk03_dead (id: 15) bk03_dead_anim (id: 16) + instance.registerEObj( "unknown_4", 2004942, 5033535, 4, { -316.612915f, -0.015320f, 0.045776f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_5", 2004949, 5033537, 4, { -173.408096f, 12.000000f, -33.362572f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_6", 2004956, 5033536, 4, { -48.355900f, -0.015320f, 0.747620f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_7", 2004957, 5033538, 4, { 43.900150f, -0.015320f, -1.083435f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_8", 2004958, 5004619, 4, { 82.139282f, -8.011047f, 69.748901f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_9", 2004959, 5004620, 4, { 117.387604f, -9.018127f, 69.291138f }, 0.991760f, 0.000048f ); + instance.registerEObj( "sgbg_d2d3_a0_gmc04", 2004960, 5336977, 4, { 138.888000f, -9.018127f, 87.533859f }, 0.991760f, 0.000048f ); + // States -> book_def (id: 3) book_off (id: 4) book_off_anim (id: 5) + instance.registerEObj( "unknown_10", 2004962, 5033543, 4, { 156.328598f, -9.018127f, 95.628304f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_11", 2004963, 5004621, 4, { 176.257004f, -8.011047f, -9.414856f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_12", 2004964, 5773506, 4, { 297.779785f, -24.002501f, -43.308731f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_13", 2004965, 5004586, 4, { 325.666107f, -39.017399f, -59.098209f }, 0.991760f, 0.000048f ); + instance.registerEObj( "Entrance", 2000182, 5330520, 5, { -387.057098f, -0.015320f, 4.592957f }, 0.991760f, 0.000048f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "Shortcut", 2000700, 0, 4, { -381.085205f, -0.015320f, 6.094601f }, 0.991760f, 0.000048f ); + instance.registerEObj( "Exit", 2000139, 0, 4, { 393.697998f, -39.047909f, -59.586491f }, 0.991760f, 0.000048f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( Nightkin ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/NinjaAssassin.cpp b/src/scripts/instances/questbattles/NinjaAssassin.cpp new file mode 100644 index 00000000..12e09951 --- /dev/null +++ b/src/scripts/instances/questbattles/NinjaAssassin.cpp @@ -0,0 +1,50 @@ +#include +#include + +using namespace Sapphire; + +class NinjaAssassin : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_OBORO_01 = 5886273; + static constexpr auto BNPC_P1_YAMININ_01 = 5886266; + static constexpr auto BNPC_P1_NIN_01 = 5886267; + static constexpr auto BNPC_P1_NIN_02 = 5886268; + static constexpr auto BNPC_P2_SUMMON_01 = 5886270; + static constexpr auto BNPC_P2_SUMMON_02 = 5886272; + static constexpr auto BNPC_P2_KOUMORI_01 = 5887414; + static constexpr auto BNPC_P2_KOUMORI_02 = 5887415; + static constexpr auto PR_P2_MOVE_TARGET_YAMININ_01 = 5891769; + static constexpr auto EOBJ_MAKIBISHI = 5891770; + static constexpr auto STATUS_MAKIBISHI_DAMAGE = 1221; + static constexpr auto DEF_ACTION_MAKIBISHI = 3196; + static constexpr auto POPTIME_KOUMORI = 30; + static constexpr auto LCUT_ACTOR0 = 1013849; + static constexpr auto LCUT_ACTOR1 = 1014669; + static constexpr auto LCUT_ACTOR2 = 1014670; + static constexpr auto LCUT_POS_ACTOR0 = 5917728; + static constexpr auto LCUT_BGM0 = 107; + +public: + NinjaAssassin() : Sapphire::ScriptAPI::QuestBattleScript( 124 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( NinjaAssassin ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/NinjaBathin.cpp b/src/scripts/instances/questbattles/NinjaBathin.cpp new file mode 100644 index 00000000..07d1e77d --- /dev/null +++ b/src/scripts/instances/questbattles/NinjaBathin.cpp @@ -0,0 +1,79 @@ +#include +#include + +using namespace Sapphire; + +class NinjaBathin : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_P1_GENIN_01 = 5126277; + static constexpr auto BNPC_P1_GENIN_02 = 5126278; + static constexpr auto BNPC_P1_GENIN_03 = 5126282; + static constexpr auto BNPC_P1_GENIN_04 = 5126283; + static constexpr auto BNPC_P1_GENIN_05 = 5126286; + static constexpr auto BNPC_P1_GENIN_06 = 5126289; + static constexpr auto BNPC_P1_GENIN_07 = 5126291; + static constexpr auto BNPC_P1_KOUMORI_01 = 5126325; + static constexpr auto BNPC_P1_KOUMORI_02 = 5126327; + static constexpr auto BNPC_P1_CHUNIN_01 = 5126369; + static constexpr auto BNPC_P1_CHUNIN_02 = 5126370; + static constexpr auto BNPC_P1_KARASU_01 = 5126373; + static constexpr auto BNPC_P2_OBORO_01 = 5126473; + static constexpr auto BNPC_P2_TSUBAME_01 = 5126474; + static constexpr auto ER_P2_START_RECT = 5126241; + static constexpr auto BNPC_P3_CHUNIN_04 = 5126481; + static constexpr auto BNPC_P3_CHUNIN_05 = 5126482; + static constexpr auto PR_P3_MOVE_TARGET_KARASU_01 = 5126526; + static constexpr auto BNPC_P4_CHUNIN_06 = 5127359; + static constexpr auto BNPC_P4_CHUNIN_07 = 5127360; + static constexpr auto BNPC_P4_CHUNIN_08 = 5127361; + static constexpr auto PR_P4_MOVE_TARGET_KARASU_01 = 5127368; + static constexpr auto YELL_P2_KARASU_01 = 2353; + static constexpr auto BGM_LASTHALF = 117; + static constexpr auto EOBJ_MAKIBISHI = 5326559; + static constexpr auto STATUS_MAKIBISHI_DAMAGE = 1221; + static constexpr auto DEF_ACTION_MAKIBISHI = 3196; + static constexpr auto LOC_ENPC_CHUNIN_01 = 1010697; + static constexpr auto LOC_ENPC_KARASU_01 = 1010560; + static constexpr auto LOC_ENPC_OBORO_01 = 1010597; + static constexpr auto LOC_ENPC_TSUBAME_01 = 1010764; + static constexpr auto LOC_ENPC_GENIN_01 = 1010700; + static constexpr auto LOC_ENPC_GENIN_02 = 1010701; + static constexpr auto LOC_MARKER_01 = 5375029; + static constexpr auto LOC_MARKER_02 = 5372783; + static constexpr auto LOC_ENPC_GEKKAI_01 = 1010559; + static constexpr auto LOC_MOTION0 = 1056; + static constexpr auto LOC_BGM0 = 130; + static constexpr auto LOC_ENPC_KOUMORI_01 = 1010561; + static constexpr auto STATUS_STEALTH = 1198; + static constexpr auto LOC_ENPC_OBORO_02 = 1010713; + static constexpr auto LOC_ENPC_TSUBAME_02 = 1010598; + static constexpr auto BNPC_P1_KOUMORI_03 = 5405169; + static constexpr auto BNPC_P1_GENIN_08 = 5405171; + +public: + NinjaBathin() : Sapphire::ScriptAPI::QuestBattleScript( 98 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "Entrance", 2000182, 6228959, 5, { 457.583801f, 5.680784f, 280.512787f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "unknown_0", 2000608, 2807920, 4, { -95.322441f, -25.054260f, 61.518002f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( NinjaBathin ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/NotoriousBiggs.cpp b/src/scripts/instances/questbattles/NotoriousBiggs.cpp new file mode 100644 index 00000000..b78e7ba5 --- /dev/null +++ b/src/scripts/instances/questbattles/NotoriousBiggs.cpp @@ -0,0 +1,88 @@ +#include +#include + +using namespace Sapphire; + +class NotoriousBiggs : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_01 = 4264062; + static constexpr auto INIT_P_POP_02 = 4264069; + static constexpr auto INIT_P_POP_03 = 4264070; + static constexpr auto INIT_POP_1ST_01 = 4264130; + static constexpr auto INIT_POP_1ST_02 = 4264135; + static constexpr auto INIT_POP_1ST_03 = 4264138; + static constexpr auto INIT_POP_1ST_04 = 4264140; + static constexpr auto INIT_POP_2ST_01 = 4264377; + static constexpr auto INIT_POP_2ST_02 = 4264378; + static constexpr auto INIT_POP_2ST_03 = 4264380; + static constexpr auto INIT_POP_2ST_04 = 4264381; + static constexpr auto INIT_POP_2ST_05 = 4264382; + static constexpr auto INIT_POP_2ST_06 = 4264384; + static constexpr auto INIT_POP_3ST_01 = 4264403; + static constexpr auto INIT_POP_3ST_02 = 4264404; + static constexpr auto INIT_POP_3ST_03 = 4264406; + static constexpr auto INIT_POP_3ST_04 = 4264407; + static constexpr auto INIT_POP_3ST_05 = 4264408; + static constexpr auto INIT_POP_3ST_06 = 4264411; + static constexpr auto INIT_POP_3ST_07 = 4264412; + static constexpr auto POP_RANGE_ENEMY_MOVE_01 = 4268836; + static constexpr auto YELL_QIB_02 = 1530; + static constexpr auto LOC_ACTOR0 = 1003837; + static constexpr auto LOC_ACTOR1 = 1007628; + static constexpr auto LOC_ACTOR2 = 1007001; + static constexpr auto LOC_ACTOR3 = 1002275; + static constexpr auto LOC_ACTOR4 = 1003782; + static constexpr auto LOC_ACTOR5 = 1007622; + static constexpr auto LOC_ACTOR6 = 1007623; + static constexpr auto LOC_ACTOR7 = 1007624; + static constexpr auto LOC_MARKER_01 = 4323173; + static constexpr auto LOC_MARKER_02 = 4323176; + static constexpr auto LOC_MARKER_03 = 4323178; + static constexpr auto LOC_ACTION0 = 34; + static constexpr auto LOC_ACTION1 = 934; + static constexpr auto LOC_ACTION2 = 936; + static constexpr auto LOC_ACTION3 = 1005; + static constexpr auto LOC_BGM0 = 83; + static constexpr auto LOC_BGM1 = 113; + +public: + NotoriousBiggs() : Sapphire::ScriptAPI::QuestBattleScript( 62 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "sgbg_w_qic_001_04a", 2006993, 6235274, 4, { -35.822102f, 298.899994f, -205.263199f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_0", 2006952, 0, 4, { -35.712589f, 298.899994f, -204.878006f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Exit", 2000139, 0, 4, { 556.049377f, 348.102509f, -752.435730f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Entrance", 2000182, 4600289, 5, { 523.532471f, 348.223389f, -736.685730f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "unknown_1", 2002332, 0, 4, { 533.090881f, 348.691895f, -742.750916f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_2", 2002333, 0, 4, { 539.940430f, 348.836395f, -734.401489f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_3", 2000608, 3967803, 4, { 202.369598f, 257.761108f, 80.435272f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_4", 2000608, 3976993, 4, { 273.634705f, 254.600204f, 106.048500f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_5", 2000608, 3986797, 4, { 205.504898f, 246.188995f, 194.875702f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_6", 2000608, 3986798, 4, { 326.313385f, 239.193497f, 221.138901f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_7", 2000608, 2718481, 4, { 240.552307f, 302.769714f, -199.979996f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_8", 2000608, 4065433, 4, { 204.970001f, 302.119995f, -216.311600f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_9", 2000608, 2814617, 4, { 205.869995f, 302.219086f, -276.681396f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_10", 2000608, 2763112, 4, { -433.000000f, 211.007706f, -216.148605f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_11", 2000608, 4187649, 4, { -453.000000f, 211.000000f, -281.046600f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_12", 2000608, 4187961, 4, { -416.000000f, 210.788193f, -279.813812f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( NotoriousBiggs ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/NouveauRiche.cpp b/src/scripts/instances/questbattles/NouveauRiche.cpp new file mode 100644 index 00000000..c235db63 --- /dev/null +++ b/src/scripts/instances/questbattles/NouveauRiche.cpp @@ -0,0 +1,62 @@ +#include +#include + +using namespace Sapphire; + +class NouveauRiche : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_1_LNC_01 = 4293092; + static constexpr auto INIT_POP_1_LNC_02 = 4293093; + static constexpr auto INIT_POP_1_LNC_03 = 4293095; + static constexpr auto INIT_POP_1_KIK_01 = 4293096; + static constexpr auto INIT_P_POP_1_RED_LEADER = 4293097; + static constexpr auto INIT_P_POP_1_RED_LNC = 4293098; + static constexpr auto INIT_POP_2_EXC_LEADER_01 = 4293099; + static constexpr auto INIT_POP_2_LNC_01 = 4293109; + static constexpr auto INIT_POP_2_THM_01 = 4293110; + static constexpr auto INIT_POP_2_ARC_01 = 4293111; + static constexpr auto INIT_P_POP_2_ARC_01 = 4293125; + static constexpr auto INIT_P_POP_2_ARC_02 = 4293126; + static constexpr auto INIT_P_POP_2_ARC_03 = 4293127; + static constexpr auto POP_RANGE_DEPOP = 4295055; + static constexpr auto LOC_ACTOR1 = 1008111; + static constexpr auto LOC_ACTOR2 = 1007656; + static constexpr auto LOC_ACTOR3 = 1007658; + static constexpr auto LOC_ACTOR4 = 1007659; + static constexpr auto LOC_ACTOR5 = 1007655; + static constexpr auto LOC_ACTOR6 = 1007657; + static constexpr auto LOC_POS_ACTOR0 = 4310117; + static constexpr auto LOC_POS_ACTOR1 = 4310122; + static constexpr auto LOC_POS_ACTOR2 = 4310125; + static constexpr auto LOC_POS_ACTOR3 = 4310127; + static constexpr auto LOC_ACTION1 = 961; + static constexpr auto BGM_BATTLE = 39; + static constexpr auto LOC_BGM1 = 117; + +public: + NouveauRiche() : Sapphire::ScriptAPI::QuestBattleScript( 13 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "Entrance", 2000182, 5021407, 5, { 623.000000f, 23.872311f, 94.505638f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "Exit", 2000139, 0, 4, { 623.000000f, 23.656260f, 61.956181f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( NouveauRiche ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/OhCaptainMyCaptain.cpp b/src/scripts/instances/questbattles/OhCaptainMyCaptain.cpp new file mode 100644 index 00000000..f7da8a8b --- /dev/null +++ b/src/scripts/instances/questbattles/OhCaptainMyCaptain.cpp @@ -0,0 +1,64 @@ +#include +#include + +using namespace Sapphire; + +class OhCaptainMyCaptain : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_01 = 4093947; + static constexpr auto INIT_POP_01 = 4093955; + static constexpr auto INIT_POP_02 = 4093957; + static constexpr auto INIT_POP_03 = 4093961; + static constexpr auto INIT_POP_04 = 4093962; + static constexpr auto ACTOR20 = 1002058; + static constexpr auto LOC_MARKER_01 = 4011232; + static constexpr auto LOC_MARKER_02 = 4011233; + static constexpr auto LOC_POS_CAM1 = 4011264; + static constexpr auto LOC_MARKER_03 = 4011557; + static constexpr auto LOC_MARKER_04 = 4011562; + static constexpr auto ACTOR30 = 1004350; + static constexpr auto LOC_MARKER_05 = 4012536; + static constexpr auto LOC_MARKER_06 = 4012537; + static constexpr auto LOC_MARKER_07 = 4012538; + static constexpr auto LOC_MARKER_08 = 4012539; + static constexpr auto ACTOR40 = 1001605; + static constexpr auto LOC_ACTION1 = 961; + static constexpr auto ACTOR50 = 1006164; + static constexpr auto ACTOR60 = 1003810; + static constexpr auto LOC_ACTION2 = 607; + static constexpr auto LOC_ACTION3 = 617; + static constexpr auto LOC_ACTION4 = 605; + static constexpr auto LOC_MARKER_09 = 4096701; + static constexpr auto LOC_MARKER_10 = 4096704; + static constexpr auto DEF_ACTION_WS_CRITICAL_LANCER = 477; + static constexpr auto LOC_ACTION5 = 618; + static constexpr auto LOC_ACTION6 = 776; + +public: + OhCaptainMyCaptain() : Sapphire::ScriptAPI::QuestBattleScript( 39 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "Exit", 2000605, 0, 4, { -715.942383f, 69.420113f, -830.370300f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_0", 2000606, 3861081, 4, { -670.462280f, 63.293751f, -801.510986f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Entrance", 2000604, 4262798, 5, { -677.634888f, 64.116386f, -803.174927f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( OhCaptainMyCaptain ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/OnHolyGround.cpp b/src/scripts/instances/questbattles/OnHolyGround.cpp new file mode 100644 index 00000000..978559a9 --- /dev/null +++ b/src/scripts/instances/questbattles/OnHolyGround.cpp @@ -0,0 +1,46 @@ +#include +#include + +using namespace Sapphire; + +class OnHolyGround : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_01 = 4004498; + static constexpr auto INIT_POP_01 = 4004494; + static constexpr auto INIT_POP_02 = 4004495; + static constexpr auto INIT_POP_BOSS = 4004491; + static constexpr auto LOC_POS_ACTOR0 = 4011257; + static constexpr auto LOC_POS_ACTOR1 = 4011258; + static constexpr auto LOC_POS_ACTOR2 = 4011259; + static constexpr auto LOC_ACTOR0 = 1004301; + static constexpr auto LOC_ACTOR1 = 1004306; + static constexpr auto LOC_FACE0 = 604; + static constexpr auto LOC_FACE1 = 605; + static constexpr auto LOC_FACE2 = 617; + static constexpr auto BNPC_NAME_01 = 690; + static constexpr auto INIT_ENPC_POP_01 = 4065824; + +public: + OnHolyGround() : Sapphire::ScriptAPI::QuestBattleScript( 22 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( OnHolyGround ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/OnceUponaTimeinDoma.cpp b/src/scripts/instances/questbattles/OnceUponaTimeinDoma.cpp new file mode 100644 index 00000000..74aeab1a --- /dev/null +++ b/src/scripts/instances/questbattles/OnceUponaTimeinDoma.cpp @@ -0,0 +1,71 @@ +#include +#include + +using namespace Sapphire; + +class OnceUponaTimeinDoma : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_OBORO_01 = 5045544; + static constexpr auto INIT_POP_KARASU_1_01 = 5045545; + static constexpr auto INIT_POP_GENIN_2_01 = 5045560; + static constexpr auto INIT_POP_GENIN_2_02 = 5045689; + static constexpr auto INIT_POP_GENIN_2_03 = 5045690; + static constexpr auto INIT_POP_GENIN_2_04 = 5045693; + static constexpr auto INIT_POP_GENIN_2_05 = 5045694; + static constexpr auto INIT_POP_GENIN_2_06 = 5045695; + static constexpr auto INIT_POP_GENIN_3_01 = 5045698; + static constexpr auto INIT_POP_GENIN_3_02 = 5045699; + static constexpr auto INIT_POP_GENIN_3_03 = 5045700; + static constexpr auto INIT_POP_GENIN_3_04 = 5045702; + static constexpr auto INIT_POP_GENIN_3_05 = 5045703; + static constexpr auto INIT_POP_GENIN_3_06 = 5045704; + static constexpr auto INIT_POP_GENIN_3_07 = 5045706; + static constexpr auto INIT_POP_GENIN_3_08 = 5045707; + static constexpr auto INIT_POP_GENIN_3_09 = 5045708; + static constexpr auto INIT_POP_CHUNIN_4_01 = 5045717; + static constexpr auto POP_RANGE_DEPOP = 5045776; + static constexpr auto EOBJ_MAKIBISHI = 5143397; + static constexpr auto STATUS_MAKIBISHI_DAMAGE = 1221; + static constexpr auto DEF_ACTION_MAKIBISHI = 3196; + static constexpr auto LOC_ACTOR0 = 1010597; + static constexpr auto LOC_ACTOR1 = 1010560; + static constexpr auto LOC_POS_ACTOR0 = 5375030; + static constexpr auto LOC_MOTION0 = 1063; + static constexpr auto LOC_MOTION1 = 617; + static constexpr auto LOC_MOTION2 = 1059; + static constexpr auto LOC_BGM0 = 80; + static constexpr auto LOC_BGM1 = 78; + static constexpr auto BNPC_SHUKUCHI_TARGET_01 = 5045761; + static constexpr auto BNPC_SHUKUCHI_TARGET_02 = 5142531; + static constexpr auto BNPC_SHUKUCHI_TARGET_03 = 5142532; + static constexpr auto BNPC_SHUKUCHI_TARGET_04 = 5142533; + static constexpr auto BNPC_SHUKUCHI_TARGET_05 = 5142534; + static constexpr auto BNPC_SHUKUCHI_TARGET_06 = 5142535; + static constexpr auto BNPC_SHUKUCHI_TARGET_07 = 5142536; + static constexpr auto BNPC_SHUKUCHI_TARGET_08 = 5142537; + static constexpr auto BNPC_SHUKUCHI_TARGET_09 = 5142538; + +public: + OnceUponaTimeinDoma() : Sapphire::ScriptAPI::QuestBattleScript( 97 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( OnceUponaTimeinDoma ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/OneAutumnsSecret.cpp b/src/scripts/instances/questbattles/OneAutumnsSecret.cpp new file mode 100644 index 00000000..86ea7c76 --- /dev/null +++ b/src/scripts/instances/questbattles/OneAutumnsSecret.cpp @@ -0,0 +1,64 @@ +#include +#include + +using namespace Sapphire; + +class OneAutumnsSecret : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto P_BNPC_COMPANION_SANSON = 6873346; + static constexpr auto P_BNPC_COMPANION_GUYDELOT = 6873347; + static constexpr auto BNPC_ENEMY_NOURVAL = 6873349; + static constexpr auto BNPC_ENEMY_BUKA_SPEAR_01_01 = 6873351; + static constexpr auto BNPC_ENEMY_BUKA_BOW_01_01 = 6873352; + static constexpr auto BNPC_ENEMY_BUKA_SPEAR_02_01 = 6873353; + static constexpr auto BNPC_ENEMY_BUKA_SPEAR_02_02 = 6894649; + static constexpr auto BNPC_ENEMY_BUKA_BOW_02_01 = 6894652; + static constexpr auto BNPC_ENEMY_BUKA_BOW_02_02 = 6894665; + static constexpr auto BNPC_ENEMY_BUKA_SPEAR_03_01 = 6894671; + static constexpr auto BNPC_ENEMY_BUKA_SPEAR_03_02 = 6894673; + static constexpr auto BNPC_ENEMY_BUKA_SPEAR_03_03 = 6894677; + static constexpr auto BNPC_ENEMY_BUKA_BOW_03_01 = 6894682; + static constexpr auto BNPC_ENEMY_BUKA_BOW_03_02 = 6894687; + static constexpr auto BNPC_ENEMY_BUKA_BOW_03_03 = 6894689; + static constexpr auto BNPC_ENEMY_BUKA_BOW_03_04 = 6894691; + static constexpr auto PR_MOVE_NOURVAL = 6894697; + static constexpr auto PR_MOVE_GUYDELOT_START = 6895519; + static constexpr auto PR_MOVE_SANSON_START = 6895526; + static constexpr auto YELL_QIB_NOURVAL_START = 4845; + static constexpr auto YELL_QIB_BUKA_START = 4846; + static constexpr auto DEF_ACTION_EARTH_WAVE = 8735; + static constexpr auto DEF_ACTION_EARTH_WAVE_TOUMEI_END = 8734; + static constexpr auto BNPC_TOUMEI_ACTION_NOURVAL = 6901397; + static constexpr auto BNPC_TOUMEI_SCAPEGOAT = 6906140; + static constexpr auto BEHAVIOR_ACTION_01 = 30073; + static constexpr auto BEHAVIOR_ACTION_02 = 30082; + static constexpr auto BEHAVIOR_ACTION_03 = 30940; + static constexpr auto BEHAVIOR_ACTION_04 = 30943; + static constexpr auto BEHAVIOR_ACTION_05 = 30944; + static constexpr auto BGM_NO_MUSIC = 1; + static constexpr auto BGM_JOB_SHIREN = 91; + +public: + OneAutumnsSecret() : Sapphire::ScriptAPI::QuestBattleScript( 174 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( OneAutumnsSecret ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/OneGolemtoRuleThemAll.cpp b/src/scripts/instances/questbattles/OneGolemtoRuleThemAll.cpp new file mode 100644 index 00000000..386d2d80 --- /dev/null +++ b/src/scripts/instances/questbattles/OneGolemtoRuleThemAll.cpp @@ -0,0 +1,84 @@ +#include +#include + +using namespace Sapphire; + +class OneGolemtoRuleThemAll : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_BOSS_01 = 6843467; + static constexpr auto P_BNPC_ZHAI_01 = 6845074; + static constexpr auto P_BNPC_SHATO_01 = 6845075; + static constexpr auto BNPC_GOLEM_01 = 6880074; + static constexpr auto BNPC_GOLEM_C_01 = 6880075; + static constexpr auto BNPC_METEOR_01 = 6880082; + static constexpr auto BNPC_METEOR_02 = 6880083; + static constexpr auto BNPC_METEOR_03 = 6880084; + static constexpr auto STATUS_ATK_UP_STACK_INF = 2979; + static constexpr auto CHANNELING_DARK = 14; + static constexpr auto ACTION_METEOR_INPACT = 8561; + static constexpr auto ACTION_DRAIN = 8560; + static constexpr auto ACTION_METEOR_DEAD = 9017; + static constexpr auto LOC_ACTOR0 = 1013068; + static constexpr auto LOC_ACTOR1 = 1020698; + static constexpr auto LOC_ACTOR2 = 1021902; + static constexpr auto ACTION_TIMELINE_EVENT_LINK = 1002; + static constexpr auto BGM_LAST_JOB = 36; + static constexpr auto BGM_JOB_SHIREN = 91; + static constexpr auto LOC_WEATHER = 2; + static constexpr auto BNPC_METEOR_GOLEM_01 = 6987240; + static constexpr auto BNPC_METEOR_GOLEM_02 = 6987241; + static constexpr auto ACTION_METEOR_SUMMON_G = 9443; + static constexpr auto BNPC_TOUMEI_SCAPEGOAT = 7011425; + +public: + OneGolemtoRuleThemAll() : Sapphire::ScriptAPI::QuestBattleScript( 168 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2002735, 0, 4, { -142.306107f, 11.741690f, 188.300797f }, 1.000000f, 0.660768f ); + instance.registerEObj( "sgpl_w_lvd_b0118_col_char", 2002872, 5777776, 4, { -146.759598f, 9.382987f, 191.177994f }, 1.000000f, 0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "sgpl_w_lvd_b0118_col_char_1", 2002872, 5777778, 4, { -126.024696f, 11.736150f, 144.580200f }, 1.000000f, 0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "unknown_1", 2002735, 0, 4, { 165.208603f, 137.478806f, -62.228100f }, 1.000000f, -0.155188f ); + instance.registerEObj( "sgpl_w_lvd_b0118_col_char_2", 2002872, 5777792, 4, { 166.178696f, 137.607697f, -62.706631f }, 1.000000f, 0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "sgpl_w_lvd_b0118_wide", 2002872, 5777793, 4, { 180.090302f, 138.237793f, -115.812103f }, 1.000000f, 0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "unknown_2", 2002735, 0, 4, { -112.464798f, 348.165985f, -368.176514f }, 1.000000f, 0.335726f ); + instance.registerEObj( "sgpl_w_lvd_b0118_col_char_3", 2002872, 5777990, 4, { -112.426399f, 348.165985f, -371.392487f }, 1.000000f, 0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "sgpl_w_lvd_b0118_col_char_4", 2002872, 5777991, 4, { -89.965149f, 348.204498f, -416.112213f }, 1.000000f, 0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "Exit", 2000139, 0, 4, { -92.610641f, 348.164886f, -410.511993f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_3", 2005284, 5773453, 4, { -274.538086f, -4.016628f, 191.237701f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_4", 2005278, 5772621, 4, { -253.212296f, -2.894600f, 189.267303f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_5", 2005285, 5773460, 4, { -196.123306f, 3.106796f, 187.990906f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_6", 2005286, 5773461, 4, { -171.931305f, 2.815973f, 206.485794f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_7", 2005279, 5772623, 4, { -165.063995f, 4.074061f, 197.945007f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_8", 2005280, 5852453, 4, { 335.063385f, 114.335999f, -89.093300f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_9", 2005281, 5777403, 4, { 247.495102f, 126.954300f, -30.577419f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_10", 2005282, 5773504, 4, { -173.859894f, 324.834686f, -273.653503f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_11", 2005283, 5773503, 4, { -191.639694f, 329.656799f, -321.158691f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Entrance", 2000182, 5777084, 5, { -267.602997f, -18.376320f, 282.751190f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "Shortcut", 2000700, 0, 4, { -278.421387f, -17.669189f, 277.700714f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( OneGolemtoRuleThemAll ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/OneLifeforOneWorld.cpp b/src/scripts/instances/questbattles/OneLifeforOneWorld.cpp deleted file mode 100644 index 983599b0..00000000 --- a/src/scripts/instances/questbattles/OneLifeforOneWorld.cpp +++ /dev/null @@ -1,37 +0,0 @@ -#include -#include - -using namespace Sapphire; - -class OneLifeforOneWorld : - public Sapphire::ScriptAPI::InstanceContentScript -{ -public: - OneLifeforOneWorld() : - Sapphire::ScriptAPI::InstanceContentScript( 5003 ) - { } - - void onInit( InstanceContent& instance ) override - { - instance.registerEObj( "Entrance", 2000182, 4177874, 5, { -16.000000f, 0.000000f, 0.000000f }, 1.000000f, 0.000000f ); - // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) - instance.registerEObj( "Exit", 2000139, 0, 4, { 16.000000f, 0.000000f, 0.000000f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_0", 2007452, 0, 4, { 0.000000f, 0.000000f, 0.000000f }, 1.000000f, 0.000000f ); - instance.registerEObj( "BladeofLight", 2007454, 0, 4, { 0.000000f, 0.000000f, 11.300000f }, 0.991760f, 0.000048f ); - - } - - void onUpdate( InstanceContent& instance, uint32_t currTime ) override - { - - } - - void onEnterTerritory( InstanceContent& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, - uint16_t param2 ) override - { - - } - -}; - -EXPOSE_SCRIPT( OneLifeforOneWorld ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/OurAnswer.cpp b/src/scripts/instances/questbattles/OurAnswer.cpp new file mode 100644 index 00000000..9c6255a5 --- /dev/null +++ b/src/scripts/instances/questbattles/OurAnswer.cpp @@ -0,0 +1,88 @@ +#include +#include + +using namespace Sapphire; + +class OurAnswer : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_COMPANION_CNJ_01 = 5911851; + static constexpr auto BNPC_COMPANION_DRILLEMONT_01 = 5911852; + static constexpr auto BNPC_COMPANION_BUKA_01 = 5911853; + static constexpr auto BNPC_ENEMY_FRAY_01 = 5911855; + static constexpr auto BNPC_ENEMY_PHASE_1_DARK_SPRITE_01 = 5911861; + static constexpr auto BNPC_ENEMY_PHASE_1_DARK_SPRITE_02 = 5911862; + static constexpr auto BNPC_ENEMY_PHASE_2_DARK_SPRITE_01 = 5911864; + static constexpr auto BNPC_ENEMY_PHASE_2_DARK_SPRITE_02 = 5911865; + static constexpr auto BNPC_ENEMY_PHASE_3_DARK_SPRITE_01 = 5911866; + static constexpr auto BNPC_ENEMY_PHASE_3_DARK_SPRITE_02 = 5911867; + static constexpr auto BNPC_ENEMY_PHASE_3_DARK_SPRITE_03 = 5911868; + static constexpr auto BNPC_ENEMY_PHASE_3_DARK_SPRITE_04 = 5911869; + static constexpr auto BNPC_ENEMY_FRAY_THOUGHTS_BODY_01 = 5911870; + static constexpr auto POPTHOUGHTS_BODY_POINT_01 = 5911872; + static constexpr auto POPTHOUGHTS_BODY_POINT_02 = 5911873; + static constexpr auto POPTHOUGHTS_BODY_POINT_03 = 5911874; + static constexpr auto POPTHOUGHTS_BODY_POINT_04 = 5911875; + static constexpr auto POPTHOUGHTS_BODY_POINT_05 = 5911876; + static constexpr auto POPTHOUGHTS_BODY_POINT_06 = 5911877; + static constexpr auto POPTHOUGHTS_BODY_POINT_07 = 5911878; + static constexpr auto POPTHOUGHTS_BODY_POINT_08 = 5911916; + static constexpr auto BNPC_ENEMY_DARK_BALL_01 = 5911885; + static constexpr auto LOGMESSAGE_POP_THOUGHTS_BODY = 3272; + static constexpr auto CUT_SCENE_01 = 992; + static constexpr auto CUT_SCENE_02 = 993; + static constexpr auto BNPC_TOUMEI_ACTION_SELECTED_01 = 5919543; + static constexpr auto BNPC_TOUMEI_ACTION_SELECTED_02 = 5919547; + static constexpr auto BNPC_TOUMEI_ACTION_SELECTED_03 = 5919550; + static constexpr auto BNPC_TOUMEI_ACTION_SELECTED_04 = 5919553; + static constexpr auto BNPC_TOUMEI_ACTION_SELECTED_05 = 5919554; + static constexpr auto BNPC_TOUMEI_ACTION_SELECTED_06 = 5919555; + static constexpr auto BNPC_TOUMEI_ACTION_SELECTED_07 = 5919556; + static constexpr auto ACTION_GRAVITY_FORCE = 4837; + static constexpr auto BNPC_TOUMEI_FOLLOW_PLAYER = 5919749; + static constexpr auto STATUS_KNOCKDOWN = 625; + static constexpr auto ACTION_DARK_FIREGA = 3791; + static constexpr auto STATUS_PARAM_FIRE_DAMAGE = 1753; + static constexpr auto EOBJ_DAMAGE_AREA = 5920750; + static constexpr auto ACTION_SCRIPT_TRIGGER = 3269; + +public: + OurAnswer() : Sapphire::ScriptAPI::QuestBattleScript( 146 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "sgbg_w_qic_001_04a", 2006993, 6235274, 4, { -35.822102f, 298.899994f, -205.263199f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_0", 2006952, 0, 4, { -35.712589f, 298.899994f, -204.878006f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Exit", 2000139, 0, 4, { 556.049377f, 348.102509f, -752.435730f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Entrance", 2000182, 4600289, 5, { 523.532471f, 348.223389f, -736.685730f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "unknown_1", 2002332, 0, 4, { 533.090881f, 348.691895f, -742.750916f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_2", 2002333, 0, 4, { 539.940430f, 348.836395f, -734.401489f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_3", 2000608, 3967803, 4, { 202.369598f, 257.761108f, 80.435272f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_4", 2000608, 3976993, 4, { 273.634705f, 254.600204f, 106.048500f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_5", 2000608, 3986797, 4, { 205.504898f, 246.188995f, 194.875702f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_6", 2000608, 3986798, 4, { 326.313385f, 239.193497f, 221.138901f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_7", 2000608, 2718481, 4, { 240.552307f, 302.769714f, -199.979996f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_8", 2000608, 4065433, 4, { 204.970001f, 302.119995f, -216.311600f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_9", 2000608, 2814617, 4, { 205.869995f, 302.219086f, -276.681396f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_10", 2000608, 2763112, 4, { -433.000000f, 211.007706f, -216.148605f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_11", 2000608, 4187649, 4, { -453.000000f, 211.000000f, -281.046600f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_12", 2000608, 4187961, 4, { -416.000000f, 210.788193f, -279.813812f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( OurAnswer ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/OurCompromise.cpp b/src/scripts/instances/questbattles/OurCompromise.cpp deleted file mode 100644 index 97e61bc6..00000000 --- a/src/scripts/instances/questbattles/OurCompromise.cpp +++ /dev/null @@ -1,34 +0,0 @@ -#include -#include - -using namespace Sapphire; - -class OurCompromise : - public Sapphire::ScriptAPI::InstanceContentScript -{ -public: - OurCompromise() : - Sapphire::ScriptAPI::InstanceContentScript( 5020 ) - { } - - void onInit( InstanceContent& instance ) override - { - instance.registerEObj( "sgpl_evt_300_jobdark03", 2007457, 6941254, 4, { -613.766602f, 59.266399f, -460.085205f }, 1.000000f, 0.294434f ); - // States -> vfx_on (id: 49) vfx_off (id: 50) - - } - - void onUpdate( InstanceContent& instance, uint32_t currTime ) override - { - - } - - void onEnterTerritory( InstanceContent& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, - uint16_t param2 ) override - { - - } - -}; - -EXPOSE_SCRIPT( OurCompromise ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/OurUnsungHeroes.cpp b/src/scripts/instances/questbattles/OurUnsungHeroes.cpp deleted file mode 100644 index ec8f349b..00000000 --- a/src/scripts/instances/questbattles/OurUnsungHeroes.cpp +++ /dev/null @@ -1,78 +0,0 @@ -#include -#include - -using namespace Sapphire; - -class OurUnsungHeroes : - public Sapphire::ScriptAPI::InstanceContentScript -{ -public: - OurUnsungHeroes() : - Sapphire::ScriptAPI::InstanceContentScript( 5014 ) - { } - - void onInit( InstanceContent& instance ) override - { - instance.registerEObj( "sgvf_w_lvd_b0118", 2002872, 6159060, 4, { -199.881607f, 11.999990f, -280.139313f }, 0.991760f, 0.000048f ); - // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) - instance.registerEObj( "unknown_0", 2002735, 0, 4, { -200.009201f, 12.116690f, -280.037506f }, 0.991760f, -1.570451f ); - instance.registerEObj( "sgvf_w_lvd_b0118_1", 2003373, 6159063, 4, { -238.928894f, 12.100000f, -279.455688f }, 1.000000f, 0.000000f ); - // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) - instance.registerEObj( "unknown_1", 2006848, 0, 4, { -227.145905f, 11.978270f, -284.676086f }, 0.991760f, 0.000048f ); - instance.registerEObj( "sgvf_w_lvd_b0118_2", 2002872, 6158913, 4, { -262.326813f, -278.432312f, -241.982407f }, 1.000000f, -0.424392f ); - // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) - instance.registerEObj( "unknown_2", 2002735, 0, 4, { -261.926788f, -278.586792f, -242.680695f }, 0.800000f, -0.511830f ); - instance.registerEObj( "sgvf_w_lvd_b0118_3", 2006850, 6161174, 4, { -281.669495f, -278.783203f, -207.507401f }, 1.000000f, 0.000000f ); - // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) - instance.registerEObj( "unknown_3", 2006851, 0, 4, { -287.205292f, -278.675507f, -219.428604f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_4", 2006852, 0, 4, { -285.709991f, -278.675507f, -222.022598f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_5", 2006853, 0, 4, { -284.489288f, -278.675507f, -217.719604f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_6", 2006854, 0, 4, { -282.932892f, -278.675507f, -220.527298f }, 0.991760f, 0.000048f ); - instance.registerEObj( "sgvf_w_lvd_b0118_4", 2002872, 6177873, 4, { 236.391098f, -854.348206f, 388.999908f }, 0.991760f, -0.424392f ); - // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) - instance.registerEObj( "unknown_7", 2002735, 0, 4, { 236.928299f, -854.301025f, 388.437988f }, 0.991760f, -0.272621f ); - instance.registerEObj( "unknown_8", 2006855, 0, 4, { 245.654495f, -854.500000f, 408.186615f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_9", 2006856, 0, 4, { 245.602402f, -854.500000f, 408.203186f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_10", 2006857, 0, 4, { 217.570694f, -854.500000f, 414.970306f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_11", 2006867, 0, 4, { 238.696899f, -854.398376f, 400.472900f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_12", 2006868, 0, 4, { 225.070404f, -854.520508f, 402.559692f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_13", 2007000, 6217077, 4, { 230.880493f, -854.459717f, 414.889313f }, 1.000000f, 0.000000f ); - instance.registerEObj( "Guardianstatue", 2006976, 0, 4, { 231.118698f, -852.800171f, 414.090088f }, 1.000000f, 0.000000f ); - instance.registerEObj( "Guardianstatue_1", 2006977, 0, 4, { 231.113907f, -852.801514f, 414.085785f }, 1.000000f, 0.000000f ); - instance.registerEObj( "Guardianstatue_2", 2006978, 0, 4, { 231.101898f, -852.801514f, 414.089111f }, 1.000000f, 0.000000f ); - instance.registerEObj( "Entrance", 2000182, 6159123, 5, { 73.070312f, 100.000000f, -376.644592f }, 0.991760f, 0.000048f ); - // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) - instance.registerEObj( "Shortcut", 2000700, 0, 4, { 65.173607f, 100.000000f, -382.604614f }, 1.000000f, 0.000000f ); - instance.registerEObj( "Exit", 2000139, 0, 4, { 228.895599f, -854.546082f, 420.274109f }, 0.991760f, -0.919204f ); - instance.registerEObj( "unknown_14", 2006825, 6173434, 4, { -45.716091f, 57.999512f, -311.654205f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_15", 2006826, 6173447, 4, { -174.685303f, 6.271362f, -302.651215f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_16", 2006827, 6173458, 4, { -174.227493f, 6.973328f, -299.721588f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_17", 2006828, 6155704, 4, { -74.714241f, 58.247410f, -327.713287f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_18", 2006829, 6184879, 4, { -170.839996f, -252.613205f, -408.640503f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_19", 2006830, 6184881, 4, { -163.902496f, -272.319397f, -294.726501f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_20", 2006831, 6162191, 4, { -243.942093f, -280.660706f, -273.564789f }, 1.000000f, -0.000000f ); - instance.registerEObj( "Stoneoftransference", 2006834, 6173379, 4, { -295.032104f, -273.037506f, -185.082397f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_21", 2006832, 6177949, 4, { 166.001007f, -844.999817f, 265.365814f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_22", 2006833, 6177947, 4, { 226.690002f, -856.247681f, 262.675415f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_23", 2006835, 6202096, 4, { 255.720200f, -865.873474f, 319.853210f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgbg_w_qic_004_03a", 2002872, 6904891, 4, { 236.391205f, -854.348083f, 388.999908f }, 0.991760f, -0.424392f ); - instance.registerEObj( "unknown_24", 2002735, 0, 4, { 236.928299f, -854.301025f, 388.437988f }, 0.991760f, -0.272621f ); - instance.registerEObj( "sgbg_w_qic_004_03a_1", 2007457, 6904603, 4, { 249.195099f, -856.351624f, 343.526215f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_25", 2007457, 6217077, 4, { 233.497299f, -854.546021f, 414.179413f }, 1.000000f, 0.000000f ); - - } - - void onUpdate( InstanceContent& instance, uint32_t currTime ) override - { - - } - - void onEnterTerritory( InstanceContent& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, - uint16_t param2 ) override - { - - } - -}; - -EXPOSE_SCRIPT( OurUnsungHeroes ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/OvertheRails.cpp b/src/scripts/instances/questbattles/OvertheRails.cpp new file mode 100644 index 00000000..afb3b525 --- /dev/null +++ b/src/scripts/instances/questbattles/OvertheRails.cpp @@ -0,0 +1,63 @@ +#include +#include + +using namespace Sapphire; + +class OvertheRails : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_01 = 4256134; + static constexpr auto INIT_P_POP_02 = 4256136; + static constexpr auto INIT_P_POP_03 = 4256137; + static constexpr auto INIT_P_POP_PET = 4256201; + static constexpr auto INIT_POP_A_01 = 4256144; + static constexpr auto INIT_POP_A_02 = 4256145; + static constexpr auto INIT_POP_A_03 = 4256146; + static constexpr auto INIT_POP_B_01 = 4256162; + static constexpr auto INIT_POP_B_02 = 4256163; + static constexpr auto INIT_POP_B_03 = 4256164; + static constexpr auto INIT_POP_B_04 = 4256167; + static constexpr auto INIT_POP_BOSS = 4256168; + static constexpr auto INIT_POP_B_05 = 4256170; + static constexpr auto INIT_POP_B_06 = 4256171; + static constexpr auto INIT_POP_C_01 = 4256182; + static constexpr auto INIT_POP_C_02 = 4256183; + static constexpr auto INIT_POP_C_03 = 4256184; + static constexpr auto INIT_POP_B_07 = 4256187; + static constexpr auto INIT_POP_B_08 = 4256188; + static constexpr auto INIT_POP_D_01 = 4256194; + static constexpr auto INIT_POP_D_02 = 4256195; + static constexpr auto DEF_ACTION_SUMMON_PET_BNPC = 1307; + static constexpr auto YELL_QIB_01 = 1170; + static constexpr auto YELL_QIB_02 = 1171; + static constexpr auto YELL_QIB_03 = 1172; + static constexpr auto CUT_START_NCUT = 45; + static constexpr auto CUT_END_NCUT = 46; + static constexpr auto PR_MEMBER_MOVE_01 = 4334919; + static constexpr auto PR_MEMBER_MOVE_02 = 4334920; + +public: + OvertheRails() : Sapphire::ScriptAPI::QuestBattleScript( 51 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "sgbg_w_qic_004_01a", 2007457, 6904219, 4, { 5.684449f, 16.347240f, 3.782750f }, 1.000000f, 0.000000f ); + // States -> cage01_close_01 (id: 8) cage01_open_01 (id: 10) cage01_open_02 (id: 11) + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( OvertheRails ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/ParleyintheSagolii.cpp b/src/scripts/instances/questbattles/ParleyintheSagolii.cpp new file mode 100644 index 00000000..14e6396b --- /dev/null +++ b/src/scripts/instances/questbattles/ParleyintheSagolii.cpp @@ -0,0 +1,40 @@ +#include +#include + +using namespace Sapphire; + +class ParleyintheSagolii : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_1_BOSS_JENLINCE_01 = 4296937; + static constexpr auto INIT_POP_1_B_TYPE_GLA_01 = 4296942; + static constexpr auto INIT_POP_1_B_TYPE_GLA_02 = 4296943; + static constexpr auto INIT_POP_1_B_TYPE_GLA_03 = 4296944; + static constexpr auto INIT_POP_1_A_TYPE_GLA_01 = 4296945; + static constexpr auto CUT_START_NCUT = 330; + static constexpr auto CUT_END_NCUT = 331; + static constexpr auto JOB_STORY_MES = 3615; + +public: + ParleyintheSagolii() : Sapphire::ScriptAPI::QuestBattleScript( 68 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( ParleyintheSagolii ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/PincerManeuver.cpp b/src/scripts/instances/questbattles/PincerManeuver.cpp new file mode 100644 index 00000000..b0478d3e --- /dev/null +++ b/src/scripts/instances/questbattles/PincerManeuver.cpp @@ -0,0 +1,89 @@ +#include +#include + +using namespace Sapphire; + +class PincerManeuver : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_01 = 4256744; + static constexpr auto INIT_P_POP_02 = 4256746; + static constexpr auto INIT_P_POP_03 = 4256747; + static constexpr auto INIT_P_POP_PET = 4256749; + static constexpr auto INIT_POP_A_01 = 4256750; + static constexpr auto INIT_POP_A_02 = 4256751; + static constexpr auto INIT_POP_B_01 = 4256753; + static constexpr auto INIT_POP_B_02 = 4256754; + static constexpr auto INIT_POP_B_03 = 4256755; + static constexpr auto INIT_POP_A_03 = 4256758; + static constexpr auto INIT_POP_A_04 = 4256759; + static constexpr auto INIT_POP_A_05 = 4256760; + static constexpr auto INIT_POP_B_04 = 4256761; + static constexpr auto INIT_POP_B_05 = 4256762; + static constexpr auto INIT_POP_B_06 = 4256763; + static constexpr auto INIT_POP_C_01 = 4256766; + static constexpr auto INIT_POP_C_02 = 4256772; + static constexpr auto INIT_POP_A_06 = 4256776; + static constexpr auto INIT_POP_A_07 = 4256777; + static constexpr auto INIT_POP_B_07 = 4256782; + static constexpr auto INIT_POP_B_08 = 4256783; + static constexpr auto INIT_POP_D_01 = 4256788; + static constexpr auto INIT_POP_D_02 = 4304848; + static constexpr auto INIT_POP_E_01 = 4256789; + static constexpr auto INIT_POP_ENPC_01 = 4257118; + static constexpr auto LOC_FACE0 = 612; + static constexpr auto LOC_FACE1 = 620; + static constexpr auto LOC_ACTOR1 = 1005192; + static constexpr auto LOC_ACTOR2 = 1005193; + static constexpr auto LOC_ACTOR3 = 1005194; + static constexpr auto LOC_ACTOR4 = 1005190; + static constexpr auto LOC_ACTOR0 = 1005250; + static constexpr auto LOC_POS_ACTOR0 = 4273868; + static constexpr auto LOC_POS_ACTOR1 = 4273880; + static constexpr auto LOC_POS_ACTOR2 = 4273891; + static constexpr auto LOC_POS_ACTOR3 = 4277041; + static constexpr auto LOC_POS_ACTOR10 = 4278520; + static constexpr auto LOC_POS_ACTOR11 = 4278527; + static constexpr auto LOC_POS_ACTOR12 = 4278563; + static constexpr auto LOC_ACTOR10 = 1008051; + static constexpr auto LOC_ACTOR11 = 1008052; + static constexpr auto LOC_ACTOR12 = 1008053; + static constexpr auto LOC_ACTOR13 = 1008049; + static constexpr auto LOC_ACTOR14 = 1008050; + static constexpr auto LOC_ACTION0 = 937; + static constexpr auto DEF_ACTION_SUMMON_PET_BNPC = 1307; + static constexpr auto BGM_BOSSBATTLE = 39; + static constexpr auto INIT_EOBJ_LUGGAGE = 4322719; + static constexpr auto INIT_EOBJ_BOOK_CHARA = 4322716; + static constexpr auto INIT_EOBJ_BOOK_TARGET = 4322717; + static constexpr auto EVENT_QIB_CLSACN200_01 = 3223; + static constexpr auto EVENT_ACTION_01 = 31; + static constexpr auto POP_RANGE_MOVE_AERSTHOTA = 4323244; + static constexpr auto POP_RANGE_MOVE_THUBYRGEIM = 4323248; + static constexpr auto POP_RANGE_MOVE_GEISSFRYN = 4323251; + static constexpr auto LOC_ACTION1 = 1006; + static constexpr auto LOC_ACTOR20 = 1005267; + +public: + PincerManeuver() : Sapphire::ScriptAPI::QuestBattleScript( 52 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( PincerManeuver ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/PrideandDutyWillTakeYoufromtheMountain.cpp b/src/scripts/instances/questbattles/PrideandDutyWillTakeYoufromtheMountain.cpp new file mode 100644 index 00000000..9c1137d1 --- /dev/null +++ b/src/scripts/instances/questbattles/PrideandDutyWillTakeYoufromtheMountain.cpp @@ -0,0 +1,65 @@ +#include +#include + +using namespace Sapphire; + +class PrideandDutyWillTakeYoufromtheMountain : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_SOLUKU_01 = 4299987; + static constexpr auto INIT_POP_1_ADAMANT_01 = 4299990; + static constexpr auto INIT_POP_1_ADAMANT_02 = 4299991; + static constexpr auto INIT_POP_1_ADAMANT_03 = 4299992; + static constexpr auto INIT_POP_2_ADAMANT_01 = 4299995; + static constexpr auto INIT_POP_2_ADAMANT_02 = 4299997; + static constexpr auto INIT_POP_2_JLYFISH_01 = 4299999; + static constexpr auto INIT_POP_2_JLYFISH_02 = 4300001; + static constexpr auto INIT_POP_2_JLYFISH_03 = 4300006; + static constexpr auto INIT_POP_2_JLYFISH_04 = 4300007; + static constexpr auto INIT_P_POP_KYURIOUS_01 = 4300008; + static constexpr auto INIT_POP_3_ADAMANT_BOSS = 4300009; + static constexpr auto INIT_POP_3_ADAMANT_01 = 4300010; + static constexpr auto INIT_POP_3_ADAMANT_02 = 4300011; + static constexpr auto INIT_POP_3_ADAMANT_03 = 4300012; + static constexpr auto INIT_POP_3_ADAMANT_04 = 4300013; + static constexpr auto INIT_POP_4_JLYFISH_01 = 4300014; + static constexpr auto INIT_POP_4_JLYFISH_02 = 4300015; + static constexpr auto INIT_POP_4_JLYFISH_03 = 4300016; + static constexpr auto INIT_POP_4_JLYFISH_04 = 4300017; + static constexpr auto INIT_POP_4_ELEMENT_01 = 4300018; + static constexpr auto INIT_POP_4_ADAMANT_01 = 4300121; + static constexpr auto INIT_POP_4_ADAMANT_02 = 4300122; + static constexpr auto INIT_POP_4_ADAMANT_03 = 4300123; + static constexpr auto LOC_ACTOR0 = 1007128; + static constexpr auto LOC_ACTOR1 = 1002696; + static constexpr auto LOC_POS_ACTOR0 = 4309208; + static constexpr auto CUT_START_NCUT = 320; + static constexpr auto CUT_INSART_NCUT = 321; + static constexpr auto WARP_01 = 4332431; + static constexpr auto INIT_P_POP_SOLUKU_02 = 4333234; + +public: + PrideandDutyWillTakeYoufromtheMountain() : Sapphire::ScriptAPI::QuestBattleScript( 66 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2009569, 0, 4, { 763.213318f, 9.000000f, 358.016998f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_1", 2009570, 0, 4, { 748.506775f, 9.000000f, 520.002930f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( PrideandDutyWillTakeYoufromtheMountain ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/PrimalBurdens.cpp b/src/scripts/instances/questbattles/PrimalBurdens.cpp new file mode 100644 index 00000000..bb7bbc4f --- /dev/null +++ b/src/scripts/instances/questbattles/PrimalBurdens.cpp @@ -0,0 +1,43 @@ +#include +#include + +using namespace Sapphire; + +class PrimalBurdens : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_MITRA_01 = 4302956; + static constexpr auto INIT_POP_1_TRISTAN_01 = 4302960; + static constexpr auto INIT_POP_1_BELIAS_EGI_01 = 4302979; + static constexpr auto INIT_POP_FIRE_SPRIT_01 = 4328234; + static constexpr auto DEF_ACTION_DARK_ABSORB = 1348; + static constexpr auto DEF_ACTION_MONSTER_SUMMON = 1163; + static constexpr auto QIB_LOG_MESSAGE_01 = 3227; + static constexpr auto CUT_START_NCUT = 355; + static constexpr auto CUT_END_NCUT = 356; + static constexpr auto QIB_CHANNELING_DARK = 1; + static constexpr auto JOB_STORY_MES = 3676; + +public: + PrimalBurdens() : Sapphire::ScriptAPI::QuestBattleScript( 82 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( PrimalBurdens ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/ProofofMight.cpp b/src/scripts/instances/questbattles/ProofofMight.cpp new file mode 100644 index 00000000..d2b65c0e --- /dev/null +++ b/src/scripts/instances/questbattles/ProofofMight.cpp @@ -0,0 +1,42 @@ +#include +#include + +using namespace Sapphire; + +class ProofofMight : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_01 = 3818846; + static constexpr auto CUT_SCENE_01 = 28; + static constexpr auto CUT_SCENE_02 = 16; + static constexpr auto DEF_ACTION_LNC_PBAE = 1316; + static constexpr auto DEF_ACTION_CALL_ZOMBIE_ITEM = 1317; + static constexpr auto INIT_POP_LNC_01 = 4312452; + static constexpr auto INIT_POP_LNC_02 = 4312453; + static constexpr auto INIT_POP_THM_01 = 4312454; + static constexpr auto INIT_POP_DAMAGE_RANGE = 4312455; + static constexpr auto STATUS_CUSTOM_DAMAGE_RANGE_DEBUFF = 695; + +public: + ProofofMight() : Sapphire::ScriptAPI::QuestBattleScript( 10 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( ProofofMight ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/Quarantine.cpp b/src/scripts/instances/questbattles/Quarantine.cpp new file mode 100644 index 00000000..ae7cf94f --- /dev/null +++ b/src/scripts/instances/questbattles/Quarantine.cpp @@ -0,0 +1,44 @@ +#include +#include + +using namespace Sapphire; + +class Quarantine : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_ALKAZOLKA_01 = 5874600; + static constexpr auto BNPC_P1_GOLEM_01 = 5874601; + static constexpr auto ACTION_PARTBREAK_TRIGGER = 3269; + static constexpr auto LOC_POS1 = 5917735; + static constexpr auto LOC_ACTOR1 = 1007111; + static constexpr auto LOC_ACTOR2 = 1014729; + static constexpr auto SE_ID_EVENT_TREMOR = 92; + static constexpr auto LOGMESSAGE_PARTS_REBORN = 5347; + static constexpr auto STATUS_DAMAGEUP = 1852; + static constexpr auto LOC_BGM0 = 86; + static constexpr auto BNPC_DUMMY_01 = 5962543; + static constexpr auto ACTION_DUMMYPOP_TRIGGER = 4777; + +public: + Quarantine() : Sapphire::ScriptAPI::QuestBattleScript( 113 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( Quarantine ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/RaisingtheSword.cpp b/src/scripts/instances/questbattles/RaisingtheSword.cpp deleted file mode 100644 index 29590c0f..00000000 --- a/src/scripts/instances/questbattles/RaisingtheSword.cpp +++ /dev/null @@ -1,34 +0,0 @@ -#include -#include - -using namespace Sapphire; - -class RaisingtheSword : - public Sapphire::ScriptAPI::InstanceContentScript -{ -public: - RaisingtheSword() : - Sapphire::ScriptAPI::InstanceContentScript( 5018 ) - { } - - void onInit( InstanceContent& instance ) override - { - instance.registerEObj( "unknown_0", 2004364, 0, 4, { -93.101089f, -13.129550f, 6.845694f }, 1.000000f, 0.000000f ); - instance.registerEObj( "Companychest", 2000470, 4255822, 4, { 128.974701f, 5.067919f, -40.913502f }, 1.000000f, -0.343160f ); - - } - - void onUpdate( InstanceContent& instance, uint32_t currTime ) override - { - - } - - void onEnterTerritory( InstanceContent& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, - uint16_t param2 ) override - { - - } - -}; - -EXPOSE_SCRIPT( RaisingtheSword ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/ReleasetheHounds.cpp b/src/scripts/instances/questbattles/ReleasetheHounds.cpp new file mode 100644 index 00000000..46a4ac13 --- /dev/null +++ b/src/scripts/instances/questbattles/ReleasetheHounds.cpp @@ -0,0 +1,80 @@ +#include +#include + +using namespace Sapphire; + +class ReleasetheHounds : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_BOSS_01 = 6866621; + static constexpr auto P_BNPC_HILDA_01 = 6866710; + static constexpr auto P_BNPC_ROSTN_01 = 6866702; + static constexpr auto P_BNPC_SYM_01 = 6866725; + static constexpr auto P_BNPC_EUDES_01 = 6866789; + static constexpr auto P_BNPC_GUNMAN_01 = 6866791; + static constexpr auto P_BNPC_GUNMAN_02 = 6866792; + static constexpr auto EOBJ_SWORD_01 = 6870137; + static constexpr auto BNPC_ZAKO_AXE_01 = 6952176; + static constexpr auto BNPC_ZAKO_AXE_02 = 6952183; + static constexpr auto BNPC_ZAKO_AXE_03 = 6952185; + static constexpr auto BNPC_ZAKO_AXE_04 = 6952186; + static constexpr auto BNPC_ZAKO_AXE_05 = 6952187; + static constexpr auto BNPC_ZAKO_GUN_01 = 6952192; + static constexpr auto BNPC_ZAKO_GUN_02 = 6952205; + static constexpr auto BNPC_ZAKO_GUN_03 = 6952207; + static constexpr auto BNPC_ZAKO_GUN_04 = 6952210; + static constexpr auto BNPC_ZAKO_GUN_05 = 6952218; + static constexpr auto BNPC_ZAKO_GUN_06 = 6952224; + static constexpr auto BNPC_ZAKO_GUN_07 = 6952228; + static constexpr auto BNPC_ZAKO_GUN_08 = 6952447; + static constexpr auto BNPC_COEURL = 6952234; + static constexpr auto BNPC_CHAIN_BIND = 6952238; + static constexpr auto PR_COUEURL_MOVE_POS = 6952450; + static constexpr auto PR_ZAKO_MOVE_POS = 6952466; + static constexpr auto PR_ESC_MOVE_POS = 6952556; + static constexpr auto PR_FRIEND_MOVE_POS01 = 6955073; + static constexpr auto PR_FRIEND_MOVE_POS02 = 6955074; + static constexpr auto PR_FRIEND_MOVE_POS03 = 6955075; + static constexpr auto PR_FRIEND_MOVE_POS04 = 6955076; + static constexpr auto CHANNELING_CHAIN = 31; + +public: + ReleasetheHounds() : Sapphire::ScriptAPI::QuestBattleScript( 172 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "sgbg_w_qic_001_04a", 2006993, 6235274, 4, { -35.822102f, 298.899994f, -205.263199f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_0", 2006952, 0, 4, { -35.712589f, 298.899994f, -204.878006f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Exit", 2000139, 0, 4, { 556.049377f, 348.102509f, -752.435730f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Entrance", 2000182, 4600289, 5, { 523.532471f, 348.223389f, -736.685730f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "unknown_1", 2002332, 0, 4, { 533.090881f, 348.691895f, -742.750916f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_2", 2002333, 0, 4, { 539.940430f, 348.836395f, -734.401489f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_3", 2000608, 3967803, 4, { 202.369598f, 257.761108f, 80.435272f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_4", 2000608, 3976993, 4, { 273.634705f, 254.600204f, 106.048500f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_5", 2000608, 3986797, 4, { 205.504898f, 246.188995f, 194.875702f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_6", 2000608, 3986798, 4, { 326.313385f, 239.193497f, 221.138901f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_7", 2000608, 2718481, 4, { 240.552307f, 302.769714f, -199.979996f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_8", 2000608, 4065433, 4, { 204.970001f, 302.119995f, -216.311600f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_9", 2000608, 2814617, 4, { 205.869995f, 302.219086f, -276.681396f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_10", 2000608, 2763112, 4, { -433.000000f, 211.007706f, -216.148605f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_11", 2000608, 4187649, 4, { -453.000000f, 211.000000f, -281.046600f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_12", 2000608, 4187961, 4, { -416.000000f, 210.788193f, -279.813812f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( ReleasetheHounds ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/RequiemfortheFallen.cpp b/src/scripts/instances/questbattles/RequiemfortheFallen.cpp new file mode 100644 index 00000000..c6cb9bb9 --- /dev/null +++ b/src/scripts/instances/questbattles/RequiemfortheFallen.cpp @@ -0,0 +1,68 @@ +#include +#include + +using namespace Sapphire; + +class RequiemfortheFallen : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_JUANTEL_01 = 4288553; + static constexpr auto INIT_POP_1_BOSS_IKU_01 = 4288578; + static constexpr auto INIT_POP_1_WLF_01 = 4288585; + static constexpr auto INIT_POP_1_WLF_02 = 4288586; + static constexpr auto INIT_POP_1_WLF_03 = 4288587; + static constexpr auto INIT_POP_1_EXC_IKU_01 = 4288588; + static constexpr auto INIT_POP_1_LNC_IKU_01 = 4288589; + static constexpr auto INIT_POP_2_EXC_IKU_01 = 4288556; + static constexpr auto INIT_POP_2_WLF_01 = 4288557; + static constexpr auto INIT_POP_2_WLF_02 = 4288558; + static constexpr auto INIT_POP_3_GLA_IKU_01 = 4288595; + static constexpr auto INIT_POP_3_LNC_IKU_01 = 4288596; + static constexpr auto INIT_POP_3_WLF_01 = 4288592; + static constexpr auto INIT_POP_3_WLF_02 = 4288593; + static constexpr auto INIT_POP_3_WLF_03 = 4288594; + static constexpr auto CUT_START_NCUT = 327; + static constexpr auto CUT_END_NCUT = 328; + static constexpr auto INIT_ENPC_POP_JUANTEL = 4328411; + static constexpr auto JOB_STORY_MES = 3666; + +public: + RequiemfortheFallen() : Sapphire::ScriptAPI::QuestBattleScript( 78 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "sgbg_w_qic_001_04a", 2006993, 6235274, 4, { -35.822102f, 298.899994f, -205.263199f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_0", 2006952, 0, 4, { -35.712589f, 298.899994f, -204.878006f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Exit", 2000139, 0, 4, { 556.049377f, 348.102509f, -752.435730f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Entrance", 2000182, 4600289, 5, { 523.532471f, 348.223389f, -736.685730f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "unknown_1", 2002332, 0, 4, { 533.090881f, 348.691895f, -742.750916f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_2", 2002333, 0, 4, { 539.940430f, 348.836395f, -734.401489f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_3", 2000608, 3967803, 4, { 202.369598f, 257.761108f, 80.435272f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_4", 2000608, 3976993, 4, { 273.634705f, 254.600204f, 106.048500f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_5", 2000608, 3986797, 4, { 205.504898f, 246.188995f, 194.875702f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_6", 2000608, 3986798, 4, { 326.313385f, 239.193497f, 221.138901f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_7", 2000608, 2718481, 4, { 240.552307f, 302.769714f, -199.979996f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_8", 2000608, 4065433, 4, { 204.970001f, 302.119995f, -216.311600f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_9", 2000608, 2814617, 4, { 205.869995f, 302.219086f, -276.681396f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_10", 2000608, 2763112, 4, { -433.000000f, 211.007706f, -216.148605f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_11", 2000608, 4187649, 4, { -453.000000f, 211.000000f, -281.046600f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_12", 2000608, 4187961, 4, { -416.000000f, 210.788193f, -279.813812f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( RequiemfortheFallen ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/ReturnoftheBull.cpp b/src/scripts/instances/questbattles/ReturnoftheBull.cpp deleted file mode 100644 index a846abcb..00000000 --- a/src/scripts/instances/questbattles/ReturnoftheBull.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include - -using namespace Sapphire; - -class ReturnoftheBull : - public Sapphire::ScriptAPI::InstanceContentScript -{ -public: - ReturnoftheBull() : - Sapphire::ScriptAPI::InstanceContentScript( 5024 ) - { } - - void onInit( InstanceContent& instance ) override - { - instance.registerEObj( "sgvf_w_lvd_b0118", 2002872, 6894813, 4, { -209.363495f, 35.017460f, 72.069672f }, 1.000000f, 0.000000f ); - // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) - instance.registerEObj( "sgvf_w_lvd_b0118_1", 2002872, 6894812, 4, { -172.226807f, 35.017342f, 72.369667f }, 1.000000f, 0.000000f ); - // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) - instance.registerEObj( "unknown_0", 2002735, 0, 4, { -210.219406f, 35.017460f, 72.000000f }, 1.000000f, -1.570451f ); - instance.registerEObj( "unknown_1", 2008685, 0, 4, { -192.767105f, 34.867069f, 71.984734f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgvf_w_lvd_b0118_2", 2002872, 6894833, 4, { 250.000000f, 106.496902f, -50.489590f }, 1.000000f, 0.000000f ); - // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) - instance.registerEObj( "sgvf_w_lvd_b0118_3", 2002872, 6894834, 4, { 250.000000f, 106.496902f, -89.516243f }, 1.000000f, 0.000000f ); - // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) - instance.registerEObj( "unknown_2", 2002735, 0, 4, { 250.000000f, 106.496902f, -50.000000f }, 1.000000f, -0.000000f ); - instance.registerEObj( "sgvf_w_lvd_b0250", 2002872, 6895342, 4, { 248.500000f, 122.000000f, -329.291107f }, 1.000000f, -0.000000f ); - // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) - instance.registerEObj( "unknown_3", 2007457, 6865535, 4, { 249.561295f, 121.995796f, -352.681793f }, 0.991760f, 0.000048f ); - instance.registerEObj( "sgvf_w_lvd_b0249", 2007457, 6895343, 4, { 249.487595f, 122.005699f, -330.083801f }, 0.991760f, 0.000048f ); - // States -> vf_line_on (id: 10) vf_line_of (id: 11) - instance.registerEObj( "sgvf_w_lvd_b0250_1", 2002872, 6904529, 4, { 248.937500f, 122.000000f, -377.252899f }, 1.000000f, 0.000000f ); - // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) - instance.registerEObj( "unknown_4", 2008350, 0, 4, { 250.000000f, 122.000000f, -353.000000f }, 1.000000f, -0.000000f ); - instance.registerEObj( "unknown_5", 2007168, 0, 4, { 250.018997f, 121.995796f, -353.109009f }, 0.991760f, 0.000048f ); - instance.registerEObj( "Entrance", 2000182, 6879593, 5, { -408.611298f, 2.500000f, 233.977905f }, 1.000000f, 0.000000f ); - // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) - instance.registerEObj( "Shortcut", 2000700, 0, 4, { -398.118408f, 2.500000f, 236.857193f }, 1.000000f, 0.000000f ); - instance.registerEObj( "Exit", 2000139, 0, 4, { 250.007294f, 122.000000f, -370.492889f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_6", 2008319, 6844583, 4, { -342.881104f, 24.000010f, 149.680099f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_7", 2008319, 6844584, 4, { -258.130402f, 27.000010f, 99.970268f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_8", 2007457, 6840800, 4, { -100.167801f, 44.750629f, 73.001747f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_9", 2007457, 6853103, 4, { 193.710297f, 106.000000f, 128.847397f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_10", 2007457, 6847102, 4, { 263.424286f, 106.400002f, -8.750051f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_11", 2007457, 6847104, 4, { 249.800797f, 106.428101f, -108.873100f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_12", 2008335, 6844579, 4, { 233.630905f, 109.971703f, -155.596298f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_13", 2008335, 6844578, 4, { 233.295197f, 109.971703f, -144.792892f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_14", 2008335, 6844581, 4, { 224.912094f, 120.000000f, -248.707504f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_15", 2008335, 6844580, 4, { 210.809296f, 120.000000f, -248.716202f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_16", 2008336, 6845038, 4, { 249.895905f, 122.099899f, -294.475403f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_17", 2007457, 6942278, 4, { 233.967697f, 110.000000f, -150.215607f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_18", 2007457, 6942279, 4, { 217.761505f, 119.889999f, -247.455597f }, 0.991760f, 0.000048f ); - - } - - void onUpdate( InstanceContent& instance, uint32_t currTime ) override - { - - } - - void onEnterTerritory( InstanceContent& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, - uint16_t param2 ) override - { - - } - -}; - -EXPOSE_SCRIPT( ReturnoftheBull ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/ReturnoftheHolyfist.cpp b/src/scripts/instances/questbattles/ReturnoftheHolyfist.cpp new file mode 100644 index 00000000..0713d7df --- /dev/null +++ b/src/scripts/instances/questbattles/ReturnoftheHolyfist.cpp @@ -0,0 +1,61 @@ +#include +#include + +using namespace Sapphire; + +class ReturnoftheHolyfist : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_01 = 4082369; + static constexpr auto INIT_P_POP_02 = 4082370; + static constexpr auto INIT_P_POP_03 = 4082371; + static constexpr auto INIT_POP_BOSS = 4082372; + static constexpr auto INIT_POP_01A_01 = 4082379; + static constexpr auto INIT_POP_01B_01 = 4082380; + static constexpr auto INIT_POP_01C_01 = 4082383; + static constexpr auto INIT_POP_01C_02 = 4082384; + static constexpr auto INIT_POP_01C_03 = 4082385; + static constexpr auto INIT_POP_01D_01 = 4082392; + static constexpr auto INIT_POP_01D_02 = 4082393; + static constexpr auto INIT_POP_01D_03 = 4082394; + static constexpr auto INIT_POP_02C_01 = 4082402; + static constexpr auto INIT_POP_02C_02 = 4082403; + static constexpr auto INIT_POP_02D_01 = 4082399; + static constexpr auto INIT_POP_02D_02 = 4082400; + static constexpr auto INIT_POP_02E_01 = 4082401; + static constexpr auto INIT_POP_02F_01 = 4082404; + static constexpr auto NCUT_30010 = 166; + static constexpr auto NCUT_30020 = 167; + static constexpr auto INIT_POP_04A_01 = 4163992; + static constexpr auto INIT_POP_04B_01 = 4163993; + static constexpr auto DEF_ACTION_EXC_PBAE = 1003; + +public: + ReturnoftheHolyfist() : Sapphire::ScriptAPI::QuestBattleScript( 34 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2009578, 2091611, 4, { 31.545870f, 7.999978f, -121.025002f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_1", 2009578, 2091610, 4, { 4.407776f, 8.022990f, -105.310699f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_2", 2009578, 2091597, 4, { -184.324402f, 18.000000f, 65.271606f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_3", 2009578, 2091596, 4, { -146.806107f, 14.005000f, 63.857010f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Companychest", 2000470, 4255821, 4, { -149.301498f, 4.552717f, -91.365868f }, 0.991760f, -0.619932f ); + instance.registerEObj( "Huntboard", 2004440, 2217635, 4, { -152.330902f, 4.230781f, -92.351143f }, 0.991760f, 0.000048f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( ReturnoftheHolyfist ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/ReturntotheRift.cpp b/src/scripts/instances/questbattles/ReturntotheRift.cpp new file mode 100644 index 00000000..175f31fc --- /dev/null +++ b/src/scripts/instances/questbattles/ReturntotheRift.cpp @@ -0,0 +1,178 @@ +#include +#include + +using namespace Sapphire; + +class ReturntotheRift : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto NCUT_01 = 1741; + static constexpr auto EOBJ_FLOOR_7 = 7247427; + static constexpr auto EOBJ_FLOOR_8 = 7247428; + static constexpr auto EOBJ_WARP = 7257027; + static constexpr auto EOBJ_W1_BARRIER_01 = 7288224; + static constexpr auto P_BNPC_ALPHA = 7253907; + static constexpr auto EVENT_RANGE_ENTRY_MID_FLOOR = 7253926; + static constexpr auto EVENT_RANGE_ENTRY_BOSS_FLOOR = 7253927; + static constexpr auto P_BNPC_NERO = 7257028; + static constexpr auto P_BNPC_CID = 7257029; + static constexpr auto P_BNPC_MIDGARDSORMR = 7257030; + static constexpr auto P_BNPC_ARMORED_NERO = 7257031; + static constexpr auto BNPC_W1_LEVELCHECKER_01 = 7288204; + static constexpr auto BNPC_W1_MAGNAROADER_01 = 7288206; + static constexpr auto BNPC_W1_MAGNAROADER_02 = 7288207; + static constexpr auto BNPC_W2_MAGNAROADER_01 = 7288536; + static constexpr auto BNPC_W2_MAGNAROADER_02 = 7288537; + static constexpr auto BNPC_W2_MAGNAROADER_03 = 7288538; + static constexpr auto BNPC_W2_FACE_01 = 7288539; + static constexpr auto BNPC_W2_FACE_02 = 7288540; + static constexpr auto BNPC_W2_FACE_03 = 7288541; + static constexpr auto BNPC_W2_LEVELCHECKER_01 = 7288542; + static constexpr auto BNPC_W2_LEVELCHECKER_02 = 7288543; + static constexpr auto BNPC_W2_LEVELCHECKER_03 = 7288544; + static constexpr auto BNPC_W2_LEVELCHECKER_04 = 7288545; + static constexpr auto BNPC_W2_LEVELCHECKER_05 = 7288546; + static constexpr auto BNPC_W2_LEVELCHECKER_06 = 7288547; + static constexpr auto BNPC_W3_MAGNAROADER_01 = 7288549; + static constexpr auto BNPC_W3_MAGNAROADER_02 = 7288550; + static constexpr auto BNPC_W3_MAGNAROADER_03 = 7288551; + static constexpr auto BNPC_W3_FACE_01 = 7288552; + static constexpr auto BNPC_W3_FACE_02 = 7288553; + static constexpr auto BNPC_W3_FACE_03 = 7288554; + static constexpr auto BNPC_W3_MAGNAROADER_04 = 7288555; + static constexpr auto BNPC_W3_MAGNAROADER_05 = 7288556; + static constexpr auto BNPC_W3_MAGNAROADER_06 = 7288557; + static constexpr auto BNPC_W3_FACE_04 = 7288558; + static constexpr auto BNPC_W3_FACE_05 = 7288559; + static constexpr auto BNPC_W3_FACE_06 = 7288560; + static constexpr auto BNPC_W4_LEVELCHECKER_01 = 7288561; + static constexpr auto BNPC_W4_LEVELCHECKER_02 = 7288562; + static constexpr auto BNPC_W4_LEVELCHECKER_03 = 7288563; + static constexpr auto BNPC_W4_LEVELCHECKER_04 = 7288564; + static constexpr auto BNPC_W4_LEVELCHECKER_05 = 7288565; + static constexpr auto BNPC_W4_LEVELCHECKER_06 = 7288566; + static constexpr auto BNPC_W4_LEVELCHECKER_07 = 7288567; + static constexpr auto BNPC_W4_LEVELCHECKER_08 = 7288568; + static constexpr auto BNPC_W4_LEVELCHECKER_09 = 7288569; + static constexpr auto BNPC_W4_LEVELCHECKER_10 = 7288570; + static constexpr auto BNPC_BOSS_DADALUMA_01 = 7288571; + static constexpr auto BNPC_BOSS_AURA_01 = 7288572; + static constexpr auto BNPC_BOSS_AURA_02 = 7288573; + static constexpr auto BNPC_BOSS_AURA_03 = 7288574; + static constexpr auto BNPC_BOSS_AURA_04 = 7288575; + static constexpr auto POP_RANGE_CID_RETURN = 7257032; + static constexpr auto POP_RANGE_P01_MOVE_CID_01 = 7284129; + static constexpr auto POP_RANGE_P01_MOVE_ALPHA_01 = 7284130; + static constexpr auto POP_RANGE_P01_MOVE_NERO_01 = 7284131; + static constexpr auto POP_RANGE_P01_MOVE_MIDGARDSORMR_01 = 7284132; + static constexpr auto EOBJ_CUBE_W1_MAGNAROADER_01 = 7288194; + static constexpr auto EOBJ_CUBE_W1_MAGNAROADER_02 = 7288195; + static constexpr auto POP_RANGE_P01_MOVE_BARRIER_RELEASE_01 = 7288199; + static constexpr auto EOBJ_BARRIER_RELEASE = 7288201; + static constexpr auto POP_RANGE_P01_MOVE_ALPHA_TRAP_01 = 7288203; + static constexpr auto EVENT_RANGE_W1_START = 7291771; + static constexpr auto YELL_NERO_W1_START = 6700; + static constexpr auto SHARED_GROUP_W1_BARRIER_01 = 7288225; + static constexpr auto BEHAVIOR_TOOL_OPERATION = 31282; + static constexpr auto BEHAVIOR_WARP_OPERATION = 31283; + static constexpr auto BNPC_GIMMICK_01 = 7292508; + static constexpr auto BEHAVIOR_ALPHA_CAPTURE = 31284; + static constexpr auto BNPCBASE_LEVEL_CHECKER_A = 8611; + static constexpr auto BNPCBASE_LEVEL_CHECKER_B = 8612; + static constexpr auto BEHAVIOR_TOOL_END = 31285; + static constexpr auto POP_RANGE_P03_MOVE_CID_WARP_01 = 7292535; + static constexpr auto POP_RANGE_P03_MOVE_NERO_WARP_01 = 7292536; + static constexpr auto POP_RANGE_P03_MOVE_ALPHA_WARP_01 = 7292537; + static constexpr auto POP_RANGE_P03_MOVE_MIDGARDSORMR_WARP_01 = 7292538; + static constexpr auto BEHAVIOR_FADE_OUT = 31286; + static constexpr auto BEHAVIOR_FADE_IN = 31287; + static constexpr auto EVENT_ACTION_01 = 24; + static constexpr auto POP_RANGE_P04_WARP_OUT_01 = 7292539; + static constexpr auto POP_RANGE_P04_ALPHA_WARP_OUT_01 = 7297659; + static constexpr auto POP_RANGE_P04_MIDGARDSORMR_WARP_OUT_01 = 7297661; + static constexpr auto POP_RANGE_P04_NERO_WARP_OUT_01 = 7297662; + static constexpr auto POP_RANGE_P04_CID_WARP_OUT_01 = 7297664; + static constexpr auto EVENT_RANGE_AFTER_WARP_START = 7297670; + static constexpr auto EVENT_RANGE_W2_START = 7297678; + static constexpr auto POP_RANGE_P04_MOVE_MIDGARDSORMR_01 = 7297707; + static constexpr auto POP_RANGE_P04_MOVE_ALPHA_01 = 7297710; + static constexpr auto POP_RANGE_P06_MOVE_ALPHA_01 = 7297713; + static constexpr auto POP_RANGE_P04_MOVE_NERO_01 = 7297731; + static constexpr auto POP_RANGE_P04_MOVE_CID_01 = 7297732; + static constexpr auto BEHAVIOR_W2_BARRIER_START = 31289; + static constexpr auto BEHAVIOR_W2_BARRIER_END = 31290; + static constexpr auto EOBJ_CUBE_W2_MAGNAROADER_01 = 7298352; + static constexpr auto EOBJ_CUBE_W2_MAGNAROADER_02 = 7298354; + static constexpr auto EOBJ_CUBE_W2_MAGNAROADER_03 = 7298355; + static constexpr auto EOBJ_CUBE_W2_FACE_01 = 7298356; + static constexpr auto EOBJ_CUBE_W2_FACE_02 = 7298357; + static constexpr auto EOBJ_CUBE_W2_FACE_03 = 7298358; + static constexpr auto EOBJ_CUBE_W3_MAGNAROADER_01 = 7298359; + static constexpr auto EOBJ_CUBE_W3_MAGNAROADER_02 = 7298360; + static constexpr auto EOBJ_CUBE_W3_MAGNAROADER_03 = 7298361; + static constexpr auto EOBJ_CUBE_W3_MAGNAROADER_04 = 7298362; + static constexpr auto EOBJ_CUBE_W3_MAGNAROADER_05 = 7298363; + static constexpr auto EOBJ_CUBE_W3_MAGNAROADER_06 = 7298364; + static constexpr auto EOBJ_CUBE_W3_FACE_01 = 7298365; + static constexpr auto EOBJ_CUBE_W3_FACE_02 = 7298366; + static constexpr auto EOBJ_CUBE_W3_FACE_03 = 7298367; + static constexpr auto EOBJ_CUBE_W3_FACE_04 = 7298368; + static constexpr auto EOBJ_CUBE_W3_FACE_05 = 7298369; + static constexpr auto EOBJ_CUBE_W3_FACE_06 = 7298370; + static constexpr auto BEHAVIOR_W2_BARRIER_BREAK = 31291; + static constexpr auto BEHAVIOR_CID_PANIC = 31294; + static constexpr auto ACTION_DISPEL_CARD = 10877; + static constexpr auto EOBJ_CUBE_W4_MAGNAROADER_01 = 7309473; + static constexpr auto EOBJ_CUBE_W4_MAGNAROADER_02 = 7309474; + static constexpr auto EOBJ_CUBE_W4_FACE_01 = 7309475; + static constexpr auto EOBJ_CUBE_W4_FACE_02 = 7309476; + static constexpr auto BNPC_W4_MAGNAROADER_01 = 7309480; + static constexpr auto BNPC_W4_MAGNAROADER_02 = 7309481; + static constexpr auto BNPC_W4_FACE_01 = 7309482; + static constexpr auto BNPC_W4_FACE_02 = 7309483; + static constexpr auto BEHAVIOR_W4_BARRIER_START = 31293; + static constexpr auto BEHAVIOR_W4_BARRIER_BREAK = 31295; + static constexpr auto POP_RANGE_P08_MOVE_ALPHA_01 = 7307407; + static constexpr auto POP_RANGE_P08_MOVE_CID_01 = 7307408; + static constexpr auto POP_RANGE_P08_MOVE_NERO_01 = 7307409; + static constexpr auto POP_RANGE_P08_MOVE_MIDGARDSORMR_01 = 7307410; + static constexpr auto BGM_EMPIRE_BATTLE = 151; + static constexpr auto POP_RANGE_P09_MOVE_CID_01 = 7309664; + static constexpr auto POP_RANGE_P09_MOVE_NERO_01 = 7309665; + static constexpr auto POP_RANGE_P09_MOVE_ALPHA_01 = 7309666; + static constexpr auto POP_RANGE_P09_MOVE_MIDGARDSORMR_01 = 7309667; + static constexpr auto YELL_ALPHA_CHIRPING_01 = 6730; + static constexpr auto EOBJ_TRAP = 7309742; + static constexpr auto BEHAVIOR_ALPHA_RELEASE = 31305; + static constexpr auto EOBJ_CUBE_BOSS_DADALUMA = 7285324; + static constexpr auto LINEVOICE_NERO_0 = 8201044; + static constexpr auto ACTION_BOOST_SCREW = 10941; + static constexpr auto ACTION_BOOST_SWINGDOWN = 10942; + static constexpr auto LOGMESSAGE_CARD = 2916; + +public: + ReturntotheRift() : Sapphire::ScriptAPI::QuestBattleScript( 180 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2007457, 7233046, 4, { 117.389702f, -91.250000f, 286.907013f }, 1.000000f, -0.000000f ); + instance.registerEObj( "unknown_1", 2007457, 7233051, 4, { 50.875999f, -82.750008f, 230.007004f }, 1.000000f, -0.000000f ); + instance.registerEObj( "Exit", 2000046, 0, 4, { -74.926453f, -71.750000f, 159.849503f }, 0.991760f, 0.000048f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( ReturntotheRift ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/RhalgrsBeacon.cpp b/src/scripts/instances/questbattles/RhalgrsBeacon.cpp new file mode 100644 index 00000000..edb57c2f --- /dev/null +++ b/src/scripts/instances/questbattles/RhalgrsBeacon.cpp @@ -0,0 +1,129 @@ +#include +#include + +using namespace Sapphire; + +class RhalgrsBeacon : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_WARP_POINT_001 = 6797597; + static constexpr auto LOC_MARKER_001 = 6797770; + static constexpr auto P_BNPC_ALENVALD = 6797761; + static constexpr auto P_BNPC_CONRAD = 6797762; + static constexpr auto P_BNPC_LISE = 6797763; + static constexpr auto P_BNPC_FRIEND_ARAMIGO_SWD = 6797764; + static constexpr auto P_BNPC_FRIEND_ARAMIGO_ARC = 6797765; + static constexpr auto P_BNPC_FRIEND_ANANTA_SWD = 6797766; + static constexpr auto BNPC_PACK1_OPERATOR = 6865638; + static constexpr auto BNPC_PACK1_SWD1 = 6865641; + static constexpr auto BNPC_PACK1_SWD2 = 6865642; + static constexpr auto BNPC_PACK1_MACHINE1 = 6865639; + static constexpr auto BNPC_PACK1_MACHINE2 = 6865643; + static constexpr auto BNPC_PACK2_CANON1 = 6865577; + static constexpr auto BNPC_PACK2_CANON2 = 6865579; + static constexpr auto BNPC_PACK2_CANON3 = 6865580; + static constexpr auto BNPC_PACK2_SWD1 = 6865806; + static constexpr auto BNPC_PACK2_SWD2 = 6865808; + static constexpr auto BNPC_PACK2_THM1 = 6865810; + static constexpr auto BNPC_PACK2_THM2 = 6865809; + static constexpr auto BNPC_PACK2_MACHINE1 = 6865812; + static constexpr auto BNPC_PACK2_MACHINE2 = 6865813; + static constexpr auto BNPC_PACK2_MACHINE3 = 6865814; + static constexpr auto BNPC_PACK2_CANON1_TOUMEI = 6866595; + static constexpr auto BNPC_PACK2_CANON2_TOUMEI = 6866597; + static constexpr auto BNPC_PACK2_CANON3_TOUMEI = 6866599; + static constexpr auto BNPCBASEID_PACK2_CANON = 6986; + static constexpr auto PRANGE_ALENVALD_MOVE1 = 6866210; + static constexpr auto PRANGE_ALENVALD_MOVE2 = 6866237; + static constexpr auto PRANGE_ALENVALD_MOVE3 = 6869636; + static constexpr auto PRANGE_LISE_MOVE1 = 6869607; + static constexpr auto PRANGE_LISE_MOVE2 = 6869621; + static constexpr auto PRANGE_LISE_MOVE3 = 6869633; + static constexpr auto PRANGE_CONRAD_MOVE1 = 6869613; + static constexpr auto PRANGE_CONRAD_MOVE2 = 6869624; + static constexpr auto PRANGE_CONRAD_MOVE3 = 6869635; + static constexpr auto PRANGE_ARAMIGO_SWD_MOVE1 = 6869609; + static constexpr auto PRANGE_ARAMIGO_SWD_MOVE2 = 6869622; + static constexpr auto PRANGE_ARAMIGO_SWD_MOVE3 = 6869634; + static constexpr auto PRANGE_ARAMIGO_ARC_MOVE1 = 6869611; + static constexpr auto PRANGE_ARAMIGO_ARC_MOVE2 = 6869623; + static constexpr auto PRANGE_ARAMIGO_ARC_MOVE3 = 6869638; + static constexpr auto PRANGE_ANANTA_SWD_MOVE1 = 6869614; + static constexpr auto PRANGE_ANANTA_SWD_MOVE2 = 6869625; + static constexpr auto PRANGE_ANANTA_SWD_MOVE3 = 6869637; + static constexpr auto EOBJ_BOSS_ROOM_CONTROL = 6869904; + static constexpr auto BNPC_FORDLA = 6873306; + static constexpr auto BNPC_JUJIGIRI = 6870178; + static constexpr auto BNPC_BIT_FAN_01 = 6971372; + static constexpr auto BNPC_BIT_FAN_02 = 6971370; + static constexpr auto BNPC_BIT_FAN_03 = 6971371; + static constexpr auto BNPC_BIT_FAN_04 = 6870173; + static constexpr auto BNPC_GTAE_TOUMEI1 = 6870454; + static constexpr auto BNPC_GTAE_TOUMEI2 = 6870455; + static constexpr auto BNPC_GTAE_TOUMEI3 = 6969748; + static constexpr auto BNPC_GTAE_TOUMEI4 = 6969749; + static constexpr auto BNPC_GTAE_TOUMEI5 = 6971375; + static constexpr auto BNPC_GTAE_TOUMEI6 = 6971376; + static constexpr auto BNPC_GTAE_TOUMEI7 = 6971377; + static constexpr auto BNPC_GTAE_TOUMEI8 = 6971378; + static constexpr auto BNPC_SKULL_CONRAD = 6873176; + static constexpr auto BNPC_SKULL_ALENVALD = 6873177; + static constexpr auto BNPC_SKULL_ARAMIGO_SWD = 6873178; + static constexpr auto BNPC_SKULL_LISE = 6873180; + static constexpr auto BNPC_SKULL_ANANTA = 6873181; + static constexpr auto BNPC_SKULL_ARAMIGO_ARC = 6873182; + static constexpr auto P_BNPC_LISE_SECOND_HALF = 6873185; + static constexpr auto P_BNPC_CONRAD_SECOND_HALF = 6873186; + static constexpr auto P_BNPC_ALENVALD_SECOND_HALF = 6873187; + static constexpr auto P_BNPC_FRIEND_ARAMIGO_SWD_SECOND_HALF = 6873188; + static constexpr auto P_BNPC_FRIEND_ARAMIGO_ARC_SECOND_HALF = 6873189; + static constexpr auto P_BNPC_FRIEND_ANANTA_SWD_SECOND_HALF = 6873190; + static constexpr auto PRANGE_GTAE_01 = 6969732; + static constexpr auto PRANGE_GTAE_02 = 6969736; + static constexpr auto PRANGE_GTAE_03 = 6969737; + static constexpr auto PRANGE_GTAE_04 = 6969738; + static constexpr auto ACTION_JUJIGIRI = 8371; + static constexpr auto ACTION_JUJIGIRI_ORDER = 8370; + static constexpr auto ACTION_GTAE_FORDRA = 8345; + static constexpr auto ACTION_SUMMON_BIT = 8344; + static constexpr auto ACTION_GTAE_TOUMEI = 8346; + static constexpr auto EOBJ_DAMAGE_FLOOR = 6870453; + static constexpr auto STATUS_PAIN = 2924; + static constexpr auto STATUS_KNOCKDOWN_ETERNAL = 3000; + static constexpr auto ERANGE_PACK1 = 6865724; + static constexpr auto ERANGE_PACK2 = 6865801; + static constexpr auto ERANGE_PACK1_DESTROYED = 6866125; + static constexpr auto BGM_BOSS_BATTLE = 406; + static constexpr auto LOC_ACTOR_01 = 1018509; + static constexpr auto LOC_ACTOR_02 = 1019082; + static constexpr auto LOC_ACTOR_03 = 1019537; + static constexpr auto LOC_ACTOR_04 = 1019098; + static constexpr auto LOC_ACTOR_05 = 1019545; + static constexpr auto LOC_IDLE_01 = 34; + static constexpr auto LOC_ACTION_01 = 1; + static constexpr auto ACTION_CANON = 8308; + static constexpr auto BNPC_TOUMEI_JUJIGIRI_MOVE_B01 = 6870077; + +public: + RhalgrsBeacon() : Sapphire::ScriptAPI::QuestBattleScript( 160 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( RhalgrsBeacon ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/RiseoftheMachinists.cpp b/src/scripts/instances/questbattles/RiseoftheMachinists.cpp new file mode 100644 index 00000000..1424e709 --- /dev/null +++ b/src/scripts/instances/questbattles/RiseoftheMachinists.cpp @@ -0,0 +1,86 @@ +#include +#include + +using namespace Sapphire; + +class RiseoftheMachinists : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_COMPANION_ROSTNSTHAL_01 = 5905383; + static constexpr auto BNPC_COMPANION_STEPHANIVIEN_01 = 5905384; + static constexpr auto BNPC_COMPANION_JOYE_01 = 5905385; + static constexpr auto BNPC_COMPANION_SEREST_01 = 5905388; + static constexpr auto BNPC_COMPANION_MACHINIST_01 = 5905389; + static constexpr auto BNPC_COMPANION_MACHINIST_02 = 5905390; + static constexpr auto BNPC_ENEMY_PACK_A_WYVERN_01 = 5905396; + static constexpr auto BNPC_ENEMY_PACK_A_DRAGONFLY_01 = 5905397; + static constexpr auto BNPC_ENEMY_PACK_A_DRAGONFLY_02 = 5905398; + static constexpr auto BNPC_ENEMY_PACK_A_DRAGONFLY_03 = 5905399; + static constexpr auto BNPC_ENEMY_PACK_B_THRUSTAEVIS_01 = 5905402; + static constexpr auto BNPC_ENEMY_PACK_B_THRUSTAEVIS_02 = 5905403; + static constexpr auto BNPC_ENEMY_PACK_B_THRUSTAEVIS_03 = 5905404; + static constexpr auto BNPC_ENEMY_PACK_C_THRUSTAEVIS_01 = 5905414; + static constexpr auto BNPC_ENEMY_PACK_C_DRAGONFLY_01 = 5905415; + static constexpr auto BNPC_ENEMY_PACK_C_DRAGONFLY_02 = 5905417; + static constexpr auto BNPC_ENEMY_PACK_D_WYVERN_01 = 5905420; + static constexpr auto BNPC_ENEMY_PACK_D_THRUSTAEVIS_01 = 5905421; + static constexpr auto BNPC_ENEMY_PACK_D_THRUSTAEVIS_02 = 5905422; + static constexpr auto WARP_PC_POINT_01 = 5905488; + static constexpr auto BNPC_COMPANION_ROSTNSTHAL_02 = 5905499; + static constexpr auto BNPC_COMPANION_STEPHANIVIEN_02 = 5905500; + static constexpr auto BNPC_COMPANION_JOYE_02 = 5905501; + static constexpr auto BNPC_COMPANION_SEREST_02 = 5905627; + static constexpr auto BNPC_COMPANION_MACHINIST_03 = 5905628; + static constexpr auto BNPC_COMPANION_MACHINIST_04 = 5905629; + static constexpr auto BNPC_COMPANION_TEDALGRINCHE_01 = 5905630; + static constexpr auto BNPC_ENEMY_ELDER_WYVERN_01 = 5905655; + static constexpr auto BNPC_ENEMY_PACK_E_WYVERN_01 = 5905657; + static constexpr auto BNPC_ENEMY_PACK_E_DRAGONFLY_01 = 5905658; + static constexpr auto BNPC_ENEMY_PACK_E_DRAGONFLY_02 = 5905659; + static constexpr auto BNPC_ENEMY_PACK_F_THRUSTAEVIS_01 = 5905661; + static constexpr auto BNPC_ENEMY_PACK_F_DRAGONFLY_01 = 5905662; + static constexpr auto BNPC_ENEMY_PACK_F_DRAGONFLY_02 = 5905663; + static constexpr auto BNPC_ENEMY_PACK_G_THRUSTAEVIS_01 = 5905667; + static constexpr auto BNPC_ENEMY_PACK_G_THRUSTAEVIS_02 = 5905670; + static constexpr auto BNPC_ENEMY_PACK_G_THRUSTAEVIS_03 = 5905672; + static constexpr auto ENPC_TEDALGRINCHE_01 = 5905392; + static constexpr auto ENPC_WITNESS_01 = 5905393; + static constexpr auto ENPC_WITNESS_02 = 5905632; + static constexpr auto CUT_SCENE_01 = 975; + static constexpr auto LOGMESSAGE_TEDALGRINCHE_HP50 = 3274; + static constexpr auto LOGMESSAGE_TEDALGRINCHE_HP25 = 3275; + static constexpr auto STATUS_PARAM_TRANSFORM_MAYAYA = 1531; + static constexpr auto LOC_ACTOR0 = 1014579; + static constexpr auto LOC_ACTOR1 = 1014580; + static constexpr auto LOC_ACTOR2 = 1015124; + static constexpr auto LOC_ACTOR3 = 1014585; + static constexpr auto LOC_ACTOR4 = 1014584; + static constexpr auto LOC_ACTOR5 = 1014590; + static constexpr auto LOC_MARKER_01 = 5932442; + static constexpr auto LOC_MARKER_02 = 5932601; + static constexpr auto LOC_BGM1 = 316; + static constexpr auto BGM_BOSS_BATTLE = 91; + +public: + RiseoftheMachinists() : Sapphire::ScriptAPI::QuestBattleScript( 130 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( RiseoftheMachinists ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/SchismbetweenSisters.cpp b/src/scripts/instances/questbattles/SchismbetweenSisters.cpp new file mode 100644 index 00000000..b5142de0 --- /dev/null +++ b/src/scripts/instances/questbattles/SchismbetweenSisters.cpp @@ -0,0 +1,141 @@ +#include +#include + +using namespace Sapphire; + +class SchismbetweenSisters : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto P_BNPC_ALPA = 7230510; + static constexpr auto P_BNPC_JOLHMYN = 7230511; + static constexpr auto P_BNPC_MZHETTIA = 7230512; + static constexpr auto P_BNPC_TAHLAMOLKOH = 7230513; + static constexpr auto P_BNPC_KARYANA_ALLY_1 = 7230515; + static constexpr auto P_BNPC_KARYANA_ALLY_2 = 7230516; + static constexpr auto P_BNPC_KARYANA_ALLY_3 = 7230517; + static constexpr auto P_BNPC_KARYANA_ALLY_4 = 7230518; + static constexpr auto P_BNPC_KARYANA_ALLY_5 = 7230520; + static constexpr auto BNPC_KARYANA_ENEMY_BOSS = 7230521; + static constexpr auto BNPC_KARYANA_ENEMY_W1_01 = 7230573; + static constexpr auto BNPC_KARYANA_ENEMY_W1_02 = 7230574; + static constexpr auto BNPC_KARYANA_ENEMY_W1_03 = 7230575; + static constexpr auto BNPC_KARYANA_ENEMY_W1_04 = 7230576; + static constexpr auto BNPC_KARYANA_ENEMY_W1_05 = 7230578; + static constexpr auto BNPC_KARYANA_ENEMY_W2_01 = 7230581; + static constexpr auto BNPC_KARYANA_ENEMY_W2_02 = 7230582; + static constexpr auto BNPC_KARYANA_ENEMY_W2_03 = 7230583; + static constexpr auto BNPC_KARYANA_ENEMY_W2_04 = 7230584; + static constexpr auto BNPC_KARYANA_ENEMY_W2_05 = 7230585; + static constexpr auto BNPC_KARYANA_ENEMY_W3_01 = 7230588; + static constexpr auto BNPC_KARYANA_ENEMY_W3_02 = 7230589; + static constexpr auto BNPC_KARYANA_ENEMY_W3_03 = 7230590; + static constexpr auto BNPC_KARYANA_ENEMY_W3_04 = 7230591; + static constexpr auto BNPC_KARYANA_ENEMY_W3_05 = 7230592; + static constexpr auto BNPC_KARYANA_ENEMY_W3_06 = 7230593; + static constexpr auto BNPC_KARYANA_ENEMY_W3_07 = 7230594; + static constexpr auto BNPC_KARYANA_ENEMY_W3_08 = 7230595; + static constexpr auto POP_RANGE_ALLY_APPEAR_MOVE_01 = 7230864; + static constexpr auto POP_RANGE_ALLY_APPEAR_MOVE_02 = 7230866; + static constexpr auto POP_RANGE_ALLY_APPEAR_MOVE_03 = 7230867; + static constexpr auto POP_RANGE_ALLY_APPEAR_MOVE_04 = 7230868; + static constexpr auto POP_RANGE_ALLY_APPEAR_MOVE_05 = 7230869; + static constexpr auto POP_RANGE_ALPA_APPEAR_MOVE_01 = 7231055; + static constexpr auto POP_RANGE_ENEMY_APPEAR_MOVE_01 = 7231058; + static constexpr auto POP_RANGE_ENEMY_APPEAR_MOVE_02 = 7231059; + static constexpr auto POP_RANGE_ENEMY_APPEAR_MOVE_03 = 7231060; + static constexpr auto POP_RANGE_ENEMY_APPEAR_MOVE_04 = 7231061; + static constexpr auto POP_RANGE_ENEMY_APPEAR_MOVE_05 = 7231062; + static constexpr auto POP_RANGE_ALLY_APPEAR_MOVE_06 = 7231232; + static constexpr auto POP_RANGE_ALLY_APPEAR_MOVE_07 = 7231233; + static constexpr auto POP_RANGE_ALLY_APPEAR_MOVE_08 = 7231234; + static constexpr auto POP_RANGE_ALLY_APPEAR_MOVE_09 = 7231235; + static constexpr auto POP_RANGE_ALLY_APPEAR_MOVE_10 = 7231236; + static constexpr auto BEHAVIOR_BATTLE_ACTIVE_IDLE = 30102; + static constexpr auto YELL_ALPA_BTLSTART_01 = 6639; + static constexpr auto YELL_JOLHMYN_BTLSTART_01 = 6640; + static constexpr auto POP_RANGE_ALLY_DISAPPEAR_MOVE_01 = 7233013; + static constexpr auto POP_RANGE_ALLY_DISAPPEAR_MOVE_02 = 7233014; + static constexpr auto POP_RANGE_ALLY_DISAPPEAR_MOVE_03 = 7233015; + static constexpr auto POP_RANGE_ALPA_BLOCKING_MOVE_01 = 7235669; + static constexpr auto YELL_JOLHMYN_COVER_01 = 6641; + static constexpr auto EOBJ_BATTLE_CIRCLE = 7230536; + static constexpr auto POP_RANGE_INIT_WARP_01 = 7188887; + static constexpr auto BNPC_KARYANA_ENEMY_W4_01 = 7236312; + static constexpr auto BNPC_KARYANA_ENEMY_W4_02 = 7236313; + static constexpr auto BNPC_KARYANA_ENEMY_W4_03 = 7236314; + static constexpr auto POP_RANGE_P3_ENEMY_APPEAR_MOVE_01 = 7237538; + static constexpr auto POP_RANGE_P3_ENEMY_APPEAR_MOVE_02 = 7237539; + static constexpr auto POP_RANGE_P3_ENEMY_APPEAR_MOVE_03 = 7237540; + static constexpr auto POP_RANGE_P3_ENEMY_APPEAR_MOVE_04 = 7237541; + static constexpr auto POP_RANGE_P3_ENEMY_APPEAR_MOVE_05 = 7237542; + static constexpr auto POP_RANGE_P3_ENEMY_APPEAR_MOVE_06 = 7237543; + static constexpr auto POP_RANGE_P3_ENEMY_APPEAR_MOVE_07 = 7237544; + static constexpr auto POP_RANGE_P3_ENEMY_APPEAR_MOVE_08 = 7237545; + static constexpr auto ACTION_SCRIPT_TRIGGER = 3269; + static constexpr auto YELL_ALPA_THANKS_01 = 6644; + static constexpr auto YELL_KARYANASOLDIER_DISAPPEAR_01 = 6650; + static constexpr auto YELL_KARYANASOLDIER_DISAPPEAR_02 = 6651; + static constexpr auto BNPC_KARYANA_ENEMY_W4_04 = 7241988; + static constexpr auto BNPC_KARYANA_ENEMY_W4_05 = 7241989; + static constexpr auto BNPC_KARYANA_ENEMY_W4_06 = 7241990; + static constexpr auto BNPC_KARYANA_ENEMY_W4_GIMMICK_01 = 7242000; + static constexpr auto BNPC_KARYANA_ENEMY_W4_GIMMICK_02 = 7242002; + static constexpr auto BNPC_KARYANA_ENEMY_W4_GIMMICK_03 = 7242003; + static constexpr auto BNPC_KARYANA_ENEMY_W4_GIMMICK_04 = 7242004; + static constexpr auto BNPC_KARYANA_ENEMY_W4_GIMMICK_05 = 7242005; + static constexpr auto BNPC_KARYANA_ENEMY_W4_GIMMICK_06 = 7242006; + static constexpr auto ACTION_ATEL_SHARE = 10722; + static constexpr auto CHANNELING_WIND = 4; + static constexpr auto ACTION_FLARE_SHARE = 10735; + static constexpr auto LOCKON_SHARE = 62; + static constexpr auto YELL_MZHETTIA_SHARE_01 = 6659; + static constexpr auto LOC_LQ_00 = 7244089; + static constexpr auto LOC_ACTOR_00 = 1024769; + static constexpr auto LOC_ACTOR_01 = 1024752; + static constexpr auto LOC_ACTOR_02 = 1022043; + static constexpr auto LOC_ACTOR_03 = 1024756; + static constexpr auto LOC_ACTOR_04 = 1024764; + static constexpr auto LOC_ACTOR_05 = 1024770; + static constexpr auto LOC_ACTION_00 = 953; + static constexpr auto LOC_ACTION_01 = 954; + static constexpr auto LOC_ACTION_02 = 3778; + static constexpr auto LOC_ACTION_03 = 4676; + static constexpr auto LOC_ACTION_04 = 72; + static constexpr auto LOC_SE_00 = 85; + static constexpr auto LOC_SE_01 = 80; + static constexpr auto LOC_BGM_00 = 113; + static constexpr auto BNPCBASE_ANANTA_CON_GIMMICK = 8566; + static constexpr auto ACTION_WATERGA = 10757; + static constexpr auto LOC_ACTOR_06 = 1023863; + static constexpr auto LOCKON_DEPLOY = 87; + static constexpr auto P_BNPC_HATE = 7256361; + static constexpr auto BNPC_BOSS_GIMMICK_01 = 7256362; + static constexpr auto BNPC_BOSS_GIMMICK_02 = 7256363; + static constexpr auto BNPC_BOSS_GIMMICK_03 = 7256364; + static constexpr auto ACTION_SCRIPT_TRIGGER_B = 4777; + static constexpr auto ACTION_DEPLOY_GIMMICK = 10873; + static constexpr auto LOC_BGM_01 = 165; + +public: + SchismbetweenSisters() : Sapphire::ScriptAPI::QuestBattleScript( 182 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( SchismbetweenSisters ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/SecuringtheLocks.cpp b/src/scripts/instances/questbattles/SecuringtheLocks.cpp new file mode 100644 index 00000000..c275a9d3 --- /dev/null +++ b/src/scripts/instances/questbattles/SecuringtheLocks.cpp @@ -0,0 +1,111 @@ +#include +#include + +using namespace Sapphire; + +class SecuringtheLocks : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_STEPHANIVIEN_01 = 5901097; + static constexpr auto BNPC_JOYE_01 = 5901098; + static constexpr auto BNPC_GROUP_A_BALLISTA_01 = 5901106; + static constexpr auto BNPC_GROUP_A_HAILLENARTE_SWORD_01 = 5901107; + static constexpr auto BNPC_GROUP_A_HAILLENARTE_SPEAR_01 = 5901108; + static constexpr auto BNPC_GROUP_A_HAILLENARTE_SPEAR_02 = 5901109; + static constexpr auto BNPC_GROUP_A_HAILLENARTE_GUARD_01 = 5901110; + static constexpr auto BNPC_GROUP_B_BALLISTA_01 = 5901116; + static constexpr auto BNPC_GROUP_B_HAILLENARTE_SWORD_01 = 5901117; + static constexpr auto BNPC_GROUP_B_HAILLENARTE_SPEAR_01 = 5901118; + static constexpr auto BNPC_GROUP_B_HAILLENARTE_SPEAR_02 = 5901119; + static constexpr auto BNPC_GROUP_B_HAILLENARTE_GUARD_01 = 5901120; + static constexpr auto BNPC_GROUP_C_BALLISTA_01 = 5901121; + static constexpr auto BNPC_GROUP_C_HAILLENARTE_SWORD_01 = 5901122; + static constexpr auto BNPC_GROUP_C_HAILLENARTE_SPEAR_01 = 5901123; + static constexpr auto BNPC_GROUP_C_HAILLENARTE_SPEAR_02 = 5901124; + static constexpr auto BNPC_GROUP_C_HAILLENARTE_GUARD_01 = 5901125; + static constexpr auto BNPC_PACK_A_WYVERN_01 = 5901132; + static constexpr auto BNPC_PACK_A_THRUSTAEVIS_01 = 5901135; + static constexpr auto BNPC_PACK_A_THRUSTAEVIS_02 = 5901136; + static constexpr auto BNPC_PACK_B_WYVERN_01 = 5901137; + static constexpr auto BNPC_PACK_B_DRAGONFLY_01 = 5901138; + static constexpr auto BNPC_PACK_B_THRUSTAEVIS_01 = 5901139; + static constexpr auto BNPC_PACK_C_WYVERN_01 = 5901140; + static constexpr auto BNPC_PACK_C_DRAGONFLY_01 = 5901141; + static constexpr auto BNPC_PACK_C_DRAGONFLY_02 = 5901142; + static constexpr auto BNPC_PACK_D_WYVERN_01 = 5901143; + static constexpr auto BNPC_PACK_D_WYVERN_02 = 5901144; + static constexpr auto BNPC_PACK_D_WYVERN_03 = 5901145; + static constexpr auto BNPC_PACK_D_DRAGONFLY_01 = 5901146; + static constexpr auto BNPC_PACK_D_DRAGONFLY_02 = 5901147; + static constexpr auto BNPC_PACK_E_WYVERN_01 = 5901148; + static constexpr auto BNPC_PACK_E_WYVERN_02 = 5901149; + static constexpr auto BNPC_PACK_E_DRAGONFLY_01 = 5901150; + static constexpr auto BNPC_PACK_E_DRAGONFLY_02 = 5901151; + static constexpr auto BNPC_PACK_F_WYVERN_01 = 5901154; + static constexpr auto BNPC_PACK_F_THRUSTAEVIS_01 = 5901155; + static constexpr auto BNPC_PACK_G_WYVERN_01 = 5901159; + static constexpr auto BNPC_PACK_G_WYVERN_02 = 5901160; + static constexpr auto BNPC_PACK_G_DRAGONFLY_01 = 5901161; + static constexpr auto BNPC_PACK_G_DRAGONFLY_02 = 5901162; + static constexpr auto BNPC_PACK_G_THRUSTAEVIS_01 = 5901163; + static constexpr auto BNPC_SVARA_01 = 5901165; + static constexpr auto LOGMESSAGE_A_BALLISTA_HP50 = 3266; + static constexpr auto LOGMESSAGE_A_BALLISTA_HP25 = 3267; + static constexpr auto LOGMESSAGE_B_BALLISTA_HP50 = 3264; + static constexpr auto LOGMESSAGE_B_BALLISTA_HP25 = 3265; + static constexpr auto LOGMESSAGE_C_BALLISTA_HP50 = 3268; + static constexpr auto LOGMESSAGE_C_BALLISTA_HP25 = 3269; + static constexpr auto LOGMESSAGE_A_BALLISTA_BREAK_DOWN = 3263; + static constexpr auto LOGMESSAGE_B_BALLISTA_BREAK_DOWN = 3262; + static constexpr auto LOGMESSAGE_C_BALLISTA_BREAK_DOWN = 3273; + static constexpr auto LOC_MARKER_01 = 5925683; + static constexpr auto LOC_MARKER_02 = 5925684; + static constexpr auto LOC_MARKER_03 = 5925690; + static constexpr auto LOC_MARKER_04 = 5925691; + static constexpr auto LOC_ACTOR0 = 1014579; + static constexpr auto LOC_ACTOR1 = 1015124; + static constexpr auto LOC_ACTOR2 = 1014971; + static constexpr auto LOC_ACTOR3 = 1014972; + static constexpr auto LOC_ACTOR4 = 1014973; + static constexpr auto LOC_BGM0 = 316; + +public: + SecuringtheLocks() : Sapphire::ScriptAPI::QuestBattleScript( 128 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "sgbg_w_qic_001_04a", 2006993, 6235274, 4, { -35.822102f, 298.899994f, -205.263199f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_0", 2006952, 0, 4, { -35.712589f, 298.899994f, -204.878006f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Exit", 2000139, 0, 4, { 556.049377f, 348.102509f, -752.435730f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Entrance", 2000182, 4600289, 5, { 523.532471f, 348.223389f, -736.685730f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "unknown_1", 2002332, 0, 4, { 533.090881f, 348.691895f, -742.750916f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_2", 2002333, 0, 4, { 539.940430f, 348.836395f, -734.401489f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_3", 2000608, 3967803, 4, { 202.369598f, 257.761108f, 80.435272f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_4", 2000608, 3976993, 4, { 273.634705f, 254.600204f, 106.048500f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_5", 2000608, 3986797, 4, { 205.504898f, 246.188995f, 194.875702f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_6", 2000608, 3986798, 4, { 326.313385f, 239.193497f, 221.138901f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_7", 2000608, 2718481, 4, { 240.552307f, 302.769714f, -199.979996f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_8", 2000608, 4065433, 4, { 204.970001f, 302.119995f, -216.311600f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_9", 2000608, 2814617, 4, { 205.869995f, 302.219086f, -276.681396f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_10", 2000608, 2763112, 4, { -433.000000f, 211.007706f, -216.148605f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_11", 2000608, 4187649, 4, { -453.000000f, 211.000000f, -281.046600f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_12", 2000608, 4187961, 4, { -416.000000f, 210.788193f, -279.813812f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( SecuringtheLocks ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/SeerFolly.cpp b/src/scripts/instances/questbattles/SeerFolly.cpp new file mode 100644 index 00000000..6707cd97 --- /dev/null +++ b/src/scripts/instances/questbattles/SeerFolly.cpp @@ -0,0 +1,59 @@ +#include +#include + +using namespace Sapphire; + +class SeerFolly : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_RAYAO_01 = 4293115; + static constexpr auto INIT_P_POP_ARUN_01 = 4293116; + static constexpr auto INIT_POP_1_BOSS_TRANT_01 = 4293124; + static constexpr auto INIT_POP_1_RPT_01 = 4293129; + static constexpr auto INIT_POP_1_RPT_02 = 4293131; + static constexpr auto INIT_POP_1_RPT_03 = 4293132; + static constexpr auto INIT_POP_1_FLY_01 = 4293133; + static constexpr auto INIT_POP_1_FLY_02 = 4293134; + static constexpr auto INIT_POP_1_FLY_03 = 4293135; + static constexpr auto INIT_POP_1_FLY_04 = 4293136; + static constexpr auto INIT_POP_2_SLUG_01 = 4293144; + static constexpr auto INIT_POP_2_SLUG_02 = 4293145; + static constexpr auto INIT_POP_2_FLY_01 = 4293146; + static constexpr auto INIT_POP_2_FLY_02 = 4293147; + static constexpr auto INIT_POP_2_RPT_01 = 4293148; + static constexpr auto INIT_POP_2_SLUG_03 = 4293149; + static constexpr auto INIT_POP_3_WATER_ERMNT_01 = 4293151; + static constexpr auto INIT_POP_3_WATER_ERMNT_02 = 4293152; + static constexpr auto INIT_POP_3_FLY_01 = 4293153; + static constexpr auto INIT_POP_3_FLY_02 = 4293154; + static constexpr auto INIT_POP_3_RPT_01 = 4293155; + static constexpr auto INIT_POP_3_WATER_ERMNT_03 = 4293156; + static constexpr auto CUT_END_NCUT = 346; + static constexpr auto LOC_ACTOR0 = 1007130; + static constexpr auto LOC_ACTOR1 = 1007131; + static constexpr auto LOC_POS_ACTOR0 = 4322268; + +public: + SeerFolly() : Sapphire::ScriptAPI::QuestBattleScript( 75 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2005192, 5760474, 4, { -51.493111f, 0.309087f, 71.436897f }, 1.000000f, -0.000006f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( SeerFolly ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/ShadesofShatotto.cpp b/src/scripts/instances/questbattles/ShadesofShatotto.cpp new file mode 100644 index 00000000..84ce8d3f --- /dev/null +++ b/src/scripts/instances/questbattles/ShadesofShatotto.cpp @@ -0,0 +1,53 @@ +#include +#include + +using namespace Sapphire; + +class ShadesofShatotto : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_SHATOTO_01 = 6796562; + static constexpr auto BNPC_MAGICCIRCLE_E01 = 6825338; + static constexpr auto BNPC_ELEMENT_01 = 6826401; + static constexpr auto BNPC_MAGICCIRCLE_G01 = 6826397; + static constexpr auto BNPC_GOLEM_01 = 6825339; + static constexpr auto BNPC_THUNDER_BALL = 6842624; + static constexpr auto EOBJ_ICE_FLOOR = 6842626; + static constexpr auto STATUS_ICE_FLOOR = 2868; + static constexpr auto DEF_ACTION_ICE_FLOOR = 8113; + static constexpr auto DEF_ACTION_THUNDER_BALL = 8114; + static constexpr auto DEF_ACTION_FIREA_MULTI = 8112; + static constexpr auto BNPC_TOUMEI_GTAE_POS1 = 6859149; + static constexpr auto BNPC_TOUMEI_GTAE_POS2 = 6859157; + static constexpr auto BNPC_TOUMEI_GTAE_POS3 = 6859159; + static constexpr auto BNPC_TOUMEI_GTAE_POS4 = 6859163; + static constexpr auto BNPC_TOUMEI_GTAE_POS5 = 6859167; + static constexpr auto BNPC_TOUMEI_GTAE_POS6 = 6859170; + static constexpr auto BNPC_TOUMEI_GTAE_POS7 = 6859172; + static constexpr auto BNPC_TOUMEI_GTAE_POS8 = 6859176; + static constexpr auto BNPC_TOUMEI_GTAE_POS9 = 6859185; + static constexpr auto NCUT_01 = 1526; + +public: + ShadesofShatotto() : Sapphire::ScriptAPI::QuestBattleScript( 162 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( ShadesofShatotto ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/SinkingDoesmaga.cpp b/src/scripts/instances/questbattles/SinkingDoesmaga.cpp new file mode 100644 index 00000000..3206970d --- /dev/null +++ b/src/scripts/instances/questbattles/SinkingDoesmaga.cpp @@ -0,0 +1,77 @@ +#include +#include + +using namespace Sapphire; + +class SinkingDoesmaga : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_01 = 4256368; + static constexpr auto INIT_P_POP_PET = 4256369; + static constexpr auto INIT_POP_A_01 = 4256381; + static constexpr auto INIT_POP_A_02 = 4256382; + static constexpr auto INIT_POP_B_01 = 4256383; + static constexpr auto INIT_POP_BOSS_B = 4256387; + static constexpr auto INIT_POP_C_01 = 4256530; + static constexpr auto INIT_POP_C_02 = 4256531; + static constexpr auto INIT_POP_BOSS_C = 4256540; + static constexpr auto INIT_POP_D_01 = 4256706; + static constexpr auto INIT_POP_C_03 = 4256707; + static constexpr auto INIT_POP_C_04 = 4256708; + static constexpr auto INIT_POP_A_03 = 4256711; + static constexpr auto INIT_POP_A_04 = 4256712; + static constexpr auto INIT_POP_BOSS_A = 4256716; + static constexpr auto INIT_POP_D_02 = 4256717; + static constexpr auto INIT_POP_A_05 = 4256718; + static constexpr auto INIT_POP_E_03 = 4256719; + static constexpr auto INIT_ENPC_POP_01 = 4262403; + static constexpr auto INIT_ENPC_POP_02 = 4262405; + static constexpr auto INIT_ENPC_POP_03 = 4262408; + static constexpr auto INIT_ENPC_POP_04 = 4262411; + static constexpr auto INIT_WARP_POINT = 4263463; + static constexpr auto INIT_MAMONJIN = 4263912; + static constexpr auto LOC_ACTOR0 = 1005198; + static constexpr auto LOC_ACTOR1 = 1005190; + static constexpr auto LOC_POS_ACTOR0 = 4289721; + static constexpr auto LOC_POS_ACTOR1 = 4289778; + static constexpr auto DEF_ACTION_SUMMON_PET_BNPC = 1307; + static constexpr auto STATUS_CUSTOM_BUFF_MAMONJIN = 688; + static constexpr auto BGM_BOSSBATTLE = 113; + static constexpr auto POS_MAMONJIN_POP = 4317127; + static constexpr auto POS_MEMBER_MOVE_01 = 4335442; + static constexpr auto LOGMESSAGE_QIB01 = 3225; + static constexpr auto CUT_START_NCUT = 48; + static constexpr auto CUT_END_NCUT = 49; + static constexpr auto LOC_ACTOR2 = 1005365; + static constexpr auto LOC_ACTOR3 = 1005366; + static constexpr auto LOC_ACTOR4 = 1005367; + static constexpr auto LOC_ACTION1 = 827; + static constexpr auto LOC_FACE0 = 604; + static constexpr auto LOC_FACE1 = 617; + static constexpr auto LOC_FACE2 = 611; + +public: + SinkingDoesmaga() : Sapphire::ScriptAPI::QuestBattleScript( 53 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "sgbg_w_qic_004_01a", 2007457, 6904219, 4, { 5.684449f, 16.347240f, 3.782750f }, 1.000000f, 0.000000f ); + // States -> cage01_close_01 (id: 8) cage01_open_01 (id: 10) cage01_open_02 (id: 11) + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( SinkingDoesmaga ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/SlavetotheCode.cpp b/src/scripts/instances/questbattles/SlavetotheCode.cpp new file mode 100644 index 00000000..092ec284 --- /dev/null +++ b/src/scripts/instances/questbattles/SlavetotheCode.cpp @@ -0,0 +1,78 @@ +#include +#include + +using namespace Sapphire; + +class SlavetotheCode : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_1ST_BOSS_01 = 5039764; + static constexpr auto INIT_POP_1ST_CNJ_01 = 5039765; + static constexpr auto INIT_POP_1ST_LNC_01 = 5039766; + static constexpr auto INIT_POP_2ST_LNC_01 = 5039758; + static constexpr auto INIT_POP_2ST_LNC_02 = 5039759; + static constexpr auto INIT_POP_2ST_DODO_01 = 5039760; + static constexpr auto INIT_POP_2ST_DODO_02 = 5039761; + static constexpr auto INIT_POP_2ST_DODO_03 = 5039762; + static constexpr auto INIT_POP_2ST_DODO_04 = 5039763; + static constexpr auto INIT_POP_3ST_LNC_01 = 5039767; + static constexpr auto INIT_POP_3ST_LNC_02 = 5039768; + static constexpr auto INIT_POP_3ST_DODO_01 = 5039769; + static constexpr auto INIT_POP_3ST_DODO_02 = 5039770; + static constexpr auto INIT_POP_3ST_DODO_03 = 5039773; + static constexpr auto INIT_POP_3ST_DODO_04 = 5039776; + static constexpr auto INIT_POP_4ST_LNC_01 = 5039787; + static constexpr auto INIT_POP_4ST_DODO_01 = 5039788; + static constexpr auto INIT_POP_4ST_DODO_02 = 5039789; + static constexpr auto INIT_POP_5ST_LNC_01 = 5039792; + static constexpr auto INIT_POP_5ST_LNC_02 = 5039793; + static constexpr auto INIT_POP_5ST_DODO_01 = 5039794; + static constexpr auto INIT_POP_5ST_DODO_02 = 5039795; + static constexpr auto INIT_POP_5ST_DODO_03 = 5071259; + static constexpr auto INIT_POP_5ST_DODO_04 = 5071260; + static constexpr auto INIT_P_POP_1ST_JACKE_01 = 5039796; + static constexpr auto BNPC_PERIMU = 5039790; + static constexpr auto BNPC_VKEBBE = 5039791; + static constexpr auto BEHAVIOR_LOOK_AROUND = 30470; + static constexpr auto LCUT_ACTOR0 = 1010200; + static constexpr auto LCUT_ACTOR1 = 1010231; + static constexpr auto LCUT_ACTOR2 = 1010232; + static constexpr auto LCUT_ACTOR3 = 1010233; + static constexpr auto LCUT_ACTOR4 = 1010234; + static constexpr auto LCUT_ACTOR5 = 1010235; + static constexpr auto LCUT_ACTOR6 = 1010236; + static constexpr auto LCUT_POS0 = 5351202; + static constexpr auto LCUT_POS1 = 5110374; + static constexpr auto LCUT_POS2 = 5122283; + static constexpr auto LCUT_POS3 = 5351312; + static constexpr auto LCUT_ACTION0 = 983; + static constexpr auto LCUT_ACTION1 = 985; + static constexpr auto LCUT_BGM1 = 78; + static constexpr auto LCUT_BGM2 = 39; + +public: + SlavetotheCode() : Sapphire::ScriptAPI::QuestBattleScript( 92 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "Entrance", 2000182, 6228959, 5, { 457.583801f, 5.680784f, 280.512787f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "unknown_0", 2000608, 2807920, 4, { -95.322441f, -25.054260f, 61.518002f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( SlavetotheCode ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/SlingsandArrows.cpp b/src/scripts/instances/questbattles/SlingsandArrows.cpp new file mode 100644 index 00000000..05942dbf --- /dev/null +++ b/src/scripts/instances/questbattles/SlingsandArrows.cpp @@ -0,0 +1,110 @@ +#include +#include + +using namespace Sapphire; + +class SlingsandArrows : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto ENPC_HINT_01 = 5901612; + static constexpr auto ENPC_HINT_02 = 5901615; + static constexpr auto ENPC_FAKE_LUNA_A = 5901619; + static constexpr auto ENPC_FAKE_LUNA_B = 5901620; + static constexpr auto ENPC_FAKE_LUNA_C = 5901621; + static constexpr auto ENPC_TRUE_LUNA = 5901622; + static constexpr auto EOBJ_HINT_01 = 5901646; + static constexpr auto EOBJ_HINT_02 = 5901650; + static constexpr auto EOBJ_FAKE_LUNA_A = 5901653; + static constexpr auto EOBJ_FAKE_LUNA_B = 5901657; + static constexpr auto EOBJ_TRUE_LUNA = 5901659; + static constexpr auto EOBJ_FAKE_LUNA_C = 5901660; + static constexpr auto P_BNPC_SEBAS_SEARCH_01 = 5901666; + static constexpr auto BNPC_FAKE_LUNA_A = 5901667; + static constexpr auto BNPC_FAKE_LUNA_B = 5901686; + static constexpr auto BNPC_FAKE_LUNA_C = 5901687; + static constexpr auto P_BNPC_TRUE_LUNA_SEARCH_01 = 5901688; + static constexpr auto BNPC_WAVE01_BOSS_01 = 5901694; + static constexpr auto BNPC_WAVE01_MRD_01 = 5901711; + static constexpr auto BNPC_WAVE01_PGL_01 = 5901712; + static constexpr auto BNPC_WAVE01_PGL_02 = 5901713; + static constexpr auto MOVE_BOSS_POINT_01 = 5901717; + static constexpr auto P_BNPC_LUNA_BOSSBATTLE_01 = 5901722; + static constexpr auto P_BNPC_SEBAS_BOSSBATTLE_01 = 5901726; + static constexpr auto PR_POINT_BOSSBATTLE_01 = 5901727; + static constexpr auto BNPC_WAVE02_CNJ_01 = 5901733; + static constexpr auto BNPC_WAVE02_PGL_01 = 5901734; + static constexpr auto BNPC_WAVE02_PGL_02 = 5901735; + static constexpr auto BNPC_WAVE02_LNC_01 = 5901737; + static constexpr auto BNPC_WAVE02_LNC_02 = 5901738; + static constexpr auto BNPC_ADD_CAR_01 = 5901740; + static constexpr auto P_BNPC_BROENBHAR_01 = 5901799; + static constexpr auto P_BNPC_VKEBBE_01 = 5901801; + static constexpr auto EVENT_ACTION_01 = 45; + static constexpr auto YELL_QIB_HINT_01 = 2684; + static constexpr auto YELL_QIB_HINT_02 = 2685; + static constexpr auto YELL_QIB_FAKE_LUNA_A_01 = 2686; + static constexpr auto YELL_QIB_CARK_SEBAS_01 = 2687; + static constexpr auto YELL_QIB_W_LUNA_SEBAS_01 = 2689; + static constexpr auto YELL_QIB_FAKE_LUNA_C_01 = 2690; + static constexpr auto YELL_QIB_TRUE_LUNA_01 = 2691; + static constexpr auto MOVE_FAKELUNA_B_POINT_01 = 5904735; + static constexpr auto BEHAVIOR_SQUAT = 30405; + static constexpr auto BEHAVIOR_NORMAL = 30064; + static constexpr auto BEHAVIOR_FRIGHT = 30488; + static constexpr auto ER_RECT_01 = 5906002; + static constexpr auto ER_RECT_02 = 5917465; + static constexpr auto MOVE_BATTLE_END_POINT_01 = 5906882; + static constexpr auto NCUT_01 = 983; + static constexpr auto NCUT_02 = 984; + static constexpr auto EVENT_ACTION_02 = 15; + static constexpr auto MOVE_FAKELUNA_C_POINT_01 = 5905958; + static constexpr auto BGM_BATTLE = 39; + static constexpr auto ACTION_SUMMON = 1307; + static constexpr auto LOC_ACTOR_REYNER = 1003835; + static constexpr auto LOC_ACTOR_CARVA = 1010427; + static constexpr auto LOC_ACTOR_LEVE = 1014684; + static constexpr auto LOC_ACTOR_QUIMP = 1014685; + static constexpr auto LOC_LEVEL_CARVA = 5927599; + static constexpr auto LOC_POINT_LEVE = 5927505; + static constexpr auto LOC_POINT_END = 5927507; + static constexpr auto LOC_ACTOR_CELIE = 1014690; + static constexpr auto LOC_ACTION_BASE_01 = 981; + static constexpr auto LOC_ACTION_BASE_02 = 936; + static constexpr auto LOC_ACTOR_PIR_01 = 1015155; + static constexpr auto LOC_ACTOR_PIR_02 = 1015156; + static constexpr auto LOC_ACTOR_PIR_03 = 1015157; + static constexpr auto BEHAVIOR_TALK = 30085; + static constexpr auto LOC_POINT_2ND_START = 5958830; + static constexpr auto LOC_LOG_MES_WIND = 5343; + static constexpr auto BNPC_BASE_CARBUNCLE = 4770; + static constexpr auto ACTION_TIMELINE_FACIAL_COMEON = 608; + static constexpr auto ACTION_TIMELINE_EVENT_BASE_BAD_STAND = 827; + static constexpr auto LOC_ACTOR0 = 1005093; + static constexpr auto LOC_ACTOR1 = 1005094; + static constexpr auto ACTION_TIMELINE_EVENT_SIGH = 4229; + +public: + SlingsandArrows() : Sapphire::ScriptAPI::QuestBattleScript( 144 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "Companychest", 2000470, 4255757, 4, { 90.371834f, 41.346722f, 60.735680f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Huntboard", 2004438, 4887771, 4, { 94.366341f, 40.247021f, 60.480110f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( SlingsandArrows ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/SoundingOuttheAmphitheatre.cpp b/src/scripts/instances/questbattles/SoundingOuttheAmphitheatre.cpp new file mode 100644 index 00000000..70710a17 --- /dev/null +++ b/src/scripts/instances/questbattles/SoundingOuttheAmphitheatre.cpp @@ -0,0 +1,99 @@ +#include +#include + +using namespace Sapphire; + +class SoundingOuttheAmphitheatre : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto LOC_MARKER_0 = 5855126; + static constexpr auto LOC_ACTOR_0 = 1012442; + static constexpr auto LOC_ACTOR_1 = 1012443; + static constexpr auto LOC_ACTOR_2 = 1009991; + static constexpr auto LOC_ACTOR_3 = 1009991; + static constexpr auto LOC_ACTOR_4 = 1009991; + static constexpr auto LOC_ACTOR_5 = 1009991; + static constexpr auto INIT_POP_COMPANION_BNPC_ALPHINAUD = 5855526; + static constexpr auto INIT_POP_COMPANION_BNPC_ESTINIEN = 5855527; + static constexpr auto INIT_POP_ENEMY_BNPC_P1_A_ZAKO_KEN = 5855123; + static constexpr auto INIT_POP_ENEMY_BNPC_P1_A_ZAKO_YARI = 5855522; + static constexpr auto INIT_POP_ENEMY_BNPC_P1_B_ZAKO_JU = 5855524; + static constexpr auto INIT_POP_ENEMY_BNPC_P1_B_ZAKO_GEN = 5855525; + static constexpr auto SECOND_POP_ENEMY_BNPC_P2_C_ZAKO_JU = 5855542; + static constexpr auto SECOND_POP_ENEMY_BNPC_P2_C_ZAKO_KEN_DRAGON = 5855541; + static constexpr auto SECOND_POP_ENEMY_BNPC_P2_D_ZAKO_GEN = 5855544; + static constexpr auto SECOND_POP_ENEMY_BNPC_P2_D_ZAKO_KEN_DRAGON = 5855543; + static constexpr auto THIRD_POP_ENEMY_BNPC_P3_E_ZAKO_KEN_DRAGON = 5855643; + static constexpr auto THIRD_POP_ENEMY_BNPC_P3_E_ZAKO_JU = 5855644; + static constexpr auto THIRD_POP_ENEMY_BNPC_P3_F_ZAKO_KEN_DRAGON = 5855648; + static constexpr auto THIRD_POP_ENEMY_BNPC_P3_F_BOSS = 5855647; + static constexpr auto FOURTH_POP_ENEMY_BNPC_P4_G_ZAKO_KEN_DRAGON = 5855691; + static constexpr auto FOURTH_POP_ENEMY_BNPC_P4_G_ZAKO_JU = 5855698; + static constexpr auto INIT_POP_ENEMY_BNPC_GIMMIC_TRANS_BATTALION_NOLOG_NOHIT_01 = 5855582; + static constexpr auto INIT_POP_ENEMY_BNPC_GIMMIC_TRANS_BATTALION_NOLOG_NOHIT_02 = 5855591; + static constexpr auto INIT_POP_ENEMY_BNPC_GIMMIC_TRANS_BATTALION_NOLOG_NOHIT_03 = 5855593; + static constexpr auto INIT_POP_ENEMY_BNPC_GIMMIC_TRANS_BATTALION_NOLOG_NOHIT_04 = 5855594; + static constexpr auto INIT_POP_ENEMY_BNPC_GIMMIC_TRANS_BATTALION_NOLOG_NOHIT_05 = 5855595; + static constexpr auto INIT_POP_ENEMY_BNPC_GIMMIC_TRANS_BATTALION_NOLOG_NOHIT_06 = 5855596; + static constexpr auto INIT_POP_ENEMY_BNPC_GIMMIC_TRANS_BATTALION_NOLOG_NOHIT_07 = 5855597; + static constexpr auto INIT_POP_ENEMY_BNPC_GIMMIC_TRANS_BATTALION_NOLOG_NOHIT_08 = 5855598; + static constexpr auto INIT_POP_ENEMY_BNPC_GIMMIC_TRANS_BATTALION_NOLOG_NOHIT_09 = 5855613; + static constexpr auto INIT_POP_ENEMY_BNPC_GIMMIC_TRANS_BATTALION_NOLOG_NOHIT_10 = 5855618; + static constexpr auto INIT_POP_ENEMY_BNPC_GIMMIC_TRANS_BATTALION_NOLOG_NOHIT_11 = 5855626; + static constexpr auto INIT_POP_ENEMY_BNPC_GIMMIC_TRANS_BATTALION_NOLOG_NOHIT_12 = 5855629; + static constexpr auto INIT_POP_ENEMY_BNPC_GIMMIC_TRANS_BATTALION_NOLOG_NOHIT_13 = 5855630; + static constexpr auto LOC_MARKER0 = 5855126; + static constexpr auto LOC_ACTOR0 = 1013665; + static constexpr auto LOC_ACTOR1 = 1013666; + static constexpr auto LOC_ACTOR2 = 1013667; + static constexpr auto LOC_ACTOR3 = 1013668; + static constexpr auto LOC_ACTOR4 = 1013669; + static constexpr auto LOC_ACTOR5 = 1013670; + static constexpr auto ACTION_TRANSFORM_TO_DRAG = 3930; + static constexpr auto ACTION_TRANSFORM_TO_MSHUFUSHU = 3994; + static constexpr auto QIB_YELL_01 = 2652; + static constexpr auto QIB_YELL_02 = 2653; + static constexpr auto STATUS_PARAM_DAMAGE_UP = 385; + static constexpr auto LOC_ACTION_HAX = 934; + static constexpr auto LOC_ACTION_HAX_BASE = 936; + static constexpr auto PLAY_BGM_LCUT_DRAGON = 314; + static constexpr auto PLAY_BGM_LCUT_HANYOB = 16; + static constexpr auto PLAY_BGM_LCUT_DRAGONWAR = 316; + +public: + SoundingOuttheAmphitheatre() : Sapphire::ScriptAPI::QuestBattleScript( 108 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2004238, 4772738, 4, { -1.210436f, 0.000000f, -0.715586f }, 1.000000f, 0.000000f ); + instance.registerEObj( "sgvf_r1fc_b0472", 2004239, 4797573, 4, { 1.181316f, -0.000000f, 1.563968f }, 1.000000f, 0.000000f ); + // States -> wind_def (id: 2) wind_def_anim (id: 3) wind_pop (id: 4) wind_pop_anim (id: 5) + instance.registerEObj( "sgvf_r1fc_b0471", 2004240, 4841629, 4, { 11.000000f, 0.000000f, -11.000000f }, 1.000000f, 0.793709f ); + // States -> magi_def (id: 2) magi_def_anim (id: 3) magi_pop (id: 4) magi_pop_anim (id: 5) + instance.registerEObj( "sgvf_r1fc_b0471_1", 2004349, 4841631, 4, { 12.811310f, -0.000000f, 9.376424f }, 1.000000f, 0.000000f ); + // States -> magi_def (id: 2) magi_def_anim (id: 3) magi_pop (id: 4) magi_pop_anim (id: 5) + instance.registerEObj( "sgvf_r1fc_b0471_2", 2004350, 4841632, 4, { -8.033875f, 0.000000f, 10.406790f }, 1.000000f, 0.000000f ); + // States -> magi_def (id: 2) magi_def_anim (id: 3) magi_pop (id: 4) magi_pop_anim (id: 5) + instance.registerEObj( "sgvf_r1fc_b0471_3", 2004351, 4841633, 4, { -8.319038f, -0.000001f, -10.997720f }, 1.000000f, 0.000000f ); + // States -> magi_def (id: 2) magi_def_anim (id: 3) magi_pop (id: 4) magi_pop_anim (id: 5) + instance.registerEObj( "Entrance", 2000182, 4738599, 5, { 9.717670f, 0.000000f, 14.522430f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "Exit", 2000139, 0, 4, { 0.000000f, 0.000000f, -15.000000f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( SoundingOuttheAmphitheatre ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/SpearheadingInitiatives.cpp b/src/scripts/instances/questbattles/SpearheadingInitiatives.cpp new file mode 100644 index 00000000..955d7a60 --- /dev/null +++ b/src/scripts/instances/questbattles/SpearheadingInitiatives.cpp @@ -0,0 +1,132 @@ +#include +#include + +using namespace Sapphire; + +class SpearheadingInitiatives : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_ENEMY_KNIGHT_GLA_01 = 5877179; + static constexpr auto BNPC_ENEMY_KNIGHT_GLA_02 = 5881584; + static constexpr auto BNPC_ENEMY_KNIGHT_GLA_03 = 5881585; + static constexpr auto BNPC_ENEMY_KNIGHT_GLA_04 = 5881586; + static constexpr auto BNPC_ENEMY_KNIGHT_LAN_01 = 5881580; + static constexpr auto BNPC_ENEMY_KNIGHT_LAN_02 = 5881581; + static constexpr auto BNPC_ENEMY_KNIGHT_LAN_03 = 5881582; + static constexpr auto BNPC_ENEMY_KNIGHT_LAN_04 = 5881583; + static constexpr auto BNPC_ENEMY_KNIGHT_LEADER = 5881577; + static constexpr auto BNPC_ENEMY_KNIGHT_CNJ_01 = 5881640; + static constexpr auto BNPC_COMPANION_LUNA = 5881587; + static constexpr auto BNPC_COMPANION_SEBASTIAN = 5881588; + static constexpr auto BNPC_COMPANION_AVAN = 5881589; + static constexpr auto BNPC_WAY_STOP_01 = 5881591; + static constexpr auto BNPC_WAY_STOP_02 = 5881592; + static constexpr auto BNPC_WAY_STOP_03 = 5881593; + static constexpr auto BNPC_WAY_STOP_04 = 5881594; + static constexpr auto BNPC_WAY_STOP_05 = 5882011; + static constexpr auto BNPC_WAY_STOP_06 = 5882015; + static constexpr auto BNPC_WAY_STOP_07 = 5882018; + static constexpr auto BNPC_WAY_STOP_08 = 5882022; + static constexpr auto BNPC_WAY_STOP_09 = 5882026; + static constexpr auto BNPC_WAY_STOP_10 = 5882226; + static constexpr auto BNPC_WAY_STOP_11 = 5883637; + static constexpr auto BNPC_WAY_STOP_12 = 5883639; + static constexpr auto BNPC_WAY_STOP_13 = 5883646; + static constexpr auto BNPC_OGRE_01 = 5881763; + static constexpr auto BNPC_OGRE_02 = 5881764; + static constexpr auto BNPC_OGRE_03 = 5883276; + static constexpr auto BNPC_OGRE_04 = 5883279; + static constexpr auto BNPC_ABIS_01 = 5883269; + static constexpr auto BNPC_ABIS_02 = 5883270; + static constexpr auto ACTION_SCRIPT_TRIGGER_JIBAKU = 4731; + static constexpr auto ACTION_SCRIPT_TRIGGER = 3269; + static constexpr auto ACTION_CIRCLE_OF_DOOM = 23; + static constexpr auto CHANNELING_LUNA_KOUSOKU = 42; + static constexpr auto YELL_QIB_01 = 2622; + static constexpr auto YELL_QIB_02 = 2623; + static constexpr auto YELL_QIB_03 = 2624; + static constexpr auto YELL_QIB_04 = 2625; + static constexpr auto YELL_QIB_05 = 2626; + static constexpr auto YELL_QIB_06 = 2627; + static constexpr auto YELL_QIB_07 = 2628; + static constexpr auto YELL_QIB_08 = 2629; + static constexpr auto YELL_QIB_09 = 2630; + static constexpr auto YELL_QIB_10 = 2631; + static constexpr auto YELL_QIB_11 = 2632; + static constexpr auto YELL_QIB_12 = 2633; + static constexpr auto YELL_QIB_13 = 2634; + static constexpr auto POP_RANGE_MONSTER_BATTLE_MOVE_01 = 5881758; + static constexpr auto POP_RANGE_MONSTER_BATTLE_MOVE_02 = 5883272; + static constexpr auto POP_RANGE_MONSTER_BATTLE_MOVE_03 = 5883281; + static constexpr auto EVENT_RANGE_START_NCUT_BEFORE_BOSS = 5883703; + static constexpr auto BNPC_ENEMY_BOSS = 5883726; + static constexpr auto BNPC_ENEMY_KNIGHT_BOSS_LAN_01 = 5883752; + static constexpr auto BNPC_ENEMY_KNIGHT_BOSS_LAN_02 = 5883754; + static constexpr auto BNPC_ENEMY_KNIGHT_BOSS_LAN_03 = 5883756; + static constexpr auto BNPC_ENEMY_KNIGHT_BOSS_GLA_01 = 5883758; + static constexpr auto BNPC_ENEMY_KNIGHT_BOSS_GLA_02 = 5883760; + static constexpr auto BNPC_ENEMY_KNIGHT_BOSS_CNJ_01 = 5883762; + static constexpr auto BNPC_COMPANION_BOSS_LUNA = 5883781; + static constexpr auto BNPC_COMPANION_BOSS_SEBASTIAN = 5883782; + static constexpr auto BNPC_COMPANION_BOSS_AVAN = 5883783; + static constexpr auto POP_RANGE_PLAYER_START_FOR_BOSS = 5883784; + static constexpr auto BGM_BOSS_BATTLE = 91; + static constexpr auto POP_RANGE_REST_MOVE_01 = 5885177; + static constexpr auto EOBJ_SHOKAN = 5883708; + static constexpr auto EVENT_ACTION_01 = 3; + static constexpr auto BNPC_ENEMY_KNIGHT_BOSS_LEADER = 5885849; + static constexpr auto NCUT_01 = 986; + static constexpr auto LOC_ACTOR_JANE = 1014691; + static constexpr auto LOC_ACTOR_QUIMP = 1014685; + static constexpr auto LOC_ACTOR_LEVE = 1014684; + static constexpr auto LOC_ACTOR_KNIGHT_L = 1015071; + static constexpr auto LOC_ACTOR_KNIGHT_01 = 1015196; + static constexpr auto LOC_ACTOR_KNIGHT_02 = 1014697; + static constexpr auto LOC_LEVEL_LEVE = 5933335; + static constexpr auto LOC_LEVEL_QUIMP = 5933337; + static constexpr auto LOC_LEVEL_JANE = 5933336; + static constexpr auto LOC_LEVEL_START = 5935466; + static constexpr auto MOT_EVENT_LOOK_WEAPON = 1064; + static constexpr auto LOC_BGM0 = 117; + static constexpr auto LOC_LEVEL_MOG = 5935584; + +public: + SpearheadingInitiatives() : Sapphire::ScriptAPI::QuestBattleScript( 119 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "sgbg_w_qic_001_04a", 2006993, 6235274, 4, { -35.822102f, 298.899994f, -205.263199f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_0", 2006952, 0, 4, { -35.712589f, 298.899994f, -204.878006f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Exit", 2000139, 0, 4, { 556.049377f, 348.102509f, -752.435730f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Entrance", 2000182, 4600289, 5, { 523.532471f, 348.223389f, -736.685730f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "unknown_1", 2002332, 0, 4, { 533.090881f, 348.691895f, -742.750916f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_2", 2002333, 0, 4, { 539.940430f, 348.836395f, -734.401489f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_3", 2000608, 3967803, 4, { 202.369598f, 257.761108f, 80.435272f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_4", 2000608, 3976993, 4, { 273.634705f, 254.600204f, 106.048500f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_5", 2000608, 3986797, 4, { 205.504898f, 246.188995f, 194.875702f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_6", 2000608, 3986798, 4, { 326.313385f, 239.193497f, 221.138901f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_7", 2000608, 2718481, 4, { 240.552307f, 302.769714f, -199.979996f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_8", 2000608, 4065433, 4, { 204.970001f, 302.119995f, -216.311600f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_9", 2000608, 2814617, 4, { 205.869995f, 302.219086f, -276.681396f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_10", 2000608, 2763112, 4, { -433.000000f, 211.007706f, -216.148605f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_11", 2000608, 4187649, 4, { -453.000000f, 211.000000f, -281.046600f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_12", 2000608, 4187961, 4, { -416.000000f, 210.788193f, -279.813812f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( SpearheadingInitiatives ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/SpiritholdBroken.cpp b/src/scripts/instances/questbattles/SpiritholdBroken.cpp new file mode 100644 index 00000000..e81ab4a7 --- /dev/null +++ b/src/scripts/instances/questbattles/SpiritholdBroken.cpp @@ -0,0 +1,42 @@ +#include +#include + +using namespace Sapphire; + +class SpiritholdBroken : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_01 = 3869528; + static constexpr auto LOC_POS_ACTOR0 = 3884691; + static constexpr auto LOC_POS_ACTOR1 = 3884694; + static constexpr auto LOC_ACTOR0 = 1003064; + static constexpr auto BNPC_NAME_01 = 750; + static constexpr auto DEF_ACTION_SAND_BREATH = 445; + static constexpr auto DEF_BLIND = 15; + static constexpr auto CUT_SCENE_01 = 69; + static constexpr auto LOC_TALKSHAPE1 = 8; + +public: + SpiritholdBroken() : Sapphire::ScriptAPI::QuestBattleScript( 15 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2005192, 5760474, 4, { -51.493111f, 0.309087f, 71.436897f }, 1.000000f, -0.000006f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( SpiritholdBroken ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/StainedinScarlet.cpp b/src/scripts/instances/questbattles/StainedinScarlet.cpp new file mode 100644 index 00000000..89a49510 --- /dev/null +++ b/src/scripts/instances/questbattles/StainedinScarlet.cpp @@ -0,0 +1,68 @@ +#include +#include + +using namespace Sapphire; + +class StainedinScarlet : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto P_BNPC_ARIA = 6798100; + static constexpr auto BNPC_BOSS = 6798104; + static constexpr auto BNPC_THA_01 = 6798106; + static constexpr auto BNPC_THA_02 = 6798107; + static constexpr auto ENPC_SIRUN = 6798148; + static constexpr auto LOCKON_SHARE = 62; + static constexpr auto STATUS_VULNERABILITY = 202; + static constexpr auto ACTION_DARK_SHARE = 8009; + static constexpr auto BNPC_TOUMEI_ACTION_01 = 6829291; + static constexpr auto BNPC_TOUMEI_ACTION_02 = 6829292; + static constexpr auto BNPC_TOUMEI_ACTION_03 = 6829293; + static constexpr auto ACTION_FLARE = 1305; + static constexpr auto STATUS_KNOCKOUT = 625; + static constexpr auto STATUS_PAIN = 273; + static constexpr auto P_BNPC_TOUMEI_NOACTION_01 = 6829531; + static constexpr auto P_BNPC_TOUMEI_NOACTION_02 = 6829532; + static constexpr auto P_BNPC_TOUMEI_NOACTION_03 = 6829533; + static constexpr auto P_BNPC_TOUMEI_NOACTION_04 = 6829534; + static constexpr auto P_BNPC_TOUMEI_NOACTION_05 = 6829535; + static constexpr auto P_BNPC_TOUMEI_NOACTION_06 = 6829536; + static constexpr auto P_BNPC_TOUMEI_NOACTION_07 = 6829537; + static constexpr auto P_BNPC_TOUMEI_NOACTION_08 = 6829538; + static constexpr auto ACTION_LMBARD_DRAIN = 8018; + static constexpr auto STATUS_HURT = 1256; + static constexpr auto BNPC_FIREBALL_01 = 6829601; + static constexpr auto BNPC_FIREBALL_02 = 6829602; + static constexpr auto BNPC_FIREBALL_03 = 6829603; + static constexpr auto BNPC_FIREBALL_04 = 6829604; + static constexpr auto BNPC_FIREBALL_05 = 6829605; + static constexpr auto BNPC_FIREBALL_06 = 6829606; + static constexpr auto BNPC_FIREBALL_07 = 6829607; + static constexpr auto BNPC_FIREBALL_08 = 6829608; + static constexpr auto ACTION_LMBARD_SUMMON_FIREBALL = 8020; + static constexpr auto ACTION_FIREBALL_EXPLODE = 8019; + static constexpr auto QIB_YELL_01 = 4765; + static constexpr auto ACTION_REDMAGE_HEAL = 7882; + +public: + StainedinScarlet() : Sapphire::ScriptAPI::QuestBattleScript( 165 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( StainedinScarlet ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/StarcrossedRivals.cpp b/src/scripts/instances/questbattles/StarcrossedRivals.cpp new file mode 100644 index 00000000..66fc90b3 --- /dev/null +++ b/src/scripts/instances/questbattles/StarcrossedRivals.cpp @@ -0,0 +1,51 @@ +#include +#include + +using namespace Sapphire; + +class StarcrossedRivals : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_01 = 4082301; + static constexpr auto INIT_POP_BOSS = 4082299; + static constexpr auto INIT_POP_01A_01 = 4082315; + static constexpr auto INIT_POP_01A_02 = 4082316; + static constexpr auto INIT_POP_01A_03 = 4082317; + static constexpr auto INIT_POP_02A_01 = 4082311; + static constexpr auto INIT_POP_02A_02 = 4082312; + static constexpr auto INIT_POP_02B_01 = 4082314; + static constexpr auto INIT_POP_03C_01 = 4082323; + static constexpr auto BNPC_01_A_TYPE = 700; + static constexpr auto LOC_POS_ACTOR0 = 4083826; + static constexpr auto LOC_POS_ACTOR1 = 4083827; + static constexpr auto LOC_ACTOR0 = 1003827; + static constexpr auto LOC_ACTOR1 = 1006011; + static constexpr auto LOC_BNPC0 = 1004482; + static constexpr auto LOC_ACTION1 = 934; + static constexpr auto LOC_FACE0 = 604; + static constexpr auto LOC_FACE1 = 617; + static constexpr auto DEF_ACTION_MONSTER_WHISTLE = 983; + +public: + StarcrossedRivals() : Sapphire::ScriptAPI::QuestBattleScript( 32 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( StarcrossedRivals ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/StifledScreams.cpp b/src/scripts/instances/questbattles/StifledScreams.cpp new file mode 100644 index 00000000..6144a7d0 --- /dev/null +++ b/src/scripts/instances/questbattles/StifledScreams.cpp @@ -0,0 +1,102 @@ +#include +#include + +using namespace Sapphire; + +class StifledScreams : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_YEL_01 = 5041137; + static constexpr auto INIT_POP_YEL_02 = 5041138; + static constexpr auto INIT_POP_YEL_03 = 5041139; + static constexpr auto INIT_POP_YEL_04 = 5041140; + static constexpr auto INIT_POP_YEL_05 = 5041141; + static constexpr auto INIT_POP_YEL_06 = 5041142; + static constexpr auto INIT_POP_YEL_07 = 5041143; + static constexpr auto INIT_POP_YEL_08 = 5041144; + static constexpr auto INIT_POP_YEL_09 = 5041145; + static constexpr auto INIT_POP_YEL_10 = 5041146; + static constexpr auto INIT_POP_ADV_01 = 5041156; + static constexpr auto INIT_POP_ADV_02 = 5041160; + static constexpr auto INIT_POP_ADV_03 = 5041168; + static constexpr auto INIT_POP_ADV_04 = 5041169; + static constexpr auto INIT_POP_ADV_05 = 5041171; + static constexpr auto INIT_POP_ADV_06 = 5041172; + static constexpr auto INIT_POP_ADV_07 = 5041173; + static constexpr auto INIT_POP_ADV_08 = 5041174; + static constexpr auto INIT_POP_ADV_09 = 5041175; + static constexpr auto INIT_POP_ADV_10 = 5041176; + static constexpr auto INIT_POP_ADV_11 = 5041177; + static constexpr auto INIT_POP_ADV_12 = 5041180; + static constexpr auto INIT_POP_ADV_13 = 5041182; + static constexpr auto INIT_POP_ADV_14 = 5041183; + static constexpr auto INIT_POP_TAR_01 = 5041184; + static constexpr auto INIT_POP_TAR_02 = 5041185; + static constexpr auto INIT_POP_TAR_03 = 5041186; + static constexpr auto INIT_ENPC_GIL_01 = 5040879; + static constexpr auto INIT_ENPC_SLV_01 = 5040881; + static constexpr auto INIT_ENPC_SLV_02 = 5040882; + static constexpr auto INIT_ENPC_SLV_03 = 5040883; + static constexpr auto INIT_ENPC_SLV_04 = 5040885; + static constexpr auto INIT_ENPC_SLV_05 = 5040888; + static constexpr auto INIT_ENPC_SLV_06 = 5040890; + static constexpr auto INIT_POP_EOBJ_01 = 5041583; + static constexpr auto INIT_POP_EOBJ_02 = 5041584; + static constexpr auto INIT_POP_EOBJ_03 = 5041585; + static constexpr auto INIT_POP_EOBJ_04 = 5041586; + static constexpr auto INIT_POP_EOBJ_05 = 5041588; + static constexpr auto INIT_POP_EOBJ_06 = 5041589; + static constexpr auto BNPC_001 = 3399; + static constexpr auto BNPC_002 = 3400; + static constexpr auto BNPC_003 = 3401; + static constexpr auto BNPC_004 = 3402; + static constexpr auto INIT_P_POP_GIL_01 = 5041694; + static constexpr auto INIT_POP_TAR_ADD_01 = 5041695; + static constexpr auto INIT_POP_TAR_ADD_02 = 5041696; + static constexpr auto QIB_YELL_03 = 2322; + static constexpr auto QIB_YELL_04 = 2323; + static constexpr auto QIB_YELL_05 = 2324; + static constexpr auto QIB_YELL_07 = 2326; + static constexpr auto QIB_YELL_08 = 2333; + static constexpr auto QIB_YELL_09 = 2334; + static constexpr auto EVENT_ACTION_01 = 16; + static constexpr auto POP_RANGE_GUILD_MASTER_MOVE = 5048506; + static constexpr auto BGM_LASTHALF = 39; + static constexpr auto BEHAVIOR_CLAMOR = 30469; + static constexpr auto BEHAVIOR_CLAMOR_A = 30490; + static constexpr auto BEHAVIOR_CLAMOR_B = 30491; + static constexpr auto LCUT_ACTOR0 = 1010200; + static constexpr auto LCUT_ACTOR1 = 1010224; + static constexpr auto LCUT_ACTOR2 = 1010225; + static constexpr auto LCUT_POS0 = 5110371; + static constexpr auto LCUT_POS1 = 5110372; + static constexpr auto LCUT_POS2 = 5106386; + static constexpr auto LCUT_ACTION0 = 918; + static constexpr auto BEHAVIOR_CLAMOR_C = 30487; + +public: + StifledScreams() : Sapphire::ScriptAPI::QuestBattleScript( 91 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "Entrance", 2000182, 6228959, 5, { 457.583801f, 5.680784f, 280.512787f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "unknown_0", 2000608, 2807920, 4, { -95.322441f, -25.054260f, 61.518002f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( StifledScreams ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/StrayintotheShadows.cpp b/src/scripts/instances/questbattles/StrayintotheShadows.cpp new file mode 100644 index 00000000..a1e98522 --- /dev/null +++ b/src/scripts/instances/questbattles/StrayintotheShadows.cpp @@ -0,0 +1,80 @@ +#include +#include + +using namespace Sapphire; + +class StrayintotheShadows : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_1ST_EXC_01 = 5032415; + static constexpr auto INIT_POP_1ST_EXC_02 = 5032416; + static constexpr auto INIT_POP_1ST_EXC_03 = 5032417; + static constexpr auto INIT_POP_1ST_EXC_04 = 5032418; + static constexpr auto INIT_POP_2ST_ARC_01 = 5032445; + static constexpr auto INIT_POP_2ST_ARC_02 = 5032446; + static constexpr auto INIT_POP_2ST_EXC_01 = 5032447; + static constexpr auto BNPC_VK_BAIT_1 = 5032448; + static constexpr auto INIT_POP_3ST_EXC_02 = 5032449; + static constexpr auto INIT_POP_3ST_EXC_03 = 5032453; + static constexpr auto INIT_POP_3ST_EXC_04 = 5032454; + static constexpr auto INIT_POP_3ST_EXC_05 = 5032455; + static constexpr auto INIT_POP_3ST_EXC_06 = 5032456; + static constexpr auto INIT_POP_3ST_ARC_01 = 5032457; + static constexpr auto BNPC_VK_BAIT_2 = 5032458; + static constexpr auto INIT_POP_3ST_ARC_03 = 5032459; + static constexpr auto INIT_POP_3ST_ARC_04 = 5032460; + static constexpr auto INIT_POP_3ST_ARC_05 = 5032461; + static constexpr auto INIT_POP_3ST_ARC_06 = 5032462; + static constexpr auto INIT_POP_3ST_ARC_07 = 5032463; + static constexpr auto INIT_POP_3ST_ARC_08 = 5032464; + static constexpr auto INIT_P_POP_VAK_01 = 5032444; + static constexpr auto INIT_ENPC_VAK_01 = 5032411; + static constexpr auto INIT_ENPC_MAR_01 = 5032420; + static constexpr auto INIT_ENPC_MAR_02 = 5032855; + static constexpr auto INIT_ENPC_YEL_01 = 5032422; + static constexpr auto INIT_POP_EOBJ_01 = 5032470; + static constexpr auto EVENT_ACTION_01 = 32; + static constexpr auto EVENT_ACTION_02 = 45; + static constexpr auto ER_RECT_01 = 5038527; + static constexpr auto BGM_LASTHALF = 39; + static constexpr auto POP_RANGE_VAK_DEPOP = 5045483; + static constexpr auto QIB_YELL_01 = 2319; + static constexpr auto QIB_YELL_02 = 2378; + static constexpr auto QIB_YELL_03 = 2379; + static constexpr auto LCUT_ACTOR0 = 1010214; + static constexpr auto LCUT_ACTOR1 = 1010215; + static constexpr auto LCUT_ACTOR2 = 1010216; + static constexpr auto LCUT_ACTOR3 = 1010217; + static constexpr auto LCUT_POS0 = 5032420; + static constexpr auto LCUT_POS1 = 5323061; + static constexpr auto LCUT_POS2 = 5323062; + static constexpr auto LCUT_POS3 = 5323066; + static constexpr auto LCUT_FACE0 = 608; + static constexpr auto INIT_POP_EOBJ_02 = 5323044; + static constexpr auto STATUS_STEALTH = 1198; + static constexpr auto WARP_01 = 5032443; + +public: + StrayintotheShadows() : Sapphire::ScriptAPI::QuestBattleScript( 90 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "Companychest", 2000470, 4255817, 4, { -199.998505f, 17.071720f, 58.787498f }, 1.000000f, -0.402012f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( StrayintotheShadows ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/SweetDreamsAreMadeofPeace.cpp b/src/scripts/instances/questbattles/SweetDreamsAreMadeofPeace.cpp new file mode 100644 index 00000000..ea75050a --- /dev/null +++ b/src/scripts/instances/questbattles/SweetDreamsAreMadeofPeace.cpp @@ -0,0 +1,83 @@ +#include +#include + +using namespace Sapphire; + +class SweetDreamsAreMadeofPeace : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_COMPANION_GUYDELOT = 6873896; + static constexpr auto BNPC_ENEMY_NOURVAL = 6873897; + static constexpr auto BNPC_ENEMY_BUKA_SPEAR = 6926315; + static constexpr auto BNPC_ENEMY_BUKA_BOW = 6926316; + static constexpr auto BNPC_ENEMY_BUKA_HEAL = 6926318; + static constexpr auto BNPC_TOUMEI_ACTION_NOURVAL = 6926319; + static constexpr auto BNPC_TOUMEI_ACTION2_NOURVAL = 6935396; + static constexpr auto BNPC_TOUMEI_ACTION3_NOURVAL = 7020830; + static constexpr auto BNPC_TOUMEI_ACTION4_NOURVAL = 7020954; + static constexpr auto BNPC_BIND_CHAIN = 6926320; + static constexpr auto BNPC_MOVE_NOURVAL_POSITION_01 = 6926321; + static constexpr auto BNPC_MOVE_NOURVAL_POSITION_02 = 6926322; + static constexpr auto BNPC_MOVE_NOURVAL_POSITION_03 = 6926323; + static constexpr auto BNPC_MOVE_NOURVAL_POSITION_04 = 6926324; + static constexpr auto BNPC_MOVE_NOURVAL_POSITION_05 = 6926325; + static constexpr auto BNPC_TOUMEI_SCAPEGOAT = 7020886; + static constexpr auto DEF_ACTION_EARTH_WAVE = 9152; + static constexpr auto DEF_ACTION_EARTH_SHAKE = 9153; + static constexpr auto DEF_ACTION_EARTH_STRIKE = 9154; + static constexpr auto DEF_ACTION_BIND_CHAIN = 9162; + static constexpr auto DEF_ACTION_TOUMEI_EARTH_WAVE_END = 9156; + static constexpr auto DEF_ACTION_TOUMEI_EARTH_STRIKE_END = 9160; + static constexpr auto DEF_ACTION_TOUMEI_EARTH_SHAKE_END = 9157; + static constexpr auto STATUS_PARAM_BIND_CHAIN = 1433; + static constexpr auto STATUS_BIND_CHAIN = 667; + static constexpr auto DEF_ACTION_FAST_MOVE = 4743; + static constexpr auto QIB_YELL_GUYDELOT_01 = 5347; + static constexpr auto LOC_MARKER_00 = 7010106; + static constexpr auto LOC_MARKER_01 = 7010107; + static constexpr auto LOC_ACTOR0 = 1021199; + static constexpr auto LOC_ACTOR1 = 1021223; + static constexpr auto LOC_ACTOR2 = 1021201; + static constexpr auto LOC_ACTOR3 = 1021202; + static constexpr auto LOC_ACTOR4 = 1023188; + static constexpr auto LOC_BGM0 = 147; + +public: + SweetDreamsAreMadeofPeace() : Sapphire::ScriptAPI::QuestBattleScript( 175 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2003012, 0, 4, { -266.882690f, 10.421330f, 43.491699f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_1", 2003043, 0, 4, { -261.309113f, 10.383500f, 37.739429f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_2", 2003044, 0, 4, { -259.553802f, 10.421330f, 31.442730f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_3", 2003045, 0, 4, { -262.154510f, 10.421330f, 23.808010f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Entrance", 2000182, 4614306, 5, { -120.168602f, 11.010820f, -99.074913f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "Shortcut", 2000700, 0, 4, { -131.611206f, 9.156082f, -82.660057f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_4", 2001269, 4544126, 4, { -137.669403f, 9.502172f, -11.353470f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Destination", 2002372, 4579467, 4, { -171.978897f, -49.907219f, -10.220380f }, 1.000000f, 0.000000f ); + instance.registerEObj( "sgpl_f1b2_bosswall", 2002872, 4616656, 4, { -248.873596f, 10.236450f, 33.155060f }, 1.000000f, -0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "unknown_5", 2002735, 0, 4, { -246.919006f, 9.938496f, 34.239399f }, 1.000000f, -1.570451f ); + instance.registerEObj( "Allaganterminal", 2003416, 4664435, 4, { -314.106995f, 9.414734f, 43.198238f }, 0.991760f, 0.000048f ); + instance.registerEObj( "sgpl_w_lvd_b0118_col_char", 2003421, 4651262, 4, { -292.780701f, 10.351920f, 39.414989f }, 1.000000f, 0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "unknown_6", 2003428, 4615269, 4, { -120.556702f, 8.820233f, -76.764412f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( SweetDreamsAreMadeofPeace ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/SweetSorrows.cpp b/src/scripts/instances/questbattles/SweetSorrows.cpp new file mode 100644 index 00000000..dc5cd7d8 --- /dev/null +++ b/src/scripts/instances/questbattles/SweetSorrows.cpp @@ -0,0 +1,73 @@ +#include +#include + +using namespace Sapphire; + +class SweetSorrows : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_1TEAM_DOL_01 = 5047099; + static constexpr auto INIT_POP_1TEAM_PGL_01 = 5047100; + static constexpr auto INIT_POP_1TEAM_PGL_02 = 5047101; + static constexpr auto INIT_POP_2TEAM_DOL_01 = 5047777; + static constexpr auto INIT_POP_2TEAM_PGL_01 = 5047778; + static constexpr auto INIT_POP_2TEAM_PGL_02 = 5047779; + static constexpr auto INIT_POP_3TEAM_BOS_01 = 5047780; + static constexpr auto INIT_POP_3TEAM_DOL_01 = 5047781; + static constexpr auto INIT_POP_4TEAM_PGL_01 = 5047783; + static constexpr auto INIT_POP_4TEAM_BOS_01 = 5047784; + static constexpr auto INIT_POP_4TEAM_DOL_01 = 5047785; + static constexpr auto INIT_P_POP_3TEAM_MAS_01 = 5047794; + static constexpr auto QIB_YELL_01 = 2342; + static constexpr auto ER_RECT_01 = 5105432; + static constexpr auto ER_RECT_02 = 5105644; + static constexpr auto ER_RECT_03 = 5106084; + static constexpr auto INIT_ENPC_MERCHANT = 5053598; + static constexpr auto LCUT_ACTOR0 = 1010200; + static constexpr auto LCUT_ACTOR1 = 1010202; + static constexpr auto LCUT_ACTOR2 = 1010256; + static constexpr auto LCUT_ACTOR3 = 1010257; + static constexpr auto LCUT_ACTOR4 = 1010258; + static constexpr auto LCUT_ACTOR5 = 1010259; + static constexpr auto LCUT_ACTOR6 = 1010260; + static constexpr auto LCUT_ACTOR7 = 1010532; + static constexpr auto LCUT_ACTOR8 = 1010204; + static constexpr auto LCUT_POS0 = 5109470; + static constexpr auto LCUT_POS1 = 5110383; + static constexpr auto LCUT_POS2 = 5047099; + static constexpr auto LCUT_POS3 = 5047100; + static constexpr auto LCUT_POS4 = 5047101; + static constexpr auto LCUT_POS5 = 5053597; + static constexpr auto LCUT_POS6 = 5053598; + static constexpr auto LCUT_ACTION0 = 1014; + static constexpr auto LCUT_ACTION1 = 808; + static constexpr auto LCUT_FACE0 = 607; + static constexpr auto LCUT_BGM1 = 78; + static constexpr auto LCUT_BGM2 = 86; + static constexpr auto STATUS_PARM_HIDDEN_FOR_BNPC = 1197; + +public: + SweetSorrows() : Sapphire::ScriptAPI::QuestBattleScript( 94 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2009569, 0, 4, { 763.213318f, 9.000000f, 358.016998f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_1", 2009570, 0, 4, { 748.506775f, 9.000000f, 520.002930f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( SweetSorrows ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/SwornUponaLance.cpp b/src/scripts/instances/questbattles/SwornUponaLance.cpp new file mode 100644 index 00000000..3d90ae21 --- /dev/null +++ b/src/scripts/instances/questbattles/SwornUponaLance.cpp @@ -0,0 +1,49 @@ +#include +#include + +using namespace Sapphire; + +class SwornUponaLance : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_HEUSTIENNE_01 = 5877439; + static constexpr auto BNPC_P1_GORILLADRAGON_01 = 5877448; + static constexpr auto BNPC_P1_PUK_01 = 5877449; + static constexpr auto BNPC_P1_PUK_02 = 5877451; + static constexpr auto BNPC_P2_GORILLADRAGON_01 = 5877656; + static constexpr auto BNPC_P2_GORILLADRAGON_02 = 5877657; + static constexpr auto BNPC_P2_GORILLADRAGON_03 = 5877659; + static constexpr auto BNPC_P2_PUK_01 = 5877661; + static constexpr auto BNPC_P2_PUK_02 = 5877662; + static constexpr auto BNPC_P2_PUK_03 = 5877663; + static constexpr auto BNPC_P2_PUK_04 = 5877706; + static constexpr auto BNPC_P3_GORILLADRAGON_01 = 5877762; + static constexpr auto BNPC_P3_GORILLADRAGON_02 = 5877763; + static constexpr auto BNPC_P3_PUK_01 = 5877765; + static constexpr auto BNPC_P3_PUK_02 = 5877766; + static constexpr auto BNPC_P3_WYVERN_01 = 5877769; + static constexpr auto NCUT_01 = 936; + +public: + SwornUponaLance() : Sapphire::ScriptAPI::QuestBattleScript( 116 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( SwornUponaLance ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/ThatOldFamiliarFeeling.cpp b/src/scripts/instances/questbattles/ThatOldFamiliarFeeling.cpp new file mode 100644 index 00000000..531342f4 --- /dev/null +++ b/src/scripts/instances/questbattles/ThatOldFamiliarFeeling.cpp @@ -0,0 +1,65 @@ +#include +#include + +using namespace Sapphire; + +class ThatOldFamiliarFeeling : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_01 = 3993254; + static constexpr auto INIT_POP_01A_01 = 3993614; + static constexpr auto INIT_POP_01A_02 = 3993615; + static constexpr auto INIT_POP_01A_03 = 3993616; + static constexpr auto INIT_POP_01A_04 = 3993617; + static constexpr auto INIT_POP_01A_05 = 3993618; + static constexpr auto INIT_POP_02A_01 = 3993218; + static constexpr auto INIT_POP_02A_02 = 3993219; + static constexpr auto INIT_POP_02A_03 = 3993220; + static constexpr auto INIT_POP_02A_04 = 3993221; + static constexpr auto INIT_POP_02A_05 = 3993222; + static constexpr auto INIT_POP_02B_01 = 3993250; + static constexpr auto INIT_POP_02B_02 = 3993251; + static constexpr auto INIT_POP_03A_01 = 3993388; + static constexpr auto INIT_POP_03A_02 = 3993389; + static constexpr auto INIT_POP_03A_03 = 3993390; + static constexpr auto INIT_POP_03A_04 = 3993391; + static constexpr auto INIT_POP_03A_05 = 3993392; + static constexpr auto INIT_POP_03C_01 = 3993399; + static constexpr auto INIT_POP_03C_02 = 3993528; + static constexpr auto INIT_POP_03C_03 = 3993529; + static constexpr auto INIT_POP_03C_04 = 3993544; + static constexpr auto LOC_POS_ACTOR0 = 4009165; + static constexpr auto LOC_ACTOR0 = 1004301; + static constexpr auto LOC_FACE0 = 604; + static constexpr auto LOC_FACE1 = 605; + static constexpr auto CUT_SCENE_01 = 35; + +public: + ThatOldFamiliarFeeling() : Sapphire::ScriptAPI::QuestBattleScript( 20 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2009578, 2091611, 4, { 31.545870f, 7.999978f, -121.025002f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_1", 2009578, 2091610, 4, { 4.407776f, 8.022990f, -105.310699f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_2", 2009578, 2091597, 4, { -184.324402f, 18.000000f, 65.271606f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_3", 2009578, 2091596, 4, { -146.806107f, 14.005000f, 63.857010f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Companychest", 2000470, 4255821, 4, { -149.301498f, 4.552717f, -91.365868f }, 0.991760f, -0.619932f ); + instance.registerEObj( "Huntboard", 2004440, 2217635, 4, { -152.330902f, 4.230781f, -92.351143f }, 0.991760f, 0.000048f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( ThatOldFamiliarFeeling ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheBalladofOblivion.cpp b/src/scripts/instances/questbattles/TheBalladofOblivion.cpp new file mode 100644 index 00000000..fe042a89 --- /dev/null +++ b/src/scripts/instances/questbattles/TheBalladofOblivion.cpp @@ -0,0 +1,56 @@ +#include +#include + +using namespace Sapphire; + +class TheBalladofOblivion : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_COMPANION_SANSON_01 = 5908646; + static constexpr auto BNPC_COMPANION_GUYDELOT_01 = 5908647; + static constexpr auto BNPC_COMPANION_MOGTA_01 = 5908650; + static constexpr auto BNPC_ENEMY_SIREN_01 = 5908651; + static constexpr auto CUT_SCENE_01 = 964; + static constexpr auto POP_RANGE_CHARGE_01 = 5933330; + static constexpr auto POP_RANGE_CHARGE_02 = 5933331; + static constexpr auto POP_RANGE_CHARGE_03 = 5933333; + static constexpr auto POP_RANGE_CHARGE_04 = 5933334; + static constexpr auto POP_RANGE_CHARGE_05 = 5934802; + static constexpr auto POP_RANGE_CHARGE_06 = 5934805; + static constexpr auto POP_RANGE_CHARGE_07 = 5934806; + static constexpr auto POP_RANGE_CHARGE_08 = 5934812; + static constexpr auto BNPC_ENEMY_SIREN_CHARGE = 5933359; + static constexpr auto ACTION_SIREN_WARP_START = 1537; + static constexpr auto ACTION_SIREN_WARP_END = 1538; + static constexpr auto ACTION_SIREN_CHARGE = 4988; + static constexpr auto POP_RANGE_DOUGHNUT = 5934847; + static constexpr auto LCUT_ACTOR0 = 1014547; + static constexpr auto LCUT_ACTOR1 = 1014546; + static constexpr auto LCUT_ACTOR2 = 1014549; + static constexpr auto LCUT_POS0 = 5935823; + static constexpr auto LCUT_POS1 = 5935824; + static constexpr auto BNPC_TOUMEI_PLAYER = 5963051; + +public: + TheBalladofOblivion() : Sapphire::ScriptAPI::QuestBattleScript( 133 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( TheBalladofOblivion ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheBattleonBekko.cpp b/src/scripts/instances/questbattles/TheBattleonBekko.cpp deleted file mode 100644 index a050b6fc..00000000 --- a/src/scripts/instances/questbattles/TheBattleonBekko.cpp +++ /dev/null @@ -1,34 +0,0 @@ -#include -#include - -using namespace Sapphire; - -class TheBattleonBekko : - public Sapphire::ScriptAPI::InstanceContentScript -{ -public: - TheBattleonBekko() : - Sapphire::ScriptAPI::InstanceContentScript( 5012 ) - { } - - void onInit( InstanceContent& instance ) override - { - instance.registerEObj( "unknown_0", 2008480, 6894787, 4, { 564.783630f, -60.304729f, -136.444901f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_1", 2004541, 0, 4, { 800.087585f, 0.000000f, 44.317749f }, 1.000000f, 0.000000f ); - - } - - void onUpdate( InstanceContent& instance, uint32_t currTime ) override - { - - } - - void onEnterTerritory( InstanceContent& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, - uint16_t param2 ) override - { - - } - -}; - -EXPOSE_SCRIPT( TheBattleonBekko ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheBeastWithin.cpp b/src/scripts/instances/questbattles/TheBeastWithin.cpp new file mode 100644 index 00000000..21e15a2d --- /dev/null +++ b/src/scripts/instances/questbattles/TheBeastWithin.cpp @@ -0,0 +1,130 @@ +#include +#include + +using namespace Sapphire; + +class TheBeastWithin : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_ENPC_POP_1_EXC_A = 4305701; + static constexpr auto INIT_ENPC_POP_1_EXC_B = 4305703; + static constexpr auto INIT_POP_1_TONBELI_01 = 4305708; + static constexpr auto INIT_POP_1_TONBELI_02 = 4305709; + static constexpr auto INIT_POP_1_TONBELI_03 = 4305710; + static constexpr auto INIT_POP_1_TONBELI_04 = 4305712; + static constexpr auto INIT_POP_1_TONBELI_05 = 4305713; + static constexpr auto INIT_POP_1_KING_TONBELI_01 = 4305715; + static constexpr auto INIT_POP_2_TONBELI_01 = 4305752; + static constexpr auto INIT_POP_2_TONBELI_02 = 4305753; + static constexpr auto INIT_POP_2_BOSS_TONBELI_01 = 4305761; + static constexpr auto INIT_POP_3_TONBELI_01 = 4305764; + static constexpr auto INIT_POP_3_TONBELI_02 = 4305765; + static constexpr auto INIT_POP_3_KING_TONBELI_01 = 4305766; + static constexpr auto INIT_POP_4_TONBELI_01 = 4305771; + static constexpr auto INIT_POP_4_TONBELI_02 = 4305772; + static constexpr auto INIT_POP_4_BELZBB_01 = 4305777; + static constexpr auto INIT_POP_4_KING_TONBELI_01 = 4305779; + static constexpr auto POP_RANGE_ENEMY_MOVE_01 = 4305782; + static constexpr auto POP_EVENT_RANGE_01 = 4306023; + static constexpr auto POP_EVENT_RANGE_02 = 4306025; + static constexpr auto POP_EVENT_RANGE_03 = 4306027; + static constexpr auto INIT_P_POP_ARUKA_01 = 4305636; + static constexpr auto INIT_P_POP_ARUKA_02 = 4306047; + static constexpr auto INIT_P_POP_BOSS_TONBELI_01 = 4306053; + static constexpr auto INIT_P_POP_TONBELI_URAMI_01 = 4306152; + static constexpr auto WARP_01 = 4306049; + static constexpr auto QIB_YELL_03 = 1305; + static constexpr auto QIB_YELL_04 = 1306; + static constexpr auto QIB_YELL_07 = 1317; + static constexpr auto QIB_YELL_08 = 1318; + static constexpr auto QIB_YELL_09 = 1319; + static constexpr auto QIB_YELL_10 = 1320; + static constexpr auto DEF_ACTION_TONBELI_CURSE = 946; + static constexpr auto LOGMESSAGE_QIB_01 = 3224; + static constexpr auto DEF_ACTION_MONSTER_SUMMON = 867; + static constexpr auto DEF_ACTION_MINNANO_URAMI = 1327; + static constexpr auto DEF_ACTION_ENCOURAGEMENT = 185; + static constexpr auto DEF_ACTION_CURE = 120; + static constexpr auto DEF_ACTION_FIGIC = 190; + static constexpr auto CUT_START_NCUT = 360; + static constexpr auto CUT_INSART_NCUT = 361; + static constexpr auto CUT_END_NCUT = 362; + static constexpr auto JOB_STORY_MES = 3686; + +public: + TheBeastWithin() : Sapphire::ScriptAPI::QuestBattleScript( 85 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2001809, 0, 4, { 134.115601f, -17.997431f, 473.641693f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Shortcut", 2000700, 0, 4, { 137.299393f, -17.990360f, 454.401398f }, 0.991760f, 0.000048f ); + instance.registerEObj( "Exit", 2000139, 0, 4, { 73.105957f, 9.994568f, -475.590790f }, 0.991760f, 0.000048f ); + instance.registerEObj( "Entrance", 2000182, 4177700, 5, { 130.745697f, -17.983120f, 461.438293f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "unknown_1", 2001822, 4086687, 4, { 125.014000f, -9.459579f, 64.149277f }, 1.000000f, 0.000000f ); + instance.registerEObj( "sgvf_w_lvd_b0118", 2001811, 4259124, 4, { 127.094200f, -12.000000f, 125.826500f }, 1.000000f, 0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "sgvf_w_lvd_b0094", 2001810, 4259126, 4, { 124.986603f, -12.039370f, 125.401100f }, 0.991760f, 0.000048f ); + // States -> vf_line_on (id: 12) vf_line_of (id: 13) + instance.registerEObj( "sgvf_w_lvd_b0250", 2000277, 4259125, 4, { 125.461502f, -12.000000f, 89.079697f }, 1.000000f, 0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "unknown_2", 2001114, 4323503, 4, { 118.000000f, -8.700125f, 65.370102f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_3", 2001823, 4323504, 4, { 117.995003f, -7.766907f, 65.232300f }, 0.991760f, 0.000048f ); + instance.registerEObj( "Nymiandevice", 2001123, 4126926, 4, { 117.995003f, -9.001419f, 65.378754f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_4", 2002790, 4405761, 4, { 125.029999f, -13.277490f, 181.098602f }, 1.000000f, 0.000000f ); + instance.registerEObj( "sgvf_w_lvd_b0118_1", 2001813, 4259128, 4, { 45.925018f, 0.000000f, -212.411499f }, 1.000000f, 0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "sgvf_w_lvd_b0094_1", 2001812, 4259127, 4, { 43.121960f, -0.015320f, -212.616592f }, 0.991760f, 0.000048f ); + // States -> vf_line_on (id: 12) vf_line_of (id: 13) + instance.registerEObj( "unknown_5", 2001824, 4086767, 4, { 43.140591f, 0.499020f, -29.383511f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_6", 2001827, 4086770, 4, { 43.011742f, 0.540422f, -152.602997f }, 1.000000f, 0.000000f ); + instance.registerEObj( "sgvf_w_lvd_b0118_2", 2000278, 4259129, 4, { 43.493420f, -0.100058f, -248.056198f }, 1.000000f, 0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + instance.registerEObj( "unknown_7", 2001115, 4323510, 4, { 35.000000f, 1.250271f, -5.876968f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_8", 2001116, 4323508, 4, { 35.000000f, 1.249865f, -28.099899f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_9", 2001117, 4323512, 4, { 43.000000f, 1.300663f, -58.799179f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_10", 2001118, 4323515, 4, { 54.099178f, 9.249764f, -95.999512f }, 1.000000f, 1.570451f ); + instance.registerEObj( "unknown_11", 2001119, 4323518, 4, { 122.099899f, 1.250139f, -145.999405f }, 1.000000f, 1.570451f ); + instance.registerEObj( "unknown_12", 2001120, 4323522, 4, { 36.000000f, 1.299810f, -151.049896f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_13", 2001825, 4323511, 4, { 35.027500f, 2.231338f, -5.969540f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_14", 2001826, 4323509, 4, { 34.988789f, 2.301583f, -28.158291f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_15", 2001828, 4323513, 4, { 43.003689f, 2.351689f, -58.849869f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_16", 2001829, 4323516, 4, { 54.100830f, 10.258660f, -95.915703f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_17", 2001830, 4323519, 4, { 121.982201f, 2.305465f, -145.991302f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_18", 2001831, 4323523, 4, { 35.995869f, 2.276821f, -151.081100f }, 0.991760f, 0.000048f ); + instance.registerEObj( "RustedNymiandevice", 2001124, 4126931, 4, { 34.988892f, 0.930786f, -6.393555f }, 0.991760f, 0.000048f ); + instance.registerEObj( "RustedNymiandevice_1", 2001125, 4126938, 4, { 34.988892f, 0.930786f, -27.634159f }, 0.991760f, 0.000048f ); + instance.registerEObj( "RustedNymiandevice_2", 2001126, 4126941, 4, { 42.984619f, 0.991760f, -58.335270f }, 0.991760f, 0.000048f ); + instance.registerEObj( "Nymiandevice_1", 2001127, 4126947, 4, { 53.613361f, 8.952527f, -95.999352f }, 1.000000f, 1.570451f ); + instance.registerEObj( "RustedNymiandevice_3", 2001128, 4126952, 4, { 121.629601f, 0.930786f, -146.013596f }, 0.991760f, 1.570451f ); + instance.registerEObj( "RustedNymiandevice_4", 2001129, 4126956, 4, { 35.995972f, 0.991760f, -150.591400f }, 0.991760f, 0.000048f ); + instance.registerEObj( "Lanternoil", 2002789, 0, 4, { 35.621380f, -0.164260f, -23.125179f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_19", 2001832, 4086777, 4, { 73.005737f, 10.540420f, -380.487610f }, 1.000000f, 0.000000f ); + instance.registerEObj( "sgpl_s1d3_bossline", 2001814, 4239448, 4, { 72.890900f, 9.976854f, -400.332489f }, 1.000000f, 0.000000f ); + instance.registerEObj( "sgpl_s1d3_bosswall", 2001815, 4239449, 4, { 74.758614f, 9.976894f, -400.332489f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_20", 2001121, 4323530, 4, { 80.979607f, 11.245850f, -380.117493f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_21", 2001122, 4323528, 4, { 65.000000f, 11.249720f, -380.099792f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_22", 2001833, 4323531, 4, { 81.010132f, 12.313960f, -380.117493f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_23", 2001834, 4323529, 4, { 65.001831f, 12.381110f, -380.103790f }, 1.000000f, 0.000000f ); + instance.registerEObj( "RustedNymiandevice_5", 2001130, 4126964, 4, { 80.979607f, 10.940670f, -379.629211f }, 0.991760f, 0.000048f ); + instance.registerEObj( "RustedNymiandevice_6", 2001131, 4126966, 4, { 64.988159f, 10.940670f, -379.629211f }, 0.991760f, 0.000048f ); + instance.registerEObj( "sgvf_w_lvd_b0118_3", 2005197, 5674883, 4, { 73.492577f, 6.000000f, -464.485596f }, 1.000000f, 0.000000f ); + // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( TheBeastWithin ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheCompanyYouKeepImmortalFlames.cpp b/src/scripts/instances/questbattles/TheCompanyYouKeepImmortalFlames.cpp new file mode 100644 index 00000000..959b8629 --- /dev/null +++ b/src/scripts/instances/questbattles/TheCompanyYouKeepImmortalFlames.cpp @@ -0,0 +1,60 @@ +#include +#include + +using namespace Sapphire; + +class TheCompanyYouKeepImmortalFlames : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_A = 4105366; + static constexpr auto INIT_P_POP_B = 4105365; + static constexpr auto INIT_P_POP_C = 4105364; + static constexpr auto INIT_POP_TOP = 4105369; + static constexpr auto INIT_POP_THM1_1 = 4105370; + static constexpr auto INIT_POP_LNC1_2 = 4105373; + static constexpr auto INIT_POP_LNC1_3 = 4105375; + static constexpr auto INIT_POP_ARC1_4 = 4105371; + static constexpr auto INIT_POP_ARC1_5 = 4105372; + static constexpr auto INIT_POP_ARC2_1 = 4105390; + static constexpr auto INIT_POP_ARC2_2 = 4105392; + static constexpr auto INIT_POP_MAC2_3 = 4105368; + static constexpr auto DEF_ACTION_MONSTER_WHISTLE = 983; + static constexpr auto CUT_SCENE_01 = 219; + static constexpr auto LOC_ACTOR0 = 1003836; + static constexpr auto LOC_ACTOR1 = 1003837; + static constexpr auto LOC_ACTOR2 = 1005027; + static constexpr auto LOC_POS_ACTOR0 = 4163972; + static constexpr auto POP_RANGE_BOSS_01 = 4165244; + static constexpr auto POP_RANGE_BOSS_02 = 4165245; + static constexpr auto POP_RANGE_BOSS_03 = 4165246; + static constexpr auto DEF_ACTION_DRILL_ROCKET = 525; + static constexpr auto LOC_ACTION1 = 961; + static constexpr auto LOC_ACTOR9 = 1006150; + +public: + TheCompanyYouKeepImmortalFlames() : Sapphire::ScriptAPI::QuestBattleScript( 47 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "Exit", 2000605, 0, 4, { -715.942383f, 69.420113f, -830.370300f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_0", 2000606, 3861081, 4, { -670.462280f, 63.293751f, -801.510986f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Entrance", 2000604, 4262798, 5, { -677.634888f, 64.116386f, -803.174927f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( TheCompanyYouKeepImmortalFlames ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheCompanyYouKeepMaelstrom.cpp b/src/scripts/instances/questbattles/TheCompanyYouKeepMaelstrom.cpp new file mode 100644 index 00000000..c7f2dd71 --- /dev/null +++ b/src/scripts/instances/questbattles/TheCompanyYouKeepMaelstrom.cpp @@ -0,0 +1,56 @@ +#include +#include + +using namespace Sapphire; + +class TheCompanyYouKeepMaelstrom : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_A = 4105799; + static constexpr auto INIT_P_POP_B = 4105800; + static constexpr auto INIT_P_POP_C = 4105801; + static constexpr auto INIT_POP_TOP = 4105802; + static constexpr auto INIT_POP_THM1_1 = 4105803; + static constexpr auto INIT_POP_LNC1_2 = 4105805; + static constexpr auto INIT_POP_LNC1_3 = 4105804; + static constexpr auto INIT_POP_ARC1_4 = 4105807; + static constexpr auto INIT_POP_ARC1_5 = 4105806; + static constexpr auto INIT_POP_ARC2_1 = 4105863; + static constexpr auto INIT_POP_ARC2_2 = 4105864; + static constexpr auto INIT_POP_MAC2_3 = 4105862; + static constexpr auto DEF_ACTION_MONSTER_WHISTLE = 983; + static constexpr auto CUT_SCENE_01 = 218; + static constexpr auto LOC_ACTOR0 = 1003836; + static constexpr auto LOC_ACTOR1 = 1003837; + static constexpr auto LOC_ACTOR2 = 1005028; + static constexpr auto LOC_POS_ACTOR0 = 4163777; + static constexpr auto POP_RANGE_BOSS_01 = 4165248; + static constexpr auto POP_RANGE_BOSS_02 = 4165249; + static constexpr auto POP_RANGE_BOSS_03 = 4165250; + static constexpr auto DEF_ACTION_DRILL_ROCKET = 525; + static constexpr auto LOC_ACTION1 = 961; + static constexpr auto LOC_ACTOR9 = 1006151; + +public: + TheCompanyYouKeepMaelstrom() : Sapphire::ScriptAPI::QuestBattleScript( 48 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( TheCompanyYouKeepMaelstrom ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheCompanyYouKeepTwinAdder.cpp b/src/scripts/instances/questbattles/TheCompanyYouKeepTwinAdder.cpp new file mode 100644 index 00000000..ab904d14 --- /dev/null +++ b/src/scripts/instances/questbattles/TheCompanyYouKeepTwinAdder.cpp @@ -0,0 +1,56 @@ +#include +#include + +using namespace Sapphire; + +class TheCompanyYouKeepTwinAdder : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_A = 4103768; + static constexpr auto INIT_P_POP_B = 4103769; + static constexpr auto INIT_P_POP_C = 4103770; + static constexpr auto INIT_POP_TOP = 4103775; + static constexpr auto INIT_POP_THM1_1 = 4103777; + static constexpr auto INIT_POP_LNC1_2 = 4103779; + static constexpr auto INIT_POP_LNC1_3 = 4103793; + static constexpr auto INIT_POP_ARC1_4 = 4103781; + static constexpr auto INIT_POP_ARC1_5 = 4103782; + static constexpr auto INIT_POP_ARC2_1 = 4103786; + static constexpr auto INIT_POP_ARC2_2 = 4103787; + static constexpr auto INIT_POP_MAC2_3 = 4103788; + static constexpr auto DEF_ACTION_MONSTER_WHISTLE = 983; + static constexpr auto CUT_SCENE_01 = 217; + static constexpr auto LOC_ACTOR0 = 1003836; + static constexpr auto LOC_ACTOR1 = 1003837; + static constexpr auto LOC_ACTOR2 = 1005026; + static constexpr auto LOC_POS_ACTOR0 = 4161958; + static constexpr auto POP_RANGE_BOSS_01 = 4165238; + static constexpr auto POP_RANGE_BOSS_02 = 4165240; + static constexpr auto POP_RANGE_BOSS_03 = 4165241; + static constexpr auto DEF_ACTION_DRILL_ROCKET = 525; + static constexpr auto LOC_ACTION1 = 961; + static constexpr auto LOC_ACTOR9 = 1006149; + +public: + TheCompanyYouKeepTwinAdder() : Sapphire::ScriptAPI::QuestBattleScript( 46 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( TheCompanyYouKeepTwinAdder ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheConsequencesofAnger.cpp b/src/scripts/instances/questbattles/TheConsequencesofAnger.cpp new file mode 100644 index 00000000..2a01f195 --- /dev/null +++ b/src/scripts/instances/questbattles/TheConsequencesofAnger.cpp @@ -0,0 +1,49 @@ +#include +#include + +using namespace Sapphire; + +class TheConsequencesofAnger : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_1_BOSS_TONBELI_01 = 4303542; + static constexpr auto INIT_P_POP_ARUKA_01 = 4303594; + static constexpr auto INIT_POP_1_POISON_SLA_01 = 4303610; + static constexpr auto INIT_POP_1_POISON_SLA_02 = 4303611; + static constexpr auto INIT_POP_1_POISON_SLA_03 = 4303612; + static constexpr auto INIT_POP_1_PARAIS_SLA_01 = 4303613; + static constexpr auto INIT_POP_1_PARAIS_SLA_02 = 4303615; + static constexpr auto INIT_POP_1_PARAIS_SLA_03 = 4303616; + static constexpr auto INIT_POP_1_SICK_SLA_01 = 4303619; + static constexpr auto INIT_POP_2_POISON_SLA_01 = 4303623; + static constexpr auto INIT_POP_2_POISON_SLA_02 = 4303624; + static constexpr auto INIT_POP_2_PARAIS_SLA_01 = 4303627; + static constexpr auto INIT_POP_2_PARAIS_SLA_02 = 4303628; + static constexpr auto INIT_POP_2_SICK_SLA_01 = 4303630; + static constexpr auto CUT_START_NCUT = 358; + static constexpr auto CUT_END_NCUT = 359; + static constexpr auto JOB_STORY_MES = 3684; + +public: + TheConsequencesofAnger() : Sapphire::ScriptAPI::QuestBattleScript( 84 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( TheConsequencesofAnger ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheCrimsonDuelist.cpp b/src/scripts/instances/questbattles/TheCrimsonDuelist.cpp new file mode 100644 index 00000000..6338786a --- /dev/null +++ b/src/scripts/instances/questbattles/TheCrimsonDuelist.cpp @@ -0,0 +1,84 @@ +#include +#include + +using namespace Sapphire; + +class TheCrimsonDuelist : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto P_BNPC_SIRUN_01 = 6794090; + static constexpr auto BNPC_WOLF_WAVE1_01 = 6794085; + static constexpr auto BNPC_WOLF_WAVE1_02 = 6794086; + static constexpr auto BNPC_THA_WAVE1_01 = 6794087; + static constexpr auto BNPC_THA_WAVE2_01 = 6794397; + static constexpr auto BNPC_WOLF_WAVE2_01 = 6794398; + static constexpr auto BNPC_WOLF_WAVE2_02 = 6794399; + static constexpr auto BNPC_THA_WAVE3_01 = 6794400; + static constexpr auto BNPC_WOLF_WAVE3_01 = 6794401; + static constexpr auto BNPC_WOLF_WAVE3_02 = 6794402; + static constexpr auto BNPC_WOLF_WAVE3_03 = 6794403; + static constexpr auto P_BNPC_SIRUN_02 = 6794148; + static constexpr auto WARP_01 = 6794141; + static constexpr auto BGM_LATE_BATTLE = 113; + static constexpr auto BNPC_PACK1_THA_01 = 6794185; + static constexpr auto BNPC_PACK1_HECT_01 = 6794183; + static constexpr auto BNPC_PACK1_HECT_02 = 6794184; + static constexpr auto BNPC_PACK2_THA_01 = 6794189; + static constexpr auto BNPC_PACK2_AHRI_01 = 6794187; + static constexpr auto BNPC_PACK2_HECT_01 = 6794188; + static constexpr auto BNPC_PACK3_THA_01 = 6794193; + static constexpr auto BNPC_PACK3_AHRI_01 = 6794191; + static constexpr auto BNPC_PACK3_AHRI_02 = 6794192; + static constexpr auto BNPC_THA_BOSS = 6794203; + static constexpr auto BNPC_CERBERUS = 6794201; + static constexpr auto PR_XRHUNTIA_MOVE_01 = 6794465; + static constexpr auto PR_XRHUNTIA_MOVE_02 = 6797640; + static constexpr auto ER_PACK1_START = 6794489; + static constexpr auto BNPC_DARKBALL_01 = 6796963; + static constexpr auto BNPC_DARKBALL_02 = 6796964; + static constexpr auto BNPC_DARKBALL_03 = 6796965; + static constexpr auto BNPC_DARKBALL_04 = 6796966; + static constexpr auto PR_DARKBALL_MOVE_01 = 6797005; + static constexpr auto PR_DARKBALL_MOVE_02 = 6797007; + static constexpr auto PR_DARKBALL_MOVE_03 = 6797008; + static constexpr auto PR_DARKBALL_MOVE_04 = 6797010; + static constexpr auto PR_DARKBALL_MOVE_RELAY_01 = 6797152; + static constexpr auto PR_DARKBALL_MOVE_RELAY_02 = 6797187; + static constexpr auto DEF_ACTION_TORRIGER = 3269; + static constexpr auto BNPC_SUMMON_MAHOUJIN = 6797004; + static constexpr auto ACTION_CERBERUS_GT = 7873; + static constexpr auto BNPC_MINIMUM_BALL = 6797750; + static constexpr auto LOC_LQ_SECONDHALF_01 = 6922587; + static constexpr auto LOC_ACTOR0 = 1021024; + static constexpr auto PR_XRHUNTIA_WAVE1_MOVE = 6998616; + static constexpr auto PR_XRHUNTIA_WAVE2_MOVE = 6998617; + static constexpr auto PR_XRHUNTIA_MOVE_TO_BOSS = 6998631; + static constexpr auto CHANNELING_SUMMON = 14; + static constexpr auto PR_XRHUNTIA_CERBERUS_MOVE = 6998645; + static constexpr auto EOBJ_SHIELD_CONTROL_01 = 7021131; + static constexpr auto EOBJ_SHIELD_CONTROL_02 = 7021132; + static constexpr auto EOBJ_SHIELD_CONTROL_03 = 7021133; + +public: + TheCrimsonDuelist() : Sapphire::ScriptAPI::QuestBattleScript( 161 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( TheCrimsonDuelist ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheCrowKnows.cpp b/src/scripts/instances/questbattles/TheCrowKnows.cpp new file mode 100644 index 00000000..79817e8f --- /dev/null +++ b/src/scripts/instances/questbattles/TheCrowKnows.cpp @@ -0,0 +1,58 @@ +#include +#include + +using namespace Sapphire; + +class TheCrowKnows : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_OBORO_01 = 5143462; + static constexpr auto INIT_POP_KARASU_1_01 = 5143463; + static constexpr auto INIT_POP_CHUNIN_1_01 = 5143464; + static constexpr auto INIT_POP_CHUNIN_1_02 = 5143473; + static constexpr auto INIT_POP_CHUNIN_1_03 = 5143474; + static constexpr auto INIT_POP_RANDOM_POP_2_01 = 5143520; + static constexpr auto INIT_POP_BAT_2_01 = 5143522; + static constexpr auto INIT_POP_RANDOM_POP_3_01 = 5143525; + static constexpr auto INIT_POP_BAT_3_01 = 5143526; + static constexpr auto INIT_POP_RANDOM_POP_3_02 = 5143529; + static constexpr auto INIT_POP_BAT_3_02 = 5143530; + static constexpr auto EOBJ_MAKIBISHI = 5327263; + static constexpr auto STATUS_MAKIBISHI_DAMAGE = 1221; + static constexpr auto DEF_ACTION_MAKIBISHI = 3196; + static constexpr auto LOC_ACTOR0 = 1010598; + static constexpr auto LOC_ACTOR1 = 1010597; + static constexpr auto LOC_ACTOR2 = 1010560; + static constexpr auto LOC_POS_ACTOR0 = 5375031; + static constexpr auto CUT_SCENE_00 = 691; + static constexpr auto LOC_MOTION0 = 936; + static constexpr auto LOC_BGM0 = 114; + static constexpr auto M_BAT_POP_INTERVAL_1 = 12; + static constexpr auto M_BAT_POP_INTERVAL_2 = 15; + static constexpr auto M_BAT_POP_INTERVAL_3 = 15; + +public: + TheCrowKnows() : Sapphire::ScriptAPI::QuestBattleScript( 99 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2009569, 0, 4, { 763.213318f, 9.000000f, 358.016998f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_1", 2009570, 0, 4, { 748.506775f, 9.000000f, 520.002930f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( TheCrowKnows ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheDefiantOnes.cpp b/src/scripts/instances/questbattles/TheDefiantOnes.cpp new file mode 100644 index 00000000..d839d9dd --- /dev/null +++ b/src/scripts/instances/questbattles/TheDefiantOnes.cpp @@ -0,0 +1,77 @@ +#include +#include + +using namespace Sapphire; + +class TheDefiantOnes : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_LALAI_01 = 5891371; + static constexpr auto BNPC_01_ZAKO_A_01 = 5891375; + static constexpr auto BNPC_01_ZAKO_A_02 = 5891376; + static constexpr auto BNPC_01_ZAKO_A_03 = 5891377; + static constexpr auto BNPC_02_ZAKO_A_04 = 5891410; + static constexpr auto BNPC_02_ZAKO_A_05 = 5891412; + static constexpr auto BNPC_02_ZAKO_B_01 = 5891413; + static constexpr auto BNPC_03_ZAKO_A_06 = 5891418; + static constexpr auto BNPC_03_ZAKO_A_07 = 5891419; + static constexpr auto BNPC_03_ZAKO_B_02 = 5891420; + static constexpr auto WARP_PC_POINT = 5891455; + static constexpr auto BNPC_LALAI_02 = 5891456; + static constexpr auto BNPC_KAZAGGCHAH_01 = 5891457; + static constexpr auto BNPC_DAZA_01 = 5891458; + static constexpr auto BNPC_DOZOLMELOC_01 = 5891459; + static constexpr auto BNPC_ZHAIANELHAH_01 = 5891460; + static constexpr auto BNPC_GARUMU = 5891463; + static constexpr auto BNPC_VOIDGATE_01 = 5891473; + static constexpr auto BNPC_VOIDGATE_02 = 5891474; + static constexpr auto BNPC_VOIDGATE_03 = 5891475; + static constexpr auto BNPC_IMP_01 = 5891476; + static constexpr auto BNPC_IMP_02 = 5891478; + static constexpr auto BNPC_IMP_03 = 5891479; + static constexpr auto ER_RECT_01 = 5891381; + static constexpr auto ER_RECT_02 = 5891414; + static constexpr auto ER_RECT_03 = 5891421; + static constexpr auto ER_RECT_04 = 5891424; + static constexpr auto CUT_SCENE_00 = 938; + static constexpr auto CUT_SCENE_01 = 939; + static constexpr auto IMP_POP_INTERVAL_1 = 20; + static constexpr auto LOGMESSAGE_QIB_01 = 3254; + static constexpr auto LOGMESSAGE_QIB_02 = 3255; + static constexpr auto BGM_BOSS_BATTLE = 91; + static constexpr auto BNPC_STATE_NECKS_OFF = 120; + static constexpr auto BNPC_THUNDER_BALL = 5901000; + static constexpr auto DEF_ACTION_SUMMON_THUNDER_BALL = 4802; + static constexpr auto DEF_ACTION_BLIZZARD_CANON = 4803; + static constexpr auto EOBJ_ICE_DAMAGE_AREA = 5901009; + static constexpr auto STATUS_PARAM_BLIZZARD_CANON = 1719; + static constexpr auto POP_RANGE_COMPANION_TANK_MOVE = 5901029; + static constexpr auto LOCKON_BY_THUNDER_BALL = 1; + static constexpr auto ENPC_WALDEVE_01 = 5938152; + static constexpr auto ENPC_WALDEVE_02 = 5938153; + static constexpr auto BNPC_STATE_LEFT_NECK_ON = 127; + static constexpr auto BNPC_STATE_NECKS_ON = 128; + +public: + TheDefiantOnes() : Sapphire::ScriptAPI::QuestBattleScript( 126 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( TheDefiantOnes ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheFaceofThal.cpp b/src/scripts/instances/questbattles/TheFaceofThal.cpp new file mode 100644 index 00000000..c6eccc10 --- /dev/null +++ b/src/scripts/instances/questbattles/TheFaceofThal.cpp @@ -0,0 +1,68 @@ +#include +#include + +using namespace Sapphire; + +class TheFaceofThal : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_01 = 4000991; + static constexpr auto INIT_P_POP_02 = 4001010; + static constexpr auto INIT_P_POP_03 = 4001011; + static constexpr auto INIT_P_POP_04 = 4001012; + static constexpr auto INIT_P_POP_05 = 4001013; + static constexpr auto INIT_POP_01A_01 = 4001017; + static constexpr auto INIT_POP_01A_02 = 4001018; + static constexpr auto INIT_POP_01A_03 = 4001019; + static constexpr auto INIT_POP_01A_04 = 4001020; + static constexpr auto INIT_POP_01B_01 = 4001025; + static constexpr auto INIT_POP_01B_02 = 4001026; + static constexpr auto INIT_POP_01B_03 = 4001073; + static constexpr auto INIT_POP_01C_01 = 4001028; + static constexpr auto INIT_POP_01C_02 = 4001029; + static constexpr auto INIT_POP_02A_01 = 4001081; + static constexpr auto INIT_POP_02A_02 = 4001082; + static constexpr auto INIT_POP_02A_03 = 4001083; + static constexpr auto INIT_POP_02A_04 = 4001084; + static constexpr auto INIT_POP_02B_01 = 4001089; + static constexpr auto INIT_POP_02B_02 = 4001091; + static constexpr auto INIT_POP_02B_03 = 4001229; + static constexpr auto INIT_POP_02D_01 = 4001094; + static constexpr auto INIT_POP_02D_02 = 4001095; + static constexpr auto INIT_POP_03A_01 = 4001104; + static constexpr auto INIT_POP_03A_02 = 4001105; + static constexpr auto INIT_POP_03A_03 = 4001106; + static constexpr auto INIT_POP_03A_04 = 4001107; + static constexpr auto INIT_POP_03E_01 = 4001113; + static constexpr auto INIT_POP_03E_02 = 4001116; + static constexpr auto INIT_POP_03E_03 = 4001118; + static constexpr auto INIT_POP_03BOSS_01 = 4001144; + static constexpr auto CUT_SCENE_01 = 36; + +public: + TheFaceofThal() : Sapphire::ScriptAPI::QuestBattleScript( 21 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "Exit", 2000605, 0, 4, { -715.942383f, 69.420113f, -830.370300f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_0", 2000606, 3861081, 4, { -670.462280f, 63.293751f, -801.510986f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Entrance", 2000604, 4262798, 5, { -677.634888f, 64.116386f, -803.174927f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( TheFaceofThal ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheFaceofTrueEvil.cpp b/src/scripts/instances/questbattles/TheFaceofTrueEvil.cpp deleted file mode 100644 index 9a980abb..00000000 --- a/src/scripts/instances/questbattles/TheFaceofTrueEvil.cpp +++ /dev/null @@ -1,32 +0,0 @@ -#include -#include - -using namespace Sapphire; - -class TheFaceofTrueEvil : - public Sapphire::ScriptAPI::InstanceContentScript -{ -public: - TheFaceofTrueEvil() : - Sapphire::ScriptAPI::InstanceContentScript( 5010 ) - { } - - void onInit( InstanceContent& instance ) override - { - - } - - void onUpdate( InstanceContent& instance, uint32_t currTime ) override - { - - } - - void onEnterTerritory( InstanceContent& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, - uint16_t param2 ) override - { - - } - -}; - -EXPOSE_SCRIPT( TheFaceofTrueEvil ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheFlameintheAbyss.cpp b/src/scripts/instances/questbattles/TheFlameintheAbyss.cpp new file mode 100644 index 00000000..8713b43f --- /dev/null +++ b/src/scripts/instances/questbattles/TheFlameintheAbyss.cpp @@ -0,0 +1,46 @@ +#include +#include + +using namespace Sapphire; + +class TheFlameintheAbyss : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_COMPANION_SIDURGU_01 = 5912555; + static constexpr auto BNPC_ENEMY_PHASE_1_TANK_MOOGLE_01 = 5912556; + static constexpr auto BNPC_ENEMY_PHASE_1_HEALER_MOOGLE_01 = 5912557; + static constexpr auto BNPC_ENEMY_PHASE_2_SNIPER_MOOGLE_01 = 5912558; + static constexpr auto BNPC_ENEMY_PHASE_2_NUKER_MOOGLE_01 = 5912559; + static constexpr auto BNPC_ENEMY_PHASE_3_ATTACKER_MOOGLE_01 = 5912560; + static constexpr auto BNPC_ENEMY_PHASE_3_BUFFER_MOOGLE_01 = 5912561; + static constexpr auto BNPC_ENEMY_PHASE_3_DEBUFFER_MOOGLE_01 = 5912562; + static constexpr auto CUT_SCENE_01 = 994; + static constexpr auto LOC_ACTOR0 = 1014593; + static constexpr auto LOC_ACTOR1 = 1014607; + static constexpr auto LOC_ACTOR2 = 1014608; + static constexpr auto LOC_MARKER_01 = 5959850; + static constexpr auto LOC_BGM0 = 178; + +public: + TheFlameintheAbyss() : Sapphire::ScriptAPI::QuestBattleScript( 147 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( TheFlameintheAbyss ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheHandsofFate.cpp b/src/scripts/instances/questbattles/TheHandsofFate.cpp new file mode 100644 index 00000000..55fab76a --- /dev/null +++ b/src/scripts/instances/questbattles/TheHandsofFate.cpp @@ -0,0 +1,101 @@ +#include +#include + +using namespace Sapphire; + +class TheHandsofFate : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto P_BNPC_LUNA_01 = 5890132; + static constexpr auto P_BNPC_SEBAS_01 = 5890133; + static constexpr auto P_BNPC_ABAN_01 = 5890135; + static constexpr auto BNPC_SEIMEI_01 = 5890136; + static constexpr auto BNPC_ZAKO_SORD_01 = 5890137; + static constexpr auto BNPC_ZAKO_ARC_01 = 5890138; + static constexpr auto BNPC_ZAKO_ARC_02 = 5890139; + static constexpr auto BNPC_ZAKO_ADD_SORD_01 = 5890402; + static constexpr auto BNPC_ZAKO_ADD_ARC_01 = 5890403; + static constexpr auto BNPC_ZAKO_ADD_ARC_02 = 5890404; + static constexpr auto BNPC_ZAKO_ADD_CNJ_01 = 5890405; + static constexpr auto BNPC_TAROT_LIGHTNING_01 = 5890146; + static constexpr auto BNPC_TAROT_FIRE_01 = 5890148; + static constexpr auto BNPC_TAROT_EARTH_01 = 5890149; + static constexpr auto BNPC_TAROT_ICE_01 = 5890150; + static constexpr auto BNPC_TAROT_WATER_01 = 5890152; + static constexpr auto BNPC_TAROT_WIND_01 = 5890153; + static constexpr auto POP_RANGE_MOVE_SEITEN_01 = 5890464; + static constexpr auto NCUT_01 = 989; + static constexpr auto STATUS_PARAM_TIMESTOP_TAROT_0 = 1768; + static constexpr auto STATUS_PARAM_TIMESTOP_TAROT_1 = 1769; + static constexpr auto STATUS_PARAM_TIMESTOP_TAROT_2 = 1770; + static constexpr auto STATUS_PARAM_TIMESTOP_TAROT_3 = 1771; + static constexpr auto STATUS_PARAM_TIMESTOP_TAROT_4 = 1772; + static constexpr auto STATUS_PARAM_TIMESTOP_TAROT_5 = 1773; + static constexpr auto STATUS_PARAM_TIMESTOP_TAROT_6 = 1774; + static constexpr auto ACTION_TIMESTOP = 4880; + static constexpr auto ACTION_SCRIPT_TRIGGER = 3269; + static constexpr auto BNPCBASE_ENEMY_GLA = 4709; + static constexpr auto BNPCBASE_ENEMY_ARC = 4710; + static constexpr auto BNPCBASE_ENEMY_CNJ = 4711; + static constexpr auto STATUS_PARAM_BLAZE_SPIKE = 1775; + static constexpr auto BNPC_TOUMEI_FOLLOW_PLAYER_A = 5921771; + static constexpr auto BNPC_TOUMEI_FOLLOW_PLAYER_B = 5921832; + static constexpr auto STATUS_PARAM_ICE_SPIKE = 1778; + static constexpr auto STATUS_PARAM_SHOCK_SPIKE = 1779; + static constexpr auto CHANNELING_WATER = 3; + static constexpr auto CHANNELING_WIND = 4; + static constexpr auto CHANNELING_FIRE = 5; + static constexpr auto CHANNELING_LIGHTENING = 6; + static constexpr auto CHANNELING_EARTH = 7; + static constexpr auto CHANNELING_ICE = 8; + static constexpr auto LOG_MESSAGE_01 = 3290; + static constexpr auto LOG_MESSAGE_02 = 3291; + static constexpr auto QIB_YELL_01 = 2934; + static constexpr auto QIB_YELL_02 = 2935; + static constexpr auto QIB_YELL_03 = 2936; + static constexpr auto QIB_YELL_04 = 2937; + static constexpr auto ACTION_OFFER_MP_REGEN = 4882; + static constexpr auto ACTION_OFFER_HASTE = 4883; + static constexpr auto STATUS_PARAM_HASTE_FOR_SEIMEI = 1781; + static constexpr auto LOC_ACTOR_SEVE = 1014701; + static constexpr auto LOC_ACTOR_LEVE = 1014684; + static constexpr auto LOC_ACTOR_QUIMP = 1014685; + static constexpr auto LOC_ACTOR_JANE = 1014691; + static constexpr auto LOC_ACTOR_SERVANT_01 = 1015121; + static constexpr auto LOC_ACTOR_SERVANT_02 = 1015122; + static constexpr auto LOC_ACTOR_SERVANT_03 = 1015123; + static constexpr auto LOC_LEVEL_LEVE = 5937551; + static constexpr auto LOC_LEVEL_QUIMP = 5937552; + static constexpr auto LOC_LEVEL_JANE = 5937553; + static constexpr auto EOBJ_TAROT_WATER = 5926254; + static constexpr auto EOBJ_TAROT_LIGHTENING = 5939358; + static constexpr auto EOBJ_TAROT_FIRE = 5939361; + static constexpr auto EOBJ_TAROT_EARTH = 5939365; + static constexpr auto EOBJ_TAROT_ICE = 5939367; + static constexpr auto EOBJ_TAROT_WIND = 5939371; + static constexpr auto LOC_BGM0 = 91; + static constexpr auto LOC_FACE0 = 608; + +public: + TheHandsofFate() : Sapphire::ScriptAPI::QuestBattleScript( 141 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( TheHandsofFate ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheHeartoftheProblem.cpp b/src/scripts/instances/questbattles/TheHeartoftheProblem.cpp deleted file mode 100644 index 6067a4be..00000000 --- a/src/scripts/instances/questbattles/TheHeartoftheProblem.cpp +++ /dev/null @@ -1,45 +0,0 @@ -#include -#include - -using namespace Sapphire; - -class TheHeartoftheProblem : - public Sapphire::ScriptAPI::InstanceContentScript -{ -public: - TheHeartoftheProblem() : - Sapphire::ScriptAPI::InstanceContentScript( 5015 ) - { } - - void onInit( InstanceContent& instance ) override - { - instance.registerEObj( "unknown_0", 2008290, 6894789, 4, { 375.272888f, -4.893838f, 290.605011f }, 1.000000f, 0.000000f ); - instance.registerEObj( "Yol", 2008330, 0, 4, { 466.995514f, 21.157949f, -328.188995f }, 1.000000f, 0.000000f ); - instance.registerEObj( "Ovoo", 2008289, 6872570, 4, { 354.000000f, -0.790344f, 296.500000f }, 0.991760f, 0.000048f ); - // States -> land_def (id: 3) land_def_anim (id: 4) land_on (id: 5) land_on_anim (id: 6) land_on_omen (id: 7) land_on_omen (id: 8) land_off (id: 19) land_off_anim (id: 20) - instance.registerEObj( "unknown_1", 2004967, 0, 4, { -187.899506f, 1.653982f, 760.298279f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgbg_e3f3_q1_gmc02", 2007457, 7653044, 4, { -223.010605f, 3.178310f, 519.218811f }, 0.991760f, 0.000048f ); - // States -> smto_on (id: 19) smto_c_on (id: 3) smto_off (id: 1) smto_off_anim (id: 2) smto_c_off (id: 4) smto_fdout (id: 18) - instance.registerEObj( "sgvf_w_lvd_b1472", 2007457, 7653055, 4, { -186.572403f, 4.189117f, 532.602173f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgvf_w_lvd_b1472_1", 2007457, 7653056, 4, { -186.602600f, 6.933841f, 568.871582f }, 0.991760f, 0.000048f ); - instance.registerEObj( "sgvf_w_lvd_b1199", 2007457, 7669017, 4, { -186.572403f, 5.921182f, 550.737427f }, 1.000000f, 0.000000f ); - // States -> circle_off (id: 3) circle_off (id: 4) circle_on (id: 5) circle_on (id: 6) - instance.registerEObj( "sgvf_w_lvd_b1199_1", 2007457, 7632420, 4, { -223.165497f, 2.660000f, 519.000000f }, 1.000000f, 0.000000f ); - // States -> circle_off (id: 3) circle_off (id: 4) circle_on (id: 5) circle_on (id: 6) - - } - - void onUpdate( InstanceContent& instance, uint32_t currTime ) override - { - - } - - void onEnterTerritory( InstanceContent& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, - uint16_t param2 ) override - { - - } - -}; - -EXPOSE_SCRIPT( TheHeartoftheProblem ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheHereticamongUs.cpp b/src/scripts/instances/questbattles/TheHereticamongUs.cpp new file mode 100644 index 00000000..91dc94ef --- /dev/null +++ b/src/scripts/instances/questbattles/TheHereticamongUs.cpp @@ -0,0 +1,77 @@ +#include +#include + +using namespace Sapphire; + +class TheHereticamongUs : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_1ST_01 = 4256791; + static constexpr auto INIT_POP_1ST_02 = 4256796; + static constexpr auto INIT_POP_1ST_03 = 4256797; + static constexpr auto INIT_POP_1ST_04 = 4256798; + static constexpr auto INIT_P_POP_01 = 4256801; + static constexpr auto INIT_P_POP_02 = 4256802; + static constexpr auto INIT_P_POP_03 = 4256803; + static constexpr auto INIT_POP_2ST_01 = 4256804; + static constexpr auto INIT_POP_2ST_02 = 4256805; + static constexpr auto INIT_POP_BOSS_AFTER_MUTATION = 4291248; + static constexpr auto INIT_POP_3_01 = 4292891; + static constexpr auto INIT_POP_3_02 = 4292892; + static constexpr auto INIT_POP_3_03 = 4292887; + static constexpr auto DEF_ACTION_MUTATE_AIVIS = 1162; + static constexpr auto DEF_ACTION_CALL_MONSTER = 1163; + static constexpr auto LOC_ACTOR0 = 1006902; + static constexpr auto LOC_ACTOR1 = 1006903; + static constexpr auto LOC_ACTOR2 = 1006904; + static constexpr auto LOC_ACTOR3 = 1006907; + static constexpr auto LOC_POS_ACTOR0 = 4323677; + static constexpr auto LOC_POS_ACTOR1 = 4323689; + static constexpr auto LOC_ACTION0 = 961; + static constexpr auto LOC_ACTION1 = 982; + static constexpr auto LOC_ACTOR4 = 1006949; + static constexpr auto LOC_BGM0 = 83; + static constexpr auto LOC_BGM1 = 113; + static constexpr auto LOC_ACTION2 = 66; + static constexpr auto LOC_ACTION3 = 67; + +public: + TheHereticamongUs() : Sapphire::ScriptAPI::QuestBattleScript( 61 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "sgbg_w_qic_001_04a", 2006993, 6235274, 4, { -35.822102f, 298.899994f, -205.263199f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_0", 2006952, 0, 4, { -35.712589f, 298.899994f, -204.878006f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Exit", 2000139, 0, 4, { 556.049377f, 348.102509f, -752.435730f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Entrance", 2000182, 4600289, 5, { 523.532471f, 348.223389f, -736.685730f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "unknown_1", 2002332, 0, 4, { 533.090881f, 348.691895f, -742.750916f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_2", 2002333, 0, 4, { 539.940430f, 348.836395f, -734.401489f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_3", 2000608, 3967803, 4, { 202.369598f, 257.761108f, 80.435272f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_4", 2000608, 3976993, 4, { 273.634705f, 254.600204f, 106.048500f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_5", 2000608, 3986797, 4, { 205.504898f, 246.188995f, 194.875702f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_6", 2000608, 3986798, 4, { 326.313385f, 239.193497f, 221.138901f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_7", 2000608, 2718481, 4, { 240.552307f, 302.769714f, -199.979996f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_8", 2000608, 4065433, 4, { 204.970001f, 302.119995f, -216.311600f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_9", 2000608, 2814617, 4, { 205.869995f, 302.219086f, -276.681396f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_10", 2000608, 2763112, 4, { -433.000000f, 211.007706f, -216.148605f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_11", 2000608, 4187649, 4, { -453.000000f, 211.000000f, -281.046600f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_12", 2000608, 4187961, 4, { -416.000000f, 210.788193f, -279.813812f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( TheHereticamongUs ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheHiddenChapter.cpp b/src/scripts/instances/questbattles/TheHiddenChapter.cpp new file mode 100644 index 00000000..c613e204 --- /dev/null +++ b/src/scripts/instances/questbattles/TheHiddenChapter.cpp @@ -0,0 +1,57 @@ +#include +#include + +using namespace Sapphire; + +class TheHiddenChapter : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_01 = 4035753; + static constexpr auto INIT_POP_02 = 4035757; + static constexpr auto INIT_POP_03 = 4035758; + static constexpr auto INIT_POP_04 = 4035762; + static constexpr auto INIT_POP_05 = 4035763; + static constexpr auto INIT_POP_06 = 4035764; + static constexpr auto INIT_POP_07 = 4035765; + static constexpr auto INIT_POP_08 = 4036114; + static constexpr auto INIT_POP_09 = 4036608; + static constexpr auto INIT_POP_10 = 4036610; + static constexpr auto INIT_POP_11 = 4036611; + static constexpr auto INIT_POP_12 = 4036612; + static constexpr auto INIT_POP_13 = 4036621; + static constexpr auto LOC_ACTOR1 = 1001708; + static constexpr auto LOC_ACTOR2 = 1001709; + static constexpr auto LOC_ACTOR3 = 1001710; + static constexpr auto LOC_ACTOR4 = 1001711; + static constexpr auto LOC_ACTOR5 = 1001712; + static constexpr auto LOC_POS_ACTOR1 = 4101648; + static constexpr auto LOC_POS_ACTOR2 = 4101651; + static constexpr auto LOC_ACTION1 = 787; + static constexpr auto LOC_ACTION2_0 = 791; + static constexpr auto LOC_ACTION2_1 = 794; + static constexpr auto LOC_ACTION2_2 = 795; + static constexpr auto DEF_ACTION_THUNDER_STRIKE = 325; + +public: + TheHiddenChapter() : Sapphire::ScriptAPI::QuestBattleScript( 42 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( TheHiddenChapter ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheKeytoVictory.cpp b/src/scripts/instances/questbattles/TheKeytoVictory.cpp new file mode 100644 index 00000000..b30e4e21 --- /dev/null +++ b/src/scripts/instances/questbattles/TheKeytoVictory.cpp @@ -0,0 +1,109 @@ +#include +#include + +using namespace Sapphire; + +class TheKeytoVictory : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto EOBJ_ALARM = 6978148; + static constexpr auto EOBJ_BARREL = 6978149; + static constexpr auto EOBJ_IRON = 6978150; + static constexpr auto EOBJ_POT = 6978151; + static constexpr auto EOBJ_LUMBER = 6978152; + static constexpr auto EOBJ_DIARY = 6978154; + static constexpr auto BNPC_P1_TRASH_01 = 6978191; + static constexpr auto BNPC_P1_TRASH_02 = 6978193; + static constexpr auto BNPC_P1_TRASH_03 = 6978194; + static constexpr auto BNPC_P1_TRASH_04 = 6978195; + static constexpr auto BNPC_P1_TRASH_05 = 6978196; + static constexpr auto BNPC_P1_TRASH_06 = 6978199; + static constexpr auto BNPC_P1_TRASH_07 = 6978201; + static constexpr auto P_BNPC_WISCAR = 6978206; + static constexpr auto P_BNPC_LYSE = 6978207; + static constexpr auto P_BNPC_ALPHINAUD = 6978208; + static constexpr auto P_BNPC_THANCRED = 6978209; + static constexpr auto PR_P1_ALLY_MOVE_01 = 6978215; + static constexpr auto PR_P1_ALLY_MOVE_02 = 6978239; + static constexpr auto PR_P1_ALLY_MOVE_03 = 6978333; + static constexpr auto PR_P1_ALLY_MOVE_04 = 6978240; + static constexpr auto PR_P1_ALLY_MOVE_05 = 6978241; + static constexpr auto PR_P1_ALLY_MOVE_06 = 6978341; + static constexpr auto PR_P1_ALLY_MOVE_07 = 6978342; + static constexpr auto PR_P2_ALLY_MOVE_01 = 6978405; + static constexpr auto PR_P2_ALLY_MOVE_02 = 6978406; + static constexpr auto PR_P2_ALLY_MOVE_03 = 6978407; + static constexpr auto PR_P2_ALLY_MOVE_04 = 6978408; + static constexpr auto EVENT_ACTION_01 = 21; + static constexpr auto EVENT_ACTION_02 = 41; + static constexpr auto BNPC_P2_IRONMAN_DIARY = 6978255; + static constexpr auto BNPC_P2_VANGUARD_01 = 6978438; + static constexpr auto BNPC_P2_VANGUARD_02 = 6978439; + static constexpr auto BNPC_P2_VANGUARD_03 = 6978440; + static constexpr auto BNPC_P2_VANGUARD_04 = 6978441; + static constexpr auto BNPC_P2_VANGUARD_05 = 6978490; + static constexpr auto BNPC_P2_KAMAKIRI_01 = 6978445; + static constexpr auto BNPC_P2_KAMAKIRI_02 = 6978446; + static constexpr auto BNPC_P2_KAMAKIRI_03 = 6978447; + static constexpr auto BNPC_P2_KAMAKIRI_04 = 6978448; + static constexpr auto BNPC_P2_KAMAKIRI_05 = 6978449; + static constexpr auto BNPC_P2_KAMAKIRI_06 = 6978450; + static constexpr auto BNPC_P2_KAMAKIRI_07 = 6978451; + static constexpr auto SE_ALARM = 97; + static constexpr auto BEHAVIOR_LOOK_AROUND = 30471; + static constexpr auto BEHAVIOR_THINK_SET = 30475; + static constexpr auto BEHAVIOR_LOOK_AROUND_THINK = 30784; + static constexpr auto BEHAVIOR_THINK_BASE = 30858; + static constexpr auto BEHAVIOR_BASIC_STAND = 30064; + static constexpr auto BGM_AFTER_ALARM = 39; + static constexpr auto BGM_NORMAL = 317; + static constexpr auto BGM_BOSS_BATTLE = 39; + static constexpr auto YELL_LYSE_SEARCH = 5907; + static constexpr auto YELL_THANCRED_SEARCH = 5908; + static constexpr auto YELL_WISCAR_SEARCH = 5909; + static constexpr auto YELL_ALPHINAUD_SEARCH = 5910; + static constexpr auto YELL_WISCAR_ALARM_BATTLE = 5911; + static constexpr auto BNPC_P3_TRASH_01 = 6989316; + static constexpr auto BNPC_P3_TRASH_02 = 6989317; + static constexpr auto BNPC_P3_TRASH_03 = 6989318; + static constexpr auto BNPC_P3_TRASH_04 = 6989319; + static constexpr auto BNPC_P3_TRASH_05 = 6989320; + static constexpr auto BNPC_P3_TRASH_06 = 6989321; + static constexpr auto BNPC_P3_TRASH_07 = 6989322; + static constexpr auto BNPC_P3_TRASH_08 = 6989323; + static constexpr auto BNPC_P3_TRASH_09 = 6989324; + static constexpr auto BNPC_BOSS = 6989325; + static constexpr auto BNPC_ENERGY_TOOL_01 = 6989326; + static constexpr auto BNPC_ENERGY_TOOL_02 = 6989327; + static constexpr auto CHANNELING_BOSS_TOOL = 22; + static constexpr auto STATUS_PARAM_BOSS_TOOL = 3313; + static constexpr auto ER_AROUND_BOSS = 6989587; + static constexpr auto ER_NEAR_TEMPLE = 6997563; + static constexpr auto BNPCBASE_BOSS_TOOL = 7859; + static constexpr auto EOBJ_LOOK_AROUND = 6990528; + static constexpr auto PR_AROUND_BOSS = 6990533; + static constexpr auto P_BNPC_CARBUNCLE = 6990542; + +public: + TheKeytoVictory() : Sapphire::ScriptAPI::QuestBattleScript( 158 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( TheKeytoVictory ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheLominsanWay.cpp b/src/scripts/instances/questbattles/TheLominsanWay.cpp new file mode 100644 index 00000000..3e64508a --- /dev/null +++ b/src/scripts/instances/questbattles/TheLominsanWay.cpp @@ -0,0 +1,54 @@ +#include +#include + +using namespace Sapphire; + +class TheLominsanWay : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_1_KAI_01 = 4295469; + static constexpr auto INIT_POP_1_ROC_01 = 4295470; + static constexpr auto INIT_POP_1_ROC_02 = 4295472; + static constexpr auto INIT_POP_2_BOM_01 = 4295473; + static constexpr auto INIT_ENPC_MIL_01 = 4295474; + static constexpr auto DEF_PARALYSIS = 17; + static constexpr auto POP_RANGE_ENEMY_MOVE_01 = 4295504; + static constexpr auto LOGMESSAGE_QIB_01 = 3217; + static constexpr auto LOGMESSAGE_QIB_02 = 3218; + static constexpr auto LOGMESSAGE_QIB_03 = 3219; + static constexpr auto QIB_YELL_01 = 1274; + static constexpr auto QIB_YELL_02 = 1275; + static constexpr auto QIB_YELL_03 = 1276; + static constexpr auto QIB_YELL_04 = 1277; + static constexpr auto QIB_YELL_05 = 1278; + static constexpr auto QIB_YELL_06 = 1279; + static constexpr auto QIB_YELL_07 = 1285; + static constexpr auto BGM_BATTLE = 37; + static constexpr auto LOC_ACTOR0 = 1006264; + static constexpr auto LOC_ACTOR1 = 1005259; + static constexpr auto LOC_POS_ACTOR0 = 4312558; + static constexpr auto LOC_BGM1 = 87; + +public: + TheLominsanWay() : Sapphire::ScriptAPI::QuestBattleScript( 59 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( TheLominsanWay ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheMeasureofHisReach.cpp b/src/scripts/instances/questbattles/TheMeasureofHisReach.cpp new file mode 100644 index 00000000..4195f8ec --- /dev/null +++ b/src/scripts/instances/questbattles/TheMeasureofHisReach.cpp @@ -0,0 +1,132 @@ +#include +#include + +using namespace Sapphire; + +class TheMeasureofHisReach : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_WARP_POINT_001 = 6851576; + static constexpr auto LOC_MARKER_001 = 6851574; + static constexpr auto P_BNPC_ALPHINAUD = 6875022; + static constexpr auto P_BNPC_CARBUNCLE = 6875024; + static constexpr auto BNPC_HAKUROU = 6875464; + static constexpr auto BNPC_WOLFMAN_LNC_ALPHINAUD_01 = 6851697; + static constexpr auto BNPC_WOLFMAN_LNC_PC_01 = 6851698; + static constexpr auto BNPC_WOLFMAN_LNC_PC_02 = 6851699; + static constexpr auto BNPC_WOLFMAN_LNC_ALPHINAUD_02 = 6851700; + static constexpr auto BNPC_WOLFMAN_LNC_PC_03 = 6851708; + static constexpr auto BNPC_WOLFMAN_LNC_ALPHINAUD_03 = 6851709; + static constexpr auto BNPC_WOLFMAN_ARC_ALPHINAUD_01 = 6851710; + static constexpr auto BNPC_WOLFMAN_ARC_PC_01 = 6851713; + static constexpr auto BNPC_TOUMEI_ACTION_01 = 6875112; + static constexpr auto BNPC_TOUMEI_ACTION_02 = 6875137; + static constexpr auto BNPC_TOUMEI_ACTION_03 = 6875138; + static constexpr auto BNPC_TOUMEI_ACTION_04 = 6875139; + static constexpr auto BNPC_TOUMEI_ACTION_05 = 6875140; + static constexpr auto BNPC_TOUMEI_ACTION_06 = 6875141; + static constexpr auto BNPC_TOUMEI_ACTION_07 = 6875142; + static constexpr auto BNPC_TOUMEI_ACTION_08 = 6875143; + static constexpr auto BNPC_TOUMEI_ACTION_09 = 6875144; + static constexpr auto BNPC_TOUMEI_ACTION_10 = 6875145; + static constexpr auto BNPC_TOUMEI_ACTION_11 = 6875146; + static constexpr auto BNPC_TOUMEI_ACTION_12 = 6875147; + static constexpr auto BNPC_TOUMEI_ACTION_13 = 6875148; + static constexpr auto BNPC_TOUMEI_ACTION_14 = 6875149; + static constexpr auto BNPC_TOUMEI_ACTION_15 = 6875150; + static constexpr auto BNPC_TOUMEI_ACTION_16 = 6875151; + static constexpr auto BNPC_TOUMEI_ACTION_17 = 6875152; + static constexpr auto BNPC_TOUMEI_ACTION_18 = 6875153; + static constexpr auto BNPC_TOUMEI_ACTION_19 = 6875154; + static constexpr auto BNPC_TOUMEI_ACTION_20 = 6875155; + static constexpr auto BNPC_TOUMEI_ACTION_21 = 6876717; + static constexpr auto PRANGE_YUKIKAZE_EAST_01 = 6875051; + static constexpr auto PRANGE_YUKIKAZE_EAST_02 = 6875050; + static constexpr auto PRANGE_YUKIKAZE_EAST_03 = 6875049; + static constexpr auto PRANGE_YUKIKAZE_EAST_04 = 6875048; + static constexpr auto PRANGE_YUKIKAZE_EAST_05 = 6875034; + static constexpr auto PRANGE_YUKIKAZE_EAST_06 = 6875053; + static constexpr auto PRANGE_YUKIKAZE_EAST_07 = 6875052; + static constexpr auto PRANGE_YUKIKAZE_EAST_08 = 6875054; + static constexpr auto PRANGE_YUKIKAZE_EAST_09 = 6875056; + static constexpr auto PRANGE_YUKIKAZE_EAST_10 = 6875057; + static constexpr auto PRANGE_YUKIKAZE_SOUTH_01 = 6875070; + static constexpr auto PRANGE_YUKIKAZE_SOUTH_02 = 6875063; + static constexpr auto PRANGE_YUKIKAZE_SOUTH_03 = 6875062; + static constexpr auto PRANGE_YUKIKAZE_SOUTH_04 = 6875061; + static constexpr auto PRANGE_YUKIKAZE_SOUTH_05 = 6875060; + static constexpr auto PRANGE_YUKIKAZE_SOUTH_06 = 6875046; + static constexpr auto PRANGE_YUKIKAZE_SOUTH_07 = 6875045; + static constexpr auto PRANGE_YUKIKAZE_SOUTH_08 = 6875055; + static constexpr auto PRANGE_YUKIKAZE_SOUTH_09 = 6875058; + static constexpr auto PRANGE_YUKIKAZE_SOUTH_10 = 6875059; + static constexpr auto PRANGE_HANAGURUMA_LEVEL01_000 = 6875084; + static constexpr auto PRANGE_HANAGURUMA_LEVEL01_180 = 6875085; + static constexpr auto PRANGE_HANAGURUMA_LEVEL01_090 = 6876844; + static constexpr auto PRANGE_HANAGURUMA_LEVEL01_270 = 6876845; + static constexpr auto PRANGE_HANAGURUMA_LEVEL02_293 = 6875098; + static constexpr auto PRANGE_HANAGURUMA_LEVEL02_023 = 6875099; + static constexpr auto PRANGE_HANAGURUMA_LEVEL02_203 = 6875100; + static constexpr auto PRANGE_HANAGURUMA_LEVEL02_113 = 6875101; + static constexpr auto PRANGE_HANAGURUMA_LEVEL03_068 = 6877062; + static constexpr auto PRANGE_HANAGURUMA_LEVEL03_158 = 6877063; + static constexpr auto PRANGE_HANAGURUMA_LEVEL03_248 = 6877064; + static constexpr auto PRANGE_HANAGURUMA_LEVEL03_338 = 6877065; + static constexpr auto PRANGE_HANAGURUMA_LEVEL04_045 = 6875105; + static constexpr auto PRANGE_HANAGURUMA_LEVEL04_135 = 6875106; + static constexpr auto PRANGE_HANAGURUMA_LEVEL04_315 = 6875107; + static constexpr auto PRANGE_HANAGURUMA_LEVEL04_225 = 6875108; + static constexpr auto PRANGE_HANAGURUMA_LEVEL04_090 = 6875086; + static constexpr auto PRANGE_HANAGURUMA_LEVEL04_270 = 6875088; + static constexpr auto PRANGE_HANAGURUMA_LEVEL04_180 = 6875091; + static constexpr auto PRANGE_HANAGURUMA_LEVEL04_000 = 6875092; + static constexpr auto ACTION_YUKIKAZE = 8400; + static constexpr auto ACTION_GEKKO = 8401; + static constexpr auto ACTION_HANAGURUMA = 8402; + static constexpr auto ACTION_SUMMON_RYUZU = 8449; + static constexpr auto ACTION_TOUMEI_GEKKO = 8398; + static constexpr auto ACTION_SMN_CARBUNCLE_WHITE = 9158; + static constexpr auto ACTION_CARBUNCLE_W_BUFF_AREA = 9396; + static constexpr auto BNPC_RYUZU_A01 = 6877318; + static constexpr auto BNPC_RYUZU_A02 = 6956324; + static constexpr auto BNPC_RYUZU_A03 = 6956325; + static constexpr auto BNPC_RYUZU_A04 = 6956326; + static constexpr auto BNPC_RYUZU_B01 = 6877355; + static constexpr auto BNPC_RYUZU_B02 = 6956327; + static constexpr auto BNPC_RYUZU_B03 = 6956328; + static constexpr auto BNPC_RYUZU_B04 = 6956329; + static constexpr auto BGM_BOSS_BATTLE = 406; + static constexpr auto P_BNPC_CARBUNCLE_WHITE = 6972241; + static constexpr auto BNPC_CARBUNCLE_W_BUFF_AREA = 6972395; + static constexpr auto STATUS_PARAM_BUFFAREA = 3298; + static constexpr auto LOC_ACTOR_01 = 1011887; + static constexpr auto LOC_ACTOR_02 = 1022007; + static constexpr auto LOC_ACTOR_03 = 1022008; + static constexpr auto LOC_ACTOR_04 = 1022009; + static constexpr auto LOC_IDLE_01 = 34; + static constexpr auto ENPC_HAKUROU = 7011709; + static constexpr auto BNPC_TOUMEI_TAKED_HATE = 7022975; + +public: + TheMeasureofHisReach() : Sapphire::ScriptAPI::QuestBattleScript( 167 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( TheMeasureofHisReach ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheMongrelandtheKnight.cpp b/src/scripts/instances/questbattles/TheMongrelandtheKnight.cpp new file mode 100644 index 00000000..4cb868f6 --- /dev/null +++ b/src/scripts/instances/questbattles/TheMongrelandtheKnight.cpp @@ -0,0 +1,72 @@ +#include +#include + +using namespace Sapphire; + +class TheMongrelandtheKnight : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_MERISI_1ST_01 = 6869391; + static constexpr auto BNPC_INQUIS_1ST_01 = 6869410; + static constexpr auto BNPC_INQUIS_1ST_02 = 6869411; + static constexpr auto BNPC_TEMPLEADER_1ST_01 = 6869413; + static constexpr auto BNPC_TEMP_LNC_1ST_01 = 6869414; + static constexpr auto BNPC_TEMP_ARC_1ST_01 = 6869415; + static constexpr auto BNPC_TEMP_ARC_1ST_02 = 6869416; + static constexpr auto BNPC_MERISI_2ND_01 = 6869453; + static constexpr auto P_BNPC_HILDA_1ST_01 = 6869371; + static constexpr auto P_BNPC_ROSTN_1ST_01 = 6869382; + static constexpr auto P_BNPC_STEP_1ST_01 = 6869393; + static constexpr auto P_BNPC_HILDA_2ND_01 = 6869451; + static constexpr auto P_BNPC_MOSC_2ND_01 = 6869454; + static constexpr auto P_BNPC_ROSTN_2ND_01 = 6869484; + static constexpr auto P_BNPC_STEP_2ND_01 = 6869485; + static constexpr auto BNPC_MERISI_POS = 7010124; + static constexpr auto BNPC_TOUMEI_SCAPEGOAT = 7010130; + static constexpr auto WARP_01 = 6869448; + static constexpr auto BGM_LAST_JOB = 316; + static constexpr auto LOC_ACTOR0 = 1011895; + static constexpr auto LOC_ACTOR1 = 1021318; + static constexpr auto LOC_ACTOR2 = 1021311; + static constexpr auto LOC_ACTOR3 = 1014579; + static constexpr auto LOC_ACTOR4 = 1014580; + static constexpr auto LOC_LQ_SECONDHALF_01 = 6913459; + static constexpr auto LOC_LQ_SECONDHALF_ADD_01 = 6955064; + static constexpr auto LOC_LQ_SECONDHALF_MELISIE_01 = 6956268; + static constexpr auto BNPC_FIRE_BALL = 6969504; + static constexpr auto EOBJ_FIRE_FLOOR = 6969506; + static constexpr auto STATUS_FIRE_FLOOR = 3295; + static constexpr auto PR_FRIEND_MOVE_POS01 = 6969508; + static constexpr auto PR_FRIEND_MOVE_POS02 = 6969510; + static constexpr auto ACT_FIRE_FLOOR = 9387; + static constexpr auto ACT_FLAME_SUMMON = 9389; + static constexpr auto ACT_TP_DAMAGE = 9390; + static constexpr auto ACT_FORM_CHANGE = 9393; + static constexpr auto BNPCSTATE_SCARED = 7; + +public: + TheMongrelandtheKnight() : Sapphire::ScriptAPI::QuestBattleScript( 173 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "ClanHuntboard", 2005909, 5863338, 4, { 73.908386f, 24.322830f, 22.067520f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_0", 2000608, 5105673, 4, { 84.499992f, 24.124950f, 22.859011f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_1", 2000608, 5048108, 4, { 97.900009f, 24.465071f, -4.244444f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( TheMongrelandtheKnight ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheMountainThatStrides.cpp b/src/scripts/instances/questbattles/TheMountainThatStrides.cpp new file mode 100644 index 00000000..bf3a333c --- /dev/null +++ b/src/scripts/instances/questbattles/TheMountainThatStrides.cpp @@ -0,0 +1,56 @@ +#include +#include + +using namespace Sapphire; + +class TheMountainThatStrides : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_1ST_01 = 4125284; + static constexpr auto INIT_POP_1ST_01 = 4125273; + static constexpr auto INIT_POP_1ST_02 = 4125274; + static constexpr auto INIT_POP_1ST_03 = 4125275; + static constexpr auto INIT_POP_1ST_04 = 4125276; + static constexpr auto INIT_POP_1ST_05 = 4125277; + static constexpr auto INIT_POP_1ST_06 = 4125280; + static constexpr auto INIT_POP_2ST_01 = 4125319; + static constexpr auto INIT_POP_2ST_02 = 4125320; + static constexpr auto INIT_POP_2ST_03 = 4125312; + static constexpr auto INIT_POP_2ST_04 = 4125316; + static constexpr auto INIT_POP_2ST_05 = 4125321; + static constexpr auto INIT_POP_2ST_06 = 4125317; + static constexpr auto INIT_POP_3ST_01 = 4125338; + static constexpr auto INIT_POP_3ST_02 = 4125340; + static constexpr auto INIT_POP_3ST_03 = 4125342; + static constexpr auto INIT_POP_3ST_04 = 4125343; + static constexpr auto INIT_POP_3ST_05 = 4125345; + static constexpr auto CUT_SCENE_01 = 38; + static constexpr auto CUT_SCENE_02 = 39; + static constexpr auto DEF_PARALYSIS = 17; + +public: + TheMountainThatStrides() : Sapphire::ScriptAPI::QuestBattleScript( 26 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "Entrance", 2000182, 6228959, 5, { 457.583801f, 5.680784f, 280.512787f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "unknown_0", 2000608, 2807920, 4, { -95.322441f, -25.054260f, 61.518002f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( TheMountainThatStrides ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheOneThatGotAway.cpp b/src/scripts/instances/questbattles/TheOneThatGotAway.cpp new file mode 100644 index 00000000..a5af332f --- /dev/null +++ b/src/scripts/instances/questbattles/TheOneThatGotAway.cpp @@ -0,0 +1,57 @@ +#include +#include + +using namespace Sapphire; + +class TheOneThatGotAway : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_BOSS = 3762267; + static constexpr auto INIT_POP_1_ARC_01 = 3762259; + static constexpr auto INIT_POP_1_ARC_02 = 3762264; + static constexpr auto INIT_POP_1_ARC_03 = 4277285; + static constexpr auto INIT_POP_1_LNC_01 = 3762262; + static constexpr auto INIT_POP_1_LNC_02 = 3762265; + static constexpr auto INIT_POP_1_LNC_03 = 4277284; + static constexpr auto INIT_P_POP_LEIHALIAPOH = 3815984; + static constexpr auto INIT_P_POP_SILVAIRRE = 3815986; + static constexpr auto INIT_POP_2_ARC_01 = 4277286; + static constexpr auto INIT_POP_2_ARC_02 = 4277287; + static constexpr auto INIT_POP_2_LNC_01 = 4277288; + static constexpr auto INIT_POP_2_LNC_02 = 4277289; + static constexpr auto INIT_POP_2_CNJ_01 = 4277290; + static constexpr auto INIT_POP_2_THM_01 = 4277291; + static constexpr auto CUT_SCENE_01 = 14; + static constexpr auto CUT_SCENE_02 = 15; + static constexpr auto EOBJ_BTL_ARROW_FIRE = 4309876; + static constexpr auto STATUS_CUSTOM_ARROW_FIRE = 675; + static constexpr auto DEF_ACTION_SIDEWINDER = 1060; + static constexpr auto DEF_ACTION_MONSTER_WHISTLE = 983; + static constexpr auto DEF_PARALYSIS = 17; + +public: + TheOneThatGotAway() : Sapphire::ScriptAPI::QuestBattleScript( 3 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "Entrance", 2000182, 5021407, 5, { 623.000000f, 23.872311f, 94.505638f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "Exit", 2000139, 0, 4, { 623.000000f, 23.656260f, 61.956181f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( TheOneThatGotAway ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheOrphansandtheBrokenBlade.cpp b/src/scripts/instances/questbattles/TheOrphansandtheBrokenBlade.cpp deleted file mode 100644 index 48659911..00000000 --- a/src/scripts/instances/questbattles/TheOrphansandtheBrokenBlade.cpp +++ /dev/null @@ -1,32 +0,0 @@ -#include -#include - -using namespace Sapphire; - -class TheOrphansandtheBrokenBlade : - public Sapphire::ScriptAPI::InstanceContentScript -{ -public: - TheOrphansandtheBrokenBlade() : - Sapphire::ScriptAPI::InstanceContentScript( 5019 ) - { } - - void onInit( InstanceContent& instance ) override - { - - } - - void onUpdate( InstanceContent& instance, uint32_t currTime ) override - { - - } - - void onEnterTerritory( InstanceContent& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, - uint16_t param2 ) override - { - - } - -}; - -EXPOSE_SCRIPT( TheOrphansandtheBrokenBlade ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/ThePowerofaTourney.cpp b/src/scripts/instances/questbattles/ThePowerofaTourney.cpp new file mode 100644 index 00000000..3ab85d2b --- /dev/null +++ b/src/scripts/instances/questbattles/ThePowerofaTourney.cpp @@ -0,0 +1,125 @@ +#include +#include + +using namespace Sapphire; + +class ThePowerofaTourney : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_COMPANION_FLAG = 5888334; + static constexpr auto BNPC_COMPANION_GENNAI = 5888338; + static constexpr auto BNPC_COMPANION_MAYAYA = 5888340; + static constexpr auto BNPC_COMPANION_SEREST = 5888341; + static constexpr auto BNPC_ENEMY_FLAG = 5888345; + static constexpr auto EOBJ_KIRAKIRA_COMPANION_FLAG = 5888358; + static constexpr auto EOBJ_KIRAKIRA_ENEMY_FLAG = 5888366; + static constexpr auto EOBJ_KIRAKIRA_FUKUHEI = 5888373; + static constexpr auto EOBJ_SHINGOUDAN_HASSHA = 5888383; + static constexpr auto POP_RANGE_FUKUHEI = 5888367; + static constexpr auto POP_RANGE_ENEMY_FLAG = 5888374; + static constexpr auto POP_RANGE_SHINGOUDAN_HASSHA = 5888387; + static constexpr auto POP_RANGE_GENNAI_INSTRUCTION_END = 5888692; + static constexpr auto EVENT_ACTION_01 = 50; + static constexpr auto EVENT_ACTION_02 = 61; + static constexpr auto EOBJ_GENNAI_INSTRUCTION_END = 5888701; + static constexpr auto BEHAVIOR_GENNAI = 30582; + static constexpr auto BEHAVIOR_MAYAYA = 30583; + static constexpr auto BEHAVIOR_SEREST = 30584; + static constexpr auto POP_RANGE_PLAYER_START_FOR_BATTLE = 5889656; + static constexpr auto BGM_BOSS_BATTLE = 91; + static constexpr auto BNPC_COMPANION_MAYAYA_BATTLE = 5889759; + static constexpr auto BNPC_COMPANION_GENNAI_BATTLE = 5889760; + static constexpr auto BNPC_COMPANION_MCH_DEFENSE_01 = 5889761; + static constexpr auto BNPC_COMPANION_MCH_DEFENSE_02 = 5889762; + static constexpr auto BNPC_COMPANION_MCH_DEFENSE_03 = 5889763; + static constexpr auto BNPC_COMPANION_FORTEMPS_GLA_01 = 5889764; + static constexpr auto BNPC_COMPANION_FORTEMPS_GLA_02 = 5889765; + static constexpr auto BNPC_COMPANION_FORTEMPS_GLA_03 = 5889766; + static constexpr auto BNPC_COMPANION_HAILLENARTE_GLA_01 = 5889767; + static constexpr auto BNPC_COMPANION_HAILLENARTE_LNC_02 = 5889768; + static constexpr auto BNPC_COMPANION_HAILLENARTE_LNC_03 = 5889769; + static constexpr auto BNPC_ENEMY_DZEMAEL_LEADER = 5889773; + static constexpr auto BNPC_ENEMY_DURENDAIRE_LEADER = 5889774; + static constexpr auto BNPC_ENEMY_PACK_A_GLA_01 = 5889775; + static constexpr auto BNPC_ENEMY_PACK_A_GLA_02 = 5889776; + static constexpr auto BNPC_ENEMY_PACK_A_GLA_03 = 5889777; + static constexpr auto BNPC_ENEMY_PACK_C_GLA = 5889778; + static constexpr auto BNPC_ENEMY_PACK_C_LNC = 5889779; + static constexpr auto BNPC_ENEMY_PACK_C_CNJ = 5889780; + static constexpr auto BNPC_ENEMY_PACK_B_LNC_01 = 5889781; + static constexpr auto BNPC_ENEMY_PACK_B_LNC_02 = 5889782; + static constexpr auto BNPC_ENEMY_PACK_B_LNC_03 = 5889783; + static constexpr auto BNPC_ENEMY_PACK_D_ARC_01 = 5889944; + static constexpr auto BNPC_ENEMY_PACK_D_ARC_02 = 5889945; + static constexpr auto BNPC_ENEMY_PACK_D_ARC_03 = 5889946; + static constexpr auto BNPC_ENEMY_PACK_D_ARC_04 = 5889947; + static constexpr auto EOBJ_SKIP_INSTRUCTION = 5890069; + static constexpr auto EOBJ_HEAL_AREA_COMPANION = 5890169; + static constexpr auto EOBJ_HEAL_AREA_ENEMY = 5890172; + static constexpr auto POP_RANGE_HEAL_AREA_COMPANION = 5890186; + static constexpr auto POP_RANGE_HEAL_AREA_ENEMY = 5890187; + static constexpr auto STATUS_PARAM_HEAL_AREA = 1684; + static constexpr auto BNPC_ENEMY_ADD_CNJ_01 = 5890333; + static constexpr auto BNPC_ENEMY_ADD_CNJ_02 = 5890338; + static constexpr auto BNPC_ENEMY_ADD_CNJ_03 = 5890339; + static constexpr auto BNPC_COMPANION_MCH_FUKUHEI_01 = 5891009; + static constexpr auto BNPC_COMPANION_MCH_FUKUHEI_02 = 5891011; + static constexpr auto BNPC_COMPANION_MCH_FUKUHEI_03 = 5891012; + static constexpr auto BNPC_COMPANION_MCH_FUKUHEI_04 = 5891013; + static constexpr auto BNPC_COMPANION_MCH_FUKUHEI_05 = 5891014; + static constexpr auto BNPC_COMPANION_SEREST_BATTLE = 5891015; + static constexpr auto EOBJ_SHINGOUDAN_HASSHA_BATTLE = 5891005; + static constexpr auto ACTION_SCRIPT_TRIGGER = 3269; + static constexpr auto ACTION_SCRIPT_TRIGGER_B = 4777; + static constexpr auto EOBJ_SHINGOUDAN_HASSHA_KIRAKIRA_BATTLE = 5910901; + static constexpr auto EOBJ_SHINGOUDAN_HASSHA_KIRAKIRA = 5910902; + static constexpr auto ENPC_SKIP_INSTRUCTION = 5930950; + static constexpr auto LOC_ACTOR0 = 1014579; + static constexpr auto LOC_ACTOR1 = 1015124; + static constexpr auto LOC_ACTOR2 = 1014585; + static constexpr auto LOC_ACTOR3 = 1014584; + static constexpr auto LOC_ACTOR4 = 1015056; + static constexpr auto LOC_ACTOR5 = 1015057; + static constexpr auto LOC_MARKER_01 = 5932738; + static constexpr auto LOG_MESSAGE_01 = 5346; + +public: + ThePowerofaTourney() : Sapphire::ScriptAPI::QuestBattleScript( 129 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "sgbg_w_qic_001_04a", 2006993, 6235274, 4, { -35.822102f, 298.899994f, -205.263199f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_0", 2006952, 0, 4, { -35.712589f, 298.899994f, -204.878006f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Exit", 2000139, 0, 4, { 556.049377f, 348.102509f, -752.435730f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Entrance", 2000182, 4600289, 5, { 523.532471f, 348.223389f, -736.685730f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "unknown_1", 2002332, 0, 4, { 533.090881f, 348.691895f, -742.750916f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_2", 2002333, 0, 4, { 539.940430f, 348.836395f, -734.401489f }, 0.991760f, 0.000048f ); + instance.registerEObj( "unknown_3", 2000608, 3967803, 4, { 202.369598f, 257.761108f, 80.435272f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_4", 2000608, 3976993, 4, { 273.634705f, 254.600204f, 106.048500f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_5", 2000608, 3986797, 4, { 205.504898f, 246.188995f, 194.875702f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_6", 2000608, 3986798, 4, { 326.313385f, 239.193497f, 221.138901f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_7", 2000608, 2718481, 4, { 240.552307f, 302.769714f, -199.979996f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_8", 2000608, 4065433, 4, { 204.970001f, 302.119995f, -216.311600f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_9", 2000608, 2814617, 4, { 205.869995f, 302.219086f, -276.681396f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_10", 2000608, 2763112, 4, { -433.000000f, 211.007706f, -216.148605f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_11", 2000608, 4187649, 4, { -453.000000f, 211.000000f, -281.046600f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_12", 2000608, 4187961, 4, { -416.000000f, 210.788193f, -279.813812f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( ThePowerofaTourney ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/ThePowertoProtect.cpp b/src/scripts/instances/questbattles/ThePowertoProtect.cpp new file mode 100644 index 00000000..2e6a07d4 --- /dev/null +++ b/src/scripts/instances/questbattles/ThePowertoProtect.cpp @@ -0,0 +1,87 @@ +#include +#include + +using namespace Sapphire; + +class ThePowertoProtect : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto P_BNPC_WIDARGELT = 6865351; + static constexpr auto P_BNPC_DZENTSA = 6865485; + static constexpr auto P_BNPC_OTCHAKHA = 6865484; + static constexpr auto P_BNPC_HAMON = 6865486; + static constexpr auto P_BNPC_CHUCHUTO = 6865489; + static constexpr auto P_BNPC_RURUKUTA = 6865494; + static constexpr auto BNPC_BOSS = 6865521; + static constexpr auto BNPC_HEWERALD = 6865534; + static constexpr auto BNPC_PACK1_01 = 6865527; + static constexpr auto BNPC_PACK1_02 = 6865531; + static constexpr auto BNPC_PACK1_03 = 6865532; + static constexpr auto BNPC_PACK1_04 = 6865533; + static constexpr auto BNPC_PACK2_01 = 6872933; + static constexpr auto BNPC_PACK2_02 = 6872934; + static constexpr auto BNPC_PACK2_03 = 6872935; + static constexpr auto BNPC_PACK2_04 = 6872937; + static constexpr auto BNPC_PACK2_05 = 6872938; + static constexpr auto BNPC_PACK2_06 = 6872943; + static constexpr auto BNPC_PACK2_07 = 6872944; + static constexpr auto BNPC_PACK2_08 = 6872945; + static constexpr auto BNPC_PACK3_MACHINE_01 = 6873169; + static constexpr auto BNPC_PACK3_MACHINE_02 = 6873170; + static constexpr auto BNPC_PACK3_MACHINE_03 = 6873171; + static constexpr auto BNPC_PACK3_SMALL_01 = 6873202; + static constexpr auto BNPC_PACK3_SMALL_02 = 6873203; + static constexpr auto BNPC_PACK3_SMALL_03 = 6873204; + static constexpr auto BNPC_PACK3_SMALL_04 = 6873205; + static constexpr auto BNPC_PACK3_SMALL_05 = 6873206; + static constexpr auto BNPC_PACK3_SMALL_06 = 6873207; + static constexpr auto BNPC_PACK3_SMALL_07 = 6873208; + static constexpr auto BNPC_PACK3_SMALL_08 = 6873209; + static constexpr auto LOCKON_BOSS_CHARGE = 30; + static constexpr auto EOBJ_FIRE_DAMAGE_AREA = 6873049; + static constexpr auto STATUS_PARAM_FIRE_DAMAGE = 2956; + static constexpr auto ACTION_DARK_FIRE_II = 2175; + static constexpr auto PR_WIDARGELT_MOVE_01 = 6872898; + static constexpr auto PR_HAMON_MOVE_01 = 6873216; + static constexpr auto QIB_YELL_01 = 4601; + static constexpr auto QIB_YELL_02 = 4602; + static constexpr auto QIB_YELL_03 = 4603; + static constexpr auto QIB_YELL_04 = 4604; + static constexpr auto QIB_YELL_05 = 4605; + static constexpr auto QIB_YELL_06 = 4606; + static constexpr auto QIB_YELL_07 = 4607; + static constexpr auto QIB_YELL_08 = 4608; + static constexpr auto QIB_YELL_09 = 4609; + static constexpr auto QIB_YELL_10 = 6142; + static constexpr auto ACTION_HEWERALD_CHARGE = 8305; + static constexpr auto ACTION_HAMON_HYAKURETSUKEN = 8320; + static constexpr auto ACTION_WIDARGELT_PBAE_HEAL = 8319; + static constexpr auto BNPCBASE_BOSS = 7115; + static constexpr auto ACTION_JAMMER_EXPLODE = 8341; + static constexpr auto ACTION_SELF_DESTRUCT = 9438; + static constexpr auto ACTION_FINAL_HEAVEN = 9439; + static constexpr auto BNPCNAME_THEOBALD_VOICE = 6299; + +public: + ThePowertoProtect() : Sapphire::ScriptAPI::QuestBattleScript( 153 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( ThePowertoProtect ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheReasonRoaille.cpp b/src/scripts/instances/questbattles/TheReasonRoaille.cpp new file mode 100644 index 00000000..d337e49f --- /dev/null +++ b/src/scripts/instances/questbattles/TheReasonRoaille.cpp @@ -0,0 +1,125 @@ +#include +#include + +using namespace Sapphire; + +class TheReasonRoaille : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_ENEMY_ROAILLE = 5068285; + static constexpr auto INIT_POP_ENEMY_CENTURION = 5068286; + static constexpr auto INIT_POP_ENEMY_01_03 = 5068287; + static constexpr auto INIT_POP_ENEMY_01_04 = 5068288; + static constexpr auto INIT_POP_ENEMY_01_05 = 5068290; + static constexpr auto INIT_POP_ENEMY_01_06 = 5068291; + static constexpr auto INIT_POP_ENEMY_01_07 = 5068292; + static constexpr auto INIT_POP_ENEMY_01_08 = 5068293; + static constexpr auto INIT_POP_ENEMY_CLAW_01 = 5069486; + static constexpr auto INIT_POP_ENEMY_CLAW_02 = 5069487; + static constexpr auto INIT_POP_ENEMY_02_03 = 5069490; + static constexpr auto INIT_POP_ENEMY_02_04 = 5069491; + static constexpr auto INIT_POP_ENEMY_02_05 = 5069492; + static constexpr auto INIT_POP_ENEMY_02_06 = 5069493; + static constexpr auto INIT_POP_ENEMY_02_07 = 5069494; + static constexpr auto INIT_POP_ENEMY_02_08 = 5069495; + static constexpr auto INIT_POP_ENEMY_IRON_GIANT = 5069501; + static constexpr auto INIT_POP_ENEMY_CONJURER = 5069503; + static constexpr auto INIT_POP_ENEMY_03_03 = 5069505; + static constexpr auto INIT_POP_ENEMY_03_04 = 5069506; + static constexpr auto INIT_POP_ENEMY_03_05 = 5069507; + static constexpr auto INIT_POP_ENEMY_03_06 = 5069508; + static constexpr auto INIT_POP_ENEMY_04_01 = 5069512; + static constexpr auto INIT_POP_ENEMY_04_02 = 5069513; + static constexpr auto INIT_POP_ENEMY_04_03 = 5069514; + static constexpr auto INIT_POP_ENEMY_04_04 = 5069515; + static constexpr auto INIT_POP_ENEMY_MACHINE_01 = 5069521; + static constexpr auto INIT_POP_ENEMY_MACHINE_02 = 5069522; + static constexpr auto INIT_POP_ENEMY_MACHINE_03 = 5069523; + static constexpr auto INIT_POP_ENEMY_05_04 = 5069524; + static constexpr auto INIT_POP_ENEMY_05_05 = 5069525; + static constexpr auto INIT_POP_ENEMY_05_06 = 5069526; + static constexpr auto INIT_POP_ENEMY_05_07 = 5069527; + static constexpr auto INIT_POP_COMPANION_ILBERD = 5068294; + static constexpr auto INIT_POP_COMPANION_YUYUHASE = 5068295; + static constexpr auto INIT_POP_COMPANION_CRYSTAL_BRAVE_LAN = 5068296; + static constexpr auto INIT_POP_COMPANION_CRYSTAL_BRAVE_ARC = 5068297; + static constexpr auto INIT_POP_COMPANION_CRYSTAL_BRAVE_CON = 5068298; + static constexpr auto INIT_POP_COMPANION_FUMETSU_GLA = 5068299; + static constexpr auto INIT_POP_COMPANION_FUMETSU_PGL = 5068300; + static constexpr auto INIT_POP_COMPANION_FUMETSU_THA = 5068301; + static constexpr auto INIT_POP_COMPANION_YUGIRI = 5069516; + static constexpr auto INIT_POP_COMPANION_DOMA_01 = 5069517; + static constexpr auto INIT_POP_COMPANION_DOMA_02 = 5069518; + static constexpr auto QIB_YELL_01 = 2340; + static constexpr auto QIB_YELL_02 = 2341; + static constexpr auto QIB_YELL_03 = 2358; + static constexpr auto QIB_YELL_04 = 2359; + static constexpr auto QIB_YELL_05 = 2360; + static constexpr auto QIB_YELL_06 = 2361; + static constexpr auto LOC_ACTOR0 = 1008191; + static constexpr auto LOC_ACTOR1 = 1010582; + static constexpr auto LOC_ACTOR2 = 1010589; + static constexpr auto LOC_ACTOR3 = 1010590; + static constexpr auto LOC_ACTOR4 = 1010545; + static constexpr auto LOC_ACTOR5 = 1010547; + static constexpr auto LOC_ACTOR6 = 1010591; + static constexpr auto LOC_ACTOR7 = 1010592; + static constexpr auto LOC_ACTOR10 = 1008191; + static constexpr auto LOC_ACTOR11 = 1010546; + static constexpr auto LOC_ACTOR12 = 1008181; + static constexpr auto LOC_ACTOR13 = 1010582; + static constexpr auto LOC_ACTOR14 = 1010593; + static constexpr auto LOC_ACTOR15 = 1010594; + static constexpr auto LOC_ACTOR16 = 1010595; + static constexpr auto LOC_POS_ACTOR0 = 5155969; + static constexpr auto LOC_POS_ACTOR1 = 5155974; + static constexpr auto LOC_POS_ACTOR2 = 5155976; + static constexpr auto ACTION_TIMELINE_EVENT_BASE_STAND_POSE4 = 1055; + static constexpr auto ACTION_TIMELINE_EVENT_BASE_KNEE_SEACH = 1014; + static constexpr auto ACTION_TIMELINE_BATTLE_CORPSE = 73; + static constexpr auto ACTION_TIMELINE_EVENT_BASE_GUARD_STAND = 808; + static constexpr auto ACTION_TIMELINE_FACIAL_SPEWING = 617; + static constexpr auto ACTION_TIMELINE_EVENT_BASE_BIND_GROUND_SIT = 979; + static constexpr auto ACTION_TIMELINE_EVENT_BASE_KNEE_SUFFERING = 936; + static constexpr auto ACTION_TIMELINE_EVENT_SALUTE_CRY = 1045; + static constexpr auto LOC_BGM0 = 1; + static constexpr auto LOC_BGM1 = 84; + static constexpr auto QIB_CHANNELING = 4; + static constexpr auto DEF_ACTION_SEISHINHA = 3197; + static constexpr auto STATUS_PARAM_REGEN = 859; + static constexpr auto DEF_ACTION_JUBAKU = 3207; + static constexpr auto EOBJ_JUBAKU = 5346846; + static constexpr auto STATUS_PARAM_PARALYSIS = 1230; + static constexpr auto STATUS_DEATH_CLAW = 609; + static constexpr auto STATUS_PARAM_DEATH_CLAW = 1039; + static constexpr auto LOC_ACTOR90 = 5357438; + static constexpr auto LOC_ACTOR91 = 5357450; + static constexpr auto LOC_ACTOR92 = 5357449; + static constexpr auto LOC_ACTOR93 = 5357447; + static constexpr auto LOC_ACTOR94 = 5357446; + static constexpr auto LOC_BGM2 = 223; + static constexpr auto DEF_ACTION_IRONCLAW = 3086; + +public: + TheReasonRoaille() : Sapphire::ScriptAPI::QuestBattleScript( 101 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( TheReasonRoaille ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheRematch.cpp b/src/scripts/instances/questbattles/TheRematch.cpp new file mode 100644 index 00000000..5b06b7df --- /dev/null +++ b/src/scripts/instances/questbattles/TheRematch.cpp @@ -0,0 +1,80 @@ +#include +#include + +using namespace Sapphire; + +class TheRematch : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_01 = 4011016; + static constexpr auto INIT_P_POP_02 = 4011017; + static constexpr auto INIT_P_POP_03 = 4011018; + static constexpr auto INIT_POP_01_01 = 4011007; + static constexpr auto INIT_POP_01_02 = 4011008; + static constexpr auto INIT_POP_02_01 = 4011009; + static constexpr auto INIT_POP_02_02 = 4011010; + static constexpr auto INIT_POP_03_01 = 4011011; + static constexpr auto INIT_POP_03_02 = 4011012; + static constexpr auto ER_RECT_01 = 4011013; + static constexpr auto INIT_POP_04_01 = 4011014; + static constexpr auto INIT_POP_04_02 = 4011015; + static constexpr auto INIT_POP_VS_MIRA_01 = 4011021; + static constexpr auto INIT_POP_VS_MIRA_02 = 4011022; + static constexpr auto INIT_POP_VS_GIL_A_01 = 4011027; + static constexpr auto INIT_POP_VS_GIL_A_02 = 4011028; + static constexpr auto INIT_POP_VS_GIL_B_01 = 4011029; + static constexpr auto INIT_POP_VS_GIL_B_02 = 4011030; + static constexpr auto INIT_P_POP_ALDIS = 4011120; + static constexpr auto INIT_POP_NOTAR_GIL_02 = 4011234; + static constexpr auto INIT_POP_NOTAR_GIL_03 = 4011237; + static constexpr auto INIT_POP_NOTAR_GIL_04 = 4011241; + static constexpr auto INIT_POP_NOTAR_GIL_05 = 4011244; + static constexpr auto INIT_POP_NOTAR_GIL_06 = 4011246; + static constexpr auto INIT_POP_NOTAR_GIL_07 = 4011249; + static constexpr auto INIT_POP_NOTAR_GIL_08 = 4011260; + static constexpr auto INIT_POP_NOTAR_GIL_09 = 4011262; + static constexpr auto INIT_POP_NOTAR_GIL_10 = 4011266; + static constexpr auto INIT_POP_NOTAR_GIL_11 = 4011267; + static constexpr auto INIT_POP_REHWOLD = 4011122; + static constexpr auto INIT_POP_NOTAR_ENE_02 = 4011235; + static constexpr auto INIT_POP_NOTAR_ENE_03 = 4011236; + static constexpr auto INIT_POP_NOTAR_ENE_04 = 4011242; + static constexpr auto INIT_POP_NOTAR_ENE_05 = 4011243; + static constexpr auto INIT_POP_NOTAR_ENE_06 = 4011247; + static constexpr auto INIT_POP_NOTAR_ENE_07 = 4011248; + static constexpr auto INIT_POP_NOTAR_ENE_08 = 4011261; + static constexpr auto INIT_POP_NOTAR_ENE_09 = 4011263; + static constexpr auto INIT_POP_NOTAR_ENE_10 = 4011265; + static constexpr auto INIT_POP_NOTAR_ENE_11 = 4011268; + static constexpr auto INIT_POP_LAST_ENE_01 = 4011419; + static constexpr auto INIT_POP_LAST_ENE_02 = 4011422; + static constexpr auto INIT_POP_LAST_ENE_03 = 4011426; + static constexpr auto INIT_POP_LAST_OGRE = 4011434; + static constexpr auto INIT_POP_LAST_BOSS = 4011442; + static constexpr auto DEF_ACTION_MONSTER_SUMMON = 867; + static constexpr auto CUT_SCENE_01 = 43; + static constexpr auto CUT_SCENE_02 = 162; + +public: + TheRematch() : Sapphire::ScriptAPI::QuestBattleScript( 23 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( TheRematch ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheResonant.cpp b/src/scripts/instances/questbattles/TheResonant.cpp deleted file mode 100644 index ea76eb5a..00000000 --- a/src/scripts/instances/questbattles/TheResonant.cpp +++ /dev/null @@ -1,38 +0,0 @@ -#include -#include - -using namespace Sapphire; - -class TheResonant : - public Sapphire::ScriptAPI::InstanceContentScript -{ -public: - TheResonant() : - Sapphire::ScriptAPI::InstanceContentScript( 5017 ) - { } - - void onInit( InstanceContent& instance ) override - { - instance.registerEObj( "unknown_0", 2007457, 6927333, 4, { 503.255096f, 70.000000f, 589.613708f }, 1.000000f, 0.000000f ); - instance.registerEObj( "Gatewinch", 2008907, 0, 4, { 508.261505f, 71.415131f, 575.156982f }, 0.991760f, 0.000048f ); - instance.registerEObj( "sgbg_w_qic_004_04a", 2007457, 7012282, 4, { 702.654602f, 70.000000f, 532.514282f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_1", 2008678, 0, 4, { -139.654007f, 69.993042f, 667.066772f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_2", 2008678, 0, 4, { -187.638397f, 69.993042f, 634.666504f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_3", 2008678, 0, 4, { -73.946472f, 69.993042f, 652.456177f }, 0.991760f, 0.000048f ); - - } - - void onUpdate( InstanceContent& instance, uint32_t currTime ) override - { - - } - - void onEnterTerritory( InstanceContent& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, - uint16_t param2 ) override - { - - } - -}; - -EXPOSE_SCRIPT( TheResonant ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheSpiritIsWilling.cpp b/src/scripts/instances/questbattles/TheSpiritIsWilling.cpp new file mode 100644 index 00000000..eba7bb99 --- /dev/null +++ b/src/scripts/instances/questbattles/TheSpiritIsWilling.cpp @@ -0,0 +1,66 @@ +#include +#include + +using namespace Sapphire; + +class TheSpiritIsWilling : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_01 = 4081071; + static constexpr auto INIT_POP_01A_01 = 4081077; + static constexpr auto INIT_POP_01A_02 = 4081078; + static constexpr auto INIT_POP_01A_03 = 4081080; + static constexpr auto INIT_POP_01A_04 = 4081081; + static constexpr auto INIT_POP_01A_05 = 4081081; + static constexpr auto INIT_POP_02A_01 = 4081099; + static constexpr auto INIT_POP_02A_02 = 4081100; + static constexpr auto INIT_POP_02C_02 = 4081102; + static constexpr auto INIT_POP_02C_01 = 4081103; + static constexpr auto INIT_POP_02B_02 = 4081104; + static constexpr auto INIT_POP_02B_01 = 4081105; + static constexpr auto INIT_POP_03C_01 = 4081113; + static constexpr auto INIT_POP_03C_02 = 4081114; + static constexpr auto INIT_POP_03C_03 = 4081115; + static constexpr auto INIT_POP_03C_04 = 4081116; + static constexpr auto INIT_POP_03D_01 = 4081117; + static constexpr auto BNPC_C_TYPE = 690; + static constexpr auto LOC_POS_ACTOR1 = 4087447; + static constexpr auto LOC_POS_ACTOR2 = 4087454; + static constexpr auto LOC_POS_ACTOR3 = 4087458; + static constexpr auto LOC_POS_ACTOR4 = 4087478; + static constexpr auto LOC_ACTOR0 = 1003827; + static constexpr auto LOC_ACTOR1 = 1003817; + static constexpr auto LOC_ACTOR2 = 1006011; + static constexpr auto LOC_BNPC1 = 1005971; + static constexpr auto LOC_BNPC2 = 1005972; + static constexpr auto LOC_BNPC3 = 1005973; + static constexpr auto LOC_BNPC4 = 1002997; + static constexpr auto LOC_FACE0 = 604; + static constexpr auto LOC_FACE1 = 617; + static constexpr auto NCUT_15010 = 164; + static constexpr auto INIT_ENPC_POP_01 = 4107478; + static constexpr auto INIT_ENPC_POP_02 = 4107479; + +public: + TheSpiritIsWilling() : Sapphire::ScriptAPI::QuestBattleScript( 30 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( TheSpiritIsWilling ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheThreatofPerplexity.cpp b/src/scripts/instances/questbattles/TheThreatofPerplexity.cpp new file mode 100644 index 00000000..32ab5d25 --- /dev/null +++ b/src/scripts/instances/questbattles/TheThreatofPerplexity.cpp @@ -0,0 +1,41 @@ +#include +#include + +using namespace Sapphire; + +class TheThreatofPerplexity : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_FRIEND = 4031433; + static constexpr auto INIT_POP_BOSS = 4031432; + static constexpr auto INIT_POP_ENEMY_A_01 = 4031434; + static constexpr auto INIT_POP_ENEMY_A_02 = 4031747; + static constexpr auto DEF_ACTION_BLLIZARA = 146; + +public: + TheThreatofPerplexity() : Sapphire::ScriptAPI::QuestBattleScript( 41 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "Exit", 2000605, 0, 4, { -715.942383f, 69.420113f, -830.370300f }, 1.000000f, 0.000000f ); + instance.registerEObj( "unknown_0", 2000606, 3861081, 4, { -670.462280f, 63.293751f, -801.510986f }, 1.000000f, 0.000000f ); + instance.registerEObj( "Entrance", 2000604, 4262798, 5, { -677.634888f, 64.116386f, -803.174927f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( TheThreatofPerplexity ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheThreatofSuperiority.cpp b/src/scripts/instances/questbattles/TheThreatofSuperiority.cpp new file mode 100644 index 00000000..c310cac3 --- /dev/null +++ b/src/scripts/instances/questbattles/TheThreatofSuperiority.cpp @@ -0,0 +1,51 @@ +#include +#include + +using namespace Sapphire; + +class TheThreatofSuperiority : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_01 = 4033627; + static constexpr auto INIT_POP_02 = 4033629; + static constexpr auto INIT_POP_03 = 4033631; + static constexpr auto INIT_POP_07 = 4033691; + static constexpr auto INIT_POP_08 = 4033692; + static constexpr auto INIT_EO_POP_01 = 4033684; + static constexpr auto EVENT_ACTION_01 = 16; + static constexpr auto INIT_P_POP_01 = 4033688; + static constexpr auto INIT_POP_ENEMY_F01 = 4089803; + static constexpr auto INIT_POP_ENEMY_F02 = 4089804; + static constexpr auto INIT_POP_ENEMY_F03 = 4089805; + static constexpr auto ACTOR20 = 1001713; + static constexpr auto ACTOR30 = 1002325; + static constexpr auto ACTOR40 = 1002326; + static constexpr auto CUT_CLSTHM15010 = 51; + static constexpr auto INIT_POP_04 = 4169221; + static constexpr auto INIT_EO_POP_02 = 4185128; + static constexpr auto LOC_POS_EOBJ1 = 4033684; + static constexpr auto BGM_BATTLE = 37; + +public: + TheThreatofSuperiority() : Sapphire::ScriptAPI::QuestBattleScript( 40 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( TheThreatofSuperiority ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheTimebetweentheSeconds.cpp b/src/scripts/instances/questbattles/TheTimebetweentheSeconds.cpp new file mode 100644 index 00000000..3aa11f49 --- /dev/null +++ b/src/scripts/instances/questbattles/TheTimebetweentheSeconds.cpp @@ -0,0 +1,101 @@ +#include +#include + +using namespace Sapphire; + +class TheTimebetweentheSeconds : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_COMPANION_YUGIRI = 6797684; + static constexpr auto BNPC_ENEMY_ZENOS = 6797683; + static constexpr auto BNPC_ENEMY_ZENOS_02 = 6958602; + static constexpr auto BNPC_ENEMY_EMPIRE_SWORD_01 = 6815860; + static constexpr auto BNPC_ENEMY_EMPIRE_SWORD_02 = 6815865; + static constexpr auto BNPC_ENEMY_EMPIRE_CONJ_03 = 6815862; + static constexpr auto BNPC_ENEMY_EMPIRE_CONJ_01 = 6815863; + static constexpr auto BNPC_ENEMY_EMPIRE_CONJ_02 = 6815861; + static constexpr auto ENPC_ENEMY_YOTSUYU = 6816541; + static constexpr auto CUT_SCENE_N_StmAct03230 = 1431; + static constexpr auto BNPC_TOUMEI_ACTION_01 = 6904473; + static constexpr auto BNPC_TOUMEI_ACTION_02 = 6904474; + static constexpr auto BNPC_TOUMEI_ACTION_03 = 6904475; + static constexpr auto BNPC_TOUMEI_ACTION_04 = 6904476; + static constexpr auto BNPC_TOUMEI_ACTION_05 = 6904477; + static constexpr auto BNPC_TOUMEI_ACTION_06 = 6904478; + static constexpr auto BNPC_TOUMEI_ACTION_07 = 6904480; + static constexpr auto BNPC_TOUMEI_ACTION_08 = 6904481; + static constexpr auto BNPC_TOUMEI_TRANCEFORM = 6906735; + static constexpr auto BNPC_BLACKFIRE_01 = 6904405; + static constexpr auto BNPC_BLACKFIRE_02 = 6904410; + static constexpr auto BNPC_BLACKFIRE_03 = 6904412; + static constexpr auto BNPC_BLACKFIRE_04 = 6951085; + static constexpr auto BNPC_BLACKFIRE_05 = 6951091; + static constexpr auto BNPC_BLACKFIRE_06 = 6951094; + static constexpr auto BNPC_BLACKFIRE_07 = 6951103; + static constexpr auto BNPC_ENEMY_ZENOS_BUNSHIN_01 = 6903720; + static constexpr auto BNPC_ENEMY_ZENOS_BUNSHIN_02 = 6905018; + static constexpr auto ACTION_SYUKUCHI_CAST = 8999; + static constexpr auto ACTION_IDLE_TRRIGER = 3269; + static constexpr auto ACTION_IDLE_TRRIGER_B = 4777; + static constexpr auto ACTION_EXECUTION = 8994; + static constexpr auto ACTION_FULLPOWER_DAMEGE = 9016; + static constexpr auto ACTION_FULLPOWER = 8997; + static constexpr auto ACTION_KURONOTACHI = 8992; + static constexpr auto ACTION_SYUKUCHI = 8690; + static constexpr auto LINEVOICE_ZENOS_001 = 8201342; + static constexpr auto LINEVOICE_ZENOS_003 = 8201343; + static constexpr auto LINEVOICE_ZENOS_004 = 8201344; + static constexpr auto LINEVOICE_ZENOS_006 = 8201346; + static constexpr auto LINEVOICE_ZENOS_008 = 8201348; + static constexpr auto LINEVOICE_YUGIRI_004 = 8201144; + static constexpr auto LINEVOICE_YUGIRI_009 = 8201338; + static constexpr auto LINEVOICE_YUGIRI_010 = 8201339; + static constexpr auto YELL_ZENOS_001 = 4838; + static constexpr auto YELL_ZENOS_003 = 4946; + static constexpr auto YELL_ZENOS_004 = 4944; + static constexpr auto YELL_ZENOS_006 = 4837; + static constexpr auto YELL_ZENOS_008 = 4945; + static constexpr auto YELL_YUGIRI_008 = 4946; + static constexpr auto YELL_YUGIRI_010 = 4948; + static constexpr auto YELL_YUGIRI_004 = 4949; + static constexpr auto YELL_EMPIRE_DEAD_01 = 4938; + static constexpr auto YELL_EMPIRE_DEAD_02 = 4939; + static constexpr auto YELL_EMPIRE_DEAD_03 = 4940; + static constexpr auto YELL_ZENOS_REACTION_TO_YUGIRI = 4596; + static constexpr auto YELL_ZENOS_REACTION_TO_YUGIRI_02 = 6320; + static constexpr auto STATUS_KNOCKDOWN_ETERNAL = 3000; + static constexpr auto STATUS_STUN = 2991; + static constexpr auto STATUS_KNOCKDOWN = 3122; + static constexpr auto STATUS_YOUTOUKAIHOU = 3119; + static constexpr auto BGM_NO_MUSIC = 1; + static constexpr auto BGM_ZENOS_BATTLE = 152; + static constexpr auto WEATHER_SQUL = 8; + static constexpr auto POPRANGE_YUGIRI_MOVE = 6797686; + static constexpr auto POPRANGE_ROOM_CENTER = 6903399; + static constexpr auto BNPC_STATE_ATTRIBUTE_CHANGE_A1_B1_C0_KEEP = 139; + static constexpr auto BNPC_STATE_OVER_RAY_CHANGE1_SLOT1 = 117; + static constexpr auto BEHAVIOR_SCARED = 30865; + +public: + TheTimebetweentheSeconds() : Sapphire::ScriptAPI::QuestBattleScript( 163 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( TheTimebetweentheSeconds ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheVoidgateBreathesGloomy.cpp b/src/scripts/instances/questbattles/TheVoidgateBreathesGloomy.cpp new file mode 100644 index 00000000..506a183e --- /dev/null +++ b/src/scripts/instances/questbattles/TheVoidgateBreathesGloomy.cpp @@ -0,0 +1,82 @@ +#include +#include + +using namespace Sapphire; + +class TheVoidgateBreathesGloomy : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_P_POP_DAZA_01 = 4294979; + static constexpr auto INIT_POP_1_VOID_01 = 4294980; + static constexpr auto INIT_POP_1_VOID_02 = 4294981; + static constexpr auto INIT_POP_1_VOID_03 = 4294983; + static constexpr auto INIT_POP_1_VOID_04 = 4294984; + static constexpr auto INIT_POP_1_VOID_05 = 4294985; + static constexpr auto INIT_POP_1_DMN_01 = 4294986; + static constexpr auto INIT_POP_1_DMN_02 = 4294987; + static constexpr auto INIT_POP_1_GST_01 = 4294988; + static constexpr auto INIT_POP_1_GST_02 = 4294989; + static constexpr auto INIT_POP_1_GST_03 = 4294990; + static constexpr auto INIT_POP_2_VOID_01 = 4294992; + static constexpr auto INIT_POP_2_VOID_02 = 4294993; + static constexpr auto INIT_POP_2_VOID_03 = 4294994; + static constexpr auto INIT_POP_2_VOID_04 = 4294995; + static constexpr auto INIT_POP_2_VOID_05 = 4294996; + static constexpr auto INIT_POP_2_VOID_06 = 4294997; + static constexpr auto INIT_POP_2_VOID_07 = 4294998; + static constexpr auto INIT_POP_2_DMN_01 = 4295000; + static constexpr auto INIT_POP_2_DMN_02 = 4295001; + static constexpr auto INIT_POP_2_DMN_03 = 4295002; + static constexpr auto INIT_POP_2_GST_01 = 4295003; + static constexpr auto INIT_POP_2_GST_02 = 4295004; + static constexpr auto INIT_POP_2_GST_03 = 4295005; + static constexpr auto INIT_POP_2_GST_04 = 4295006; + static constexpr auto INIT_POP_3_VOID_01 = 4295008; + static constexpr auto INIT_POP_3_VOID_02 = 4295009; + static constexpr auto INIT_POP_3_VOID_03 = 4295010; + static constexpr auto INIT_POP_3_VOID_04 = 4295011; + static constexpr auto INIT_POP_3_VOID_05 = 4295012; + static constexpr auto INIT_POP_3_VOID_06 = 4295013; + static constexpr auto INIT_POP_3_VOID_07 = 4295014; + static constexpr auto INIT_POP_3_DGAZE_01 = 4295015; + static constexpr auto INIT_POP_3_DGAZE_02 = 4295016; + static constexpr auto INIT_POP_3_DGAZE_03 = 4295017; + static constexpr auto INIT_POP_3_GST_01 = 4295018; + static constexpr auto INIT_POP_3_GST_02 = 4295019; + static constexpr auto INIT_POP_3_GST_03 = 4295020; + static constexpr auto INIT_POP_3_GST_04 = 4295021; + static constexpr auto LOC_ACTOR0 = 1007898; + static constexpr auto LOC_ACTOR1 = 1007895; + static constexpr auto LOC_ACTOR2 = 1007895; + static constexpr auto LOC_ACTOR3 = 1007895; + static constexpr auto LOC_ACTOR4 = 1007895; + static constexpr auto LOC_POS_ACTOR0 = 4328116; + static constexpr auto JOB_STORY_MES = 3645; + static constexpr auto LOC_BGM1 = 37; + +public: + TheVoidgateBreathesGloomy() : Sapphire::ScriptAPI::QuestBattleScript( 73 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "Entrance", 2000182, 5021407, 5, { 623.000000f, 23.872311f, 94.505638f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "Exit", 2000139, 0, 4, { 623.000000f, 23.656260f, 61.956181f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( TheVoidgateBreathesGloomy ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TheWilloftheMoon.cpp b/src/scripts/instances/questbattles/TheWilloftheMoon.cpp deleted file mode 100644 index 023834b2..00000000 --- a/src/scripts/instances/questbattles/TheWilloftheMoon.cpp +++ /dev/null @@ -1,45 +0,0 @@ -#include -#include - -using namespace Sapphire; - -class TheWilloftheMoon : - public Sapphire::ScriptAPI::InstanceContentScript -{ -public: - TheWilloftheMoon() : - Sapphire::ScriptAPI::InstanceContentScript( 5026 ) - { } - - void onInit( InstanceContent& instance ) override - { - instance.registerEObj( "unknown_0", 2008290, 6894789, 4, { 375.272888f, -4.893838f, 290.605011f }, 1.000000f, 0.000000f ); - instance.registerEObj( "Yol", 2008330, 0, 4, { 466.995514f, 21.157949f, -328.188995f }, 1.000000f, 0.000000f ); - instance.registerEObj( "Ovoo", 2008289, 6872570, 4, { 354.000000f, -0.790344f, 296.500000f }, 0.991760f, 0.000048f ); - // States -> land_def (id: 3) land_def_anim (id: 4) land_on (id: 5) land_on_anim (id: 6) land_on_omen (id: 7) land_on_omen (id: 8) land_off (id: 19) land_off_anim (id: 20) - instance.registerEObj( "unknown_1", 2004967, 0, 4, { -187.899506f, 1.653982f, 760.298279f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgbg_e3f3_q1_gmc02", 2007457, 7653044, 4, { -223.010605f, 3.178310f, 519.218811f }, 0.991760f, 0.000048f ); - // States -> smto_on (id: 19) smto_c_on (id: 3) smto_off (id: 1) smto_off_anim (id: 2) smto_c_off (id: 4) smto_fdout (id: 18) - instance.registerEObj( "sgvf_w_lvd_b1472", 2007457, 7653055, 4, { -186.572403f, 4.189117f, 532.602173f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgvf_w_lvd_b1472_1", 2007457, 7653056, 4, { -186.602600f, 6.933841f, 568.871582f }, 0.991760f, 0.000048f ); - instance.registerEObj( "sgvf_w_lvd_b1199", 2007457, 7669017, 4, { -186.572403f, 5.921182f, 550.737427f }, 1.000000f, 0.000000f ); - // States -> circle_off (id: 3) circle_off (id: 4) circle_on (id: 5) circle_on (id: 6) - instance.registerEObj( "sgvf_w_lvd_b1199_1", 2007457, 7632420, 4, { -223.165497f, 2.660000f, 519.000000f }, 1.000000f, 0.000000f ); - // States -> circle_off (id: 3) circle_off (id: 4) circle_on (id: 5) circle_on (id: 6) - - } - - void onUpdate( InstanceContent& instance, uint32_t currTime ) override - { - - } - - void onEnterTerritory( InstanceContent& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, - uint16_t param2 ) override - { - - } - -}; - -EXPOSE_SCRIPT( TheWilloftheMoon ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/ThisLittleSwordofMine.cpp b/src/scripts/instances/questbattles/ThisLittleSwordofMine.cpp new file mode 100644 index 00000000..23aba471 --- /dev/null +++ b/src/scripts/instances/questbattles/ThisLittleSwordofMine.cpp @@ -0,0 +1,80 @@ +#include +#include + +using namespace Sapphire; + +class ThisLittleSwordofMine : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_SHINMAI = 5882353; + static constexpr auto BNPC_SOLKIZAGIL = 5886099; + static constexpr auto BNPC_HOLY_SHIELD_1 = 5886100; + static constexpr auto BNPC_HOLY_SHIELD_2 = 5886101; + static constexpr auto BNPC_HOLY_SHIELD_3 = 5886102; + static constexpr auto POP_RANGE_LATE_BATTLE_START = 5882020; + static constexpr auto BNPC_BATTLE_FIELD_EDGE_01 = 5886124; + static constexpr auto BNPC_BATTLE_FIELD_EDGE_02 = 5886125; + static constexpr auto BNPC_BATTLE_FIELD_EDGE_03 = 5886126; + static constexpr auto BNPC_BATTLE_FIELD_EDGE_04 = 5886127; + static constexpr auto BNPC_BATTLE_FIELD_EDGE_05 = 5886128; + static constexpr auto BNPC_BATTLE_FIELD_EDGE_06 = 5886129; + static constexpr auto BNPC_BATTLE_FIELD_EDGE_07 = 5886130; + static constexpr auto BNPC_BATTLE_FIELD_EDGE_08 = 5886131; + static constexpr auto BNPC_FOR_JUMP_01 = 5886132; + static constexpr auto BNPC_FOR_JUMP_02 = 5886133; + static constexpr auto BNPC_FOR_JUMP_03 = 5886134; + static constexpr auto BNPC_FOR_JUMP_04 = 5886135; + static constexpr auto BGM_BOSS_BATTLE = 91; + static constexpr auto ACTION_INVINCIBLE = 4745; + static constexpr auto CHANNELING_INVINCIBLE = 2; + static constexpr auto STATUS_PARAM_MUTEKI = 1496; + static constexpr auto STATUS_PARAM_REGEN = 1665; + static constexpr auto ACTION_BLOODSTAIN = 4747; + static constexpr auto EOBJ_DAMAGE_FLOOR = 5886223; + static constexpr auto STATUS_PARAM_DAMAGE_FLOOR = 1666; + static constexpr auto ENPC_PAPASHAN = 5911812; + static constexpr auto ENPC_SOLKZAGIL = 5911813; + static constexpr auto ENPC_JENLINCE = 5911814; + static constexpr auto ENPC_CONSTAN = 5911815; + static constexpr auto LCUT_ACTOR0 = 1013868; + static constexpr auto LCUT_ACTOR1 = 1013837; + static constexpr auto LCUT_ACTOR2 = 1013838; + static constexpr auto LCUT_ACTOR3 = 1014472; + static constexpr auto LCUT_ACTOR4 = 1014471; + static constexpr auto LCUT_POS_ACTOR0 = 5900389; + static constexpr auto LCUT_POS_ACTOR1 = 5900390; + static constexpr auto LCUT_POS_ACTOR2 = 5900392; + static constexpr auto LCUT_ACTION0 = 936; + static constexpr auto NCUT_01 = 976; + static constexpr auto EOBJ_HOLY_SHIELD_1 = 5917573; + static constexpr auto EOBJ_HOLY_SHIELD_2 = 5917574; + static constexpr auto EOBJ_HOLY_SHIELD_3 = 5917575; + static constexpr auto LCUT_SE0 = 94; + static constexpr auto LCUT_BGM0 = 86; + static constexpr auto LCUT_BGM1 = 97; + static constexpr auto LCUT_BGM2 = 91; + static constexpr auto LCUT_BGM3 = 39; + +public: + ThisLittleSwordofMine() : Sapphire::ScriptAPI::QuestBattleScript( 125 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( ThisLittleSwordofMine ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/ToCatchaPoacher.cpp b/src/scripts/instances/questbattles/ToCatchaPoacher.cpp new file mode 100644 index 00000000..a66988ff --- /dev/null +++ b/src/scripts/instances/questbattles/ToCatchaPoacher.cpp @@ -0,0 +1,53 @@ +#include +#include + +using namespace Sapphire; + +class ToCatchaPoacher : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_1_ARC_01 = 3818973; + static constexpr auto INIT_POP_1_LNC_01 = 3818974; + static constexpr auto INIT_POP_1_LNC_02 = 3818975; + static constexpr auto INIT_POP_2_LNC_01 = 4259098; + static constexpr auto INIT_POP_2_LNC_02 = 4259100; + static constexpr auto INIT_POP_2_CNJ_01 = 4259102; + static constexpr auto INIT_POP_2_ARC_01 = 3818976; + static constexpr auto INIT_POP_2_ARC_02 = 3818977; + static constexpr auto INIT_POP_3_LNC_01 = 3914483; + static constexpr auto INIT_POP_3_LNC_02 = 3914484; + static constexpr auto INIT_POP_3_BOSS = 4259104; + static constexpr auto INIT_POP_3_CNJ_01 = 4259105; + static constexpr auto INIT_P_POP_1 = 4259091; + static constexpr auto BNPC_NAME_01 = 139; + static constexpr auto BNPC_NAME_02 = 140; + static constexpr auto CUT_SCENE_01 = 11; + static constexpr auto CUT_SCENE_02 = 12; + static constexpr auto DEF_QUICK_KNOCK = 106; + +public: + ToCatchaPoacher() : Sapphire::ScriptAPI::QuestBattleScript( 5 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "Entrance", 2000182, 5021407, 5, { 623.000000f, 23.872311f, 94.505638f }, 1.000000f, 0.000000f ); + // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) + instance.registerEObj( "Exit", 2000139, 0, 4, { 623.000000f, 23.656260f, 61.956181f }, 1.000000f, 0.000000f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( ToCatchaPoacher ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/ToGuardaGuardian.cpp b/src/scripts/instances/questbattles/ToGuardaGuardian.cpp new file mode 100644 index 00000000..34c4e990 --- /dev/null +++ b/src/scripts/instances/questbattles/ToGuardaGuardian.cpp @@ -0,0 +1,79 @@ +#include +#include + +using namespace Sapphire; + +class ToGuardaGuardian : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_NOTAR_P_POP_1ST_01 = 3854583; + static constexpr auto INIT_NOTAR_POP_1ST_01 = 3854586; + static constexpr auto INIT_NOTAR_P_POP_2ST_01 = 3854588; + static constexpr auto INIT_NOTAR_POP_2ST_01 = 3854584; + static constexpr auto INIT_NOTAR_POP_2ST_02 = 3854721; + static constexpr auto INIT_NOTAR_P_POP_3ST_01 = 3854673; + static constexpr auto INIT_NOTAR_POP_3ST_01 = 3854720; + static constexpr auto INIT_NOTAR_P_POP_4ST_01 = 3854674; + static constexpr auto INIT_NOTAR_POP_4ST_01 = 3854719; + static constexpr auto INIT_NOTAR_POP_4ST_02 = 3854724; + static constexpr auto INIT_NOTAR_P_POP_5ST_01 = 3854675; + static constexpr auto INIT_NOTAR_POP_5ST_01 = 3854715; + static constexpr auto INIT_NOTAR_POP_5ST_02 = 3854723; + static constexpr auto INIT_P_POP_1ST_01 = 4089300; + static constexpr auto INIT_P_POP_1ST_02 = 4089305; + static constexpr auto INIT_POP_1ST_BOSS = 4089289; + static constexpr auto INIT_POP_1ST_EXC_01_01 = 4089296; + static constexpr auto INIT_POP_1ST_EXC_01_02 = 4089297; + static constexpr auto INIT_POP_1ST_EXC_01_03 = 4089298; + static constexpr auto INIT_POP_1ST_LNC_01_04 = 4089292; + static constexpr auto INIT_POP_1ST_LNC_01_05 = 4089293; + static constexpr auto INIT_POP_1ST_LNC_01_06 = 4089294; + static constexpr auto INIT_P_POP_1ST_03 = 3854581; + static constexpr auto INIT_P_POP_1ST_04 = 3854582; + static constexpr auto INIT_POP_1ST_CNJ_02_01 = 3803263; + static constexpr auto INIT_POP_1ST_CNJ_02_02 = 3803264; + static constexpr auto INIT_POP_1ST_EXC_02_03 = 4089325; + static constexpr auto INIT_POP_1ST_EXC_02_04 = 3803269; + static constexpr auto INIT_POP_1ST_LNC_02_05 = 3803267; + static constexpr auto INIT_POP_1ST_LNC_02_06 = 3803268; + static constexpr auto INIT_POP_1ST_MON_03_01 = 4089330; + static constexpr auto INIT_POP_2ND_01 = 4089338; + static constexpr auto INIT_POP_2ND_02 = 3854784; + static constexpr auto INIT_P_POP_2ND_01 = 4018837; + static constexpr auto INIT_P_POP_2ND_02 = 4018839; + static constexpr auto WARP_01 = 3803262; + static constexpr auto ACTION_CURE = 120; + static constexpr auto ACTION_PRO = 123; + static constexpr auto DEF_ACTION_MONSTER_SUMMON = 867; + static constexpr auto DEF_ACTION_DOKUBARI = 619; + static constexpr auto CUT_SCENE_01 = 58; + static constexpr auto CUT_SCENE_02 = 59; + static constexpr auto DEF_POISON = 18; + static constexpr auto DEF_WEATHER_BOSS = 19; + static constexpr auto DEF_WEATHER_RETURN = 2; + static constexpr auto BGM_MASKED_BATTLE = 94; + +public: + ToGuardaGuardian() : Sapphire::ScriptAPI::QuestBattleScript( 12 ) + { } + + void onInit( QuestBattle& instance ) override + { + instance.registerEObj( "unknown_0", 2005192, 5760474, 4, { -51.493111f, 0.309087f, 71.436897f }, 1.000000f, -0.000006f ); + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( ToGuardaGuardian ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TortoiseinTime.cpp b/src/scripts/instances/questbattles/TortoiseinTime.cpp new file mode 100644 index 00000000..43f5a99c --- /dev/null +++ b/src/scripts/instances/questbattles/TortoiseinTime.cpp @@ -0,0 +1,109 @@ +#include +#include + +using namespace Sapphire; + +class TortoiseinTime : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_SOROBAN = 7436223; + static constexpr auto P_BNPC_GENBU = 7436224; + static constexpr auto BNPC_WATERCYCLONE_01 = 7436225; + static constexpr auto P_BNPC_TATARU = 7436226; + static constexpr auto BNPC_WATERCYCLONE_02 = 7436227; + static constexpr auto BNPC_WATERCYCLONE_03 = 7436228; + static constexpr auto BNPC_WATERCYCLONE_04 = 7436229; + static constexpr auto BNPC_WATERCYCLONE_05 = 7436230; + static constexpr auto BNPC_WATERCYCLONE_06 = 7436231; + static constexpr auto BNPC_WATERCYCLONE_07 = 7436232; + static constexpr auto P_BNPC_CARBUNCLE = 7436235; + static constexpr auto POP_RANGE_MOOTAN_MOVE = 7436236; + static constexpr auto POP_RANGE_GENBU_BARRIER_MOVE = 7436237; + static constexpr auto POP_RANGE_SOROBAN_EXECUTE_MOVE = 7436238; + static constexpr auto POP_RANGE_TATARU_BARRIER_MOVE = 7436239; + static constexpr auto BNPC_ERUPTION_01 = 7436243; + static constexpr auto BNPC_ERUPTION_02 = 7436247; + static constexpr auto BNPC_ERUPTION_03 = 7436248; + static constexpr auto BNPC_LASER_01 = 7436249; + static constexpr auto BNPC_LASER_02 = 7436250; + static constexpr auto BNPC_LASER_03 = 7436251; + static constexpr auto BNPC_LASER_04 = 7436252; + static constexpr auto BNPC_SHABON = 7436253; + static constexpr auto POP_RANGE_LASER_V_01 = 7437734; + static constexpr auto POP_RANGE_LASER_V_02 = 7437735; + static constexpr auto POP_RANGE_LASER_V_03 = 7437736; + static constexpr auto POP_RANGE_LASER_V_04 = 7437737; + static constexpr auto POP_RANGE_LASER_V_05 = 7437738; + static constexpr auto POP_RANGE_LASER_V_06 = 7437739; + static constexpr auto POP_RANGE_LASER_H_01 = 7437740; + static constexpr auto POP_RANGE_LASER_H_02 = 7437741; + static constexpr auto POP_RANGE_LASER_H_03 = 7437742; + static constexpr auto POP_RANGE_LASER_H_04 = 7437743; + static constexpr auto POP_RANGE_LASER_H_05 = 7437744; + static constexpr auto POP_RANGE_LASER_H_06 = 7437745; + static constexpr auto YELL_TATARU_START_01 = 6767; + static constexpr auto YELL_TATARU_START_02 = 6768; + static constexpr auto YELL_TATARU_START_03 = 6769; + static constexpr auto YELL_TATARU_START_04 = 6770; + static constexpr auto YELL_TATARU_BARRIER_01 = 6771; + static constexpr auto ACTION_WATER_ERUPTION = 11510; + static constexpr auto ACTION_TIDAL_WAVE = 11512; + static constexpr auto ACTION_WATER_CYCLONE_1 = 11514; + static constexpr auto ACTION_WATER_LASER = 11520; + static constexpr auto STATUS_PARAM_DAMAGE_DOWN = 3778; + static constexpr auto STATUS_PARAM_ZUIJU_GENBU = 3766; + static constexpr auto STATUS_PARAM_ZUIJU_SOROBAN = 3767; + static constexpr auto ACTION_WATER_CYCLONE_2 = 11554; + static constexpr auto EOBJ_GENBU_BARRIER = 7447627; + static constexpr auto ACTION_INV_TIDAL_WAVE = 11513; + static constexpr auto P_BNPC_HATE = 7450435; + static constexpr auto STATUS_PARAM_HEAVY = 3808; + static constexpr auto STATUS_PARAM_SPRINT = 3805; + static constexpr auto BNPC_BUBBLE_01 = 7494305; + static constexpr auto BNPC_BUBBLE_02 = 7494312; + static constexpr auto BNPC_BUBBLE_03 = 7494313; + static constexpr auto BNPC_BUBBLE_04 = 7494314; + static constexpr auto YELL_SOROBAN_DYING = 6787; + static constexpr auto ACTION_SUMMON_BUBBLE = 11710; + static constexpr auto CHANNELING_WATER = 3; + static constexpr auto YELL_TATARU_HEAVY = 6789; + static constexpr auto ACTION_INV_WATER_AE = 11301; + static constexpr auto BNPCBASE_BUBBLE = 9154; + static constexpr auto YELL_TATARU_WATER_AE = 6791; + static constexpr auto STATUS_PARAM_EVENT = 2918; + static constexpr auto YELL_TATARU_GIMMICK_MISS = 6788; + static constexpr auto STATUS_KNOCKDOWN = 783; + static constexpr auto POP_RANGE_TATARU_CHASE = 7509050; + static constexpr auto YELL_TATARU_AFTER_START_01 = 6792; + static constexpr auto POP_RANGE_MOOTAN_TURN_MOVE_01 = 7553064; + static constexpr auto POP_RANGE_MOOTAN_TURN_MOVE_02 = 7553066; + static constexpr auto POP_RANGE_MOOTAN_TURN_MOVE_03 = 7553067; + static constexpr auto POP_RANGE_MOOTAN_TURN_MOVE_04 = 7553107; + static constexpr auto POP_RANGE_MOOTAN_TURN_MOVE_05 = 7553108; + static constexpr auto POP_RANGE_MOOTAN_TURN_MOVE_06 = 7553136; + static constexpr auto POP_RANGE_MOOTAN_TURN_MOVE_07 = 7553137; + static constexpr auto POP_RANGE_TATARU_LOOK_MOVE_01 = 7553076; + +public: + TortoiseinTime() : Sapphire::ScriptAPI::QuestBattleScript( 183 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( TortoiseinTime ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/TrialbyWater.cpp b/src/scripts/instances/questbattles/TrialbyWater.cpp new file mode 100644 index 00000000..8b4bcba5 --- /dev/null +++ b/src/scripts/instances/questbattles/TrialbyWater.cpp @@ -0,0 +1,53 @@ +#include +#include + +using namespace Sapphire; + +class TrialbyWater : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_1_YK_01 = 3875540; + static constexpr auto INIT_POP_1_YK_02 = 3879109; + static constexpr auto INIT_POP_1_YK_03 = 3905947; + static constexpr auto INIT_POP_2_YK_01 = 3905948; + static constexpr auto INIT_POP_2_YK_02 = 4263917; + static constexpr auto INIT_POP_2_YK_03 = 4263918; + static constexpr auto INIT_POP_3_YK_01 = 4263934; + static constexpr auto INIT_POP_3_YK_02 = 4263935; + static constexpr auto INIT_POP_3_YK_03 = 4263936; + static constexpr auto INIT_POP_2_WATER_SPRIT_01 = 4263967; + static constexpr auto INIT_POP_3_WATER_SPRIT_01 = 4263969; + static constexpr auto INIT_POP_3_WATER_SPRIT_02 = 4263970; + static constexpr auto INIT_P_POP_LNC_01 = 3905949; + static constexpr auto INIT_P_POP_LNC_02 = 4263914; + static constexpr auto INIT_P_POP_LNC_03 = 4263915; + static constexpr auto INIT_P_POP_ARC_01 = 3914511; + static constexpr auto BNPC_NAME_01 = 628; + static constexpr auto CUT_SCENE_01 = 8; + static constexpr auto CUT_SCENE_02 = 9; + static constexpr auto QIB_YELL_01 = 966; + static constexpr auto QIB_YELL_02 = 967; + +public: + TrialbyWater() : Sapphire::ScriptAPI::QuestBattleScript( 16 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( TrialbyWater ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/UnderneaththeSultantree.cpp b/src/scripts/instances/questbattles/UnderneaththeSultantree.cpp new file mode 100644 index 00000000..0a27e6fc --- /dev/null +++ b/src/scripts/instances/questbattles/UnderneaththeSultantree.cpp @@ -0,0 +1,42 @@ +#include +#include + +using namespace Sapphire; + +class UnderneaththeSultantree : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_BOSS = 4077147; + static constexpr auto INIT_POP_01_01 = 4077151; + static constexpr auto INIT_POP_01_02 = 4077152; + static constexpr auto INIT_POP_02_01 = 4077427; + static constexpr auto INIT_POP_02_02 = 4077428; + static constexpr auto INIT_POP_02_03 = 4077429; + static constexpr auto INIT_POP_02_04 = 4077430; + static constexpr auto INIT_P_POP_01 = 4077150; + static constexpr auto CUT_SCENE_01 = 140; + static constexpr auto HOW_TO_QIB = 79; + +public: + UnderneaththeSultantree() : Sapphire::ScriptAPI::QuestBattleScript( 37 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( UnderneaththeSultantree ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/VictoryinPeril.cpp b/src/scripts/instances/questbattles/VictoryinPeril.cpp new file mode 100644 index 00000000..7b64104b --- /dev/null +++ b/src/scripts/instances/questbattles/VictoryinPeril.cpp @@ -0,0 +1,68 @@ +#include +#include + +using namespace Sapphire; + +class VictoryinPeril : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_1ST_01 = 3970651; + static constexpr auto INIT_POP_1ST_02 = 3970655; + static constexpr auto INIT_POP_1ST_03 = 3970671; + static constexpr auto INIT_POP_1ST_04 = 3970673; + static constexpr auto INIT_POP_2ST_01 = 3970684; + static constexpr auto INIT_POP_2ST_02 = 3970685; + static constexpr auto INIT_POP_2ST_03 = 3970686; + static constexpr auto INIT_POP_2ST_04 = 3970675; + static constexpr auto INIT_POP_2ST_05 = 4103658; + static constexpr auto INIT_P_POP_1ST_01 = 3970427; + static constexpr auto INIT_P_POP_1ST_02 = 3970428; + static constexpr auto ER_RECT_01 = 4103659; + static constexpr auto INIT_ENPC_POP_01 = 4103652; + static constexpr auto ACTION_ATTACK_UP = 963; + static constexpr auto BGM_BATTLE = 33; + static constexpr auto LOC_ACTOR0 = 1002237; + static constexpr auto LOC_ACTOR1 = 1002672; + static constexpr auto LOC_ACTOR2 = 1002671; + static constexpr auto LOC_ACTOR3 = 1002238; + static constexpr auto LOC_ACTOR4 = 1002240; + static constexpr auto LOC_ACTOR5 = 1002702; + static constexpr auto LOC_POS_ACTOR0 = 4144321; + static constexpr auto LOC_POS_ACTOR1 = 4144324; + static constexpr auto LOC_POS_ACTOR2 = 4144325; + static constexpr auto LOC_POS_CAM1 = 4144326; + static constexpr auto LOC_POS_CAM2 = 3985691; + static constexpr auto LOC_ACTION1 = 961; + static constexpr auto LOC_ACTION2 = 979; + static constexpr auto LOC_ACTION3 = 981; + static constexpr auto INIT_POP_LOOKOUT_01 = 4167378; + static constexpr auto INIT_POP_LOOKOUT_02 = 4167379; + static constexpr auto INIT_POP_LOOKOUT_03 = 4167390; + static constexpr auto INIT_POP_LOOKOUT_04 = 4167391; + static constexpr auto ER_RECT_02 = 4167388; + static constexpr auto ER_RECT_03 = 4167389; + static constexpr auto BGM_MASKED_BATTLE = 37; + +public: + VictoryinPeril() : Sapphire::ScriptAPI::QuestBattleScript( 24 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( VictoryinPeril ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/ViolatorsWillBeShot.cpp b/src/scripts/instances/questbattles/ViolatorsWillBeShot.cpp new file mode 100644 index 00000000..51ab8efb --- /dev/null +++ b/src/scripts/instances/questbattles/ViolatorsWillBeShot.cpp @@ -0,0 +1,57 @@ +#include +#include + +using namespace Sapphire; + +class ViolatorsWillBeShot : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_01 = 3818956; + static constexpr auto INIT_POP_02 = 3818957; + static constexpr auto INIT_POP_03 = 3818958; + static constexpr auto INIT_POP_04 = 3818959; + static constexpr auto INIT_POP_05 = 3818960; + static constexpr auto INIT_POP_06 = 3818961; + static constexpr auto INIT_POP_07 = 3818962; + static constexpr auto INIT_POP_08 = 3818963; + static constexpr auto INIT_POP_09 = 3818964; + static constexpr auto INIT_POP_10 = 3818966; + static constexpr auto INIT_POP_11 = 3818967; + static constexpr auto INIT_POP_12 = 3818968; + static constexpr auto BNPC_001 = 113; + static constexpr auto ER_RECT_01 = 4246562; + static constexpr auto INIT_POP_CAMP_EXC01 = 4246567; + static constexpr auto INIT_POP_CAMP_EXC02 = 4246568; + static constexpr auto INIT_POP_CAMP_LNC01 = 4246569; + static constexpr auto INIT_POP_CAMP_EXC03 = 4246638; + static constexpr auto INIT_POP_CAMP_EXC04 = 4246639; + static constexpr auto INIT_POP_CAMP_LNC02 = 4246640; + static constexpr auto DEF_ACTION_WATERA = 1016; + static constexpr auto INIT_P_POP_MIRAUDONT = 4246724; + static constexpr auto INIT_POP_ADD_GLA01 = 4246863; + static constexpr auto INIT_POP_ADD_GLA02 = 4246864; + static constexpr auto POP_RANGE_MIRAUDONT_MOVE = 4358145; + +public: + ViolatorsWillBeShot() : Sapphire::ScriptAPI::QuestBattleScript( 6 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( ViolatorsWillBeShot ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/WayDownintheHole.cpp b/src/scripts/instances/questbattles/WayDownintheHole.cpp new file mode 100644 index 00000000..26e6346e --- /dev/null +++ b/src/scripts/instances/questbattles/WayDownintheHole.cpp @@ -0,0 +1,64 @@ +#include +#include + +using namespace Sapphire; + +class WayDownintheHole : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto INIT_POP_01 = 3872242; + static constexpr auto ACTOR0 = 1001578; + static constexpr auto ACTOR1 = 1002947; + static constexpr auto ACTOR2 = 1002948; + static constexpr auto ACTOR3 = 1002949; + static constexpr auto ACTOR4 = 1002950; + static constexpr auto ACTOR5 = 1002951; + static constexpr auto ACTOR6 = 1003028; + static constexpr auto ACTOR7 = 1002952; + static constexpr auto ACTOR8 = 1002953; + static constexpr auto ACTOR9 = 1002954; + static constexpr auto ACTOR10 = 1002956; + static constexpr auto ACTOR11 = 1002957; + static constexpr auto ACTOR12 = 1002958; + static constexpr auto ACTOR13 = 1002959; + static constexpr auto ACTOR14 = 1001353; + static constexpr auto LOC_POS_ENPC1 = 3817003; + static constexpr auto ACTOR15 = 1002990; + static constexpr auto ACTOR16 = 1002991; + static constexpr auto LOC_POS_ENPC2 = 3817009; + static constexpr auto LOC_POS_ENPC3 = 3817004; + static constexpr auto ACTOR17 = 1002992; + static constexpr auto ACTOR6_POS = 3817007; + static constexpr auto BNPC_NAME_01 = 750; + static constexpr auto DEF_ACTION_SAND_BREATH = 445; + static constexpr auto DEF_BLIND = 15; + static constexpr auto CUT_SCENE_01 = 189; + static constexpr auto LOC_ACTOR0 = 1003064; + static constexpr auto LOC_POS_ENPC4 = 4163979; + static constexpr auto LOC_POS_ENPC5 = 4163982; + static constexpr auto LOC_TALKSHAPE1 = 8; + static constexpr auto LOC_ACTOR1 = 1002947; + +public: + WayDownintheHole() : Sapphire::ScriptAPI::QuestBattleScript( 18 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( WayDownintheHole ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/WhatSheAlwaysWanted.cpp b/src/scripts/instances/questbattles/WhatSheAlwaysWanted.cpp new file mode 100644 index 00000000..58103746 --- /dev/null +++ b/src/scripts/instances/questbattles/WhatSheAlwaysWanted.cpp @@ -0,0 +1,93 @@ +#include +#include + +using namespace Sapphire; + +class WhatSheAlwaysWanted : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_VOIDGATE_01 = 6853042; + static constexpr auto BNPC_BOSS_01 = 6853043; + static constexpr auto BNPC_TOUMEI = 6904817; + static constexpr auto BNPC_VOIDGATE_WAVE1_01 = 6905648; + static constexpr auto BNPC_VOIDGATE_WAVE1_02 = 6905649; + static constexpr auto BNPC_VOIDGATE_WAVE1_03 = 6905650; + static constexpr auto BNPC_WAVE1_TRASH01 = 6905730; + static constexpr auto BNPC_WAVE1_TRASH02 = 6905732; + static constexpr auto BNPC_WAVE1_ARK_DEMON = 6905735; + static constexpr auto BNPC_VOID_LANCE_01 = 6906524; + static constexpr auto BNPC_VOID_LANCE_02 = 6906525; + static constexpr auto BNPC_VOID_LANCE_03 = 6906526; + static constexpr auto BNPC_VOID_LANCE_04 = 6906527; + static constexpr auto BNPC_VOIDGATE_WAVE2_01 = 6906732; + static constexpr auto BNPC_VOIDGATE_WAVE2_02 = 6906734; + static constexpr auto BNPC_VOIDGATE_WAVE2_03 = 6906736; + static constexpr auto BNPC_WAVE2_TRASH01 = 6906740; + static constexpr auto BNPC_WAVE2_TRASH02 = 6906741; + static constexpr auto BNPC_WAVE2_TRASH03 = 6906742; + static constexpr auto P_BNPC_SYLPHIE = 6853055; + static constexpr auto P_BNPC_ESUMIYAN = 6853061; + static constexpr auto P_BNPC_GIRL = 6853071; + static constexpr auto CHANNELING_HOLD_GATTY = 65; + static constexpr auto CHANNELING_ABSORB_MAGIC = 1; + static constexpr auto QIB_YELL_01 = 4930; + static constexpr auto QIB_YELL_02 = 4931; + static constexpr auto QIB_YELL_03 = 4932; + static constexpr auto QIB_YELL_04 = 4933; + static constexpr auto QIB_YELL_05 = 4934; + static constexpr auto QIB_YELL_06 = 5243; + static constexpr auto QIB_YELL_07 = 5244; + static constexpr auto QIB_YELL_08 = 5245; + static constexpr auto ACTION_SCRIPT_TRIGGER = 3269; + static constexpr auto ACTION_SCRIPT_TRIGGER_B = 4777; + static constexpr auto ACTION_GATTY_EXPLODE = 8995; + static constexpr auto ACTION_BOSS_LASER = 8996; + static constexpr auto ACTION_RISE_TO_SKY = 1901; + static constexpr auto DEF_ACTION_MONSTER_SUMMON = 3439; + static constexpr auto ACTION_CRIMZON_LANCE_POP = 9038; + static constexpr auto ACTION_BOSS_LETDOWN = 1899; + static constexpr auto ACTION_GATTY_GETOVER = 9147; + static constexpr auto ACTION_ESUMIYAN_LB3 = 8509; + static constexpr auto PR_BOSS_MOVE_01 = 6904888; + static constexpr auto PR_ESUMIYAN_MOVE_01 = 6925551; + static constexpr auto PR_SYLPHIE_MOVE_01 = 6925552; + static constexpr auto LOGMSG_01 = 5378; + static constexpr auto LOGMSG_02 = 5379; + static constexpr auto LOGMSG_03 = 5380; + static constexpr auto LOGMSG_04 = 5381; + static constexpr auto STATUS_PARAM_KNOCKDOWN = 3000; + static constexpr auto STATUS_PARAM_RISE = 535; + static constexpr auto STATUS_PARAM_BOSS_REGEN = 587; + static constexpr auto BNPCSTATE_HOLD_GATTY = 166; + static constexpr auto BNPCSTATE_NORMAL = 0; + static constexpr auto BNPCBASE_VOIDGATE = 7417; + static constexpr auto BNPCBASE_VOIDGATE_BIG = 7408; + static constexpr auto BNPCBASE_ARK_DEMON = 7418; + static constexpr auto BNPCBASE_HECTEYES = 7419; + static constexpr auto BGM_BOSS_BATTLE = 406; + static constexpr auto STATUS_PARAM_GATTY_LIFE_ABSORB = 3196; + static constexpr auto EOBJ_AURA_01 = 6951909; + +public: + WhatSheAlwaysWanted() : Sapphire::ScriptAPI::QuestBattleScript( 169 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( WhatSheAlwaysWanted ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/WhenClansCollide.cpp b/src/scripts/instances/questbattles/WhenClansCollide.cpp deleted file mode 100644 index 621cc479..00000000 --- a/src/scripts/instances/questbattles/WhenClansCollide.cpp +++ /dev/null @@ -1,45 +0,0 @@ -#include -#include - -using namespace Sapphire; - -class WhenClansCollide : - public Sapphire::ScriptAPI::InstanceContentScript -{ -public: - WhenClansCollide() : - Sapphire::ScriptAPI::InstanceContentScript( 5022 ) - { } - - void onInit( InstanceContent& instance ) override - { - instance.registerEObj( "unknown_0", 2008290, 6894789, 4, { 375.272888f, -4.893838f, 290.605011f }, 1.000000f, 0.000000f ); - instance.registerEObj( "Yol", 2008330, 0, 4, { 466.995514f, 21.157949f, -328.188995f }, 1.000000f, 0.000000f ); - instance.registerEObj( "Ovoo", 2008289, 6872570, 4, { 354.000000f, -0.790344f, 296.500000f }, 0.991760f, 0.000048f ); - // States -> land_def (id: 3) land_def_anim (id: 4) land_on (id: 5) land_on_anim (id: 6) land_on_omen (id: 7) land_on_omen (id: 8) land_off (id: 19) land_off_anim (id: 20) - instance.registerEObj( "unknown_1", 2004967, 0, 4, { -187.899506f, 1.653982f, 760.298279f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgbg_e3f3_q1_gmc02", 2007457, 7653044, 4, { -223.010605f, 3.178310f, 519.218811f }, 0.991760f, 0.000048f ); - // States -> smto_on (id: 19) smto_c_on (id: 3) smto_off (id: 1) smto_off_anim (id: 2) smto_c_off (id: 4) smto_fdout (id: 18) - instance.registerEObj( "sgvf_w_lvd_b1472", 2007457, 7653055, 4, { -186.572403f, 4.189117f, 532.602173f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgvf_w_lvd_b1472_1", 2007457, 7653056, 4, { -186.602600f, 6.933841f, 568.871582f }, 0.991760f, 0.000048f ); - instance.registerEObj( "sgvf_w_lvd_b1199", 2007457, 7669017, 4, { -186.572403f, 5.921182f, 550.737427f }, 1.000000f, 0.000000f ); - // States -> circle_off (id: 3) circle_off (id: 4) circle_on (id: 5) circle_on (id: 6) - instance.registerEObj( "sgvf_w_lvd_b1199_1", 2007457, 7632420, 4, { -223.165497f, 2.660000f, 519.000000f }, 1.000000f, 0.000000f ); - // States -> circle_off (id: 3) circle_off (id: 4) circle_on (id: 5) circle_on (id: 6) - - } - - void onUpdate( InstanceContent& instance, uint32_t currTime ) override - { - - } - - void onEnterTerritory( InstanceContent& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, - uint16_t param2 ) override - { - - } - -}; - -EXPOSE_SCRIPT( WhenClansCollide ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/WhenGnathsCry.cpp b/src/scripts/instances/questbattles/WhenGnathsCry.cpp new file mode 100644 index 00000000..4855a50a --- /dev/null +++ b/src/scripts/instances/questbattles/WhenGnathsCry.cpp @@ -0,0 +1,53 @@ +#include +#include + +using namespace Sapphire; + +class WhenGnathsCry : public Sapphire::ScriptAPI::QuestBattleScript +{ +private: + static constexpr auto BNPC_SENSEI = 5886224; + static constexpr auto BNPC_SANSON = 5886229; + static constexpr auto BNPC_GUYDELOT = 5886230; + static constexpr auto BNPC_DIR_DUMMY = 5923655; + static constexpr auto BNPC_GOAL_01 = 5923387; + static constexpr auto BNPC_GOAL_02 = 5923388; + static constexpr auto BNPC_GOAL_03 = 5923390; + static constexpr auto BNPC_GOAL_04 = 5923537; + static constexpr auto BNPC_GOAL_05 = 5886232; + static constexpr auto BNPC_P1_CNJ_01 = 5886225; + static constexpr auto BNPC_P1_LNC_01 = 5886227; + static constexpr auto BNPC_P1_MCH_01 = 5886228; + static constexpr auto BNPC_P2_LNC_01 = 5886234; + static constexpr auto BNPC_P2_LNC_02 = 5886235; + static constexpr auto BNPC_P2_LNC_03 = 5886236; + static constexpr auto BNPC_P2_LNC_04 = 5924207; + static constexpr auto EOBJ_RESCUE = 5886231; + static constexpr auto ACTION_GOAL_TRIGER = 3269; + static constexpr auto EVENTACTION_RESCUE = 35; + static constexpr auto BNPC_P1_LNC_02 = 5960883; + static constexpr auto BNPC_P1_MCH_02 = 5960884; + +public: + WhenGnathsCry() : Sapphire::ScriptAPI::QuestBattleScript( 122 ) + { } + + void onInit( QuestBattle& instance ) override + { + + } + + void onUpdate( QuestBattle& instance, uint32_t currTime ) override + { + + } + + void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, + uint16_t param2 ) override + { + + } + +}; + +EXPOSE_SCRIPT( WhenGnathsCry ); \ No newline at end of file diff --git a/src/scripts/instances/questbattles/WithHeartandSteel.cpp b/src/scripts/instances/questbattles/WithHeartandSteel.cpp deleted file mode 100644 index 071c7123..00000000 --- a/src/scripts/instances/questbattles/WithHeartandSteel.cpp +++ /dev/null @@ -1,123 +0,0 @@ -#include -#include - -using namespace Sapphire; - -class WithHeartandSteel : - public Sapphire::ScriptAPI::InstanceContentScript -{ -public: - WithHeartandSteel() : - Sapphire::ScriptAPI::InstanceContentScript( 5007 ) - { } - - void onInit( InstanceContent& instance ) override - { - instance.registerEObj( "unknown_0", 2002735, 0, 4, { 16.000000f, -0.599972f, -25.600000f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgpl_w_lvd_b0118_wide", 2002872, 6255278, 4, { 15.499620f, -0.600000f, -32.576271f }, 1.000000f, 0.000000f ); - // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) - instance.registerEObj( "sgpl_w_lvd_b0118_wide_1", 2002872, 6255280, 4, { 16.000000f, -0.599986f, -84.500000f }, 1.200000f, 0.000000f ); - // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) - instance.registerEObj( "unknown_1", 2007130, 6259583, 4, { 16.141850f, -0.600000f, -58.088329f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgvf_z2r2_b0919", 2007131, 6271618, 4, { 16.141850f, -0.600000f, -58.088329f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_2", 2007127, 6263439, 4, { 2.786298f, 1.130917f, -81.495903f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_3", 2007128, 6263438, 4, { 44.322010f, 1.937706f, -52.936489f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_4", 2007129, 6263356, 4, { -1.414551f, 2.361187f, -31.816429f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_5", 2002735, 0, 4, { -300.000000f, -73.990967f, -386.829315f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgpl_w_lvd_b0118_wide_2", 2002872, 6256300, 4, { -298.284485f, -74.099991f, -394.606812f }, 1.000000f, 0.000000f ); - // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) - instance.registerEObj( "unknown_6", 2002872, 6252961, 4, { -298.284485f, -74.000061f, -446.164307f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_7", 2007174, 0, 4, { -301.925903f, -74.099998f, -434.771606f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgvf_z2r2_b0917", 2007175, 6275855, 4, { -305.091309f, -74.099998f, -434.266205f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgvf_z2r2_b0909", 2007176, 6275857, 4, { -299.330200f, -74.099998f, -441.272186f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_8", 2000034, 6252960, 4, { -301.382507f, -74.111649f, -397.150391f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_9", 2000035, 0, 4, { -300.012909f, -74.111687f, -411.038788f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_10", 2002735, 0, 4, { 280.000000f, -468.750000f, -352.734314f }, 0.991760f, 0.000048f ); - instance.registerEObj( "sgpl_w_lvd_b0118_wide_3", 2002872, 6256312, 4, { 279.076385f, -468.799988f, -346.734894f }, 1.000000f, 0.000000f ); - // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) - instance.registerEObj( "unknown_11", 2007092, 6246904, 4, { 271.681488f, -269.434998f, 263.484192f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_12", 2007093, 6246906, 4, { 299.983093f, -269.438812f, 263.439911f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_13", 2007094, 6246909, 4, { 328.133606f, -269.459900f, 263.349915f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_14", 2007095, 6246905, 4, { 272.007812f, -270.624695f, 249.703201f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_15", 2007096, 6246907, 4, { 299.972198f, -270.615295f, 249.808594f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_16", 2007097, 6246910, 4, { 327.886597f, -270.637299f, 249.556503f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgvf_z2r2_b0908", 2007098, 6276590, 4, { 271.976288f, -270.275513f, 254.027298f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgvf_z2r2_b0908_1", 2007099, 6276603, 4, { 300.073914f, -270.279907f, 253.881897f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgvf_z2r2_b0908_2", 2007100, 6276618, 4, { 328.117798f, -270.282501f, 253.919098f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgvf_z2r2_b0906", 2007101, 6277276, 4, { 300.580688f, -329.902802f, 215.101807f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_17", 2007102, 0, 4, { 313.999695f, -254.436203f, 249.057007f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_18", 2007091, 6253623, 4, { 280.196686f, -468.799988f, -340.444214f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgvf_w_lvd_b0186", 2000015, 6323645, 4, { 280.035004f, -444.700012f, -381.003815f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgvf_w_lvd_b0186_1", 2000015, 6323651, 4, { 255.731705f, -444.700012f, -423.649811f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgvf_w_lvd_b0186_2", 2000015, 6323650, 4, { 304.734985f, -444.700012f, -424.385590f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgvf_z2r2_b0954", 2007350, 6405524, 4, { 280.000000f, -446.006287f, -410.000000f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgpl_w_cylinder_col_on_off", 2002618, 6405504, 4, { 271.693695f, -445.000000f, -398.334412f }, 1.000000f, 0.000000f ); - // States -> col_on (id: 17) col_off (id: 18) - instance.registerEObj( "sgbg_z2r2_a4_navi1", 2002618, 6413337, 4, { 284.413513f, -444.945587f, -428.864410f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_19", 2002735, 0, 4, { -300.007690f, -436.179108f, -3.677429f }, 0.991760f, 0.000048f ); - instance.registerEObj( "sgpl_w_lvd_b0118_wide_4", 2002872, 6256352, 4, { -299.044006f, -436.200012f, 1.934000f }, 1.000000f, 0.000000f ); - // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) - instance.registerEObj( "Exit", 2000139, 0, 4, { -300.007690f, -436.057098f, -56.789539f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_20", 2000019, 6223041, 4, { -293.815094f, -436.100006f, -36.657909f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgvf_z2r2_b0955", 2007363, 6403167, 4, { -300.000000f, -436.100006f, -34.000000f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_21", 2007381, 0, 4, { -288.659698f, -436.100006f, -36.228500f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_22", 2007104, 6253621, 4, { -293.853302f, -417.190002f, 338.020691f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_23", 2007105, 6262270, 4, { 279.377411f, -481.421112f, -273.999298f }, 1.000000f, 0.000048f ); - instance.registerEObj( "unknown_24", 2007106, 6253622, 4, { 282.739197f, -506.212494f, -377.761414f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_25", 2007630, 0, 4, { -307.311310f, -74.111656f, -404.095490f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgvf_z2r2_b0606", 2007457, 6873350, 4, { -287.981812f, -74.111671f, -418.439789f }, 1.000000f, 0.000000f ); - instance.registerEObj( "b0893_onen_y_qic_s", 2007457, 7008372, 4, { -286.682404f, -74.111656f, -414.302185f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_26", 2000034, 6252960, 4, { -299.669098f, -74.111687f, -422.791412f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgbg_w_qic_004_03a", 2008306, 6873007, 4, { -299.592712f, -123.000000f, -313.306885f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_27", 2002735, 0, 4, { -300.000000f, -73.990967f, -386.829315f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgbg_w_qic_004_03a_1", 2002872, 6873032, 4, { -298.298706f, -74.113159f, -394.613586f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_28", 2007112, 6252937, 4, { -258.522614f, -114.655602f, -231.454193f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_29", 2007112, 6403165, 4, { -360.672485f, -116.000198f, -271.268707f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgpl_a_evt_flyingship02", 2008452, 6889796, 4, { -239.520905f, -116.014397f, -230.853806f }, 0.991760f, 0.000048f ); - instance.registerEObj( "sgbg_w_qic_004_03a_2", 2007457, 6941894, 4, { -299.583099f, -75.000023f, -353.118500f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_30", 2007108, 6252917, 4, { 52.989189f, 8.000000f, 109.725502f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_31", 2007109, 6252933, 4, { 40.849979f, 7.999999f, 54.685509f }, 1.000000f, 0.000000f ); - instance.registerEObj( "sgvf_z2r2_b0893", 2007110, 6258888, 4, { -217.946503f, -116.000000f, -210.519608f }, 0.991760f, 0.000048f ); - instance.registerEObj( "sgvf_z2r2_b0893_1", 2007111, 6258889, 4, { -351.721313f, -116.000000f, -260.105499f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_32", 2007112, 6252937, 4, { -249.593796f, -116.000000f, -229.014603f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_33", 2007112, 6403165, 4, { -354.681885f, -116.000298f, -278.960693f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_34", 2002735, 0, 4, { -185.956604f, -394.699890f, 235.090607f }, 1.000000f, 1.047197f ); - instance.registerEObj( "sgpl_w_lvd_b0118_col_char", 2002872, 6259368, 4, { -189.835297f, -394.768494f, 236.985107f }, 1.000000f, 0.000000f ); - // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) - instance.registerEObj( "sgpl_w_lvd_b0118_col_char_1", 2002872, 6259369, 4, { -152.910706f, -394.522003f, 215.716797f }, 0.991760f, 0.000048f ); - // States -> vf_bextwall_on (id: 3) vf_bextwall_of (id: 4) - instance.registerEObj( "unknown_35", 2007114, 6265979, 4, { -179.125702f, -394.522003f, 205.950897f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_36", 2007115, 6265980, 4, { -157.763107f, -394.522003f, 242.664200f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_37", 2007116, 6265977, 4, { -181.536697f, -394.522003f, 201.556396f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_38", 2007117, 6275728, 4, { -180.590607f, -394.522003f, 231.158905f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_39", 2007118, 6262272, 4, { -156.623795f, -394.500092f, 244.445908f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_40", 2007119, 6264911, 4, { -168.688507f, -391.866913f, 224.567001f }, 0.991760f, 0.000048f ); - instance.registerEObj( "unknown_41", 2007378, 6404242, 4, { -170.886597f, -394.500092f, 228.890305f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_42", 2007379, 6404243, 4, { -174.892807f, -394.500092f, 226.853806f }, 1.000000f, 0.000000f ); - instance.registerEObj( "Basicconveyanceunit", 2007054, 6277013, 4, { 29.465090f, 12.072440f, 173.291306f }, 0.991760f, 0.000048f ); - instance.registerEObj( "Basicconveyanceunit_1", 2007055, 6277014, 4, { 10.055660f, 10.610950f, 59.293789f }, 0.991760f, 0.000048f ); - instance.registerEObj( "Basicconveyanceunit_2", 2007056, 6277015, 4, { 21.985451f, -1.159537f, -124.736298f }, 1.000000f, 0.000000f ); - instance.registerEObj( "Basicconveyanceunit_3", 2007057, 6277012, 4, { -290.684998f, -71.292747f, -368.263885f }, 1.000000f, 0.000000f ); - instance.registerEObj( "Basicconveyanceunit_4", 2007058, 6235460, 4, { -244.833099f, -390.428986f, 258.731689f }, 1.000000f, 0.000000f ); - instance.registerEObj( "Basicconveyanceunit_5", 2007059, 6235461, 4, { 276.184296f, -461.318604f, -294.996796f }, 1.000000f, 0.000000f ); - instance.registerEObj( "Basicconveyanceunit_6", 2007060, 6235463, 4, { -304.521301f, -435.890594f, 23.143780f }, 1.000000f, 0.000000f ); - instance.registerEObj( "unknown_43", 2007103, 6259793, 4, { 16.303080f, -3.864367f, -114.426003f }, 1.000000f, 0.000000f ); - instance.registerEObj( "Entrance", 2000182, 6247654, 5, { 81.884888f, 13.000000f, 208.698303f }, 0.991760f, 0.292740f ); - // States -> vf_lock_on (id: 11) vf_lock_of (id: 12) - - } - - void onUpdate( InstanceContent& instance, uint32_t currTime ) override - { - - } - - void onEnterTerritory( InstanceContent& instance, Entity::Player& player, uint32_t eventId, uint16_t param1, - uint16_t param2 ) override - { - - } - -}; - -EXPOSE_SCRIPT( WithHeartandSteel ); \ No newline at end of file diff --git a/src/tools/event_object_parser/main.cpp b/src/tools/event_object_parser/main.cpp index c09a98b8..e116ef2e 100644 --- a/src/tools/event_object_parser/main.cpp +++ b/src/tools/event_object_parser/main.cpp @@ -395,7 +395,7 @@ void loadAllInstanceContentEntries() //zoneInstanceMap[zoneId].push_back( std::make_pair( id, name ) ); zoneDumpList.emplace( zoneNameMap[ teri ] ); - std::string remove = "★_ '()[]-\x1a\x1\x2\x1f\x1\x3.:"; + std::string remove = ",★_ '()[]-\xae\x1a\x1\x2\x1f\x1\x3.:"; Sapphire::Util::eraseAllIn( name, remove ); name[ 0 ] = toupper( name[ 0 ] ); contentList.push_back( { id, name, zoneNameMap[ teri ], type } ); @@ -664,7 +664,7 @@ int main( int argc, char* argv[] ) if( eobjNameMap.find( id ) != eobjNameMap.end() ) { name = eobjNameMap[ id ]; - std::string remove = "★_ '()[]-\x1a\x1\x2\x1f\x1\x3.:"; + std::string remove = ",★_ '()[]-\xae\x1a\x1\x2\x1f\x1\x3.:"; Sapphire::Util::eraseAllIn( name, remove ); name[ 0 ] = toupper( name[ 0 ] ); diff --git a/src/world/Script/NativeScriptApi.cpp b/src/world/Script/NativeScriptApi.cpp index 3eeb5912..b1bfef51 100644 --- a/src/world/Script/NativeScriptApi.cpp +++ b/src/world/Script/NativeScriptApi.cpp @@ -194,5 +194,25 @@ namespace Sapphire::ScriptAPI { } + /////////////////////////////////////////////////////////////////// + + QuestBattleScript::QuestBattleScript( uint32_t questBattleId ) : + ScriptObject( uint32_t{ 0x8006 } << 16 | questBattleId, typeid( QuestBattleScript ).hash_code() ) + { + } + + void QuestBattleScript::onInit( QuestBattle& instance ) + { + } + + void QuestBattleScript::onUpdate( QuestBattle& instance, uint32_t currTime ) + { + } + + void QuestBattleScript::onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, + uint16_t param1, uint16_t param2 ) + { + } + }