mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-23 13:17:45 +00:00
38 lines
No EOL
814 B
ChaiScript
38 lines
No EOL
814 B
ChaiScript
|
|
class CmnDefCutSceneReplayDef
|
|
{
|
|
|
|
def CmnDefCutSceneReplayDef()
|
|
{
|
|
this.id = 721028;
|
|
}
|
|
|
|
def Scene00000( player )
|
|
{
|
|
player.eventPlay( this.id, 0, 0x2000/*flags*/, 0/*unk*/, 1/*unk*/,
|
|
fun( player, eventId, param1, param2, param3 )
|
|
{
|
|
if( param2 != 0 )
|
|
{
|
|
CmnDefCutSceneReplay.Scene00001( player, param2 );
|
|
}
|
|
});
|
|
}
|
|
|
|
def Scene00001( player, returnScene )
|
|
{
|
|
player.eventPlay( this.id, 1, 0xFB2EC8F8/*flags*/, 0/*unk*/, 1, returnScene,
|
|
fun( player, eventId, param1, param2, param3 )
|
|
{
|
|
|
|
});
|
|
}
|
|
|
|
def onTalk( eventId, player, actorId )
|
|
{
|
|
this.Scene00000( player );
|
|
}
|
|
|
|
};
|
|
|
|
GLOBAL CmnDefCutSceneReplay = CmnDefCutSceneReplayDef(); |