Scriptname Publican_TiberSeptimHotelAugusta
;CellName: ICTalosPlazaTheTiberSeptimHotelUpstairs
;Publican: Augusta Calidia
;Room: West end of hallway
;Global Var: RentICTiberSeptimHotel
;Door Ref: TiberSeptimRentDoor
short rent
short rentday
short rentmonth
short cleanup
short setup
begin OnPackageChange MS22DeliverDrinks
MS22TiberSeptimHotelWine.enable
end
begin gamemode
if ( rent == 1 )
if ( setup == 0 )
set rentday to GameDay
set rentmonth to GameMonth
set setup to 1
TiberSeptimRentDoor.unlock
TiberSeptimRentBed.SetOwnership
else
if ( GameDay != rentday )
set cleanup to 1
elseif ( GameMonth != rentmonth )
set cleanup to 1
endif
endif
if ( Player.GetInCell ICTalosPlazaTheTiberSeptimHotel == 0 )
if ( Cleanup == 1 )
set Cleanup to 2
endif
endif
if ( Cleanup == 2 )
set rent to 0
set setup to 0
set rentday to 0
set rentmonth to 0
set cleanup to 0
TiberSeptimRentDoor.SetOpenState 0
TiberSeptimRentDoor.lock 30
TiberSeptimRentBed.SetOwnership AugustaCalidia
endif
endif
End