553_result 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. # result
  2. *p '<right><img src="images/casino/resul.jpg"></right>'
  3. clr
  4. gs 'stat'
  5. set minut += 5
  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. ' '
  18. 'The ball stopped at <<x_rul>> <<$color>>'
  19. if kh ! 0:
  20. if kh = 1:
  21. '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. set money += 2 * st_1
  25. gt 'amrul'
  26. end
  27. else
  28. act 'You lost':gt 'amrul'
  29. end
  30. end
  31. if kh = 2:
  32. 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:
  33. cla
  34. act 'You have won <<2*st_1>>':
  35. set money += 2 * st_1
  36. gt 'amrul'
  37. end
  38. else
  39. cla
  40. act 'You lost':gt 'amrul'
  41. end
  42. end
  43. end
  44. if chnch ! 0:
  45. if chnch = 1:
  46. chnch = 0
  47. if x_rul mod 2 = 0:
  48. cla
  49. act 'You have won <<2*st_1>>':
  50. set money += 2 * st_1
  51. gt 'amrul'
  52. end
  53. else
  54. cla
  55. act 'You lost':gt 'amrul'
  56. end
  57. end
  58. if chnch = 2:
  59. chnch = 0
  60. if x_rul mod 2 = 1:
  61. cla
  62. act 'You have won <<2*st_1>>':
  63. set money += 2 * st_1
  64. gt 'amrul'
  65. end
  66. else
  67. cla
  68. act 'You lost':gt 'amrul'
  69. end
  70. end
  71. end
  72. if mb ! 0:
  73. if mb = 1:
  74. mb = 0
  75. if x_rul > 0 and x_rul < 19:
  76. cla
  77. act 'You have won <<2*st_1>>':
  78. set money += 2 * st_1
  79. gt 'amrul'
  80. end
  81. else
  82. cla
  83. act 'You lost':gt 'amrul'
  84. end
  85. end
  86. if mb = 2:
  87. mb = 0
  88. if x_rul > 18 and x_rul < 37:
  89. cla
  90. act 'You have won <<2*st_1>>':
  91. set money += 2 * st_1
  92. gt 'amrul'
  93. end
  94. else
  95. cla
  96. act 'You lost':gt 'amrul'
  97. end
  98. end
  99. end
  100. if du ! 0:
  101. if du = 1:
  102. du = 0
  103. if x_rul > 0 and x_rul < 13:
  104. cla
  105. act 'You have won <<3*st_1>>':
  106. set money += 3 * st_1
  107. gt 'amrul'
  108. end
  109. else
  110. cla
  111. act 'You lost':gt 'amrul'
  112. end
  113. end
  114. if du = 2:
  115. du = 0
  116. if x_rul > 12 and x_rul < 25:
  117. cla
  118. act 'You have won <<3*st_1>>':
  119. set money += 3 * st_1
  120. gt 'amrul'
  121. end
  122. else
  123. cla
  124. act 'You lost':gt 'amrul'
  125. end
  126. end
  127. if du = 3:
  128. du = 0
  129. if x_rul > 24 and x_rul < 37:
  130. cla
  131. act 'You have won <<3*st_1>>':
  132. set money += 3 * st_1
  133. gt 'amrul'
  134. end
  135. else
  136. cla
  137. act 'You lost':gt 'amrul'
  138. end
  139. end
  140. end
  141. if series ! 0:
  142. if series = 1:
  143. series = 0
  144. 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:
  145. cla
  146. act 'You have won <<3*st_1>>':
  147. set money += 3 * st_1
  148. gt 'amrul'
  149. end
  150. else
  151. cla
  152. act 'You lost':gt 'amrul'
  153. end
  154. end
  155. if series = 2:
  156. series = 0
  157. 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:
  158. cla
  159. act 'You have won <<3*st_1>>':
  160. set money += 3 * st_1
  161. gt 'amrul'
  162. end
  163. else
  164. cla
  165. act 'You lost':gt 'amrul'
  166. end
  167. end
  168. if series = 3:
  169. series = 0
  170. 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:
  171. cla
  172. act 'You have won <<3*st_1>>':
  173. set money += 3 * st_1
  174. gt 'amrul'
  175. end
  176. else
  177. cla
  178. act 'You lost':gt 'amrul'
  179. end
  180. end
  181. end
  182. if chi ! 100:
  183. if chi = x_rul:
  184. cla
  185. act 'You have won <<37*st_1>>':
  186. set money += 37 * st_1
  187. gt 'amrul'
  188. end
  189. else
  190. cla
  191. act 'You lost':gt 'amrul'
  192. end
  193. end
  194. --- result ---------------------------------