mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-02 16:57:47 +00:00
CmnDefInnBed fully implemented, dummy for Orchestrion
This commit is contained in:
parent
309c4c7efa
commit
6b306f9aee
2 changed files with 63 additions and 1 deletions
|
@ -7,7 +7,38 @@ class CmnDefInnBedDef
|
||||||
this.id = 720916;
|
this.id = 720916;
|
||||||
}
|
}
|
||||||
|
|
||||||
def Scene00100( player )
|
def Scene00000( player ) //Menu
|
||||||
|
{
|
||||||
|
player.eventPlay( this.id, 0, 0x2000/*flags*/, 0/*unk*/, 1/*unk*/,
|
||||||
|
fun( player, eventId, param1, param2, param3 )
|
||||||
|
{
|
||||||
|
if( param2 > 1 )
|
||||||
|
{
|
||||||
|
CmnDefInnBed.Scene00001( player, param2 );
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
def Scene00001( player, what ) //Lay down
|
||||||
|
{
|
||||||
|
player.eventPlay( this.id, 1, 0xF32E48F8/*flags*/, 0/*unk*/, 1/*unk*/, what,
|
||||||
|
fun( player, eventId, param1, param2, param3 )
|
||||||
|
{
|
||||||
|
CmnDefInnBed.Scene00002( player, param2 );
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
def Scene00002( player, what ) //Log out
|
||||||
|
{
|
||||||
|
player.eventPlay( this.id, 2, 0xF32E48F8/*flags*/, 0/*unk*/, 1/*unk*/, what,
|
||||||
|
fun( player, eventId, param1, param2, param3 )
|
||||||
|
{
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
def Scene00100( player ) //Wake up
|
||||||
{
|
{
|
||||||
player.eventPlay( this.id, 100, 0xF32E48F8/*flags*/, 0/*unk*/, 0/*unk*/,
|
player.eventPlay( this.id, 100, 0xF32E48F8/*flags*/, 0/*unk*/, 0/*unk*/,
|
||||||
fun( player, eventId, param1, param2, param3 )
|
fun( player, eventId, param1, param2, param3 )
|
||||||
|
@ -16,6 +47,11 @@ class CmnDefInnBedDef
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def onTalk( eventId, player, actorId )
|
||||||
|
{
|
||||||
|
this.Scene00000( player );
|
||||||
|
}
|
||||||
|
|
||||||
def onEnterTerritory( eventId, player, param1, param2 )
|
def onEnterTerritory( eventId, player, param1, param2 )
|
||||||
{
|
{
|
||||||
this.Scene00100( player );
|
this.Scene00100( player );
|
||||||
|
|
26
scripts/chai/CmnDef/HouFurOrchestrion.chai
Normal file
26
scripts/chai/CmnDef/HouFurOrchestrion.chai
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
|
||||||
|
class HouFurOrchestrionDef
|
||||||
|
{
|
||||||
|
|
||||||
|
def HouFurOrchestrionDef()
|
||||||
|
{
|
||||||
|
this.id = 721226;
|
||||||
|
}
|
||||||
|
|
||||||
|
def Scene00000( player )
|
||||||
|
{
|
||||||
|
player.eventPlay( this.id, 0, 0x2000/*flags*/, 0/*unk*/, 1/*unk*/,
|
||||||
|
fun( player, eventId, param1, param2, param3 )
|
||||||
|
{
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
def onTalk( eventId, player, actorId )
|
||||||
|
{
|
||||||
|
this.Scene00000( player );
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
GLOBAL HouFurOrchestrion = HouFurOrchestrionDef();
|
Loading…
Add table
Reference in a new issue