Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on inventory close:
- if {戰爭參賽者::%player%} is set:
- stop
- if {對決.座標.%player%} is set:
- stop
- if inventory name of player's current inventory contains "container.crafting":
- loop 9 times:
- set {_ln1} to loop-number
- set {_lore::*} to uncolored lore of slot ({_ln1} - 1) of player split at "||"
- loop {_lore::*}:
- if {_lore::%loop-index%} contains "等級限制":
- loop 50000 times:
- set {_ln2} to loop-number-2
- if {_lore::%loop-index%} contains "%50000 - loop-number-2%":
- if player's level is smaller than or equal to (49999 - loop-number-2):
- drop slot ({_ln1} - 1) of player at player
- set slot ({_ln1} - 1) of player to air
- send "&f該物品擁有等級限制,請先達到&9%50000 - loop-number-2%&f再使用。"
- exit loop
- on pick up:
- if {戰爭參賽者::%player%} is set:
- stop
- if {對決.座標.%player%} is set:
- stop
- set {_ei} to event-item
- set {_lore::*} to uncolored lore of event-item split at "||"
- wait 1 ticks
- loop {_lore::*}:
- if {_lore::%loop-index%} contains "等級限制":
- loop 50000 times:
- if {_lore::%loop-index%} contains "%50000 - loop-number%":
- if player's level is smaller than or equal to (49999 - loop-number):
- loop 9 times:
- set {_ln2} to loop-number-2
- if slot ({_ln2} - 1) of player is event-item:
- loop 36 times:
- set {_ln3} to loop-number-3
- if {_ln3} is more than or equal to 10:
- if slot ({_ln3} - 1) of player is a air:
- set slot ({_ln2} - 1) of player to air
- set slot ({_ln3} - 1) of player to 1 of event-item
- send "獲得%name of slot ({_ln3} - 1) of player%"
- stop
- on tool change:
- if {戰爭參賽者::%player%} is set:
- stop
- if {對決.座標.%player%} is set:
- stop
- set {_lore::*} to uncolored lore of player's tool split at "||"
- loop {_lore::*}:
- if {_lore::%loop-index%} contains "等級限制":
- loop 50000 times:
- if {_lore::%loop-index%} contains "%50000 - loop-number%":
- if player's level is smaller than or equal to (49999 - loop-number):
- loop 36 times:
- set {_ln2} to loop-number-2
- if {_ln2} is more than or equal to 10:
- if slot ({_ln2} - 1) of player is a air:
- set slot ({_ln2} - 1) of player to player's tool
- set player's tool to air
- send "&f該物品擁有等級限制,請先達到&9%50000 - loop-number-1%&f才能交易或使用。"
- stop
- set {_random} to a random integer between 9 and 35
- set {_slot} to slot {_random} of player
- set slot {_random} of player to player's tool
- set player's tool to {_slot}
- send "&f該物品擁有等級限制,請先達到&9%50000 - loop-number-1%&f再使用。"
- damage player by 100000
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement