every 6 minutes:
loop all players:
if {susuzluk.%loop-player%} is not set:
set {susuzluk.%loop-player%} to 20
if {susuzluk.%loop-player%} is not less than 1:
remove 1 from {susuzluk.%loop-player%}
set {_sgosterge} to ""
set {_sgosterge2} to ""
loop {susuzluk.%loop-player%} times:
set {_sgosterge} to "%{_sgosterge}%|"
loop 20-{susuzluk.%loop-player%} times:
set {_sgosterge2} to "%{_sgosterge2}%|"
send "Susuzluk: [&3%{_sgosterge}%&8%{_sgosterge2}%<white>]" to loop-player
every 30 seconds:
loop all players:
if {susuzluk.%loop-player%} is less than 1:
damage loop-player by 0.5
send "<pink>Su icmeniz gerekiyor!" to loop-player
on right click with bottle of water:
if {susuzluk.%player%} is 20:
send "<yellow>Su icmenize gerek yok." to player
stop
if {susuzluk.%player%} is bigger than 20:
set {susuzluk.%player%} to 20
send "<yellow>Su icmenize gerek yok." to player
stop
if {susuzluk.%player%} is 10:
wait 4 seconds
player's tool is glass bottle
set {susuzluk.%player%} to 20
set {_sgosterge} to ""
set {_sgosterge2} to ""
loop {susuzluk.%player%} times:
set {_sgosterge} to "%{_sgosterge}%|"
loop 20-{susuzluk.%player%} times:
set {_sgosterge2} to "%{_sgosterge2}%|"
send "Susuzluk: [&3%{_sgosterge}%&8%{_sgosterge2}%<white>]" to player
stop
if {susuzluk.%player%} is bigger than 10:
wait 4 seconds
player's tool is glass bottle
set {susuzluk.%player%} to 20
set {_sgosterge} to ""
set {_sgosterge2} to ""
loop {susuzluk.%player%} times:
set {_sgosterge} to "%{_sgosterge}%|"
loop 20-{susuzluk.%player%} times:
set {_sgosterge2} to "%{_sgosterge2}%|"
send "Susuzluk: [&3%{_sgosterge}%&8%{_sgosterge2}%<white>]" to player
stop
if {susuzluk.%player%} is smaller than 10:
wait 4 seconds
player's tool is glass bottle
add 10 to {susuzluk.%player%}
set {_sgosterge} to ""
set {_sgosterge2} to ""
loop {susuzluk.%player%} times:
set {_sgosterge} to "%{_sgosterge}%|"
loop 20-{susuzluk.%player%} times:
set {_sgosterge2} to "%{_sgosterge2}%|"
send "Susuzluk: [&3%{_sgosterge}%&8%{_sgosterge2}%<white>]" to player
command /susuzluk <player> <int>:
permission: admin.susuzluk
trigger:
set {susuzluk.%arg 1%} to arg 2