Advertisement
pz_neko

Untitled

Aug 13th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. on Damage:
  2. victim is a zombie
  3. if victim's health - Damage is less than 0:
  4. cancel event
  5. heal victim
  6. set {_b} to random integer between 1 and 100
  7. if {_b} is between 1 and 60:
  8. give {Drop.10::%name of victim%} to attacker
  9. if {_b} is between 61 and 90:
  10. give {Drop.12::%name of victim%} to attacker
  11. if {_b} is between 91 and 99:
  12. give {Drop.14::%name of victim%} to attacker
  13. if {_b} is 100:
  14. give {Drop.16::%name of victim%} to attacker
  15. else:
  16. stop
  17.  
  18. on RightClick on a monster:
  19. Player is Sneaking
  20. Player has permission "admin.sk"
  21. set {MobName.%Player%} to name of the clicked entity
  22. delete {SetExp.%Player%}
  23. open chest with 3 row named "&A&lSetting" to player
  24. loop 27 time:
  25. add 1 to {_n}
  26. set {_b} to {_n}-1
  27. if {_b} is not between 9 and 16:
  28. set slot {_b} of Player's current inventory to dark gray glass pane
  29. else if {_b} is 10 or 12 or 14 or 16:
  30. set slot {_b} of Player's current inventory to {Drop.%{_b}%::%name of the clicked entity%}
  31. else if {_b} is 9:
  32. set slot {_b} of Player's current inventory to white glass pane named "&7&lDrop Chance&8&l: &e&l60%%"
  33. else if {_b} is 11:
  34. set slot {_b} of Player's current inventory to light blue glass pane named "&7&lDrop Chance&8&l: &e&l30%%"
  35. else if {_b} is 13:
  36. set slot {_b} of Player's current inventory to magenta stained glass pane named "&7&lDrop Chance&8&l: &e&l9%%"
  37. else if {_b} is 15:
  38. set slot {_b} of Player's current inventory to yellow stained glass pane named "&7&lDrop Chance&8&l: &e&l1%%"
  39. set slot 26 of Player's current inventory to glowstone dust named "&7&lEXP&8&l: &e&l%{EXP::%name of the clicked entity%}%"
  40.  
  41.  
  42. on inventory Click:
  43. if name of Player's current inventory contains "&A&lSetting":
  44. if clicked item is dark gray glass pane or white glass pane or light blue glass pane or magenta stained glass pane or yellow stained glass pane:
  45. cancel event
  46. if clicked slot is 26:
  47. close inventory to Player
  48. set {SetExp.%Player%} to true
  49. send "&8[&7System&8] &7Chatに経験値を入力してください"
  50.  
  51. on chat:
  52. if {SetExp.%Player%} is true:
  53. cancel event
  54. delete {SetExp.%Player%}
  55. set {EXP::%{MobName.%Player%}%} to message
  56. send "&8[&7System&8] &7経験値を設定しました"
  57.  
  58. on inventory close:
  59. name of Player's current inventory contains "&A&lSetting"
  60. loop 16 time:
  61. add 1 to {_n}
  62. if {_n} is 10 or 12 or 14 or 16:
  63. set {Drop.%{_n}%::%{MobName.%Player%}%} to slot {_n} of player's current inventory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement