1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-02 00:47:45 +00:00

Update GaiUsb914.cpp

This commit is contained in:
dude22072 2022-02-23 02:46:02 -06:00
parent eb6f7777e8
commit 2bb30ecb3e

View file

@ -3,6 +3,7 @@
// In order for this script to be loaded, move it to the correct folder in <root>/scripts/
#include "Manager/EventMgr.h"
#include <Actor/BNpc.h>
#include <Actor/Player.h>
#include <ScriptObject.h>
#include <Service.h>
@ -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:
{