function removeKebab(p: player, v: integer):
{bagim-li.%{_p}%} is greater than or equal to {_v}:
remove {_v} from {bagim-li.%{_p}%}
{bagim-li.%{_p}%} is 0:
send "Ölüyorsun, uyuşturucu çekmedin." to {_p}
wait 2 second
kill {_p}
rightclick with nether star:
name of tool is "Uyuşturucu":
{bagim.%player%} is not set:
set {bagim.%player%} to true
set {bagim-li.%player%} to 0
remove 1 of tool from player
remove blindness from player
apply blindness 1 to player for 10 second
{bagim-li.%player%} is less than 100:
add 10 to {bagim-li.%player%}
{bagim-li.%player%} is greater than or equal to 100:
set {bagim-li.%player%} to 100
send "Fazla çekiyorsun, bırak bunları."
stop
send "Uyuşturucu çektin."
command bagimlilik:
trigger:
{bagim.%player%} is true:
send "Bağımlılık: %{bagim-li.%player%}%"
else:
send "Bağımlı değilsin."
death of player:
{bagim.%player%} is true:
# {bagim-li.%player%} is greater than 5:
# remove 5 from {bagim-li.%player%}
# else:
# set {bagim-li.%player%} to 1
delete {bagim.%player%} # ölünce bağımlılığı kaldırır
every 3 hour:
loop all players:
{bagim.%loop-player%} is true:
send "Uyuşturucunun etkisi azalıyor." to loop-player
removeKebab(loop-player, 5)