Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on Damage:
- victim is a zombie
- if victim's health - Damage is less than 0:
- cancel event
- heal victim
- set {_b} to random integer between 1 and 100
- if {_b} is between 1 and 60:
- give {Drop.10::%name of victim%} to attacker
- if {_b} is between 61 and 90:
- give {Drop.12::%name of victim%} to attacker
- if {_b} is between 91 and 99:
- give {Drop.14::%name of victim%} to attacker
- if {_b} is 100:
- give {Drop.16::%name of victim%} to attacker
- else:
- stop
- on RightClick on a monster:
- Player is Sneaking
- Player has permission "admin.sk"
- set {MobName.%Player%} to name of the clicked entity
- delete {SetExp.%Player%}
- open chest with 3 row named "&A&lSetting" to player
- loop 27 time:
- add 1 to {_n}
- set {_b} to {_n}-1
- if {_b} is not between 9 and 16:
- set slot {_b} of Player's current inventory to dark gray glass pane
- else if {_b} is 10 or 12 or 14 or 16:
- set slot {_b} of Player's current inventory to {Drop.%{_b}%::%name of the clicked entity%}
- else if {_b} is 9:
- set slot {_b} of Player's current inventory to white glass pane named "&7&lDrop Chance&8&l: &e&l60%%"
- else if {_b} is 11:
- set slot {_b} of Player's current inventory to light blue glass pane named "&7&lDrop Chance&8&l: &e&l30%%"
- else if {_b} is 13:
- set slot {_b} of Player's current inventory to magenta stained glass pane named "&7&lDrop Chance&8&l: &e&l9%%"
- else if {_b} is 15:
- set slot {_b} of Player's current inventory to yellow stained glass pane named "&7&lDrop Chance&8&l: &e&l1%%"
- set slot 26 of Player's current inventory to glowstone dust named "&7&lEXP&8&l: &e&l%{EXP::%name of the clicked entity%}%"
- on inventory Click:
- if name of Player's current inventory contains "&A&lSetting":
- 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:
- cancel event
- if clicked slot is 26:
- close inventory to Player
- set {SetExp.%Player%} to true
- send "&8[&7System&8] &7Chatに経験値を入力してください"
- on chat:
- if {SetExp.%Player%} is true:
- cancel event
- delete {SetExp.%Player%}
- set {EXP::%{MobName.%Player%}%} to message
- send "&8[&7System&8] &7経験値を設定しました"
- on inventory close:
- name of Player's current inventory contains "&A&lSetting"
- loop 16 time:
- add 1 to {_n}
- if {_n} is 10 or 12 or 14 or 16:
- set {Drop.%{_n}%::%{MobName.%Player%}%} to slot {_n} of player's current inventory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement