Drake_PL

[Skrypt] Drake_PL-Losuj

Apr 12th, 2014
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. #=-=-=-=-=-=-=-=-=-=-=-=-=#
  2. #Autor - Drake_PL
  3. #Wszelkie prawa zastrzezone !
  4. #=-=-=-=-=-=-=-=-=-=-=-=-=#
  5. options:
  6.  
  7. # W pole nagroada wpisac id/nazwe przedmiotu #
  8. item1: nagroda
  9. item2: nagroda
  10. item3: nagroda
  11. item4: nagroda
  12. item5: nagroda
  13. item6: nagroda
  14.  
  15. # Item wymagany do losowania #
  16. dolos: Enchanted Golden Apple
  17.  
  18. #=======================================#
  19. # Czesc STRZEZONA prawami autorskimi #
  20. #=======================================#
  21.  
  22. # Komenda /losuj (nie ma obecnie wiecej komend #
  23.  
  24. command /losuj:
  25. trigger:
  26. if player has {@dolos}:
  27. set {randomnumber} to a random integer between 1 and 6
  28. remove {@dolos} from player
  29. send "&7Losowanie rozpoczelo sie"
  30. wait 2 seconds
  31. if {randomnumber} is 1:
  32. execute console command "give %player% {@item1} 1"
  33. send "&aGratulacje wygrales {@item1}"
  34. if {randomnumber} is 2:
  35. execute console command "give %player% {@item2} 1"
  36. send "&aGratulacje wygrales {@item2}"
  37. if {randomnumber} is 3:
  38. execute console command "give %player% {@item3} 1"
  39. send "&aGratulacje wygrales {@item3}"
  40. if {randomnumber} is 4:
  41. execute console command "give %player% {@item4} 1"
  42. send "&aGratulacje wygrales {@item4}"
  43. if {randomnumber} is 5:
  44. execute console command "give %player% {@item5} 1"
  45. send "&aGratulacje wygrales {@item5}"
  46. if {randomnumber} is 6:
  47. execute console command "give %player% {@item6} 1"
  48. send "&aGratulacje wygrales {@item6}"
  49. stop
  50. else:
  51. send "&7Nie masz &e{@dolos}!"
Advertisement
Add Comment
Please, Sign In to add comment