123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381 |
- # agentned
- if $ARGS[0] = 'start':
- cla
- *clr
- CLOSE ALL
- frost = 0
- gs'stat'
- gs'dina'
- gs 'housing', 'rent'
- '<center><b><font color = maroon>Kirsanova Real Estate Agency</font></b></center>'
- '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo.jpg"></center>'
- *nl
- 'The head office of the largest real estate agency in the area.'
- *nl
- 'At the reception you notice a banner, which is written in large print:'
- '"Please note, that all transactions of purchases and sales are made exclusively through your bank account. Rent payments excluded."'
- if home_owned[1] > 1 and ArendHouseSL > 0:
- *nl
- 'You have <B><<ArendHouseSL>> days</B> rental on your St. Petersburg apartment remaining. '+iif(money >= home_rent[1],'You can make a rent <a href="exec:money -= home_rent[1] & home_owned[1] = 1 & ArendHouseSL += ArendHouseSL_due & gs ''$menu_obnovit''">payment</a> in cash.','You can''t afford to pay rent at the moment')+''
- end
- if home_owned[4] > 0 and ArendHouseSL4 > 0:
- *nl
- 'You have <B><<ArendHouseSL4>> days</B> rental on your Pushkin apartment. '+iif(money >= home_rent[4],'You can make a rent <a href="exec:money -= home_rent[4] & home_owned[1] = 1 & ArendHouseSL4 += ArendHouseSL_due & gs ''$menu_obnovit''">payment</a> in cash.','You can''t afford to pay rent at the moment')+''
- end
- if home_owned[1] = 2 or home_owned[3] > 0 or home_owned[5] = 1:
- *nl
- 'You own the follwing property:'
- *nl
- if home_owned[1] = 2: 'An apartment in St. Petersburg residential area'
- if home_owned[3] > 0: 'An cottage located in the cooperative village'
- if home_owned[5] = 1: 'A plot of land in the St. Petersburg suburbs'
- *nl
- 'We are at your service if you decide to <a href="exec:GT ''agentned'',''sell''">sell</a>.'
- end
- act 'View rentals': gt 'agentned', 'rent'
- act 'View properties for sale': gt 'agentned', 'buy'
- act '<B>Leave</B>':
- minut += 5
- gt'down'
- end
- end
- if $ARGS[0] = 'buy':
- cla
- *clr
- gs 'housing', 'sale'
- '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
- '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo.jpg"></center>'
- *nl
- minut += 5
- gs 'stat'
- if home_owned[1] = 0 or home_owned[3] = 0 or home_owned[4] = 0 or home_owned[5] = 0:
- if home_owned[1] = 0:
- 'There is an apartment in the city residential area available for <<$home_value_txt[1]>> <b>₽</b>.'
- *nl
- if karta + bankDebtLimit >= home_value[1]:act 'Buy the city residential apartment': gt 'agentned', 'buy_cityres'
- elseif home_owned[1] = 1:
- 'You could buy your current rental apartment for <<$home_value_txt[1]>> <b>₽</b>.'
- *nl
- if karta + bankDebtLimit >= home_value[1]:act 'Buy the city residential apartment': gt 'agentned', 'buy_cityres'
- end
- if home_owned[3] = 0:
- 'There is a holiday cottage with an adjacent allotment in the village, for <<$home_value_txt[3]>> <b>₽</b>.'
- *nl
- if karta + bankDebtLimit >= home_value[3]:act 'Buy the cottage in the village': gt 'agentned','buy_dacha'
- end
- if home_owned[5] = 0:
- 'There is a plot in the suburbs with planning permission for a mansion for <<$home_value_txt[5]>> <b>₽</b>.'
- *nl
- if karta + bankDebtLimit >= home_value[5]:act 'Buy the plot in the suburbs': gt 'agentned','buy_Mansion'
- end
- else
- 'We currently have no properties listed for sale.'
- end
- act 'Return':gt'agentned', 'start'
- end
- if $ARGS[0] = 'sell':
- cla
- *clr
- gs 'housing', 'sale'
- '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
- '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo.jpg"></center>'
- *nl
- if home_owned[1] = 2 and rembedr = 1 and remsitr = 1 and remkorr = 1 and remvanr = 1 and remkuhr = 1:
- !Renovated city residential apartment
- home_value1 = ((home_value[1] + 250000) + rand(-100000, 100000))
- 'We have found a buyer for your renovated apartment in the city residential area. They will offer <<home_value1>> <b>₽</b>, minus 5% for fees and taxes, bringing the total to <<home_value1/100*95>>'
- act 'Sell the renovated apartment':
- *clr
- '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
- '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo_paperwork.jpg"></center>'
- minut += 30
- 'You spend half an hour filling in the paperwork for the sale of your renovated apartment, with a loss of around 5% for fees and taxes. <<home_value1/100*95>> <b>₽</b> has been paid into your bank account.'
- home_owned[1] = 0
- ArendHouseSL = 0
- if bankaccount = 1:
- karta += home_value1/100*95
- else
- money += home_value1/100*95
- end
- delact 'Sell the renovated apartment'
- gs 'stat'
- end
- end
- if home_owned[1] = 2:
- !City residential apartment
- home_value1 = (home_value[1] + rand(-100000, 100000))
- 'We have found a buyer for your apartment in the city residential area. They will offer <<home_value1>> <b>₽</b>, minus 5% for fees and taxes, bringing the total to <<home_value1/100*95>>'
- act 'Sell the city apartment':
- *clr
- '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
- '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo_paperwork.jpg"></center>'
- minut += 30
- 'You spend half an hour filling in the paperwork for the sale of your apartment, with a loss of around 5% for fees and taxes. <<home_value1/100*95>> <b>₽</b> has been paid into your bank account.'
- home_owned[1] = 0
- ArendHouseSL = 0
- if bankaccount = 1:
- karta += home_value1/100*95
- else
- money += home_value1/100*95
- end
- delact 'Sell the city apartment'
- gs 'stat'
- end
- end
- if home_owned[3] = 1:
- !Communal cottage
- home_value3 = (home_value[3] + rand(-5000, 5000))
- 'We have found a buyer for your small communal cottage. They will offer <<home_value3>> <b>₽</b>, minus 5% for fees and taxes, bringing the total to <<home_value3/100*95>>'
- act 'Sell the holiday cottage':
- *clr
- '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
- '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo_paperwork.jpg"></center>'
- minut += 30
- 'You spend half an hour filling in the paperwork for the sale of your small cottage, with a loss of around 5% for fees and taxes. <<home_value3/100*95>> <b>₽</b> has been paid into your bank account.'
- home_owned[3] = 0
- if bankaccount = 1:
- karta += home_value3/100*95
- else
- money += home_value3/100*95
- end
- delact 'Sell the holiday cottage'
- gs 'stat'
- end
- end
- if home_owned[3] = 2:
- !Renovated communal cottage
- home_value3 = ((home_value[3] + 200000) + rand(-10000, 10000))
- 'We have found a buyer for your small renovated communal cottage. They will offer <<home_value3>> <b>₽</b>, minus 5% for fees and taxes, bringing the total to <<home_value3/100*95>>'
- act 'Sell the renovated cottage':
- *clr
- '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
- '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo_paperwork.jpg"></center>'
- minut += 30
- 'You spend half an hour filling in the paperwork for the sale of the renovated cottage, with a loss of 1around 5% for fees and taxes. <<home_value3/100*95>> <b>₽</b> has been paid into your bank account.'
- home_owned[3] = 0
- if bankaccount = 1:
- karta += home_value3/100*95
- else
- money += home_value3/100*95
- end
- delact 'Sell the renovated cottage'
- gs 'stat'
- end
- end
- if home_owned[5] = 1:
- !Suburban land only - currently too many variables for selling upgraded mansion - might do later - 3xpurt.
- home_value5 = (home_value[5] + rand(-50000, 50000))
- 'We have found a buyer for your vacant plot of land in the suburbs. They will offer <<home_value5>> <b>₽</b>, minus 5% for fees and taxes, bringing the total to <<home_value5/100*95>>'
- act 'Sell the vacant plot':
- *clr
- '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
- '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo_paperwork.jpg"></center>'
- minut += 30
- 'You spend half an hour filling in the paperwork for the vacant plot, with a loss of around 5% for fees and taxes. <<home_value5/100*95>> <b>₽</b> has been paid into your bank account.'
- home_owned[5] = 0
- if bankaccount = 1:
- karta += home_value5/100*95
- else
- money += home_value5/100*95
- end
- delact 'Sell the vacant plot'
- gs 'stat'
- end
- end
- if home_owned[5] = 2:
- !Suburban land only - currently too many variables for selling upgraded mansion - might do later - 3xpurt.
- 'Sorry, we are unable to find a buyer for your property at this time.'
- end
- if home_owned[5] = 3:
- !Suburban land only - currently too many variables for selling upgraded mansion - might do later - 3xpurt.
- 'Sorry, we are unable to find a buyer for your property at this time.'
- end
- if home_owned[1] = 0 and home_owned[3] = 0 and home_owned[4] = 0 and home_owned[5] = 0:
- 'You don''t currently own any property.'
- end
- act 'Return':gt'agentned', 'start'
- end
- if $ARGS[0] = 'rent':
- cla
- *clr
- '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
- '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo.jpg"></center>'
- *nl
- minut += 5
- gs 'stat'
- if home_owned[1] > 0 and home_owned[4] > 0:
- 'We currently have no properties for rent.'
- elseif home_owned[1] = 0 and home_owned[4] = 0:
- ''
- 'There are two properties available for rent.'
- *nl
- 'There is an apartment in the city residential area, and an apartment in Pushkin available'
- act 'View the city apartment details': gt 'agentned', 'rent_cityres'
- act 'View the Pushkin apartment details': gt 'agentned', 'rent_pushkin'
- elseif home_owned[1] = 0:
- 'There is a property for rent in the city residential area'
- act 'View the city apartment details': gt 'agentned', 'rent_cityres'
- elseif home_owned[4] = 0:
- 'There is a property for rent in the old town of Pushkin'
- act 'View the Pushkin apartment details': gt 'agentned', 'rent_pushkin'
- end
- act 'Return':gt'agentned', 'start'
- end
- if $ARGS[0] = 'rent_cityres':
- cla
- *clr
- gs 'housing', 'rent'
- '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
- '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo.jpg"></center>'
- *nl
- '“We have a flat available right now in the residential area of St. Petersburg.” The receptionist says as he starts pulling out the paperwork. “Rent is <<$home_rent_txt[1]>> ₽ and leases have to be renewed every 30 days, which can be taken automatically from your account or you can come in and pay directly. Last but not least, you have to make your first payment up front at signing.”'
- '<br>He pulls out a pen and slides the paperwork onto the counter. “Interested? We can get you moved in right away.”'
- if money >= home_rent[1]:
- act 'Agree and pay':
- cla
- *clr
- cls
- minut += 30
- money -= home_rent[1]
- home_owned[1] = 1
- ArendHouseSL += ArendHouseSL_due
- gs'stat'
- '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
- '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo_paperwork.jpg"></center>'
- *nl
- 'You take the pen and start filling out the paperwork. Half an hour later, you’re handing over the money and getting the keys to your new apartment.'
- act 'Return':gt'agentned', 'start'
- end
- else
- *nl
- 'You do not have enough money with you to rent this now.'
- end
- act 'Decline':
- cla
- *clr
- minut += 5
- '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
- '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo.jpg"></center>'
- *nl
- 'You shake your head, “Actually, I need more time to think about this.”'
- '<br>The receptionist seems a bit miffed, but says nothing as he grabs the paperwork and stuffs it back in a drawer.'
- act 'Return':gt'agentned', 'start'
- end
- end
- if $ARGS[0] = 'rent_pushkin':
- cla
- *clr
- gs 'housing', 'rent'
- '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
- '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo.jpg"></center>'
- *nl
- '“We have a small apartment available right now in Pushkin’s city center. It’s a little bit pricey, but it’s been recently renovated to be more modern, and it looks quite nice. You won’t find a place like that outside of Pushkin.” The receptionist says as he starts pulling out the paperwork. “Rent is <<$home_rent_txt[4]>> ₽ and leases have to be renewed every 30 days, which can be taken automatically from your account or you can come in and pay directly. Last but not least, you have to make your first payment up front at signing.”'
- '<br>He pulls out a pen and slides the paperwork onto the counter. “Interested? We can get you moved in right away.”'
- if money >= home_rent[4]:
- act 'Agree and pay':
- cla
- *clr
- minut += 30
- money -= home_rent[4]
- home_owned[4] = 1
- ArendHouseSL4 += ArendHouseSL_due
- gs'stat'
- '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
- '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo_paperwork.jpg"></center>'
- *nl
- 'You take the pen and start filling out the paperwork. An hour later, you’re handing over the money and getting the keys to your new apartment.'
- act 'Return':gt'agentned', 'start'
- end
- else
- *nl
- 'You do not have enough money with you to rent this now.'
- end
- act 'Decline':
- cla
- *clr
- minut += 5
- gs 'stat'
- '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
- '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo.jpg"></center>'
- *nl
- 'You shake your head, “Actually, I need more time to think about this.”'
- '<br>The receptionist seems a bit miffed, but says nothing as he grabs the paperwork and stuffs it back in a drawer.'
- act 'Return':gt'agentned', 'start'
- end
- end
- if $ARGS[0] = 'buy_cityres':
- cla
- *clr
- gs 'housing', 'sale'
- minut += 30
- karta -= home_value[1]
- home_owned[1] = 2
- gs'stat'
- '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
- '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo_paperwork.jpg"></center>'
- *nl
- 'You spend half an hour filling in the paperwork to buy an apartment in the residential area. <<$home_value_txt[1]>> <b>₽</b> has been removed from your bank account.'
- act 'Return':gt'agentned', 'start'
- end
- if $ARGS[0] = 'buy_dacha':
- cla
- *clr
- gs 'housing', 'sale'
- minut += 30
- karta -= home_value[3]
- home_owned[3] = 1
- etoexhib = 0
- gs'stat'
- '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
- '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo_paperwork.jpg"></center>'
- *nl
- 'You spend half an hour filling in the paperwork for the purchase of a cottage with a garden on the co-op 5km up the north road. <<$home_value_txt[3]>> <b>₽</b> has been removed from your bank account.'
- act 'Return':gt'agentned', 'start'
- end
- if $ARGS[0] = 'buy_Mansion':
- cla
- *clr
- gs 'housing', 'sale'
- minut += 30
- karta -= home_value[5]
- home_owned[5] = 1
- gs'stat'
- '<center><b><font color = maroon>Real Estate Agency</font></b></center>'
- '<center><img <<$set_imgh>> src="images/locations/city/citycenter/realestate/agenstvo_paperwork.jpg"></center>'
- *nl
- 'You spend half an hour filling in the paperwork for the purchase of a lot for building a mansion 1km up the north road. <<$home_value_txt[5]>> <b>₽</b> has been removed from your bank account.'
- act 'Return':gt'agentned', 'start'
- end
- --- agentned ---------------------------------
|