Hsuwan

Untitled

Dec 7th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. on command:
  2. command is "equipw"
  3. wait 3 ticks
  4. if inventory name of player's current inventory contains "的裝備0-0":
  5. loop 4 times:
  6. set {_no} to loop-number - 1
  7. set {_lore::*} to uncolored lore of slot {_no} of player's current inventory split at "||"
  8. loop {_lore::*}:
  9. if {_lore::%loop-index%} contains "頭飾" or "頭盔" or "衣服" or "衣甲" or "褲子" or "護腿" or "靴子" or "勾玉" or "飾品":
  10. set {_idex} to loop-index parsed as integer
  11. set line {_idex} of lore of slot {_no} of player's current inventory to "&e&l&f"
  12. loop 4 times:
  13. set {_no} to loop-number + 8
  14. set {_lore::*} to uncolored lore of slot {_no} of player's current inventory split at "||"
  15. loop {_lore::*}:
  16. if {_lore::%loop-index%} contains "頭飾" or "頭盔" or "衣服" or "衣甲" or "褲子" or "護腿" or "靴子" or "勾玉" or "飾品":
  17. set {_idex} to loop-index parsed as integer
  18. set line {_idex} of lore of slot {_no} of player's current inventory to "&e&l&f"
Add Comment
Please, Sign In to add comment