FlupMC

Untitled

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