FlupMC

Untitled

Aug 6th, 2017
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.17 KB | None | 0 0
  1. on join:
  2. set {uuid::%player%} to player
  3. set {navn::%player%} to player
  4. command /bet [<text>]:
  5. permission: *
  6. permission: *
  7. trigger:
  8. if arg-1 is not set:
  9. loop {penge.roulette::*}:
  10. add 1 to {_size}
  11. if {_low.to.high.list::%loop-value%} is not set:
  12. set {_low.to.high.list::%loop-value%} to loop-index
  13. else:
  14. set {_n} to 0
  15. loop {_size} times:
  16. set {_n} to {_n}+1
  17. {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
  18. set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
  19. stop loop
  20. wait 1 tick
  21. set {_n} to size of {_low.to.high.list::*}
  22. loop {_low.to.high.list::*}:
  23. set {_high.to.low.list::%{_n}%} to loop-value
  24. set {_n} to {_n}-1
  25. wait 5 ticks
  26. set {_result} to 0
  27. loop {_high.to.low.list::*}:
  28. add 1 to {_result}
  29. set {top.r%{_result}%} to {navn::%loop-value%}
  30. set {top.n%{_result}%} to loop-value
  31. if {_result} is 3:
  32. stop loop
  33. open chest with 3 rows named "&2&lROULETTE" to player
  34. wait 3 ticks
  35. if inventory name of player's current inventory is "&2&lROULETTE":
  36. loop integers from 0 to 26:
  37. format slot loop-number of player with white stained glass pane named "&r" to be unstealable
  38. if {roulette.igang} is true:
  39. format slot 13 of player with 166 named "&4&lIGANG" with lore "&cSpillet er allerede igang." to be unstealable
  40. stop
  41. if {roulette::%player%} is true:
  42. format slot 13 of player with 166 named "&4&lALLEREDE" with lore "&cDu er allerede joinet." to be unstealable
  43. format slot 11 of player with paper named "&4&lJOINET" with lore "&cDer er ialt joinet &4%(size of {roulette::*})%" to be unstealable
  44. if (size of {roulette::*}) is 1:
  45. format slot 15 of player with player head named "&4&lTOP 3" with lore "&4&l1&r&7. &c%{top.n1}% &8(&4$%{penge.roulette::*}%&8)||&4&l2&r&7. &cIngen||&4&l3&r&7. &cIngen" to be unstealable
  46. if (size of {roulette::*}) is 2:
  47. format slot 15 of player with player head named "&4&lTOP 3" with lore "&4&l1&r&7. &c%{top.n1}% &8(&4$%{penge.roulette::%{uuid::%{top.r1}%}%}%&8)||&4&l2&r&7. &c%{top.n2}% &8(&4$%{penge.roulette::%{uuid::%{top.r2}%}%}%&8)||&4&l3&r&7. &cIngen" to be unstealable
  48. if (size of {roulette::*}) is greater or equal to 3:
  49. format slot 15 of player with player head named "&4&lTOP 3" with lore "&4&l1&r&7. &c%{top.n1}% &8(&4$%{penge.roulette::%{uuid::%{top.r1}%}%}%&8)||&4&l2&r&7. &c%{top.n2}% &8(&4$%{penge.roulette::%{uuid::%{top.r2}%}%}%&8)||&4&l3&r&7. &c%{top.n3}% &8(&4$%{penge.roulette::%{uuid::%{top.r3}%}%}%&8)" to be unstealable
  50. stop
  51. format slot 11 of player with black stained glass pane named "&8&lSORT" with lore "&7Chance&8: &750%%||&7Ganger&8: &72x" to close then run [ make player execute command "bet sort"]
  52. format slot 13 of player with red stained glass pane named "&4&lRØD" with lore "&7Chance&8: &750%%||&7Ganger&8: &72x" to close then run [ make player execute command "bet rød"]
  53. format slot 15 of player with light green stained glass pane named "&2&lGRØN" with lore "&7Chance&8: &73%%||&7Ganger&8: &710x" to close then run [ make player execute command "bet grøn"]
  54. if arg-1 is "Rød":
  55. if {roulette::%player%} is true:
  56. send "&8[&4Casino&8] &7Du kan kun bet 1 gang."
  57. stop
  58. if {nummer.roulette::%player%} is set:
  59. send "&8[&4Casino&8] &7Du kan kun bet 1 gang."
  60. stop
  61. set {nummer.roulette::%player%} to "Rød"
  62. close player's inventory
  63. send "&8&m--------------------------"
  64. send ""
  65. send "&7Skriv det antal penge du vil bette i chatten."
  66. send "&7Skriv 'Nej' i chatten, hvis du ikke vil."
  67. send ""
  68. send "&8&m--------------------------"
  69. if arg-1 is "Grøn":
  70. if {roulette::%player%} is true:
  71. send "&8[&4Casino&8] &7Du kan kun bet 1 gang."
  72. stop
  73. if {nummer.roulette::%player%} is set:
  74. send "&8[&4Casino&8] &7Du kan kun bet 1 gang."
  75. stop
  76. set {nummer.roulette::%player%} to "Grøn"
  77. close player's inventory
  78. send "&8&m--------------------------"
  79. send ""
  80. send "&7Skriv det antal penge du vil bette i chatten."
  81. send "&7Skriv 'Nej' i chatten, hvis du ikke vil."
  82. send ""
  83. send "&8&m--------------------------"
  84. if arg-1 is "Sort":
  85. if {roulette::%player%} is true:
  86. send "&8[&4Casino&8] &7Du kan kun bet 1 gang."
  87. stop
  88. if {nummer.roulette::%player%} is set:
  89. send "&8[&4Casino&8] &7Du kan kun bet 1 gang."
  90. stop
  91. set {nummer.roulette::%player%} to "Sort"
  92. close player's inventory
  93. send "&8&m--------------------------"
  94. send ""
  95. send "&7Skriv det antal penge du vil bette i chatten."
  96. send "&7Skriv 'Nej' i chatten, hvis du ikke vil."
  97. send ""
  98. send "&8&m--------------------------"
  99. on chat:
  100. cancel event
  101. if {nummer.roulette::%player%} is "Rød":
  102. if message is "Nej":
  103. delete {nummer.roulette::%player%}
  104. send "&8[&4Casino&8] &7Du gik ud af rouletten."
  105. stop
  106. else:
  107. execute player command "bete rød %message%"
  108. stop
  109. if {nummer.roulette::%player%} is "Sort":
  110. if message is "Nej":
  111. delete {nummer.roulette::%player%}
  112. send "&8[&4Casino&8] &7Du gik ud af rouletten."
  113. stop
  114. else:
  115. execute player command "bete sort %message%"
  116. stop
  117. if {nummer.roulette::%player%} is "Grøn":
  118. if message is "Nej":
  119. delete {nummer.roulette::%player%}
  120. send "&8[&4Casino&8] &7Du gik ud af rouletten."
  121. stop
  122. else:
  123. execute player command "bete grøn %message%"
  124. stop
  125. else:
  126. stop
  127. command /bete [<text>] [<number>]:
  128. trigger:
  129. if {roulette.igang} is set:
  130. send "&8[&4Casino&8] &7Du kan ikke joine når den allerede er igang."
  131. delete {nummer.roulette::%player%}
  132. stop
  133. if {roulette::%player%} is set:
  134. send "&8[&4Casino&8] &7Du er allerede joinet"
  135. delete {nummer.roulette::%player%}
  136. stop
  137. else:
  138. if arg-1 is not set:
  139. stop
  140. else:
  141. if arg-2 is not set:
  142. stop
  143. else:
  144. if arg-1 is "rød" or "red":
  145. if arg-2 is a number:
  146. if player's balance is greater or equal to arg-2:
  147. subtract arg-2 from player's balance
  148. send "&8[&4Casino&8] &7Du joinede &cRød&7 med et bet på &a$%arg-2%"
  149. set {rød.roulette::%player%} to true
  150. delete {sort.roulette::%player%}
  151. delete {grøn.roulette::%player%}
  152. set {roulette::%player%} to true
  153. set {penge.roulette::%player%} to arg-2
  154. delete {nummer.roulette::%player%}
  155. stop
  156. else:
  157. send "&8[&4Casino&8] &7Du har ikke nok penge"
  158. stop
  159. else:
  160. send "&8[&4Casino&8] &7Du skal skrive et rigtigt tal."
  161. stop
  162. if arg-1 is "sort" or "black":
  163. if arg-2 is a number:
  164. if player's balance is greater or equal to arg-2:
  165. subtract arg-2 from player's balance
  166. send "&8[&4Casino&8] &7Du joinede &8Sort&7 med et bet på &a$%arg-2%"
  167. set {sort.roulette::%player%} to true
  168. delete {rød.roulette::%player%}
  169. delete {grøn.roulette::%player%}
  170. set {roulette::%player%} to true
  171. set {penge.roulette::%player%} to arg-2
  172. delete {nummer.roulette::%player%}
  173. stop
  174. else:
  175. send "&8[&4Casino&8] &7Du har ikke nok penge"
  176. stop
  177. else:
  178. send "&8[&4Casino&8] &7Du skal skrive et rigtigt tal."
  179. stop
  180. if arg-1 is "grøn" or "green":
  181. if arg-2 is a number:
  182. if player's balance is greater or equal to arg-2:
  183. subtract arg-2 from player's balance
  184. send "&8[&4Casino&8] &7Du joinede &aGrøn&7 med et bet på &a$%arg-2%"
  185. set {grøn.roulette::%player%} to true
  186. delete {rød.roulette::%player%}
  187. delete {sort.roulette::%player%}
  188. set {roulette::%player%} to true
  189. set {penge.roulette::%player%} to arg-2
  190. delete {nummer.roulette::%player%}
  191. stop
  192. else:
  193. send "&8[&4Casino&8] &7Du har ikke nok penge"
  194. stop
  195. else:
  196. send "&8[&4Casino&8] &7Du skal skrive et rigtigt tal."
  197. stop
  198. command /rollsetloc [<text>]:
  199. permission: *
  200. permission message: &cDu har ikke adgang til dette.
  201. trigger:
  202. if arg-1 is "1":
  203. set {roll.location::1} to location of target block
  204. send "&8[&4Casino&8] &7Du satte punkt 1"
  205. if arg-1 is "2":
  206. set {roll.location::2} to location of target block
  207. send "&8[&4Casino&8] &7Du satte punkt 2"
  208. if arg-1 is "3":
  209. set {roll.location::3} to location of target block
  210. send "&8[&4Casino&8] &7Du satte punkt 3"
  211. if arg-1 is "4":
  212. set {roll.location::4} to location of target block
  213. send "&8[&4Casino&8] &7Du satte punkt 4"
  214. if arg-1 is "5":
  215. set {roll.location::5} to location of target block
  216. send "&8[&4Casino&8] &7Du satte punkt 5"
  217. every 35 seconds:
  218. if {roulette.igang1} is set:
  219. stop
  220. else:
  221. set {_size} to (size of {roulette::*})
  222. if {_size} is greater or equal to 5:
  223. execute console command "roll"
  224. else:
  225. execute console command "rolle"
  226. command /rolle:
  227. permission: *
  228. trigger:
  229. set {_size} to (size of {roulette::*})
  230. if {_size} is not set:
  231. set {_size} to 0
  232. loop players in radius 10 around location of {roll.location::3}:
  233. set {_Mangler} to 5
  234. set {_Spillere} to (size of {roulette::*})
  235. reduce {_Mangler} by {_Spillere}
  236. send "&8[&4Casino&8] &7Der mangler &c%{_Mangler}%&7 spillere før at rouletten går igang." to loop-player
  237. command /roll:
  238. permission: *
  239. permission message: &cDu har ikke adgang til dette.
  240. trigger:
  241. if player has permission "*":
  242. if player has permission "*":
  243. set {roulette.igang1} to true
  244. send "&8[&4Casino&8] &7Du har startet rouletten."
  245. broadcast "&8[&4Casino&8] &7Rouletten starter om 1 minut, skriv &c/bet&7 for at bette."
  246. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  247. wait 30 seconds
  248. loop players in radius 25 around location of {roll.location::3}:
  249. send "&8[&4Casino&8] &7Rouletten starter om 30 sekunder." to loop-player
  250. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  251. wait 15 seconds
  252. loop players in radius 15 around location of {roll.location::3}:
  253. send "&8[&4Casino&8] &7Rouletten starter om 15 sekunder." to loop-player
  254. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  255. wait 5 seconds
  256. loop players in radius 10 around location of {roll.location::3}:
  257. send "&8[&4Casino&8] &7Rouletten starter om 10 sekunder." to loop-player
  258. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  259. wait 5 seconds
  260. loop players in radius 8 around location of {roll.location::3}:
  261. send "&8[&4Casino&8] &7Rouletten starter om 5 sekunder." to loop-player
  262. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  263. wait 1 seconds
  264. loop players in radius 8 around location of {roll.location::3}:
  265. send "&8[&4Casino&8] &7Rouletten starter om 4 sekunder." to loop-player
  266. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  267. wait 1 seconds
  268. loop players in radius 8 around location of {roll.location::3}:
  269. send "&8[&4Casino&8] &7Rouletten starter om 3 sekunder." to loop-player
  270. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  271. wait 1 seconds
  272. loop players in radius 8 around location of {roll.location::3}:
  273. send "&8[&4Casino&8] &7Rouletten starter om 2 sekunder." to loop-player
  274. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  275. wait 1 seconds
  276. loop players in radius 8 around location of {roll.location::3}:
  277. send "&8[&4Casino&8] &7Rouletten starter om 1 sekund." to loop-player
  278. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  279. wait 1 second
  280. loop players in radius 8 around location of {roll.location::3}:
  281. send "&8[&4Casino&8] &7Rouletten er nu startet." to loop-player
  282. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  283. set {_reel1} to a random integer between 0 and 100
  284. set {roulette.igang} to true
  285. if {_reel1} is between 0 and 48:
  286. loop 10 times:
  287. add 1 to {_resut1}
  288. delete {_rew}
  289. chance of 10%:
  290. set {_rew} to true
  291. set block at {roll.location::1} to red stained clay
  292. set block at {roll.location::2} to black stained clay
  293. set block at {roll.location::3} to red stained clay
  294. set block at {roll.location::4} to black stained clay
  295. set block at {roll.location::5} to red stained clay
  296. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  297. wait 10 ticks
  298. if {_rew} is true:
  299. set block at {roll.location::1} to green stained clay
  300. else:
  301. set block at {roll.location::1} to black stained clay
  302. set block at {roll.location::2} to red stained clay
  303. set block at {roll.location::3} to black stained clay
  304. set block at {roll.location::4} to red stained clay
  305. set block at {roll.location::5} to black stained clay
  306. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  307. wait 10 ticks
  308. set block at {roll.location::1} to red stained clay
  309. if {_rew} is true:
  310. set block at {roll.location::2} to green stained clay
  311. else:
  312. set block at {roll.location::2} to black stained clay
  313. set block at {roll.location::3} to red stained clay
  314. set block at {roll.location::4} to black stained clay
  315. set block at {roll.location::5} to red stained clay
  316. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  317. wait 10 ticks
  318. set block at {roll.location::1} to black stained clay
  319. set block at {roll.location::2} to red stained clay
  320. if {_rew} is true:
  321. set block at {roll.location::3} to green stained clay
  322. else:
  323. set block at {roll.location::3} to black stained clay
  324. set block at {roll.location::4} to red stained clay
  325. set block at {roll.location::5} to black stained clay
  326. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  327. wait 10 ticks
  328. set block at {roll.location::1} to red stained clay
  329. set block at {roll.location::2} to black stained clay
  330. set block at {roll.location::3} to red stained clay
  331. if {_rew} is true:
  332. set block at {roll.location::4} to green stained clay
  333. else:
  334. set block at {roll.location::4} to black stained clay
  335. set block at {roll.location::5} to red stained clay
  336. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  337. wait 10 ticks
  338. set block at {roll.location::1} to black stained clay
  339. set block at {roll.location::2} to red stained clay
  340. set block at {roll.location::3} to black stained clay
  341. set block at {roll.location::4} to red stained clay
  342. if {_rew} is true:
  343. set block at {roll.location::5} to green stained clay
  344. else:
  345. set block at {roll.location::5} to black stained clay
  346. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  347. wait 10 ticks
  348. if {_resut1} is 10:
  349. delete {roulette.igang}
  350. delete {roulette.igang1}
  351. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  352. wait 1 ticks
  353. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  354. wait 1 ticks
  355. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  356. loop all players:
  357. if {roulette::%loop-player%} is true:
  358. if {sort.roulette::%loop-player%} is true:
  359. add {penge.roulette::%loop-player%} to loop-player's balance
  360. add {penge.roulette::%loop-player%} to loop-player's balance
  361. send "&8[&4Casino&8] &7Du vandt dit bet på &8Sort&7 og fik &a$%{penge.roulette::%loop-player%} * 2%&7 ud af det"
  362. delete {roulette::%loop-player%}
  363. delete {penge.roulette::%loop-player%}
  364. else:
  365. send "&8[&4Casino&8] &7Du tabte dit bet på &a$%{penge.roulette::%loop-player%}%"
  366. delete {roulette::%loop-player%}
  367. delete {penge.roulette::%loop-player%}
  368. stop
  369. if {_reel1} is between 49 and 95:
  370. loop 10 times:
  371. add 1 to {_resut2}
  372. delete {_rew}
  373. chance of 10%:
  374. set {_rew} to true
  375. set block at {roll.location::1} to black stained clay
  376. set block at {roll.location::2} to red stained clay
  377. set block at {roll.location::3} to black stained clay
  378. set block at {roll.location::4} to red stained clay
  379. set block at {roll.location::5} to black stained clay
  380. wait 10 ticks
  381. if {_rew} is true:
  382. set block at {roll.location::1} to green stained clay
  383. else:
  384. set block at {roll.location::1} to red stained clay
  385. set block at {roll.location::2} to black stained clay
  386. set block at {roll.location::3} to red stained clay
  387. set block at {roll.location::4} to black stained clay
  388. set block at {roll.location::5} to red stained clay
  389. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  390. wait 10 ticks
  391. set block at {roll.location::1} to black stained clay
  392. if {_rew} is true:
  393. set block at {roll.location::2} to green stained clay
  394. else:
  395. set block at {roll.location::2} to red stained clay
  396. set block at {roll.location::3} to black stained clay
  397. set block at {roll.location::4} to red stained clay
  398. set block at {roll.location::5} to black stained clay
  399. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  400. wait 10 ticks
  401. set block at {roll.location::1} to red stained clay
  402. set block at {roll.location::2} to black stained clay
  403. if {_rew} is true:
  404. set block at {roll.location::3} to green stained clay
  405. else:
  406. set block at {roll.location::3} to red stained clay
  407. set block at {roll.location::4} to black stained clay
  408. set block at {roll.location::5} to red stained clay
  409. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  410. wait 10 ticks
  411. set block at {roll.location::1} to black stained clay
  412. set block at {roll.location::2} to red stained clay
  413. set block at {roll.location::3} to black stained clay
  414. if {_rew} is true:
  415. set block at {roll.location::4} to green stained clay
  416. else:
  417. set block at {roll.location::4} to red stained clay
  418. set block at {roll.location::5} to black stained clay
  419. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  420. wait 10 ticks
  421. set block at {roll.location::1} to red stained clay
  422. set block at {roll.location::2} to black stained clay
  423. set block at {roll.location::3} to red stained clay
  424. set block at {roll.location::4} to black stained clay
  425. if {_rew} is true:
  426. set block at {roll.location::5} to green stained clay
  427. else:
  428. set block at {roll.location::5} to red stained clay
  429. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  430. wait 10 ticks
  431. if {_resut2} is 10:
  432. loop all players:
  433. if {roulette::%loop-player%} is true:
  434. if {rød.roulette::%loop-player%} is true:
  435. add {penge.roulette::%loop-player%} to loop-player's balance
  436. add {penge.roulette::%loop-player%} to loop-player's balance
  437. send "&8[&4Casino&8] &7Du vandt dit bet på &cRød&7 og fik &a$%{penge.roulette::%loop-player%} * 2%&7 ud af det"
  438. delete {roulette::%loop-player%}
  439. delete {penge.roulette::%loop-player%}
  440. else:
  441. send "&8[&4Casino&8] &7Du tabte dit bet på &a$%{penge.roulette::%loop-player%}%"
  442. delete {roulette::%loop-player%}
  443. delete {penge.roulette::%loop-player%}
  444. delete {roulette.igang}
  445. delete {roulette.igang1}
  446. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  447. wait 1 ticks
  448. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  449. wait 1 ticks
  450. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  451. stop
  452. else:
  453. loop 10 times:
  454. add 1 to {_resut3}
  455. set block at {roll.location::1} to red stained clay
  456. set block at {roll.location::2} to black stained clay
  457. set block at {roll.location::3} to red stained clay
  458. set block at {roll.location::4} to black stained clay
  459. set block at {roll.location::5} to red stained clay
  460. wait 10 ticks
  461. if {_resut3} is 10:
  462. set block at {roll.location::1} to black stained clay
  463. set block at {roll.location::2} to red stained clay
  464. set block at {roll.location::3} to black stained clay
  465. set block at {roll.location::4} to red stained clay
  466. set block at {roll.location::5} to black stained clay
  467. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  468. wait 10 ticks
  469. set block at {roll.location::1} to red stained clay
  470. set block at {roll.location::2} to black stained clay
  471. set block at {roll.location::3} to red stained clay
  472. set block at {roll.location::4} to black stained clay
  473. set block at {roll.location::5} to red stained clay
  474. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  475. wait 10 ticks
  476. set block at {roll.location::1} to green stained clay
  477. set block at {roll.location::2} to red stained clay
  478. set block at {roll.location::3} to black stained clay
  479. set block at {roll.location::4} to red stained clay
  480. set block at {roll.location::5} to black stained clay
  481. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  482. wait 10 ticks
  483. set block at {roll.location::1} to red stained clay
  484. set block at {roll.location::2} to green stained clay
  485. set block at {roll.location::3} to red stained clay
  486. set block at {roll.location::4} to black stained clay
  487. set block at {roll.location::5} to red stained clay
  488. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  489. wait 10 ticks
  490. set block at {roll.location::1} to black stained clay
  491. set block at {roll.location::2} to red stained clay
  492. set block at {roll.location::3} to green stained clay
  493. set block at {roll.location::4} to red stained clay
  494. set block at {roll.location::5} to black stained clay
  495. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  496. else:
  497. set block at {roll.location::1} to black stained clay
  498. set block at {roll.location::2} to red stained clay
  499. set block at {roll.location::3} to black stained clay
  500. set block at {roll.location::4} to red stained clay
  501. set block at {roll.location::5} to black stained clay
  502. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  503. wait 10 ticks
  504. set block at {roll.location::1} to red stained clay
  505. set block at {roll.location::2} to black stained clay
  506. set block at {roll.location::3} to red stained clay
  507. set block at {roll.location::4} to black stained clay
  508. set block at {roll.location::5} to red stained clay
  509. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  510. wait 10 ticks
  511. set block at {roll.location::1} to black stained clay
  512. set block at {roll.location::2} to red stained clay
  513. set block at {roll.location::3} to black stained clay
  514. set block at {roll.location::4} to red stained clay
  515. set block at {roll.location::5} to black stained clay
  516. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  517. wait 10 ticks
  518. set block at {roll.location::1} to red stained clay
  519. set block at {roll.location::2} to black stained clay
  520. set block at {roll.location::3} to red stained clay
  521. set block at {roll.location::4} to black stained clay
  522. set block at {roll.location::5} to red stained clay
  523. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  524. wait 10 ticks
  525. set block at {roll.location::1} to black stained clay
  526. set block at {roll.location::2} to red stained clay
  527. set block at {roll.location::3} to black stained clay
  528. set block at {roll.location::4} to red stained clay
  529. set block at {roll.location::5} to black stained clay
  530. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  531. wait 10 ticks
  532. if {_resut3} is 10:
  533. loop all players:
  534. if {roulette::%loop-player%} is true:
  535. if {grøn.roulette::%loop-player%} is true:
  536. loop 10 times:
  537. add {penge.roulette::%loop-player%} to loop-player's balance
  538. send "&8[&4Casino&8] &7Du vandt dit bet på &aGrøn&7 og fik &a$%{penge.roulette::%loop-player%} * 10%&7 ud af det"
  539. delete {roulette::%loop-player%}
  540. delete {penge.roulette::%loop-player%}
  541. else:
  542. send "&8[&4Casino&8] &7Du tabte dit bet på &a$%{penge.roulette::%loop-player%}%"
  543. delete {roulette::%loop-player%}
  544. delete {penge.roulette::%loop-player%}
  545. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  546. wait 1 ticks
  547. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  548. wait 1 ticks
  549. play raw sound "note.pling" at location of {roll.location::3} with pitch 2 volume 8
  550. delete {roulette.igang}
  551. delete {roulette.igang1}
  552. else:
  553. send "&8[&4Casino&8] &7Der skal være mere end 5 med i rouletten."
  554. stop
  555. else:
  556. send "&8[&4Casino&8] &7Der er allerede et roll igang"
  557. stop
  558. on quit:
  559. delete {rød.roulette::%player%}
  560. delete {grøn.roulette::%player%}
  561. delete {sort.roulette::%player%}
  562. delete {roulette::%player%}
  563. delete {nummer.roulette::%player%}
  564. if {penge.roulette::%player%} is set:
  565. add {penge.roulette::%player%} to player's balance
  566. delete {penge.roulette::%player%}
Advertisement
Add Comment
Please, Sign In to add comment