dawid26pl

ChestDrop

Jul 14th, 2015
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. #===========================#
  2. # ChestDrop by dawid26pl #
  3. # Version 1.0 #
  4. # Skript 2.1.2 #
  5. #===========================#=============================================#===============
  6. # Zakaz podszywania sie pod tworce i kopiowania skryptu dla celow wlasnych# Wzorowane na skrypcie
  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 remove < Item > -&cUsuwanie item'a z losowania" to the player
  34. send "&4/chestdrop reload -&c Resetowanie skryptu" to the player
  35. send "&4Lista item'ow z losowania:&c %{chestdropdrop::*}%" to the player
  36. send "&4Pamietaj ze aby dodac item musi byc po angielsku!." to the player
  37. send "&4Skript by dawid26pl" to the player
  38. else if arg 1 is "add":
  39. if arg 2 is not set:
  40. send "&4Blad:&cMusisz wpisac nazwe przedmiotu!" to the player
  41. else:
  42. add arg 2 to {chestdropdrop::*}
  43. send "&aDodano ' %arg 2% ' do dropu z skrzyni" to the player
  44. else if arg 1 is "remove":
  45. if argument 2 is not set:
  46. send "&4Blad:&cMusisz wpisac nazwe przedmiotu!" to the player
  47. else:
  48. remove arg 2 from {chestdropdrop::*}
  49. send "&cUsunieto ' %arg 2% ' z dropu z skrzyni" to the player
  50. else if arg 1 is "reload":
  51. execute console command "/skript reload %{name}%"
Advertisement
Add Comment
Please, Sign In to add comment