Advertisement
Guest User

Skrypt na limit koxów, refili i pereł

a guest
Feb 19th, 2017
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  1. wait 0.1 second
  2. if amount of golden apple:1 in player's inventory is greater than 3:
  3. set {_amount} to amount of golden apple:1 in player's inventory
  4. set {_amountend} to {_amount}-3
  5. set {_add} to "%{_amountend}% golden apple:1"
  6. add "%{_add}%" parsed as item to player's enderchest
  7. remove all golden apple:1 from player's inventory
  8. add 10 golden apple:1 to player's inventory
  9. message "&9[&4&lFIRE&eKOX&r&9] &c&lOsiagnieto maksymalna ilosc koxow w twoim ekwipunku. Zostawiono 3, reszte odlozono do twojego enderchestu."
  10. if amount of golden apple:0 in player's inventory is greater than 12:
  11. set {_amount} to amount of golden apple:0 in player's inventory
  12. set {_amountend} to {_amount}-12
  13. set {_add} to "%{_amountend}% golden apple:0"
  14. add "%{_add}%" parsed as item to player's enderchest
  15. remove all golden apple:0 from player's inventory
  16. add 12 golden apple:0 to player's inventory
  17. message "&9[&4&lFIRE&eKOX&r&9] &c&lOsiagnieto maksymalna ilosc refili w twoim ekwipunku. Zostawiono 12, reszte odlozono do twojego enderchestu."
  18. if amount of ender pearl in player's inventory is greater than 3:
  19. set {_amount} to amount of ender pearl in player's inventory
  20. set {_amountend} to {_amount}-3
  21. set {_add} to "%{_amountend}% ender pearl"
  22. add "%{_add}%" parsed as item to player's enderchest
  23. remove all ender pearl from player's inventory
  24. add 3 ender pearl to player's inventory
  25. message "&9[&4&lFIRE&eKOX&r&9] &c&lOsiagnieto maksymalna ilosc ender perel w twoim ekwipunku. Zostawiono 3, reszte odlozono do twojego enderchestu."
  26.  
  27. on inventory close:
  28. if amount of golden apple:1 in player's inventory is greater than 3:
  29. set {_amount} to amount of golden apple:1 in player's inventory
  30. set {_amountend} to {_amount}-3
  31. set {_add} to "%{_amountend}% golden apple:1"
  32. add "%{_add}%" parsed as item to player's enderchest
  33. remove all golden apple:1 from player's inventory
  34. add 3 golden apple:1 to player's inventory
  35. message "&9[&4&lFIRE&eKOX&r&9] &c&lOsiagnieto maksymalna ilosc koxow w twoim ekwipunku. Zostawiono 3, reszte odlozono do twojego enderchestu."
  36. if amount of golden apple:0 in player's inventory is greater than 12:
  37. set {_amount} to amount of golden apple:0 in player's inventory
  38. set {_amountend} to {_amount}-12
  39. set {_add} to "%{_amountend}% golden apple:0"
  40. add "%{_add}%" parsed as item to player's enderchest
  41. remove all golden apple:0 from player's inventory
  42. add 12 golden apple:0 to player's inventory
  43. message "&9[&4&lFIRE&eKOX&r&9] &c&lOsiagnieto maksymalna ilosc refili w twoim ekwipunku. Zostawiono 3, reszte odlozono do twojego enderchestu."
  44. if amount of ender pearl in player's inventory is greater than 3:
  45. set {_amount} to amount of ender pearl in player's inventory
  46. set {_amountend} to {_amount}-3
  47. set {_add} to "%{_amountend}% ender pearl"
  48. add "%{_add}%" parsed as item to player's enderchest
  49. remove all ender pearl from player's inventory
  50. add 3 ender pearl to player's inventory
  51. message "&9[&4&lFIRE&eKOX&r&9] &c&lOsiagnieto maksymalna ilosc ender perel w twoim ekwipunku. Zostawiono 3, reszte odlozono do twojego enderchestu."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement