mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 06:27:45 +00:00
CmnDefInnBed, CmnDefCutSceneReplay
This commit is contained in:
parent
0a292c2813
commit
3ae641b82d
2 changed files with 61 additions and 0 deletions
35
scripts/chai/CmnDef/CmnDefCutSceneReplay.chai
Normal file
35
scripts/chai/CmnDef/CmnDefCutSceneReplay.chai
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
|
||||||
|
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 )
|
||||||
|
{
|
||||||
|
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();
|
26
scripts/chai/CmnDef/CmnDefInnBed.chai
Normal file
26
scripts/chai/CmnDef/CmnDefInnBed.chai
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
|
||||||
|
class CmnDefInnBedDef
|
||||||
|
{
|
||||||
|
|
||||||
|
def CmnDefInnBedDef()
|
||||||
|
{
|
||||||
|
this.id = 720916;
|
||||||
|
}
|
||||||
|
|
||||||
|
def Scene00100( player )
|
||||||
|
{
|
||||||
|
player.eventPlay( this.id, 100, 0xF32E48F8/*flags*/, 0/*unk*/, 0/*unk*/,
|
||||||
|
fun( player, eventId, param1, param2, param3 )
|
||||||
|
{
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
def onEnterTerritory( eventId, player, param1, param2 )
|
||||||
|
{
|
||||||
|
this.Scene00100( player );
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
GLOBAL CmnDefInnBed = CmnDefInnBedDef();
|
Loading…
Add table
Reference in a new issue