on join: if {cookie::health::%player%} is not set: set {cookie::health::%player%} to 100 if {cookie::eatCookies::%player%} is not set: set {cookie::eatCookies::%player%} to 0 on eat a cookie: cancel event remove 1 cookie from player's inventory if {cookie::health::%player%} >= 200: send "&7Co za duzo, to nie zdrowo!" if chance of 30%: apply nausea 2 to the player for 60 second if chance of 20%: apply slowness 1 to the player for 60 seconds if chance of 10%: apply poison 1 to the player for 60 seconds if chance of 5%: kill player stop else: if chance of 5%: send "&7Wypadki i pomylki zawsze sie zdarzaja..." apply poison 2 to the player for 30 seconds apply hunger 2 to the player for 30 seconds stop else: if {cookie::eatCookies::%player%} = 5: send "&7Za czeste jedzenie ciastek, tez jest zle :>" if chance of 10%: apply poison 2 to the player for 30 seconds apply hunger 2 to the player for 30 seconds stop else: add 1 to {cookie::eatCookies::%player%} set {_x} to {cookie::health::%player%} set {_x2} to random integer between 10 and 30 set {_x3} to {_x}/{_x2} add {_x3} to {cookie::health::%player%} send "&7Wszystko w odpowiednich ilosciach, jest zdrowe :-)" command /cookiehealthcheck: trigger: if {cookie::health::%player%} < 130: send "&7Poziom punktow zdrowia jest w normie!" stop else: if {cookie::health::%player%} > 80: send "&7Poziom punktow zdrowia jest w normie!" stop else: if {cookie::health::%player%} > 130: if {cookie::health::%player%} < 150: send "&7Poziom punktow zdrowia jest lekko podwyzszony!" else: send "&7Nie jedz tyle!" else: if {cookie::health::%player%} < 60: send "&7Zjedz ciastko!" else: send "&7To ty jeszcze zyjesz?" stop every 1 minutes: loop all players: if {cookie::eatCookies::%loop-player%} > 0: remove 1 from {cookie::eatCookies::%loop-player%} if {cookie::health::%loop-player%} < 130: set {_x4} to random integer between 5 and 15 remove {_x4} from {cookie::health::%loop-player%} else: if {cookie::health::%loop-player%} > 80: set {_x5} to random integer between 5 and 15 remove {_x5} from {cookie::health::%loop-player%} else: if {cookie::health::%loop-player%} > 130: if {cookie::health::%loop-player%} < 150: set {_x6} to random integer between 5 and 15 remove {_x6} from {cookie::health::%loop-player%} if chance of 5%: apply nausea 2 to the loop-player for 15 second if chance of 5%: apply slowness 2 to the loop-player for 15 second else: set {_x7} to random integer between 10 and 20 remove {_x7} from {cookie::health::%loop-player%} if chance of 10%: apply nausea 2 to the loop-player for 15 second if chance of 10%: apply slowness 2 to the loop-player for 15 second else: if {cookie::health::%loop-player%} < 60: set {_x8} to random integer between 10 and 20 remove {_x8} from {cookie::health::%loop-player%} if chance of 10%: apply poison 2 to the loop-player for 15 second else: set {_x9} to random integer between 10 and 20 remove {_x9} from {cookie::health::%loop-player%} if chance of 20%: apply poison 3 to the loop-player for 30 second on respawn: set {cookie::health::%player%} to 100 set {cookie::eatCookies::%player%} to 5 on damage: if damage is caused by fall: if {cookie::health::%victim%} > 130: if {cookie::health::%victim%} < 150: if chance of 5%: apply nausea 2 to the victim for 15 second if chance of 5%: apply slowness 2 to the victim for 15 second else: if chance of 10%: apply nausea 2 to the victim for 15 second if chance of 10%: apply slowness 2 to the victim for 15 second else: if {cookie::health::%victim%} < 60: if chance of 10%: apply poison 2 to the victim for 15 second else: if chance of 20%: apply poison 3 to the victim for 30 second