|
@@ -21,7 +21,20 @@ if $ARGS[0] = 'community':
|
|
|
menu_off = 0
|
|
|
gs 'stat'
|
|
|
|
|
|
- '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
|
|
|
+ if month >= 11 or month <= 3:
|
|
|
+ if hour >= 9 and hour <= 16:
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/bus/winter_day<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ else
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/bus/winter_night<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ end
|
|
|
+ else
|
|
|
+ if hour >= 7 and hour <= 18:
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/bus/day<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ else
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/bus/night<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ end
|
|
|
+ end
|
|
|
+
|
|
|
'The community center bus stop'
|
|
|
*nl
|
|
|
gs 'transport_functions', 'set_bus_wait_time', 'community'
|
|
@@ -35,7 +48,8 @@ if $ARGS[0] = 'community':
|
|
|
func('transport_functions', 'display_buspass_time')
|
|
|
act 'Go to platforms': gt 'bus', 'community_busses'
|
|
|
else
|
|
|
- act 'Buy a ticket': gt 'bus', 'community_tickets'
|
|
|
+ act 'Walk to the ticket machine': gt 'bus', 'community_tickets'
|
|
|
+ gs 'transport_functions', 'buy_bus_pass'
|
|
|
end
|
|
|
else
|
|
|
'It''s too late to take the bus. The next one arrives in <<transportVars[''bus_wait_gadukino'']/60>> hours'
|
|
@@ -93,12 +107,26 @@ if $ARGS[0] = 'pavstation':
|
|
|
menu_off = 0
|
|
|
gs 'stat'
|
|
|
|
|
|
- '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
|
|
|
+ if month >= 11 or month <= 3:
|
|
|
+ if hour >= 9 and hour <= 16:
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/bus/winter_day<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ else
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/bus/winter_night<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ end
|
|
|
+ else
|
|
|
+ if hour >= 7 and hour <= 18:
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/bus/day<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ else
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/bus/night<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ end
|
|
|
+ end
|
|
|
+
|
|
|
'The Pavlovsk train station bus stop'
|
|
|
*nl
|
|
|
gs 'transport_functions', 'set_bus_wait_time', 'pavstation'
|
|
|
|
|
|
act 'Walk to the train station (0:02)': minut += 2 & gt 'pav_train_hall'
|
|
|
+ if transportVars['trainpass_day'] > daystart: act 'Walk to the train platform (0:02)': minut += 2 & gt 'pav_train_hall', 'platform'
|
|
|
|
|
|
if transportVars['bus_wait_pavlovsk'] <= 60 or transportVars['bus_wait_gadukino'] <= 60:
|
|
|
'The next bus in the direction of the Pavlovsk community center ' + iif(transportVars['bus_wait_pavlovsk'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_pavlovsk'']>> minutes.')
|
|
@@ -109,7 +137,8 @@ if $ARGS[0] = 'pavstation':
|
|
|
func('transport_functions', 'display_buspass_time')
|
|
|
act 'Go to platforms': gt 'bus', 'pavstation_busses'
|
|
|
else
|
|
|
- act 'Buy a ticket': gt 'bus', 'pavstation_tickets'
|
|
|
+ act 'Walk to the ticket machine': gt 'bus', 'pavstation_tickets'
|
|
|
+ gs 'transport_functions', 'buy_bus_pass'
|
|
|
end
|
|
|
else
|
|
|
'It''s too late to take the bus. The next one arrives in <<min(transportVars[''bus_wait_pavlovsk'']/60, transportVars[''bus_wait_gadukino'']/60)>> hours.'
|
|
@@ -174,7 +203,20 @@ if $ARGS[0] = 'pushkin':
|
|
|
menu_off = 0
|
|
|
gs 'stat'
|
|
|
|
|
|
- '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
|
|
|
+ if month >= 11 or month <= 3:
|
|
|
+ if hour >= 9 and hour <= 16:
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/bus/winter_day<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ else
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/bus/winter_night<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ end
|
|
|
+ else
|
|
|
+ if hour >= 7 and hour <= 18:
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/bus/day<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ else
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/bus/night<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ end
|
|
|
+ end
|
|
|
+
|
|
|
'The bus stop in the old town center of Pushkin'
|
|
|
*nl
|
|
|
gs 'transport_functions', 'set_bus_wait_time', 'pushkin'
|
|
@@ -189,7 +231,7 @@ if $ARGS[0] = 'pushkin':
|
|
|
func('transport_functions', 'display_buspass_time')
|
|
|
act 'Go to platforms': gt 'bus', 'pushkin_busses'
|
|
|
else
|
|
|
- act 'Buy a ticket': gt 'bus', 'pushkin_tickets'
|
|
|
+ act 'Walk to the ticket machine': gt 'bus', 'pushkin_tickets'
|
|
|
end
|
|
|
else
|
|
|
'It''s too late to take the bus. The next one arrives in <<min(transportVars[''bus_wait_pavlovsk'']/60, transportVars[''bus_wait_gadukino'']/60)>> hours.'
|
|
@@ -254,7 +296,20 @@ if $ARGS[0] = 'construction':
|
|
|
menu_off = 0
|
|
|
gs 'stat'
|
|
|
|
|
|
- '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
|
|
|
+ if month >= 11 or month <= 3:
|
|
|
+ if hour >= 9 and hour <= 16:
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/bus/winter_day<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ else
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/bus/winter_night<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ end
|
|
|
+ else
|
|
|
+ if hour >= 7 and hour <= 18:
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/bus/day<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ else
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/bus/night<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ end
|
|
|
+ end
|
|
|
+
|
|
|
'The temporary bus stop near the construction site'
|
|
|
*nl
|
|
|
gs 'transport_functions', 'set_bus_wait_time', 'construction'
|
|
@@ -269,7 +324,7 @@ if $ARGS[0] = 'construction':
|
|
|
func('transport_functions', 'display_buspass_time')
|
|
|
act 'Go to platforms': gt 'bus', 'construction_busses'
|
|
|
else
|
|
|
- act 'Buy a ticket': gt 'bus', 'construction_tickets'
|
|
|
+ act 'Walk to the ticket machine': gt 'bus', 'construction_tickets'
|
|
|
end
|
|
|
else
|
|
|
'It''s too late to take the bus. The next one arrives in <<min(transportVars[''bus_wait_pavlovsk'']/60, transportVars[''bus_wait_gadukino'']/60)>> hours.'
|
|
@@ -334,7 +389,20 @@ if $ARGS[0] = 'gadukino':
|
|
|
menu_off = 0
|
|
|
gs 'stat'
|
|
|
|
|
|
- '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
|
|
|
+ if month >= 11 or month <= 3:
|
|
|
+ if hour >= 9 and hour <= 16:
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/bus/winter_day<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ else
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/bus/winter_night<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ end
|
|
|
+ else
|
|
|
+ if hour >= 7 and hour <= 18:
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/bus/day<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ else
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/bus/night<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ end
|
|
|
+ end
|
|
|
+
|
|
|
'The bus stop at the forest road of the village of Gadukino'
|
|
|
*nl
|
|
|
gs 'transport_functions', 'set_bus_wait_time', 'gadukino'
|
|
@@ -349,7 +417,8 @@ if $ARGS[0] = 'gadukino':
|
|
|
func('transport_functions', 'display_buspass_time')
|
|
|
act 'Go to platforms': gt 'bus', 'gadukino_busses'
|
|
|
else
|
|
|
- act 'Buy a ticket': gt 'bus', 'gadukino_tickets'
|
|
|
+ act 'Walk to the ticket machine': gt 'bus', 'gadukino_tickets'
|
|
|
+ gs 'transport_functions', 'buy_bus_pass'
|
|
|
end
|
|
|
else
|
|
|
'It''s too late to take the bus. The next one arrives in <<min(transportVars[''bus_wait_pavlovsk'']/60, transportVars[''bus_wait_suburbs'']/60)>> hours.'
|
|
@@ -419,7 +488,20 @@ if $ARGS[0] = 'communal':
|
|
|
menu_off = 0
|
|
|
gs 'stat'
|
|
|
|
|
|
- '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
|
|
|
+ if month >= 11 or month <= 3:
|
|
|
+ if hour >= 9 and hour <= 16:
|
|
|
+ '<center><img <<$set_imgh>> src="images/shared/bus/winter_day<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ else
|
|
|
+ '<center><img <<$set_imgh>> src="images/shared/bus/winter_night<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ end
|
|
|
+ else
|
|
|
+ if hour >= 7 and hour <= 18:
|
|
|
+ '<center><img <<$set_imgh>> src="images/shared/bus/day<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ else
|
|
|
+ '<center><img <<$set_imgh>> src="images/shared/bus/night<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ end
|
|
|
+ end
|
|
|
+
|
|
|
'The bus stop in the communal village'
|
|
|
*nl
|
|
|
gs 'transport_functions', 'set_bus_wait_time', 'communal'
|
|
@@ -437,7 +519,7 @@ if $ARGS[0] = 'communal':
|
|
|
func('transport_functions', 'display_buspass_time')
|
|
|
act 'Go to platforms': gt 'bus', 'communal_busses'
|
|
|
else
|
|
|
- act 'Buy a ticket': gt 'bus', 'communal_tickets'
|
|
|
+ act 'Walk to the ticket machine': gt 'bus', 'communal_tickets'
|
|
|
end
|
|
|
else
|
|
|
'It''s too late to take the bus. The next one arrives in <<min(transportVars[''bus_wait_gadukino'']/60, transportVars[''bus_wait_suburbs'']/60)>> hours.'
|
|
@@ -501,7 +583,20 @@ if $ARGS[0] = 'graveyard':
|
|
|
menu_off = 0
|
|
|
gs 'stat'
|
|
|
|
|
|
- '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
|
|
|
+ if month >= 11 or month <= 3:
|
|
|
+ if hour >= 9 and hour <= 16:
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/bus/winter_day<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ else
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/bus/winter_night<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ end
|
|
|
+ else
|
|
|
+ if hour >= 7 and hour <= 18:
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/bus/day<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ else
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/bus/night<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ end
|
|
|
+ end
|
|
|
+
|
|
|
'The cemetery bus stop'
|
|
|
*nl
|
|
|
gs 'transport_functions', 'set_bus_wait_time', 'graveyard'
|
|
@@ -516,7 +611,7 @@ if $ARGS[0] = 'graveyard':
|
|
|
func('transport_functions', 'display_buspass_time')
|
|
|
act 'Go to platforms': gt 'bus', 'graveyard_busses'
|
|
|
else
|
|
|
- act 'Buy a ticket': gt 'bus', 'graveyard_tickets'
|
|
|
+ act 'Walk to the ticket machine': gt 'bus', 'graveyard_tickets'
|
|
|
end
|
|
|
else
|
|
|
'It''s too late to take the bus. The next one arrives in <<min(transportVars[''bus_wait_gadukino'']/60, transportVars[''bus_wait_suburbs'']/60)>> hours.'
|
|
@@ -580,13 +675,28 @@ if $ARGS[0] = 'suburbs':
|
|
|
menu_off = 0
|
|
|
gs 'stat'
|
|
|
|
|
|
- '<center><img <<$set_imgh>> src="images/locations/system/image_needed.jpg" ></center>'
|
|
|
+ if month >= 11 or month <= 3:
|
|
|
+ if hour >= 9 and hour <= 16:
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/bus/winter_day<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ else
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/bus/winter_night<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ end
|
|
|
+ else
|
|
|
+ if hour >= 7 and hour <= 18:
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/bus/day<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ else
|
|
|
+ '<center><img <<$set_imgh>> src="images/locations/shared/bus/night<<rand(1, 3)>>.jpg"></center>'
|
|
|
+ end
|
|
|
+ end
|
|
|
+
|
|
|
'The bus stop near the suburbs of St. Petersburg'
|
|
|
*nl
|
|
|
gs 'transport_functions', 'set_bus_wait_time', 'suburbs'
|
|
|
|
|
|
act 'Walk to the suburbs (0:05)': minut += 5 & gt 'city_suburbs', 'start'
|
|
|
|
|
|
+ if hour >= 4 and hour < 23: act 'Walk to the Metro station (0:15)': minut += 15 & $loc = 'city_suburbs' & $loc_arg = 'start' & gt 'metro', 'start'
|
|
|
+
|
|
|
if transportVars['bus_wait_gadukino'] <= 60:
|
|
|
'The next bus in the direction of Gadukino ' + iif(transportVars['bus_wait_gadukino'] = 0, 'is leaving now!', 'leaves in <<transportVars[''bus_wait_gadukino'']>> minutes.')
|
|
|
if transportVars['buspass_day'] > daystart:
|
|
@@ -594,7 +704,8 @@ if $ARGS[0] = 'suburbs':
|
|
|
func('transport_functions', 'display_buspass_time')
|
|
|
act 'Go to platforms': gt 'bus', 'suburbs_busses'
|
|
|
else
|
|
|
- act 'Buy a ticket': gt 'bus', 'suburbs_tickets'
|
|
|
+ act 'Walk to the ticket machine': gt 'bus', 'suburbs_tickets'
|
|
|
+ gs 'transport_functions', 'buy_bus_pass'
|
|
|
end
|
|
|
else
|
|
|
'It''s too late to take the bus. The next one arrives in <<transportVars[''bus_wait_gadukino'']/60>> hours'
|