1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-29 07:37:45 +00:00
sapphire/src/scripts/common/CmnDefNpcRepair.cpp

26 lines
No EOL
512 B
C++

#include <ScriptObject.h>
#include <Actor/Player.h>
using namespace Sapphire;
class CmnDefNpcRepair :
public Sapphire::ScriptAPI::EventScript
{
public:
CmnDefNpcRepair() :
Sapphire::ScriptAPI::EventScript( 0xB0013 )
{
}
void Scene00000( Entity::Player& player )
{
eventMgr().playScene( player, getId(), 0, HIDE_HOTBAR, { 1 } );
}
void onTalk( uint32_t eventId, Entity::Player& player, uint64_t actorId ) override
{
Scene00000( player );
}
};
EXPOSE_SCRIPT( CmnDefNpcRepair );