375_zaprF 1.5 KB

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