1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-23 21:27:45 +00:00
sapphire/scripts/chai/CmnDef/CmnDefCutSceneReplay.chai

38 lines
814 B
ChaiScript
Raw Normal View History

2017-10-08 20:36:28 +02:00
class CmnDefCutSceneReplayDef
{
2017-10-09 15:34:41 +02:00
def CmnDefCutSceneReplayDef()
{
this.id = 721028;
}
def Scene00000( player )
{
player.eventPlay( this.id, 0, 0x2000/*flags*/, 0/*unk*/, 1/*unk*/,
2017-10-08 20:36:28 +02:00
fun( player, eventId, param1, param2, param3 )
{
2017-10-09 15:34:41 +02:00
if( param2 != 0 )
{
CmnDefCutSceneReplay.Scene00001( player, param2 );
}
2017-10-08 20:36:28 +02:00
});
2017-10-09 15:34:41 +02:00
}
2017-10-08 20:36:28 +02:00
2017-10-09 15:34:41 +02:00
def Scene00001( player, returnScene )
{
player.eventPlay( this.id, 1, 0xFB2EC8F8/*flags*/, 0/*unk*/, 1, returnScene,
2017-10-08 20:36:28 +02:00
fun( player, eventId, param1, param2, param3 )
{
});
2017-10-09 15:34:41 +02:00
}
2017-10-08 20:36:28 +02:00
2017-10-09 15:34:41 +02:00
def onTalk( eventId, player, actorId )
{
this.Scene00000( player );
}
2017-10-08 20:36:28 +02:00
};
GLOBAL CmnDefCutSceneReplay = CmnDefCutSceneReplayDef();