mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 22:37:45 +00:00
CmnDefWeatherForeCast script added
This commit is contained in:
parent
ece61d3d6d
commit
3113ec4a38
1 changed files with 22 additions and 0 deletions
22
src/servers/Scripts/common/CmnDefWeatherForeCast.cpp
Normal file
22
src/servers/Scripts/common/CmnDefWeatherForeCast.cpp
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
#include <ScriptObject.h>
|
||||||
|
#include <Actor/Player.h>
|
||||||
|
|
||||||
|
class CmnDefWeatherForeCast : public EventScript
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
CmnDefWeatherForeCast() : EventScript( 721100 )
|
||||||
|
{}
|
||||||
|
|
||||||
|
void Scene00000( Entity::Player& player )
|
||||||
|
{
|
||||||
|
player.playScene( getId(), 0, HIDE_HOTBAR,
|
||||||
|
[&]( Entity::Player& player, const Event::SceneResult& result )
|
||||||
|
{
|
||||||
|
} );
|
||||||
|
}
|
||||||
|
|
||||||
|
void onTalk( uint32_t eventId, Entity::Player& player, uint64_t actorId ) override
|
||||||
|
{
|
||||||
|
Scene00000( player );
|
||||||
|
}
|
||||||
|
};
|
Loading…
Add table
Reference in a new issue