Just so you know, we don't know the file format for every file. If it's just a bunch of random characters, it's probably a .zip or .jar.
Warning: Undefined variable $http_response_header in /var/www/html/new/skunity/library/skUnity/Util/HTTP.php on line 95
options:
Version: 1.1
Header: &8&lMasterMind
Prefix: &e&lMasterMind&6&l>>&r
command /mastermind:
trigger:
set {mastermind::%player%::round} to 1
loop 5 times:
set {mastermind::%player%::c%loop-number%} to a random integer between 1 and 5
open chest with 6 rows named "{@Header}" to player
wait a tick
loop integers between 0 and 53:
if loop-number is 45, 46, 47 or 48:
set slot loop-number of player's current inventory to red stained glass pane named "&rRound:%{mastermind::%player%::round}% &6Your guess"
else if loop-number is 49:
set slot loop-number of player's current inventory to white stained glass pane named "&rRound:%{mastermind::%player%::round}% &aCheck guess"
else:
set slot loop-number of player's current inventory to gray stained glass pane named "&8"
on inventory click:
if inventory name of player's current inventory is "{@Header}":
cancel event
if clicked item name contains "%{mastermind::%player%::round}%":
if clicked item is red stained glass pane:
set slot clicked slot of player's current inventory to blue stained glass pane named "&rRound:%{mastermind::%player%::round}% &6Your guess"
else if clicked item is blue stained glass pane:
set slot clicked slot of player's current inventory to green stained glass pane named "&rRound:%{mastermind::%player%::round}% &6Your guess"
else if clicked item is green stained glass pane:
set slot clicked slot of player's current inventory to yellow stained glass pane named "&rRound:%{mastermind::%player%::round}% &6Your guess"
else if clicked item is yellow stained glass pane:
set slot clicked slot of player's current inventory to orange stained glass pane named "&rRound:%{mastermind::%player%::round}% &6Your guess"
else if clicked item is orange stained glass pane:
set slot clicked slot of player's current inventory to red stained glass pane named "&rRound:%{mastermind::%player%::round}% &6Your guess"
else if clicked item is white stained glass pane:
loop 4 times: #generator and pin determine loop
if {mastermind::%player%::round} is 1:
set {_slot} to 44
else if {mastermind::%player%::round} is 2:
set {_slot} to 35
else if {mastermind::%player%::round} is 3:
set {_slot} to 26
else if {mastermind::%player%::round} is 4:
set {_slot} to 17
else if {mastermind::%player%::round} is 5:
set {_slot} to 8
else if {mastermind::%player%::round} is 6:
set {_slot} to -1
loop 5 times: #slot and colour determine loop
if loop-number-2 is 1:
set {_colour} to red stained glass pane
else if loop-number-2 is 2:
set {_colour} to blue stained glass pane
else if loop-number-2 is 3:
set {_colour} to green stained glass pane
else if loop-number-2 is 4:
set {_colour} to yellow stained glass pane
else if loop-number-2 is 5:
set {_colour} to orange stained glass pane
if {mastermind::%player%::c%loop-number-1%} is loop-number-2:
if slot ({_slot} + loop-number-1) of player's current inventory is {_colour}:
add 1 to {_testwin}
set slot (clicked slot + loop-number-1) of player's current inventory to black stained glass pane named "&rRound:%{mastermind::%player%::round}% &2Pin %loop-number-1% is correct"
if {_testwin} is 4:
close player's inventory
message "{@Prefix} &a&lYou have cracked the code"
else:
add 1 to {mastermind::%player%::round}
if {mastermind::%player%::round} is 1:
set {_slot} to 44
else if {mastermind::%player%::round} is 2:
set {_slot} to 35
else if {mastermind::%player%::round} is 3:
set {_slot} to 26
else if {mastermind::%player%::round} is 4:
set {_slot} to 17
else if {mastermind::%player%::round} is 5:
set {_slot} to 8
else if {mastermind::%player%::round} is 6:
set {_slot} to -1
set slot 0 of player's current inventory to red stained glass pane named "&rRound:%{mastermind::%player%::round}% &6Your guess"
else:
close player's inventory
message "{@Prefix} &c&lYou couldn't crack the code, try again"
loop 54 times:
if loop-number is ({_slot} + 4), ({_slot} + 3), ({_slot} + 2) or ({_slot} + 1):
set slot loop-number of player's current inventory to red stained glass pane named "&rRound:%{mastermind::%player%::round}% &6Your guess"
else if loop-number is ({_slot} + 5):
set slot loop-number of player's current inventory to white stained glass pane named "&rRound:%{mastermind::%player%::round}% &aconfirm guess"
on inventory close:
if inventory name of player's current inventory is "{@Header}":
delete {mastermind::%player%::*}