Scriptname Publican_LuthorBroadLuthor
;CellName: ICElvenGardensLuthorBroadsRooms
;Publican: Luthor Broad
;Room: First room upstairs on the left
;Door Ref: LuthorBroadRentDoor
short rent
short rentday
short rentmonth
short cleanup
short setup
begin gamemode
if ( rent == 1 )
if ( setup == 0 )
set rentday to GameDay
set rentmonth to GameMonth
set setup to 1
LuthorBroadRentDoor.unlock
LuthorBroadRentBed.SetOwnership
else
if ( GameDay != rentday )
set cleanup to 1
elseif ( GameMonth != rentmonth )
set cleanup to 1
endif
endif
if ( Player.GetinCell ICElvenGardensLutherBroadsBoardingHouse == 0 )
if ( Player.GetinCell ICElvenGardensLutherBroadsRooms == 0 )
if ( Cleanup == 1 )
set Cleanup to 2
endif
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
LuthorBroadRentDoor.SetOpenState 0
LuthorBroadRentDoor.lock 30
LuthorBroadRentBed.SetOwnership Sthasa
endif
endif
End
|