Advertisement
Guest User

Untitled

a guest
Oct 20th, 2014
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. command /bloodmarket [<player>] [<number>] [<player>]:
  2. permission: skript.bloodmarket
  3. description: Universal Blood Market Command
  4. aliases: /bm
  5. trigger:
  6. if arg 1 is not set:
  7. message "{@Blood.P} &e/bloodmarket <captain> <heart amount> <chosen player>"
  8. else if arg 2 is not set:
  9. message "{@Blood.P} &e/bloodmarket <captain> <heart amount> <chosen player>"
  10. else if arg 3 is not set:
  11. message "{@Blood.P} &e/bloodmarket <captain> <heart amount> <chosen player>"
  12. else:
  13. wait 1 tick
  14. if {Captain.CaptainOf::%arg 1%} is set:
  15.  
  16. set {_Amount} to ("%arg 2%" parsed as number)
  17. if {_Amount} is not set:
  18. message "{@Blood.P} &e/bloodmarket <captain> <heart amount> <chosen player>"
  19. else:
  20. set {_Captain} to ("%arg 1%" parsed as player)
  21. set (maximum health of {_Captain}) to (health of {_Captain}-{_Amount})
  22. set {_Player} to arg 3
  23. set {_TeamNumber} to {Captain.CaptainOf::%arg 1%}
  24. set {Teams.InTeam::%{_Player}%} to {_TeamNumber}
  25. add {_Player} to {Team.%{_TeamNumber}%::*}
  26. command "/scoreboard teams join UHC%{_TeamNumber}% %{_Player}%"
  27. execute console command "/warp w%{_TeamNumber}% %arg 3%"
  28. broadcast "{@Blood.P} &e%arg 3% &bhas been chosen by &e%arg 1% &bfor &e%{_Amount}% hearts"
  29. else:
  30. message "{@Blood.P} &e%arg 1% &bis not a captain"
  31.  
  32. command /bmhearts [<text>]:
  33. permission: skript.bloodmarket.hearts
  34. description: Gives the hearts
  35. trigger:
  36. if arg 1 is not set:
  37. message "{@Blood.P} &e/bmhearts <amount>"
  38. else:
  39. set {_Amount} to ("%arg 1%" parsed as integer)
  40. if {_Amount} is not set:
  41. message "{@Blood.P} &e/bmhearts <amount>"
  42. else:
  43. loop {Captains::*}:
  44. loop {Captain.%loop-value%::*}:
  45. set {_Captain} to ("%loop-value-2%" parsed as player)
  46. set maximum health of {_Captain} to {_Amount}
  47. message "{@P} Set marketer health to &e%arg 1%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement