Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on sign edit:
- if player is op:
- if line 1 is "reparar":
- set line 1 to "&1[Reparar]"
- set line 2 to "&aItem"
- set line 3 to "&aPreco"
- if line 4 is set:
- set line 4 to "&f%line 4%"
- else:
- set line 4 to "&f0"
- on rightclick on sign:
- if line 1 is "&1[Reparar]":
- if line 2 is "&aItem":
- if line 3 is "&aPreco":
- set {_preco} to line 4
- replace all "&f" with "" in {_preco}
- set {_precow} to "%{_preco}%"
- remove 1 from {_precow}
- if player's balance is greater than {_precow}:
- remove {_preco} from player's balance
- repair player's held item
- send "&aItem reparado"
Advertisement
Add Comment
Please, Sign In to add comment