diff --git a/scripts/chai/CmnDef/CmnDefInnBed.chai b/scripts/chai/CmnDef/CmnDefInnBed.chai index 4fd21d13..7cf96199 100644 --- a/scripts/chai/CmnDef/CmnDefInnBed.chai +++ b/scripts/chai/CmnDef/CmnDefInnBed.chai @@ -7,7 +7,38 @@ class CmnDefInnBedDef 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*/, 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 ) { this.Scene00100( player ); diff --git a/scripts/chai/CmnDef/HouFurOrchestrion.chai b/scripts/chai/CmnDef/HouFurOrchestrion.chai new file mode 100644 index 00000000..0cc7fe7d --- /dev/null +++ b/scripts/chai/CmnDef/HouFurOrchestrion.chai @@ -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(); \ No newline at end of file