knugi

Pkt przyklad [Skript] [Minecraft]

Nov 11th, 2014
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. variables:
  2. {lvl.%player%} = 1
  3. {pkt.%player%} = 0
  4. {cb.%player%} = true
  5.  
  6. on script load:
  7. set {etl2} to 120
  8. set {etl3} to 240
  9. set {etl4} to 360
  10. set {etl5} to 480
  11.  
  12. command /kamien [<text>]:
  13. trigger:
  14. if arg 1 is not set:
  15. send "&9Informacje o dropie itemow ze stone'a"
  16. send "&b======================================"
  17. send "&9Diament 0.75%% y(50)"
  18. command /pkt [<text>]:
  19. trigger:
  20. if arg 1 is not set:
  21. if {lvl.%player%} is 1:
  22. set {_send} to "%{etl2} - {pkt.%player%}%"
  23. if {lvl.%player%} is 2:
  24. set {_send} to "%{etl3} - {pkt.%player%}%"
  25. if {lvl.%player%} is 3:
  26. set {_send} to "%{etl4} - {pkt.%player%}%"
  27. if {lvl.%player%} is 4:
  28. set {_send} to "%{etl5} - {pkt.%player%}%"
  29. send "&9Aktulanie posiadasz &c%{pkt.%player%}% &9pkt czyli &c%{lvl.%player%}% &9poziom do nastepnego poziomu brakuje ci &c%{_send}%&9 pkt."
  30.  
  31. on break of stone:
  32. chance of 50%:
  33. set {_pktdiamond} to random integer from 1 to 20
  34. give diamond to the player
  35. add {_pktdiamond} to {pkt.%player%}
  36. send "&6Wydobyles: &bDiament &f+%{_pktdiamond}% exp !"
  37. if {lvl.%player%} is 1:
  38. if {pkt.%player%} is larger than or equal to {etl2}:
  39. add 1 to {lvl.%player%}
  40. send "&9Awansowales na poziom &c%{lvl.%player%}%&9."
  41. stop
  42. if {lvl.%player%} is 2:
  43. if {pkt.%player%} is larger than or equal to {etl3}:
  44. add 1 to {lvl.%player%}
  45. send "&9Awansowales na poziom &c%{lvl.%player%}%&9."
  46. stop
  47. if {lvl.%player%} is 3:
  48. if {pkt.%player%} is larger than or equal to {etl4}:
  49. add 1 to {lvl.%player%}
  50. send "&9Awansowales na poziom &c%{lvl.%player%}%&9."
  51. stop
Advertisement
Add Comment
Please, Sign In to add comment