Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on sign change:
- if line 1 is "Loja":
- if line 2 is set:
- if line 3 contains "C" or "V" or "Gratis":
- if line 4 is set:
- if player has permission "shop.admin":
- send "&aLoja criada com sucesso"
- else:
- send "&cVocê não tem permissão para executar esta placa."
- cancel event
- on rightclick on sign:
- if line 1 is "Loja":
- if line 2 is set:
- if line 3 contains "Gratis":
- if line 4 is set:
- set {_b} to line 3
- set {_i} to line 4 parsed as item type
- set {_q} to line 2 parsed as number
- loop {_q} times:
- give {_q} {_i}
- send "&aVocê comprou 1 %{_i}% por $0"
- stop
- if line 3 contains "C" and ":":
- if line 4 is set:
- set {_b} to line 3
- set {_b::*} to {_b} split at "C"
- set {_b::*} to {_b::2} split at " "
- set {_b::*} to {_b::2} split at ":"
- set {_i} to line 4 parsed as item type
- set {_q} to line 2 parsed as number
- set {_bt} to {_b::1} parsed as number
- if player's money is more than or equal to {_bt}:
- remove {_bt} from player's balance
- loop {_q} times:
- give {_i} to player
- send "&aVocê comprou %{_i}% por $%{_bt}%"
- stop
- else:
- send "&cVocê não tem dinheiro suficiente"
- stop
- if line 3 contains "C":
- if line 4 is set:
- set {_b} to line 3
- set {_b::*} to {_b} split at "C"
- set {_b::*} to {_b::2} split at " "
- set {_i} to line 4 parsed as item type
- set {_q} to line 2 parsed as number
- set {_bt} to {_b::2} parsed as number
- if player's money is more than or equal to {_bt}:
- remove {_bt} from player's balance
- loop {_q} times:
- give {_i} to player
- send "&aVocê comprou %{_i}% por $%{_bt}%"
- stop
- else:
- send "&cVocê não tem dinheiro suficiente"
- stop
- on left click on sign:
- if line 1 contains "Loja":
- if line 2 is set:
- if line 3 is set:
- if line 3 contains ":" and "V":
- if line 4 is set:
- set {_b} to line 3
- set {_b::*} to {_b} split at ":"
- set {_b::*} to {_b::2} split at " "
- set {_i} to line 4 parsed as item type
- set {_q} to line 2 parsed as number
- set {_bt} to {_b::2} parsed as number
- if tool of player is {_i}:
- add {_bt} to player's balance
- remove {_i} from player
- send "&aVocê Vendeu %{_i}% por $%{_bt}%"
- else:
- send "&cVoce precisa esta com o item em maos para vender"
- stop
- if line 3 contains "V":
- if line 4 is set:
- set {_b} to line 3
- set {_b::*} to {_b} split at "V"
- set {_b::*} to {_b::2} split at " "
- set {_i} to line 4 parsed as item type
- tool of player is {_i}:
- set {_q} to line 2 parsed as number
- set {_bt} to {_b::2} parsed as number
- remove {_i} from player
- send "&aVocê vendeu %{_i}% por $%{_bt}%"
- add {_bt} to player's balance
- else:
- send "&cVocê não tem itens suficientes para vender."
- stop
Advertisement
Add Comment
Please, Sign In to add comment