1
0

portnoi 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. # portnoi
  2. $batch_sell = {
  3. poshvalldrop += 1
  4. dynamic 'RESULT = <<$ARGS[0]>>H[<<ARGS[1]>>]'
  5. if RESULT > 100:
  6. dynamic '<<$ARGS[0]>>[<<ARGS[1]>>] = 0'
  7. dynamic '<<$ARGS[0]>>S[<<ARGS[1]>>] = 0'
  8. money += 750
  9. selltot += 750
  10. elseif RESULT > 45:
  11. dynamic '<<$ARGS[0]>>[<<ARGS[1]>>] = 0'
  12. dynamic '<<$ARGS[0]>>S[<<ARGS[1]>>] = 0'
  13. money += 500
  14. selltot += 500
  15. elseif RESULT > 30:
  16. dynamic '<<$ARGS[0]>>[<<ARGS[1]>>] = 0'
  17. dynamic '<<$ARGS[0]>>S[<<ARGS[1]>>] = 0'
  18. money += 300
  19. selltot += 300
  20. elseif RESULT > 0:
  21. dynamic '<<$ARGS[0]>>[<<ARGS[1]>>] = 0'
  22. dynamic '<<$ARGS[0]>>S[<<ARGS[1]>>] = 0'
  23. money += 100
  24. selltot += 100
  25. else
  26. dynamic '<<$ARGS[0]>>[<<ARGS[1]>>] = 0'
  27. dynamic '<<$ARGS[0]>>S[<<ARGS[1]>>] = 0'
  28. end
  29. }
  30. poshvalldrop = 0
  31. selltot = 0
  32. i = 1
  33. :cheapmet
  34. if cheap[i] = 1 and cheapS[i] = 2:dynamic($batch_sell, 'cheap', i)
  35. i += 1
  36. if i <= 85:jump 'cheapmet'
  37. i = 1
  38. :averagemet
  39. if average[i] = 1 and averageS[i] = 2:dynamic($batch_sell, 'average', i)
  40. i += 1
  41. if i <= 125:jump 'averagemet'
  42. i = 1
  43. :expensivemet
  44. if expensive[i] = 1 and expensiveS[i] = 2:dynamic($batch_sell, 'expensive', i)
  45. i += 1
  46. if i <= 147:jump 'expensivemet'
  47. i = 1
  48. :formalmet
  49. if formal[i] = 1 and formalS[i] = 2:dynamic($batch_sell, 'formal', i)
  50. i += 1
  51. if i <= 14:jump 'formalmet'
  52. i = 1
  53. :officemet
  54. if office[i] = 1 and officeS[i] = 2:dynamic($batch_sell, 'office', i)
  55. i += 1
  56. if i <= 30:jump 'officemet'
  57. i = 1
  58. :schoolmet
  59. if school[i] = 1 and schoolS[i] = 2:dynamic($batch_sell, 'school', i)
  60. i += 1
  61. if i <= 14:jump 'schoolmet'
  62. i = 1
  63. :exercisemet
  64. if exercise[i] = 1 and exerciseS[i] = 2:dynamic($batch_sell, 'exercise', i)
  65. i += 1
  66. if i <= 26:jump 'exercisemet'
  67. i = 1
  68. :naughtymet
  69. if naughty[i] = 1 and naughtyS[i] = 2:dynamic($batch_sell, 'naughty', i)
  70. i += 1
  71. if i <= 67:jump 'naughtymet'
  72. i = 1
  73. :exhibitmet
  74. if exhibit[i] = 1 and exhibitS[i] = 2:dynamic($batch_sell, 'exhibit', i)
  75. i += 1
  76. if i <= 30:jump 'exhibitmet'
  77. i = 1
  78. :uniformmet
  79. if uniform[i] = 1 and uniformS[i] = 2:dynamic($batch_sell, 'uniform', i)
  80. i += 1
  81. if i <= 24:jump 'uniformmet'
  82. i = 1
  83. :coatmet
  84. if coat[i] = 1 and coatS[i] = 2:dynamic($batch_sell, 'coat', i)
  85. i += 1
  86. if i <= 12:jump 'coatmet'
  87. i = 1
  88. :swimwearmet
  89. if swimwear[i] = 1 and swimwearS[i] = 2:dynamic($batch_sell, 'swimwear', i)
  90. i += 1
  91. if i <= 30:jump 'swimwearmet'
  92. end
  93. killvar 'batch_sell'
  94. 'You sold <<poshvalldrop>> items of unwanted clothing for a total of <<selltot>> <b>₽</b>.'
  95. --- portnoi ---------------------------------