Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /anunciar [<text>] [<integer>]:
- trigger:
- if {Anuncio.%player%::ITEM} is set:
- if player has permission "Anunciar.Vip":
- if arg 1 is set:
- if arg 2 is set:
- if player has 1 %arg 1%:
- set {Anuncio.%player%::ITEM} to arg 1
- set {Anuncio.%player%::PREÇO} to arg 2
- remove 1 %arg 1% from player's inventory
- send "&f&l[&a&lAnuncio&f&l] &a&l> &fVocê colocou o item %arg 1% para vender pelo preço de %arg 2%"
- broadcast " "
- broadcast " &f&l[&a&lAnuncio&f&l] &a&l> &fO Player %player% está anunciando um(a) %arg 1% por %arg 2% Coins!"
- send json of " &f&l[&a&lAnuncio&f&l] &3&l> &4&lCLICKE AQUI PARA COMPRAR" run "/ac comprar %player%" to all players
- brodcast " "
- wait 1 minutes
- give 1 %arg 1% to player
- clear {Anuncio.%player%::ITEM}
- clear {Anuncio.%player%::PREÇO}
- stop
- else:
- send "&f&l[&a&lAnuncio&f&l] &a&l> &fVocê não possue esse item para anunciar !"
- stop
- else:
- send "&f&l[&a&lAnuncio&f&l] &a&l> &fUse /anunciar ITEM PREÇO"
- stop
- else:
- send "&f&l[&a&lAnuncio&f&l] &a&l> &fUse /anunciar ITEM PREÇO"
- stop
- else:
- send "&4&lSem permissão"
- stop
- else:
- send "&f&l[&a&lAnuncio&f&l] &a&l> &fVocê já está anunciando um item"
- stop
- command /ac comprar [<offlineplayer>]:
- trigger:
- if {Anuncio.%arg 1%::ITEM} is set:
- if player's account is more or equal to %{Anuncio.%arg 1%::PREÇO}%:
- subtract %{Anuncio.%arg 1%::PREÇO}% from player's account
- send "&f&l[&a&lAnuncio&f&l] &a&l> &fVocê comprou um %{Anuncio.%arg 1%::ITEM}% do %arg %"
- give 1 %{Anuncio.%arg 1%::ITEM}% to player
- add %{Anuncio.%arg 1%::PREÇO}% to the arg 1's account
- clear {Anuncio.%arg 1%::ITEM}
- clear {Anuncio.%arg 1%::PREÇO}
- stop
- else:
- send "&f&l[&a&lAnuncio&f&l] &a&l> &fVocê não tem money suficiente necessário: %{Anuncio.%arg 1%::PREÇO}% Coins"
- stop
- else:
- send "&f&l[&a&lAnuncio&f&l] &a&l> &fEssa compra já expirou ou já foi comprada!"
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement