# [ --- ] Konfiguracja plikow [ --- ] # on load: set yaml value "guiName" from file "config.yml" to "§f§l» §3AntyBot" set yaml value "greenWool" from file "config.yml" to "&f&l» &b&lKliknij mnie!" set yaml value "loreWool" from file "config.yml" to "&f&l» &3&oAntyBot!" set yaml value "s-Variables" from file "config.yml" to "&f&l» &3Poprawnie, mozna wylaczyc gui!" set yaml value "s-KickPlayer" from file "config.yml" to "&f&l» &cZla welna zostala wybrana!" set yaml value "GrassTwo" from file "config.yml" to "&f&l» &cNie odpowiedziales na pytania!" set yaml value "Congratulations" from file "config.yml" to "&f&l» &3Mozesz sie juz swobodnie zalogowac!" set yaml value "s-grass2" from file "config.yml" to "&f&l» &32+2, jaki kolor ma trawa?" set {guiName} to yaml value "guiName" from file "config.yml" set {greenWool} to yaml value "greenWool" from file "config.yml" set {loreWool} to yaml value "loreWool" from file "config.yml" set {s-Variables} to yaml value "s-Variables" from file "config.yml" set {s-KickPlayer} to yaml value "s-KickPlayer" from file "config.yml" set {GrassTwo} to yaml value "GrassTwo" from file "config.yml" set {Congratulations} to yaml value "Congratulations" from file "config.yml" set {s-grass2} to yaml value "s-grass2" from file "config.yml" stop # [ --- ] Konfiguracja plikow [ --- ] # # [ --- ] Zmienna [ --- ] # variables: {antybot::%player%} = false {trawa::%player%} = false {2plus2::%player%} = false # [ --- ] Zmienna [ --- ] # # [ --- ] Dzialanie skryptu [ --- ] # on join: if player is alive: wait 1 second set {antybot::%player%} to true set {_a} to random integer from 0 to 8 open chest with 1 row named "%{guiName}%" to player wait 5 ticks set player's current inventory's slot {_a} to green wool named "%{greenWool}%" with lore "%{loreWool}%" stop on inventory close: if {antybot::%player%} is true: wait 1 second set {_a} to random integer from 0 to 8 open chest with 1 row named "%{guiName}%" to player wait 5 ticks set player's current inventory's slot {_a} to green wool named "%{greenWool}%" with lore "%{loreWool}%" stop on inventory click: if inventory name of current inventory of player is "%{guiName}%": if player's current inventory's slot slot is green wool: cancel event set {antybot::%player%} to false set {2plus2::%player%} to true set {trawa::%player%} to true send "%{s-Variables}%" send "%{s-grass2}%" stop on chat: if message contains "4": set {2plus::%player%} to false send "%{Congratulations}% &7// &3Jezeli odpowiedziales juz na 2 pytanie!" stop on chat: if message contains "zielony": set {trawa::%player%} to false send "%{Congratulations}% &7// &3Jezeli odpowiedziales juz na 2 pytanie!" stop on inventory click: if inventory name of current inventory of player is "%{guiName}%": if player's current inventory's slot slot isn't green wool: kick player due to "%{s-KickPlayer}%" stop on any movement: if {2plus2::%player%} = true: if {trawa::%player%} = true: kick player due to "%{GrassTwo}%" stop # [ --- ] Dzialanie skryptu [ --- ] #