# autotraidF !2021/04/26 if $ARGS[0] = 'start': $loc_arg = $ARGS[0] $loc = 'autotraidF' $location_type = 'event' $menu_arg = 'start' $menu_loc = 'autotraidF' menu_off = 0 *clr & cla gs 'stat' '
Car Dealership
' '
> src="images/locations/city/industrial/UsedCar/autotraid.jpg">
' 'Upon entering the yard, you see a laminated piece of paper pinned to a wall near the entrance:' '- We only sell to people with valid driver''s licenses.' '- New State law: No sale if you already own a car.' if car > 0 and cardrive = 9:'Your <<$car>> is parked just inside.' act 'Leave': minut += 5 & gt 'city_industrial' if func('autotraidF', 'is_open'): if car > 0:act 'Ask about selling your car':gt 'autotraidF', 'manager1' act 'Look at the new cars for sale': gt 'autosalonF', 'start' act 'Look at the used cars for sale':gt 'autotraidF', 'car' end end if $ARGS[0] = 'is_open': RESULT = hour >= 9 and hour < 18 and week > 1 end if $ARGS[0] = 'manager1': $loc_arg = $ARGS[0] $loc = 'autotraidF' $menu_arg = 'manager1' $menu_loc = 'autotraidF' menu_off = 0 *clr & cla gs 'stat' '
Used Car Dealership
' '
> src="images/locations/city/industrial/UsedCar/autotraid.jpg">
' gs 'avb' act 'Leave': killvar 'bupay' & minut += 5 & gt 'city_industrial' if cardrive = 9 and car > 0: 'The shifty-looking salesman circles around your car a couple of times, making exaggerated displeased noises all the while and pointing out practically every speck of dust as if it is major damage. When he turns to you, he states that the best he can do is <> - while he claims that he''s taking a risk with that price, you''re pretty sure he''s ripping you off.' act 'No way, not at that price - Leave': killvar 'bupay' & minut += 5 & gt 'city_industrial' act 'Sell ​your car (<> ) (1:00)': cla menu_off = 1 minut += 60 money += bupay car = 0 'While you are almost certain that he''s offering less than the car is actually worth, you doubt that you''re going to find somebody who''s going to offer you more for it, and your attempts at haggling with the fence fall flat - he''s just too experienced at this.' 'So, as much as you hate it, you give your car one last look before you shake hands with him and follow him into the tiny shed he calls his "office" to sign the papers. He hands you the money in cash and, with a nasty grin, suggests that you look around the yard.' '"Maybe you''ll see something you like?"' act 'Leave': killvar 'bupay' & minut += 5 & gt 'city_industrial' end elseif cardrive ! 9: 'The salesman tells you, his smile sneering rather than friendly, that he needs to look at your car before he can tell you how much it''s worth. "If you want, I can have somebody tow it here. It only costs 3000 . Very cheap!"' if money >= 3000: act 'Pay for towing service to the car market (3,000 ) (1:00)': cla menu_off = 1 minut += 60 cardrive = 9 money -= 3000 'You give him the money - certain that he''s ripping you off - and wait for an hour until the tow truck finally drives into the yard, your car hooked up to the rear of it.' act 'Talk to the car salesman again': killvar 'bupay' & gt 'autotraidF', 'manager1' end end end end if $ARGS[0] = 'car': $loc_arg = $ARGS[0] $loc = 'autotraidF' $menu_arg = 'car' $menu_loc = 'autotraidF' menu_off = 0 *clr & cla minut += 5 carT = 0 gs 'stat' '
Used Car Dealership
' '
> src="images/locations/city/industrial/UsedCar/autotraid.jpg">
' 'There are so many cars on the parking lot that you could spend a lifetime looking around without ever seeing all of them. According to the salesman, several cars are currently being test-driven or maintained. You doubt that there''s actually any maintenance going on though: several of the cars are visibly damaged or make awful sounds when they are started.' *nl 'It''s obvious that most, if not all of them have sustained some visible or invisible damage. Buying a car here could be a fantastic bargain... or a complete waste of money. If you are to buy any of them, you know that the first place to visit should be a service center.' act 'Return': killvar 'carT' & killvar 'bupay' & gt 'autotraidF', 'start' if hour <= 17: if car = 0 or car > 199: !! this is a VERY crude fix for when car[] was created before car !! if we ever add cars with indices past 199 its gonna break killvar 'car' car = 0 end if used_car['1_condition'] ! -1 and used_car['1_price'] ! -1: act 'Inspect a 2107': gt 'autotraidF', 'inspect', '2107', 1, 200, 1, 3 if used_car['wrek_condition'] ! -1 and used_car['wrek_price'] ! -1: act 'Inspect another 2107 (Broken Engine)': cla *clr menu_off = 1 '
2107 (Broken engine)
' '
> src="images/pc/items/accessories/car/car.jpg">
' !! caching offers, resets on monday (via cikl) if used_car['wrek_condition'] = 0 and used_car['wrek_price'] = 0: used_car['wrek_condition'] = rand(10, 200) used_car['wrek_price'] = rand(10000, 50000) end 'The car is basically a wreck. It doesn''t even start. When you ask the salesman how much it costs, he tells you "<> " without hesitation.' act 'Look around some more':gt 'autotraidf', 'car' if car = 0 and prava = 1 and money >= used_car['wrek_price']: act 'Buy it for <>': cla money -= used_car['wrek_price'] $car = '2107' car = 1 benz = 3 cardrive = 9 car['new_condition'] = 200 car['current_condition'] = used_car['wrek_condition'] wrek = 1 'You agree and before you know it, the car salesman and you have signed all the necessary documents. You hand over the <> in cash, and the car is yours.' 'Since it''s crammed in between about a million other vehicles, the car salesman moves it outside near the yard''s entrance for you... and that''s it.' 'If you want to get the car to a garage, you''ll have to go there and have it towed.' used_car['wrek_condition'] = -1 used_car['wrek_price'] = -1 act 'Leave': minut += 5 & gt 'city_industrial' end end end end if used_car['2_condition'] ! -1 and used_car['2_price'] ! -1: act 'Inspect a VAZ 2115': gt 'autotraidF', 'inspect', 'VAZ 2115', 2, 300, 1, 3 if used_car['3_condition'] ! -1 and used_car['3_price'] ! -1: act 'Inspect a VAZ 2113': gt 'autotraidF', 'inspect', 'VAZ 2113', 3, 290, 1, 3 if used_car['4_condition'] ! -1 and used_car['4_price'] ! -1: act 'Inspect a VAZ 2114': gt 'autotraidF', 'inspect', 'VAZ 2114', 4, 300, 1, 3 if used_car['5_condition'] ! -1 and used_car['5_price'] ! -1: act 'Inspect a VAZ 2110': gt 'autotraidF', 'inspect', 'VAZ 2110', 5, 350, 1, 3 if used_car['11_condition'] ! -1 and used_car['11_price'] ! -1: act 'Inspect a GAZ 3102': gt 'autotraidF', 'inspect', 'GAZ 3102', 11, 1000, 2, 5 if used_car['12_condition'] ! -1 and used_car['12_price'] ! -1: act 'Inspect a GAZ 3110': gt 'autotraidF', 'inspect', 'GAZ 3110', 12, 800, 2, 5 end end if $ARGS[0] = 'inspect': cla *clr menu_off = 1 $autotraidF_carname = $ARGS[1] autotraidF_carnum = ARGS[2] !! max potential condition, used in 'avt' to generate actual condition and price car['potential_new_condition'] = ARGS[3] autotraidF_benz = ARGS[5] '
<<$autotraidF_carname>>
' '
> src="images/pc/items/accessories/car/car<>.jpg">
' !! caching offers, resets on monday (via cikl) if used_car['<>_condition'] = 0 and used_car['<>_price'] = 0: !! used in 'avt' as branching selector, affects price carT = ARGS[4] !! generates condition and price for the car gs 'avt' end '<<$used_car[''<>_condition'']>> The car salesman wants <>_price'']>> for it.' act 'Look around some more': killvar '$autotraidF_carname' killvar 'autotraidF_carnum' killvar 'autotraidF_benz' gt 'autotraidF', 'car' end if car = 0 and prava = 1 and money >= used_car['<>_price']: act 'Buy (<>_price'']>> )': cla money -= used_car['<>_price'] $car = $autotraidF_carname car = autotraidF_carnum !!benz means fuel benz = autotraidF_benz cardrive = 9 car['current_condition'] = used_car['<>_condition'] !! sets condition when new (ie max possible condition) car['new_condition'] = car['potential_new_condition'] wrek = 0 'You agree and before you know it, the car salesman and you have signed all the necessary documents. You hand over the <>_price'']>> in cash, and the car is yours.' 'Since it''s crammed in between about a million other vehicles, the car salesman moves it outside near the yard''s entrance for you and warns you that there is very little gas in the tank.' used_car['<>_condition'] = -1 used_car['<>_price'] = -1 gs 'shortgs', 'remove_array_element', 'car', 'potential_new_condition' gs 'shortgs', 'remove_array_element', '$used_car', '<>_condition' killvar '$autotraidF_carname' killvar 'autotraidF_carnum' killvar 'autotraidF_benz' act 'Leave': minut += 5 & gt 'city_industrial' end end end --- autotraidF ---------------------------------