result 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. # result
  2. cla
  3. clr
  4. minut += 5
  5. gs 'stat'
  6. x_rul = 100
  7. x_rul = rand(0, 36)
  8. if x_rul = 0:
  9. $color = ' '
  10. else
  11. if x_rul = 1 or x_rul = 3 or x_rul = 5 or x_rul = 7 or x_rul = 9 or x_rul = 12 or x_rul = 14 or x_rul = 16 or x_rul = 18 or x_rul = 19 or x_rul = 21 or x_rul = 23 or x_rul = 25 or x_rul = 27 or x_rul = 30 or x_rul = 32 or x_rul = 34 or x_rul = 36:
  12. $color = 'red'
  13. else
  14. $color = 'black'
  15. end
  16. end
  17. '<right><img src="images/casino/resul.jpg"></right>'
  18. ''
  19. 'The ball stopped at <<x_rul>> <<$color>>'
  20. if kh ! 0:
  21. if kh = 1:
  22. if x_rul = 1 or x_rul = 3 or x_rul = 5 or x_rul = 7 or x_rul = 9 or x_rul = 12 or x_rul = 14 or x_rul = 16 or x_rul = 18 or x_rul = 19 or x_rul = 21 or x_rul = 23 or x_rul = 25 or x_rul = 27 or x_rul = 30 or x_rul = 32 or x_rul = 34 or x_rul = 36:
  23. act 'You have won <<2 * st_1>>':
  24. money += 2 * st_1
  25. gt 'amrul'
  26. end
  27. else
  28. act 'You lost':gt 'amrul'
  29. end
  30. elseif kh = 2:
  31. if x_rul = 2 or x_rul = 4 or x_rul = 6 or x_rul = 8 or x_rul = 10 or x_rul = 11 or x_rul = 13 or x_rul = 15 or x_rul = 17 or x_rul = 20 or x_rul = 22 or x_rul = 24 or x_rul = 26 or x_rul = 28 or x_rul = 29 or x_rul = 31 or x_rul = 33 or x_rul = 35:
  32. act 'You have won <<2 * st_1>>':
  33. money += 2 * st_1
  34. gt 'amrul'
  35. end
  36. else
  37. act 'You lost':gt 'amrul'
  38. end
  39. end
  40. elseif chnch ! 0:
  41. if chnch = 1:
  42. chnch = 0
  43. if x_rul mod 2 = 0:
  44. act 'You have won <<2 * st_1>>':
  45. money += 2 * st_1
  46. gt 'amrul'
  47. end
  48. else
  49. act 'You lost':gt 'amrul'
  50. end
  51. end
  52. if chnch = 2:
  53. chnch = 0
  54. if x_rul mod 2 = 1:
  55. act 'You have won <<2 * st_1>>':
  56. money += 2 * st_1
  57. gt 'amrul'
  58. end
  59. else
  60. act 'You lost':gt 'amrul'
  61. end
  62. end
  63. elseif mb ! 0:
  64. if mb = 1:
  65. mb = 0
  66. if x_rul > 0 and x_rul < 19:
  67. act 'You have won <<2 * st_1>>':
  68. money += 2 * st_1
  69. gt 'amrul'
  70. end
  71. else
  72. act 'You lost':gt 'amrul'
  73. end
  74. end
  75. if mb = 2:
  76. mb = 0
  77. if x_rul > 18 and x_rul < 37:
  78. act 'You have won <<2 * st_1>>':
  79. money += 2 * st_1
  80. gt 'amrul'
  81. end
  82. else
  83. act 'You lost':gt 'amrul'
  84. end
  85. end
  86. elseif du ! 0:
  87. if du = 1:
  88. du = 0
  89. if x_rul > 0 and x_rul < 13:
  90. act 'You have won <<3 * st_1>>':
  91. money += 3 * st_1
  92. gt 'amrul'
  93. end
  94. else
  95. act 'You lost':gt 'amrul'
  96. end
  97. end
  98. if du = 2:
  99. du = 0
  100. if x_rul > 12 and x_rul < 25:
  101. act 'You have won <<3 * st_1>>':
  102. money += 3 * st_1
  103. gt 'amrul'
  104. end
  105. else
  106. act 'You lost':gt 'amrul'
  107. end
  108. end
  109. if du = 3:
  110. du = 0
  111. if x_rul > 24 and x_rul < 37:
  112. act 'You have won <<3 * st_1>>':
  113. money += 3 * st_1
  114. gt 'amrul'
  115. end
  116. else
  117. act 'You lost':gt 'amrul'
  118. end
  119. end
  120. elseif series ! 0:
  121. if series = 1:
  122. series = 0
  123. if x_rul = 1 or x_rul = 4 or x_rul = 7 or x_rul = 10 or x_rul = 13 or x_rul = 16 or x_rul = 19 or x_rul = 22 or x_rul = 25 or x_rul = 28 or x_rul = 31 or x_rul = 34:
  124. act 'You have won <<3*st_1>>':
  125. money += 3 * st_1
  126. gt 'amrul'
  127. end
  128. else
  129. act 'You lost':gt 'amrul'
  130. end
  131. elseif series = 2:
  132. series = 0
  133. if x_rul = 2 or x_rul = 3 or x_rul = 8 or x_rul = 11 or x_rul = 14 or x_rul = 17 or x_rul = 20 or x_rul = 23 or x_rul = 26 or x_rul = 29 or x_rul = 32 or x_rul = 35:
  134. act 'You have won <<3*st_1>>':
  135. money += 3 * st_1
  136. gt 'amrul'
  137. end
  138. else
  139. act 'You lost':gt 'amrul'
  140. end
  141. elseif series = 3:
  142. series = 0
  143. if x_rul = 3 or x_rul = 4 or x_rul = 9 or x_rul = 12 or x_rul = 15 or x_rul = 18 or x_rul = 21 or x_rul = 24 or x_rul = 27 or x_rul = 30 or x_rul = 33 or x_rul = 36:
  144. act 'You have won <<3*st_1>>':
  145. money += 3 * st_1
  146. gt 'amrul'
  147. end
  148. else
  149. act 'You lost':gt 'amrul'
  150. end
  151. end
  152. end
  153. elseif chi ! 100:
  154. if chi = x_rul:
  155. act 'You have won <<37 * st_1>>':
  156. money += 37 * st_1
  157. gt 'amrul'
  158. end
  159. else
  160. act 'You lost':gt 'amrul'
  161. end
  162. end
  163. --- result ---------------------------------