ryanlopes

Pedido

Jul 8th, 2015
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. # Pedido de LuthKun ≧◠ᴥ◠≦
  2. # Link do pedido: http://gamersboard.com.br/topic/7572-corrida-de-porco/
  3.  
  4. variables:
  5. CorridaPorco = false
  6. Entrei.%player% = false
  7. PorcoMsg = false
  8.  
  9. options:
  10. Prefixo: &3&l[CORRIDA DE PORCO]
  11.  
  12. command /porco [<text=atual>]:
  13. trigger:
  14. if arg 1 is "admin":
  15. if player has permission "porco.admin":
  16. send "&c/porco setsaida - &aPara setar a saida"
  17. send "&c/porco setlobby - &aPara setar o Lobby de Espera"
  18. send "&c/porco setganhador - &aPara setar o ganhador"
  19. send "&c/porco setloc - &aPara setar o local do Evento"
  20. send "&c/porco entrar - &aPara entrar no Evento"
  21. if arg 1 is "iniciar":
  22. set {PorcoMsg} to true
  23. set {CorridaPorco} to true
  24. while {PorcoMsg} is true:
  25. broadcast "{@Prefixo}&d Corrida de porco iniciou"
  26. broadcast "{@Prefixo}&d Use /porco entrar"
  27. wait 20 seconds
  28. wait 3 minutes
  29. set {PorcoMsg} to false
  30. if arg 1 is "setsaida":
  31. if player has permission "porco.setsaida":
  32. set {CorridaPorco.saida} to player's location
  33. send "{@Prefixo}&a Você setou a saida do evento."
  34. if arg 1 is "setlobby":
  35. if player has permission "porco.setlobby":
  36. set {CorridaPorco.lobby} to player's location
  37. send "{@Prefixo}&a Você setou o lobby do evento."
  38. if arg 1 is "setganhador":
  39. if player has permission "porco.setganhador":
  40. execute console command "eco give 10000"
  41. execute console command "kit evento %player%"
  42. if arg 1 is "setloc":
  43. if player has permission "porco.setloc":
  44. set {CorridaPorco.Evento} to player's location
  45. send "{@Prefixo}&a Você setou o lugar do evento"
  46. if arg 1 is "entrar":
  47. if {CorridaPorco} is true:
  48. if player has enough space for 36 air:
  49. teleport player to {CorridaPorco.lobby}
  50. send "{@Prefixo} &aVocê entrou na corrida de porco aguarde até ser teletransportado a corrida"
  51. wait 3 minutes
  52. teleport player to {CorridaPorco.Evento}
  53. give 1 carrot on a stick to player
  54. make the player ride a saddled pig
  55. send "{@Prefixo}&a Boa sorte !" to player
  56. broadcast "{@Prefixo}&c Que venca o mais rápido u-u"
  57. set {Entrei.%player%} to true
  58.  
  59. on quit:
  60. if {Entrei.%player%} is true:
  61. clear inventory of player
  62. set {Entrei.%player%} to false
Advertisement
Add Comment
Please, Sign In to add comment