0123Atsuse

Untitled

May 15th, 2021
725
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. command /swap:
  2.     trigger:
  3.        if {skilluse.%player%} = 1:
  4.             if {%player%::debug} is true:
  5.                 send "swap"
  6.             stop
  7.         wait 1 tick
  8.         delete {AttackBonus.%player%}
  9.         delete {Attack.%player%}
  10.         lore of player's tool is set
  11.         while true:
  12.            add 1 to {_line}
  13.             set {_lore} to line {_line} of lore of player's tool
  14.             if {_lore} is not set:
  15.                exit 2 sections
  16.             add {_lore} to {_lore::*}
  17.             delete {_lore}
  18.         loop {_lore::*}:
  19.            add 1 to {_inx}
  20.             if the first index of "&c⚔攻撃力&7>>>&c" in loop-value is not -1:
  21.                set {_atk} to (subtext of loop-value from 14 to length of loop-value) parsed as number
  22.                 set {Attack.%player%} to {_atk}
  23.         if {Attack.%player%} is set:
  24.             {%player%::debug} is true
  25.             message "武器攻撃力 %{Attack.%player%}%"
RAW Paste Data