Advertisement
pz_neko

Untitled

Aug 13th, 2019
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 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 70:
  8. give {Drop.10::%name of victim%} to attacker
  9. if {_b} is between 71 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&l70%%"
  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&l20%%"
  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. Command /exp <text> <number>:
  43. permission: admin.sk
  44. trigger:
  45. set {EXP::%arg-1%} to arg-2
  46. send "&8[&7System&8] &7経験値を設定しました"
  47.  
  48.  
  49. on inventory Click:
  50. if name of Player's current inventory contains "&A&lSetting":
  51. 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 or glowstone dust:
  52. cancel event
  53.  
  54. on inventory close:
  55. name of Player's current inventory contains "&A&lSetting"
  56. loop 16 time:
  57. add 1 to {_n}
  58. if {_n} is 10 or 12 or 14 or 16:
  59. set {Drop.%{_n}%::%{MobName.%Player%}%} to slot {_n} of player's current inventory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement