diff --git a/src/scripts/quest/subquest/coerthas_central/GaiUsb914.cpp b/src/scripts/quest/subquest/coerthas_central/GaiUsb914.cpp index d406494f..67c22cbc 100644 --- a/src/scripts/quest/subquest/coerthas_central/GaiUsb914.cpp +++ b/src/scripts/quest/subquest/coerthas_central/GaiUsb914.cpp @@ -3,6 +3,7 @@ // In order for this script to be loaded, move it to the correct folder in /scripts/ #include "Manager/EventMgr.h" +#include #include #include #include @@ -36,8 +37,8 @@ private: // Entities found in the script data of the quest static constexpr auto Actor0 = 1006461;//Cid - static constexpr auto Enemy0 = 114;//Ice Sprite (INCORRECT: 132) - static constexpr auto Item0 = 2000732;//Ice Sprit Core (UI8BH) + static constexpr auto Enemy0 = 114; //Ice Sprite (INCORRECT: 132) + static constexpr auto Item0 = 2000732; //Ice Sprit Core (UI8BH) static constexpr auto LocAction1 = 990; static constexpr auto LocAction2 = 80; static constexpr auto LocAction3 = 81; @@ -70,9 +71,9 @@ public: } } - void onBNpcKill( World::Quest& quest, uint16_t nameId, uint32_t entityId, Entity::Player& player ) override + void onBNpcKill( World::Quest& quest, Entity::BNpc& bnpc, Entity::Player& player ) override { - switch( nameId ) + switch( bnpc.getBNpcNameId() ) { case Enemy0: { @@ -142,7 +143,7 @@ private: if( result.getResult( 0 ) == 1 ) { - player.finishQuest( getId(), result.getResult(1) ); + player.finishQuest( getId(), result.getResult( 1 ) ); } } };