pirsingsalon.qsrc 51 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857
  1. # pirsingsalon
  2. !! Piercings variables:
  3. !! pcs_piercings[location]: Which piercing is worn at position X
  4. !! locations:
  5. !! 'ears'
  6. !! 'nose'
  7. !! 'brow'
  8. !! 'lip'
  9. !! 'tongue'
  10. !! 'navel'
  11. !! 'nipples'
  12. !! 'pussy'
  13. !! pcs_piercings[location] < 0: the body is pieced at location but no piercing is currently worn there
  14. if $ARGS[0] = 'count':
  15. !!Counting the tattoos and piercings just in case
  16. gs 'tattoo_management', 'count'
  17. gs 'piercing_management', 'count'
  18. exit
  19. end
  20. if $ARGS[0] = 'start':
  21. menu_off = 0
  22. $location_type = 'indoors'
  23. gs 'shortgs', 'setloc', 'pirsingsalon', 'start'
  24. gs 'stat'
  25. gs 'themes', 'indoors'
  26. '<center><b>Tattoo & Piercing Salon</b></center>'
  27. '<center><img src="images/locations/city/industrial/salon/pirsingstudia.jpg"></center>'
  28. 'Small studio with just one artist doing the tattoos and piercings.'
  29. act 'Leave':
  30. minut += 5
  31. gs 'pirsingsalon', 'count'
  32. gt 'city_industrial'
  33. end
  34. if hour < 12 or hour > 20:
  35. *nl
  36. 'Shop is closing and you are asked to leave.'
  37. exit
  38. end
  39. $temp_table = '<center><table border=1>'
  40. $temp_table += '<tr>'
  41. $temp_table += '<th>'
  42. $temp_table += 'View tattoos'
  43. $temp_table += '</th>'
  44. $temp_table += '<th>'
  45. $temp_table += 'View tattoos'
  46. $temp_table += '</th>'
  47. $temp_table += '<th>'
  48. $temp_table += 'View piercings'
  49. $temp_table += '</th>'
  50. $temp_table += '</tr>'
  51. $temp_table += '<tr>'
  52. $temp_table += '<td>'
  53. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''tattoo_hand''">Hand - 7,000 <b>₽</b></a>'
  54. $temp_table += '</td>'
  55. $temp_table += '<td>'
  56. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''tattoo_lip''">Lip - 5,000 <b>₽</b></a>'
  57. $temp_table += '</td>'
  58. $temp_table += '<td>'
  59. if pcs_piercings['ears'] = 0:
  60. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''piercing_ears''">Ear - 3,000 <b>₽</b></a>'
  61. else
  62. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''piercing_ears''">Ear - 1,000 <b>₽</b></a>'
  63. end
  64. $temp_table += '</td>'
  65. $temp_table += '</tr>'
  66. $temp_table += '<tr>'
  67. $temp_table += '<td>'
  68. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''tattoo_wrist''">Wrist - 7,000 <b>₽</b></a>'
  69. $temp_table += '</td>'
  70. $temp_table += '<td>'
  71. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''tattoo_belly''">Belly - 10,000 <b>₽</b></a>'
  72. $temp_table += '</td>'
  73. $temp_table += '<td>'
  74. if pcs_piercings['nose'] = 0:
  75. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''piercing_nose''">Nose - 5,000 <b>₽</b></a>'
  76. else
  77. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''piercing_nose''">Nose - 2,000 <b>₽</b></a>'
  78. end
  79. $temp_table += '</td>'
  80. $temp_table += '</tr>'
  81. $temp_table += '<tr>'
  82. $temp_table += '<td>'
  83. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''tattoo_ankle''">Ankle - 8,000 <b>₽</b></a>'
  84. $temp_table += '</td>'
  85. $temp_table += '<td>'
  86. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''tattoo_ass''">Ass - 10,000 <b>₽</b></a>'
  87. $temp_table += '</td>'
  88. $temp_table += '<td>'
  89. if pcs_piercings['brow'] = 0:
  90. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''piercing_brow''">Eyebrow - 5,000 <b>₽</b></a>'
  91. else
  92. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''piercing_brow''">Eyebrow - 2,000 <b>₽</b></a>'
  93. end
  94. $temp_table += '</td>'
  95. $temp_table += '</tr>'
  96. $temp_table += '<tr>'
  97. $temp_table += '<td>'
  98. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''tattoo_arm''">Arm - 8,000 <b>₽</b></a>'
  99. $temp_table += '</td>'
  100. $temp_table += '<td>'
  101. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''tattoo_face''">Face - 10,000 <b>₽</b></a>'
  102. $temp_table += '</td>'
  103. $temp_table += '<td>'
  104. if pcs_piercings['lip'] = 0:
  105. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''piercing_lip''">Lip - 6,000 <b>₽</b></a>'
  106. else
  107. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''piercing_lip''">Lip - 3,000 <b>₽</b></a>'
  108. end
  109. $temp_table += '</td>'
  110. $temp_table += '</tr>'
  111. $temp_table += '<tr>'
  112. $temp_table += '<td>'
  113. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''tattoo_shoulder''">Shoulder - 8,000 <b>₽</b></a>'
  114. $temp_table += '</td>'
  115. $temp_table += '<td>'
  116. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''tattoo_chest''">Chest - 12000 <b>₽</b></a>'
  117. $temp_table += '</td>'
  118. $temp_table += '<td>'
  119. if pcs_piercings['tongue'] = 0:
  120. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''piercing_tongue''">Tongue - 7,000 <b>₽</b></a>'
  121. else
  122. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''piercing_tongue''">Tongue - 4,000 <b>₽</b></a>'
  123. end
  124. $temp_table += '</td>'
  125. $temp_table += '</tr>'
  126. $temp_table += '<tr>'
  127. $temp_table += '<td>'
  128. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''tattoo_neck''">Neck - 8,000 <b>₽</b></a>'
  129. $temp_table += '</td>'
  130. $temp_table += '<td>'
  131. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''tattoo_tramp''">Tramp stamp - 12,000 <b>₽</b></a>'
  132. $temp_table += '</td>'
  133. $temp_table += '<td>'
  134. if pcs_piercings['navel'] = 0:
  135. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''piercing_navel''">Navel - 8,000 <b>₽</b></a>'
  136. else
  137. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''piercing_navel''">Navel - 5,000 <b>₽</b></a>'
  138. end
  139. $temp_table += '</td>'
  140. $temp_table += '</tr>'
  141. $temp_table += '<tr>'
  142. $temp_table += '<td>'
  143. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''tattoo_back''">Back - 10,000 <b>₽</b></a>'
  144. $temp_table += '</td>'
  145. $temp_table += '<td>'
  146. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''tattoo_under''">Under breast - 12,000 <b>₽</b></a>'
  147. $temp_table += '</td>'
  148. $temp_table += '<td>'
  149. if pcs_piercings['nipples'] = 0:
  150. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''piercing_nipples''">Nipple - 10,000 <b>₽</b></a>'
  151. else
  152. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''piercing_nipples''">Nipple - 6,000 <b>₽</b></a>'
  153. end
  154. $temp_table += '</td>'
  155. $temp_table += '</tr>'
  156. $temp_table += '<tr>'
  157. $temp_table += '<td>'
  158. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''tattoo_leg''">Legs - 10,000 <b>₽</b></a>'
  159. $temp_table += '</td>'
  160. $temp_table += '<td>'
  161. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''tattoo_breast''">Breasts - 15,000 <b>₽</b></a>'
  162. $temp_table += '</td>'
  163. $temp_table += '<td>'
  164. if pcs_piercings['pussy'] = 0:
  165. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''piercing_pussy''">Pussy - 25,000 <b>₽</b></a>'
  166. else
  167. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''piercing_pussy''">Pussy - 10,000 <b>₽</b></a>'
  168. end
  169. $temp_table += '</td>'
  170. $temp_table += '</tr>'
  171. $temp_table += '<tr>'
  172. $temp_table += '<td>'
  173. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''tattoo_side''">Side - 12,000 <b>₽</b></a>'
  174. $temp_table += '</td>'
  175. $temp_table += '<td>'
  176. $temp_table += '<a href="exec: gt ''pirsingsalon'', ''tattoo_pussy''">Pubic - 20,000 <b>₽</b></a>'
  177. $temp_table += '</td>'
  178. $temp_table += '<td>'
  179. $temp_table += '</td>'
  180. $temp_table += '</tr>'
  181. $temp_table += '</table></center>'
  182. '<<$temp_table>>'
  183. killvar '$temp_table'
  184. end
  185. !!========================================================================!!
  186. !! !!
  187. !! PIERCINGS !!
  188. !! !!
  189. !!========================================================================!!
  190. !!----- Ears --------------------------------------------------
  191. if $ARGS[0] = 'piercing_ears':
  192. menu_off = 1
  193. gs 'stat'
  194. ps_total = func('piercing_management', 'totals', 'ears')
  195. ps_i = 1
  196. :loopears_pir
  197. *p '<a href="exec:gt ''pirsingsalon'', ''piercing_ears2'', <<ps_i>>"><img height="250" src="<<func(''piercing_management'', ''ears_image'', ps_i)>>"></a>'
  198. ps_i += 1
  199. if ps_i <= ps_total: jump 'loopears_pir'
  200. act 'Return': gt 'pirsingsalon', 'start'
  201. end
  202. if $ARGS[0] = 'piercing_ears2':
  203. '<center><img src="<<func(''piercing_management'', ''ears_image'', ARGS[1])>>"></center>'
  204. if pcs_piercings['ears_<<ARGS[1]>>_owned'] = 1:
  205. 'You already own this piercing.'
  206. act 'Return': gt 'pirsingsalon', 'piercing_ears'
  207. elseif pcs_piercings['ears'] = 0:
  208. if max(money, karta) < 3000:
  209. 'You cannot afford to get your ears pierced with this piercing.'
  210. else
  211. if money >= 3000:
  212. dynamic "
  213. act 'Get your ears pierced with these earrings for 3,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'piercing_ears3', <<ARGS[1]>>, 'money'
  214. "
  215. end
  216. if karta >= 3000:
  217. dynamic "
  218. act 'Get your ears pierced with these earrings for 3,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'piercing_ears3', <<ARGS[1]>>, 'karta'
  219. "
  220. end
  221. end
  222. else
  223. if max(money, karta) < 1000:
  224. 'You don''t have enough money for this piercing.'
  225. else
  226. if money >= 1000:
  227. dynamic "
  228. act 'Buy this piercing for 1,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'piercing_ears3', <<ARGS[1]>>, 'money'
  229. "
  230. end
  231. if karta >= 1000:
  232. dynamic "
  233. act 'Buy this piercing for 1,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'piercing_ears3', <<ARGS[1]>>, 'karta'
  234. "
  235. end
  236. end
  237. end
  238. act 'Return': gt 'pirsingsalon', 'piercing_ears'
  239. end
  240. if $ARGS[0] = 'piercing_ears3':
  241. if pcs_piercings['ears'] = 0:
  242. *clr
  243. minut += 30
  244. if $ARGS[2] = 'money': money -= 2000 else karta -= 2000
  245. '<center><img src="<<func(''piercing_management'', ''ears_image'', ARGS[1])>>"></center>'
  246. 'The tattooist disinfects the area, pierces your ears and inserts your chosen earrings.'
  247. gs 'pain', 1, 'ears', 'pierce'
  248. else
  249. 'You buy the piercing.'
  250. end
  251. if $ARGS[2] = 'money': money -= 1000 else karta -= 1000
  252. gs 'piercing_management', 'add', 'ears', ARGS[1]
  253. gs 'stat'
  254. act 'Return': gt 'pirsingsalon', 'start'
  255. end
  256. !!----- Nose --------------------------------------------------
  257. if $ARGS[0] = 'piercing_nose':
  258. menu_off = 1
  259. gs 'stat'
  260. ps_total = func('piercing_management', 'totals', 'nose')
  261. ps_i = 1
  262. :loopnose_pir
  263. *p '<a href="exec: gt ''pirsingsalon'', ''piercing_nose2'', <<ps_i>>"><img height="250" src="<<func(''piercing_management'', ''nose_image'', ps_i)>>"></a>'
  264. ps_i += 1
  265. if ps_i <= ps_total: jump 'loopnose_pir'
  266. act 'Return':gt 'pirsingsalon', 'start'
  267. end
  268. if $ARGS[0] = 'piercing_nose2':
  269. '<center><img src="<<func(''piercing_management'', ''nose_image'', ARGS[1])>>"></center>'
  270. if pcs_piercings['nose_<<ARGS[1]>>_owned'] = 1:
  271. 'You already own this piercing.'
  272. act 'Return': gt 'pirsingsalon', 'piercing_nose'
  273. elseif pcs_piercings['nose'] = 0:
  274. if max(money, karta) < 5000:
  275. 'You cannot afford to get your nose pierced with this piercing.'
  276. else
  277. if money >= 5000:
  278. dynamic "
  279. act 'Get your nose pierced with these earrings for 5,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'piercing_nose3', <<ARGS[1]>>, 'money'
  280. "
  281. end
  282. if karta >= 5000:
  283. dynamic "
  284. act 'Get your nose pierced with these earrings for 5,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'piercing_nose3', <<ARGS[1]>>, 'karta'
  285. "
  286. end
  287. end
  288. else
  289. if max(money, karta) < 2000:
  290. 'You don''t have enough money for this piercing.'
  291. else
  292. if money >= 2000:
  293. dynamic "
  294. act 'Buy this piercing for 2,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'piercing_nose3', <<ARGS[1]>>, 'money'
  295. "
  296. end
  297. if karta >= 2000:
  298. dynamic "
  299. act 'Buy this piercing for 2,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'piercing_nose3', <<ARGS[1]>>, 'karta'
  300. "
  301. end
  302. end
  303. end
  304. act 'Return': gt 'pirsingsalon', 'piercing_nose'
  305. end
  306. if $ARGS[0] = 'piercing_nose3':
  307. if pcs_piercings['nose'] = 0:
  308. *clr
  309. minut += 30
  310. if $ARGS[2] = 'money': money -= 3000 else karta -= 3000
  311. '<center><img src="<<func(''piercing_management'', ''nose_image'', ARGS[1])>>"></center>'
  312. 'The tattooist disinfects the area, pierces your nose and inserts your chosen piercing.'
  313. gs 'pain', 2, 'nose', 'pierce'
  314. else
  315. 'You buy the piercing.'
  316. end
  317. if $ARGS[2] = 'money': money -= 2000 else karta -= 2000
  318. gs 'piercing_management', 'add', 'nose', ARGS[1]
  319. gs 'stat'
  320. act 'Return': gt 'pirsingsalon', 'start'
  321. end
  322. !!----- Brow --------------------------------------------------
  323. if $ARGS[0] = 'piercing_brow':
  324. menu_off = 1
  325. gs 'stat'
  326. ps_total = func('piercing_management', 'totals', 'brow')
  327. ps_i = 1
  328. :loopbrow_pir
  329. *p '<a href="exec: gt ''pirsingsalon'', ''piercing_brow2'', <<ps_i>>"><img height="250" src="<<func(''piercing_management'', ''brow_image'', ps_i)>>"></a>'
  330. ps_i += 1
  331. if ps_i <= ps_total: jump 'loopbrow_pir'
  332. act 'Return': gt 'pirsingsalon', 'start'
  333. end
  334. if $ARGS[0] = 'piercing_brow2':
  335. '<center><img src="<<func(''piercing_management'', ''brow_image'', ARGS[1])>>"></center>'
  336. if pcs_piercings['brow_<<ARGS[1]>>_owned'] = 1:
  337. 'You already own this piercing.'
  338. act 'Return': gt 'pirsingsalon', 'piercing_brow'
  339. elseif pcs_piercings['brow'] = 0:
  340. if max(money, karta) < 5000:
  341. 'You cannot afford to get your brow pierced with this piercing.'
  342. else
  343. if money >= 5000:
  344. dynamic "
  345. act 'Get your brow pierced with these earrings for 5,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'piercing_brow3', <<ARGS[1]>>, 'money'
  346. "
  347. end
  348. if karta >= 5000:
  349. dynamic "
  350. act 'Get your brow pierced with these earrings for 5,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'piercing_brow3', <<ARGS[1]>>, 'karta'
  351. "
  352. end
  353. end
  354. else
  355. if max(money, karta) < 2000:
  356. 'You don''t have enough money for this piercing.'
  357. else
  358. if money >= 2000:
  359. dynamic "
  360. act 'Buy this piercing for 2,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'piercing_brow3', <<ARGS[1]>>, 'money'
  361. "
  362. end
  363. if karta >= 2000:
  364. dynamic "
  365. act 'Buy this piercing for 2,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'piercing_brow3', <<ARGS[1]>>, 'karta'
  366. "
  367. end
  368. end
  369. end
  370. act 'Return':gt 'pirsingsalon', 'piercing_brow'
  371. end
  372. if $ARGS[0] = 'piercing_brow3':
  373. if pcs_piercings['brow'] = 0:
  374. *clr
  375. minut += 30
  376. if $ARGS[2] = 'money': money -= 3000 else karta -= 3000
  377. '<center><img src="<<func(''piercing_management'', ''brow_image'', ARGS[1])>>"></center>'
  378. 'The tattooist disinfects the area, pierces your brow and inserts your chosen piercing.'
  379. gs 'pain', 3, 'eyebrows', 'pierce'
  380. else
  381. 'You buy the piercing.'
  382. end
  383. if $ARGS[2] = 'money': money -= 2000 else karta -= 2000
  384. gs 'piercing_management', 'add', 'brow', ARGS[1]
  385. gs 'stat'
  386. act 'Return': gt 'pirsingsalon', 'start'
  387. end
  388. !!----- Lip --------------------------------------------------
  389. if $ARGS[0] = 'piercing_lip':
  390. menu_off = 1
  391. gs 'stat'
  392. ps_total = func('piercing_management', 'totals', 'lip')
  393. ps_i = 1
  394. :looplip_pir
  395. *p '<a href="exec: gt ''pirsingsalon'', ''piercing_lip2'', <<ps_i>>"><img height="250" src="<<func(''piercing_management'', ''lip_image'', ps_i)>>"></a>'
  396. ps_i += 1
  397. if ps_i <= ps_total: jump 'looplip_pir'
  398. act 'Return': gt 'pirsingsalon', 'start'
  399. end
  400. if $ARGS[0] = 'piercing_lip2':
  401. '<center><img src="<<func(''piercing_management'', ''lip_image'', ARGS[1])>>"></center>'
  402. if pcs_piercings['lip_<<ARGS[1]>>_owned'] = 1:
  403. 'You already own this piercing.'
  404. act 'Return': gt 'pirsingsalon', 'piercing_lip'
  405. elseif pcs_piercings['lip'] = 0:
  406. if max(money, karta) < 6000:
  407. 'You cannot afford to get your lip pierced with this piercing.'
  408. else
  409. if money >= 6000:
  410. dynamic "
  411. act 'Get your lip pierced with this piercing for 6,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'piercing_lip3', <<ARGS[1]>>, 'money'
  412. "
  413. end
  414. if karta >= 6000:
  415. dynamic "
  416. act 'Get your lip pierced with this piercing for 6,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'piercing_lip3', <<ARGS[1]>>, 'karta'
  417. "
  418. end
  419. end
  420. else
  421. if max(money, karta) < 3000:
  422. 'You don''t have enough money for this piercing.'
  423. else
  424. if money >= 3000:
  425. dynamic "
  426. act 'Buy this piercing for 3,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'piercing_lip3', <<ARGS[1]>>, 'money'
  427. "
  428. end
  429. if karta >= 3000:
  430. dynamic "
  431. act 'Buy this piercing for 3,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'piercing_lip3', <<ARGS[1]>>, 'karta'
  432. "
  433. end
  434. end
  435. end
  436. act 'Return': gt 'pirsingsalon', 'piercing_lip'
  437. end
  438. if $ARGS[0] = 'piercing_lip3':
  439. if pcs_piercings['lip'] = 0:
  440. *clr
  441. minut += 30
  442. if $ARGS[2] = 'money': money -= 3000 else karta -= 3000
  443. '<center><img src="images/locations/city/industrial/salon/pirsing2.jpg"></center>'
  444. 'The tattooist disinfects the area, pierces your lip and inserts your chosen piercing.'
  445. gs 'pain', 2, 'lips', 'pierce'
  446. else
  447. 'You buy the piercing.'
  448. end
  449. if $ARGS[2] = 'money': money -= 3000 else karta -= 3000
  450. gs 'piercing_management', 'lip', 'ears', ARGS[1]
  451. gs 'stat'
  452. act 'Return': gt 'pirsingsalon', 'start'
  453. end
  454. !!----- Tongue --------------------------------------------------
  455. if $ARGS[0] = 'piercing_tongue':
  456. menu_off = 1
  457. gs 'stat'
  458. ps_total = func('piercing_management', 'totals', 'tongue')
  459. ps_i = 1
  460. :looptongue_pir
  461. *pl '<a href="exec: gt ''pirsingsalon'', ''piercing_tongue2'', <<ps_i>>"><img height="250" src="<<func(''piercing_management'', ''tongue_image'', ps_i)>>"></a>'
  462. ps_i += 1
  463. if ps_i <= ps_total: jump 'looptongue_pir'
  464. act 'Return': gt 'pirsingsalon', 'start'
  465. end
  466. if $ARGS[0] = 'piercing_tongue2':
  467. menu_off = 1
  468. gs 'stat'
  469. '<center><img src="<<func(''piercing_management'', ''tongue_image'', ARGS[1])>>"></center>'
  470. if pcs_piercings['tongue_<<ARGS[1]>>_owned'] = 1:
  471. 'You already own this piercing.'
  472. act 'Return': gt 'pirsingsalon', 'piercing_tongue'
  473. elseif pcs_piercings['tongue'] = 0:
  474. if max(money, karta) < 7000:
  475. 'You cannot afford to get your tongue pierced with this piercing.'
  476. else
  477. if money >= 7000:
  478. dynamic "
  479. act 'Get your tongue pierced with this piercing for 7,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'piercing_tongue3', <<ARGS[1]>>, 'money'
  480. "
  481. end
  482. if karta >= 7000:
  483. dynamic "
  484. act 'Get your tongue pierced with this piercing for 7,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'piercing_tongue3', <<ARGS[1]>>, 'karta'
  485. "
  486. end
  487. end
  488. else
  489. if max(money, karta) < 4000:
  490. 'You don''t have enough money for this piercing.'
  491. else
  492. if money >= 4000:
  493. dynamic "
  494. act 'Buy this piercing for 4,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'piercing_tongue3', <<ARGS[1]>>, 'money'
  495. "
  496. end
  497. if karta >= 4000:
  498. dynamic "
  499. act 'Buy this piercing for 4,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'piercing_tongue3', <<ARGS[1]>>, 'karta'
  500. "
  501. end
  502. end
  503. end
  504. act 'Return': gt 'pirsingsalon', 'piercing_tongue'
  505. end
  506. if $ARGS[0] = 'piercing_tongue3':
  507. if pcs_piercings['tongue'] = 0:
  508. *clr
  509. minut += 30
  510. if $ARGS[2] = 'money': money -= 3000 else karta -= 3000
  511. '<center><img src="images/locations/city/industrial/salon/pirsing.jpg"></center>'
  512. 'The tattooist disinfects the area, pierces your tongue and inserts your chosen piercing.'
  513. gs 'pain', 5, 'tongue', 'pierce'
  514. else
  515. 'You buy the piercing.'
  516. end
  517. if $ARGS[2] = 'money': money -= 4000 else karta -= 4000
  518. gs 'piercing_management', 'add', 'tongue', ARGS[1]
  519. gs 'stat'
  520. act 'Return': gt 'pirsingsalon', 'start'
  521. end
  522. !!----- Navel --------------------------------------------------
  523. if $ARGS[0] = 'piercing_navel':
  524. menu_off = 1
  525. gs 'stat'
  526. ps_total = func('piercing_management', 'totals', 'navel')
  527. ps_i = 1
  528. :loopbelly_pir
  529. *p '<a href="exec: gt ''pirsingsalon'', ''piercing_navel2'', <<ps_i>>"><img height="250" src="<<func(''piercing_management'', ''navel_image'', ps_i)>>"></a>'
  530. ps_i += 1
  531. if ps_i <= ps_total: jump 'loopbelly_pir'
  532. act 'Return': gt 'pirsingsalon', 'start'
  533. end
  534. if $ARGS[0] = 'piercing_navel2':
  535. '<center><img src="<<func(''piercing_management'', ''navel_image'', ARGS[1])>>"></center>'
  536. if pcs_piercings['navel_<<ARGS[1]>>_owned'] = 1:
  537. 'You already own this piercing.'
  538. act 'Return': gt 'pirsingsalon', 'piercing_brow'
  539. elseif pcs_piercings['navel'] = 0:
  540. if max(money, karta) < 8000:
  541. 'You cannot afford to get your belly button pierced with this piercing.'
  542. else
  543. if money >= 8000:
  544. dynamic "
  545. act 'Get your belly button pierced with these earrings for 8,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'piercing_navel3', <<ARGS[1]>>, 'money'
  546. "
  547. end
  548. if karta >= 8000:
  549. dynamic "
  550. act 'Get your belly button pierced with these earrings for 8,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'piercing_navel3', <<ARGS[1]>>, 'karta'
  551. "
  552. end
  553. end
  554. else
  555. if max(money, karta) < 5000:
  556. 'You don''t have enough money for this piercing.'
  557. else
  558. if money >= 5000:
  559. dynamic "
  560. act 'Buy this piercing for 5,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'piercing_navel3', <<ARGS[1]>>, 'money'
  561. "
  562. end
  563. if karta >= 5000:
  564. dynamic "
  565. act 'Buy this piercing for 5,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'piercing_navel3', <<ARGS[1]>>, 'karta'
  566. "
  567. end
  568. end
  569. end
  570. act 'Return': gt 'pirsingsalon', 'piercing_navel'
  571. end
  572. if $ARGS[0] = 'piercing_navel3':
  573. if pcs_piercings['navel'] = 0:
  574. *clr
  575. minut += 30
  576. if $ARGS[2] = 'money': money -= 3000 else karta -= 3000
  577. '<center><img src="<<func(''piercing_management'', ''navel_image'', ARGS[1])>>"></center>'
  578. 'The tattooist disinfects the area, pierces your belly button and inserts your chosen piercing.'
  579. gs 'pain', 1, 'tummy', 'pierce'
  580. else
  581. 'You buy the piercing.'
  582. end
  583. if $ARGS[2] = 'money': money -= 5000 else karta -= 5000
  584. gs 'piercing_management', 'add', 'navel', ARGS[1]
  585. gs 'stat'
  586. act 'Return': gt 'pirsingsalon', 'start'
  587. end
  588. !!----- Nipples --------------------------------------------------
  589. if $ARGS[0] = 'piercing_nipples':
  590. menu_off = 1
  591. gs 'stat'
  592. ps_total = func('piercing_management', 'totals', 'nipples')
  593. ps_i = 1
  594. :loopnip_pir
  595. *p '<a href="exec: gt ''pirsingsalon'', ''piercing_nipples2'', <<ps_i>>"><img height="250" src="<<func(''piercing_management'', ''nipples_image'', ps_i)>>"></a>'
  596. ps_i += 1
  597. if ps_i <= ps_total: jump 'loopnip_pir'
  598. act 'Return': gt 'pirsingsalon', 'start'
  599. end
  600. if $ARGS[0] = 'piercing_nipples2':
  601. '<center><img src="<<func(''piercing_management'', ''nipples_image'', ARGS[1])>>"></center>'
  602. if pcs_piercings['nipples_<<ARGS[1]>>_owned'] = 1:
  603. 'You already own this piercing.'
  604. act 'Return': gt 'pirsingsalon', 'piercing_brow'
  605. elseif pcs_piercings['nipples'] = 0:
  606. if max(money, karta) < 10000:
  607. 'You cannot afford to get your nipples pierced with this piercing.'
  608. else
  609. if money >= 10000:
  610. dynamic "
  611. act 'Get your nipples pierced with these earrings for 10,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'piercing_nipples3', <<ARGS[1]>>, 'money'
  612. "
  613. end
  614. if karta >= 10000:
  615. dynamic "
  616. act 'Get your nipples pierced with these earrings for 10,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'piercing_nipples3', <<ARGS[1]>>, 'karta'
  617. "
  618. end
  619. end
  620. else
  621. if max(money, karta) < 6000:
  622. 'You don''t have enough money for this piercing.'
  623. else
  624. if money >= 6000:
  625. dynamic "
  626. act 'Buy this piercing for 6,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'piercing_nipples3', <<ARGS[1]>>, 'money'
  627. "
  628. end
  629. if karta >= 6000:
  630. dynamic "
  631. act 'Buy this piercing for 6,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'piercing_nipples3', <<ARGS[1]>>, 'karta'
  632. "
  633. end
  634. end
  635. end
  636. act 'Return': gt 'pirsingsalon', 'piercing_nipples'
  637. end
  638. if $ARGS[0] = 'piercing_nipples3':
  639. if pcs_piercings['nipples'] = 0:
  640. *clr
  641. minut += 30
  642. if $ARGS[2] = 'money': money -= 4000 else karta -= 4000
  643. '<center><img src="<<func(''piercing_management'', ''nipples_image'', ARGS[1])>>"></center>'
  644. 'The tattooist disinfects the area, pierces your nipples and inserts your chosen piercings.'
  645. gs 'pain', 7, 'nipples', 'pierce'
  646. else
  647. 'You buy the piercing.'
  648. end
  649. if $ARGS[2] = 'money': money -= 6000 else karta -= 6000
  650. gs 'piercing_management', 'add', 'nipples', ARGS[1]
  651. gs 'stat'
  652. act 'Return': gt 'pirsingsalon', 'start'
  653. end
  654. !!----- Pussy --------------------------------------------------
  655. if $ARGS[0] = 'piercing_pussy':
  656. menu_off = 1
  657. gs 'stat'
  658. ps_total = func('piercing_management', 'totals', 'pussy')
  659. ps_i = 1
  660. :looppubic_pir
  661. *p '<a href="exec: gt ''pirsingsalon'', ''piercing_pussy2'', <<ps_i>>"><img height="250" src="<<func(''piercing_management'', ''pussy_image'', ps_i)>>"></a>'
  662. ps_i += 1
  663. if ps_i <= ps_total: jump 'looppubic_pir'
  664. act 'Return':gt 'pirsingsalon', 'start'
  665. end
  666. if $ARGS[0] = 'piercing_pussy2':
  667. '<center><img src="<<func(''piercing_management'', ''pussy_image'', ARGS[1])>>"></center>'
  668. if pcs_piercings['pussy_<<ARGS[1]>>_owned'] = 1:
  669. 'You already own this piercing.'
  670. act 'Return': gt 'pirsingsalon', 'piercing_brow'
  671. elseif pcs_piercings['pussy'] = 0:
  672. if max(money, karta) < 25000:
  673. 'You cannot afford to get your pussy pierced with this piercing.'
  674. else
  675. if money >= 25000:
  676. dynamic "
  677. act 'Get your pussy pierced with these earrings for 25,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'piercing_pussy3', <<ARGS[1]>>, 'money'
  678. "
  679. end
  680. if karta >= 25000:
  681. dynamic "
  682. act 'Get your pussy pierced with these earrings for 25,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'piercing_pussy3', <<ARGS[1]>>, 'karta'
  683. "
  684. end
  685. end
  686. else
  687. if max(money, karta) < 10000:
  688. 'You don''t have enough money for this piercing.'
  689. else
  690. if money >= 10000:
  691. dynamic "
  692. act 'Buy this piercing for 10,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'piercing_pussy3', <<ARGS[1]>>, 'money'
  693. "
  694. end
  695. if karta >= 10000:
  696. dynamic "
  697. act 'Buy this piercing for 10,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'piercing_pussy3', <<ARGS[1]>>, 'karta'
  698. "
  699. end
  700. end
  701. end
  702. act 'Return': gt 'pirsingsalon', 'piercing_pussy'
  703. end
  704. if $ARGS[0] = 'piercing_pussy3':
  705. if pcs_piercings['pussy'] = 0:
  706. *clr
  707. minut += 30
  708. if $ARGS[2] = 'money': money -= 15000 else karta -= 15000
  709. '<center><img src="<<func(''piercing_management'', ''pussy_image'', ARGS[1])>>"></center>'
  710. 'The tattooist disinfects the area, pierces your pussy and inserts your chosen piercing.'
  711. gs 'pain', 9, 'pubic', 'pierce'
  712. else
  713. 'You buy the piercing.'
  714. end
  715. if $ARGS[2] = 'money': money -= 10000 else karta -= 10000
  716. gs 'piercing_management', 'add', 'pussy', ARGS[1]
  717. gs 'stat'
  718. act 'Return': gt 'pirsingsalon', 'start'
  719. end
  720. !!========================================================================!!
  721. !! !!
  722. !! TATTOOS !!
  723. !! !!
  724. !!========================================================================!!
  725. !!----- Ankle --------------------------------------------------
  726. if $ARGS[0] = 'tattoo_ankle':
  727. menu_off = 1
  728. gs 'stat'
  729. if pcs_tattoos['ankle'] <= 0:
  730. ps_total = func('tattoo_management', 'totals', 'ankle')
  731. ps_i = 1
  732. :looptatfoot
  733. *p '<a href="exec: gt ''pirsingsalon'', ''tattoo_ankle2'', <<ps_i>>"><img height="250" src="<<func(''tattoo_management'', ''ankle_image'', ps_i)>>"></a>'
  734. ps_i += 1
  735. if ps_i <= ps_total: jump 'looptatfoot'
  736. *nl
  737. else
  738. '<center><img src="<<func(''tattoo_management'', ''ankle_image'')>>"></center>'
  739. 'You already have this tattoo here.'
  740. end
  741. act 'Return': gt 'pirsingsalon', 'start'
  742. end
  743. if $ARGS[0] = 'tattoo_ankle2':
  744. '<center><img src="<<func(''tattoo_management'', ''ankle_image'', ARGS[1])>>"></center>'
  745. if max(money, karta) < 8000:
  746. 'You cannot afford this tattoo.'
  747. else
  748. if money >= 8000:
  749. dynamic "
  750. act 'Get this tattoo 8,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'tattoo_ankle3', <<ARGS[1]>>, 'money'
  751. "
  752. end
  753. if karta >= 8000:
  754. dynamic "
  755. act 'Get this tattoo 8,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'tattoo_ankle3', <<ARGS[1]>>, 'karta'
  756. "
  757. end
  758. end
  759. act 'Return': gt 'pirsingsalon', 'tattoo_ankle'
  760. end
  761. if $ARGS[0] = 'tattoo_ankle3':
  762. minut += 60
  763. if $ARGS[2] = 'money': money -= 8000 else karta -= 8000
  764. gs 'tattoo_management', 'add', 'ankle', ARGS[1]
  765. gs 'stat'
  766. act 'Return': gt 'pirsingsalon', 'start'
  767. end
  768. !!----- Arm --------------------------------------------------
  769. if $ARGS[0] = 'tattoo_arm':
  770. menu_off = 1
  771. gs 'stat'
  772. if tattoos['arm'] <= 0:
  773. ps_total = func('tattoo_management', 'totals', 'arm')
  774. ps_i = 1
  775. :looptatarm
  776. *p '<a href="exec: gt ''pirsingsalon'', ''tattoo_arm2'', <<ps_i>>"><img height="250" src="<<func(''tattoo_management'', ''arm_image'', ps_i)>>"></a>'
  777. ps_i += 1
  778. if ps_i <= ps_total: jump 'looptatarm'
  779. else
  780. '<center><img src="<<func(''tattoo_management'', ''arm_image'')>>"></center>'
  781. 'You already have this tattoo here.'
  782. end
  783. act 'Return': gt 'pirsingsalon', 'start'
  784. end
  785. if $ARGS[0] = 'tattoo_arm2':
  786. '<center><img src="<<func(''tattoo_management'', ''arm_image'', ARGS[1])>>"></center>'
  787. if max(money, karta) < 8000:
  788. 'You cannot afford this tattoo.'
  789. else
  790. if money >= 8000:
  791. dynamic "
  792. act 'Get this tattoo 8,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'tattoo_arm3', <<ARGS[1]>>, 'money'
  793. "
  794. end
  795. if karta >= 8000:
  796. dynamic "
  797. act 'Get this tattoo 8,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'tattoo_arm3', <<ARGS[1]>>, 'karta'
  798. "
  799. end
  800. end
  801. act 'Return': gt 'pirsingsalon', 'tattoo_arm'
  802. end
  803. if $ARGS[0] = 'tattoo_arm3':
  804. minut += 60
  805. if $ARGS[2] = 'money': money -= 8000 else karta -= 8000
  806. gs 'tattoo_management', 'add', 'arm', ARGS[1]
  807. gs 'stat'
  808. act 'Return': gt 'pirsingsalon', 'start'
  809. end
  810. !!----- Ass --------------------------------------------------
  811. if $ARGS[0] = 'tattoo_ass':
  812. menu_off = 1
  813. gs 'stat'
  814. if pcs_tattoos['ass'] <= 0:
  815. ps_total = func('tattoo_management', 'totals', 'ass')
  816. ps_i = 1
  817. :looptatass
  818. *p '<a href="exec: gt ''pirsingsalon'', ''tattoo_ass'', <<ps_i>>"><img height="250" src="<<func(''tattoo_management'', ''ass_image'', ps_i)>>"></a>'
  819. ps_i += 1
  820. if ps_i <= ps_total: jump 'looptatass'
  821. else
  822. '<center><img src="<<func(''tattoo_management'', ''ass_image'')>>"></center>'
  823. 'You already have this tattoo here.'
  824. end
  825. act 'Return': gt 'pirsingsalon', 'start'
  826. end
  827. if $ARGS[0] = 'tattoo_ass2':
  828. '<center><img src="<<func(''tattoo_management'', ''ass_image'', ARGS[1])>>"></center>'
  829. if max(money, karta) < 10000:
  830. 'You cannot afford this tattoo.'
  831. else
  832. if money >= 10000:
  833. dynamic "
  834. act 'Get this tattoo 10,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'tattoo_ass3', <<ARGS[1]>>, 'money'
  835. "
  836. end
  837. if karta >= 10000:
  838. dynamic "
  839. act 'Get this tattoo 10,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'tattoo_ass3', <<ARGS[1]>>, 'karta'
  840. "
  841. end
  842. end
  843. act 'Return': gt 'pirsingsalon', 'tattoo_ass'
  844. end
  845. if $ARGS[0] = 'tattoo_ass3':
  846. minut += 60
  847. if $ARGS[2] = 'money': money -= 10000 else karta -= 10000
  848. gs 'tattoo_management', 'add', 'ass', ARGS[1]
  849. gs 'stat'
  850. act 'Return': gt 'pirsingsalon', 'start'
  851. end
  852. !!----- Back --------------------------------------------------
  853. if $ARGS[0] = 'tattoo_back':
  854. menu_off = 1
  855. gs 'stat'
  856. if pcs_tattoos['back'] <= 0:
  857. ps_total = func('tattoo_management', 'totals', 'back')
  858. ps_i = 1
  859. :looptatback
  860. *p '<a href="exec: gt ''pirsingsalon'', ''tattoo_back2'', <<ps_i>>"><img height="250" src="<<func(''tattoo_management'', ''back_image'', ps_i)>>"></a>'
  861. ps_i += 1
  862. if ps_i <= ps_total: jump 'looptatback'
  863. else
  864. '<center><img src="<<func(''tattoo_management'', ''back_image'')>>"></center>'
  865. 'You already have this tattoo here.'
  866. end
  867. act 'Return': gt 'pirsingsalon', 'start'
  868. end
  869. if $ARGS[0] = 'tattoo_back2':
  870. '<center><img src="<<func(''tattoo_management'', ''back_image'', ARGS[1])>>"></center>'
  871. if max(money, karta) < 10000:
  872. 'You cannot afford this tattoo.'
  873. else
  874. if money >= 10000:
  875. dynamic "
  876. act 'Get this tattoo 10,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'tattoo_back3', <<ARGS[1]>>, 'money'
  877. "
  878. end
  879. if karta >= 10000:
  880. dynamic "
  881. act 'Get this tattoo 10,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'tattoo_back3', <<ARGS[1]>>, 'karta'
  882. "
  883. end
  884. end
  885. act 'Return': gt 'pirsingsalon', 'tattoo_back'
  886. end
  887. if $ARGS[0] = 'tattoo_back3':
  888. minut += 60
  889. if $ARGS[2] = 'money': money -= 10000 else karta -= 10000
  890. gs 'tattoo_management', 'add', 'back', ARGS[1]
  891. gs 'stat'
  892. act 'Return': gt 'pirsingsalon', 'start'
  893. end
  894. !!----- Belly --------------------------------------------------
  895. if $ARGS[0] = 'tattoo_belly':
  896. menu_off = 1
  897. gs 'stat'
  898. if pcs_tattoos['belly'] <= 0:
  899. ps_total = func('tattoo_management', 'totals', 'belly')
  900. ps_i = 1
  901. :looptatbelly
  902. *p '<a href="exec: gt ''pirsingsalon'', ''tattoo_belly2'', <<ps_i>>"><img height="250" src="<<func(''tattoo_management'', ''belly_image'', ps_i)>>"></a>'
  903. ps_i += 1
  904. if ps_i <= ps_total: jump 'looptatbelly'
  905. *nl
  906. else
  907. '<center><img src="<<func(''tattoo_management'', ''belly_image'')>>"></center>'
  908. 'You already have this tattoo here.'
  909. end
  910. act 'Return': gt 'pirsingsalon', 'start'
  911. end
  912. if $ARGS[0] = 'tattoo_belly2':
  913. '<center><img src="<<func(''tattoo_management'', ''belly_image'', ARGS[1])>>"></center>'
  914. if max(money, karta) < 10000:
  915. 'You cannot afford this tattoo.'
  916. else
  917. if money >= 10000:
  918. dynamic "
  919. act 'Get this tattoo 10,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'tattoo_belly3', <<ARGS[1]>>, 'money'
  920. "
  921. end
  922. if karta >= 10000:
  923. dynamic "
  924. act 'Get this tattoo 10,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'tattoo_belly3', <<ARGS[1]>>, 'karta'
  925. "
  926. end
  927. end
  928. act 'Return': gt 'pirsingsalon', 'tattoo_belly'
  929. end
  930. if $ARGS[0] = 'tattoo_belly3':
  931. minut += 60
  932. if $ARGS[2] = 'money': money -= 10000 else karta -= 10000
  933. gs 'tattoo_management', 'add', 'belly', ARGS[1]
  934. gs 'stat'
  935. act 'Return': gt 'pirsingsalon', 'start'
  936. end
  937. !!----- Breast --------------------------------------------------
  938. if $ARGS[0] = 'tattoo_breast':
  939. menu_off = 1
  940. gs 'stat'
  941. if pcs_tattoos['breast'] <= 0:
  942. ps_total = func('tattoo_management', 'totals', 'breast')
  943. ps_i = 1
  944. :looptatbreast
  945. *p '<a href="exec: gt ''pirsingsalon'', ''tattoo_breast2'', <<ps_i>>"><img height="250" src="<<func(''tattoo_management'', ''breast_image'', ps_i)>>"></a>'
  946. ps_i += 1
  947. if ps_i <= ps_total: jump 'looptatbreast'
  948. *nl
  949. else
  950. '<center><img src="<<func(''tattoo_management'', ''breast_image'')>>"></center>'
  951. 'You already have this tattoo here.'
  952. end
  953. act 'Return': gt 'pirsingsalon', 'start'
  954. end
  955. if $ARGS[0] = 'tattoo_breast2':
  956. '<center><img src="<<func(''tattoo_management'', ''breast_image'', ARGS[1])>>"></center>'
  957. if max(money, karta) < 15000:
  958. 'You cannot afford this tattoo.'
  959. else
  960. if money >= 15000:
  961. dynamic "
  962. act 'Get this tattoo 15,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'tattoo_breast3', <<ARGS[1]>>, 'money'
  963. "
  964. end
  965. if karta >= 15000:
  966. dynamic "
  967. act 'Get this tattoo 15,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'tattoo_breast3', <<ARGS[1]>>, 'karta'
  968. "
  969. end
  970. end
  971. act 'Return': gt 'pirsingsalon', 'tattoo_breast'
  972. end
  973. if $ARGS[0] = 'tattoo_breast3':
  974. minut += 60
  975. if $ARGS[2] = 'money': money -= 15000 else karta -= 15000
  976. gs 'tattoo_management', 'add', 'breast', ARGS[1]
  977. gs 'stat'
  978. act 'Return': gt 'pirsingsalon', 'start'
  979. end
  980. !!----- Chest --------------------------------------------------
  981. if $ARGS[0] = 'tattoo_chest':
  982. menu_off = 1
  983. gs 'stat'
  984. if pcs_tattoos['chest'] <= 0:
  985. ps_total = func('tattoo_management', 'totals', 'chest')
  986. ps_i = 1
  987. :looptatchest
  988. *p '<a href="exec: gt ''pirsingsalon'', ''tattoo_chest2'', <<ps_i>>"><img height="250" src="<<func(''tattoo_management'', ''chest_image'', ps_i)>>"></a>'
  989. ps_i += 1
  990. if ps_i <= ps_total: jump 'looptatchest'
  991. else
  992. '<center><img src="<<func(''tattoo_management'', ''chest_image'')>>"></center>'
  993. 'You already have this tattoo here.'
  994. end
  995. act 'Return': gt 'pirsingsalon', 'start'
  996. end
  997. if $ARGS[0] = 'tattoo_chest2':
  998. '<center><img src="<<func(''tattoo_management'', ''chest_image'', ARGS[1])>>"></center>'
  999. if max(money, karta) < 12000:
  1000. 'You cannot afford this tattoo.'
  1001. else
  1002. if money >= 12000:
  1003. dynamic "
  1004. act 'Get this tattoo 12,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'tattoo_chest3', <<ARGS[1]>>, 'money'
  1005. "
  1006. end
  1007. if karta >= 12000:
  1008. dynamic "
  1009. act 'Get this tattoo 12,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'tattoo_chest3', <<ARGS[1]>>, 'karta'
  1010. "
  1011. end
  1012. end
  1013. act 'Return': gt 'pirsingsalon', 'tattoo_chest'
  1014. end
  1015. if $ARGS[0] = 'tattoo_chest3':
  1016. minut += 60
  1017. if $ARGS[2] = 'money': money -= 12000 else karta -= 12000
  1018. gs 'tattoo_management', 'add', 'chest', ARGS[1]
  1019. gs 'stat'
  1020. act 'Return': gt 'pirsingsalon', 'start'
  1021. end
  1022. !!----- Face --------------------------------------------------
  1023. if $ARGS[0] = 'tattoo_face':
  1024. menu_off = 1
  1025. gs 'stat'
  1026. if pcs_tattoos['face'] <= 0:
  1027. ps_total = func('tattoo_management', 'totals', 'face')
  1028. ps_i = 1
  1029. :looptatface
  1030. *p '<a href="exec: gt ''pirsingsalon'', ''tattoo_face2'', <<ps_i>>"><img height="250" src="<<func(''tattoo_management'', ''face_image'', ps_i)>>"></a>'
  1031. ps_i += 1
  1032. if ps_i <= ps_total: jump 'looptatface'
  1033. *nl
  1034. else
  1035. '<center><img src="<<func(''tattoo_management'', ''face_image'')>>"></center>'
  1036. 'You already have this tattoo here.'
  1037. end
  1038. act 'Return': gt 'pirsingsalon', 'start'
  1039. end
  1040. if $ARGS[0] = 'tattoo_face2':
  1041. '<center><img src="<<func(''tattoo_management'', ''face_image'', ARGS[1])>>"></center>'
  1042. if max(money, karta) < 10000:
  1043. 'You cannot afford this tattoo.'
  1044. else
  1045. if money >= 10000:
  1046. dynamic "
  1047. act 'Get this tattoo 10,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'tattoo_face3', <<ARGS[1]>>, 'money'
  1048. "
  1049. end
  1050. if karta >= 10000:
  1051. dynamic "
  1052. act 'Get this tattoo 10,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'tattoo_face3', <<ARGS[1]>>, 'karta'
  1053. "
  1054. end
  1055. end
  1056. act 'Return': gt 'pirsingsalon', 'tattoo_face'
  1057. end
  1058. if $ARGS[0] = 'tattoo_face3':
  1059. minut += 60
  1060. if $ARGS[2] = 'money': money -= 10000 else karta -= 10000
  1061. gs 'tattoo_management', 'add', 'face', ARGS[1]
  1062. gs 'stat'
  1063. act 'Return': gt 'pirsingsalon', 'start'
  1064. end
  1065. !!----- Hand --------------------------------------------------
  1066. if $ARGS[0] = 'tattoo_hand':
  1067. menu_off = 1
  1068. gs 'stat'
  1069. if pcs_tattoos['hand'] <= 0:
  1070. ps_total = func('tattoo_management', 'totals', 'hand')
  1071. ps_i = 1
  1072. :looptathand
  1073. *p '<a href="exec: gt ''pirsingsalon'', ''tattoo_hand2'', <<ps_i>>"><img height="250" src="<<func(''tattoo_management'', ''hand_image'', ps_i)>>"></a>'
  1074. ps_i += 1
  1075. if ps_i <= ps_total: jump 'looptathand'
  1076. else
  1077. '<center><img src="<<func(''tattoo_management'', ''hand_image'')>>"></center>'
  1078. 'You already have this tattoo here.'
  1079. end
  1080. act 'Return': gt 'pirsingsalon', 'start'
  1081. end
  1082. if $ARGS[0] = 'tattoo_hand2':
  1083. '<center><img src="<<func(''tattoo_management'', ''hand_image'', ARGS[1])>>"></center>'
  1084. if max(money, karta) < 7000:
  1085. 'You cannot afford this tattoo.'
  1086. else
  1087. if money >= 7000:
  1088. dynamic "
  1089. act 'Get this tattoo 7,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'tattoo_hand3', <<ARGS[1]>>, 'money'
  1090. "
  1091. end
  1092. if karta >= 7000:
  1093. dynamic "
  1094. act 'Get this tattoo 7,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'tattoo_hand3', <<ARGS[1]>>, 'karta'
  1095. "
  1096. end
  1097. end
  1098. act 'Return': gt 'pirsingsalon', 'tattoo_hand'
  1099. end
  1100. if $ARGS[0] = 'tattoo_hand3':
  1101. minut += 60
  1102. if $ARGS[2] = 'money': money -= 7000 else karta -= 7000
  1103. gs 'tattoo_management', 'add', 'hand', ARGS[1]
  1104. gs 'stat'
  1105. act 'Return': gt 'pirsingsalon', 'start'
  1106. end
  1107. !!----- Leg --------------------------------------------------
  1108. if $ARGS[0] = 'tattoo_leg':
  1109. menu_off = 1
  1110. gs 'stat'
  1111. if pcs_tattoos['leg'] <= 0:
  1112. ps_total = func('tattoo_management', 'totals', 'leg')
  1113. ps_i = 1
  1114. :looptatleg
  1115. *p '<a href="exec: gt ''pirsingsalon'', ''tattoo_leg2'', <<ps_i>>"><img height="250" src="<<func(''tattoo_management'', ''leg_image'', ps_i)>>"></a>'
  1116. ps_i += 1
  1117. if ps_i <= ps_total: jump 'looptatleg'
  1118. *nl
  1119. else
  1120. '<center><img src="<<func(''tattoo_management'', ''leg_image'')>>"></center>'
  1121. 'You already have this tattoo here.'
  1122. end
  1123. act 'Return': gt 'pirsingsalon', 'start'
  1124. end
  1125. if $ARGS[0] = 'tattoo_leg2':
  1126. '<center><img src="<<func(''tattoo_management'', ''leg_image'', ARGS[1])>>"></center>'
  1127. if max(money, karta) < 10000:
  1128. 'You cannot afford this tattoo.'
  1129. else
  1130. if money >= 10000:
  1131. dynamic "
  1132. act 'Get this tattoo 10,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'tattoo_leg3', <<ARGS[1]>>, 'money'
  1133. "
  1134. end
  1135. if karta >= 10000:
  1136. dynamic "
  1137. act 'Get this tattoo 10,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'tattoo_leg3', <<ARGS[1]>>, 'karta'
  1138. "
  1139. end
  1140. end
  1141. act 'Return': gt 'pirsingsalon', 'tattoo_leg'
  1142. end
  1143. if $ARGS[0] = 'tattoo_leg3':
  1144. minut += 60
  1145. if $ARGS[2] = 'money': money -= 10000 else karta -= 10000
  1146. gs 'tattoo_management', 'add', 'leg', ARGS[1]
  1147. gs 'stat'
  1148. act 'Return': gt 'pirsingsalon', 'start'
  1149. end
  1150. !!----- Lip --------------------------------------------------
  1151. if $ARGS[0] = 'tattoo_lip':
  1152. menu_off = 1
  1153. gs 'stat'
  1154. if pcs_tattoos['lip'] <= 0:
  1155. ps_total = func('tattoo_management', 'totals', 'lip')
  1156. ps_i = 1
  1157. :looptatlip
  1158. *p '<a href="exec: gt ''pirsingsalon'', ''tattoo_lip2'', <<ps_i>>"><img height="250" src="<<func(''tattoo_management'', ''lip_image'', ps_i)>>"></a>'
  1159. ps_i += 1
  1160. if ps_i <= ps_total: jump 'looptatlip'
  1161. else
  1162. '<center><img src="<<func(''tattoo_management'', ''lip_image'')>>"></center>'
  1163. 'You already have this tattoo here.'
  1164. end
  1165. act 'Return': gt 'pirsingsalon', 'start'
  1166. end
  1167. if $ARGS[0] = 'tattoo_lip2':
  1168. '<center><img src="<<func(''tattoo_management'', ''lip_image'', ARGS[1])>>"></center>'
  1169. if max(money, karta) < 5000:
  1170. 'You cannot afford this tattoo.'
  1171. else
  1172. if money >= 5000:
  1173. dynamic "
  1174. act 'Get this tattoo 5,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'tattoo_lip3', <<ARGS[1]>>, 'money'
  1175. "
  1176. end
  1177. if karta >= 5000:
  1178. dynamic "
  1179. act 'Get this tattoo 5,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'tattoo_lip3', <<ARGS[1]>>, 'karta'
  1180. "
  1181. end
  1182. end
  1183. act 'Return': gt 'pirsingsalon', 'tattoo_lip'
  1184. end
  1185. if $ARGS[0] = 'tattoo_lip3':
  1186. minut += 60
  1187. if $ARGS[2] = 'money': money -= 5000 else karta -= 5000
  1188. gs 'tattoo_management', 'add', 'lip', ARGS[1]
  1189. gs 'stat'
  1190. act 'Return': gt 'pirsingsalon', 'start'
  1191. end
  1192. !!----- Neck --------------------------------------------------
  1193. if $ARGS[0] = 'tattoo_neck':
  1194. menu_off = 1
  1195. gs 'stat'
  1196. if pcs_tattoos['neck'] <= 0:
  1197. ps_total = func('tattoo_management', 'totals', 'neck')
  1198. ps_i = 1
  1199. :looptatneck
  1200. *p '<a href="exec: gt ''pirsingsalon'', ''tattoo_neck2'', <<ps_i>>"><img height="250" src="<<func(''tattoo_management'', ''neck_image'', ps_i)>>"></a>'
  1201. ps_i += 1
  1202. if ps_i <= ps_total: jump 'looptatneck'
  1203. else
  1204. '<center><img src="<<func(''tattoo_management'', ''neck_image'')>>"></center>'
  1205. 'You already have this tattoo here.'
  1206. end
  1207. act 'Return': gt 'pirsingsalon', 'start'
  1208. end
  1209. if $ARGS[0] = 'tattoo_neck2':
  1210. '<center><img src="<<func(''tattoo_management'', ''neck_image'', ARGS[1])>>"></center>'
  1211. if max(money, karta) < 8000:
  1212. 'You cannot afford this tattoo.'
  1213. else
  1214. if money >= 8000:
  1215. dynamic "
  1216. act 'Get this tattoo 8,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'tattoo_neck3', <<ARGS[1]>>, 'money'
  1217. "
  1218. end
  1219. if karta >= 8000:
  1220. dynamic "
  1221. act 'Get this tattoo 8,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'tattoo_neck3', <<ARGS[1]>>, 'karta'
  1222. "
  1223. end
  1224. end
  1225. act 'Return': gt 'pirsingsalon', 'tattoo_neck'
  1226. end
  1227. if $ARGS[0] = 'tattoo_neck3':
  1228. minut += 60
  1229. if $ARGS[2] = 'money': money -= 8000 else karta -= 8000
  1230. gs 'tattoo_management', 'add', 'neck', ARGS[1]
  1231. gs 'stat'
  1232. act 'Return': gt 'pirsingsalon', 'start'
  1233. end
  1234. !!----- Pussy --------------------------------------------------
  1235. if $ARGS[0] = 'tattoo_pussy':
  1236. menu_off = 1
  1237. gs 'stat'
  1238. if pcs_tattoos['pussy'] <= 0:
  1239. ps_total = func('tattoo_management', 'totals', 'pussy')
  1240. ps_i = 1
  1241. :looptatvag
  1242. *p '<a href="exec: gt ''pirsingsalon'', ''tattoo_pussy2'', <<ps_i>>"><img height="250" src="<<func(''tattoo_management'', ''pussy_image'', ps_i)>>"></a>'
  1243. ps_i += 1
  1244. if ps_i <= ps_total: jump 'looptatvag'
  1245. else
  1246. '<center><img src="<<func(''tattoo_management'', ''pussy_image'')>>"></center>'
  1247. 'You already have this tattoo here.'
  1248. end
  1249. act 'Return': gt 'pirsingsalon', 'start'
  1250. end
  1251. if $ARGS[0] = 'tattoo_pussy2':
  1252. '<center><img src="<<func(''tattoo_management'', ''pussy_image'', ARGS[1])>>"></center>'
  1253. if max(money, karta) < 20000:
  1254. 'You cannot afford this tattoo.'
  1255. else
  1256. if money >= 20000:
  1257. dynamic "
  1258. act 'Get this tattoo 20,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'tattoo_pussy3', <<ARGS[1]>>, 'money'
  1259. "
  1260. end
  1261. if karta >= 20000:
  1262. dynamic "
  1263. act 'Get this tattoo 20,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'tattoo_pussy3', <<ARGS[1]>>, 'karta'
  1264. "
  1265. end
  1266. end
  1267. act 'Return': gt 'pirsingsalon', 'tattoo_pussy'
  1268. end
  1269. if $ARGS[0] = 'tattoo_pussy3':
  1270. minut += 60
  1271. if $ARGS[2] = 'money': money -= 20000 else karta -= 20000
  1272. gs 'tattoo_management', 'add', 'pussy', ARGS[1]
  1273. gs 'stat'
  1274. act 'Return': gt 'pirsingsalon', 'start'
  1275. end
  1276. !!----- shoulder --------------------------------------------------
  1277. if $ARGS[0] = 'tattoo_shoulder':
  1278. menu_off = 1
  1279. gs 'stat'
  1280. if pcs_tattoos['shoulder'] <= 0:
  1281. ps_total = func('tattoo_management', 'totals', 'shoulder')
  1282. ps_i = 1
  1283. :looptatlech
  1284. *p '<a href="exec: gt ''pirsingsalon'', ''tattoo_shoulder2'', <<ps_i>>"><img height="250" src="<<func(''tattoo_management'', ''shoulder_image'', ps_i)>>"></a>'
  1285. ps_i += 1
  1286. if ps_i <= ps_total: jump 'looptatlech'
  1287. else
  1288. '<center><img src="<<func(''tattoo_management'', ''shoulder_image'')>>"></center>'
  1289. 'You already have this tattoo here.'
  1290. end
  1291. act 'Return': gt 'pirsingsalon', 'start'
  1292. end
  1293. if $ARGS[0] = 'tattoo_shoulder2':
  1294. '<center><img src="<<func(''tattoo_management'', ''shoulder_image'', ARGS[1])>>"></center>'
  1295. if max(money, karta) < 8000:
  1296. 'You cannot afford this tattoo.'
  1297. else
  1298. if money >= 8000:
  1299. dynamic "
  1300. act 'Get this tattoo 8,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'tattoo_shoulder3', <<ARGS[1]>>, 'money'
  1301. "
  1302. end
  1303. if karta >= 8000:
  1304. dynamic "
  1305. act 'Get this tattoo 8,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'tattoo_shoulder3', <<ARGS[1]>>, 'karta'
  1306. "
  1307. end
  1308. end
  1309. act 'Return': gt 'pirsingsalon', 'tattoo_shoulder'
  1310. end
  1311. if $ARGS[0] = 'tattoo_shoulder3':
  1312. minut += 60
  1313. if $ARGS[2] = 'money': money -= 8000 else karta -= 8000
  1314. gs 'tattoo_management', 'add', 'shoulder', ARGS[1]
  1315. gs 'stat'
  1316. act 'Return': gt 'pirsingsalon', 'start'
  1317. end
  1318. !!----- Side --------------------------------------------------
  1319. if $ARGS[0] = 'tattoo_side':
  1320. menu_off = 1
  1321. gs 'stat'
  1322. if pcs_tattoos['side'] <= 0:
  1323. ps_total = func('tattoo_management', 'totals', 'side')
  1324. ps_i = 1
  1325. :looptatside
  1326. *p '<a href="exec: gt ''pirsingsalon'', ''tattoo_side2'', <<ps_i>>"><img height="250" src="<<func(''tattoo_management'', ''side_image'', ps_i)>>"></a>'
  1327. ps_i += 1
  1328. if ps_i <= ps_total: jump 'looptatside'
  1329. else
  1330. '<center><img src="<<func(''tattoo_management'', ''side_image'')>>"></center>'
  1331. 'You already have this tattoo here.'
  1332. end
  1333. act 'Return': gt 'pirsingsalon', 'start'
  1334. end
  1335. if $ARGS[0] = 'tattoo_side2':
  1336. '<center><img src="<<func(''tattoo_management'', ''side_image'', ARGS[1])>>"></center>'
  1337. if max(money, karta) < 12000:
  1338. 'You cannot afford this tattoo.'
  1339. else
  1340. if money >= 12000:
  1341. dynamic "
  1342. act 'Get this tattoo 12,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'tattoo_side3', <<ARGS[1]>>, 'money'
  1343. "
  1344. end
  1345. if karta >= 12000:
  1346. dynamic "
  1347. act 'Get this tattoo 12,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'tattoo_side3', <<ARGS[1]>>, 'karta'
  1348. "
  1349. end
  1350. end
  1351. act 'Return': gt 'pirsingsalon', 'tattoo_side'
  1352. end
  1353. if $ARGS[0] = 'tattoo_side3':
  1354. minut += 60
  1355. if $ARGS[2] = 'money': money -= 12000 else karta -= 12000
  1356. gs 'tattoo_management', 'add', 'side', ARGS[1]
  1357. gs 'stat'
  1358. act 'Return': gt 'pirsingsalon', 'start'
  1359. end
  1360. !!----- Tramp --------------------------------------------------
  1361. if $ARGS[0] = 'tattoo_tramp':
  1362. menu_off = 1
  1363. gs 'stat'
  1364. if pcs_tattoos['tramp'] <= 0:
  1365. ps_total = func('tattoo_management', 'totals', 'tramp')
  1366. ps_i = 1
  1367. :looptatupb
  1368. *p '<a href="exec: gt ''pirsingsalon'', ''tattoo_tramp2'', <<ps_i>>"><img height="250" src="<<func(''tattoo_management'', ''tramp_image'', ps_i)>>"></a>'
  1369. ps_i += 1
  1370. if ps_i <= ps_total: jump 'looptatupb'
  1371. *nl
  1372. else
  1373. '<center><img src="<<func(''tattoo_management'', ''tramp_image'')>>"></center>'
  1374. 'You already have this tattoo here.'
  1375. end
  1376. act 'Return': gt 'pirsingsalon', 'start'
  1377. end
  1378. if $ARGS[0] = 'tattoo_tramp2':
  1379. '<center><img src="<<func(''tattoo_management'', ''tramp_image'', ARGS[1])>>"></center>'
  1380. if max(money, karta) < 12000:
  1381. 'You cannot afford this tattoo.'
  1382. else
  1383. if money >= 12000:
  1384. dynamic "
  1385. act 'Get this tattoo 12,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'tattoo_tramp3', <<ARGS[1]>>, 'money'
  1386. "
  1387. end
  1388. if karta >= 12000:
  1389. dynamic "
  1390. act 'Get this tattoo 12,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'tattoo_tramp3', <<ARGS[1]>>, 'karta'
  1391. "
  1392. end
  1393. end
  1394. act 'Return': gt 'pirsingsalon', 'tattoo_tramp'
  1395. end
  1396. if $ARGS[0] = 'tattoo_tramp3':
  1397. minut += 60
  1398. if $ARGS[2] = 'money': money -= 12000 else karta -= 12000
  1399. gs 'tattoo_management', 'add', 'tramp', ARGS[1]
  1400. gs 'stat'
  1401. act 'Return': gt 'pirsingsalon', 'start'
  1402. end
  1403. !!----- Under --------------------------------------------------
  1404. if $ARGS[0] = 'tattoo_under':
  1405. menu_off = 1
  1406. gs 'stat'
  1407. if pcs_tattoos['under'] <= 0:
  1408. ps_total = func('tattoo_management', 'totals', 'under')
  1409. ps_i = 1
  1410. :looptatunder
  1411. *p '<a href="exec: gt ''pirsingsalon'', ''tattoo_under2'', <<ps_i>>"><img height="250" src="<<func(''tattoo_management'', ''under_image'', ps_i)>>"></a>'
  1412. ps_i += 1
  1413. if ps_i <= ps_total: jump 'looptatunder'
  1414. *nl
  1415. else
  1416. '<center><img src="<<func(''tattoo_management'', ''under_image'')>>"></center>'
  1417. 'You already have this tattoo here.'
  1418. end
  1419. act 'Return': gt 'pirsingsalon', 'start'
  1420. end
  1421. if $ARGS[0] = 'tattoo_under2':
  1422. '<center><img src="<<func(''tattoo_management'', ''under_image'', ARGS[1])>>"></center>'
  1423. if max(money, karta) < 12000:
  1424. 'You cannot afford this tattoo.'
  1425. else
  1426. if money >= 12000:
  1427. dynamic "
  1428. act 'Get this tattoo 12,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'tattoo_under3', <<ARGS[1]>>, 'money'
  1429. "
  1430. end
  1431. if karta >= 12000:
  1432. dynamic "
  1433. act 'Get this tattoo 12,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'tattoo_under3', <<ARGS[1]>>, 'karta'
  1434. "
  1435. end
  1436. end
  1437. act 'Return': gt 'pirsingsalon', 'tattoo_under'
  1438. end
  1439. if $ARGS[0] = 'tattoo_under3':
  1440. minut += 60
  1441. if $ARGS[2] = 'money': money -= 12000 else karta -= 12000
  1442. gs 'tattoo_management', 'add', 'under', ARGS[1]
  1443. gs 'stat'
  1444. act 'Return': gt 'pirsingsalon', 'start'
  1445. end
  1446. !!----- Wrist --------------------------------------------------
  1447. if $ARGS[0] = 'tattoo_wrist':
  1448. menu_off = 1
  1449. gs 'stat'
  1450. if pcs_tattoos['wrist'] <= 0:
  1451. ps_total = func('tattoo_management', 'totals', 'wrist')
  1452. ps_i = 1
  1453. :looptatwrist
  1454. *p '<a href="exec: gt ''pirsingsalon'', ''tattoo_wrist2'', <<ps_i>>"><img height="250" src="<<func(''tattoo_management'', ''wrist_image'', ps_i)>>"></a>'
  1455. ps_i += 1
  1456. if ps_i <= ps_total: jump 'looptatwrist'
  1457. else
  1458. '<center><img src="<<func(''tattoo_management'', ''wrist_image'')>>"></center>'
  1459. 'You already have this tattoo here.'
  1460. end
  1461. act 'Return': gt 'pirsingsalon', 'start'
  1462. end
  1463. if $ARGS[0] = 'tattoo_wrist2':
  1464. '<center><img src="<<func(''tattoo_management'', ''wrist_image'', ARGS[1])>>"></center>'
  1465. if max(money, karta) < 7000:
  1466. 'You cannot afford this tattoo.'
  1467. else
  1468. if money >= 7000:
  1469. dynamic "
  1470. act 'Get this tattoo 7,000 <b>₽</b> (cash)': xgt 'pirsingsalon', 'tattoo_wrist3', <<ARGS[1]>>, 'money'
  1471. "
  1472. end
  1473. if karta >= 7000:
  1474. dynamic "
  1475. act 'Get this tattoo 7,000 <b>₽</b> (card)': xgt 'pirsingsalon', 'tattoo_wrist3', <<ARGS[1]>>, 'karta'
  1476. "
  1477. end
  1478. end
  1479. act 'Return': gt 'pirsingsalon', 'tattoo_wrist'
  1480. end
  1481. if $ARGS[0] = 'tattoo_wrist2':
  1482. minut += 60
  1483. if $ARGS[2] = 'money': money -= 12000 else karta -= 12000
  1484. gs 'tattoo_management', 'add', 'wrist', ARGS[1]
  1485. gs 'stat'
  1486. act 'Return': gt 'pirsingsalon', 'start'
  1487. end
  1488. ! Cleanup
  1489. killvar 'ps_i'
  1490. killvar 'ps_total'
  1491. --- pirsingsalon ---------------------------------