mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 22:57:45 +00:00
fix bnpc kill events not being called in scripts
This commit is contained in:
parent
5605a2227a
commit
83ed77844a
1 changed files with 2 additions and 2 deletions
|
@ -285,12 +285,12 @@ bool Sapphire::Scripting::ScriptMgr::onMobKill( Entity::Player& player, uint16_t
|
|||
if( !activeQuests )
|
||||
continue;
|
||||
|
||||
uint16_t questId = activeQuests->c.questId;
|
||||
uint32_t questId = activeQuests->c.questId | 0x00010000;
|
||||
|
||||
auto script = m_nativeScriptMgr->getScript< Sapphire::ScriptAPI::EventScript >( questId );
|
||||
if( script )
|
||||
{
|
||||
std::string objName = pEventMgr->getEventName( 0x00010000 | questId );
|
||||
std::string objName = pEventMgr->getEventName( questId );
|
||||
|
||||
player.sendDebug( "Calling: {0}.{1}", objName, eventName );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue