FlupMC

Untitled

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