FlupMC

Untitled

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