|
@@ -27,15 +27,16 @@ if $ARGS[0] = 'start':
|
|
|
|
|
|
!! Get a list of the properties and their attributes that the player rented:
|
|
|
|
|
|
- iif(func('homes_properties', 'get_rented_count', 'home') > 0, count = func('homes_properties', 'get_rented_count'), count = 0)
|
|
|
-
|
|
|
+ !!temp = func('homes_properties', 'get_rented_property_count', 'home') <- will get right next
|
|
|
+ count = owned_property['rental_home_count']
|
|
|
if count > 0:
|
|
|
!! Returns: $rental_name[i], $rental_code[i], rental_amount[i], rental_days[i]
|
|
|
gs 'homes_properties', 'get_rented_homes'
|
|
|
i = 0
|
|
|
'<h4>Rent Information</h4>'
|
|
|
:loop_rental_info
|
|
|
- 'You have <B><<rental_days[i]]>> days</B> remaining on the lease of your <<$rental_name[i]>>, and your monthly rent is <<rental_amount[i]>> <b>₽</b>. '+iif(money >= rental_amount[i],'You can make a rent <a href="exec:money -= <<rental_amount[i]>> & gs ''homes_properties'', ''add_rental_days'', ''<<$rental_code[i]>>'' & gt ''agentned'', ''start''">payment</a> in cash to extend it.','You can''t afford to pay your rent at the moment')
|
|
|
+ 'You have <B><<rental_days[i]>> days</B> remaining on the lease of your <<$rental_name[i]>>, and your monthly rent is <<rental_amount[i]>> <b>₽</b>. '+iif(money >= rental_amount[i],'You can make a rent <a href="exec:money -= <<rental_amount[i]>> & gs ''homes_properties'', ''add_rental_days'', ''<<$rental_code[i]>>'' & gt ''agentned'', ''start''">payment</a> in cash to extend it.','You can''t afford to pay your rent at the moment')
|
|
|
+ 'You have <B><<rental_days[i]>> days</B> remaining on the lease of your <<$rental_name[i]>>, and your monthly rent is <<rental_amount[i]>> <b>₽</b>. '+iif(money >= rental_amount[i],'You can make a rent <a href="exec:money -= <<rental_amount[i]>> & gs ''homes_properties'', ''add_rental_days'', ''<<$rental_code[i]>>'' & gt ''agentned'', ''start''">payment</a> in cash to extend it.','You can''t afford to pay your rent at the moment')
|
|
|
act 'Cancel the lease of the <<$rental_name[i]>>':
|
|
|
cla & *nl
|
|
|
'Attention: You won''t be able to return to your apartment when you cancel the lease.'
|
|
@@ -45,7 +46,11 @@ if $ARGS[0] = 'start':
|
|
|
end
|
|
|
i += 1
|
|
|
if i < count: jump 'loop_rental_info'
|
|
|
- killvar 'rental_due', 'rental_days', 'rental_name', 'rental_code'}
|
|
|
+ killvar 'rental_due'
|
|
|
+ killvar 'rental_days'
|
|
|
+ killvar 'rental_name'
|
|
|
+ killvar 'rental_code'
|
|
|
+ killvar 'i'
|
|
|
end
|
|
|
killvar 'count'
|
|
|
|