# ANTY-BOT-GUI # on connect: set {antybot::%player%} to true set {_a} to random integer between 0 and 8 open chest with 1 rows named "&aKliknij zieloną wełne!" to player loop 9 times: if "%inventory name of player's current inventory%" is "&aKliknij zieloną wełne!": set player's current inventory's slot loop-number -1 to red wool named "&cJestem botem!" set player's current inventory's slot {_a} to lime wool named "&aNie jestem botem!" on inventory close: if {antybot::%player%} is true: set {_a} to random integer between 0 and 8 open chest with 1 rows named "&aKliknij zieloną wełne!" to player loop 9 times: if "%inventory name of player's current inventory%" is "&aKliknij zieloną wełne!": set player's current inventory's slot loop-number -1 to red wool named "&cJestem botem!" set player's current inventory's slot {_a} to lime wool named "&aNie jestem botem!" on inventory click: if "%inventory name of player's current inventory%" is "&aKliknij zieloną wełne!": cancel event if "%clicked slot%" is "%{_a}%": close player's inventory set {antybot::%player%} to false stop if "%clicked slot%" is not "%{_a}%": set {antybot::%player%} to false kick player due to "&8» &cANTYBOT &8«%nl%&cJestes botem!" stop