From f0957f9521e9cfe04730914cbf3a6ceb0192e087 Mon Sep 17 00:00:00 2001 From: dude22072 Date: Wed, 23 Feb 2022 02:54:34 -0600 Subject: [PATCH] Final fix? --- .../quest/subquest/coerthas_central/GaiUsc002.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/scripts/quest/subquest/coerthas_central/GaiUsc002.cpp b/src/scripts/quest/subquest/coerthas_central/GaiUsc002.cpp index 391977e2..a405a8c8 100644 --- a/src/scripts/quest/subquest/coerthas_central/GaiUsc002.cpp +++ b/src/scripts/quest/subquest/coerthas_central/GaiUsc002.cpp @@ -115,9 +115,9 @@ public: if( !enemy0Spawned && !enemy1Spawned && !enemy2Spawned && quest.getUI8AL() < 3 ) { - auto enemy0 = instance->createBNpcFromInstanceId( Enemy0, 413 /*TODO: Find the right value*/, Common::BNpcType::Enemy, player.getId() ); - auto enemy1 = instance->createBNpcFromInstanceId( Enemy1, 413 /*TODO: Find the right value*/, Common::BNpcType::Enemy, player.getId() ); - auto enemy2 = instance->createBNpcFromInstanceId( Enemy2, 413 /*TODO: Find the right value*/, Common::BNpcType::Enemy, player.getId() ); + auto enemy0 = instance->createBNpcFromLayoutId( Enemy0, 413 /*TODO: Find the right value*/, Common::BNpcType::Enemy, player.getId() ); + auto enemy1 = instance->createBNpcFromLayoutId( Enemy1, 413 /*TODO: Find the right value*/, Common::BNpcType::Enemy, player.getId() ); + auto enemy2 = instance->createBNpcFromLayoutId( Enemy2, 413 /*TODO: Find the right value*/, Common::BNpcType::Enemy, player.getId() ); enemy0->hateListAddDelayed( player.getAsPlayer(), 1 ); enemy1->hateListAddDelayed( player.getAsPlayer(), 1 ); enemy2->hateListAddDelayed( player.getAsPlayer(), 1 ); @@ -125,9 +125,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( entityId ) + switch( bnpc.getLayoutId() ) { case Enemy0: case Enemy1: