zaprF 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # zaprF
  2. if $ARGS[0] = 'start':
  3. cla
  4. *clr
  5. gs 'stat'
  6. set minut += 5
  7. clr
  8. $metka = $ARGS[0]
  9. $loc = $CURLOC
  10. '<center><b>Gas Station</b></center>'
  11. '<center><img src="images/etogame/zapr.jpg"></center>'
  12. 'Announcement, in connection with the features of the device gas stations, all cars to refuel a full tank.'
  13. 'Cost of 1 liter of petrol 30 rubles.'
  14. if car > 0:
  15. if cardrive = 6 or cardrive = 21:'On refueling costs your <a href="exec:GS ''carF'', ''start''"><<$car>></a>.'
  16. end
  17. set zprbenz = 40 - benz
  18. if benz < 40 and car > 0 and cardrive = 6 or benz < 40 and car > 0 and cardrive = 21:
  19. set zprbenz = 40 - benz
  20. if zprbenz * 30 <= money:
  21. act 'Fill petrol':
  22. cla
  23. *clr
  24. set benz = 40
  25. set zprpay = zprbenz * 30
  26. set money -= zprpay
  27. '<center><b>Gas Station</b></center>'
  28. if pol > 0:'<center><img src="images/etogame/zapr1.jpg"></center>'
  29. 'You have filled a full tank and paid <<zprpay>> rubles.'
  30. act 'Remove gun':gt 'zaprF', 'start'
  31. end
  32. else
  33. 'You do not have enough money at the gas station.'
  34. end
  35. end
  36. if car > 0:
  37. act 'Buy a canister of gasoline with up to 5 liters of 150 rubles':
  38. cla
  39. set kanistra += 1
  40. set money -= 150
  41. 'You bought a canister of gasoline. (It is automatically added to the trunk)'
  42. act 'Remove gun':gt 'zaprF', 'start'
  43. end
  44. end
  45. act 'Leave':
  46. if cardrive = 6:
  47. gt 'nord'
  48. elseif cardrive = 21:
  49. gt 'gorodok'
  50. elseif litltown = 0:
  51. gt 'nord'
  52. elseif litltown = 1:
  53. gt 'gorodok'
  54. end
  55. end
  56. end
  57. --- zaprF ---------------------------------