Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.43 KB | None | 0 0
  1. /*
  2. File: fn_lavoroQuest.sqf
  3. Author: Ermen07
  4.  
  5. You're not allowed to use or edit this file without permission from the author!
  6. */
  7.  
  8. params [
  9. ["_item","",[""]],
  10. ["_value",0,[0]],
  11. ["_raccolto",false,[false]],
  12. ["_processato",false,[false]],
  13. ["_venduto",false,[false]]
  14. ];
  15.  
  16. if (_item isEqualTo "") exitWith {};
  17. if (_value isEqualTo 0) exitWith {};
  18.  
  19. if (isNil {profileNamespace getVariable ["LavoroWipe4",nil]}) then {profileNamespace setVariable ["LavoroWipe4",true]};
  20.  
  21. if (_raccolto) exitWith {
  22.  
  23. if (_item isEqualTo "pesche") exitWith {
  24. _value = (profileNamespace getVariable ["PescheRaccolte",0]) + _value;
  25. profileNamespace setVariable ["PescheRaccolte",_value];
  26. };
  27.  
  28. if (_item isEqualTo "arance") exitWith {
  29. _value = (profileNamespace getVariable ["AranceRaccolte",0]) + _value;
  30. profileNamespace setVariable ["AranceRaccolte",_value];
  31. };
  32.  
  33. // Agricoltore //
  34.  
  35. if (_item isEqualTo "orzo") exitWith {
  36. _value = (profileNamespace getVariable ["OrzoRaccolto",0]) + _value;
  37. profileNamespace setVariable ["OrzoRaccolto",_value];
  38. };
  39.  
  40. if (_item isEqualTo "tabacco") exitWith {
  41. _value = (profileNamespace getVariable ["TabaccoRaccolto",0]) + _value;
  42. profileNamespace setVariable ["TabaccoRaccolto",_value];
  43. };
  44.  
  45. // Allevatore //
  46.  
  47. if (_item isEqualTo "coniglio") exitWith {
  48. _value = (profileNamespace getVariable ["ConigliRaccolti",0]) + _value;
  49. profileNamespace setVariable ["ConigliRaccolti",_value];
  50. };
  51.  
  52. // Pescatore //
  53.  
  54. if (_item isEqualTo "alghe") exitWith {
  55. _value = (profileNamespace getVariable ["AlgheRaccolte",0]) + _value;
  56. profileNamespace setVariable ["AlgheRaccolte",_value];
  57. };
  58. };
  59.  
  60. // Processato //
  61.  
  62. if (_processato) exitWith {
  63.  
  64. // Agricoltore //
  65.  
  66. if (_item isEqualTo "farina") exitWith {
  67. _value = (profileNamespace getVariable ["GranoProcessato",0]) + _value;
  68. profileNamespace setVariable ["GranoProcessato",_value];
  69. };
  70.  
  71. if (_item isEqualTo "orzomacinato") exitWith {
  72. _value = (profileNamespace getVariable ["OrzoProcessato",0]) + _value;
  73. profileNamespace setVariable ["OrzoProcessato",_value];
  74. };
  75.  
  76. if (_item isEqualTo "popcorn") exitWith {
  77. _value = (profileNamespace getVariable ["MaisProcessato",0]) + _value;
  78. profileNamespace setVariable ["MaisProcessato",_value];
  79. };
  80.  
  81. if (_item isEqualTo "sigarette") exitWith {
  82. _value = (profileNamespace getVariable ["TabaccoProcessato",0]) + _value;
  83. profileNamespace setVariable ["TabaccoProcessato",_value];
  84. };
  85.  
  86. // Allevatore //
  87.  
  88. if (_item isEqualTo "formaggio") exitWith {
  89. _value = (profileNamespace getVariable ["LatteProcessato",0]) + _value;
  90. profileNamespace setVariable ["LatteProcessato",_value];
  91. };
  92.  
  93. if (_item isEqualTo "tessutidilana") exitWith {
  94. _value = (profileNamespace getVariable ["LanaProcessata",0]) + _value;
  95. profileNamespace setVariable ["LanaProcessata",_value];
  96. };
  97. };
  98.  
  99. // Venduto //
  100.  
  101. if (_venduto) exitWith {
  102.  
  103. // Agricoltore //
  104.  
  105. if (_item isEqualTo "orzomacinato") exitWith {
  106. _value = (profileNamespace getVariable ["OrzoMacinatoVenduto",0]) + _value;
  107. profileNamespace setVariable ["OrzoMacinatoVenduto",_value];
  108. };
  109.  
  110. if (_item isEqualTo "farina") exitWith {
  111. _value = (profileNamespace getVariable ["FarinaVenduta",0]) + _value;
  112. profileNamespace setVariable ["FarinaVenduta",_value];
  113. };
  114.  
  115. if (_item isEqualTo "popcorn") exitWith {
  116. _value = (profileNamespace getVariable ["PopcornVenduti",0]) + _value;
  117. profileNamespace setVariable ["PopcornVenduti",_value];
  118. };
  119.  
  120. if (_item isEqualTo "sigarette") exitWith {
  121. _value = (profileNamespace getVariable ["SigaretteVendute",0]) + _value;
  122. profileNamespace setVariable ["SigaretteVendute",_value];
  123. };
  124.  
  125. if (_item isEqualTo "ecstasy") exitWith {
  126. _value = (profileNamespace getVariable ["EcstasyVenduto",0]) + _value;
  127. profileNamespace setVariable ["EcstasyVenduto",_value];
  128. };
  129.  
  130. if (_item isEqualTo "lsd") exitWith {
  131. _value = (profileNamespace getVariable ["LsdVenduta",0]) + _value;
  132. profileNamespace setVariable ["LsdVenduta",_value];
  133. };
  134.  
  135. // Allevatore //
  136.  
  137. if (_item isEqualTo "formaggio") exitWith {
  138. _value = (profileNamespace getVariable ["FormaggioVenduto",0]) + _value;
  139. profileNamespace setVariable ["FormaggioVenduto",_value];
  140. };
  141.  
  142. if (_item isEqualTo "tessutidilana") exitWith {
  143. _value = (profileNamespace getVariable ["TessutidiLanaVenduti",0]) + _value;
  144. profileNamespace setVariable ["TessutidiLanaVenduti",_value];
  145. };
  146.  
  147. if (_item isEqualTo "tessutidiseta") exitWith {
  148. _value = (profileNamespace getVariable ["TessutidiSetaVenduti",0]) + _value;
  149. profileNamespace setVariable ["TessutidiSetaVenduti",_value];
  150. };
  151.  
  152. // Pescatore //
  153.  
  154. if (_item isEqualTo "alghe") exitWith {
  155. _value = (profileNamespace getVariable ["AlgheVendute",0]) + _value;
  156. profileNamespace setVariable ["AlgheVendute",_value];
  157. };
  158.  
  159. if (_item in ["salmone","orata","sgombro","tonno","triglia","squalo"]) exitWith {
  160. _value = (profileNamespace getVariable ["PesciVenduti",0]) + _value;
  161. profileNamespace setVariable ["PesciVenduti",_value];
  162. };
  163.  
  164. if (_item isEqualTo "coralli") exitWith {
  165. _value = (profileNamespace getVariable ["CoralliVenduti",0]) + _value;
  166. profileNamespace setVariable ["CoralliVenduti",_value];
  167. };
  168.  
  169. if (_item isEqualTo "perle") exitWith {
  170. _value = (profileNamespace getVariable ["PerleVendute",0]) + _value;
  171. profileNamespace setVariable ["PerleVendute",_value];
  172. };
  173.  
  174. // Minatore //
  175.  
  176. if (_item isEqualTo "carbone") exitWith {
  177. _value = (profileNamespace getVariable ["CarboneVenduto",0]) + _value;
  178. profileNamespace setVariable ["CarboneVenduto",_value];
  179. };
  180.  
  181. if (_item isEqualTo "zolfo") exitWith {
  182. _value = (profileNamespace getVariable ["ZolfoVenduto",0]) + _value;
  183. profileNamespace setVariable ["ZolfoVenduto",_value];
  184. };
  185.  
  186. if (_item isEqualTo "alluminio") exitWith {
  187. _value = (profileNamespace getVariable ["AlluminioVenduto",0]) + _value;
  188. profileNamespace setVariable ["AlluminioVenduto",_value];
  189. };
  190.  
  191. if (_item isEqualTo "ferro") exitWith {
  192. _value = (profileNamespace getVariable ["FerroVenduto",0]) + _value;
  193. profileNamespace setVariable ["FerroVenduto",_value];
  194. };
  195.  
  196. if (_item isEqualTo "rame") exitWith {
  197. _value = (profileNamespace getVariable ["RameVenduto",0]) + _value;
  198. profileNamespace setVariable ["RameVenduto",_value];
  199. };
  200.  
  201. if (_item isEqualTo "uranio") exitWith {
  202. _value = (profileNamespace getVariable ["UranioVenduto",0]) + _value;
  203. profileNamespace setVariable ["UranioVenduto",_value];
  204. };
  205. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement