MCPcopy Create free account
hub / github.com/SapphireServer/Sapphire / onDutyCommence

Method onDutyCommence

src/world/Script/ScriptMgr.cpp:502–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500
501
502bool Sapphire::Scripting::ScriptMgr::onDutyCommence( QuestBattle& instance, Entity::Player& player )
503{
504 auto script = m_nativeScriptMgr->getScript< Sapphire::ScriptAPI::QuestBattleScript >( instance.getDirectorId() );
505
506 if( script )
507 {
508 script->onDutyCommence( instance, player );
509 return true;
510 }
511
512 return false;
513}
514
515bool Sapphire::Scripting::ScriptMgr::onInstanceEnterTerritory( QuestBattlePtr instance, Entity::Player& player,
516 uint32_t eventId, uint16_t param1, uint16_t param2 )

Callers 1

onUpdateMethod · 0.45

Calls 1

getDirectorIdMethod · 0.45

Tested by

no test coverage detected