1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-28 15:17:46 +00:00
sapphire/src/scripts/common/CmnDefMogLetter.cpp

27 lines
584 B
C++
Raw Normal View History

2018-06-26 00:04:04 +02:00
#include <ScriptObject.h>
#include <Actor/Player.h>
using namespace Sapphire;
2018-10-28 21:53:21 +01:00
class CmnDefMogLetter :
public Sapphire::ScriptAPI::EventScript
2018-06-26 00:04:04 +02:00
{
public:
CmnDefMogLetter() :
Sapphire::ScriptAPI::EventScript( 720898 )
{
}
2018-06-26 00:04:04 +02:00
void onTalk( uint32_t eventId, Entity::Player& player, uint64_t actorId ) override
{
Scene00000( player );
}
2018-06-26 00:04:04 +02:00
void Scene00000( Entity::Player& player )
{
player.playScene( getId(), 0, 0,
[ & ]( Entity::Player& player, const Event::SceneResult& result )
{
} );
}
2018-06-26 00:04:04 +02:00
};