mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 06:27:45 +00:00
116 lines
No EOL
7.4 KiB
C++
116 lines
No EOL
7.4 KiB
C++
#include <ScriptObject.h>
|
|
#include <Territory/QuestBattle.h>
|
|
|
|
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, uint64_t tickCount ) override
|
|
{
|
|
|
|
}
|
|
|
|
void onEnterTerritory( QuestBattle& instance, Entity::Player& player, uint32_t eventId, uint16_t param1,
|
|
uint16_t param2 ) override
|
|
{
|
|
|
|
}
|
|
|
|
};
|
|
|
|
EXPOSE_SCRIPT( InLovingMemory ); |