Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /bloodmarket [<player>] [<number>] [<player>]:
- permission: skript.bloodmarket
- description: Universal Blood Market Command
- aliases: /bm
- trigger:
- if arg 1 is not set:
- message "{@Blood.P} &e/bloodmarket <captain> <heart amount> <chosen player>"
- else if arg 2 is not set:
- message "{@Blood.P} &e/bloodmarket <captain> <heart amount> <chosen player>"
- else if arg 3 is not set:
- message "{@Blood.P} &e/bloodmarket <captain> <heart amount> <chosen player>"
- else:
- wait 1 tick
- if {Captain.CaptainOf::%arg 1%} is set:
- set {_Amount} to ("%arg 2%" parsed as number)
- if {_Amount} is not set:
- message "{@Blood.P} &e/bloodmarket <captain> <heart amount> <chosen player>"
- else:
- set {_Captain} to ("%arg 1%" parsed as player)
- set (maximum health of {_Captain}) to (health of {_Captain}-{_Amount})
- set {_Player} to arg 3
- set {_TeamNumber} to {Captain.CaptainOf::%arg 1%}
- set {Teams.InTeam::%{_Player}%} to {_TeamNumber}
- add {_Player} to {Team.%{_TeamNumber}%::*}
- command "/scoreboard teams join UHC%{_TeamNumber}% %{_Player}%"
- execute console command "/warp w%{_TeamNumber}% %arg 3%"
- broadcast "{@Blood.P} &e%arg 3% &bhas been chosen by &e%arg 1% &bfor &e%{_Amount}% hearts"
- else:
- message "{@Blood.P} &e%arg 1% &bis not a captain"
- command /bmhearts [<text>]:
- permission: skript.bloodmarket.hearts
- description: Gives the hearts
- trigger:
- if arg 1 is not set:
- message "{@Blood.P} &e/bmhearts <amount>"
- else:
- set {_Amount} to ("%arg 1%" parsed as integer)
- if {_Amount} is not set:
- message "{@Blood.P} &e/bmhearts <amount>"
- else:
- loop {Captains::*}:
- loop {Captain.%loop-value%::*}:
- set {_Captain} to ("%loop-value-2%" parsed as player)
- set maximum health of {_Captain} to {_Amount}
- message "{@P} Set marketer health to &e%arg 1%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement