Advertisement
pz_neko

Untitled

Aug 12th, 2019
408
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 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. if chance of 50%:
  7. give {Drop.10::%name of victim%} to attacker
  8. else if chance of 30%:
  9. give {Drop.12::%name of victim%} to attacker
  10. else if chance of 10%:
  11. give {Drop.14::%name of victim%} to attacker
  12. else if chance of 1%:
  13. give {Drop.16::%name of victim%} to attacker
  14. else:
  15. stop
  16.  
  17. on RightClick on a monster:
  18. Player is Sneaking
  19. Player has permission "admin.sk"
  20. set {MobName.%Player%} to name of event-entity
  21. open chest with 3 row named "&A&lSetting" to player
  22. loop 27 time:
  23. add 1 to {_n}
  24. if {_n}-1 is not 10 or 12 or 14 or 16:
  25. set slot {_n}-1 of Player's current inventory to dark gray glass pane
  26. else:
  27. set {_b} to {_n}-1
  28. set slot {_b} of Player's current inventory to {Drop.%{_b}%::%name of event-entity%}
  29.  
  30. on inventory Click:
  31. if name of Player's current inventory contains "&A&lSetting":
  32. if clicked item is dark gray glass pane:
  33. cancel event
  34.  
  35. on inventory close:
  36. name of Player's current inventory contains "&A&lSetting"
  37. loop 16 time:
  38. add 1 to {_n}
  39. if {_n} is 10 or 12 or 14 or 16:
  40. set {Drop.%{_n}%::%{MobName.%Player%}%} to slot {_n} of player's current inventory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement