Item "MyInnCell" not found for parameter cell. Compiled script not saved
This is the line in the script it is referring to:
If ( Player.GetInCell SCSmugglersHollowIntSCSmugglersHollowInn == 0 )
I should point out that the inn building is inside a cave, so you have to go through the cave to get to the inn. If anybody can help me, I would greatly appreciate it!
Here is the full script, just in case:
Scriptname Publican SmugglersHollowInnKavan
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
SCKavanRentDoorREF.UnLock
SCKavanRentBedREF.SetOwnership
else
if ( GameDay != rentday )
set cleanup to 1
elseif ( GameMonth != rentmonth )
set cleanup to 1
endif
endif
If ( Player.GetInCell SCSmugglersHollowIntSCSmugglersHollowInn == 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
SCKavanRentDoorREF.SetOpenState 0
SCKavanRentDoorREF.Lock 30
SCKavanRentBedREF.SetOwnership Sthasa
endif
endif
End