Update HourlyUpdate scripts for Data and Data-UB

This commit is contained in:
Asdow
2026-02-12 16:25:41 +02:00
parent 68e651d719
commit 29a6af3875
2 changed files with 26 additions and 30 deletions
+12 -15
View File
@@ -6,18 +6,16 @@ Facts =
FACT_PAST_CLUB_CLOSING_AND_PLAYER_WARNED = 107,
}
local p = 0
function HourlyQuestUpdate()
if (cHour >= 4 or cHour < 20) then
if (guiHour == 4) then
SetFactFalse( Facts.FACT_BROTHEL_OPEN )
else
elseif (guiHour == 20) then
SetFactTrue( Facts.FACT_BROTHEL_OPEN )
end
-- Bar/night club
if ( cHour >= 15 or cHour < 2) then
if ( guiHour == 15 ) then
SetFactTrue( Facts.FACT_CLUB_OPEN )
SetFactFalse( Facts.FACT_PAST_CLUB_CLOSING_AND_PLAYER_WARNED )
@@ -34,25 +32,24 @@ function HourlyQuestUpdate()
if ( gfBoxersResting == true ) then
-- Done resting now!
gfBoxersResting = false
gubBoxersRests = gubBoxersRests + 1
SetgfBoxersResting(false)
SetgubBoxersRests(gubBoxersRests + 1)
HealBoxers()
p = gubBoxingMatchesWon / 3
elseif ( p > gubBoxersRests ) then
elseif ( gubBoxingMatchesWon / 3 > gubBoxersRests ) then
-- Time for the boxers to rest!
gfBoxersResting = true
SetgfBoxersResting(true)
end
else
elseif ( guiHour == 2 ) then
SetFactFalse( Facts.FACT_CLUB_OPEN )
end
-- Museum
if ( cHour >= 9 or cHour < 18 ) then
if ( guiHour == 9 ) then
SetFactTrue( Facts.FACT_MUSEUM_OPEN )
else
elseif ( guiHour == 18 ) then
SetFactFalse( Facts.FACT_MUSEUM_OPEN )
end
end
end