grantygames

Untitled

Jul 3rd, 2015
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. on sign edit:
  2. if player is op:
  3. if line 1 is "reparar":
  4. set line 1 to "&1[Reparar]"
  5. set line 2 to "&aItem"
  6. set line 3 to "&aPreco"
  7. if line 4 is set:
  8. set line 4 to "&f%line 4%"
  9. else:
  10. set line 4 to "&f0"
  11. on rightclick on sign:
  12. if line 1 is "&1[Reparar]":
  13. if line 2 is "&aItem":
  14. if line 3 is "&aPreco":
  15. set {_preco} to line 4
  16. replace all "&f" with "" in {_preco}
  17. set {_precow} to "%{_preco}%"
  18. remove 1 from {_precow}
  19. if player's balance is greater than {_precow}:
  20. remove {_preco} from player's balance
  21. repair player's held item
  22. send "&aItem reparado"
Advertisement
Add Comment
Please, Sign In to add comment