Guest User

Skrypt dla adi19820

a guest
Apr 21st, 2014
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. options:
  2. #Od ktorego poziomu mozna uzywac zlotego miecza?
  3. Zloty: 5
  4. #Od ktorego poziomu mozna uzywac kamiennego miecza?
  5. Kamienny: 10
  6. #Od ktorego poziomu mozna uzywac zelaznego miecza?
  7. Zelazny: 20
  8. #Od ktorego poziomu mozna uzywac diamentowego miecza?
  9. Diamentowy: 30
  10. #Skroty do komendy /lvl np. /poziom lub /level
  11. Skroty: poziom, level
  12. #Uprawnienie do komendy /lvl
  13. Uprawnienie: lvl.pokaz
  14. variables:
  15. #Poziom startowy
  16. {lvl.%player%} = 0
  17. on damage:
  18. if attacker is holding gold sword:
  19. if {lvl.%attacker%} is greater than or equal to {@Zloty}:
  20. stop
  21. else:
  22. cancel event
  23. send "&cNiestety nie mozesz uzywac tego przedmiotu. Musisz najpierw osiagnac &e{@Zloty} poziom&c!" to attacker
  24. if attacker is holding stone sword:
  25. if {lvl.%attacker%} is greater than or equal to {@Kamienny}:
  26. stop
  27. else:
  28. cancel event
  29. send "&cNiestety nie mozesz uzywac tego przedmiotu. Musisz najpierw osiagnac &e{@Kamienny} poziom&c!" to attacker
  30. if attacker is holding iron sword:
  31. if {lvl.%attacker%} is greater than or equal to {@Zelazny}:
  32. stop
  33. else:
  34. cancel event
  35. send "&cNiestety nie mozesz uzywac tego przedmiotu. Musisz najpierw osiagnac &e{@Zelazny} poziom&c!" to attacker
  36. if attacker is holding diamond sword:
  37. if {lvl.%attacker%} is greater than or equal to {@Diamentowy}:
  38. stop
  39. else:
  40. cancel event
  41. send "&cNiestety nie mozesz uzywac tego przedmiotu. Musisz najpierw osiagnac &e{@Diamentowy} poziom&c!" to attacker
  42. on death of player:
  43. send "&aGratulacje, zabiles %victim% i zdobyles 1 poziom!" to attacker
  44. add 1 to {lvl.%attacker%}
  45. send "&aAktualny poziom: &6%{lvl.%attacker%}%" to attacker
  46. command /lvl:
  47. permission: {@Uprawnienie}
  48. permission message: &cNie masz uprawnien!
  49. aliases: {@Skroty}
  50. usage: &6/lvl
  51. description: Pokazuje Twoj poziom
  52. trigger:
  53. send "&aTwoj poziom: &6%{lvl.%player%}%"
  54. send "&aMozesz uzywac przedmiotow:"
  55. send "&6Drewniany Miecz"
  56. if {lvl.%player%} is greater than or equal to {@Zloty}:
  57. send "&6Zloty Miecz"
  58. if {lvl.%player%} is greater than or equal to {@Kamienny}:
  59. send "&6Kamienny Miecz"
  60. if {lvl.%player%} is greater than or equal to {@Zelazny}:
  61. send "&6Zelazny Miecz"
  62. if {lvl.%player%} is greater than or equal to {@Diamentowy}:
  63. send "&6Diamentowy Miecz"
Advertisement
Add Comment
Please, Sign In to add comment