Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /swap:
- trigger:
- if {skilluse.%player%} = 1:
- if {%player%::debug} is true:
- send "swap"
- stop
- wait 1 tick
- delete {AttackBonus.%player%}
- delete {Attack.%player%}
- lore of player's tool is set
- while true:
- add 1 to {_line}
- set {_lore} to line {_line} of lore of player's tool
- if {_lore} is not set:
- exit 2 sections
- add {_lore} to {_lore::*}
- delete {_lore}
- loop {_lore::*}:
- add 1 to {_inx}
- if the first index of "&c⚔攻撃力&7>>>&c" in loop-value is not -1:
- set {_atk} to (subtext of loop-value from 14 to length of loop-value) parsed as number
- set {Attack.%player%} to {_atk}
- if {Attack.%player%} is set:
- {%player%::debug} is true
- message "武器攻撃力 %{Attack.%player%}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement