dawid26pl

ChestDrop v2.0

Jul 15th, 2015
437
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.25 KB | None | 0 0
  1. #===========================#
  2. # ChestDrop by dawid26pl #
  3. # Version 2.0 #
  4. # Skript 2.1.2 #
  5. #===========================#=============================================#
  6. # Zakaz podszywania sie pod tworce i kopiowania skryptu dla celow wlasnych#
  7. #=========================================================================#
  8. on load:
  9. set {dropchance} to 1.5
  10. set {name} to "ChestDrop.sk"
  11. set {tag} to "&c[&4Chest&cDrop]&a"
  12. set {autor} to "&4&ldawid26pl&f"
  13. wait 6 tick
  14. broadcast "%{tag}% Skrypt Zaladowany"
  15. on mine stone:
  16. chance of {dropchance}%:
  17. give 1 chest of unbreaking 5 with lore "&aOtworz ta skrzynie prawym przyciskiem||&eDostaniesz fajne rzeczy" named "%{tag}%" to the player
  18. on rightclick:
  19. if player is holding chest of unbreaking 5:
  20. give a random item of {chestdropdrop::*} to player
  21. send "%{tag}% Dostales item" to player
  22. remove 1 chest of unbreaking 5 from player
  23. command /chestdrop [<text="help">] [<items>]:
  24. permission: chestdrop.admin
  25. permission message: %{tag}% Nie masz dostepu
  26. trigger:
  27. if arg 1 is not set:
  28. send "&4Blad:&cNieznana komenda,lub zla nazwa item'a !" to the player
  29. stop
  30. else if arg 1 is "help":
  31. send "&c ==--- %{tag}% &c---==="
  32. send "&4/chestdrop add < Item > -&cDodanie nowego item'a do losowania." to the player
  33. send "&4/chestdrop drop < Drop > -&cZmienienie dropu skrzynek,drop to %{dropchance}%." to the player
  34. send "&4/chestdrop remove < Item > -&cUsuwanie item'a z losowania" to the player
  35. send "&4/chestdrop reload -&c Resetowanie skryptu" to the player
  36. send "&4Lista item'ow z losowania:&c %{chestdropdrop::*}%" to the player
  37. send "&4Pamietaj ze aby dodac item musi byc po angielsku!." to the player
  38. send "&4Skript by dawid26pl" to the player
  39. else if arg 1 is "drop":
  40. if arg 2 is not set:
  41. send "&4Blad:&cNie podano dropi" to the player
  42. else:
  43. set {dropchance} to arg 2
  44. send "&aZmieniono drop skrzyni na %arg 2% " to the player
  45. else if arg 1 is "add":
  46. if arg 2 is not set:
  47. send "&4Blad:&cMusisz wpisac nazwe przedmiotu!" to the player
  48. else:
  49. add arg 2 to {chestdropdrop::*}
  50. send "&aDodano ' %arg 2% ' do dropu z skrzyni" to the player
  51. else if arg 1 is "remove":
  52. if argument 2 is not set:
  53. send "&4Blad:&cMusisz wpisac nazwe przedmiotu!" to the player
  54. else:
  55. remove arg 2 from {chestdropdrop::*}
  56. send "&cUsunieto ' %arg 2% ' z dropu z skrzyni" to the player
  57. else if arg 1 is "reload":
  58. execute console command "/skript reload %{name}%"
Advertisement
Add Comment
Please, Sign In to add comment