mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 14:57:44 +00:00
MogLetter npcs struct add
This commit is contained in:
parent
8a163bd693
commit
5b0b52482d
1 changed files with 22 additions and 0 deletions
22
src/servers/Scripts/common/CmnDefMogLetter.cpp
Normal file
22
src/servers/Scripts/common/CmnDefMogLetter.cpp
Normal file
|
@ -0,0 +1,22 @@
|
|||
#include <ScriptObject.h>
|
||||
#include <Actor/Player.h>
|
||||
|
||||
class CmnDefMogLetter : public EventScript
|
||||
{
|
||||
public:
|
||||
CmnDefMogLetter() : EventScript( 720898 )
|
||||
{}
|
||||
|
||||
void onTalk( uint32_t eventId, Entity::Player& player, uint64_t actorId ) override
|
||||
{
|
||||
Scene00001( player );
|
||||
}
|
||||
|
||||
void Scene00001( Entity::Player& player )
|
||||
{
|
||||
player.playScene( getId(), 1, 0,
|
||||
[&]( Entity::Player& player, const Event::SceneResult& result )
|
||||
{
|
||||
} );
|
||||
}
|
||||
};
|
Loading…
Add table
Reference in a new issue