Guest User

Untitled

a guest
Dec 24th, 2014
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. #------------------------------#
  2. #|Autor: Zeluss |
  3. #|Skype: hermeL1233 |
  4. #|Masz problem pisz na skype ;)|
  5. #------------------------------#
  6. command /kg:
  7. trigger:
  8. open chest with 2 rows named "&9&lSkript.pl" to player
  9. wait 1 tick
  10. format slot 0 of player with 32 of cookies named "&7>> &aDarmowe Ciastko &7<<" with lore "&6Kliknij &aa dostaniesz Ciastko :)" to close then run "daj %player% 1"
  11. wait 1 tick
  12. format slot 1 of player with 64 obsidian named "&3Diax &9za Obsydian" with lore "&6Wymiana: &a64 Obsydianu za 1 diax" to close then run "daj %player% 2"
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23. command /daj [<player>] [<integer>]:
  24. executable by: console
  25. trigger:
  26. if arg 2 is 1:
  27. give 32 cookie to player-arg's inventory
  28. send "&6Dostales &7Ciastka." to player-arg
  29. if arg 2 is 2:
  30. if player-arg has 64 obsidian:
  31. subtract 64 obsidian from player-arg's inventory
  32. give 1 diamond to player-arg's inventory
  33. send "&aWymiana zostala wykonana pomyslnie :)." to player-arg # A tutaj jak ktos juz sie wymienil :)
  34. else:
  35. send "&cNie posiadasz 64 obsydianu." to player-arg #Tu mozesz ustawic wiadomosc jak ktos nie ma 64 obsydianu
Advertisement
Add Comment
Please, Sign In to add comment