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

Method onStatusTimeOut

src/world/Script/ScriptMgr.cpp:399–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399bool Sapphire::Scripting::ScriptMgr::onStatusTimeOut( Entity::CharaPtr pChara, uint32_t effectId )
400{
401 auto script = m_nativeScriptMgr->getScript< Sapphire::ScriptAPI::StatusEffectScript >( effectId );
402 if( script )
403 {
404 if( pChara->isPlayer() )
405 pChara->getAsPlayer()->sendDebug( "Calling status timeout for statusid#{0}", effectId );
406
407 script->onExpire( *pChara );
408 return true;
409 }
410
411 return false;
412}
413
414bool Sapphire::Scripting::ScriptMgr::onZoneInit( TerritoryPtr pZone )
415{

Callers 1

removeStatusMethod · 0.80

Calls 4

isPlayerMethod · 0.80
getAsPlayerMethod · 0.80
onExpireMethod · 0.80
sendDebugMethod · 0.45

Tested by

no test coverage detected