diff --git a/OBAM-Hub/Hub-Testing/tony.hub.sk b/OBAM-Hub/Hub-Testing/tony.hub.sk new file mode 100644 index 0000000..464cb10 --- /dev/null +++ b/OBAM-Hub/Hub-Testing/tony.hub.sk @@ -0,0 +1,81 @@ +#tutorialtony + +command /spawntony: + permission: obam.admin + trigger: + {tony.hub} is alive: + send "&cTony is there..." + + {tony.hub} is not alive: + spawn villager at {tony.hub.home} + wait 2 ticks + set name of spawned entity to "&1Tutorial Tony &a- &cRight Click me to LEARN!" + wait 1 tick + set {tony.hub} to spawned entity + +every 10 seconds: + {tony.hub} is alive: + teleport {tony.hub} to {tony.hub.home} + {tony.hub} is not alive: + spawn villager at {tony.hub.home} + wait 2 ticks + set display name of spawned entity to "&1Tutorial Tony &a- &cRight Click me to LEARN!" + wait 1 tick + set {tony.hub} to spawned entity + + {tony.hub} is not set: + spawn villager at {tony.hub.home} + wait 2 ticks + set display name of spawned entity to "&1Tutorial Tony &a- &cRight Click me to LEARN!" + set {tony.hub} to spawned entity +on any movement: + {tony.hub} is event-entity: + cancel event + teleport event-entity to {tony.hub.home} +on right click: + name of target entity is "&1Tutorial Tony &a- &cRight Click me to LEARN!" + send "&bTony: &fHey %player%! Would you like to learn about the &eHub&f?" to player + set {tutorial.%player%.q1} to true + +on chat: + {tutorial.%player%.q1} is true: + cancel event + message is not "yes" or "no": + send "&bTony: &fSorry %player%, but please answer yes or no" + message is "no": + send "&bTony: &fWell alright, please come back any time!" + clear {tutorial.%player%.q1} + message is "yes": + send "&bTony: &fAlright %player%! Let's begin!" + clear {tutorial.%player%.q1} + + +command /tutorial []: + permission: obam.free + trigger: + + argument is not set: + teleport player to {tony.hub.spawn} + send "&aVisiting Tony...." + + argument is "tonyset": + player does not have permission "obam.admin": + send "&cYou do not have permission to do this!" + stop + set {tony.hub.home} to location of player + send "&aTony's Home set to &e%location of player%&a." + + argument is "playerset": + player does not have permission "obam.admin": + send "&cYou do not have permission to do this!" + stop + set {tony.hub.player} to location of player + send "&aTony's Player Spawn Point set to &e%location of player%&a." + + argument is "test": + player does not have permission "obam.admin": + send "&cYou do not have permission to do this!" + stop + send "{"text":"","extra":[{"text":"Hello","color":"gold","hoverEvent":{"action":"show_text","value":"You can choose yes or no."}}]}" to player + + \ No newline at end of file diff --git a/OBAM-Old/-boatsforhub.sk b/OBAM-Old/-boatsforhub.sk new file mode 100644 index 0000000..4b598f7 --- /dev/null +++ b/OBAM-Old/-boatsforhub.sk @@ -0,0 +1,24 @@ + + +on right click: + targeted block is water block: + {time.boat.%player%} is not set: + set {time.boat.%player%} to now + add 1 minute to {time.boat.%player%} + set {_time} to difference between {time.boat.%player%} and now + {_time} is less than 1 minute: + send "&cYo... cooldown" to player + stop + {_time} is greater than or equal to 1 minute: + spawn boat at targeted block + set {time.boat.%player%} to now + + + +on vehicle exit: + delete vehicle of player + +on vehicle damage: + cancel event + + \ No newline at end of file diff --git a/Obam-Testing/Chat.sk b/OBAM-Old/Chat.sk similarity index 100% rename from Obam-Testing/Chat.sk rename to OBAM-Old/Chat.sk diff --git a/Obam-Other/EASYASEFFIPLOGGINGMAGIC.sk b/OBAM-Old/EASYASEFFIPLOGGINGMAGIC.sk similarity index 100% rename from Obam-Other/EASYASEFFIPLOGGINGMAGIC.sk rename to OBAM-Old/EASYASEFFIPLOGGINGMAGIC.sk diff --git a/Obam-Testing/KitDamageSubSystem.sk b/OBAM-Old/KitDamageSubSystem.sk similarity index 100% rename from Obam-Testing/KitDamageSubSystem.sk rename to OBAM-Old/KitDamageSubSystem.sk diff --git a/Obam-Hotpotato/Hotpotato Maps/hpField.sk b/OBAM-Old/Obam-Hotpotato/Hotpotato Maps/hpField.sk similarity index 96% rename from Obam-Hotpotato/Hotpotato Maps/hpField.sk rename to OBAM-Old/Obam-Hotpotato/Hotpotato Maps/hpField.sk index 90eaaa6..9a0d1ea 100644 --- a/Obam-Hotpotato/Hotpotato Maps/hpField.sk +++ b/OBAM-Old/Obam-Hotpotato/Hotpotato Maps/hpField.sk @@ -55,23 +55,23 @@ every 1 second: wait 3 seconds send "&a&lTeleporting back to Lobby Spawn in: &e5!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e4!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e3!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e2!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e1!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 loop all players in world "{@worldname.%script%}": {resetlobbyname} is not set: set {resetlobbyname} to {current.hotpotato.%loop-player%.lobby} @@ -89,7 +89,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 50 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -121,7 +121,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eCompass&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -137,7 +137,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -153,7 +153,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 35 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -180,7 +180,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -196,7 +196,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -239,7 +239,7 @@ every 1 second: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": send "&aBeginning match in &e%45 - {timer.hotpotato.{@coursename.%script%}}%&a seconds!" to loop-player - play "note piano" at location of loop-player with pitch 5 + play note piano at location of loop-player with pitch 5 {timer.hotpotato.{@coursename.%script%}} is 45: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": @@ -353,7 +353,7 @@ command /hotpotatostop{@coursename.%script%}: loop all players: loop-player is in world "{@worldname.%script%}": remove invisibility from loop-player - disallow loop-player to fly + set fly state of loop-player to false execute console command "/hotpotatoboardsrun" loop all players: {wins.hotpotato.{@coursename.%script%}.%loop-player%} is set: @@ -469,6 +469,6 @@ command /hotpotatostart{@coursename.%script%}: add 1 to {_count} set {hotpotato.{@coursename.%script%}.%loop-player%.dead} to false set {_%{_count}%} to loop-player - disallow loop-player to fly + set fly state of loop-player to false set {track.{@coursename.%script%}} to 0 set {hotpotato.{@coursename.%script%}.game.active} to true diff --git a/Obam-Hotpotato/Hotpotato Maps/hpLavaFlow.sk b/OBAM-Old/Obam-Hotpotato/Hotpotato Maps/hpLavaFlow.sk similarity index 96% rename from Obam-Hotpotato/Hotpotato Maps/hpLavaFlow.sk rename to OBAM-Old/Obam-Hotpotato/Hotpotato Maps/hpLavaFlow.sk index c4f9b25..275e194 100644 --- a/Obam-Hotpotato/Hotpotato Maps/hpLavaFlow.sk +++ b/OBAM-Old/Obam-Hotpotato/Hotpotato Maps/hpLavaFlow.sk @@ -55,23 +55,23 @@ every 1 second: wait 3 seconds send "&a&lTeleporting back to Lobby Spawn in: &e5!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e4!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e3!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e2!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e1!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 loop all players in world "{@worldname.%script%}": {resetlobbyname} is not set: set {resetlobbyname} to {current.hotpotato.%loop-player%.lobby} @@ -89,7 +89,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 50 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -121,7 +121,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eCompass&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -137,7 +137,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -153,7 +153,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 35 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -180,7 +180,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -196,7 +196,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -239,7 +239,7 @@ every 1 second: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": send "&aBeginning match in &e%45 - {timer.hotpotato.{@coursename.%script%}}%&a seconds!" to loop-player - play "note piano" at location of loop-player with pitch 5 + play note piano at location of loop-player with pitch 5 {timer.hotpotato.{@coursename.%script%}} is 45: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": @@ -353,7 +353,7 @@ command /hotpotatostop{@coursename.%script%}: loop all players: loop-player is in world "{@worldname.%script%}": remove invisibility from loop-player - disallow loop-player to fly + set fly state of loop-player to false execute console command "/hotpotatoboardsrun" loop all players: {wins.hotpotato.{@coursename.%script%}.%loop-player%} is set: @@ -469,6 +469,6 @@ command /hotpotatostart{@coursename.%script%}: add 1 to {_count} set {hotpotato.{@coursename.%script%}.%loop-player%.dead} to false set {_%{_count}%} to loop-player - disallow loop-player to fly + set fly state of loop-player to false set {track.{@coursename.%script%}} to 0 set {hotpotato.{@coursename.%script%}.game.active} to true diff --git a/Obam-Hotpotato/Hotpotato Maps/hpMushroom.sk b/OBAM-Old/Obam-Hotpotato/Hotpotato Maps/hpMushroom.sk similarity index 96% rename from Obam-Hotpotato/Hotpotato Maps/hpMushroom.sk rename to OBAM-Old/Obam-Hotpotato/Hotpotato Maps/hpMushroom.sk index bc56a3c..2022096 100644 --- a/Obam-Hotpotato/Hotpotato Maps/hpMushroom.sk +++ b/OBAM-Old/Obam-Hotpotato/Hotpotato Maps/hpMushroom.sk @@ -55,23 +55,23 @@ every 1 second: wait 3 seconds send "&a&lTeleporting back to Lobby Spawn in: &e5!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e4!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e3!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e2!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e1!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 loop all players in world "{@worldname.%script%}": {resetlobbyname} is not set: set {resetlobbyname} to {current.hotpotato.%loop-player%.lobby} @@ -89,7 +89,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 50 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -121,7 +121,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eCompass&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -137,7 +137,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -153,7 +153,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 35 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -180,7 +180,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -196,7 +196,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -239,7 +239,7 @@ every 1 second: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": send "&aBeginning match in &e%45 - {timer.hotpotato.{@coursename.%script%}}%&a seconds!" to loop-player - play "note piano" at location of loop-player with pitch 5 + play note piano at location of loop-player with pitch 5 {timer.hotpotato.{@coursename.%script%}} is 45: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": @@ -353,7 +353,7 @@ command /hotpotatostop{@coursename.%script%}: loop all players: loop-player is in world "{@worldname.%script%}": remove invisibility from loop-player - disallow loop-player to fly + set fly state of loop-player to false execute console command "/hotpotatoboardsrun" loop all players: {wins.hotpotato.{@coursename.%script%}.%loop-player%} is set: @@ -469,6 +469,6 @@ command /hotpotatostart{@coursename.%script%}: add 1 to {_count} set {hotpotato.{@coursename.%script%}.%loop-player%.dead} to false set {_%{_count}%} to loop-player - disallow loop-player to fly + set fly state of loop-player to false set {track.{@coursename.%script%}} to 0 set {hotpotato.{@coursename.%script%}.game.active} to true diff --git a/Obam-Hotpotato/Hotpotato Maps/hpNetherFort.sk b/OBAM-Old/Obam-Hotpotato/Hotpotato Maps/hpNetherFort.sk similarity index 96% rename from Obam-Hotpotato/Hotpotato Maps/hpNetherFort.sk rename to OBAM-Old/Obam-Hotpotato/Hotpotato Maps/hpNetherFort.sk index ab76ecf..4475d5f 100644 --- a/Obam-Hotpotato/Hotpotato Maps/hpNetherFort.sk +++ b/OBAM-Old/Obam-Hotpotato/Hotpotato Maps/hpNetherFort.sk @@ -55,23 +55,23 @@ every 1 second: wait 3 seconds send "&a&lTeleporting back to Lobby Spawn in: &e5!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e4!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e3!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e2!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e1!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 loop all players in world "{@worldname.%script%}": {resetlobbyname} is not set: set {resetlobbyname} to {current.hotpotato.%loop-player%.lobby} @@ -89,7 +89,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 50 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -121,7 +121,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eCompass&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -137,7 +137,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -153,7 +153,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 35 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -180,7 +180,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -196,7 +196,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -239,7 +239,7 @@ every 1 second: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": send "&aBeginning match in &e%45 - {timer.hotpotato.{@coursename.%script%}}%&a seconds!" to loop-player - play "note piano" at location of loop-player with pitch 5 + play note piano at location of loop-player with pitch 5 {timer.hotpotato.{@coursename.%script%}} is 45: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": @@ -353,7 +353,7 @@ command /hotpotatostop{@coursename.%script%}: loop all players: loop-player is in world "{@worldname.%script%}": remove invisibility from loop-player - disallow loop-player to fly + set fly state of loop-player to false execute console command "/hotpotatoboardsrun" loop all players: {wins.hotpotato.{@coursename.%script%}.%loop-player%} is set: @@ -469,6 +469,6 @@ command /hotpotatostart{@coursename.%script%}: add 1 to {_count} set {hotpotato.{@coursename.%script%}.%loop-player%.dead} to false set {_%{_count}%} to loop-player - disallow loop-player to fly + set fly state of loop-player to false set {track.{@coursename.%script%}} to 0 set {hotpotato.{@coursename.%script%}.game.active} to true diff --git a/Obam-Hotpotato/Hotpotato Maps/hpOmniPlex.sk b/OBAM-Old/Obam-Hotpotato/Hotpotato Maps/hpOmniPlex.sk similarity index 96% rename from Obam-Hotpotato/Hotpotato Maps/hpOmniPlex.sk rename to OBAM-Old/Obam-Hotpotato/Hotpotato Maps/hpOmniPlex.sk index 21bc53b..2f30fd7 100644 --- a/Obam-Hotpotato/Hotpotato Maps/hpOmniPlex.sk +++ b/OBAM-Old/Obam-Hotpotato/Hotpotato Maps/hpOmniPlex.sk @@ -56,23 +56,23 @@ every 1 second: wait 3 seconds send "&a&lTeleporting back to Lobby Spawn in: &e5!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e4!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e3!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e2!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e1!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 loop all players in world "{@worldname.%script%}": {resetlobbyname} is not set: set {resetlobbyname} to {current.hotpotato.%loop-player%.lobby} @@ -90,7 +90,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 50 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -122,7 +122,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eCompass&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -138,7 +138,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -154,7 +154,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 35 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -181,7 +181,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -197,7 +197,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -240,7 +240,7 @@ every 1 second: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": send "&aBeginning match in &e%45 - {timer.hotpotato.{@coursename.%script%}}%&a seconds!" to loop-player - play "note piano" at location of loop-player with pitch 5 + play note piano at location of loop-player with pitch 5 {timer.hotpotato.{@coursename.%script%}} is 45: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": @@ -354,7 +354,7 @@ command /hotpotatostop{@coursename.%script%}: loop all players: loop-player is in world "{@worldname.%script%}": remove invisibility from loop-player - disallow loop-player to fly + set fly state of loop-player to false execute console command "/hotpotatoboardsrun" loop all players: {wins.hotpotato.{@coursename.%script%}.%loop-player%} is set: @@ -470,6 +470,6 @@ command /hotpotatostart{@coursename.%script%}: add 1 to {_count} set {hotpotato.{@coursename.%script%}.%loop-player%.dead} to false set {_%{_count}%} to loop-player - disallow loop-player to fly + set fly state of loop-player to false set {track.{@coursename.%script%}} to 0 set {hotpotato.{@coursename.%script%}.game.active} to true diff --git a/Obam-Hotpotato/Hotpotato Maps/hpOmniStairs.sk b/OBAM-Old/Obam-Hotpotato/Hotpotato Maps/hpOmniStairs.sk similarity index 96% rename from Obam-Hotpotato/Hotpotato Maps/hpOmniStairs.sk rename to OBAM-Old/Obam-Hotpotato/Hotpotato Maps/hpOmniStairs.sk index 9509a3d..b58d3fa 100644 --- a/Obam-Hotpotato/Hotpotato Maps/hpOmniStairs.sk +++ b/OBAM-Old/Obam-Hotpotato/Hotpotato Maps/hpOmniStairs.sk @@ -55,23 +55,23 @@ every 1 second: wait 3 seconds send "&a&lTeleporting back to Lobby Spawn in: &e5!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e4!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e3!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e2!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e1!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 loop all players in world "{@worldname.%script%}": {resetlobbyname} is not set: set {resetlobbyname} to {current.hotpotato.%loop-player%.lobby} @@ -89,7 +89,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 50 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -121,7 +121,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eCompass&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -137,7 +137,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -153,7 +153,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 35 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -180,7 +180,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -196,7 +196,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -239,7 +239,7 @@ every 1 second: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": send "&aBeginning match in &e%45 - {timer.hotpotato.{@coursename.%script%}}%&a seconds!" to loop-player - play "note piano" at location of loop-player with pitch 5 + play note piano at location of loop-player with pitch 5 {timer.hotpotato.{@coursename.%script%}} is 45: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": @@ -353,7 +353,7 @@ command /hotpotatostop{@coursename.%script%}: loop all players: loop-player is in world "{@worldname.%script%}": remove invisibility from loop-player - disallow loop-player to fly + set fly state of loop-player to false execute console command "/hotpotatoboardsrun" loop all players: {wins.hotpotato.{@coursename.%script%}.%loop-player%} is set: @@ -469,6 +469,6 @@ command /hotpotatostart{@coursename.%script%}: add 1 to {_count} set {hotpotato.{@coursename.%script%}.%loop-player%.dead} to false set {_%{_count}%} to loop-player - disallow loop-player to fly + set fly state of loop-player to false set {track.{@coursename.%script%}} to 0 set {hotpotato.{@coursename.%script%}.game.active} to true diff --git a/Obam-Hotpotato/Hotpotato Maps/hpSewerSystem.sk b/OBAM-Old/Obam-Hotpotato/Hotpotato Maps/hpSewerSystem.sk similarity index 96% rename from Obam-Hotpotato/Hotpotato Maps/hpSewerSystem.sk rename to OBAM-Old/Obam-Hotpotato/Hotpotato Maps/hpSewerSystem.sk index ce85af3..62495d5 100644 --- a/Obam-Hotpotato/Hotpotato Maps/hpSewerSystem.sk +++ b/OBAM-Old/Obam-Hotpotato/Hotpotato Maps/hpSewerSystem.sk @@ -55,23 +55,23 @@ every 1 second: wait 3 seconds send "&a&lTeleporting back to Lobby Spawn in: &e5!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e4!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e3!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e2!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e1!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 loop all players in world "{@worldname.%script%}": {resetlobbyname} is not set: set {resetlobbyname} to {current.hotpotato.%loop-player%.lobby} @@ -89,7 +89,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 50 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -121,7 +121,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eCompass&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -137,7 +137,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -153,7 +153,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 35 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -180,7 +180,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -196,7 +196,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -239,7 +239,7 @@ every 1 second: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": send "&aBeginning match in &e%45 - {timer.hotpotato.{@coursename.%script%}}%&a seconds!" to loop-player - play "note piano" at location of loop-player with pitch 5 + play note piano at location of loop-player with pitch 5 {timer.hotpotato.{@coursename.%script%}} is 45: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": @@ -353,7 +353,7 @@ command /hotpotatostop{@coursename.%script%}: loop all players: loop-player is in world "{@worldname.%script%}": remove invisibility from loop-player - disallow loop-player to fly + set fly state of loop-player to false execute console command "/hotpotatoboardsrun" loop all players: {wins.hotpotato.{@coursename.%script%}.%loop-player%} is set: @@ -469,6 +469,6 @@ command /hotpotatostart{@coursename.%script%}: add 1 to {_count} set {hotpotato.{@coursename.%script%}.%loop-player%.dead} to false set {_%{_count}%} to loop-player - disallow loop-player to fly + set fly state of loop-player to false set {track.{@coursename.%script%}} to 0 set {hotpotato.{@coursename.%script%}.game.active} to true diff --git a/Obam-Hotpotato/Hotpotato Maps/hpSnowyHills.sk b/OBAM-Old/Obam-Hotpotato/Hotpotato Maps/hpSnowyHills.sk similarity index 96% rename from Obam-Hotpotato/Hotpotato Maps/hpSnowyHills.sk rename to OBAM-Old/Obam-Hotpotato/Hotpotato Maps/hpSnowyHills.sk index d5ecac1..5423b2c 100644 --- a/Obam-Hotpotato/Hotpotato Maps/hpSnowyHills.sk +++ b/OBAM-Old/Obam-Hotpotato/Hotpotato Maps/hpSnowyHills.sk @@ -55,23 +55,23 @@ every 1 second: wait 3 seconds send "&a&lTeleporting back to Lobby Spawn in: &e5!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e4!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e3!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e2!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e1!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 loop all players in world "{@worldname.%script%}": {resetlobbyname} is not set: set {resetlobbyname} to {current.hotpotato.%loop-player%.lobby} @@ -89,7 +89,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 50 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -121,7 +121,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eCompass&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -137,7 +137,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -153,7 +153,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 35 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -180,7 +180,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -196,7 +196,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -239,7 +239,7 @@ every 1 second: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": send "&aBeginning match in &e%45 - {timer.hotpotato.{@coursename.%script%}}%&a seconds!" to loop-player - play "note piano" at location of loop-player with pitch 5 + play note piano at location of loop-player with pitch 5 {timer.hotpotato.{@coursename.%script%}} is 45: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": @@ -353,7 +353,7 @@ command /hotpotatostop{@coursename.%script%}: loop all players: loop-player is in world "{@worldname.%script%}": remove invisibility from loop-player - disallow loop-player to fly + set fly state of loop-player to false execute console command "/hotpotatoboardsrun" loop all players: {wins.hotpotato.{@coursename.%script%}.%loop-player%} is set: @@ -469,6 +469,6 @@ command /hotpotatostart{@coursename.%script%}: add 1 to {_count} set {hotpotato.{@coursename.%script%}.%loop-player%.dead} to false set {_%{_count}%} to loop-player - disallow loop-player to fly + set fly state of loop-player to false set {track.{@coursename.%script%}} to 0 set {hotpotato.{@coursename.%script%}.game.active} to true diff --git a/Obam-Hotpotato/Hotpotato Maps/hpcave.sk b/OBAM-Old/Obam-Hotpotato/Hotpotato Maps/hpcave.sk similarity index 96% rename from Obam-Hotpotato/Hotpotato Maps/hpcave.sk rename to OBAM-Old/Obam-Hotpotato/Hotpotato Maps/hpcave.sk index c0109d8..96a3ae0 100644 --- a/Obam-Hotpotato/Hotpotato Maps/hpcave.sk +++ b/OBAM-Old/Obam-Hotpotato/Hotpotato Maps/hpcave.sk @@ -55,23 +55,23 @@ every 1 second: wait 3 seconds send "&a&lTeleporting back to Lobby Spawn in: &e5!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e4!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e3!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e2!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e1!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 loop all players in world "{@worldname.%script%}": {resetlobbyname} is not set: set {resetlobbyname} to {current.hotpotato.%loop-player%.lobby} @@ -89,7 +89,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 50 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -121,7 +121,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eCompass&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -137,7 +137,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -153,7 +153,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 35 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -180,7 +180,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -196,7 +196,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -239,7 +239,7 @@ every 1 second: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": send "&aBeginning match in &e%45 - {timer.hotpotato.{@coursename.%script%}}%&a seconds!" to loop-player - play "note piano" at location of loop-player with pitch 5 + play note piano at location of loop-player with pitch 5 {timer.hotpotato.{@coursename.%script%}} is 45: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": @@ -353,7 +353,7 @@ command /hotpotatostop{@coursename.%script%}: loop all players: loop-player is in world "{@worldname.%script%}": remove invisibility from loop-player - disallow loop-player to fly + set fly state of loop-player to false execute console command "/hotpotatoboardsrun" loop all players: {wins.hotpotato.{@coursename.%script%}.%loop-player%} is set: @@ -469,6 +469,6 @@ command /hotpotatostart{@coursename.%script%}: add 1 to {_count} set {hotpotato.{@coursename.%script%}.%loop-player%.dead} to false set {_%{_count}%} to loop-player - disallow loop-player to fly + set fly state of loop-player to false set {track.{@coursename.%script%}} to 0 set {hotpotato.{@coursename.%script%}.game.active} to true diff --git a/Obam-Hotpotato/Hotpotato Maps/hpcity.sk b/OBAM-Old/Obam-Hotpotato/Hotpotato Maps/hpcity.sk similarity index 96% rename from Obam-Hotpotato/Hotpotato Maps/hpcity.sk rename to OBAM-Old/Obam-Hotpotato/Hotpotato Maps/hpcity.sk index 4d919c4..987b88a 100644 --- a/Obam-Hotpotato/Hotpotato Maps/hpcity.sk +++ b/OBAM-Old/Obam-Hotpotato/Hotpotato Maps/hpcity.sk @@ -55,23 +55,23 @@ every 1 second: wait 3 seconds send "&a&lTeleporting back to Lobby Spawn in: &e5!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e4!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e3!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e2!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 wait 1 second send "&a&lTeleporting back to Lobby Spawn in: &e1!" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note piano" at location of loop-player with pitch 3 + play note piano at location of loop-player with pitch 3 loop all players in world "{@worldname.%script%}": {resetlobbyname} is not set: set {resetlobbyname} to {current.hotpotato.%loop-player%.lobby} @@ -89,7 +89,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 50 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -121,7 +121,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eCompass&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -137,7 +137,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -153,7 +153,7 @@ every 1 second: {track.{@coursename.%script%}} is less than 5: send "&a&lThe Potato will be given in: &e%5 - {track.{@coursename.%script%}}%" to all players in "{@worldname.%script%}" loop all players in world "{@worldname.%script%}": - play "note bass guitar" at location of loop-player with pitch 1 + play note bass guitar at location of loop-player with pitch 1 loop all players in world "{@worldname.%script%}": set loop-player's level to 35 - {track.{@coursename.%script%}} {track.{@coursename.%script%}} is 5: @@ -180,7 +180,7 @@ every 1 second: add 5 to loop-player's balance add 5 to {level.%loop-player%} apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -196,7 +196,7 @@ every 1 second: remove nausea from loop-player remove speed from loop-player apply invisibility 1 to loop-player for 999 days - allow loop-player to fly + set fly state of loop-player to true message "&aYou can now fly. Use the &eClock&a to go spectate other players" to loop-player extinguish loop-player give loop-player clock @@ -239,7 +239,7 @@ every 1 second: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": send "&aBeginning match in &e%45 - {timer.hotpotato.{@coursename.%script%}}%&a seconds!" to loop-player - play "note piano" at location of loop-player with pitch 5 + play note piano at location of loop-player with pitch 5 {timer.hotpotato.{@coursename.%script%}} is 45: loop all players in world "hotpotatolobby": {current.hotpotato.%loop-player%.lobby} is "{@coursename.%script%}": @@ -353,7 +353,7 @@ command /hotpotatostop{@coursename.%script%}: loop all players: loop-player is in world "{@worldname.%script%}": remove invisibility from loop-player - disallow loop-player to fly + set fly state of loop-player to false execute console command "/hotpotatoboardsrun" loop all players: {wins.hotpotato.{@coursename.%script%}.%loop-player%} is set: @@ -469,6 +469,6 @@ command /hotpotatostart{@coursename.%script%}: add 1 to {_count} set {hotpotato.{@coursename.%script%}.%loop-player%.dead} to false set {_%{_count}%} to loop-player - disallow loop-player to fly + set fly state of loop-player to false set {track.{@coursename.%script%}} to 0 set {hotpotato.{@coursename.%script%}.game.active} to true diff --git a/Obam-Hotpotato/hotpotato.sk b/OBAM-Old/Obam-Hotpotato/hotpotato.sk similarity index 100% rename from Obam-Hotpotato/hotpotato.sk rename to OBAM-Old/Obam-Hotpotato/hotpotato.sk diff --git a/Obam-Hotpotato/hpstat.sk b/OBAM-Old/Obam-Hotpotato/hpstat.sk similarity index 100% rename from Obam-Hotpotato/hpstat.sk rename to OBAM-Old/Obam-Hotpotato/hpstat.sk diff --git a/Obam-Hotpotato/hptemp.sk b/OBAM-Old/Obam-Hotpotato/hptemp.sk similarity index 100% rename from Obam-Hotpotato/hptemp.sk rename to OBAM-Old/Obam-Hotpotato/hptemp.sk diff --git a/Obam-Hotpotato/lobbies.sk b/OBAM-Old/Obam-Hotpotato/lobbies.sk similarity index 100% rename from Obam-Hotpotato/lobbies.sk rename to OBAM-Old/Obam-Hotpotato/lobbies.sk diff --git a/Obam-Parkour/checkpoints.sk b/OBAM-Old/Obam-Parkour/checkpoints.sk similarity index 100% rename from Obam-Parkour/checkpoints.sk rename to OBAM-Old/Obam-Parkour/checkpoints.sk diff --git a/OBAM-Old/Obam-Parkour/parkour.sk b/OBAM-Old/Obam-Parkour/parkour.sk new file mode 100644 index 0000000..379e6f5 --- /dev/null +++ b/OBAM-Old/Obam-Parkour/parkour.sk @@ -0,0 +1,737 @@ +options: + beginnercourse: i;iron block;n;&d&lBeginner Courses!;l;&7Click to go to the &eBeginner &7Lobby;c;teleportparkourbeginner %player% + easycourse: i;gold block;n;&a&lEasy Courses!;l;&7Click to go to the &eEasy &7Lobby;c;teleportparkoureasy %player% + mediumcourse: i;diamond block;n;&e&lMedium Courses!;l;&7Click to go to the &eMedium &7Lobby;c;teleportparkourmedium %player% + hardcourse: i;emerald block;n;&4&lHard Courses!;l;&7Click to go to the &eHard &7Lobby;c;teleportparkourhard %player% + random: i;mossy cobblestone;n;&3&lRandom Course!;l;&7Click to go to a &eRandom&7 course;c;courserandom %player% + + + +variables: + {fallen.%player%} = 0 + {fallen.global} = 0 + {fallen.easy} = 0 + {fallen.hard} = 0 + {fallen.beginner} = 0 + {fallen.medium} = 0 + {completed.global} = 0 + {completed.easy} = 0 + {completed.hard} = 0 + {completed.medium} = 0 + (completed.beginner} = 0 + +#command /parkourcourse: +# permission: obam.free +# executable by: players +# trigger: +# show "s;1;{@beginnercourse};s;2;{@easycourse};s;3;{@mediumcourse};s;4;{@hardcourse};s;9;{@random}" with 1 row named "&9&lOBAM &9Parkour" to player + + +command /courseadd : + permission: obam.admin + trigger: + arg is not "clear": + add arg to {parkour.courses::*} + arg is "clear": + clear {parkour.courses::*} + +command /listcourses : + permission: obam.admin + trigger: + set {course.add} to 0 + loop arg times: + add 1 to {course.add} + set {course} to {parkour.courses::%{course.add}%} + message "%{course}%" to player + +command /courserandom : + executable by: console + trigger: + set {course.add} to 0 + set {top.course} to size of {parkour.courses::*} + set {number.random} to random number between 1 and {top.course} + loop {number.random} times: + add 1 to {course.add} + set {course} to {parkour.courses::%{course.add}%} + execute console command "/parkourspawn %{course}% %player-argument%" + +command /lobbyset : + permission: obam.admin + trigger: + set {parkour.%arg%.tp} to location of player + +command /teleportparkoureasy : + executable by: console + trigger: + teleport player-argument to {parkour.easy.tp} + +command /teleportparkourmedium : + executable by: console + trigger: + teleport player-argument to {parkour.medium.tp} + +command /teleportparkourbeginner : + executable by: console + trigger: + teleport player-argument to {parkour.beginner.tp} + +command /teleportparkourhard : + executable by: console + trigger: + teleport player-argument to {parkour.hard.tp} + + +command /completeeasyparkourcourse : + executable by: console + trigger: + set variable {currentparkourcourse.%player-argument%} to 0 + execute console command "/mvtp %player-argument% parkourlobby" + add 5 to {level.%player-argument%} + message "&a&lYou received 5 tickets for completing a parkour course!" to player-argument + add 5 to player-argument's balance + set {fallen.%player%} to 0 + subtract 1 from {holding.%{currentparkourcourse.%player%}%.count} + set {checkpoint.%player-argument%.active} to 0 + add 1 to {completed.global} + add 1 to {completed.easy} +command /completemediumparkourcourse : + executable by: console + trigger: + set variable {currentparkourcourse.%player-argument%} to 0 + execute console command "/mvtp %player-argument% parkourlobby" + add 10 to {level.%player-argument%} + message "&a&lYou received 10 tickets for completing a parkour course!" to the player-argument + add 10 to player-argument's balance + set {fallen.%player%} to 0 + subtract 1 from {holding.%{currentparkourcourse.%player%}%.count} + set {checkpoint.%player-argument%.active} to 0 + add 1 to {completed.global} + add 1 to {completed.medium} +command /completehardparkourcourse : + executable by: console + trigger: + set variable {currentparkourcourse.%player-argument%} to 0 + execute console command "/mvtp %player-argument% parkourlobby" + add 25 to {level.%player-argument%} + message "&a&lYou received 25 tickets for completing a parkour course!" to the player-argument + add 25 to player-argument's balance + set {fallen.%player%} to 0 + subtract 1 from {holding.%{currentparkourcourse.%player%}%.count} + set {checkpoint.%player-argument%.active} to 0 + add 1 to {completed.global} + add 1 to {completed.hard} +command /completebeginnerparkourcourse : + executable by: console + trigger: + set variable {currentparkourcourse.%player-argument%} to 0 + execute console command "/mvtp %player-argument% parkourlobby" + add 5 to {level.%player-argument%} + message "&a&lYou received 1 ticket for completing a parkour course!" to the player-argument + add 1 to player-argument's balance + set {fallen.%player%} to 0 + subtract 1 from {holding.%{currentparkourcourse.%player%}%.count} + set {checkpoint.%player-argument%.active} to 0 + add 1 to {completed.global} + add 1 to {completed.beginner} + +#command /parkour: +# executable by: players +# permission: obam.free +# aliases: /pk +# trigger: +# world is "hotpotatolobby" or "hotpotato1" or "hotpotato2": +# message "&cYou can not do that here, please use &e/lobby&c first." to player +# stop +# execute console command "/mvtp %player% parkourlobby" +# set {checkpoint.%player%.active} to 0 +# set {fallen.%player%} to 0 +# subtract 1 from {holding.%{currentparkourcourse.%player%}%.count} + + +#EndlessRage1 +on walking on obsidian: + {currentparkourcourse.%player%} is "EndlessRage1" + player is in "parkourmaps" + add 1 to {fallen.%player%} + add 1 to {fallen.global} + add 1 to {fallen.hard} + message "&cYou were sent back for falling!" to the player + {checkpoint.%player%.active} is 1: + teleport player to {parkour.checkpoint.%player%} + else: + teleport player to {parkourspawn.EndlessRage1} + execute console command "/starttimer %player% EndlessRage1" + + {fallen.%player%} is less than 2: + message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player + stop + {fallen.%player%} is greater than 1: + message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player + stop + stop + + +#EndlessRage2 +on walking on obsidian: + {currentparkourcourse.%player%} is "EndlessRage2" + player is in "parkourmaps" + message "&cYou were sent back for falling!" to the player + add 1 to {fallen.%player%} + add 1 to {fallen.global} + add 1 to {fallen.hard} + {checkpoint.%player%.active} is 1: + teleport player to {parkour.checkpoint.%player%} + else: + teleport player to {parkourspawn.EndlessRage2} + execute console command "/starttimer %player% EndlessRage2" + {fallen.%player%} is less than 2: + message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player + stop + {fallen.%player%} is greater than 1: + message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player + stop + stop + + +#EndlessRage3 +on walking on obsidian: + {currentparkourcourse.%player%} is "EndlessRage3" + player is in "parkourmaps" + message "&cYou were sent back for falling!" to the player + add 1 to {fallen.%player%} + add 1 to {fallen.global} + add 1 to {fallen.hard} + {checkpoint.%player%.active} is 1: + teleport player to {parkour.checkpoint.%player%} + + else: + teleport player to {parkourspawn.EndlessRage3} + execute console command "/starttimer %player% EndlessRage3" + {fallen.%player%} is less than 2: + message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player + stop + {fallen.%player%} is greater than 1: + message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player + stop + stop + +#Rainbow +on walking on wool or glowstone: + {currentparkourcourse.%player%} is "Rainbow" + player is in "parkourmaps" + message "&cYou were sent back for falling!" to the player + add 1 to {fallen.%player%} + add 1 to {fallen.global} + add 1 to {fallen.easy} + {checkpoint.%player%.active} is 1: + teleport player to {parkour.checkpoint.%player%} + else: + teleport player to {parkourspawn.Rainbow} + execute console command "/starttimer %player% Rainbow" + {fallen.%player%} is less than 2: + message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player + stop + {fallen.%player%} is greater than 1: + message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player + stop + stop + +#MountainRiver +on walking on grass or leaves or wood or cobblestone or stone or dirt: + {currentparkourcourse.%player%} is "MountainRiver" + player is in "parkourmaps" + message "&cYou were sent back for falling!" to the player + add 1 to {fallen.%player%} + add 1 to {fallen.global} + add 1 to {fallen.medium} + {checkpoint.%player%.active} is 1: + teleport player to {parkour.checkpoint.%player%} + else: + teleport player to {parkourspawn.MountainRiver} + execute console command "/starttimer %player% MountainRiver" + {fallen.%player%} is less than 2: + message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player + stop + {fallen.%player%} is greater than 1: + message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player + stop + stop +every 1 seconds: + loop all players: + block above block below loop-player is water: + {currentparkourcourse.%loop-player%} is "MountainRiver" + loop-player is in "parkourmaps" + message "&cYou were sent back for falling!" to the loop-player + add 1 to {fallen.%loop-player%} + add 1 to {fallen.global} + add 1 to {fallen.medium} + {checkpoint.%loop-player%.active} is 1: + teleport loop-player to {parkour.checkpoint.%loop-player%} + else: + teleport loop-player to {parkourspawn.MountainRiver} + execute console command "/starttimer %loop-player% MountainRiver" + if {fallen.%loop-player%} is less than 2: + message "&cYou have fallen &e%{fallen.%loop-player%}% &ctime this round." to loop-player + stop trigger + + {fallen.%loop-player%} is greater than 1: + message "&cYou have fallen &e%{fallen.%loop-player%}% &ctimes this round." to loop-player + +#KoiPond +on walking on grass or redstone lamp: + {currentparkourcourse.%player%} is "KoiPond" + player is in "parkourmaps" + message "&cYou were sent back for falling!" to the player + add 1 to {fallen.%player%} + add 1 to {fallen.global} + add 1 to {fallen.easy} + add 1 to {fallen.stat.%player%} + {checkpoint.%player%.active} is 1: + teleport player to {parkour.checkpoint.%player%} + else: + teleport player to {parkourspawn.KoiPond} + execute console command "/starttimer %player% KoiPond" + {fallen.%player%} is less than 2: + message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player + stop + {fallen.%player%} is greater than 1: + message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player + {fallen.%player%} is 10 or 20 or 50 or 100: + message "&aDid you know you could purchase checkpoints at" to player + message "&e http://l.obamgaming.com/ParkourShop &a?" to player + stop +every 1 seconds: + loop all players: + block above block below loop-player is water: + {currentparkourcourse.%loop-player%} is "KoiPond" + loop-player is in "parkourmaps" + message "&cYou were sent back for falling!" to the loop-player + add 1 to {fallen.%loop-player%} + add 1 to {fallen.global} + add 1 to {fallen.easy} + {checkpoint.%loop-player%.active} is 1: + teleport loop-player to {parkour.checkpoint.%loop-player%} + else: + teleport loop-player to {parkourspawn.KoiPond} + execute console command "/starttimer %loop-player% KoiPond" + if {fallen.%loop-player%} is less than 2: + message "&cYou have fallen &e%{fallen.%loop-player%}% &ctime this round." to loop-player + stop trigger + + {fallen.%loop-player%} is greater than 1: + message "&cYou have fallen &e%{fallen.%loop-player%}% &ctimes this round." to loop-player + {fallen.%loop-player%} is 10 or 20 or 50 or 100: + message "&aDid you know you could purchase checkpoints at" to loop-player + message "&e http://bit.ly/ParkourShop &a?" to loop-player + stop + +#CampGround +on walking on grass or leaves or dirt: + {currentparkourcourse.%player%} is "CampGround" + player is in "parkourmaps" + message "&cYou were sent back for falling!" to the player + add 1 to {fallen.%player%} + add 1 to {fallen.global} + add 1 to {fallen.beginner} + {checkpoint.%player%.active} is 1: + teleport player to {parkour.checkpoint.%player%} + else: + teleport player to {parkourspawn.CampGround} + execute console command "/starttimer %player% CampGround" + {fallen.%player%} is less than 2: + message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player + stop + {fallen.%player%} is greater than 1: + message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player + stop + stop +every 1 seconds: + loop all players: + block above block below loop-player is water: + {currentparkourcourse.%loop-player%} is "CampGround" + loop-player is in "parkourmaps" + message "&cYou were sent back for falling!" to the loop-player + add 1 to {fallen.%loop-player%} + add 1 to {fallen.global} + add 1 to {fallen.beginner} + {checkpoint.%loop-player%.active} is 1: + teleport loop-player to {parkour.checkpoint.%loop-player%} + else: + teleport loop-player to {parkourspawn.CampGround} + execute console command "/starttimer %loop-player% CampGround" + if {fallen.%loop-player%} is less than 2: + message "&cYou have fallen &e%{fallen.%loop-player%}% &ctime this round." to loop-player + stop trigger + + {fallen.%loop-player%} is greater than 1: + message "&cYou have fallen &e%{fallen.%loop-player%}% &ctimes this round." to loop-player + {fallen.%loop-player%} is 10 or 20 or 50 or 100: + message "&aDid you know you could purchase checkpoints at" to loop-player + message "&e http://bit.ly/ParkourShop &a?" to loop-player + stop + +#QuartzRuins +on walking on redstone lamp: + {currentparkourcourse.%player%} is "QuartzRuins" + player is in "parkourmaps" + message "&cYou were sent back for falling!" to the player + add 1 to {fallen.%player%} + add 1 to {fallen.global} + add 1 to {fallen.beginner} + {checkpoint.%player%.active} is 1: + teleport player to {parkour.checkpoint.%player%} + else: + teleport player to {parkourspawn.QuartzRuins} + execute console command "/starttimer %player% QuartzRuins" + {fallen.%player%} is less than 2: + message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player + stop + {fallen.%player%} is greater than 1: + message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player + {fallen.%player%} is 10 or 20 or 50 or 100: + message "&aDid you know you could purchase checkpoints at" to player + message "&e http://bit.ly/ParkourShop &a?" to player + stop + stop +every 1 seconds: + loop all players: + block above block below loop-player is water: + {currentparkourcourse.%loop-player%} is "QuartzRuins" + loop-player is in "parkourmaps" + message "&cYou were sent back for falling!" to the loop-player + add 1 to {fallen.%loop-player%} + add 1 to {fallen.global} + add 1 to {fallen.beginner} + {checkpoint.%loop-player%.active} is 1: + teleport loop-player to {parkour.checkpoint.%loop-player%} + else: + teleport loop-player to {parkourspawn.QuartzRuins} + execute console command "/starttimer %loop-player% QuartzRuins" + if {fallen.%loop-player%} is less than 2: + message "&cYou have fallen &e%{fallen.%loop-player%}% &ctime this round." to loop-player + stop trigger + + {fallen.%loop-player%} is greater than 1: + message "&cYou have fallen &e%{fallen.%loop-player%}% &ctimes this round." to loop-player + {fallen.%loop-player%} is 10 or 20 or 50 or 100: + message "&aDid you know you could purchase checkpoints at" to loop-player + message "&e http://bit.ly/ParkourShop &a?" to loop-player + stop + + +#Quarry +on walking on stone or cobble or gravel: + {currentparkourcourse.%player%} is "Quarry" + player is in "parkourmaps" + message "&cYou were sent back for falling!" to the player + add 1 to {fallen.%player%} + add 1 to {fallen.global} + add 1 to {fallen.beginner} + {checkpoint.%player%.active} is 1: + teleport player to {parkour.checkpoint.%player%} + + else: + teleport player to {parkourspawn.Quarry} + execute console command "/starttimer %player% Quarry" + {fallen.%player%} is less than 2: + message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player + stop + {fallen.%player%} is greater than 1: + message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player + {fallen.%player%} is 10 or 20 or 50 or 100: + message "&aDid you know you could purchase checkpoints at" to player + message "&e http://bit.ly/ParkourShop &a?" to player + stop + stop + +#DoomShaft +on walking on stone: + {currentparkourcourse.%player%} is "DoomShaft" + player is in "parkourmaps" + message "&cYou were sent back for falling!" to the player + add 1 to {fallen.%player%} + add 1 to {fallen.global} + add 1 to {fallen.beginner} + {checkpoint.%player%.active} is 1: + teleport player to {parkour.checkpoint.%player%} + else: + teleport player to {parkourspawn.DoomShaft} + execute console command "/starttimer %player% DoomShaft" + {fallen.%player%} is less than 2: + message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player + stop + {fallen.%player%} is greater than 1: + message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player + {fallen.%player%} is 10 or 20 or 50 or 100: + message "&aDid you know you could purchase checkpoints at" to player + message "&e http://bit.ly/ParkourShop &a?" to player + stop + stop + +#PipeWorld +on walking on mycelium or wool or stained clay: + {currentparkourcourse.%player%} is "PipeWorld" + player is in "parkourmaps" + message "&cYou were sent back for falling!" to the player + add 1 to {fallen.%player%} + add 1 to {fallen.global} + add 1 to {fallen.beginner} + {checkpoint.%player%.active} is 1: + teleport player to {parkour.checkpoint.%player%} + else: + teleport player to {parkourspawn.PipeWorld} + execute console command "/starttimer %player% PipeWorld" + {fallen.%player%} is less than 2: + message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player + stop + {fallen.%player%} is greater than 1: + message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player + {fallen.%player%} is 10 or 20 or 50 or 100: + message "&aDid you know you could purchase checkpoints at" to player + message "&e http://bit.ly/ParkourShop &a?" to player + stop + stop + +#GreatPumpkin +on walking on mycelium or gravel or jack-o-lantern or leaves or stained clay: + {currentparkourcourse.%player%} is "GreatPumpkin" + player is in "parkourmaps" + message "&cYou were sent back for falling!" to the player + add 1 to {fallen.%player%} + add 1 to {fallen.global} + add 1 to {fallen.beginner} + {checkpoint.%player%.active} is 1: + teleport player to {parkour.checkpoint.%player%} + else: + teleport player to {parkourspawn.GreatPumpkin} + execute console command "/starttimer %player% GreatPumpkin" + {fallen.%player%} is less than 2: + message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player + stop + {fallen.%player%} is greater than 1: + message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player + {fallen.%player%} is 10 or 20 or 50 or 100: + message "&aDid you know you could purchase checkpoints at" to player + message "&e http://bit.ly/ParkourShop &a?" to player + stop + stop + + + + +#BigTree +on walking on wood or leaves or grass or glowstone: + {currentparkourcourse.%player%} is "BigTree" + player is in "parkourmaps" + message "&cYou were sent back for falling!" to the player + add 1 to {fallen.%player%} + add 1 to {fallen.global} + add 1 to {fallen.beginner} + {checkpoint.%player%.active} is 1: + teleport player to {parkour.checkpoint.%player%} + else: + teleport player to {parkourspawn.BigTree} + execute console command "/starttimer %player% BigTree" + {fallen.%player%} is less than 2: + message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player + stop + {fallen.%player%} is greater than 1: + message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player + {fallen.%player%} is 10 or 20 or 50 or 100: + message "&aDid you know you could purchase checkpoints at" to player + message "&e http://bit.ly/ParkourShop &a?" to player + stop + stop + +#Contra +on walking on lapis lazuli block or black wool or falling water: + {currentparkourcourse.%player%} is "Contra" + player is in "parkourmaps" + message "&cYou were sent back for falling!" to the player + add 1 to {fallen.%player%} + add 1 to {fallen.global} + add 1 to {fallen.beginner} + {checkpoint.%player%.active} is 1: + teleport player to {parkour.checkpoint.%player%} + else: + teleport player to {parkourspawn.Contra} + execute console command "/starttimer %player% Farm" + {fallen.%player%} is less than 2: + message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player + stop + {fallen.%player%} is greater than 1: + message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player + {fallen.%player%} is 10 or 20 or 50 or 100: + message "&aDid you know you could purchase checkpoints at" to player + message "&e http://bit.ly/ParkourShop &a?" to player + stop + stop +every 1 seconds: + loop all players: + block above block below loop-player is water or falling water: + {currentparkourcourse.%loop-player%} is "Contra" + loop-player is in "parkourmaps" + message "&cYou were sent back for falling!" to the loop-player + add 1 to {fallen.%loop-player%} + add 1 to {fallen.global} + add 1 to {fallen.beginner} + {checkpoint.%loop-player%.active} is 1: + teleport loop-player to {parkour.checkpoint.%loop-player%} + else: + teleport loop-player to {parkourspawn.Contra} + execute console command "/starttimer %loop-player% Contra" + if {fallen.%loop-player%} is less than 2: + message "&cYou have fallen &e%{fallen.%loop-player%}% &ctime this round." to loop-player + stop trigger + + {fallen.%loop-player%} is greater than 1: + message "&cYou have fallen &e%{fallen.%loop-player%}% &ctimes this round." to loop-player + {fallen.%loop-player%} is 10 or 20 or 50 or 100: + message "&aDid you know you could purchase checkpoints at" to loop-player + message "&e http://bit.ly/ParkourShop &a?" to loop-player + stop + +#Farm +on walking on grass or dirt or gravel or farmland: + {currentparkourcourse.%player%} is "Farm" + player is in "parkourmaps" + message "&cYou were sent back for falling!" to the player + add 1 to {fallen.%player%} + add 1 to {fallen.global} + add 1 to {fallen.beginner} + {checkpoint.%player%.active} is 1: + teleport player to {parkour.checkpoint.%player%} + else: + teleport player to {parkourspawn.farm} + execute console command "/starttimer %player% Farm" + {fallen.%player%} is less than 2: + message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player + stop + {fallen.%player%} is greater than 1: + message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player + {fallen.%player%} is 10 or 20 or 50 or 100: + message "&aDid you know you could purchase checkpoints at" to player + message "&e http://bit.ly/ParkourShop &a?" to player + stop + stop +every 1 seconds: + loop all players: + block above block below loop-player is water or falling water: + {currentparkourcourse.%loop-player%} is "Farm" + loop-player is in "parkourmaps" + message "&cYou were sent back for falling!" to the loop-player + add 1 to {fallen.%loop-player%} + add 1 to {fallen.global} + add 1 to {fallen.beginner} + {checkpoint.%loop-player%.active} is 1: + teleport loop-player to {parkour.checkpoint.%loop-player%} + else: + teleport loop-player to {parkourspawn.Farm} + execute console command "/starttimer %loop-player% Farm" + if {fallen.%loop-player%} is less than 2: + message "&cYou have fallen &e%{fallen.%loop-player%}% &ctime this round." to loop-player + stop trigger + + {fallen.%loop-player%} is greater than 1: + message "&cYou have fallen &e%{fallen.%loop-player%}% &ctimes this round." to loop-player + {fallen.%loop-player%} is 10 or 20 or 50 or 100: + message "&aDid you know you could purchase checkpoints at" to loop-player + message "&e http://bit.ly/ParkourShop &a?" to loop-player + stop + + +#2FortRed +on walking on upside-down double sandstone slab or sand or wool or light blue hard clay or wood planks or logs or wood stairs or dirt or clay bricks stairs or brick slabs: + {currentparkourcourse.%player%} is "2FortRed" + player is in "parkourmaps" + message "&cYou were sent back for falling!" to the player + add 1 to {fallen.%player%} + add 1 to {fallen.global} + add 1 to {fallen.beginner} + {checkpoint.%player%.active} is 1: + teleport player to {parkour.checkpoint.%player%} + else: + teleport player to {parkourspawn.2FortRed} + execute console command "/starttimer %player% 2FortRed" + {fallen.%player%} is less than 2: + message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player + stop + {fallen.%player%} is greater than 1: + message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player + {fallen.%player%} is 10 or 20 or 50 or 100: + message "&aDid you know you could purchase checkpoints at" to player + message "&e http://bit.ly/ParkourShop &a?" to player + stop + stop +every 1 seconds: + loop all players: + block above block below loop-player is water or falling water: + {currentparkourcourse.%loop-player%} is "2FortRed" + loop-player is in "parkourmaps" + message "&cYou were sent back for falling!" to the loop-player + add 1 to {fallen.%loop-player%} + add 1 to {fallen.global} + add 1 to {fallen.beginner} + {checkpoint.%loop-player%.active} is 1: + teleport loop-player to {parkour.checkpoint.%loop-player%} + else: + teleport loop-player to {parkourspawn.2FortRed} + execute console command "/starttimer %loop-player% 2FortRed" + if {fallen.%loop-player%} is less than 2: + message "&cYou have fallen &e%{fallen.%loop-player%}% &ctime this round." to loop-player + stop trigger + + {fallen.%loop-player%} is greater than 1: + message "&cYou have fallen &e%{fallen.%loop-player%}% &ctimes this round." to loop-player + {fallen.%loop-player%} is 10 or 20 or 50 or 100: + message "&aDid you know you could purchase checkpoints at" to loop-player + message "&e http://bit.ly/ParkourShop &a?" to loop-player + stop + +#2FortBlue +on walking on upside-down double sandstone slab or sand or wool or red hard clay or wood planks or logs or wood stairs or dirt or clay bricks stairs or brick slabs: + {currentparkourcourse.%player%} is "2FortBlue" + player is in "parkourmaps" + message "&cYou were sent back for falling!" to the player + add 1 to {fallen.%player%} + add 1 to {fallen.global} + add 1 to {fallen.beginner} + {checkpoint.%player%.active} is 1: + teleport player to {parkour.checkpoint.%player%} + else: + teleport player to {parkourspawn.2FortBlue} + execute console command "/starttimer %player% 2FortBlue" + {fallen.%player%} is less than 2: + message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player + stop + {fallen.%player%} is greater than 1: + message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player + {fallen.%player%} is 10 or 20 or 50 or 100: + message "&aDid you know you could purchase checkpoints at" to player + message "&e http://bit.ly/ParkourShop &a?" to player + stop + stop +every 1 seconds: + loop all players: + block above block below loop-player is water or falling water: + {currentparkourcourse.%loop-player%} is "2FortBlue" + loop-player is in "parkourmaps" + message "&cYou were sent back for falling!" to the loop-player + add 1 to {fallen.%loop-player%} + add 1 to {fallen.global} + add 1 to {fallen.beginner} + {checkpoint.%loop-player%.active} is 1: + teleport loop-player to {parkour.checkpoint.%loop-player%} + else: + teleport loop-player to {parkourspawn.2FortBlue} + execute console command "/starttimer %loop-player% 2FortBlue" + if {fallen.%loop-player%} is less than 2: + message "&cYou have fallen &e%{fallen.%loop-player%}% &ctime this round." to loop-player + stop trigger + + {fallen.%loop-player%} is greater than 1: + message "&cYou have fallen &e%{fallen.%loop-player%}% &ctimes this round." to loop-player + {fallen.%loop-player%} is 10 or 20 or 50 or 100: + message "&aDid you know you could purchase checkpoints at" to loop-player + message "&e http://bit.ly/ParkourShop &a?" to loop-player + stop \ No newline at end of file diff --git a/Obam-Parkour/parkoursigns.sk b/OBAM-Old/Obam-Parkour/parkoursigns.sk similarity index 100% rename from Obam-Parkour/parkoursigns.sk rename to OBAM-Old/Obam-Parkour/parkoursigns.sk diff --git a/Obam-Parkour/parkourspawn.sk b/OBAM-Old/Obam-Parkour/parkourspawn.sk similarity index 100% rename from Obam-Parkour/parkourspawn.sk rename to OBAM-Old/Obam-Parkour/parkourspawn.sk diff --git a/Obam-Parkour/parkourstats.sk b/OBAM-Old/Obam-Parkour/parkourstats.sk similarity index 100% rename from Obam-Parkour/parkourstats.sk rename to OBAM-Old/Obam-Parkour/parkourstats.sk diff --git a/Obam-Parkour/timer.sk b/OBAM-Old/Obam-Parkour/timer.sk similarity index 100% rename from Obam-Parkour/timer.sk rename to OBAM-Old/Obam-Parkour/timer.sk diff --git a/Obam-Testing/TicketLogSystem b/OBAM-Old/TicketLogSystem similarity index 100% rename from Obam-Testing/TicketLogSystem rename to OBAM-Old/TicketLogSystem diff --git a/Obam-Tools/admin.sk b/OBAM-Old/admin.sk similarity index 100% rename from Obam-Tools/admin.sk rename to OBAM-Old/admin.sk diff --git a/Obam-Testing/autobantest.sk b/OBAM-Old/autobantest.sk similarity index 100% rename from Obam-Testing/autobantest.sk rename to OBAM-Old/autobantest.sk diff --git a/Obam-General/autohub.sk b/OBAM-Old/autohub.sk similarity index 100% rename from Obam-General/autohub.sk rename to OBAM-Old/autohub.sk diff --git a/OBAM-Old/boatsforhub b/OBAM-Old/boatsforhub new file mode 100644 index 0000000..4b598f7 --- /dev/null +++ b/OBAM-Old/boatsforhub @@ -0,0 +1,24 @@ + + +on right click: + targeted block is water block: + {time.boat.%player%} is not set: + set {time.boat.%player%} to now + add 1 minute to {time.boat.%player%} + set {_time} to difference between {time.boat.%player%} and now + {_time} is less than 1 minute: + send "&cYo... cooldown" to player + stop + {_time} is greater than or equal to 1 minute: + spawn boat at targeted block + set {time.boat.%player%} to now + + + +on vehicle exit: + delete vehicle of player + +on vehicle damage: + cancel event + + \ No newline at end of file diff --git a/OBAM-Old/boatsforhub.sk b/OBAM-Old/boatsforhub.sk new file mode 100644 index 0000000..17ccf6c --- /dev/null +++ b/OBAM-Old/boatsforhub.sk @@ -0,0 +1,51 @@ + + +on right click: + world is "Death-hub" + targeted block is water block: + {time.boat.%player%} is not set: + set {time.boat.%player%} to now + add 1 minute to {time.boat.%player%} + set {_time} to difference between {time.boat.%player%} and now + {_time} is less than 1 minute: + send "&cYo... cooldown" to player + stop + {_time} is greater than or equal to 1 minute: + spawn boat at targeted block + set {time.boat.%player%} to now + + + +on vehicle exit: + world is "Death-hub" + vehicle is boat: + delete vehicle of player + vehicle is minecart: + delete vehicle of player + +on vehicle damage: + world is "Death-hub" + cancel event + + +command /vehicledel: + permission: obam.admin + trigger: + loop all entities in "Death-hub": + loop-entity is a boat: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + delete loop-entity + loop-entity is a minecart: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + delete loop-entity + + send "&e%{_count}% &avehicles deleted" to player + + + + + \ No newline at end of file diff --git a/Obam-Testing/broadcast.sk b/OBAM-Old/broadcast.sk similarity index 100% rename from Obam-Testing/broadcast.sk rename to OBAM-Old/broadcast.sk diff --git a/Obam-Testing/bugs.sk b/OBAM-Old/bugs.sk similarity index 100% rename from Obam-Testing/bugs.sk rename to OBAM-Old/bugs.sk diff --git a/OBAM-Old/ci.sk b/OBAM-Old/ci.sk new file mode 100644 index 0000000..f52717f --- /dev/null +++ b/OBAM-Old/ci.sk @@ -0,0 +1,24 @@ +command /ci: + permission: obam.smod + trigger: + + loop {db_ci.items::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_chest} is set: + set {_chest} to "%{_chest}%;s;%{_count}%;%loop-value%" + {_chest} is not set: + set {_chest} to "s;%{_count}%;%loop-value%" + replace "PLAYER" in {_chest} with "%player%" + + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + + show {_chest} with {_size} rows named "&1Custom Items" to player \ No newline at end of file diff --git a/OBAM-Old/circle.sk b/OBAM-Old/circle.sk new file mode 100644 index 0000000..0e04130 --- /dev/null +++ b/OBAM-Old/circle.sk @@ -0,0 +1,28 @@ +on connect: + {banned.%player%} is true + kick the player due to "&cPermabanned by %{banstaff.%player%}%. Reason: &4%{banreason.%player%}%" + +command /circle:ban : + executable by: console + trigger: + kick offlineplayer-argument due to "&cPermabanned by %arg-2%. Reason: &4%arg-3%" + set {banned.%offlineplayer-argument%} to true + set {banreason.%offlineplayer-argument%} to arg-3 + set {banstaff.%offlineplayer-argument%} to arg-2 + broadcast "&c%offlineplayer-argument% &cwas permabanned by %arg-2%&c. Reason: %arg-3%" + +command /circle:igban : + executable by: players + permission: obam.mod + trigger: + kick offlineplayer-argument due to "&cPermabanned by %player%. Reason: &4%arg-2%" + set {banned.%offlineplayer-argument%} to true + set {banreason.%offlineplayer-argument%} to arg-2 + set {banstaff.%offlineplayer-argument%} to player + broadcast "&c%offlineplayer-argument% &cwas permabanned by %player%&c. Reason: %arg-2%" + +command /circle:unban : + executable by: console, players + permission: obam.mod + trigger: + set {banned.%offlineplayer-argument%} to false \ No newline at end of file diff --git a/OBAM-Old/connect.sk b/OBAM-Old/connect.sk new file mode 100644 index 0000000..cff5664 --- /dev/null +++ b/OBAM-Old/connect.sk @@ -0,0 +1,34 @@ + + + + + + +command /connect : + permission: obam.admin + trigger: + broadcast "&7%argument% has connected" + +command /disconnect : + permission: obam.admin + trigger: + broadcast "&7%argument% has disconnected" + + + +on join: + set join message to " " + set {db_online.%player%} to true + + +on quit: + set quit message to " " + set {db_online.%player%} to false + set {db_online.%player%.logoff} to now + wait 5 seconds + {db_online.%player%} is false + execute console command "/disconnect %player%" + forward command "disconnect %player%" to console + + + diff --git a/OBAM-Old/dbtest.sk b/OBAM-Old/dbtest.sk new file mode 100644 index 0000000..6264ba8 --- /dev/null +++ b/OBAM-Old/dbtest.sk @@ -0,0 +1,22 @@ +command /dbtest : + permission: obam.admin + trigger: + + add argument to {site_test::*} + send "%argument% added to Site db" + +command /dbtest2 : + permission: obam.admin + trigger: + + add argument to {site_test2::*} + send "%argument% added to site db" + + +command /dbtest3: + permission: obam.admin + trigger: + + set {_time} to now + add {_time} to {site_test3::*} + send "%{_time}% added to site db" \ No newline at end of file diff --git a/Obam-Tools/defaultfix.sk b/OBAM-Old/defaultfix.sk similarity index 100% rename from Obam-Tools/defaultfix.sk rename to OBAM-Old/defaultfix.sk diff --git a/Obam-Testing/effect.sk b/OBAM-Old/effect.sk similarity index 100% rename from Obam-Testing/effect.sk rename to OBAM-Old/effect.sk diff --git a/OBAM-Old/enchnattest.sk b/OBAM-Old/enchnattest.sk new file mode 100644 index 0000000..ba92527 --- /dev/null +++ b/OBAM-Old/enchnattest.sk @@ -0,0 +1,2 @@ +on script load: + register new shapeless recipe for diamond tool of unbreaking 4 using enchanted book of unbreaking 4, diamond tool, air, air, air, air, air, air, air \ No newline at end of file diff --git a/Obam-Testing/firetest.sk b/OBAM-Old/firetest.sk similarity index 100% rename from Obam-Testing/firetest.sk rename to OBAM-Old/firetest.sk diff --git a/Obam-Tools/gcommannds.sk b/OBAM-Old/gcommannds.sk similarity index 100% rename from Obam-Tools/gcommannds.sk rename to OBAM-Old/gcommannds.sk diff --git a/Obam-Other/hashedfordays.sk b/OBAM-Old/hashedfordays.sk similarity index 100% rename from Obam-Other/hashedfordays.sk rename to OBAM-Old/hashedfordays.sk diff --git a/Obam-General/helpbeta.sk b/OBAM-Old/helpbeta.sk similarity index 100% rename from Obam-General/helpbeta.sk rename to OBAM-Old/helpbeta.sk diff --git a/Obam-General/helpbetageneral.sk b/OBAM-Old/helpbetageneral.sk similarity index 100% rename from Obam-General/helpbetageneral.sk rename to OBAM-Old/helpbetageneral.sk diff --git a/Obam-General/helpbetaskyblock.sk b/OBAM-Old/helpbetaskyblock.sk similarity index 100% rename from Obam-General/helpbetaskyblock.sk rename to OBAM-Old/helpbetaskyblock.sk diff --git a/Obam-General/hub.sk b/OBAM-Old/hub.sk similarity index 100% rename from Obam-General/hub.sk rename to OBAM-Old/hub.sk diff --git a/OBAM-Old/hubconfig.old.sk b/OBAM-Old/hubconfig.old.sk new file mode 100644 index 0000000..23b185a --- /dev/null +++ b/OBAM-Old/hubconfig.old.sk @@ -0,0 +1,96 @@ +options: + help: book named "&6&lOBAM&fCraft &3Guide" with lore "&7Right click with this book to learn the ins||&7and out of OBAM" + worlds: ender pearl named "&3Game Worlds" with lore "&7Right click with this to check the current Game Worlds!" + fly: feather named "&3Fly!" with lore "&7Right click with this feather to fly in the hub!" + skyblock: i;grass;n;&6Skyblock;l;&7Try our Skyblock world with custom challenges and ||&7Villager trading!;c;sudo %player% worlds skyblock + fronts: i;cobblestone;n;&6Fronts;l;&7Our Special flavour of Survival with immediate||&7land claiming!;c;sudo %player% worlds survival + wtfronts: i;magma cream;n;&6WTFronts;l;&cBETA TESTING|| ||&7Extreme Survival with extreme payoffs!;c;sudo %player% worlds wtf + kitpvp: i;blaze rod;n;&6Kit PVP;l;&7Play OBAM's KitPvP with new original kits!;c;sudo %player% worlds kit + + + +on join: + execute console command "/mv tp %player% Death-hub" + clear player's inventory + give player {@help} + give player {@worlds} + give player {@fly} + +on shoot: + world is "Death-hub" + shooter's tool is ender pearl + cancel event + +on right click: + player's tool is {@help}: + make player execute command "/help" + player's tool is {@worlds}: + cancel event + make player execute command "/worlds" + player's tool is {@fly}: + {fly.hub.%player%} is not set: + set {fly.hub.%player%} to true + set fly state of player to true + send "&aYou can fly!" + stop + {fly.hub.%player%} is true: + set {fly.hub.%player%} to false + set fly state of player to false + send "&cYou can no longer fly!" + stop + {fly.hub.%player%} is false: + set {fly.hub.%player%} to true + set fly state of player to true + send "&aYou can fly!" + stop + + +on drop: + world is "Death-hub": + cancel event + + +command /worlds []: + permission: obam.free + trigger: + world is "Death-hub" + argument is not set: + + send "&aBringing up menu..." + + show "s;1;{@skyblock};s;2;{@kitpvp};s;3;{@fronts};s;4;{@wtfronts}" with 1 row named "&7Worlds" to player + + argument is "survival": + + make player execute command "/transfer survival" + + argument is "wtf": + + make player execute command "/transfer curtain" + + argument is "skyblock": + + execute console command "mv tp %player% skyworld" + + argument is "kit": + + execute console command "mv tp %player% kitpvpkillingfields" + +every second: + + loop all players: + {fly.hub.%loop-player%} is true: + loop-player's world is not "Death-hub": + set fly state of loop-player to false + set {fly.hub.%loop-player%} to false + loop-player's world is "Death-hub": + set fly state of loop-player to true + + +command /transfer []: + trigger: + world is "Death-hub" + connect player to "%argument%" + + + diff --git a/Obam-Tools/hubprotect.sk b/OBAM-Old/hubprotect.sk similarity index 100% rename from Obam-Tools/hubprotect.sk rename to OBAM-Old/hubprotect.sk diff --git a/Obam-KitPvp/kds.sk b/OBAM-Old/kds.sk similarity index 100% rename from Obam-KitPvp/kds.sk rename to OBAM-Old/kds.sk diff --git a/kitpvp/kitstuff.sk b/OBAM-Old/kitstuff.sk similarity index 100% rename from kitpvp/kitstuff.sk rename to OBAM-Old/kitstuff.sk diff --git a/OBAM-Old/minecartsforhub.sk b/OBAM-Old/minecartsforhub.sk new file mode 100644 index 0000000..97b71f7 --- /dev/null +++ b/OBAM-Old/minecartsforhub.sk @@ -0,0 +1,20 @@ + + +on right click: + targeted block is rail: + {time.rail.%player%} is not set: + set {time.rail.%player%} to now + add 1 minute to {time.rail.%player%} + set {_time} to difference between {time.rail.%player%} and now + {_time} is less than 1 minute: + send "&cYo... cooldown" to player + stop + {_time} is greater than or equal to 1 minute: + spawn minecart at targeted block + set {time.rail.%player%} to now + + + + + + \ No newline at end of file diff --git a/Obam-Testing/modbridge.sk b/OBAM-Old/modbridge.sk similarity index 100% rename from Obam-Testing/modbridge.sk rename to OBAM-Old/modbridge.sk diff --git a/OBAM-Old/ninjatools.sk b/OBAM-Old/ninjatools.sk new file mode 100644 index 0000000..c73c63b --- /dev/null +++ b/OBAM-Old/ninjatools.sk @@ -0,0 +1,130 @@ + + + +command /home: + description: Go to island's home + permission: obam.free + usage: /home or /start + executable by: players + aliases: /start + trigger: + make player execute command "/is" + + +command /restartisland: + description: Restart your island + usage: /restart + executable by: players or console + permission: obam.free + aliases: /ri + trigger: + {island.reset.use.%player%} is greater than or equal to 2: + message "&cYou have used up your two resets! You will need to purchase the next one for &e2000 Tickets!&c Type &e/restartconfirm&c to continue!" to player + set {skyblock.%player%.restart} to 1 + stop + {island.reset.use.%player%} is 1: + message "&cAre you sure you want to do this? This will reset your island, You can only do this for free &e1 &ctime! Type &e/restartconfirm to do this." to player + set {skyblock.%player%.restart} to 1 + stop + message "&cAre you sure you want to do this? This will reset your island, You can only do this for free &e2 &ctimes! Type &e/restartconfirm to do this." to player + set {skyblock.%player%.restart} to 1 + +command /risrestart : + permission: obam.admin + trigger: + set {island.reset.use.%player-argument%} to 0 + +command /restartconfirm: + permission: obam.free + trigger: + world is "skyworld": + + {skyblock.%player%.restart} is 1: + {island.reset.use.%player%} is greater than or equal to 2: + set {balance.%player%} to player's balance + {balance.%player%} is less than 2000: + send "&cYou Do not have enough tickets for this!" to player + stop + remove 2000 from player's balance + send "&cYou have paid &e2000 Tickets&c for resetting your island. You now have &e%player's balance% &cremaining." to player + + message "&cYou are restarting your island!" to player + make player execute command "/is restart" + set {skyblock.%player%.restart} to 0 + {island.reset.use.%player%} is not set: + set {island.reset.use.%player%} to 0 + add 1 to {island.reset.use.%player%} + stop + else: + message "&cPlease type /restart first" + + else: + message "&cYou can not do that here!" to player + + + +command /setspawn: + description: Sets island's spawnpoint + usage: /spawnpoint while standing in location + permission: obam.free + executable by: players + aliases: /sethome + trigger: + make player execute command "/is sethome" + + +command /warp : + description: Go to a player's island + usage: /warp [player name] + executable by: players + permission: obam.free + trigger: + make player execute command "/is warp %arg 1%" + +command /setwarp: + description: Set warp location for island + permission: obam.free + usage: /setwarp + trigger: + make player execute command "/is setwarp" + + +command /togglewarp: + description: Toggle if other players can warp to your island + permission: obam.free + usage: /togglewarp + trigger: + make player execute command "/is togglewarp" + + +command /invite : + description: Invite someone to your island + permission: obam.free + usage: /invite [name] + trigger: + make player execute command "/is invite %arg 1%" + + + + +command /accept: + description: Accept party invite + usage: /accept + trigger: + make player execute command "/is accept" + + +command /reject: + description: Reject party invite + permission: obam.free + usage: /reject + trigger: + make player execute command "/is reject" + + +command /remove : + description: Remove a player from your island + permission: obam.free + usage: /remove [name] + trigger: + make player execute command "/is kick %arg 1%" \ No newline at end of file diff --git a/Obam-Testing/powerpick.sk b/OBAM-Old/powerpick.sk similarity index 86% rename from Obam-Testing/powerpick.sk rename to OBAM-Old/powerpick.sk index 1aaf182..06299b3 100644 --- a/Obam-Testing/powerpick.sk +++ b/OBAM-Old/powerpick.sk @@ -1,10 +1,10 @@ options: - powerpick: diamond pickaxe;&cPower Pick;&7Reinforced by diamonds to speed up;&7the mining process + powerpick: diamond pickaxe named "&cPower Pick" with lore "&7Reinforced by diamonds to speed up||&7the mining process" on script load: - register new shapeless recipe for named item stack from "{@powerpick}" using diamond block, diamond block, diamond block, diamond block, diamond pick, diamond block, diamond block, diamond block, diamond block + register new shapeless recipe {@powerpick} using diamond block, diamond block, diamond block, diamond block, diamond pick, diamond block, diamond block, diamond block, diamond block @@ -63,4 +63,4 @@ on mine: {_fint} is not set: drop gravel at location of event-block set loop-block to air - \ No newline at end of file + diff --git a/Obam-Other/referall.sk b/OBAM-Old/referall.sk similarity index 100% rename from Obam-Other/referall.sk rename to OBAM-Old/referall.sk diff --git a/Obam-Tools/restarts.sk b/OBAM-Old/restarts.sk similarity index 100% rename from Obam-Tools/restarts.sk rename to OBAM-Old/restarts.sk diff --git a/OBAM-Old/schat2.hub.sk b/OBAM-Old/schat2.hub.sk new file mode 100644 index 0000000..2950bdd --- /dev/null +++ b/OBAM-Old/schat2.hub.sk @@ -0,0 +1,324 @@ +options: + p: &3[H] + +on join: + {db_alerts.on.%player%} is not set: + set {db_alerts.on.%player%} to true + {db_alerts.on.%player%} is true: + send "&aYour chat alerts are &eOn&a. You can turn them off by using the command &e/chat alerts off" + {db_alerts.on.%player%} is false: + send "&aYour chat alerts are &eOff&a. You can turn them on by using the command &e/chat alert on" + {db_global.%player%} is not set: + set {db_global.%player%} to true + {db_global.%player%} is true: + set {db_channel.global::%player%} to player + set {db_channel.%player%} to "global" + player does not have permission "obam.supporter": + delete {db_channel.supporter::%player%} + player does not have permission "obam.mod": + delete {db_channel.staff::%player%} + player does not have permission "obam.mechanic": + delete {db_channel.mech::%player%} + {db_channel.mech.%player%} is not set: + player has permission "obam.mechanic": + set {db_channel.mech.%player%} to true + {db_channel.mech.%player%} is true: + set {db_channel.mech::%player%} to player + {db_channel.sup.%player%} is not set: + player has permission "obam.supporter": + set {db_channel.sup.%player%} to true + {db_channel.sup.%player%} is true: + set {db_channel.supporter::%player%} to player + {db_channel.staff.%player%} is not set: + player has permission "obam.mod": + set {db_channel.staff::%player%} to player + {db_channel.staff.%player%} is true: + set {db_channel.supporter::%player%} to player + +on chat: + cancel event + player is "IcecreamCow" or "Electric_Hamster" or "ISMOOCH" or "GloriousKoch": + set {_pre} to "{@p} &d[A] %player%" + {_pre} is not set: + player is "OrigamiJoe" or "Deathtomb8953": + set {_pre} to "{@p} &a[╪] %player%" + {_pre} is not set: + player has permission "obam.mod": + set {_pre} to "{@p} &2[M] %player%" + {_pre} is not set: + player has permission "obam.supporter": + set {_pre} to "{@p} &6[^] %player%" + {_pre} is not set: + set {_pre} to "{@p} %player%" + player is "BruSwain": + set {_pre} to "{@p} &6[^] %player%" + {db_star.%player%} is set: + set {_pre} to "%{_pre}% <%{db_star.%player%}%>✦" + {db_channel.%player%} is "private": + set {_player} to {private.%player%} parsed as a player + {_player} is online: + set {_found} to true + {_found} is set: + set {_player} to {private.%player%} parsed as a player + send "&d%player% ➽ %{_player}%&d: %message%" to {_player} + send "&d%player% ➽ %{_player}%&d: %message%" to player + {db_alerts.on.%{_player}%} is true: + play level up at location of {_player} with pitch 2 + {_found} is not set: + set {_message} to "&d%player% ➽ %{private.%player%}%&d: %message%" + send {_message} to player + execute console command "privatepush %{private.%player%}% %{_message}%" + {db_channel.%player%} is "staff": + player does not have permission "obam.mod": + set {db_channel.%player%} to "global" + delete {db_channel.staff::%player%} + {db_channel.%player%} is "staff": + loop {db_channel.staff::*}: + clear {_player} + set {_player} to loop-index parsed as player + set message to "&a%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&a" + {db_alerts.on.%{_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&a: %message%" + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "/modpush %{_pre}%&a: %message%" + {db_channel.%player%} is "mechanic": + player does not have permission "obam.mechanic": + set {db_channel.%player%} to "global" + delete {db_channel.mech::%player%} + {db_channel.%player%} is "mechanic": + loop {db_channel.mech::*}: + clear {_player} + set {_player} to loop-index parsed as player + set message to "&e%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&e" + {db_alerts.on.%{_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&e: %message%" + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "/mechpush %{_message}%" + stop + {db_channel.%player%} is "supporter": + player does not have permission "obam.supporter": + set {db_channel.%player%} to "global" + delete {db_channel.supporter::%player%} + {db_channel.%player%} is "supporter": + loop {db_channel.supporter::*}: + clear {_player} + set {_player} to loop-index parsed as player + set message to "&b%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&b" + {db_alerts.on.%{_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&b: %message%" + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "/supporterpush %{_message}%" + stop + {db_channel.%player%} is "global": + loop {db_channel.global::*}: + clear {_player} + set {_player} to loop-index parsed as player + set message to "&f%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&f" + {db_alerts.on.%{_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&f: %message%" + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "globalpush %{_pre}%&f: %message%" + stop + +command /chat [] []: + permission: obam.free + aliases: c, ch + trigger: + argument 1 is "m" or "mod": + player does not have permission "obam.mod": + send "&cYou dont have permission to do this!" + stop + set {db_channel.%player%} to "staff" + {db_channel.staff::%player%} is not set: + set {db_channel.staff::%player%} to player + send "&aYou are now chatting in the &aMod&a channel!" + stop + argument 1 is "s" or "supporter": + player does not have permission "obam.supporter": + send "&cYou dont have permission to do this!" + stop + set {db_channel.%player%} to "supporter" + {db_channel.supporter::%player%} is not set: + set {db_channel.supporter.%player%} to player + send "&aYou are now chatting in the &bSupporter&a channel!" + argument 1 is "mech" or "mechanic": + player does not have permission "obam.mechanic": + send "&cYou dont have permission to do this!" + stop + set {db_channel.%player%} to "mechanic" + {db_channel.mech::%player%} is not set: + set {db_channel.mech::%player%} to player + send "&aYou are now chatting in the &eMechanic&a Channel!" + argument 1 is "g" or "global": + set {db_channel.%player%} to "global" + send "&aYou are now chatting in the &fGlobal&a channel!" + argument 1 is "l" or "leave": + argument 2 is not set: + send "&cPlease specify a channel: &e/chat leave " + stop + argument 2 is "mod" or "m": + send "&cYou can not leave the staff chat silly" + stop + argument 2 is "mech" or "mechanic": + send "&cYou are now leaving the &eMechanic&c chat!" + delete {db_channel.mech::%player%} + stop + argument 2 is "s" or "supporter": + send "&cYou are now leaving the &bSupporter&c chat!" + delete {db_channel.supporter::%player%} + stop + argument 2 is "g" or "global": + send "&cYou are now leaving the &fGlobal&c chat!" + delete {db_channel.global::%player%} + stop + argument 1 is "j" or "join": + argument 2 is not set: + send "&cPlease specify a channel: &e/chat join " + stop + argument 2 is "mod" or "m": + player does not have permission "obam.mod": + send "&cYou do not have permission to do this!" + stop + {db_channel.staff::%player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.staff::%player%} to player + set {db_channel.%player%} to "staff" + send "&aYou are now in the &2Mod&a channel!" + stop + argument 2 is "mechanic" or "mech": + player does not have permission "obam.mechanic": + send "&cYou do not have permission to do this!" + stop + {db_channel.mech::%player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.mech::%player%} to player + set {db_channel.%player%} to "mechanic" + send "&aYou are now in the &eMechanic&a Channel!" + stop + argument 2 is "s" or "supporter": + player does not have permission "obam.supporter": + send "&cYou do not have permission to do this!" + stop + {db_channel.supporter::%player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.supporter::%player%} to player + set {db_channel.%player%} to "supporter" + send "&aYou are now in the &bSupporter&a channel!" + stop + argument 2 is "g" or "global": + {db_channel.global::%player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.global::%player%} to player + set {db_channel.%player%} to "global" + send "&aYou are now in the &fGlobal&a channel!" + argument 1 is "who": + argument 2 is not set: + loop {db_channel.%{db_channel.%player%}%::*}: + send "%loop-index%" + argument 2 is set: + {db_channel.%{db_channel.%player%}%::%argument 2%} is set: + send "%argument 2% is in this channel" + argument 1 is "alerts" or "alert" or "a": + argument 2 is not set: + {db_alerts.on.%player%} is not set: + set {db_alerts.on.%player%} to true + send "&aYour chat alerts are now &eOn&a." + stop + {db_alerts.on.%player%} is true: + set {db_alerts.on.%player%} to false + send "&aYour chat alerts are now &eOff&a." + stop + {db_alerts.on.%player%} is false: + set {db_alerts.on.%player%} to true + send "&aYour chat alerts are now &eOn&a." + stop + argument 2 is "off": + set {db_alerts.on.%player%} to false + send "&aYour chat alerts are now &eOff&a." + argument 2 is "on": + set {db_alerts.on.%player%} to true + send "&aYour chat alerts are now &eOn&a." + +command /star []: + permission: obam.admin + trigger: + argument 2 is "clear": + clear {db_star.%argument 1%} + send "&aCleared Star setting for %argument 1%" + stop + set {db_star.%argument 1%} to argument 2 + send "&aStar for %argument 1% set to <%argument 2%>%argument 2%&a." + +command /tell [] []: + permission: obam.free + trigger: + argument 1 is not set: + {db_channel.%player%} is "private": + send "&aYou have left your private conversation with %{private.%player%}%" + make player execute command "/ch g" + stop + {db_channel.%player%} is not "private": + send "&cYou are not in a conversation!" + stop + argument 2 is not set: + send "&dYou are now in a private conversation with &e%argument 1%" + set {private.%player%} to "%argument 1%" + set {db_channel.%player%} to "private" + argument 2 is set: + send "&d%player% ➽ %argument 1%: %argument 2%" to player + loop all players: + loop-player is argument 1 + set {_found} to true + {_found} is set: + send "&d%player% ➽ %argument 1%: %argument 2%" to argument 1 + {db_alerts.on.%argument 1%} is true: + play level up at location of argument 1 with pitch 2 + {_found} is not set: + set {_message} to "&d%player% ➽ %argument 1%: %argument 2%" + execute console command "privatepush %argument 1% %{_message}%" + +command /fishslap : + permission: obam.free + trigger: + {cool.fish.%player%} is not set: + set {cool.fish.%player%} to now + add 5 seconds to {cool.fish.%player%} + set {_wait} to difference between {cool.fish.%player%} and now + {_wait} is less than 4 seconds: + send "&cYou are slapping too much! Calm down D:" to player + stop + send "&aYou just slapped &e%argument%&a!" + set {cool.fish.%player%} to now + loop all players: + "%loop-player%" is argument + set {_found} to true + {db_alerts.on.%loop-player%} is true + play slime attack at location of loop-player with pitch 1 + send "&e%player% &ajust slapped you with a giant fish!" to loop-player + stop + {_found} is not set: + forward command "fishcatch %argument% %player%" to console diff --git a/OBAM-Old/schat2.kit.sk b/OBAM-Old/schat2.kit.sk new file mode 100644 index 0000000..fdbe0ac --- /dev/null +++ b/OBAM-Old/schat2.kit.sk @@ -0,0 +1,324 @@ +options: + p: &4[K] + +on join: + {db_alerts.on.%player%} is not set: + set {db_alerts.on.%player%} to true + {db_alerts.on.%player%} is true: + send "&aYour chat alerts are &eOn&a. You can turn them off by using the command &e/chat alerts off" + {db_alerts.on.%player%} is false: + send "&aYour chat alerts are &eOff&a. You can turn them on by using the command &e/chat alert on" + {db_global.%player%} is not set: + set {db_global.%player%} to true + {db_global.%player%} is true: + set {db_channel.global::%player%} to player + set {db_channel.%player%} to "global" + player does not have permission "obam.supporter": + delete {db_channel.supporter::%player%} + player does not have permission "obam.mod": + delete {db_channel.staff::%player%} + player does not have permission "obam.mechanic": + delete {db_channel.mech::%player%} + {db_channel.mech.%player%} is not set: + player has permission "obam.mechanic": + set {db_channel.mech.%player%} to true + {db_channel.mech.%player%} is true: + set {db_channel.mech::%player%} to player + {db_channel.sup.%player%} is not set: + player has permission "obam.supporter": + set {db_channel.sup.%player%} to true + {db_channel.sup.%player%} is true: + set {db_channel.supporter::%player%} to player + {db_channel.staff.%player%} is not set: + player has permission "obam.mod": + set {db_channel.staff::%player%} to player + {db_channel.staff.%player%} is true: + set {db_channel.supporter::%player%} to player + +on chat: + cancel event + player is "IcecreamCow" or "Electric_Hamster" or "ISMOOCH" or "GloriousKoch": + set {_pre} to "{@p} &d[A] %player%" + {_pre} is not set: + player is "OrigamiJoe" or "Deathtomb8953": + set {_pre} to "{@p} &a[╪] %player%" + {_pre} is not set: + player has permission "obam.mod": + set {_pre} to "{@p} &2[M] %player%" + {_pre} is not set: + player has permission "obam.supporter": + set {_pre} to "{@p} &6[^] %player%" + {_pre} is not set: + set {_pre} to "{@p} %player%" + player is "BruSwain": + set {_pre} to "{@p} &6[^] %player%" + {db_star.%player%} is set: + set {_pre} to "%{_pre}% <%{db_star.%player%}%>✦" + {db_channel.%player%} is "private": + set {_player} to {private.%player%} parsed as a player + {_player} is online: + set {_found} to true + {_found} is set: + set {_player} to {private.%player%} parsed as a player + send "&d%player% ➽ %{_player}%&d: %message%" to {_player} + send "&d%player% ➽ %{_player}%&d: %message%" to player + {db_alerts.on.%{_player}%} is true: + play level up at location of {_player} with pitch 2 + {_found} is not set: + set {_message} to "&d%player% ➽ %{private.%player%}%&d: %message%" + send {_message} to player + execute console command "privatepush %{private.%player%}% %{_message}%" + {db_channel.%player%} is "staff": + player does not have permission "obam.mod": + set {db_channel.%player%} to "global" + delete {db_channel.staff::%player%} + {db_channel.%player%} is "staff": + loop {db_channel.staff::*}: + clear {_player} + set {_player} to loop-index parsed as player + set message to "&a%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&a" + {db_alerts.on.%{_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&a: %message%" + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "/modpush %{_pre}%&a: %message%" + {db_channel.%player%} is "mechanic": + player does not have permission "obam.mechanic": + set {db_channel.%player%} to "global" + delete {db_channel.mech::%player%} + {db_channel.%player%} is "mechanic": + loop {db_channel.mech::*}: + clear {_player} + set {_player} to loop-index parsed as player + set message to "&e%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&e" + {db_alerts.on.%{_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&e: %message%" + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "/mechpush %{_message}%" + stop + {db_channel.%player%} is "supporter": + player does not have permission "obam.supporter": + set {db_channel.%player%} to "global" + delete {db_channel.supporter::%player%} + {db_channel.%player%} is "supporter": + loop {db_channel.supporter::*}: + clear {_player} + set {_player} to loop-index parsed as player + set message to "&b%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&b" + {db_alerts.on.%{_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&b: %message%" + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "/supporterpush %{_message}%" + stop + {db_channel.%player%} is "global": + loop {db_channel.global::*}: + clear {_player} + set {_player} to loop-index parsed as player + set message to "&f%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&f" + {db_alerts.on.%{_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&f: %message%" + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "globalpush %{_pre}%&f: %message%" + stop + +command /chat [] []: + permission: obam.free + aliases: c, ch + trigger: + argument 1 is "m" or "mod": + player does not have permission "obam.mod": + send "&cYou dont have permission to do this!" + stop + set {db_channel.%player%} to "staff" + {db_channel.staff::%player%} is not set: + set {db_channel.staff::%player%} to player + send "&aYou are now chatting in the &aMod&a channel!" + stop + argument 1 is "s" or "supporter": + player does not have permission "obam.supporter": + send "&cYou dont have permission to do this!" + stop + set {db_channel.%player%} to "supporter" + {db_channel.supporter::%player%} is not set: + set {db_channel.supporter.%player%} to player + send "&aYou are now chatting in the &bSupporter&a channel!" + argument 1 is "mech" or "mechanic": + player does not have permission "obam.mechanic": + send "&cYou dont have permission to do this!" + stop + set {db_channel.%player%} to "mechanic" + {db_channel.mech::%player%} is not set: + set {db_channel.mech::%player%} to player + send "&aYou are now chatting in the &eMechanic&a Channel!" + argument 1 is "g" or "global": + set {db_channel.%player%} to "global" + send "&aYou are now chatting in the &fGlobal&a channel!" + argument 1 is "l" or "leave": + argument 2 is not set: + send "&cPlease specify a channel: &e/chat leave " + stop + argument 2 is "mod" or "m": + send "&cYou can not leave the staff chat silly" + stop + argument 2 is "mech" or "mechanic": + send "&cYou are now leaving the &eMechanic&c chat!" + delete {db_channel.mech::%player%} + stop + argument 2 is "s" or "supporter": + send "&cYou are now leaving the &bSupporter&c chat!" + delete {db_channel.supporter::%player%} + stop + argument 2 is "g" or "global": + send "&cYou are now leaving the &fGlobal&c chat!" + delete {db_channel.global::%player%} + stop + argument 1 is "j" or "join": + argument 2 is not set: + send "&cPlease specify a channel: &e/chat join " + stop + argument 2 is "mod" or "m": + player does not have permission "obam.mod": + send "&cYou do not have permission to do this!" + stop + {db_channel.staff::%player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.staff::%player%} to player + set {db_channel.%player%} to "staff" + send "&aYou are now in the &2Mod&a channel!" + stop + argument 2 is "mechanic" or "mech": + player does not have permission "obam.mechanic": + send "&cYou do not have permission to do this!" + stop + {db_channel.mech::%player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.mech::%player%} to player + set {db_channel.%player%} to "mechanic" + send "&aYou are now in the &eMechanic&a Channel!" + stop + argument 2 is "s" or "supporter": + player does not have permission "obam.supporter": + send "&cYou do not have permission to do this!" + stop + {db_channel.supporter::%player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.supporter::%player%} to player + set {db_channel.%player%} to "supporter" + send "&aYou are now in the &bSupporter&a channel!" + stop + argument 2 is "g" or "global": + {db_channel.global::%player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.global::%player%} to player + set {db_channel.%player%} to "global" + send "&aYou are now in the &fGlobal&a channel!" + argument 1 is "who": + argument 2 is not set: + loop {db_channel.%{db_channel.%player%}%::*}: + send "%loop-index%" + argument 2 is set: + {db_channel.%{db_channel.%player%}%::%argument 2%} is set: + send "%argument 2% is in this channel" + argument 1 is "alerts" or "alert" or "a": + argument 2 is not set: + {db_alerts.on.%player%} is not set: + set {db_alerts.on.%player%} to true + send "&aYour chat alerts are now &eOn&a." + stop + {db_alerts.on.%player%} is true: + set {db_alerts.on.%player%} to false + send "&aYour chat alerts are now &eOff&a." + stop + {db_alerts.on.%player%} is false: + set {db_alerts.on.%player%} to true + send "&aYour chat alerts are now &eOn&a." + stop + argument 2 is "off": + set {db_alerts.on.%player%} to false + send "&aYour chat alerts are now &eOff&a." + argument 2 is "on": + set {db_alerts.on.%player%} to true + send "&aYour chat alerts are now &eOn&a." + +command /star []: + permission: obam.admin + trigger: + argument 2 is "clear": + clear {db_star.%argument 1%} + send "&aCleared Star setting for %argument 1%" + stop + set {db_star.%argument 1%} to argument 2 + send "&aStar for %argument 1% set to <%argument 2%>%argument 2%&a." + +command /tell [] []: + permission: obam.free + trigger: + argument 1 is not set: + {db_channel.%player%} is "private": + send "&aYou have left your private conversation with %{private.%player%}%" + make player execute command "/ch g" + stop + {db_channel.%player%} is not "private": + send "&cYou are not in a conversation!" + stop + argument 2 is not set: + send "&dYou are now in a private conversation with &e%argument 1%" + set {private.%player%} to "%argument 1%" + set {db_channel.%player%} to "private" + argument 2 is set: + send "&d%player% ➽ %argument 1%: %argument 2%" to player + loop all players: + loop-player is argument 1 + set {_found} to true + {_found} is set: + send "&d%player% ➽ %argument 1%: %argument 2%" to argument 1 + {db_alerts.on.%argument 1%} is true: + play level up at location of argument 1 with pitch 2 + {_found} is not set: + set {_message} to "&d%player% ➽ %argument 1%: %argument 2%" + execute console command "privatepush %argument 1% %{_message}%" + +command /fishslap : + permission: obam.free + trigger: + {cool.fish.%player%} is not set: + set {cool.fish.%player%} to now + add 5 seconds to {cool.fish.%player%} + set {_wait} to difference between {cool.fish.%player%} and now + {_wait} is less than 4 seconds: + send "&cYou are slapping too much! Calm down D:" to player + stop + send "&aYou just slapped &e%argument%&a!" + set {cool.fish.%player%} to now + loop all players: + "%loop-player%" is argument + set {_found} to true + {db_alerts.on.%loop-player%} is true + play slime attack at location of loop-player with pitch 1 + send "&e%player% &ajust slapped you with a giant fish!" to loop-player + stop + {_found} is not set: + forward command "fishcatch %argument% %player%" to console diff --git a/OBAM-Old/sudo.g.sk b/OBAM-Old/sudo.g.sk new file mode 100644 index 0000000..5571b1f --- /dev/null +++ b/OBAM-Old/sudo.g.sk @@ -0,0 +1,4 @@ +command /sudo : + permission: obam.admin + trigger: + make argument 1 execute argument 2 \ No newline at end of file diff --git a/Obam-Testing/teams.txt b/OBAM-Old/teams.txt similarity index 100% rename from Obam-Testing/teams.txt rename to OBAM-Old/teams.txt diff --git a/Obam-Testing/tellchat.sk b/OBAM-Old/tellchat.sk similarity index 100% rename from Obam-Testing/tellchat.sk rename to OBAM-Old/tellchat.sk diff --git a/Obam-Tools/todolist.sk b/OBAM-Old/todolist.sk similarity index 100% rename from Obam-Tools/todolist.sk rename to OBAM-Old/todolist.sk diff --git a/OBAM-Old/who.sk b/OBAM-Old/who.sk new file mode 100644 index 0000000..e949b67 --- /dev/null +++ b/OBAM-Old/who.sk @@ -0,0 +1,25 @@ +every 10 seconds: + clear {db_wtf.who::*} + loop all players: + add loop-player to {db_wtf.who::*} + {db_wtf.who::1} is not set: + set {db_wtf.who::1} to "-Empty" + + + +command /who: + trigger: + + loop all players: + add loop-player to {_cur.list::*} + clear {db_wtf.who::*} + set {db_wtf.who::*} to {_cur.list::*} + send "&eTotal Online: %size of {_cur.list::*} + size of {db_fronts.who.2::*} + size of {db_hub.who.::*} + size of {db_events.who::*}%" + send " " + send "&eHub (%size of {db_hub.who::*}%):&a%{db_hub.who::*}%" + send " " + send "&eWTF (%size of {db_wtf.who::*}%):&a%{db_wtf.who::*}%" + send " " + send "&eFronts (%size of {db_fronts.who.2::*}%):&a%{db_fronts.who.2::*}%" + send " " + send "&eEvent (%size of {db_events.who::*}%):&a%{db_events.who::*}%" \ No newline at end of file diff --git a/OBAM-Old/wtfmike.sk b/OBAM-Old/wtfmike.sk new file mode 100644 index 0000000..f82bee6 --- /dev/null +++ b/OBAM-Old/wtfmike.sk @@ -0,0 +1,17 @@ +command /wtfmike []: + permission: obam.free + trigger: + player does not have permission "obam.admin": + set {_player} to "%player%" + {_player} is not "mikeambrose" or "mikeambrose2" or "mikeambrose3": + send "&cYou do not have permission to do this!" + stop + + argument is not set: + delete {db_channel.global::mikeambrose} + delete {db_channel.global::mikeambrose3} + delete {db_channel.global::mikeambrose2} + send "&cWTF Mike!?!?!" + send "&cPlease use &e/ch j g &Cto get back into chat." + argument is "list": + send "%{db_channel.global::*}%" \ No newline at end of file diff --git a/OBAM-Survival Games/OBAM-WTFronts/Tested and Moved/dragonegg.g.sk b/OBAM-Survival Games/OBAM-WTFronts/Tested and Moved/dragonegg.g.sk new file mode 100644 index 0000000..e55ec5e --- /dev/null +++ b/OBAM-Survival Games/OBAM-WTFronts/Tested and Moved/dragonegg.g.sk @@ -0,0 +1,7 @@ +on flow: + block is a dragon egg: + cancel event + +on block physics: + block is a dragon egg: + cancel event diff --git a/OBAM-Survival Games/OBAM-WTFronts/Tested and Moved/wtfcounter.sk b/OBAM-Survival Games/OBAM-WTFronts/Tested and Moved/wtfcounter.sk new file mode 100644 index 0000000..bac5952 --- /dev/null +++ b/OBAM-Survival Games/OBAM-WTFronts/Tested and Moved/wtfcounter.sk @@ -0,0 +1,11 @@ +on chat: + message contains "wtf" + {db_wtf.counter} is not set: + set {db_wtf.counter} to 0 + add 1 to {db_wtf.counter} + +command /wtfcounter: + permission: obam.admin + trigger: + send "&aThe current &cWTF&a Count is: &e%{db_wtf.counter}% WTF's&a!" + send "&eCounting since Apr 22, 2014" diff --git a/Obam-Survival/landclaim.sk b/OBAM-Survival Games/OBAM-WTFronts/WTFronts-Testing/landclaim.sk similarity index 68% rename from Obam-Survival/landclaim.sk rename to OBAM-Survival Games/OBAM-WTFronts/WTFronts-Testing/landclaim.sk index e30e95f..77e59df 100644 --- a/Obam-Survival/landclaim.sk +++ b/OBAM-Survival Games/OBAM-WTFronts/WTFronts-Testing/landclaim.sk @@ -1,41 +1,28 @@ variables: - {claimedland.%player%} = 0 + {db_claimedland.%player%} = 0 {availableland.live.%player%} = 1 {alert.fronts.%player%} = true on join: {db_prizecheck.%player%} is set: - add {db_prizecheck.%player%} to {availableland.%player%} + add {db_prizecheck.%player%} to {db_availableland.%player%} send "&aYou have had &e%{db_prizecheck.%player%}%&a added to your Fronts balance!" to player clear {db_prizecheck.%player%} if {played.%player%} is not set: set {played.%player%} to true - {reset.%player%.betamove} is not set: - set {claimedland.%player%} to 0 - clear {owned.chunks.%player%::*} - clear {name.list.%player%::*} - clear {loc.chunks.%player%::*} - set {reset.%player%.betamove} to true - {reset.%player%.betamove2} is not set: - set {availableland.%player%} to 1 - set {reset.%player%.betamove2} to true - {reset.%player%.betamove3} is not set: - clear {home.%player%.wild} - size of {loc.chunks.%player%::*} is greater than 0: - loop {loc.chunks.%player%::*}: - set {_loc} to {loc.chunks.%player%::%loop-index%} - set {_chunk} to chunk at location of {_loc} - set {_chunk.name} to {chunk.name.%{_chunk}%} - set {home.%player%.wild} to {_loc} - send "&aYour home location has been moved to &e%{_chunk.name}%" to player - set {reset.%player%.betamove3} to true - stop - set {reset.%player%.betamove3} to true - {reset.%player%.betamove4} is not set: - clear {bed.%player%.wild} - set {reset.%player%.betamove4} to true + +command /movedata: + permission: obam.admin + trigger: + + loop {db_channel.global::*}: + + set {db_claimedland.%loop-value%} to {claimedland.%loop-value%} + set {db_availableland.%loop-value%} to {availableland.%loop-value%} + + @@ -57,6 +44,7 @@ every 1 tick: set {alert.notify.owner.%loop-player%} to "Unclaimed" set {land.unclaim.%loop-player%} to true {chunk.live.%chunk at location of loop-player%} is set: + {alert.fronts.%loop-player%} is true send "&a&lFront Claimed by: &e%{chunk.live.%chunk at location of loop-player%} %" to loop-player set {alert.notify.owner.%loop-player%} to {chunk.live.%chunk at location of loop-player%} {alert.notify.owner.%loop-player%} is not set: @@ -75,11 +63,11 @@ command /front [] [] []: trigger: argument 1 is not set: message "&3-[&a&lFronts Claimed&3]-" - message "&6 %{claimedland.%player%}%" + message "&6 %{db_claimedland.%player%}%" send "&3-[&a&lPurchased Slots&3]-" to player - send "&6 %{availableland.%player%}%" + send "&6 %{db_availableland.%player%}%" send "&3-[&a&lAvailible Slots&3]-" to player - send "&6 %{availableland.%player%} - {claimedland.%player%}%" to player + send "&6 %{db_availableland.%player%} - {db_claimedland.%player%}%" to player stop #subfold @help argument 1 is "help" or "h": @@ -130,7 +118,7 @@ command /front [] [] []: if player cannot build at the loop-block: message "&cYou can not claim land in this area." stop - {claimedland.%player%} is greater than or equal to {availableland.%player%}: + {db_claimedland.%player%} is greater than or equal to {db_availableland.%player%}: send "&cYou do not have enough Availiable land for this action! Please purchase more with /shop!" to player stop {first.claim.%player%} is set: @@ -140,19 +128,19 @@ command /front [] [] []: send "&cYou do not have enough tickets to do this!" to player stop - {chunks.claim.count.%player%} is not set: - set {chunks.claim.count.%player%} to 0 - add 1 to {chunks.claim.count.%player%} + {db_chunks.claim.count.%player%} is not set: + set {db_chunks.claim.count.%player%} to 0 + add 1 to {db_chunks.claim.count.%player%} add name of player to {land.live.%chunk at location of player%::*} set {chunk.live.%chunk at location of player%} to name of player set {chunk.live.%chunk at location of player%.%player%} to true add chunk at location of player to {owned.chunks.%player%::*} - set {chunk.name.%chunk at location of player%} to "%{chunks.claim.count.%player%}%" + set {chunk.name.%chunk at location of player%} to "%{db_chunks.claim.count.%player%}%" set {loc.chunks.%player%::%chunk at location of player%} to location of player message "&6You now own this Front." - {claimedland.%player%} is 0: + {db_claimedland.%player%} is 0: set {home.%player%.wild} to location of player - add 1 to {claimedland.%player%} + add 1 to {db_claimedland.%player%} {first.claim.%player%} is set: {first.claim.%player%} is true: remove 2000 from player's balance @@ -170,7 +158,7 @@ command /front [] [] []: if {chunk.live.%chunk at location of player%} is not name of player: message "&cYou do not own this land." stop - remove 1 from {claimedland.%player%} + remove 1 from {db_claimedland.%player%} loop {land.live.%chunk at location of player%::*}: set {_player} to {land.live.%chunk at location of player%::%loop-index%} clear {chunk.live.%chunk at location of player%.%{_player}%} @@ -182,40 +170,16 @@ command /front [] [] []: clear {chunk.live.%chunk at location of player%} clear {chunk.name.%chunk at location of player%} delete {loc.chunks.%player%::%chunk at location of player%} + loop {flags.%chunk at location of player%::*}: + loop {flags.%chunk at location of player%::%loop-index%::*}: + delete {flags.%chunk at location of player%::%loop-index-1%::%loop-index-2%} + delete {flags.%chunk at location of player%::%loop-index%} + loop {owned.chunks.%player%::*}: chunk at location of player is {owned.chunks.%player%::%loop-index%} delete {owned.chunks.%player%::%loop-index%} message "&6You have unclaimed this Front." stop - #subfold @add - argument 1 is "add" or "a": - if argument 2 is not set: - make player execute command "land error" - stop - if {chunk.live.%chunk at location of player%} is not set: - message "&cThis land has not been claimed." - stop - if {chunk.live.%chunk at location of player%} is not name of player: - message "&cYou do not own this land." - stop - if {played.%argument 2%} is not set: - message "&cThis player does not exist." - stop - if {chunk.live.%chunk at location of player%} is argument 2: - message "&cYou can not add yourself to your own land." - stop - set {_playersearch} to 0 - loop 10000 times: - if {land.live.%chunk at location of player%::%{_playersearch}%} is argument 2: - message "&cThis player is already a member of this land." - stop - else: - add 1 to {_playersearch} - if {_playersearch} is 10000: - message "&6%argument 2% can now build in this Front." - add "%argument 2%" to {land.live.%chunk at location of player%::*} - set {chunk.live.%chunk at location of player%.%argument 2%} to true - stop #subfold @remove argument 1 is "remove" or "r": if argument 2 is not set: @@ -259,8 +223,14 @@ command /front [] [] []: message "&cThis land has not been claimed." stop if {chunk.live.%chunk at location of player%} is not name of player: - message "&cThis is not your land!" - stop + {flags.%chunk at location of player%::admin::everyone} is not set: + set {flags.%chunk at location of player%::admin::everyone} to false + {flags.%chunk at location of player%::admin::%player%} is not set: + set {flags.%chunk at location of player%::admin::%player%} to false + {flags.%chunk at location of player%::admin::everyone} is false: + {flags.%chunk at location of player%::admin::%player%} is false: + send "&cYou do not have permission to do this!" + stop argument 2 is "set": send "&cThat is an invalid name!" to player stop @@ -322,8 +292,14 @@ command /front [] [] []: if {chunk.live.%chunk at location of player%} is not name of player: {chunk.live.%chunk at location of player%} is not "Town": {chunk.live.%chunk at location of player%.%player%} is not set: - message "&cYou can only do this in &eTown&c, or on your land!" - stop + {flags.%chunk at location of player%::teleport::everyone} is not set: + set {flags.%chunk at location of player%::teleport::everyone} to false + {flags.%chunk at location of player%::teleport::everyone} is false: + {flags.%chunk at location of player%::teleport::%player%} is not set: + set {flags.%chunk at location of player%::teleport::%player%} to false + {flags.%chunk at location of player%::teleport::%player%} is false: + message "&cYou can only do this in &eTown&c, or on your land!" + stop loop {loc.chunks.%player%::*}: set {_loc} to loop-value set {_chunk} to chunk at location of {_loc} @@ -332,7 +308,7 @@ command /front [] [] []: send "&aTeleporting to &e%argument 2%" to player teleport player to {_loc} stop - send "&cYou do not have a Front named &e%argument 2%" + send "&cYou do not have a Front named &e%argument 2% &cin this world!" stop argument 3 is set: if {chunk.live.%chunk at location of player%} is not set: @@ -341,20 +317,32 @@ command /front [] [] []: if {chunk.live.%chunk at location of player%} is not name of player: {chunk.live.%chunk at location of player%} is not "Town": {chunk.live.%chunk at location of player%.%player%} is not set: - message "&cYou can only do this in &eTown&c, or on your land!" - stop + {flags.%chunk at location of player%::teleport::everyone} is not set: + set {flags.%chunk at location of player%::teleport::everyone} to false + {flags.%chunk at location of player%::teleport::everyone} is false: + {flags.%chunk at location of player%::teleport::%player%} is not set: + set {flags.%chunk at location of player%::teleport::%player%} to false + {flags.%chunk at location of player%::teleport::%player%} is false: + message "&cYou can only do this in &eTown&c, or on your land!" + stop loop {loc.chunks.%argument 3%::*}: set {_loc} to loop-value set {_chunk} to chunk at location of {_loc} set {_chunk.name} to {chunk.name.%{_chunk}%} {_chunk.name} is argument 2: {chunk.live.%{_chunk}%.%player%} is not set: - send "&cYou do not have permission to go here!" to player - stop + {flags.%{_chunk}%::teleport::everyone} is not set: + set {flags.%{_chunk}%::teleport::everyone} to false + {flags.%{_chunk}%::teleport::%player%} is not set: + set {flags.%{_chunk}%::teleport::%player%} to false + {flags.%{_chunk}%::teleport::everyone} is false: + {flags.%{_chunk}%::teleport::%player%} is false + send "&cYou do not have permission to go here!" to player + stop send "&aTeleporting to &e%argument 2%" to player teleport player to {_loc} stop - send "&c%argument 3% does not have a Front named &e%argument 2%" + send "&c%argument 3% does not have a Front named &e%argument 2% &cin this world!" stop argument 1 is "alert": {alert.fronts.%player%} is not set: @@ -385,19 +373,57 @@ on quit: clear {bypassland.%player%} on place: block is not tnt + block is not water + block is not lava if {bypassland.%player%} is true: stop if {chunk.live.%chunk at location of block%} is set: if {chunk.live.%chunk at location of block%.%player%} is true: stop + {flags.%chunk at location of block%::build::everyone} is true: + stop + {flags.%chunk at location of block%::build::%player%} is true: + stop message "&cThis land is owned by %{chunk.live.%chunk at location of block%}%." cancel event + + + + on break: + block is not water or lava or milk if {bypassland.%player%} is true: stop if {chunk.live.%chunk at location of block%} is set: if {chunk.live.%chunk at location of block%.%player%} is true: stop + {flags.%chunk at location of block%::build::everyone} is true: + event-block is a chest or a furnace or a dispenser or a hopper or a brewing stand or a dropper or a trapped chest or a beacon: + {flags.%chunk at location of block%::container::everyone} is true: + stop + {flags.%chunk at location of block%::container::%player%} is true: + stop + event-block is a door or a anvil or a lever or a button or a wood button or a jukebox or a trapdoor or a fence gate or a enchantment table or a redstone comparator or a repeater: + {flags.%chunk at location of block%::use::everyone} is true: + stop + {flags.%chunk at location of block%::use::%player%} is true: + stop + else: + stop + {flags.%chunk at location of block%::build::%player%} is true: + event-block is a chest or a furnace or a dispenser or a hopper or a brewing stand or a dropper or a trapped chest or a beacon: + {flags.%chunk at location of block%::container::everyone} is true: + stop + {flags.%chunk at location of block%::container::player} is true: + stop + event-block is a door or a anvil or a lever or a button or a wood button or a jukebox or a trapdoor or a fence gate or a enchantment table or a redstone comparator or a repeater: + {flags.%chunk at location of block%::use::everyone} is true: + stop + {flags.%chunk at location of block%::use::%player%} is true: + stop + else: + stop + message "&cThis land is owned by %{chunk.live.%chunk at location of block%}%." cancel event on place of tnt: @@ -416,20 +442,33 @@ on explode: loop blocks in radius 10 of entity: if {chunk.live.%chunk at location of loop-block%} is set: cancel event + set {_safe} to true + {_safe} is set: + create safe explosion of force 3 at event-location on damage of a entity: - victim is enderman or creeper or wither or zombie or wither skeleton or blaze or slime or ghast or witch or skeleton or silverfish or spider or cave spider or magma cube: - stop + victim is a chicken or a cow or a mooshroom or a horse or a sheep or a pig or a wolf or a ocelot or a villager or a squid attacker is a player + victim is a cow: + attacker's tool is a empty bucket + stop loop blocks in radius 3 of victim: {bypassland.%attacker%} is true: stop - if {chunk.live.%chunk at location of loop-block%} is set: - {chunk.live.%chunk at location of loop-block%} is not attacker: - {chunk.live.%chunk at location of loop-block%.%attacker%} is set: + if {chunk.live.%chunk at location of loop-block%} is not attacker: + {chunk.live.%chunk at location of loop-block%.%attacker%} is set: + stop + {flags.%chunk at location of loop-block%::entity::everyone} is not set: + set {flags.%chunk at location of loop-block%::entity::everyone} to false + {flags.%chunk at location of loop-block%::entity::%attacker%} is not set: + set {flags.%chunk at location of loop-block%::entity::%attacker%} to false + {flags.%chunk at location of loop-block%::entity::everyone} is false: + {flags.%chunk at location of loop-block%::entity::%attacker%} is true: stop - send "&cThis area is protected!" to attacker - cancel event - stop trigger + {flags.%chunk at location of loop-block%::entity::everyone} is true: + stop + send "&cThis area is protected!" to attacker + cancel event + on right click on lead: {bypassland.%player%} is true: stop @@ -506,6 +545,16 @@ on right click on sign: stop send "&cYou can not do this here!" to player +command /deathfix []: + permission: obam.admin + trigger: + argument 1 is "list" or "l": + message "Your owned Chunks:" + message "%{owned.chunks.%player%::*}%" + stop + add chunk at location of player to {owned.chunks.%player%::*} + message "Added chunk to your list of owned chunks." + command /clearland []: permission: obam.admin @@ -526,7 +575,7 @@ command /clearland []: send "&cClearing Home spawn" to player clear {home.%player%.wild} send "&cManginling variables" to player - set {claimedland.%player%} to 0 + set {db_claimedland.%player%} to 0 clear {owned.chunks.%player%::*} send "&aLand clear complete!" to player stop @@ -582,9 +631,16 @@ on command "/home": cancel event {chunk.live.%chunk at location of player%} is not player: {chunk.live.%chunk at location of player%} is not "Town": - {chunk.live.%chunk at location of player%.%player%} is not set: - send "&cYou can only do this in Town, or on your own land!" to player - stop + {chunk.live.%chunk at location of player%.%player%} is not set + {flags.%chunk at location of player%::teleport::everyone} is not set: + set {flags.%chunk at location of player%::teleport::everyone} to false + {flags.%chunk at location of player%::teleport::%player%} is not set: + set {flags.%chunk at location of player%::teleport::%player%} to false + {flags.%chunk at location of player%::teleport::everyone} is false: + {flags.%chunk at location of player%::teleport::%player%} is false: + + send "&cYou can only do this in Town, or on your own land!" to player + stop if {chunk.live.%chunk at location of player%} is not set: message "&cYou must do this on your land!" @@ -649,19 +705,17 @@ command /townclaim: command /owner : permission: obam.admin trigger: - add 1 to {chunks.claim.count.%argument%} + {db_chunks.claim.count.%argument%} is not set: + set {db_chunks.claim.count.%argument%} to 0 + add 1 to {db_chunks.claim.count.%argument%} add argument to {land.live.%chunk at location of player%::*} set {chunk.live.%chunk at location of player%} to argument set {chunk.live.%chunk at location of player%.%argument%} to true add chunk at location of player to {owned.chunks.%argument%::*} - set {chunk.name.%chunk at location of player%} to "%{chunks.claim.count.%argument%}%" + set {chunk.name.%chunk at location of player%} to "%{db_chunks.claim.count.%argument%}%" set {loc.chunks.%argument%::%chunk at location of player%} to location of player message "&6%argument% now owns this Front." send "&cPlease remember to adjust for tickets!" - -on command "/hub": - cancel event - send "&aUse &e/main &ato return to the hub server!" to player on command "/spawn": {chunk.live.%chunk at location of player%} is not player: @@ -675,4 +729,75 @@ on command "/spawn": message "&cYou must do this on your land!" cancel event stop + +on bucket fill: + + {chunk.live.%chunk at location of player%} is set: + {chunk.live.%chunk at location of player%} is not player + {chunk.live.%chunk at location of player%.%player%} is not set: + {flags.%chunk at location of player%::bucket::everyone} is not set: + set {flags.%chunk at location of player%::bucket::everyone} to false + {flags.%chunk at location of player%::bucket::%player%} is not set: + set {flags.%chunk at location of player%::bucket::%player%} to false + {flags.%chunk at location of player%::bucket::everyone} is false: + {flags.%chunk at location of player%::bucket::%player%} is true: + stop + {flags.%chunk at location of player%::bucket::everyone} is true: + stop + targeted block is water: + {flags.%chunk at location of player%::bucketwater::everyone} is true: + stop + + {flags.%chunk at location of player%::bucketwater::%player%} is true: + stop + targeted block is lava: + {flags.%chunk at location of player%::bucketlava::everyone} is true: + stop + + {flags.%chunk at location of player%::bucketlava::%player%} is true: + stop + send "&cYou do not have permission to do this!" + cancel event + + +on bucket empty: + {chunk.live.%chunk at location of player%} is set: + {chunk.live.%chunk at location of player%} is not player + {chunk.live.%chunk at location of player%.%player%} is not set: + {flags.%chunk at location of player%::bucket::everyone} is not set: + set {flags.%chunk at location of player%::bucket::everyone} to false + {flags.%chunk at location of player%::bucket::%player%} is not set: + set {flags.%chunk at location of player%::bucket::%player%} to false + {flags.%chunk at location of player%::bucket::everyone} is false: + {flags.%chunk at location of player%::bucket::%player%} is true: + stop + {flags.%chunk at location of player%::bucket::everyone} is true: + stop + player's tool is water bucket: + {flags.%chunk at location of player%::bucketwater::everyone} is true: + stop + {flags.%chunk at location of player%::bucketwater::%player%} is true: + stop + player's tool is lava bucket: + {flags.%chunk at location of player%::bucketlava::everyone} is true: + stop + {flags.%chunk at location of player%::bucketlava::%player%} is true: + stop + send "&cYou do not have permission to do this!" + cancel event + +command /claimedset : + permission: obam.admin + trigger: + set {claimedland.%player-arg%} to argument 2 + send "&e%player-arg%&a claimed balance set to &e%argument 2%" + + +on first join: + teleport player to {town.spawn} + +on spawn: + {chunk.live.%chunk at event-location%} is "Town": + cancel event + \ No newline at end of file diff --git a/OBAM-Survival Games/OBAM-WTFronts/wtfronts.sk b/OBAM-Survival Games/OBAM-WTFronts/wtfronts.sk new file mode 100644 index 0000000..a76b772 --- /dev/null +++ b/OBAM-Survival Games/OBAM-WTFronts/wtfronts.sk @@ -0,0 +1,1714 @@ +options: + bandages: paper named "&3Bandage" with lore "&6Used to heal injuries obtained from large||&6falls. Multiple bandages may be needed||&6to completely heal the injury.|| ||&c- 1 Injury Point Per Use" + superbottle: water bottle named "&3Super Water Bottle" with lore "&6Quench your thirst with this large water||&6bottle. Saves space and gives you extra||&6water to drink!|| ||&a+50 Thirst Points" + unstele: magma cream named "&3Unstable Element" with lore "&6This highly energetic goo is really hot and||&6unusable in it’s current form." + unstmetal: gold nugget named "&3Unstable Metal Shard" with lore "&6You feel a light energetic charge coming||&6from the shard." + unstmetalbar: gold ingot named "&3Unstable Metal Bar" with lore "&6Crafted from broken &3Unstable Metal Shards||&6to become whole. This bar gives a highly||&6energetic charge." + stablemetal: iron ingot named "&3Stable Metal Bar" with lore "&6Created by cooling the highly energetic||&6energy from &3Unstable Metal Bars&6. It has||&6just enough energy for crafting special||&6items." + stableele: slimeball named "&3Stable Element" with lore "&6Created by cooling the highly energetic||&6energy from &3Unstable Elements&6. This goo||&6is warm to the touch and can be used to||&6enhance other items in special ways." + envradar: compass named "&3Environmental Radar" with lore "&6A must have tool for always being in the||&6know about the dangerous environment||&6around you.|| ||&c- 1 Elemental Fuel Per Use" + elefuel: charcoal item named "&3Elemental Fuel" with lore "&6The universal fuel used to power most||&6of the special items and tools created||&6using special metals and elements." + fairydust: sugar named "&3Fairy Dust" with lore "&6Magical dust filled with very mysterious||&6properties. Combined with the right items||&6or situations can yield interesting results." + stable: packed ice named "&3Stabilizer" with lore "&6Contains the perfect elemental make up to||&6bring unstable energy down to usable levels." + stablechest: diamond chestplate named "&3Stable Diamond Chestplate" with lore "&6Contains a special slot which can be used to||&6create chestplates with special abilities and||&6a container for &3Elemental Fuel." + hastechest: diamond chestplate named "&3Chest of Haste" with lore "&6Harness the power of a Haste II beacon||&6while wearing this chestplate!|| ||&c- 1 Elemental Fuel Every 3 Seconds" + speedchest: diamond chestplate named "&3Chest of Speed" with lore "&6Harness the power of a Speed II beacon||&6while wearing this chestplate!|| ||&c- 1 Elemental Fuel Every 3 Seconds" + strengthchest: diamond chestplate named "&3Chest of Strength" with lore "&6Harness the power of a Strength II beacon||&6while wearing this chestplate!|| ||&c- 1 Elemental Fuel Every 3 Seconds" + qnhchest: diamond chestplate named "&3Chest of Quench" with lore "&6This chestplate utilizes the power of the||&3Super Water Bottle &6to make sure you never ||&6go thirsty!|| ||&c- 1 Elemental Fuel Per Use" + snkchest: diamond chestplate named "&3Chest of Snacks" with lore "&6This chestplate utilizes the power of the||&6Enchanted Golden Apple to make sure you||&6never go hungry!|| ||&c- 1 Elemental Fuel Per Use" + coffee: water bottle named "&3Cup of Coffee" with lore "&6Replenish your energy with this refreshing||&6java drink!|| ||&a+ 50 Fatigue Points" + grapplinghook: fishing rod named "&3Grappling Hook" with lore "&6Use this tool to reach new heights or safely||&6reach the bottom of deep drops.|| ||&c- 1 Elemental Fuel Per Use" + safetytorch: redstone torch named "&3Safety Torch" with lore "&6When placed will prevent mobs from spawning in the chunk" + soap1: nether brick item named "&3Soap" with lore "&6Clean yourself and those around you by||&6creating a soothing bubble bath!|| ||&a+ 100 Hygiene Points" + stblgun: bow named "&3Stabilizer Gun" with lore "&6By using &3Elemental Fuel &6as its ammo, this||&6special gun destroys Unstable Mobs and||&6delivers their Unstable Drops to you! This||&6gun only works on Unstable Mobs.|| ||&c- 1 Elemental Fuel Per Shot" + stblmine: diamond pickaxe named "&3Stable Miner Pickaxe" with lore "&6This pickaxe is designed to stop the harsh||&6environmental disasters while mining!|| ||&c- 1 Elemental Fuel Per Use" + advbench: workbench named "&3Advanced Workbench" with lore "&6Reinforced with iron, this crafting bench||&6is more suited to handle the harsh||&6elements of this world." + advanvil: anvil named "&3Advanced Anvil" with lore "&6An upgraded workbench that facilitates the||&6forging of very powerful items and armours." + +on script load: + register new shapeless recipe for {@bandages} using paper, slimeball, air, air, air, air, air, air, air + register new shapeless recipe for {@superbottle} using bottle of water, bottle of water, bottle of water, bottle of water, air, air, air, air, air + register new shapeless recipe for {@coffee} using air, cocoa beans, air, air, milk, air, air, air, air + register new shapeless recipe for {@soap1} using air, milk bucket, air, air, rose, air, air, water bottle, air + register new shaped recipe for {@advbench} using iron ingot, iron ingot, iron ingot, iron ingot, workbench, iron ingot, iron ingot, iron ingot, iron ingot + delete {db_wtf.bench.items::*} + delete {db_wtf.anvil.items::*} + delete {db_wtf.ci::*} + set {db_wtf.bench.items::01.bandages} to "i;paper;n;&3Bandage;l;&6Used to heal injuries obtained from large||&6falls. Multiple bandages may be needed||&6to completely heal the injury.|| ||&c- 1 Injury Point Per Use|| ||&eRequires:||&61 - &fPaper||&61 - &fSlimeball;c;sudo PLAYER wtfitem bandages 1" + set {db_wtf.bench.items::07.soap1} to "i;nether brick item;n;&3Soap;l;&6Clean yourself and those around you by||&6creating a soothing bubble bath!|| ||&a+ 100 Hygiene Points|| ||&eRequires:||&61 - &fMilk Bucket||&61 - &fPoppy||&61 - &fWater Bottle;c;sudo PLAYER wtfitem soap1 1" + set {db_wtf.bench.items::02.stable} to "i;packed ice;n;&3Stabilizer;l;&6Contains the perfect elemental make up to||&6bring unstable energy down to usable levels.|| ||&eRequires:||&68 - &fIce||&61 - &3Fairy Dust;c;sudo PLAYER wtfitem stable 1" + set {db_wtf.bench.items::03.unstmetalbar} to "i;gold ingot;n;&3Unstable Metal Bar;l;&6Crafted from broken &3Unstable Metal Shards||&6to become whole. This bar gives a highly||&6energetic charge.|| ||&eRequires:||&66 - &3Unstable Metal Shard;c;sudo PLAYER wtfitem unstmetalbar 1" + set {db_wtf.bench.items::04.stablemetal} to "i;iron ingot;n;&3Stable Metal Bar;l;&6Created by cooling the highly energetic||&6energy from &3Unstable Metal Bars&6. It has||&6just enough energy for crafting special||&6items.|| ||&eRequires:||&68 - &3Unstable Metal Bar||&61 - &3Stabilizer;c;sudo PLAYER wtfitem stablemetal 1" + set {db_wtf.bench.items::05.stableele} to "i;slimeball;n;&3Stable Element;l;&6Created by cooling the highly energetic||&6energy from &3Unstable Elements&6. This goo||&6is warm to the touch and can be used to||&6enhance other items in special ways.|| ||&eRequires:||&68 - &3Unstable Element||&61 - &3Stabilizer;c;sudo PLAYER wtfitem stableele 1" + set {db_wtf.bench.items::06.elefuel} to "i;charcoal item;n;&3Elemental Fuel;l;&6The universal fuel used to power most||&6of the special items and tools created||&6using special metals and elements.|| ||&eRequires:||&68 - &3Stable Element||&61 - &fCoal;c;sudo PLAYER wtfitem elefuel 1" + set {db_wtf.bench.items::08.superbottle} to "i;water bottle;n;&3Super Water Bottle;l;&6Quench your thirst with this large water||&6bottle. Saves space and gives you extra||&6water to drink!|| ||&a+50 Thirst Points|| ||&eRequires:||&64 - &fWater Bottle;c;sudo PLAYER wtfitem superbottle 1" + set {db_wtf.bench.items::09.coffee} to "i;water bottle;n;&3Cup of Coffee;l;&6Replenish your energy with this refreshing||&6java drink!|| ||&a+ 50 Fatigue Points|| ||&eRequires:||&61 - &fCocoa Beans||&61 - &fMilk Bucket;c;sudo PLAYER wtfitem coffee 1" + set {db_wtf.bench.items::10.bandages} to "i;10 paper;n;&3Bandage;l;&6Used to heal injuries obtained from large||&6falls. Multiple bandages may be needed||&6to completely heal the injury.|| ||&c- 1 Injury Point Per Use|| ||&eRequires:||&610 - &fPaper||&610 - &fSlimeball;c;sudo PLAYER wtfitem bandages 10" + set {db_wtf.bench.items::16.soap1} to "i;10 nether brick item;n;&3Soap;l;&6Clean yourself and those around you by||&6creating a soothing bubble bath!|| ||&a+ 100 Hygiene Points|| ||&eRequires:||&610 - &fMilk Bucket||&610 - &fPoppy||&610 - &fWater Bottle;c;sudo PLAYER wtfitem soap1 10" + set {db_wtf.bench.items::11.stable} to "i;10 packed ice;n;&3Stabilizer;l;&6Contains the perfect elemental make up to||&6bring unstable energy down to usable levels.|| ||&eRequires:||&680 - &fIce||&610 - &3Fairy Dust;c;sudo PLAYER wtfitem stable 10" + set {db_wtf.bench.items::12.unstmetalbar} to "i;10 gold ingot;n;&3Unstable Metal Bar;l;&6Crafted from broken &3Unstable Metal Shards||&6to become whole. This bar gives a highly||&6energetic charge.|| ||&eRequires:||&660 - &3Unstable Metal Shard;c;sudo PLAYER wtfitem unstmetalbar 10" + set {db_wtf.bench.items::13.stablemetal} to "i;10 iron ingot;n;&3Stable Metal Bar;l;&6Created by cooling the highly energetic||&6energy from &3Unstable Metal Bars&6. It has||&6just enough energy for crafting special||&6items.|| ||&eRequires:||&680 - &3Unstable Metal Bar||&610 - &3Stabilizer;c;sudo PLAYER wtfitem stablemetal 10" + set {db_wtf.bench.items::14.stableele} to "i;10 slimeball;n;&3Stable Element;l;&6Created by cooling the highly energetic||&6energy from &3Unstable Elements&6. This goo||&6is warm to the touch and can be used to||&6enhance other items in special ways.|| ||&eRequires:||&680 - &3Unstable Element||&610 - &3Stabilizer;c;sudo PLAYER wtfitem stableele 10" + set {db_wtf.bench.items::15.elefuel} to "i;10 charcoal item;n;&3Elemental Fuel;l;&6The universal fuel used to power most||&6of the special items and tools created||&6using special metals and elements.|| ||&eRequires:||&680 - &3Stable Element||&610 - &fCoal;c;sudo PLAYER wtfitem elefuel 10" + set {db_wtf.bench.items::17.superbottle} to "i;5 water bottle;n;&3Super Water Bottle;l;&6Quench your thirst with this large water||&6bottle. Saves space and gives you extra||&6water to drink!|| ||&a+50 Thirst Points|| ||&eRequires:||&620 - &fWater Bottle;c;sudo PLAYER wtfitem superbottle 5" + set {db_wtf.bench.items::18.coffee} to "i;10 water bottle;n;&3Cup of Coffee;l;&6Replenish your energy with this refreshing||&6java drink!|| ||&a+ 50 Fatigue Points|| ||&eRequires:||&610 - &fCocoa Beans||&610 - &fMilk Bucket;c;sudo PLAYER wtfitem coffee 10" + set {db_wtf.bench.items::19.bandages} to "i;64 paper;n;&3Bandage;l;&6Used to heal injuries obtained from large||&6falls. Multiple bandages may be needed||&6to completely heal the injury.|| ||&c- 1 Injury Point Per Use|| ||&eRequires:||&664 - &fPaper||&664 - &fSlimeball;c;sudo PLAYER wtfitem bandages 64" + set {db_wtf.bench.items::25.blank} to "i;air" + set {db_wtf.bench.items::20.stable} to "i;64 packed ice;n;&3Stabilizer;l;&6Contains the perfect elemental make up to||&6bring unstable energy down to usable levels.|| ||&eRequires:||&6512 - &fIce||&664 - &3Fairy Dust;c;sudo PLAYER wtfitem stable 64" + set {db_wtf.bench.items::21.unstmetalbar} to "i;64 gold ingot;n;&3Unstable Metal Bar;l;&6Crafted from broken &3Unstable Metal Shards||&6to become whole. This bar gives a highly||&6energetic charge.|| ||&eRequires:||&6384 - &3Unstable Metal Shard;c;sudo PLAYER wtfitem unstmetalbar 64" + set {db_wtf.bench.items::22.stablemetal} to "i;64 iron ingot;n;&3Stable Metal Bar;l;&6Created by cooling the highly energetic||&6energy from &3Unstable Metal Bars&6. It has||&6just enough energy for crafting special||&6items.|| ||&eRequires:||&6512 - &3Unstable Metal Bar||&664 - &3Stabilizer;c;sudo PLAYER wtfitem stablemetal 64" + set {db_wtf.bench.items::23.stableele} to "i;64 slimeball;n;&3Stable Element;l;&6Created by cooling the highly energetic||&6energy from &3Unstable Elements&6. This goo||&6is warm to the touch and can be used to||&6enhance other items in special ways.|| ||&eRequires:||&6512 - &3Unstable Element||&664 - &3Stabilizer;c;sudo PLAYER wtfitem stableele 64" + set {db_wtf.bench.items::24.elefuel} to "i;64 charcoal item;n;&3Elemental Fuel;l;&6The universal fuel used to power most||&6of the special items and tools created||&6using special metals and elements.|| ||&eRequires:||&6512 - &3Stable Element||&664 - &fCoal;c;sudo PLAYER wtfitem elefuel 64" + set {db_wtf.bench.items::26.envradar} to "i;compass;n;&3Environmental Radar;l;&6A must have tool for always being in the||&6know about the dangerous environment||&6around you.|| ||&c- 1 Elemental Fuel Per Use|| ||&eRequires:||&66 - &3Stable Metal Bar||&61 - &fCompass;c;sudo PLAYER wtfitem envradar 1" + set {db_wtf.bench.items::27.advanvil} to "i;anvil;n;&3Advanced Anvil;l;&6An upgraded workbench that facilitates the||&6forging of very powerful items and armours.|| ||&eRequires:||&63 - &fIron Block||&61 - &3Advanced Workbench||&61 - &fDiamond Block||&61 - &fRedstone Block||&61 - &fObsidian;c;sudo PLAYER wtfitem advanvil 1" + + set {db_wtf.anvil.items::01.stablechest} to "i;diamond chestplate;n;&3Stable Diamond Chestplate;l;&6Contains a special slot which can be used to||&6create chestplates with special abilities and||&6a container for &3Elemental Fuel.|| ||&eRequires:||&66 - &3Stable Metal Bar||&61 - &3Elemental Fuel||&61 - &fDiamond Block;c;sudo PLAYER wtfitem stablechest 1" + set {db_wtf.anvil.items::02.qnhchest} to "i;diamond chestplate;n;&3Chest of Quench;l;&6This chestplate utilizes the power of the||&3Super Water Bottle &6to make sure you never ||&6go thirsty!|| ||&c- 1 Elemental Fuel Per Use|| ||&eRequires:||&61 - &3Stable Diamond Chestplate||&61 - &3Super Water Bottle;c;sudo PLAYER wtfitem qnhchest 1" + set {db_wtf.anvil.items::03.snkchest} to "i;diamond chestplate;n;&3Chest of Snacks;l;&6This chestplate utilizes the power of the||&6Enchanted Golden Apple to make sure you||&6never go hungry!|| ||&c- 1 Elemental Fuel Per Use|| ||&eRequires:||&61 - &3Stable Diamond Chestplate||&61 - &dEnchanted Golden Apple;c;sudo PLAYER wtfitem snkchest 1" + set {db_wtf.anvil.items::04.hastechest} to "i;diamond chestplate;n;&3Chest of Haste;l;&6Harness the power of a Haste II beacon||&6while wearing this chestplate!|| ||&c- 1 Elemental Fuel Every 3 Seconds|| ||&eRequires:||&61 - &3Stable Diamond Chestplate||&61 - &fBeacon||&61 - &fDiamond Pickaxe;c;sudo PLAYER wtfitem hastechest 1" + set {db_wtf.anvil.items::05.speedchest} to "i;diamond chestplate;n;&3Chest of Speed;l;&6Harness the power of a Speed II beacon||&6while wearing this chestplate!|| ||&c- 1 Elemental Fuel Every 3 Seconds|| ||&eRequires:||&61 - &3Stable Diamond Chestplate||&61 - &fBeacon||&61 - &fDiamond Boots;c;sudo PLAYER wtfitem speedchest 1" + set {db_wtf.anvil.items::06.strengthchest} to "i;diamond chestplate;n;&3Chest of Strength;l;&6Harness the power of a Strength II beacon||&6while wearing this chestplate!|| ||&c- 1 Elemental Fuel Every 3 Seconds|| ||&eRequires:||&61 - &3Stable Diamond Chestplate||&61 - &fBeacon||&61 - &fDiamond Sword;c;sudo PLAYER wtfitem strengthchest 1" + set {db_wtf.anvil.items::07.blank} to "i;air" + set {db_wtf.anvil.items::08.blank} to "i;air" + set {db_wtf.anvil.items::09.blank} to "i;air" + set {db_wtf.anvil.items::10.stblmine} to "i;diamond pickaxe;n;&3Stable Miner Pickaxe;l;&6This pickaxe is designed to stop the harsh||&6environmental disasters while mining!|| ||&c- 1 Elemental Fuel Per Use|| ||&eRequires:||&62 - &3Stable Metal Bar||&61 - &fDiamond Pickaxe||&61 - &3Stabilizer;c;sudo PLAYER wtfitem stblmine 1" + set {db_wtf.anvil.items::11.grapplinghook} to "i;fishing rod;n;&3Grappling Hook;l;&6Use this tool to reach new heights or safely||&6reach the bottom of deep drops.|| ||&c- 1 Elemental Fuel Per Use|| ||&eRequires:||&68 - &3Elemental Fuel||&61 - &fFishing Rod;c;sudo PLAYER wtfitem grapplinghook 1" + set {db_wtf.anvil.items::12.stblgun} to "i;bow;n;&3Stabilizer Gun;l;&6By using &3Elemental Fuel &6as its ammo, this||&6special gun destroys Unstable Mobs and||&6delivers their Unstable Drops to you! This||&6gun only works on Unstable Mobs.|| ||&c- 1 Elemental Fuel Per Shot|| ||&eRequires:||&64 - &3Stable Metal Bar||&61 - &3Stabilizer||&61 - &fBow;c;sudo PLAYER wtfitem stblgun 1" + + set {db_wtf.ci::01.unstele} to "i;magma cream;n;&3Unstable Element;l;&6This highly energetic goo is really hot and||&6unusable in it’s current form.;c;sudo PLAYER ci unstele 1" + set {db_wtf.ci::02.unstele} to "i;16 magma cream;n;&3Unstable Element;l;&6This highly energetic goo is really hot and||&6unusable in it’s current form.;c;sudo PLAYER ci unstele 16" + set {db_wtf.ci::03.unstele} to "i;64 magma cream;n;&3Unstable Element;l;&6This highly energetic goo is really hot and||&6unusable in it’s current form.;c;sudo PLAYER ci unstele 64" + set {db_wtf.ci::04.unstmetal} to "i;gold nugget;n;&3Unstable Metal Shard;l;&6You feel a light energetic charge coming||&6from the shard.;c;sudo PLAYER ci unstmetal 1" + set {db_wtf.ci::05.unstmetal} to "i;16 gold nugget;n;&3Unstable Metal Shard;l;&6You feel a light energetic charge coming||&6from the shard.;c;sudo PLAYER ci unstmetal 16" + set {db_wtf.ci::06.unstmetal} to "i;64 gold nugget;n;&3Unstable Metal Shard;l;&6You feel a light energetic charge coming||&6from the shard.;c;sudo PLAYER ci unstmetal 64" + set {db_wtf.ci::07.fairydust} to "i;sugar;n;&3Fairy Dust;l;&6Magical dust filled with very mysterious||&6properties. Combined with the right items||&6or situations can yield interesting results.;c;sudo PLAYER ci fairydust 1" + set {db_wtf.ci::08.fairydust} to "i;16 sugar;n;&3Fairy Dust;l;&6Magical dust filled with very mysterious||&6properties. Combined with the right items||&6or situations can yield interesting results.;c;sudo PLAYER ci fairydust 16" + set {db_wtf.ci::09.fairydust} to "i;64 sugar;n;&3Fairy Dust;l;&6Magical dust filled with very mysterious||&6properties. Combined with the right items||&6or situations can yield interesting results.;c;sudo PLAYER ci fairydust 64" + set {db_wtf.ci::10.bandages} to "i;paper;n;&3Bandage;l;&6Used to heal injuries obtained from large||&6falls. Multiple bandages may be needed||&6to completely heal the injury.|| ||&c- 1 Injury Point Per Use;c;sudo PLAYER ci bandages 1" + set {db_wtf.ci::11.bandages} to "i;16 paper;n;&3Bandage;l;&6Used to heal injuries obtained from large||&6falls. Multiple bandages may be needed||&6to completely heal the injury.|| ||&c- 1 Injury Point Per Use;c;sudo PLAYER ci bandages 16" + set {db_wtf.ci::12.bandages} to "i;64 paper;n;&3Bandage;l;&6Used to heal injuries obtained from large||&6falls. Multiple bandages may be needed||&6to completely heal the injury.|| ||&c- 1 Injury Point Per Use;c;sudo PLAYER ci bandages 64" + set {db_wtf.ci::13.stable} to "i;packed ice;n;&3Stabilizer;l;&6Contains the perfect elemental make up to||&6bring unstable energy down to usable levels.;c;sudo PLAYER ci stable 1" + set {db_wtf.ci::14.stable} to "i;16 packed ice;n;&3Stabilizer;l;&6Contains the perfect elemental make up to||&6bring unstable energy down to usable levels.;c;sudo PLAYER ci stable 16" + set {db_wtf.ci::15.stable} to "i;64 packed ice;n;&3Stabilizer;l;&6Contains the perfect elemental make up to||&6bring unstable energy down to usable levels.;c;sudo PLAYER ci stable 64" + set {db_wtf.ci::16.unstmetalbar} to "i;gold ingot;n;&3Unstable Metal Bar;l;&6Crafted from broken &3Unstable Metal Shards||&6to become whole. This bar gives a highly||&6energetic charge.;c;sudo PLAYER ci unstmetalbar 1" + set {db_wtf.ci::17.unstmetalbar} to "i;16 gold ingot;n;&3Unstable Metal Bar;l;&6Crafted from broken &3Unstable Metal Shards||&6to become whole. This bar gives a highly||&6energetic charge.;c;sudo PLAYER ci unstmetalbar 16" + set {db_wtf.ci::18.unstmetalbar} to "i;64 gold ingot;n;&3Unstable Metal Bar;l;&6Crafted from broken &3Unstable Metal Shards||&6to become whole. This bar gives a highly||&6energetic charge.;c;sudo PLAYER ci unstmetalbar 64" + set {db_wtf.ci::19.stablemetal} to "i;iron ingot;n;&3Stable Metal Bar;l;&6Created by cooling the highly energetic||&6energy from &3Unstable Metal Bars&6. It has||&6just enough energy for crafting special||&6items.;c;sudo PLAYER ci stablemetal 1" + set {db_wtf.ci::20.stablemetal} to "i;16 iron ingot;n;&3Stable Metal Bar;l;&6Created by cooling the highly energetic||&6energy from &3Unstable Metal Bars&6. It has||&6just enough energy for crafting special||&6items.;c;sudo PLAYER ci stablemetal 16" + set {db_wtf.ci::21.stablemetal} to "i;64 iron ingot;n;&3Stable Metal Bar;l;&6Created by cooling the highly energetic||&6energy from &3Unstable Metal Bars&6. It has||&6just enough energy for crafting special||&6items.;c;sudo PLAYER ci stablemetal 64" + set {db_wtf.ci::22.stableele} to "i;slimeball;n;&3Stable Element;l;&6Created by cooling the highly energetic||&6energy from &3Unstable Elements&6. This goo||&6is warm to the touch and can be used to||&6enhance other items in special ways.;c;sudo PLAYER ci stableele 1" + set {db_wtf.ci::23.stableele} to "i;16 slimeball;n;&3Stable Element;l;&6Created by cooling the highly energetic||&6energy from &3Unstable Elements&6. This goo||&6is warm to the touch and can be used to||&6enhance other items in special ways.;c;sudo PLAYER ci stableele 16" + set {db_wtf.ci::24.stableele} to "i;64 slimeball;n;&3Stable Element;l;&6Created by cooling the highly energetic||&6energy from &3Unstable Elements&6. This goo||&6is warm to the touch and can be used to||&6enhance other items in special ways.;c;sudo PLAYER ci stableele 64" + set {db_wtf.ci::25.elefuel} to "i;charcoal item;n;&3Elemental Fuel;l;&6The universal fuel used to power most||&6of the special items and tools created||&6using special metals and elements.;c;sudo PLAYER ci elefuel 1" + set {db_wtf.ci::26.elefuel} to "i;16 charcoal item;n;&3Elemental Fuel;l;&6The universal fuel used to power most||&6of the special items and tools created||&6using special metals and elements.;c;sudo PLAYER ci elefuel 16" + set {db_wtf.ci::27.elefuel} to "i;64 charcoal item;n;&3Elemental Fuel;l;&6The universal fuel used to power most||&6of the special items and tools created||&6using special metals and elements.;c;sudo PLAYER ci elefuel 64" + set {db_wtf.ci::28.soap1} to "i;nether brick item;n;&3Soap;l;&6Clean yourself and those around you by||&6creating a soothing bubble bath!|| ||&a+ 100 Hygiene Points;c;sudo PLAYER ci soap1 1" + set {db_wtf.ci::29.soap1} to "i;16 nether brick item;n;&3Soap;l;&6Clean yourself and those around you by||&6creating a soothing bubble bath!|| ||&a+ 100 Hygiene Points;c;sudo PLAYER ci soap1 16" + set {db_wtf.ci::30.soap1} to "i;64 nether brick item;n;&3Soap;l;&6Clean yourself and those around you by||&6creating a soothing bubble bath!|| ||&a+ 100 Hygiene Points;c;sudo PLAYER ci soap1 64" + set {db_wtf.ci::31.superbottle} to "i;water bottle;n;&3Super Water Bottle;l;&6Quench your thirst with this large water||&6bottle. Saves space and gives you extra||&6water to drink!|| ||&a+50 Thirst Points;c;sudo PLAYER ci superbottle 1" + set {db_wtf.ci::32.superbottle} to "i;9 water bottle;n;&3Super Water Bottle;l;&6Quench your thirst with this large water||&6bottle. Saves space and gives you extra||&6water to drink!|| ||&a+50 Thirst Points;c;sudo PLAYER ci superbottle 9" + set {db_wtf.ci::33.superbottle} to "i;27 water bottle;n;&3Super Water Bottle;l;&6Quench your thirst with this large water||&6bottle. Saves space and gives you extra||&6water to drink!|| ||&a+50 Thirst Points;c;sudo PLAYER ci superbottle 27" + set {db_wtf.ci::34.coffee} to "i;water bottle;n;&3Cup of Coffee;l;&6Replenish your energy with this refreshing||&6java drink!|| ||&a+ 50 Fatigue Points;c;sudo PLAYER ci coffee 1" + set {db_wtf.ci::35.coffee} to "i;9 water bottle;n;&3Cup of Coffee;l;&6Replenish your energy with this refreshing||&6java drink!|| ||&a+ 50 Fatigue Points;c;sudo PLAYER ci coffee 9" + set {db_wtf.ci::36.coffee} to "i;27 water bottle;n;&3Cup of Coffee;l;&6Replenish your energy with this refreshing||&6java drink!|| ||&a+ 50 Fatigue Points;c;sudo PLAYER ci coffee 27" + set {db_wtf.ci::37.envradar} to "i;compass;n;&3Environmental Radar;l;&6A must have tool for always being in the||&6know about the dangerous environment||&6around you.|| ||&c- 1 Elemental Fuel Per Use;c;sudo PLAYER ci envradar 1" + set {db_wtf.ci::38.advbench} to "i;workbench;n;&3Advanced Workbench;l;&6Reinforced with iron, this crafting bench||&6is more suited to handle the harsh||&6elements of this world.;c;sudo PLAYER ci advbench 1" + set {db_wtf.ci::39.advanvil} to "i;anvil;n;&3Advanced Anvil;l;&6An upgraded workbench that facilitates the||&6forging of very powerful items and armours.;c;sudo PLAYER ci advanvil 1" + set {db_wtf.ci::40.blank} to "i;air" + set {db_wtf.ci::41.blank} to "i;air" + set {db_wtf.ci::42.blank} to "i;air" + set {db_wtf.ci::43.stblmine} to "i;diamond pickaxe;n;&3Stable Miner Pickaxe;l;&6This pickaxe is designed to stop the harsh||&6environmental disasters while mining!|| ||&c- 1 Elemental Fuel Per Use;c;sudo PLAYER ci stblmine 1" + set {db_wtf.ci::44.grapplinghook} to "i;fishing rod;n;&3Grappling Hook;l;&6Use this tool to reach new heights or safely||&6reach the bottom of deep drops.|| ||&c- 1 Elemental Fuel Per Use;c;sudo PLAYER ci grapplinghook 1" + set {db_wtf.ci::45.stblgun} to "i;bow;n;&3Stabilizer Gun;l;&6By using &3Elemental Fuel &6as its ammo, this||&6special gun destroys Unstable Mobs and||&6delivers their Unstable Drops to you! This||&6gun only works on Unstable Mobs.|| ||&c- 1 Elemental Fuel Per Shot;c;sudo PLAYER ci stblgun 1" + set {db_wtf.ci::46.stablechest} to "i;diamond chestplate;n;&3Stable Diamond Chestplate;l;&6Contains a special slot which can be used to||&6create chestplates with special abilities and||&6a container for &3Elemental Fuel.;c;sudo PLAYER ci stablechest 1" + set {db_wtf.ci::47.blank} to "i;air" + set {db_wtf.ci::48.qnhchest} to "i;diamond chestplate;n;&3Chest of Quench;l;&6This chestplate utilizes the power of the||&3Super Water Bottle &6to make sure you never ||&6go thirsty!|| ||&c- 1 Elemental Fuel Per Use;c;sudo PLAYER ci qnhchest 1" + set {db_wtf.ci::49.snkchest} to "i;diamond chestplate;n;&3Chest of Snacks;l;&6This chestplate utilizes the power of the||&6Enchanted Golden Apple to make sure you||&6never go hungry!|| ||&c- 1 Elemental Fuel Per Use;c;sudo PLAYER ci snkchest 1" + set {db_wtf.ci::50.blank} to "i;air" + set {db_wtf.ci::51.hastechest} to "i;diamond chestplate;n;&3Chest of Haste;l;&6Harness the power of a Haste II beacon||&6while wearing this chestplate!|| ||&c- 1 Elemental Fuel Every 3 Seconds;c;sudo PLAYER ci hastechest 1" + set {db_wtf.ci::52.speedchest} to "i;diamond chestplate;n;&3Chest of Speed;l;&6Harness the power of a Speed II beacon||&6while wearing this chestplate!|| ||&c- 1 Elemental Fuel Every 3 Seconds;c;sudo PLAYER ci speedchest 1" + set {db_wtf.ci::53.strengthchest} to "i;diamond chestplate;n;&3Chest of Strength;l;&6Harness the power of a Strength II beacon||&6while wearing this chestplate!|| ||&c- 1 Elemental Fuel Every 3 Seconds;c;sudo PLAYER ci strengthchest 1" + set {db_wtf.ci::54.blank} to "i;air" + +on join: + {fatigue.%player%} + {hygiene.%player%} + {thirst.%player%} + {injured.%player%} + {fatigue.%player%} is not set: + set {fatigue.%player%} to 100 + {hygiene.%player%} is not set: + set {hygiene.%player%} to 100 + {thirst.%player%} is not set: + set {thirst.%player%} to 100 + display board named "&9&lWTF&9ronts" to player + make score "&3Thirst" in board of player to {thirst.%player%} + make score "&3Fatigue" in board of player to {fatigue.%player%} + make score "&3Hygiene" in board of player to {hygiene.%player%} + set {board.%player%} to true + {injured.%player%} is true: + make score "&cINJURED" in board of player to 1 +# {infected.%player%.flag} is true: +# make score "&cINFECTED" in board of player to 1 + move display of player to sidebar + +on chunk load: + {unstable.%event-chunk%} is not set: + chance of 2%: + set {unstable.%event-chunk%} to true + set {_ran} to random number between 15 and 20 + set {_ran2} to random number between 18 and 20 + set {cavein.%event-chunk%.chance} to {_ran} + set {methane.%event-chunk%.chance} to {_ran2} + {unstable.%event-chunk%} is not set: + set {unstable.%event-chunk%} to false + {cavein.%event-chunk%.chance} is not set: + chance of 90%: + set {_ran} to random integer between 1 and 5 + set {cavein.%event-chunk%.chance} to {_ran} + {cavein.%event-chunk%.chance} is not set: + set {cavein.%event-chunk%.chance} to false + {methane.%event-chunk%.chance} is not set: + chance of 95%: + set {_ran} to random integer between 3 and 6 + set {methane.%event-chunk%.chance} to {_ran} + {methane.%event-chunk%.chance} is not set: + set {methane.%event-chunk%.chance} to false + +on mine: + block is ore: + chance of 10%: + set {fatigue.%player%} to {fatigue.%player%} - 1 + player's tool is pickaxe + y-coordinate of player is less than 40 + {cavein.%chunk at location of player%.chance} is false: + set {_run} to false + {_run} is not set: + chance of {cavein.%chunk at location of player%.chance}%: + name of player's tool is "&3Stable Miner Pickaxe": + player has {@elefuel} + remove 1 {@elefuel} from player + send "&aYour Stable Miner Pickaxe prevents a cave in" + drop {@unstmetal} at event-location + set {_stop} to true + {_stop} is not set + loop blocks in radius 5: + {_block.count} is not set: + set {_block.count} to 0 + add 1 to {_block.count} + loop-block is air: + {_air.count} is not set: + set {_air.count} to 0 + add 1 to {_air.count} + loop-block is iron block + set {_max-strut} to true + {_max-strut} is set: + chance of {cavein.%chunk at location of player%.chance}%: + clear {_max-strut} + loop players in radius 10 of player: + send "&cYour struts are failing!" to loop-player + send "&cYour struts are failing!" to player + {_max-strut} is not set: + send "&3The floor rumbles beneath you.." to player + loop players in radius 10 of player: + send "&3The floor rumbles beneath you..." to loop-player + wait 5 seconds + send "&cCave In!" to player + loop players in radius 10 of player: + send "&cCave In!" to loop-player + {_air.count} is less than or equal to {_block.count} / 3: + loop blocks in radius 5: + loop-block is not bedrock or wood plank or lava or water or monster spawner + set {_block} to "falling %loop-block%" + set {_block} to {_block} parsed as entity type + set {_loc} to location of loop-block + spawn {_block} at location of loop-block + delete loop-block + {_air.count} is greater than {_block.count} / 3: + loop blocks in radius 10: + loop-block is not bedrock or wood plank or lava or water or monster spawner + set {_block} to "falling %loop-block%" + set {_block} to {_block} parsed as entity type + set {_loc} to location of loop-block + spawn {_block} at location of loop-block + delete loop-block + {methane.%chunk at location of player%.chance} is false: + set {_run2} to false + {_run2} is not set: + chance of {methane.%chunk at location of player%.chance}%: + name of player's tool is "&3Stable Miner Pickaxe": + player has {@elefuel} + remove 1 {@elefuel} from player + send "&aYour Stable Miner Pickaxe prevents a Methane Explosion!" + drop 1 {@unstele} at event-location + set {_stop} to true + {_stop} is not set + send "&cMethane!" to player + loop players in radius 10 of player: + send "&cMethane!" to loop-player + wait 2 seconds + create explosion of force 2 at event-location + chance of {methane.%chunk at location of player%.chance} * 2 %: + wait 2 seconds + drop {@unstele} at event-location + chance of {methane.%chunk at location of player%.chance} * 2%: + drop {@unstmetal} at event-location + chance of {cavein.%chunk at location of player%.chance}%: + loop blocks in radius 3: + loop-block is water + set {_found.water} to true + {_found.water} is true: + send "&3Flood!" to player + loop blocks in radius 3 of event-location: + loop-block is air: + set loop-block to water + +command /chunkstats: + permission: obam.admin + trigger: + if {unstable.%chunk at location of player%} is true: + send "&aGround Structure: &cUnstable" + send "&aMethane Rating: &cUnstable" + stop + if {cavein.%chunk at location of player%.chance} is false: + send "&aGround Structure: &3SOUND" to player + else: + send "&aGround Structure: &e%{cavein.%chunk at location of player%.chance}%" to player + if {methane.%chunk at location of player%.chance} is false: + send "&aMethane Rating: &3EMPTY" to player + else: + send "&aMethane Rating: &e%{methane.%chunk at location of player%.chance}%" to player + +#Global Loop +every 3 seconds: + loop all players: + {board.%loop-player%} is not set: + display board named "&9&lWTF&9ronts" to loop-player + make score "&3Thirst" in board of loop-player to {thirst.%loop-player%} + make score "&3Fatigue" in board of loop-player to {fatigue.%loop-player%} + make score "&3Hygiene" in board of loop-player to {hygiene.%loop-player%} + set {board.%loop-player%} to true + move display of loop-player to sidebar + {board.%loop-player%} is true: + make score "&3Thirst" in board of loop-player to {thirst.%loop-player%} + make score "&3Fatigue" in board of loop-player to {fatigue.%loop-player%} + make score "&3Hygiene" in board of loop-player to {hygiene.%loop-player%} + block above loop-player is water: + {thirst.%loop-player%} is less than 100: + set {_ran} to random number between 1 and 2 + add {_ran} to {thirst.%loop-player%} + {thirst.%loop-player%} is greater than 100: + set {thirst.%loop-player%} to 100 + {debug.%loop-player%} is true: + set {thirst.%loop-player%} to 100 + {thirst.%loop-player%} is not set: + set {thirst.%loop-player%} to 100 + {thirst.%loop-player%} is less than 0: + set {thirst.%loop-player%} to 0 + {thirst.%loop-player%} is 0: + damage loop-player by 1 + send "&cYou are dehydrated" to loop-player + {thirst.%loop-player%} is greater than 0: + chance of 30%: + loop-player is not sprinting: + set {_ran} to random number between 0 and 1 + set {thirst.%loop-player%} to {thirst.%loop-player%} - {_ran} + loop-player is sprinting: + set {_ran} to random number between 1 and 3 + set {thirst.%loop-player%} to {thirst.%loop-player%} - {_ran} + #BIOME SPECIFIC STUFF + biome at loop-player is river: + block under loop-player is water block: + chance of 5%: + loop-player's health is less than 10: + set {_location} to location of loop-player + spawn 1 of bubble data 1 offset with 1, 1, 1 at {_location} + wait 2 seconds + damage loop-player by .5 heart + send "&3A fish has nibbled at your toes!" to loop-player + biome at loop-player is desert: + time in loop-player's world is day + y-coordinate of loop-player is greater than 60 + {thirst.%loop-player%} is greater than 0: + set {thirst.%loop-player%} to {thirst.%loop-player%} - 2 + {thirst.%loop-player%} is 0: + chance of 45%: + damage loop-player by 2 + send "&cThe sun beats down on you" to loop-player + biome at loop-player is hell: + chance of 5%: + set {thirst.%loop-player%} to {thirst.%loop-player%} - 1 + chance of 1%: + damage loop-player by 1 heart + send "&3You are being cooked to a nice medium rare" to loop-player + set {thirst.%loop-player%} to {thirst.%loop-player%} - 4 + biome at loop-player is swamp or swampland: + set {_ran} to a random integer between 1 and 5 + {_ran} is 1: + apply hunger 2 to loop-player for 20 seconds + send "&cMalaria runs through your body" to loop-player + #TOO HIGH GETTING CHILLED + y-coordinate of loop-player is greater than 110: + loop-player's helmet is air + damage loop-player by 1 + send "&cYou are chilled " to loop-player + apply slowness to loop-player for 3 seconds + #BURING IN YO POCKET + loop-player has lava bucket: + chance of 10%: + damage loop-player by 0.5 + send "&cThe lava in your inventory grows hotter" to loop-player + #INJURY DAMAGE + {injured.%loop-player%} is true: + chance of 10%: + set {_location} to location of loop-player + spawn 1 of spell data 1 offset with 1, 1, 1 at {_location} + damage loop-player by 0.5 + {injured.%loop-player%.length} is not set: + set {injured.%loop-player%.length} to 0 + add 1 to {injured.%loop-player%.length} + send "&cYour injuries need mending!" to loop-player + {injured.%loop-player%.length} is less than 5: + apply slowness to loop-player for 999 days + {injured.%loop-player%.length} is greater than 5: + {injured.%loop-player%.length} is less than 10: + apply slowness 2 to loop-player for 999 days + apply mining fatigue to loop-player for 1 minute + make score "&cINJURED" in board of loop-player to 2 + {injured.%loop-player%.length} is greater than 10: + apply slowness 3 to loop-player for 999 days + apply mining fatigue 2 to loop-player for 1 minute + apply weakness to loop-player for 30 seconds + make score "&cINJURED" in board of loop-player to 3 + #CHESTPLATES + {thirst.%loop-player%} is less than or equal to 50: + name of loop-player's chestplate is "&3Chest of Quench" + loop-player has {@elefuel}: + set {thirst.%loop-player%} to 100 + remove {@elefuel} from loop-player + loop-player's hunger level is less than 5: + name of loop-player's chestplate is "&3Chest of Snacks" + loop-player has {@elefuel}: + set loop-player's hunger level to 10 + remove {@elefuel} from loop-player + {fatigue.%loop-player%} is less than or equal to 30: + chance of 15%: + apply slowness to loop-player for 3 seconds + send "&cYou are fatigued, You can drink coffee or rest to get your strength back" to loop-player + name of loop-player's chestplate is "&3Chest of Speed": + loop-player has {@elefuel}: + apply speed 2 to loop-player for 4 seconds + remove {@elefuel} from loop-player + loop players in radius 75 of loop-player: + apply speed 2 to loop-player-2 for 4 seconds + name of loop-player's chestplate is "&3Chest of Haste": + loop-player has {@elefuel}: + apply haste 2 to loop-player for 4 seconds + remove {@elefuel} from loop-player + loop players in radius 75 of loop-player: + apply haste 2 to loop-player-2 for 4 seconds + name of loop-player's chestplate is "&3Chest of Strength": + loop-player has {@elefuel}: + apply strength 2 to loop-player for 4 seconds + remove {@elefuel} from loop-player + loop players in radius 75 of loop-player: + apply strength 2 to loop-player-2 for 4 seconds + #wildsilverfish + block above block below loop-player is any tall grass: + chance of 5%: + spawn silverfish at location of loop-player + send "&cA wild silverfish appears!" to loop-player + #hygiene + block below loop-player is dirt or grass: + {hygiene.%loop-player%} is greater than 0 + set {_ran} to random number between 0 and 0.5 + {hygiene.%loop-player%} is not set: + set {hygiene.%loop-player%} to 100 + set {hygiene.%loop-player%} to {hygiene.%loop-player%} - {_ran} + {hygiene.%loop-player%} is less than or equal to 0: + set {hygiene.%loop-player%} to 0 + {debug.%loop-player%} is true: + set {hygiene.%loop-player%} to 100 + {hygiene.%loop-player%} is less than 10: + chance of 5%: + apply nausea to loop-player for 5 seconds + send "&cYour stench affects you. Use soap in water to fix it!" to loop-player + loop all entities: + loop-entity is not player: + {unstable.%loop-entity%} is set: + spawn 100 of red dust data 1 offset with 1, 1, 1 at location of loop-entity + +every 5 seconds: + loop {wtf.loc.bench::*}: + set {_loc} to loop-value + set {_check} to false + block at {_loc} is workbench: + set {_check} to true + spawn 100 of red dust data 1 offset with 1, 1, 1 at {_loc} + {_check} is false: + delete {wtf.loc.bench::%loop-index%} + +every 5 seconds: + loop {wtf.loc.anvil::*}: + set {_loc} to loop-value + set {_check} to false + block at {_loc} is anvil: + set {_check} to true + spawn 100 of red dust data 1 offset with 1, 1, 1 at {_loc} + {_check} is false: + delete {wtf.loc.anvil::%loop-index%} + +on place: + player's tool is {@advbench}: + set {_loc} to event-location + {wtf.loc.bench::%{_loc}%} exists: + stop + set {wtf.loc.bench::%{_loc}%} to {_loc} + +on place: + player's tool is {@advanvil}: + set {_loc} to event-location + set {_fall} to false + set {_drop} to 0 + loop 254 times: + block below {_loc} is air or water or lava: + set {_fall} to true + add 1 to {_drop} + subtract 1 from y-coordinate of {_loc} + {_fall} is false: + exit loop + {wtf.loc.anvil::%{_loc}%} exists: + stop + set {wtf.loc.anvil::%{_loc}%} to {_loc} + +on block physics: + set {_loc} to event-location + {wtf.loc.anvil::%{_loc}%} exists: + cancel event + {wtf.loc.bench::%{_loc}%} exists: + cancel event + +on right click on workbench: + set {_loc} to location of event-block + {wtf.loc.bench::%{_loc}%} exists: + cancel event + loop {db_wtf.bench.items::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_chest} is set: + set {_chest} to "%{_chest}%;s;%{_count}%;%loop-value%" + {_chest} is not set: + set {_chest} to "s;%{_count}%;%loop-value%" + replace "PLAYER" in {_chest} with "%player%" + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show "%{_chest}%" with {_size} row named "&9&lAdvanced Workbench" to player + +on right click on anvil: + set {_loc} to location of event-block + {wtf.loc.anvil::%{_loc}%} exists: + cancel event + loop {db_wtf.anvil.items::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_chest} is set: + set {_chest} to "%{_chest}%;s;%{_count}%;%loop-value%" + {_chest} is not set: + set {_chest} to "s;%{_count}%;%loop-value%" + replace "PLAYER" in {_chest} with "%player%" + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show "%{_chest}%" with {_size} row named "&9&lAdvanced Anvil" to player + +command /wtfitem : + permission: obam.free + trigger: + argument 1 is "bandages": + player has 1 * argument 2 of paper: + player has 1 * argument 2 of slimeball: + player doesn't have space for 1 * argument 2 of {@bandages}: + message "&cYou do not have room for this." + stop + remove 1 * argument 2 of paper from player + remove 1 * argument 2 of slimeball from player + give 1 * argument 2 of {@bandages} to player + message "&aItem Created" + stop + message "&cYou are missing &fSlimeball" + stop + message "&cYou are missing &fPaper" + stop + argument 1 is "soap1": + player has 1 * argument 2 of milk: + player has 1 * argument 2 of rose: + player has 1 * argument 2 of water bottle: + player doesn't have space for 2 * argument 2 of {@soap1}: + message "&cYou do not have room for this." + stop + remove 1 * argument 2 of milk from player + remove 1 * argument 2 of rose from player + remove 1 * argument 2 of water bottle from player + give 1 * argument 2 of {@soap1} to player + give 1 * argument 2 of bucket to player + message "&aItem Created" + stop + message "&cYou are missing &fWater Bottle" + stop + message "&cYou are missing &fPoppy" + stop + message "&cYou are missing &fMilk Bucket" + stop + argument 1 is "superbottle": + player has 4 * argument 2 of water bottle: + player doesn't have space for 1 * argument 2 of {@superbottle}: + message "&cYou do not have room for this." + stop + remove 4 * argument 2 of water bottle from player + give 1 * argument 2 of {@superbottle} to player + message "&aItem Created" + stop + message "&cYou are missing &fWater Bottle" + stop + argument 1 is "coffee": + player has 1 * argument 2 of cocoa beans: + player has 1 * argument 2 of milk: + player doesn't have space for 2 * argument 2 of {@coffee}: + message "&cYou do not have room for this." + stop + remove 1 * argument 2 of cocoa beans from player + remove 1 * argument 2 of milk from player + give 1 * argument 2 of {@coffee} to player + give 1 * argument 2 of bucket to player + message "&aItem Created" + stop + message "&cYou are missing &fMilk Bucket" + stop + message "&cYou are missing &fCocoa Beans" + stop + argument 1 is "unstmetalbar": + player has 6 * argument 2 of {@unstmetal}: + player doesn't have space for 1 * argument 2 of {@unstmetalbar}: + message "&cYou do not have room for this." + stop + remove 6 * argument 2 of {@unstmetal} from player + give 1 * argument 2 of {@unstmetalbar} to player + message "&aItem Created" + stop + message "&cYou are missing &3Unstable Metal Shard" + stop + argument 1 is "stablemetal": + player has 8 * argument 2 of {@unstmetalbar}: + player has 1 * argument 2 of {@stable}: + player doesn't have space for 1 * argument 2 of {@stablemetal}: + message "&cYou do not have room for this." + stop + remove 8 * argument 2 of {@unstmetalbar} from player + remove 1 * argument 2 of {@stable} from player + give 1 * argument 2 of {@stablemetal} to player + message "&aItem Created" + stop + message "&cYou are missing &3Stabilizer" + stop + message "&cYou are missing &3Unstable Metal Bar" + stop + argument 1 is "stableele": + player has 8 * argument 2 of {@unstele}: + player has 1 * argument 2 of {@stable}: + player doesn't have space for 1 * argument 2 of {@stableele}: + message "&cYou do not have room for this." + stop + remove 8 * argument 2 of {@unstele} from player + remove 1 * argument 2 of {@stable} from player + give 1 * argument 2 of {@stableele} to player + message "&aItem Created" + stop + message "&cYou are missing &3Stabilizer" + stop + message "&cYou are missing &3Unstable Element" + stop + argument 1 is "stable": + player has 8 * argument 2 of ice: + player has 1 * argument 2 of {@fairydust}: + player doesn't have space for 1 * argument 2 of {@stable}: + message "&cYou do not have room for this." + stop + remove 8 * argument 2 of ice from player + remove 1 * argument 2 of {@fairydust} from player + give 1 * argument 2 of {@stable} to player + message "&aItem Created" + stop + message "&cYou are missing &3Fairy Dust" + stop + message "&cYou are missing &fIce" + stop + argument 1 is "elefuel": + player has 8 * argument 2 of {@stableele}: + player has 1 * argument 2 of coal: + player doesn't have space for 1 * argument 2 of {@elefuel}: + message "&cYou do not have room for this." + stop + remove 8 * argument 2 of {@stableele} from player + remove 1 * argument 2 of coal from player + give 1 * argument 2 of {@elefuel} to player + message "&aItem Created" + stop + message "&cYou are missing &fCoal" + stop + message "&cYou are missing &3Stable Element" + stop + argument 1 is "envradar": + player has 6 * argument 2 of {@stablemetal}: + set {_count} to 0 + loop items in player's inventory: + loop-item is compass: + set {_lorecheck} to uncoloured lore of loop-item + set {_lorecheck::*} to {_lorecheck} split at "||" + {_lorecheck::2} is not set: + add 1 to {_count} + {_count} is greater than or equal to 1: + player doesn't have space for 1 * argument 2 of {@envradar}: + message "&cYou do not have room for this." + stop + remove 1 * argument 2 of loop-item from inventory of player + remove 6 * argument 2 of {@stablemetal} from player + give 1 * argument 2 of {@envradar} to player + message "&aItem Created" + stop + message "&cYou are missing &fCompass" + stop + message "&cYou are missing &3Stable Metal Bar" + stop + argument 1 is "advanvil": + player has 3 * argument 2 of iron blocks: + player has 1 * argument 2 of {@advbench}: + player has 1 * argument 2 of diamond block: + player has 1 * argument 2 of redstone block: + player has 1 * argument 2 of obsidian: + player doesn't have space for 1 * argument 2 of {@advanvil}: + message "&cYou do not have room for this." + stop + remove 3 * argument 2 of iron blocks from player + remove 1 * argument 2 of {@advbench} from player + remove 1 * argument 2 of diamond block from player + remove 1 * argument 2 of redstone block from player + remove 1 * argument 2 of obsidian from player + give 1 * argument 2 of {@advanvil} to player + message "&aItem Created" + stop + message "&cYou are missing &fObsidian" + stop + message "&cYou are missing &fRedstone Block" + stop + message "&cYou are missing &fDiamond Block" + stop + message "&cYou are missing &3Advanced Bench" + stop + message "&cYou are missing &fIron Block" + stop + argument 1 is "stablechest": + player has 6 * argument 2 of {@stablemetal}: + player has 1 * argument 2 of {@elefuel}: + player has 1 * argument 2 of diamond block: + player doesn't have space for 1 * argument 2 of {@stablechest}: + message "&cYou do not have room for this." + stop + remove 6 * argument 2 of {@stablemetal} from player + remove 1 * argument 2 of {@elefuel} from player + remove 1 * argument 2 of diamond block from player + give 1 * argument 2 of {@stablechest} to player + message "&aItem Created" + stop + message "&cYou are missing &fDiamond Block" + stop + message "&cYou are missing &3Elemental Fuel" + stop + message "&cYou are missing &3Stable Metal Bar" + stop + argument 1 is "qnhchest": + player has 1 * argument 2 of {@stablechest}: + player has 1 * argument 2 of {@superbottle}: + player doesn't have space for 1 * argument 2 of {@qnhchest}: + message "&cYou do not have room for this." + stop + remove 1 * argument 2 of {@stablechest} from player + remove 1 * argument 2 of {@superbottle} from player + give 1 * argument 2 of {@qnhchest} to player + message "&aItem Created" + stop + message "&cYou are missing &3Super Water Bottle" + stop + message "&cYou are missing &3Stable Diamond Chestplate" + stop + argument 1 is "snkchest": + player has 1 * argument 2 of {@stablechest}: + player has 1 * argument 2 of enchanted golden apple: + player doesn't have space for 1 * argument 2 of {@snkchest}: + message "&cYou do not have room for this." + stop + remove 1 * argument 2 of {@stablechest} from player + remove 1 * argument 2 of enchanted golden apple from player + give 1 * argument 2 of {@snkchest} to player + message "&aItem Created" + stop + message "&cYou are missing &dEnchanted Golden Apple" + stop + message "&cYou are missing &3Stable Diamond Chestplate" + stop + argument 1 is "hastechest": + player has 1 * argument 2 of {@stablechest}: + player has 1 * argument 2 of beacon: + set {_count} to 0 + loop items in player's inventory: + loop-item is diamond pickaxe: + loop-item is not enchanted: + set {_lorecheck} to uncoloured lore of loop-item + set {_lorecheck::*} to {_lorecheck} split at "||" + {_lorecheck::2} is not set: + add 1 to {_count} + {_count} is greater than or equal to 1: + player doesn't have space for 1 * argument 2 of {@hastechest}: + message "&cYou do not have room for this." + stop + remove 1 * argument 2 of loop-item from inventory of player + remove 1 * argument 2 of {@stablechest} from player + remove 1 * argument 2 of beacon from player + give 1 * argument 2 of {@hastechest} to player + message "&aItem Created" + stop + message "&cYou are missing &fDiamond Pickaxe" + stop + message "&cYou are missing &fBeacon" + stop + message "&cYou are missing &3Stable Diamond Chestplate" + stop + argument 1 is "speedchest": + player has 1 * argument 2 of {@stablechest}: + player has 1 beacon: + set {_count} to 0 + loop items in player's inventory: + loop-item is diamond boots: + loop-item is not enchanted: + set {_lorecheck} to uncoloured lore of loop-item + set {_lorecheck::*} to {_lorecheck} split at "||" + {_lorecheck::2} is not set: + add 1 to {_count} + {_count} is greater than or equal to 1: + player doesn't have space for 1 * argument 2 of {@speedchest}: + message "&cYou do not have room for this." + stop + remove 1 * argument 2 of loop-item from inventory of player + remove 1 * argument 2 of {@stablechest} from player + remove 1 * argument 2 of beacon from player + give 1 * argument 2 of {@speedchest} to player + message "&aItem Created" + stop + message "&cYou are missing &fDiamond Boots" + stop + message "&cYou are missing &fBeacon" + stop + message "&cYou are missing &3Stable Diamond Chestplate" + stop + argument 1 is "strengthchest": + player has 1 * argument 2 of {@stablechest}: + player has 1 beacon: + set {_count} to 0 + loop items in player's inventory: + loop-item is diamond sword: + loop-item is not enchanted: + set {_lorecheck} to uncoloured lore of loop-item + set {_lorecheck::*} to {_lorecheck} split at "||" + {_lorecheck::2} is not set: + add 1 to {_count} + {_count} is greater than or equal to 1: + player doesn't have space for 1 * argument 2 of {@strengthchest}: + message "&cYou do not have room for this." + stop + remove 1 * argument 2 of loop-item from inventory of player + remove 1 * argument 2 of {@stablechest} from player + remove 1 * argument 2 of beacon from player + give 1 * argument 2 of {@strengthchest} to player + message "&aItem Created" + stop + message "&cYou are missing &fDiamond Sword" + stop + message "&cYou are missing &fBeacon" + stop + message "&cYou are missing &3Stable Diamond Chestplate" + stop + argument 1 is "grapplinghook": + player has 8 * argument 2 of {@elefuel}: + set {_count} to 0 + loop items in player's inventory: + loop-item is fishing rod: + loop-item is not enchanted: + set {_lorecheck} to uncoloured lore of loop-item + set {_lorecheck::*} to {_lorecheck} split at "||" + {_lorecheck::2} is not set: + add 1 to {_count} + {_count} is greater than or equal to 1: + player doesn't have space for 1 * argument 2 of {@grapplinghook}: + message "&cYou do not have room for this." + stop + remove 1 * argument 2 of loop-item from inventory of player + remove 8 * argument 2 of {@elefuel} from player + give 1 * argument 2 of {@grapplinghook} to player + message "&aItem Created" + stop + message "&cYou are missing &fFishing Rod" + stop + message "&cYou are missing &3Elemental Fuel" + stop + argument 1 is "stblgun": + player has 4 * argument 2 of {@stablemetal}: + player has 1 * argument 2 of {@stable}: + set {_count} to 0 + loop items in player's inventory: + loop-item is bow: + loop-item is not enchanted: + set {_lorecheck} to uncoloured lore of loop-item + set {_lorecheck::*} to {_lorecheck} split at "||" + {_lorecheck::2} is not set: + add 1 to {_count} + {_count} is greater than or equal to 1: + player doesn't have space for 1 * argument 2 of {@stblgun}: + message "&cYou do not have room for this." + stop + remove 1 * argument 2 of loop-item from inventory of player + remove 4 * argument 2 of {@stablemetal} from player + remove 1 * argument 2 of {@stable} from player + give 1 * argument 2 of {@stblgun} to player + message "&aItem Created" + stop + message "&cYou are missing &fBow" + stop + message "&cYou are missing &3Stabilizer" + stop + message "&cYou are missing &3Stable Metal Bar" + stop + argument 1 is "stblmine": + player has 2 * argument 2 of {@stablemetal}: + player has 1 * argument 2 of {@stable}: + set {_count} to 0 + loop items in player's inventory: + loop-item is diamond pickaxe: + loop-item is not enchanted: + set {_lorecheck} to uncoloured lore of loop-item + set {_lorecheck::*} to {_lorecheck} split at "||" + {_lorecheck::2} is not set: + add 1 to {_count} + {_count} is greater than or equal to 1: + player doesn't have space for 1 * argument 2 of {@stblmine}: + message "&cYou do not have room for this." + stop + remove 1 * argument 2 of loop-item from inventory of player + remove 2 * argument 2 of {@stablemetal} from player + remove 1 * argument 2 of {@stable} from player + give 1 * argument 2 of {@stblmine} to player + message "&aItem Created" + stop + message "&cYou are missing &fDiamond Pickaxe" + stop + message "&cYou are missing &3Stabilizer" + stop + message "&cYou are missing &3Stable Metal Bar" + stop + +on break: + block is workbench: + set {_loc} to location of event-block + {wtf.loc.bench::%{_loc}%} exists: + clear {wtf.loc.bench::%{_loc}%} + drop {@advbench} + +on break: + block is anvil: + set {_loc} to location of event-block + {wtf.loc.anvil::%{_loc}%} exists: + clear {wtf.loc.anvil::%{_loc}%} + drop {@advanvil} + +on spawn of a creeper or a skeleton or a spider or zombie or a cow: + {unstable.%chunk at event-location%} is true: + set {_loc} to event-location + event-entity is a creeper: + wait 5 ticks + set name of event-entity to "&cUnstable Creeper" + apply resistance 2 to event-entity for 999 days + apply speed to event-entity for 999 days + set {unstable.%event-entity%} to true + event-entity is a zombie: + wait 5 ticks + set name of event-entity to "&cUnstable Zombie" + apply resistance 2 to event-entity for 999 days + apply speed 2 to event-entity for 999 days + equip event-entity with iron sword of sharpness + set event-entity's helmet to iron helmet + set {unstable.%event-entity%} to true + event-entity is skeleton: + wait 5 ticks + set name of event-entity to "&cUnstable Skeleton" + apply resistance 2 to event-entity for 999 days + apply speed 2 to event-entity for 999 days + equip event-entity with bow + set event-entity's helmet to gold helmet + set {unstable.%event-entity%} to true + event-entity is a spider: + wait 5 ticks + set name of event-entity to "&cUnstable Spider" + apply resistance 2 to event-entity for 999 days + apply speed 2 to event-entity for 999 days + apply jump 5 to event-entity for 999 days + set {unstable.%event-entity%} to true + event-entity is a cow: + wait 5 ticks + set name of event-entity to "&cUnstable Cow" + apply speed 2 to event-entity for 999 days + set {unstable.%event-entity%} to true + +on explosion prime: + event-entity is creeper: + {unstable.%event-entity%} is true: + cancel event + loop blocks in radius 10 of event-entity: + {chunk.live.%chunk at location of loop-block%} is set: + set {_safe} to true + {_safe} is set: + create safe explosion of force 5 at event-location + set {_loc} to event-location + spawn 100 of red dust data 1 offset with 1, 1, 1 at {_loc} + loop players in radius 5 of event-location: + make event-entity damage loop-player by 4 + stop + wait 2 seconds + create an explosion of force 5 at event-location + set {_loc} to event-location + spawn 100 of red dust data 1 offset with 1, 1, 1 at {_loc} + loop players in radius 5 of event-location: + make event-entity damage loop-player by 4 + +on damage: + victim is not a player + {unstable.%victim%} is set: + damage cause is fall: + cancel event + damage cause is block explosion: + cancel event + +on death of cow: + {hit.%victim%} is set: + clear drops + stop + {unstable.%victim%} is set: + loop blocks in radius 10 of victim: + {chunk.live.%chunk at location of loop-block%} is set: + set {_safe} to true + exit loop + {_safe} is set: + create safe explosion with force 5 at victim + chance of 20%: + add {@unstmetal} to drops + chance of 15%: + add {@unstele} to drops + spawn 100 of red dust data 1 offset with 1, 1, 1 at victim + loop players in radius 5 of victim: + make victim damage loop-player by 4 + stop + create an explosion with force 5 at victim + chance of 100%: + set {_amount} to random integer between 0.5 and 5 + add {_amount} of {@unstmetal} to drops + chance of 40%: + set {_amount} to random integer between 0.5 and 5 + add {_amount} of {@unstele} to drops + chance of 10%: + set {_amount} to random integer between 0.5 and 2 + add {_amount} of {@elefuel} to drops + +on death of a creeper or a skeleton or a zombie or a spider: + chance of 15%: + add {@bandages} to drops + {hit.%victim%} is set: + loop drops: + add loop-item to attacker's inventory + clear drops + stop + {unstable.%victim%} is set: + chance of 100%: + set {_amount} to random integer between 0.5 and 5 + add {_amount} of {@unstmetal} to drops + chance of 40%: + set {_amount} to random integer between 0.5 and 5 + add {_amount} of {@unstele} to drops + chance of 10%: + set {_amount} to random integer between 0.5 and 2 + add {_amount} of {@elefuel} to drops + +on damage: + victim is player: + {boner.%attacker%} is set: + apply slowness 10 to victim for 5 seconds + send "&cYou have been boned." to victim + delete {boner.%attacker%} +# attacker is a zombie: +# {infected.%victim%.flag} is not set: +# set {infected.%victim%.flag} to true +# make score "&cINFECTED" in board of victim to 1 +# send "&cThe zombie has infected you!" to victim +# stop +# {infected.%victim%.flag} is false: +# set {infected.%victim%.flag} to true +# make score "&cINFECTED" in board of victim to 1 +# send "&cThe zombie has infected you!" to victim +# stop + damage cause is fall: + chance of 15%: + victim's boots are boots of feather falling: + stop + {injured.%victim%} is true: + stop + set {_location} to location of victim + spawn 1 of angry villager data 1 offset with 1, 1, 1 at {_location} + set {injured.%victim%} to true + apply slowness to victim for 999 days + add 1 to damage + make score "&cINJURED" in board of victim to 1 + send "&cYou have been injured from your fall!" to victim + +#right click events +on right click with paper: + player is holding {@bandages}: + {injured.%player%} is not set: + send "&cYou are not injured!" to player + stop + {injured.%player%} is false: + send "&cYou are not injured!" to player + stop + {injured.%player%} is true: + {injured.%player%.length} is greater than 5: + {injured.%player%.length} is less than 10: + remove mining fatigue from player + remove weakness from player + remove slowness from player + apply slowness to player for 999 days + send "&aYour injuries are healing" to player + make score "&cINJURED" in board of player to 1 + set {injured.%player%.length} to 1 + remove {@bandages} from player + stop + {injured.%player%.length} is greater than 10: + remove slowness from player + remove mining fatigue from player + apply mining fatigue to player for 999 days + apply slowness 2 to player for 999 days + remove weakness from player + set {injured.%player%.length} to 6 + send "&aYour injuries are healing" to player + make score "&cINJURED" in board of player to 2 + remove {@bandages} from player + stop + send "&aYou mend your injuries" to player + remove mining fatigue from player + remove weakness from player + remove slowness from player + remove {@bandages} from player + nullify score "&cINJURED" in board of player + set {injured.%player%} to false + set {injured.%player%.length} to 0 + +on right click with compass: + player's tool is {@envradar}: + player does not have {@elefuel}: + send "&cYou do not have enough fuel!" to player + stop + remove {@elefuel} from player + {cavein.%chunk at location of player%.chance} is not set: + {unstable.%chunk at location of player%} is not set: + chance of 2%: + set {unstable.%chunk at location of player%} to true + set {_ran} to random number between 15 and 20 + set {_ran2} to random number between 18 and 20 + set {cavein.%chunk at location of player%.chance} to {_ran} + set {methane.%chunk at location of player%.chance} to {_ran2} + {unstable.%chunk at location of player%} is not set: + set {unstable.%chunk at location of player%} to false + {cavein.%chunk at location of player%.chance} is not set: + chance of 90%: + set {_ran} to random integer between 1 and 5 + set {cavein.%chunk at location of player%.chance} to {_ran} + {cavein.%chunk at location of player%.chance} is not set: + set {cavein.%chunk at location of player%.chance} to false + {methane.%chunk at location of player%.chance} is not set: + chance of 95%: + set {_ran} to random integer between 3 and 6 + set {methane.%chunk at location of player%.chance} to {_ran} + {methane.%chunk at location of player%.chance} is not set: + set {methane.%chunk at location of player%.chance} to false + if {unstable.%chunk at location of player%} is true: + send "&aGround Structure: &cUnstable" + send "&aMethane Rating: &cUnstable" + stop + if {cavein.%chunk at location of player%.chance} is false: + send "&aGround Structure: &3SOUND" to player + else: + send "&aGround Structure: &e%{cavein.%chunk at location of player%.chance}%" to player + if {methane.%chunk at location of player%.chance} is false: + send "&aMethane Rating: &3EMPTY" to player + else: + send "&aMethane Rating: &e%{methane.%chunk at location of player%.chance}%" to player + +on right click with nether brick item: + player's tool is {@soap1}: + block above block below player is water: + remove {@soap1} from player + send "&aYou wash yourself" + set {hygiene.%player%} to 100 + spawn 500 of bubble data 1 offset with 2, 2, 2 at location of player + player has nausea: + remove nausea from player + loop players in radius 10 of player: + block above block below loop-player is water: + {hygiene.%loop-player%} is less than 100: + send "&aYou have been washed by &e%player%&a!" to loop-player + set {_loc} to loop-player's location + spawn 500 of bubble data 1 offset with 2, 2, 2 at {_loc} + set {hygiene.%loop-player%} to 100 + loop-player has nausea: + remove nausea from loop-player + +on shoot: + shooter's tool is {@grapplinghook}: + set {teleport.%projectile%} to shooter + {unstable.%shooter%} is set: + chance of 30%: + {boner.%shooter%} is set: + stop + cancel event + set {boner.%shooter%} to true + make shooter shoot item projectile bone at speed 5 + +on projectile hit: + shooter does not have {@elefuel}: + shooter's tool is {@grapplinghook}: + send "&4You do not have enough elemental fuel." + stop + shooter has {@elefuel}: + shooter's tool is {@grapplinghook}: + set {_prtp.%projectile%} to projectile's location + teleport {teleport.%projectile%} to {_prtp.%projectile%} + remove {@elefuel} from shooter + delete projectile + stop + +on rightclick: + player is holding {@grapplinghook}: + repair tool of player + stop + +on bed enter: + {injured.%player%} is true: + set {injured.%player%} to false + set {injured.%player%.length} to 0 + remove mining fatigue from player + remove weakness from player + remove slowness from player + nullify score "&cINJURED" in board of player + send "&aYou have been healed of your injuries!" to player + set {fatigue.%player%} to 100 + +#GLOBAL CONSUME LOOP +on consume: + item is water bottle: + player is holding {@coffee}: + {fatigue.%player%} is greater than or equal to 100: + set {fatigue.%player%} to 100 + cancel event + stop + add 50 to {fatigue.%player%} + {fatigue.%player%} is greater than 100: + set {fatigue.%player%} to 100 + stop + player is holding {@superbottle}: + add 50 to {thirst.%player%} + {thirst.%player%} is greater than 100: + set {thirst.%player%} to 100 + stop + add 10 to {thirst.%player%} + {thirst.%player%} is greater than 100: + set {thirst.%player%} to 100 + item is apple: + add 5 to {thirst.%player%} + {thirst.%player%} is greater than 100: + set {thirst.%player%} to 100 + stop + item is mushroom stew: + add 10 to {thirst.%player%} + {thirst.%player%} is greater than 100: + set {thirst.%player%} to 100 + stop + item is carrot: + add 5 to {thirst.%player%} + {thirst.%player%} is greater than 100: + set {thirst.%player%} to 100 + stop + item is potato: + add 5 to {thirst.%player%} + {thirst.%player%} is greater than 100: + set {thirst.%player%} to 100 + stop +# item is golden apple: +# {infected.%player%.flag} is true: +# set {infected.%player%.flag} to false +# nullify score "&cINFECTED" in board of player +# send "&3You have been revitalized!" + +on death of a player: + {thirst.%player%} is less than 25: + set {thirst.%player%} to 25 +# {infected.%player%.flag} is true: +# set {_location5} to player's location +# wait 1 second +# spawn 1 zombie at {_location5} +# set name of spawned entity to "%player%" +# apply resistance 2 to entity for 999 days +# apply speed to entity for 999 days + +command /ci [] []: + permission: obam.admin + trigger: + argument 1 is not set: + loop {db_wtf.ci::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_chest} is set: + set {_chest} to "%{_chest}%;s;%{_count}%;%loop-value%" + {_chest} is not set: + set {_chest} to "s;%{_count}%;%loop-value%" + replace "PLAYER" in {_chest} with "%player%" + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + {_count} is greater than 36: + set {_size} to 5 + {_count} is greater than 45: + set {_size} to 6 + show "%{_chest}%" with {_size} row named "&9&lCI Menu" to player + argument 1 is "unstele": + player doesn't have space for 1 * argument 2 of {@unstele}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@unstele} to player + message "&aHere are your things." + stop + argument 1 is "unstmetal": + player doesn't have space for 1 * argument 2 of {@unstmetal}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@unstmetal} to player + message "&aHere are your things." + stop + argument 1 is "fairydust": + player doesn't have space for 1 * argument 2 of {@fairydust}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@fairydust} to player + message "&aHere are your things." + stop + argument 1 is "bandages": + player doesn't have space for 1 * argument 2 of {@bandages}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@bandages} to player + message "&aHere are your things." + stop + argument 1 is "soap1": + player doesn't have space for 1 * argument 2 of {@soap1}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@soap1} to player + message "&aHere are your things." + stop + argument 1 is "superbottle": + player doesn't have space for 1 * argument 2 of {@superbottle}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@superbottle} to player + message "&aHere are your things." + stop + argument 1 is "coffee": + player doesn't have space for 1 * argument 2 of {@coffee}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@coffee} to player + message "&aHere are your things." + stop + argument 1 is "unstmetalbar": + player doesn't have space for 1 * argument 2 of {@unstmetalbar}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@unstmetalbar} to player + message "&aHere are your things." + stop + argument 1 is "stablemetal": + player doesn't have space for 1 * argument 2 of {@stablemetal}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@stablemetal} to player + message "&aHere are your things." + stop + argument 1 is "stableele": + player doesn't have space for 1 * argument 2 of {@stableele}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@stableele} to player + message "&aHere are your things." + stop + argument 1 is "stable": + player doesn't have space for 1 * argument 2 of {@stable}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@stable} to player + message "&aHere are your things." + stop + argument 1 is "elefuel": + player doesn't have space for 1 * argument 2 of {@elefuel}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@elefuel} to player + message "&aHere are your things." + stop + argument 1 is "envradar": + player doesn't have space for 1 * argument 2 of {@envradar}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@envradar} to player + message "&aHere are your things." + stop + argument 1 is "advbench": + player doesn't have space for 1 * argument 2 of {@advbench}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@advbench} to player + message "&aHere are your things." + stop + argument 1 is "advanvil": + player doesn't have space for 1 * argument 2 of {@advanvil}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@advanvil} to player + message "&aHere are your things." + stop + argument 1 is "stablechest": + player doesn't have space for 1 * argument 2 of {@stablechest}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@stablechest} to player + message "&aHere are your things." + stop + argument 1 is "qnhchest": + player doesn't have space for 1 * argument 2 of {@qnhchest}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@qnhchest} to player + message "&aHere are your things." + stop + argument 1 is "snkchest": + player doesn't have space for 1 * argument 2 of {@snkchest}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@snkchest} to player + message "&aHere are your things." + stop + argument 1 is "hastechest": + player doesn't have space for 1 * argument 2 of {@hastechest}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@hastechest} to player + message "&aHere are your things." + stop + argument 1 is "speedchest": + player doesn't have space for 1 * argument 2 of {@speedchest}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@speedchest} to player + message "&aHere are your things." + stop + argument 1 is "strengthchest": + player doesn't have space for 1 * argument 2 of {@strengthchest}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@strengthchest} to player + message "&aHere are your things." + stop + argument 1 is "grapplinghook": + player doesn't have space for 1 * argument 2 of {@grapplinghook}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@grapplinghook} to player + message "&aHere are your things." + stop + argument 1 is "stblgun": + player doesn't have space for 1 * argument 2 of {@stblgun}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@stblgun} to player + message "&aHere are your things." + stop + argument 1 is "stblmine": + player doesn't have space for 1 * argument 2 of {@stblmine}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@stblmine} to player + message "&aHere are your things." + stop + +command /togglestats: + trigger: + {board.%player%} is false: + set {board.%player%} to true + display board named "&9&lWTF&9fronts" to player + make score "&3Thirst" in board of player to {thirst.%player%} + make score "&3Fatigue" in board of player to {fatigue.%player%} + make score "&3Hygiene" in board of player to {hygiene.%player%} + move display of player to sidebar + stop + {board.%player%} is true: + set {board.%player%} to false + display board named " " to player + stop + {board.%player%} is not set: + display board named "&9&lWTF&9ronts" to player + make score "&3Thirst" in board of player to {thirst.%player%} + make score "&3Fatigue" in board of player to {fatigue.%player%} + make score "&3Hygiene" in board of player to {hygiene.%player%} + set {board.%player%} to true + move display of player to sidebar + stop + +on place of torch: + player's tool is {@safetytorch} + set {safety.active.%chunk at event-location%} to true + +on spawn: + entity is skeleton or creeper or zombie or witch or spider or cave spider or enderman: + {safety.active.%chunk at event-location%} is true: + cancel event + +on place: + former tool's name is set: + set {information.%block%.1} to former tool + {debug.%player%} is true: + send "DEBUG You placed %former tool's name%" + set {information.%block%.2} to lore of former tool + set {information.%block%.3} to name of former tool + {debug.%player%} is true: + send "DEBUG %block%" + send "DEBUG %{information.%block%.1}%" + send "DEBUG %lore of former tool%" + send "DEBUG %name of former tool%" + send "DEBUG %{information.%block%.2}%" + send "DEBUG %{information.%block%.3}%" + set {information.%block%.1} to "%{information.%block%.1}%" + +on break: + {information.%block%.1} is set: + cancel event + {debug.%player%} is true: + send "DEBUG I ama message" + set {_message} to "%{information.%block%.1}%;%{information.%block%.3}%;%{information.%block%.2}%" + send "DEBUG %{_message}%" + delete block + drop {information.%block%.1} named {information.%block%.3} with lore {information.%block%.2} at location of block + +on break of glowstone: + chance of 10%: + player's tool is pickaxe of silk touch: + stop + drop {@fairydust} at location of event-block + +on right click with sugar: + player's tool is {@fairydust}: + player is flying: + stop + remove {@fairydust} from player + send "&aYou can fly!" to player + set fly state of player to true + wait 5 seconds + set fly state of player to false + +command /debug: + permission: obam.admin + trigger: + {debug.%player%} is not set: + set {debug.%player%} to false + {debug.%player%} is false: + set {debug.%player%} to true + send "&aDebug on" + stop + {debug.%player%} is true: + set {debug.%player%} to false + send "&aDebug off" + stop + +command /particlelist: + trigger: + message "%all enum values of particle%" + +command /unstclear: + permission: obam.admin + trigger: + loop all entities: + {unstable.%loop-entity%} is true: + kill loop-entity + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + send "&e%{_count}%&a Unstable Entities eliminated" + +command /unstlist: + permission: obam.admin + trigger: + loop all entities: + loop-entity is not a player + {unstable.%loop-entity%} is true + {_list::%name of loop-entity%} is not set: + set {_list::%name of loop-entity%} to 0 + add 1 to {_list::%name of loop-entity%} + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + send "&aThere are &e%{_count}% &cUnstable&a entities." + send "&aList:" + loop {_list::*}: + send "&a%loop-index%:&e %loop-value%" + +#bloodmoon +every 30 seconds: + time in "WTFlive2" is between 18:00 and 19:00: + chance of 5%: + {blood.moon} is not set + set {blood.moon} to true + broadcast "&cA blood moon rises..." + time in "WTFlive2" is between 6:00 and 18:00: + {blood.moon} is true: + clear {blood.moon} + broadcast "&aThe blood moon sets!" + +on spawn of a creeper or a skeleton or a spider or zombie or a cow: + {blood.moon} is true: + set {_loc} to event-location + event-entity is a creeper: + wait 5 ticks + set name of event-entity to "&cUnstable Creeper" + apply resistance 2 to event-entity for 999 days + apply speed to event-entity for 999 days + set {unstable.%event-entity%} to true + event-entity is a zombie: + wait 5 ticks + set name of event-entity to "&cUnstable Zombie" + apply resistance 2 to event-entity for 999 days + apply speed 2 to event-entity for 999 days + equip event-entity with iron sword of sharpness + set event-entity's helmet to iron helmet + set {unstable.%event-entity%} to true + event-entity is skeleton: + wait 5 ticks + set name of event-entity to "&cUnstable Skeleton" + apply resistance 2 to event-entity for 999 days + apply speed 2 to event-entity for 999 days + equip event-entity with bow + set event-entity's helmet to gold helmet + set {unstable.%event-entity%} to true + event-entity is a spider: + wait 5 ticks + set name of event-entity to "&cUnstable Spider" + apply resistance 2 to event-entity for 999 days + apply speed 2 to event-entity for 999 days + apply jump 5 to event-entity for 999 days + set {unstable.%event-entity%} to true + event-entity is a cow: + wait 5 ticks + set name of event-entity to "&cUnstable Cow" + apply speed 2 to event-entity for 999 days + set {unstable.%event-entity%} to true + +command /bloodmoon: + permission: obam.admin + trigger: + set time of "WTFlive2" to 18:00 + set {blood.moon} to true + broadcast "&cA blood moon rises..." + +command /dawn: + permission: obam.admin + trigger: + set time of "WTFlive2" to 5:30 + +on right click with bow: + player's tool is a bow: + name of player's tool is "&3Stabilizer Gun": + cancel event + {cool.gun.%player%} is not set: + set {cool.gun.%player%} to now + add 3 seconds to {cool.gun.%player%} + set {_cool} to difference between {cool.gun.%player%} and now + {_cool} is less than 2 seconds: + send "&cYou are reloading!" + stop + {unstable.%target entity%} is set: + name of target entity contains "&cUnstable" + player does not have {@elefuel}: + send "&cYou are out of &eElemental Fuel!" + stop + {hit.%target entity%} is not set + remove 1 {@elefuel} from player + set {hit.%target entity%} to true + make player shoot item projectile packed ice at speed 5 + set {cool.gun.%player%} to now + set {_target} to target entity + wait 0.2 seconds + strike lightning effect at location of {_target} + kill {_target} + send "&aYou have captured the Unstable Soul of this creature!" + chance of 100%: + set {_amount} to random integer between 0.5 and 2 + add {_amount} of {@unstmetal} to player's inventory + chance of 40%: + set {_amount} to random integer between 0.5 and 2 + add {_amount} of {@unstele} to player's inventory + add {@stable} to player's inventory + + +command /stablize: + permission: obam.admin + trigger: + set {unstable.%chunk at location of player%} to false + chance of 90%: + set {_ran} to random integer between 1 and 5 + set {cavein.%chunk at location of player%.chance} to {_ran} + {cavein.%chunk at location of player%.chance} is not set: + set {cavein.%chunk at location of player%.chance} to false + chance of 95%: + set {_ran} to random integer between 3 and 6 + set {methane.%chunk at location of player%.chance} to {_ran} + {methane.%chunk at location of player%.chance} is not set: + set {methane.%chunk at location of player%.chance} to false \ No newline at end of file diff --git a/OBAM-Survival Games/OBAM-WarFronts/chest.sk b/OBAM-Survival Games/OBAM-WarFronts/chest.sk new file mode 100644 index 0000000..852d93b --- /dev/null +++ b/OBAM-Survival Games/OBAM-WarFronts/chest.sk @@ -0,0 +1,4 @@ +command /testchest: + trigger: + + show "s;55;i;dirt;s;63;i;dirt;s;64;i;dirt;s;72;i;dirt" with 8 rows named "test" to player \ No newline at end of file diff --git a/OBAM-Survival Games/OBAM-WarFronts/levelhandler.sk b/OBAM-Survival Games/OBAM-WarFronts/levelhandler.sk new file mode 100644 index 0000000..2090095 --- /dev/null +++ b/OBAM-Survival Games/OBAM-WarFronts/levelhandler.sk @@ -0,0 +1,77 @@ +every 10 seconds: + + loop all players: + + {wf.%loop-player%.level} is not set: + set {wf.%loop-player%.level} to 1 + + {wf.%loop-player%.points} is greater than 1500 + + {wf.%loop-player%.points} is less than 1500^1.05 * 2: + + {wf.%loop-player%.level} is less than 2: + + set {wf.%loop-player%.level} to 2 + broadcast "&e%loop-player% &ais now &eLevel 2&a!" + + {wf.%loop-player%.treepoints} is not set: + set {wf.%loop-player%.treepoints} to 0 + + add 1 to {wf.%loop-player%.treepoints} + send "&aYou have received &e1 Skill Point&a!" to loop-player + send "&aUse &e/skill&a to open the &eSkill Tree&a!" to loop-player + + + {wf.%loop-player%.points} is less than 1500^1.05 * 3: + + {wf.%loop-player%.level} is less than 3: + + set {wf.%loop-player%.level} to 3 + broadcast "&e%loop-player% &ais now &eLevel 3&a!" + + {wf.%loop-player%.treepoints} is not set: + set {wf.%loop-player%.treepoints} to 0 + + add 1 to {wf.%loop-player%.treepoints} + send "&aYou have received &e1 Skill Point&a!" to loop-player + send "&aUse &e/skill&a to open the &eSkill Tree&a!" to loop-player + + + {wf.%loop-player%.points} is less than 1500^1.05 * 4: + + {wf.%loop-player%.level} is less than 4: + + set {wf.%loop-player%.level} to 4 + broadcast "&e%loop-player% &ais now &eLevel 4&a!" + + {wf.%loop-player%.treepoints} is not set: + set {wf.%loop-player%.treepoints} to 0 + + add 1 to {wf.%loop-player%.treepoints} + send "&aYou have received &e1 Skill Point&a!" to loop-player + send "&aUse &e/skill&a to open the &eSkill Tree&a!" to loop-player + + {wf.%loop-player%.points} is less than 1500^1.05 * 5: + + {wf.%loop-player%.level} is less than 5: + + set {wf.%loop-player%.level} to 5 + broadcast "&e%loop-player% &ais now &eLevel 5&a!" + + {wf.%loop-player%.treepoints} is not set: + set {wf.%loop-player%.treepoints} to 0 + + add 2 to {wf.%loop-player%.treepoints} + send "&aYou have received &e2 Skill Points&a!" to loop-player + send "&aUse &e/skill&a to open the &eSkill Tree&a!" to loop-player + +command /level: + permission: obam.free + trigger: + + send "Level" + send "%{wf.%player%.level}%" + send "Points" + send "%{wf.%player%.points}%" + send "Skill Points" + send "%{wf.%player%.treepoints}%" \ No newline at end of file diff --git a/OBAM-Survival Games/OBAM-WarFronts/outposts/outpostgen.sk b/OBAM-Survival Games/OBAM-WarFronts/outposts/outpostgen.sk new file mode 100644 index 0000000..3a4d16b --- /dev/null +++ b/OBAM-Survival Games/OBAM-WarFronts/outposts/outpostgen.sk @@ -0,0 +1,66 @@ + + + +on chunk load: + {chunk.loaded.%event-chunk%} is not set + set {chunk.loaded.%event-chunk%} to true + {outpost.active} is not set: + set {outpost.active} to false + {outpost.active} is false + chance of 80%: + set {outpost.active} to true + loop blocks within event-chunk: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + set loop-block to {wf.op.1::%{_count}%} + + + + set {outpost.location} to event-chunk + + set {outpost.%event-chunk%} to true + set {outpost.%event-chunk%.kills} to random integer between 1 and 10 + set {outpost.%event-chunk%.level} to random integer between 1 and 10 + set {outpost.kill.claim} to 5 + broadcast "&aA Level &e%{outpost.%event-chunk%.level}% &aOutpost has been generated at &e%event-chunk%&a!" + + +command /outpostgrab : + permission: obam.admin + trigger: + + clear {wf.op.%argument%::*} + loop blocks within chunk at location of player: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + + set {wf.op.%argument%::%{_count}%} to loop-block + + send "&aOutpost Added" + +command /outpostpush : + permission: obam.admin + trigger: + + loop blocks within chunk at location of player: + {_count} is not set: + set {_coutn} to 0 + add 1 to {_count} + + set loop-block to {wf.op.%argument%::%{_count}%} + + send "&aOutpost Pushed to current chunk" + +command /outpostreset: + permission: obam.admin + trigger: + + set {outpost.active} to false + +command /outpoststate: + permission: obam.admin + trigger: + send "%{outpost.active}%" + \ No newline at end of file diff --git a/OBAM-Survival Games/OBAM-WarFronts/outposts/teamtest.sk b/OBAM-Survival Games/OBAM-WarFronts/outposts/teamtest.sk new file mode 100644 index 0000000..bef81ce --- /dev/null +++ b/OBAM-Survival Games/OBAM-WarFronts/outposts/teamtest.sk @@ -0,0 +1,51 @@ +command /outpost: + permission: obam.free + trigger: + + {outpost.kills.red} is not set: + set {outpost.kills.red} to 0 + {outpost.kills.blue} is not set: + set {outpost.kills.blue} to 0 + {outpost.kills.green} is not set: + set {outpost.kills.green} to 0 + + send "&aThe current active outpost is located at:" + send "&e%{outpost.location}%" + send "&aRequired Score to claim:" + send "&e%{outpost.kill.claim}%" + + send "&aArmy Scores for current outpost:" + send "&cRed:" + send "&e%{outpost.kills.red}%" + send "&2Green:" + send "&e%{outpost.kills.green}%" + send "&3Blue:" + send "&e%{outpost.kills.blue}%" + +command /team : + permission: obam.admin + trigger: + argument is not "blue" or "green" or "red": + send "&cYou can only choose blue, green or red" + stop + + set {team.%player%} to argument + send "&ayou are now on the <%argument%>%argument% &ateam!" + +on death of a player: + {outpost.%chunk at location of attacker%} is true: + {outpost.kills.%{team.%attacker%}%} is not set: + set {outpost.kills.%{team.%attacker%}%} to 0 + add 1 to {outpost.kills.%{team.%attacker%}%} + broadcast "%{team.%attacker%}%:" + broadcast "%{outpost.kills.%{team.%attacker%}%}%" + {outpost.kills.%{team.%attacker%}%} is greater than or equal to {outpost.kill.claim}: + broadcast "&aThe outpost has been claimed by the <%{team.%attacker%}%>%{team.%attacker%}% &aTeam!" + clear {outpost.%chunk at location of attacker%} + clear {outpost.kills.red} + clear {outpost.kills.blue} + clear {outpost.kills.green} + clear {outpost.active} + clear {outpost.kill.claim} + clear {outpost.location} + \ No newline at end of file diff --git a/OBAM-Survival Games/OBAM-WarFronts/roles/enchanter b/OBAM-Survival Games/OBAM-WarFronts/roles/enchanter new file mode 100644 index 0000000..4fec7df --- /dev/null +++ b/OBAM-Survival Games/OBAM-WarFronts/roles/enchanter @@ -0,0 +1,57 @@ +on script load: + set {roles.menu::Miner} to "i;enchanment table;n;&1Enchanter Role;l;&7Click to take on the;&7Enchanter Role;c;sudo PLAYER roleenchanter" + +command /roleenchanter: + permission: obam.free + trigger: + + player has permission "obam.admin": + + set {role.cooldown.%player%} to now + add 1 week to {role.cooldown.%player%} + + {role.cooldown.%player%} is not set: + set {role.cooldown.%player%} to now + add 1 week to {role.cooldown.%player%} + + set {_check} to now + + + set {_check} to difference between {role.cooldown.%player%} and {_check} + + {_check} is less than 1 week: + + send "&cYou must wait at least 1 week to switch a role!" + stop + + set {role.%player%} to "enchanter" + send "&aYou have set your role to &eEnchanter&a!" + stop + +on enchant: + + {role.%player%} is "enchanter": + + chance of 5%: + + {wf.%player%.points} is not set: + set {wf.%player%.points} to 0 + + add 5 to {wf.%player%.points} + send "&aYou have received &e5 Points&a!" + + chance of 2%: + + add 5 to player's balance + send "&aYou have received &e5 Tickets&a!" + + + + + + + + + + + \ No newline at end of file diff --git a/OBAM-Survival Games/OBAM-WarFronts/roles/enchanter.sk b/OBAM-Survival Games/OBAM-WarFronts/roles/enchanter.sk new file mode 100644 index 0000000..87cde68 --- /dev/null +++ b/OBAM-Survival Games/OBAM-WarFronts/roles/enchanter.sk @@ -0,0 +1,57 @@ +on script load: + set {roles.menu::Enchanter} to "i;dirt;n;&1Enchanter Role;l;&7Click to take on the||&7Enchanter Role;c;sudo PLAYER roleenchanter" + +command /roleenchanter: + permission: obam.free + trigger: + + player has permission "obam.admin": + + set {role.cooldown.%player%} to now + add 7 days to {role.cooldown.%player%} + + {role.cooldown.%player%} is not set: + set {role.cooldown.%player%} to now + add 7 days to {role.cooldown.%player%} + + set {_check} to now + + + set {_check} to difference between {role.cooldown.%player%} and {_check} + + {_check} is less than 7 days: + + send "&cYou must wait at least 7 days to switch a role!" + stop + + set {role.%player%} to "enchanter" + send "&aYou have set your role to &eEnchanter&a!" + stop + +on enchant: + + {role.%player%} is "enchanter": + + chance of 5%: + + {wf.%player%.points} is not set: + set {wf.%player%.points} to 0 + + add 5 to {wf.%player%.points} + send "&aYou have received &e5 Points&a!" + + chance of 2%: + + add 5 to player's balance + send "&aYou have received &e5 Tickets&a!" + + + + + + + + + + + \ No newline at end of file diff --git a/OBAM-Survival Games/OBAM-WarFronts/roles/hunter.sk b/OBAM-Survival Games/OBAM-WarFronts/roles/hunter.sk new file mode 100644 index 0000000..bbc7b01 --- /dev/null +++ b/OBAM-Survival Games/OBAM-WarFronts/roles/hunter.sk @@ -0,0 +1,57 @@ +on script load: + set {roles.menu::Hunter} to "i;bow;n;&1Hunter Role;l;&7Click to take on the||&7Hunter Role;c;sudo PLAYER rolehunter" + +command /rolehunter: + permission: obam.free + trigger: + + player has permission "obam.admin": + + set {role.cooldown.%player%} to now + add 7 days to {role.cooldown.%player%} + + {role.cooldown.%player%} is not set: + set {role.cooldown.%player%} to now + add 7 days to {role.cooldown.%player%} + + set {_check} to now + + + set {_check} to difference between {role.cooldown.%player%} and {_check} + + {_check} is less than 7 days: + + send "&cYou must wait at least 7 days to switch a role!" + stop + + set {role.%player%} to "hunter" + send "&aYou have set your role to &eHunter&a!" + stop + +on death: + + victim is not a player + + victim is not a cow or a mooshroom or a chicken or a ocelot or a chicken or a wolf or a pig + + {role.%attacker%} is "hunter": + + chance of 5%: + + {wf.%player%.points} is not set: + set {wf.%player%.points} to 0 + + add 5 to {wf.%player%.points} + send "&aYou have received &e5 Points&a!" + + chance of 2%: + + add 5 to player's balance + + send "&aYou have received &e5 Tickets&a!" + + + + + + \ No newline at end of file diff --git a/OBAM-Survival Games/OBAM-WarFronts/roles/miner.sk b/OBAM-Survival Games/OBAM-WarFronts/roles/miner.sk new file mode 100644 index 0000000..1c401b7 --- /dev/null +++ b/OBAM-Survival Games/OBAM-WarFronts/roles/miner.sk @@ -0,0 +1,207 @@ +on script load: + set {roles.menu::Miner} to "i;diamond pickaxe;n;&1Miner Role;l;&7Click to take on the||&7Miner Role;c;sudo PLAYER roleminer" + +command /roleminer: + permission: obam.free + trigger: + + player has permission "obam.admin": + + set {role.cooldown.%player%} to now + add 7 days to {role.cooldown.%player%} + + {role.cooldown.%player%} is not set: + set {role.cooldown.%player%} to now + add 7 days to {role.cooldown.%player%} + + set {_check} to now + + + set {_check} to difference between {role.cooldown.%player%} and {_check} + + {_check} is less than 7 days: + + send "&cYou must wait at least 7 days to switch a role!" + stop + + set {role.%player%} to "miner" + send "&aYou have set your role to &eMiner&a!" + stop + +on pickup: + + item is iron ore or diamond or gold ore or redstone or lapis or coal + + + + #chance of 80%: + + {wf.%player%.points} is not set: + set {wf.%player%.points} to 0 + + add 100 to {wf.%player%.points} + send "&aYou have received &e100 Points&a!" + set lore of item to "%lore of item%||&7Mine'd" + + chance of 2%: + + add 5 to player's balance + send "&aYou have received &e5 Tickets&a!" + + + +command /skillminer []: + permission: obam.free + trigger: + + argument is not set: + {wf.%player%.spent} is not set: + set {wf.%player%.spent} to 0 + + {wf.%player%.treepoints} is not set: + set {wf.%player%.treepoints} to 0 + + {wf.%player%.skills::unbreaking} is not set: + set {_unb.check} to "&e0&a/5" + {wf.%player%.skills::unbreaking} is set: + set {_unb.check} to "&e%{wf.%player%.skills::unbreaking}%&a/5" + + set {_unb.slot} to "i;iron bars;n;&1Unbreaking;l;&7The unbreaking trait||&7the percentage chance to negate||&7damage to your tool|| ||%{_unb.check}%;c;sudo %player% skillminer unbreaking" + + {wf.%player%.skills::gold} is not set: + set {_gold.check} to "&e0&a/1" + {wf.%player%.skills::gold} is set: + set {_gold.check} to "&e%{wf.%player%.skills::gold}%&a/1" + + set {_gold.slot} to "i;gold block;n;&1Gold!;l;&7The Gold trait adds a||&7chance to drop extra gold||&7while mining gold|| ||%{_gold.check}%;c;sudo %player% skillminer gold" + + {wf.%player%.skills::diamond} is not set: + {wf.%player%.skills::gold} is not set: + set {_dia.check} to "&cLocked||&cRequires &eGold&c unlocked" + {wf.%player%.skills::gold} is 0: + set {_dia.check} to "&cLocked||&cRequires &eGold&c unlocked" + {wf.%player%.skills::gold} is greater than 0: + set {_dia.check} to "&e0&a/1" + {wf.%player%.skills::diamond} is set: + {wf.%player%.skills::gold} is not set: + set {_dia.check} to "&cLocked||&cRequires &eGold&c unlocked" + {wf.%player%.skills::gold} is 0: + set {_dia.check} to "&cLocked||&cRequires &eGold&c unlocked" + {wf.%player%.skills::gold} is greater than 0: + set {_dia.check} to "&e%{wf.%player%.skills::diamond}%&a/1" + + {wf.%player%.skills::gold} is not set: + set {_dia.slot} to "i;diamond;n;&1Diamond!;l;%{_dia.check}%" + {wf.%player%.skills::gold} is 0: + set {_dia.slot} to "i;diamond;n;&1Diamond!;l;%{_dia.check}%" + {wf.%player%.skills::gold} is greater than 0: + set {_dia.slot} to "i;diamond;n;&1Diamond!;l;&7The diamond trait add||&7a percentage chance to drop||&7an extra diamond while mining||&7diamond|| ||%{_dia.check}%;c;sudo %player% skillminer diamond" + + set {_clear.slot} to "i;tnt;n;&1Reset Tree;l;&7This will reset your||&7skill tree and allow you to||&7redo it;c;sudo %player% skillminer clear" + set {_used.slot} to "i;chest;n;&1Points;l;&7Used Points:||&e%{wf.%player%.spent}%||&7Availible:||&e%{wf.%player%.treepoints}%" + + send "&aOpening menu..." + + wait 0.3 seconds + show "s;28;%{_used.slot}%;s;36;%{_clear.slot}%;s;20;%{_gold.slot}%;s;11;%{_dia.slot}%;s;21;%{_unb.slot}%" with 4 rows named "&1Skill Tree - Miner" to player + + argument is "clear": + + clear {wf.%player%.skills::*} + add {wf.%player%.spent} to {wf.%player%.treepoints} + clear {wf.%player%.spent} + + send "&aSkill Tree Cleared!" + make player execute command "/skillminer" + + argument is "unbreaking": + + {wf.%player%.skills::unbreaking} is not set: + set {wf.%player%.skills::unbreaking} to 0 + + {wf.%player%.treepoints} is less than 1: + send "&cYou do not have enough points!" + make player execute command "/skillminer" + stop + + {wf.%player%.skills::unbreaking} is 5: + send "&cYou have maxxed out this skill!" + make player execute command "/skillminer" + stop + + subtract 1 from {wf.%player%.treepoints} + add 1 to {wf.%player%.spent} + add 1 to {wf.%player%.skills::unbreaking} + send "&aAdded skill point to &eUnbreaking" + send "&aUnbreaking set to &e%{wf.%player%.skills::unbreaking}%&a!" + make player execute command "/skillminer" + stop + + argument is "diamond": + + {wf.%player%.skills::gold} is not set: + send "&cYou must unlock the &eGold&c skill first!" + stop + + + {wf.%player%.skills::gold} is less than 1: + send "&cYou must unlock the &eGold&c skill first!" + stop + + {wf.%player%.skills::gold} is 1: + + {wf.%player%.skills::diamond} is not set: + set {wf.%player%.skills::diamond} to 0 + + {wf.%player%.treepoints} is less than 1: + send "&cYou do not have enough Skill points!" + make player execute command "/skillminer" + stop + + {wf.%player%.skills::diamond} is greater than 0: + send "&cYou have maxxed out this skill!" + make player execute command "/skillminer" + stop + + subtract 1 from {wf.%player%.treepoints} + add 1 to {wf.%player%.spent} + add 1 to {wf.%player%.skills::diamond} + + send "&aAdded skill point to &eDiamond!" + send "&aUnbreaking set to &e%{wf.%player%.skills::diamond}%&a!" + make player execute command "/skillminer" + stop + + argument is "gold": + + {wf.%player%.skills::gold} is not set: + set {wf.%player%.skills::gold} to 0 + + {wf.%player%.treepoints} is less than 1: + send "&cYou do not have enough points!" + make player execute command "/skillminer" + stop + + {wf.%player%.skills::gold} is 1: + send "&cYou have maxxed out this skill!" + make player execute command "/skillminer" + stop + + subtract 1 from {wf.%player%.treepoints} + add 1 to {wf.%player%.spent} + add 1 to {wf.%player%.skills::gold} + send "&aAdded skill point to &eGold&a!" + send "&aUnbreaking set to &e%{wf.%player%.skills::gold}%&a!" + make player execute command "/skillminer" + stop + + + + + + + + + + + \ No newline at end of file diff --git a/OBAM-Survival Games/OBAM-WarFronts/roles/rolemenu.sk b/OBAM-Survival Games/OBAM-WarFronts/roles/rolemenu.sk new file mode 100644 index 0000000..809d3e1 --- /dev/null +++ b/OBAM-Survival Games/OBAM-WarFronts/roles/rolemenu.sk @@ -0,0 +1,30 @@ +command /roles: + permission: obam.free + trigger: + + loop {roles.menu::*}: + + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + + {_chest} is set: + + set {_chest} to "%{_chest}%;s;%{_count}%;%loop-value%" + + {_chest} is not set: + + set {_chest} to "s;%{_count}%;%loop-value%" + + replace "PLAYER" in {_chest} with "%player%" + + {_count} is less than 9: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + + show {_chest} with {_size} rows named "&1Rows Menu" to player \ No newline at end of file diff --git a/OBAM-Survival Games/OBAM-WarFronts/roles/skill.sk b/OBAM-Survival Games/OBAM-WarFronts/roles/skill.sk new file mode 100644 index 0000000..6ba1d23 --- /dev/null +++ b/OBAM-Survival Games/OBAM-WarFronts/roles/skill.sk @@ -0,0 +1,5 @@ +command /skill: + permission: obam.free + trigger: + + make player execute command "/skill%{role.%player%}%" \ No newline at end of file diff --git a/OBAM-Survival Games/OBAM-WarFronts/roles/soldier.sk b/OBAM-Survival Games/OBAM-WarFronts/roles/soldier.sk new file mode 100644 index 0000000..27daed8 --- /dev/null +++ b/OBAM-Survival Games/OBAM-WarFronts/roles/soldier.sk @@ -0,0 +1,78 @@ +on script load: + set {roles.menu::Soldier} to "i;diamond sword;n;&1Soldier Role;l;&7Click to take on the||&7Soldier Role;c;sudo PLAYER rolesoldier" + +command /rolesoldier: + permission: obam.free + trigger: + + player has permission "obam.admin": + + set {role.cooldown.%player%} to now + add 7 days to {role.cooldown.%player%} + + {role.cooldown.%player%} is not set: + set {role.cooldown.%player%} to now + add 7 days to {role.cooldown.%player%} + + set {_check} to now + + + set {_check} to difference between {role.cooldown.%player%} and {_check} + + {_check} is less than 7 days: + + send "&cYou must wait at least 7 days to switch a role!" + stop + + set {role.%player%} to "soldier" + send "&aYou have set your role to &eSoldier&a!" + stop + +on damage: + + attacker is a player + victim is a player + + {role.%attacker%} is "soldier": + + chance of 10%: + + add 1 to damage + + send "&cCritical Hit!" to attacker + + chance of 5%: + + {wf.%attacker%.points} is not set: + set {wf.%attacker%.points} to 0 + + add 5 to {wf.%attacker%.points} + send "&aYou have received &e5 Points&a!" + + chance of 2%: + + add 5 to attacker's balance + + send "&aYou have received &e5 Tickets&a!" + + {role.%victim%} is "soldier": + + chance of 2%: + + set damage to 0 + + send "&eBlocked!" + + chance of 5%: + + {wf.%victim%.points} is not set: + set {wf.%victim%.points} to 0 + + add 5 to {wf.%victim%.points} + send "&aYou have received &e5 Points&a!" + + chance of 2%: + + add 5 to victim's balance + + send "&aYou have received &e5 Tickets&a!" \ No newline at end of file diff --git a/OBAM-Survival Games/Obam-Creative/nightvision.sk b/OBAM-Survival Games/Obam-Creative/nightvision.sk new file mode 100644 index 0000000..cc29578 --- /dev/null +++ b/OBAM-Survival Games/Obam-Creative/nightvision.sk @@ -0,0 +1,9 @@ + +command /tnight: + permission: obam.mod + trigger: + player has night vision: + remove night vision from player + stop + player does not have night vision: + apply night vision to player for 999 days diff --git a/OBAM-Survival Games/Obam-Fronts/Fronts-Testing/FBS.sk b/OBAM-Survival Games/Obam-Fronts/Fronts-Testing/FBS.sk new file mode 100644 index 0000000..d9fdf42 --- /dev/null +++ b/OBAM-Survival Games/Obam-Fronts/Fronts-Testing/FBS.sk @@ -0,0 +1,350 @@ +#FBS = Fronts Barter System +# +# +# + +command /itemalias [] [] [] []: + permission: obam.admin + usage: &c/itemalias [add/remove] (sign name) (alias) (item) + aliases: /ia + trigger: + argument 1 is not set: + send "&7Correct usage is /itemalias [add/remove] [alias] (item)" to player + argument 1 is "help" or "h": + message "&3--[&6&lAlias Help&3]--" + message "&cRequired = [] Optional = ()" + message "&a * /itemalias [list/l] (alias)" + message "&7 Shows you what item is assigned to the specified alias." + message "&7 If (alias) is left blank, gives you list of all aliases." + message "&a * /itemalias [list/l] [check/c] [item]" + message "&7 Retrieves all know aliases for an item." + message "&a * /itemalias [add/remove] [alias] (item)" + message "&7 Adds or removes an alias." + stop + argument 1 is "list" or "l": + argument 2 is not set: + send "&4List alias (a) or real (r)?" to player + stop + argument 2 is "check" or "c": + set {_check} to argument 4 + send "&3--[&6&lKnown Aliases for &7%{_check}%&3]--" + loop {item.alias::*}: + loop-value is {_check}: + message "&7%loop-index%" + loop {item.real::*}: + loop-value is {_check}: + message "&7%loop-index%" + stop + argument 2 is "alias" or "a": + argument 3 is not set: + send "&3--[&6&lKnown Aliases&3]--" + loop {item.alias::*}: + send "&7%loop-index% - %loop-value%" to player + stop + set {_item} to argument 3 + send "&3--[&6&lAssigned item for &7%{_item}%&3]--" + loop {item.alias::*}: + loop-value is {_item}: + set {_alias} to loop-index + send "&7%{_alias}%" to player + stop + argument 2 is "real" or "r": + argument 3 is not set: + send "&3--[&6&lKnown Real Items&3]--" + loop {item.real::*}: + send "&7%loop-index% - %loop-value%" to player + stop + set {_item} to argument 3 + send "&3--[&6&lAssigned Aliases for &7%{_item}%&3]--" + loop {item.real::*}: + loop-value is {_item}: + set {_alias} to loop-index + send "&7%{_alias}%" to player + stop + argument 1 is "add" or "a": + argument 2 is not set: + send "&4Add alias (a) or real (r)?" to player + stop + argument 2 is "alias" or "a": + argument 3 is not set: + send "&4What will they type on the sign?" to player + stop + argument 4 is not set: + send "&4What will show on the sign for &7%argument 3%&4?" to player + stop + set {_char.test} to the length of argument 3 + {_char.test} is greater than 15: + message "&4You must limit your aliases to 15 characters!" + stop + set {_char.test} to the length of argument 4 + {_char.test} is greater than 15: + message "&4You must limit your aliases to 15 characters!" + stop + set {_char.test} to argument 4 + {_char.test} contains " ": + message "&cDo Not Use Spaces for Argument 4, use underscores." + stop + {item.alias::%argument 3%} exists: + set {_alias} to {item.alias::%argument 3%} + message "&4The alias of &7%argument 3%&4 already exists for &7%{_alias}%&4, you must remove the current alias first!" + stop + set {item.alias::%argument 3%} to argument 4 + message "&4The alias of &7%argument 3%&4 has been set for &7%argument 4%" + argument 2 is "real" or "r": + argument 3 is not set: + send "&4What will the sign say?" to player + stop + argument 4 is not set: + send "&4What is the real item for &7%argument 3%&4?" to player + stop + set {_char.test} to the length of argument 3 + {_char.test} is greater than 15: + message "&4You must limit your aliases to 15 characters!" + stop + set {_char.test} to argument 3 + {_char.test} contains " ": + message "&cDo Not Use Spaces for Argument 3, use underscores." + stop + {item.real::%argument 3%} exists: + set {_alias} to {item.real::%argument 3%} + message "&4The alias of &7%argument 3%&4 already exists for &7%{_alias}%&4, you must remove the current alias first!" + stop + set {item.real::%argument 3%} to argument 4 + message "&4The real item of &7%argument 3%&4 has been set for &7%argument 4%" + argument 1 is "remove" or "r": + argument 2 is not set: + send "&4Remove alias (a) or real (r)?" to player + stop + argument 2 is "alias" or "a": + argument 3 is not set: + message "&4Remove what?" + stop + {item.alias::%argument 3%} exists: + delete {item.alias::%argument 3%} + message "&4The alias of &7%argument 3%&4 has been removed!" + stop + message "&4The alias of &7%argument 3%&4 does not exist, please use &7/itemalias list&4!" + stop + argument 2 is "real" or "r": + argument 3 is not set: + message "&4Remove what?" + stop + {item.real::%argument 3%} exists: + delete {item.real::%argument 3%} + message "&4The real listing of &7%argument 3%&4 has been removed!" + stop + message "&4The real listing of &7%argument 3%&4 does not exist, please use &7/itemalias list&4!" + stop + +on sign change: + set {_line1} to line 1 + {_line1} contains "b" and ":": +# message "Could be a shop.." + set {_line3} to line 3 + {_line3} contains "p" and ":": +# message "Yeah, it's a shop" + replace all "b","u","y",":" and " " with "" in {_line1} +# message "%{_line1}%" + set {_buyline} to {_line1} parsed as an integer +# message "%{_buyline}%" + {_buyline} is not set: + message "&cYou must enter a number on the &aFirst&c line of the sign!" + set line 1 to "No Number" + set line 2 to "" + set line 3 to "" + set line 4 to "" + stop + {_buyline} is less than 1: + message "&cYou must enter a positive number on the &aFirst&c line of the sign!" + set line 1 to "Less than 1" + set line 2 to "" + set line 3 to "" + set line 4 to "" + stop + set line 1 to "&1Buy : %{_buyline}%" + set {_buy.backup} to line 2 + set {_buyitem} to line 2 parsed as an item +# message "%{_buyitem}%" + {_buyitem} is not set: + {item.real::%{_buy.backup}%} does not exist: + {item.alias::%{_buy.backup}%} does not exist: + message "&a%{_buy.backup}%&c is not a recognised item, try using an item ID" + set line 1 to "" + set line 2 to "Use /shopwhat" + set line 3 to "" + set line 4 to "" + stop + set {_buyitem} to {item.alias::%{_buyitem}%} + set {_buyitem} to {_buy.backup} + set line 2 to "%{_buyitem}%" + replace all "p","a","y",":" and " " with "" in {_line3} +# message "%{_line3}%" + set {_payline} to {_line3} parsed as an integer +# message "%{_payline}%" + {_payline} is not set: + message "&cYou must enter a number on the &aThird&c line of the sign!" + set line 1 to "" + set line 2 to "" + set line 3 to "No Number" + set line 4 to "" + stop + {_payline} is less than 1: + message "&cYou may not enter a negative number on the &aThird&c line of the sign!" + set line 1 to "" + set line 2 to "" + set line 3 to "Less than 1" + set line 4 to "" + stop + set line 3 to "&4Pay : %{_payline}%" + set {_pay.backup} to line 4 + set {_payitem} to line 4 parsed as an item +# message "%{_payitem}%" + {_payitem} is not set: + {item.real::%{_pay.backup}%} does not exist: + {item.alias::%{_pay.backup}%} does not exist: + message "&a%{_pay.backup}%&c is not a recognised item, try using an item ID" + set line 1 to "" + set line 2 to "" + set line 3 to "" + set line 4 to "Use /shopwhat" + stop + set {_payitem} to {item.alias::%{_pay.backup}%} + set {_payitem} to {_pay.backup} + set line 4 to "%{_payitem}%" + set {shop.list::%location of block%} to player + message "&7Shop of %{shop.list::%location of block%}% set at %location of block%" + stop + message "line 3 fails shop check" + stop + message "line 1 fails shop check" + stop + +on break of a sign: + set {_loc} to location of event-block + {shop.list::%{_loc}%} exists: + message "&cShop of %{shop.list::%location of event-block%}% set at %{_loc}% has been destroyed" + delete {shop.list::%{_loc}%} + +on break: + block is sign: + stop + loop blocks in radius 1: + set {_loc} to location of loop-block + {shop.list::%{_loc}%} exists: + cancel event + message "&cThere is a Player Shop near by. Remove it before destroying this block." + stop + +command /loopshop: + trigger: + loop {shop.list::*}: + message "%loop-index% - %loop-value%" + +command /shopsbegone: + trigger: + delete {shop.list::*} + +on right click on a sign: + set {_shop.check} to location of block + {shop.list::%{_shop.check}%} exists: + cancel event + block above event-block is not chest or trapped chest: + message "&cMissing Buy chest above sign!" + stop + block below event-block is not chest or trapped chest: + message "&cMissing Sell chest below sign!" + stop + {fronts.fbs.confirm.%player%.%{_shop.check}%} is true: + set {_line1} to line 1 + replace all "b","u","y",":","[","]","&0","&1" and " " with "" in {_line1} + set {_buyline} to {_line1} parsed as an integer + set {_buyitem} to line 2 parsed as an item + {_buyitem} is not set: + set {_buyitem} to {item.real::%{_buyitem}%} parsed as an item + set {_line3} to line 3 + replace all "p","a","y",":","[","]","&0","&4" and " " with "" in {_line3} + set {_payline} to {_line3} parsed as an integer + set {_payitem} to line 4 parsed as an item + {_payitem} is not set: + set {_payitem} to {item.real::%{_payitem}%} parsed as an item + block above event-block has {_buyline} of {_buyitem}: + player doesn't have space for {_buyline} of {_buyitem}: + message "&cYou do not have enough room for this purchase." + stop + block below event-block doesn't have space for {_payline} of {_payitem}: + message "&cSeller is out of space for your items." + stop + player has {_payline} of {_payitem}: + remove {_payline} of {_payitem} from player + give {_payline} of {_payitem} to block below event-block + remove {_buyline} of {_buyitem} from block above event-block + give {_buyline} of {_buyitem} to player + message "&aYou have purchased &f%{_buyline}% &7%{_buyitem}% &afor &f%{_payline}% &7%{_payitem}%&a." + delete {fronts.fbs.confirm.%player%.%{_shop.check}%} + stop + message "&cYou do not have enough items to pay." + stop + message "&cSeller does not have enough to trade." + stop + set {_line1} to line 1 + replace all "b","u","y",":","[","]","&0","&1" and " " with "" in {_line1} + set {_buyline} to {_line1} parsed as an integer + set {_buyitem} to line 2 parsed as an item + {_buyitem} is not set: + set {_buyitem} to {item.real::%{_buyitem}%} parsed as an item + set {_line3} to line 3 + replace all "p","a","y",":","[","]","&0","&4" and " " with "" in {_line3} + set {_payline} to {_line3} parsed as an integer + set {_payitem} to line 4 parsed as an item + {_payitem} is not set: + set {_payitem} to {item.real::%{_payitem}%} parsed as an item +# message "%{_buyline}%" +# message "%{_buyitem}%" +# message "%{_payline}%" +# message "%{_payitem}%" + block above event-block has {_buyline} of {_buyitem}: + player doesn't have space for {_buyline} of {_buyitem}: + message "&cYou do not have enough room for this purchase." + stop + block below event-block doesn't have space for {_payline} of {_payitem}: + message "&cSeller is out of space for your items." + stop + player has {_payline} of {_payitem}: + set {fronts.fbs.confirm.%player%.%{_shop.check}%} to true + message " " + message "&4&lNOTE: &c&lEnchanted Items are broken! Please click" + message " &c&land read the following link BEFORE making this purchase!" + message " " + message "&3&l http://obam.co/barterwarning" + message " " + message "&aPlease click sign again to confirm purchase." + wait 5 seconds + delete {fronts.fbs.confirm.%player%.%{_shop.check}%} + stop + message "&cYou do not have enough items to pay." + stop + message "&cSeller does not have enough to trade." + stop + +# current progress stops here + # next - work on right click of a sign + # then on sign break, cancel if shop sign + # possible character lookup for aliases (check first letter for symbol) + +# {item.alias::%{_lookup}%} is set: +# set line 2 of block to {item.alias::%{_lookup}%} +# stop +# loop {item.alias::*}: +# {item.alias::%loop-index%::%{_lookup}%} is set: +# set line 2 of block to {item.alias::%loop-index%} +# stop + +# cancel event +# send "&e%{_lookup}% &c is not a recognized item!" to player +# set line 1 to "&9Buy : %{_buyline}%" +# set line 3 to "&cPay : %{_payline}%" + +# set {_number} to 0 +# while block at location of {_chestshop.location} can hold {_number} of wooden sword: +# add 1 to {_number} +# message "Block has %{_number}% of spaces left!" \ No newline at end of file diff --git a/Obam-Survival/bounty.sk b/OBAM-Survival Games/Obam-Fronts/Fronts-Testing/bounty.sk similarity index 100% rename from Obam-Survival/bounty.sk rename to OBAM-Survival Games/Obam-Fronts/Fronts-Testing/bounty.sk diff --git a/OBAM-Survival Games/Obam-Fronts/Fronts-Testing/landclaim.notes.sk b/OBAM-Survival Games/Obam-Fronts/Fronts-Testing/landclaim.notes.sk new file mode 100644 index 0000000..fc5f339 --- /dev/null +++ b/OBAM-Survival Games/Obam-Fronts/Fronts-Testing/landclaim.notes.sk @@ -0,0 +1,38 @@ +{alert.fronts.%loop-player%} If you want to here alerts +{alert.notify.owner.%loop-player%} Current qued owner message +{availableland.%player%} Total slots owned +{bed.%player%.wild} Location of your bed +{bed.owner.%event-block%} who ownes the bed +{bypassland.%player%} lets you bypass protections +{chunk.%{_chunk}%} No point, missing .live +{chunk.%{_chunk}%.%{_player}%} No point, missing .live +{chunks.claim.count.%player%} Running total of slots claimed ever, used to help name +{chunk.live.%chunk at location of player%} Owner of the chunk +{chunk.live.%chunk at location of player%.%player%} Allowed players to bypass protection +{chunk.name.%chunk at location of player%} The name of the chunk +{claimedland.%player%} Total slots used +{first.claim.%player%} Toggle for free Slot +{home.%player%.wild} location for /home +{land.%{_chunk}%::*} No point, missing .live +{land.live.%chunk at location of player%::*} list of all people that have been added (add is now gone) +{land.unclaim.%loop-player%} Line 58 & 68 is unneeded? +{loc.chunks.%player%::*} Stores spawn location in each chunk +{name.list.%player%::*} Only used line 18 (clear) and 255 (set) +{owned.chunks.%player%::*} list of currently owned chunks +{played.%player%} Have they ever played +{reset.%player%.betamove} initial flag setup 1 +{reset.%player%.betamove2} initial flag setup 2 +{reset.%player%.betamove3} initial flag setup 3 +{reset.%player%.betamove4} initial flag setup 4 +{town.spawn} location of town spawn + + +lines 264 - 270 review - unneeded + + + + + + + + \ No newline at end of file diff --git a/OBAM-Survival Games/Obam-Fronts/Fronts-Testing/landclaim.revamp.sk.sk b/OBAM-Survival Games/Obam-Fronts/Fronts-Testing/landclaim.revamp.sk.sk new file mode 100644 index 0000000..9efe27a --- /dev/null +++ b/OBAM-Survival Games/Obam-Fronts/Fronts-Testing/landclaim.revamp.sk.sk @@ -0,0 +1,833 @@ + +variables: + {claimedland.%player%} = 0 + {availableland.live.%player%} = 1 + {alert.fronts.%player%} = true + +on join: + {db_prizecheck.%player%} is set: + add {db_prizecheck.%player%} to {availableland.%player%} + send "&aYou have had &e%{db_prizecheck.%player%}%&a added to your Fronts balance!" to player + clear {db_prizecheck.%player%} + if {played.%player%} is not set: + set {played.%player%} to true + {reset.%player%.betamove} is not set: + set {claimedland.%player%} to 0 + clear {owned.chunks.%player%::*} + clear {name.list.%player%::*} + clear {loc.chunks.%player%::*} + set {reset.%player%.betamove} to true + {reset.%player%.betamove2} is not set: + set {availableland.%player%} to 1 + set {reset.%player%.betamove2} to true + {reset.%player%.betamove3} is not set: + clear {home.%player%.wild} + size of {loc.chunks.%player%::*} is greater than 0: + loop {loc.chunks.%player%::*}: + set {_loc} to {loc.chunks.%player%::%loop-index%} + set {_chunk} to chunk at location of {_loc} + set {_chunk.name} to {chunk.name.%{_chunk}%} + set {home.%player%.wild} to {_loc} + send "&aYour home location has been moved to &e%{_chunk.name}%" to player + set {reset.%player%.betamove3} to true + stop + set {reset.%player%.betamove3} to true + {reset.%player%.betamove4} is not set: + clear {bed.%player%.wild} + set {reset.%player%.betamove4} to true + +every 1 tick: + loop all players: + {chunk.live.%chunk at location of loop-player%} is not set: + {alert.notify.owner.%loop-player%} is not "Unclaimed": + {alert.fronts.%loop-player%} is true + send "&a&lUnclaimed Front" to loop-player + set {alert.notify.owner.%loop-player%} to "Unclaimed" + {alert.notify.owner.%loop-player%} is not {chunk.live.%chunk at location of loop-player%}: + {chunk.live.%chunk at location of loop-player%} is not set: + {alert.notify.owner.%loop-player%} is not "Unclaimed": + {alert.fronts.%loop-player%} is true + send "&a&lUnclaimed Front" to loop-player + set {alert.notify.owner.%loop-player%} to "Unclaimed" + set {land.unclaim.%loop-player%} to true + {chunk.live.%chunk at location of loop-player%} is set: + {alert.fronts.%loop-player%} is true + send "&a&lFront Claimed by: &e%{chunk.live.%chunk at location of loop-player%} %" to loop-player + set {alert.notify.owner.%loop-player%} to {chunk.live.%chunk at location of loop-player%} + {alert.notify.owner.%loop-player%} is not set: + {chunk.live.%chunk at location of loop-player%} is not set: + {alert.fronts.%loop-player%} is true + send "&a&lUnclaimed Front" to loop-player + set {alert.notify.owner.%loop-player%} to "Unclaimed" + set {land.unclaim.%loop-player%} to true + +#startfold +command /front [] [] [] []: + permission: obam.free + description: For all land related commands + usage: &c/front (claim, unclaim, list, remove, name) + aliases: /f + trigger: + argument 1 is not set: + message "&3-[&a&lFronts Claimed&3]-" + message "&6 %{claimedland.%player%}%" + send "&3-[&a&lPurchased Slots&3]-" to player + send "&6 %{availableland.%player%}%" + send "&3-[&a&lAvailible Slots&3]-" to player + send "&6 %{availableland.%player%} - {claimedland.%player%}%" to player + stop + #subfold @help + argument 1 is "help" or "h": + message "&3--[&6&lFronts Help&3]--" + message "&cRequired = [] Optional = ()" + message "&a * /front or f" + message "&7 Shows your land claiming statistics" + message "&a * /front:f [Info:i/Stats:s]" + message "&7 Shows information about the land you are standing in" + message "&a * /front:f [Claim:c/Unclaim:u]" + message "&7 Claim/Unclaim the land you are standing at" + message "&a * /front:f [Add:a/Remove:r]" + message "&7 Add/Remove player from the land you are standing at" + if player has permission "land.bypass": + message "&a * /land bypass" + message "&7 Bypass all claimed land" + stop + #subfold @stats + argument 1 is "stats" or "info" or "s" or "i": + if {chunk.live.%chunk at location of player%} is set: + {chunk.live.%chunk at location of player%} is not "Town": + message "&3--[&lFront Owner&3]--" + message "&a * %{chunk.live.%chunk at location of player%} %" + message "&3--[&lFront Members&3]--" + message "&a * %{land.live.%chunk at location of player%::*}%" + send "&3---[&lFront Name&3]--" + {chunk.name.%chunk at location of player%} is not set: + send "&a * Name not set" + stop + send "&a * %{chunk.name.%chunk at location of player%}%" + stop + message "&6This area is not currently owned by a player." + stop + #subfold @error + argument 1 is "error": + if player has permission "land.bypass": + message "&cIncorrect usage. Try '/front [claim, unclaim, list, remove, bypass, name] (player)'" + else: + message "&cIncorrect usage. Try '/front [claim, unclaim, list, remove, name] (player)'" + message "&7 ()'s = Optional, []'s = Required." + stop + #subfold @claim + argument 1 is "claim" or "c": + if {chunk.live.%chunk at location of player%} is set: + message "&cThis land has already been claimed." + stop + loop blocks in radius 50 of player: + if player cannot build at the loop-block: + message "&cYou can not claim land in this area." + stop + {claimedland.%player%} is greater than or equal to {availableland.%player%}: + send "&cYou do not have enough Availiable land for this action! Please purchase more with /shop!" to player + stop + {first.claim.%player%} is set: + {first.claim.%player%} is true: + set {_bal} to player's balance + {_bal} is less than 2000: + send "&cYou do not have enough tickets to do this!" to player + stop + {chunks.claim.count.%player%} is not set: + set {chunks.claim.count.%player%} to 0 + add 1 to {chunks.claim.count.%player%} + add name of player to {land.live.%chunk at location of player%::*} + set {chunk.live.%chunk at location of player%} to name of player + set {chunk.live.%chunk at location of player%.%player%} to true + add chunk at location of player to {owned.chunks.%player%::*} + set {chunk.name.%chunk at location of player%} to "%{chunks.claim.count.%player%}%" + set {loc.chunks.%player%::%chunk at location of player%} to location of player + message "&6You now own this Front." + {claimedland.%player%} is 0: + set {home.%player%.wild} to location of player + add 1 to {claimedland.%player%} + {first.claim.%player%} is set: + {first.claim.%player%} is true: + remove 2000 from player's balance + send "&aYou have used &e2000 Tickets&a to claim this Front" to player + send "&aYou have &e%player's balance%&a remaining" to player + stop + send "&aThis was your first land claim. It was free. The next one will cost &e2000 Tickets!" to player + set {first.claim.%player%} to true + stop + #subfold @unclaim + argument 1 is "unclaim" or "u": + if {chunk.live.%chunk at location of player%} is not set: + message "&cThis land has not been claimed." + stop + if {chunk.live.%chunk at location of player%} is not name of player: + message "&cYou do not own this land." + stop + remove 1 from {claimedland.%player%} + loop {land.live.%chunk at location of player%::*}: + set {_player} to {land.live.%chunk at location of player%::%loop-index%} + clear {chunk.live.%chunk at location of player%.%{_player}%} + set {_chunk} to chunk at location of player + chunk at location of {home.%player%.wild} is chunk at location of player: + clear {home.%player%.wild} + send "&cYour home location has been cleared!" to player + clear {land.live.%chunk at location of player%::*} + clear {chunk.live.%chunk at location of player%} + clear {chunk.name.%chunk at location of player%} + delete {loc.chunks.%player%::%chunk at location of player%} + loop {flags.%chunk at location of player%::*}: + loop {flags.%chunk at location of player%::%loop-index%::*}: + delete {flags.%chunk at location of player%::%loop-index-1%::%loop-index-2%} + delete {flags.%chunk at location of player%::%loop-index%} + loop {owned.chunks.%player%::*}: + chunk at location of player is {owned.chunks.%player%::%loop-index%} + delete {owned.chunks.%player%::%loop-index%} + message "&6You have unclaimed this Front." + stop + #subfold @remove + argument 1 is "remove" or "r": + if argument 2 is not set: + make player execute command "land error" + stop + if {chunk.live.%chunk at location of player%} is not set: + message "&cThis land has not been claimed." + stop + if {chunk.live.%chunk at location of player%} is not player: + message "&cYou do not own this land." + stop + if {played.%argument 2%} is not set: + message "&cThis player does not exist." + stop + if {chunk.live.%chunk at location of player%} is argument 2: + message "&cYou can not remove yourself from your own land." + stop + loop {land.live.%chunk at location of player%::*}: + if loop-value is argument 2: + clear {chunk.live.%chunk at location of player%.%argument 2%} + delete {land.live.%chunk at location of player%::%loop-index%} + exit loop + clear {chunk.live.%chunk at location of player%.%argument 2%} + message "&6%argument 2% can not build in this land anymore." + stop + #subfold @bypass + argument 1 is "bypass": + player has permission "land.bypass": + if {bypassland.%player%} is true: + clear {bypassland.%player%} + message "&6You have finished bypassing claimed land." + stop + set {bypassland.%player%} to true + message "&6You can now bypass claimed land." + stop + message "&cYou do not have permission to use this command." + stop + #subfold @name + argument 1 is "name" or "n": + if {chunk.live.%chunk at location of player%} is not set: + message "&cThis land has not been claimed." + stop + if {chunk.live.%chunk at location of player%} is not name of player: + {flags.%chunk at location of player%::admin::everyone} is not set: + set {flags.%chunk at location of player%::admin::everyone} to false + {flags.%chunk at location of player%::admin::%player%} is not set: + set {flags.%chunk at location of player%::admin::%player%} to false + {flags.%chunk at location of player%::admin::everyone} is false: + {flags.%chunk at location of player%::admin::%player%} is false: + send "&cYou do not have permission to do this!" + stop + argument 2 is "set": + send "&cThat is an invalid name!" to player + stop + argument 2 is not set: + send "&cPlease choose a name!" to player + stop + set {_test} to the length of argument 2 + {_test} is greater than 15: + message "&cPlease limit your Front name to 15 characters." + stop + message "&aYou have named this Front to &e%argument 2%" + set {chunk.name.%chunk at location of player%} to "%argument 2%" + add {chunk.name.%chunk at location of player%} to {name.list.%player%::*} + set {loc.chunks.%player%::%chunk at location of player%} to location of player + stop + #subfold @list + argument 1 is "list" or "l": + argument 3 is "mod": + player has permission "obam.smod": + set {_bypass} to true + argument 2 is not set: + set {_who} to player + set {_page} to argument 2 parsed as an integer + {_page} is set: + set {_who} to player + {_who} is not set: + set {_who} to argument 2 + set {_index.count} to 0 + set {_count} to 0 + loop {loc.chunks.%{_who}%::*}: + set {_loc} to loop-value + set {_chunk} to chunk at location of {_loc} + {_bypass} is true: + add 1 to {_index.count} + {_bypass} is not set: + {chunk.live.%{_chunk}%.%player%} is true: + add 1 to {_index.count} + set {_tpages} to round up ({_index.count} / 10) + {_page} is not set: + set {_page} to argument 3 parsed as an integer + {_page} is not set: + set {_page} to argument 4 + {_page} is not set: + set {_page} to 1 + {_tpages} is 0: + message "&7%{_who}% &chas not added you to any of their Fronts." + stop + {_page} is greater than {_tpages}: + message "&cNot a valid page. There are currently &f%{_tpages}%&c available." + stop + set {_stop} to {_page} * 10 + set {_start} to {_stop} - 9 + set {_a.space} to " " + set {_t.space} to " " + set {_header.count} to length of "%{_who}%" + set {_header.space} to 19 - {_header.count} + set {_header.space} to rounded up (1.2 * {_header.space}) + {_header.space} is greater than 0: + loop {_header.space} times: + set {_t.space} to "%{_t.space}%%{_a.space}%" + #51 characters + message "&3Available Fronts for &f%{_who}%%{_t.space}%&3(&fPage %{_page}%/%{_tpages}%&3)" + message "&3[ &a Wild &cNether &dEnd &3]" + message "&6Name Chunk Coords World Coords" + loop {loc.chunks.%{_who}%::*}: + set {_loc} to loop-value + set {_chunk} to chunk at location of {_loc} + {_bypass} is true: + set {_report} to true + {chunk.live.%{_chunk}%.%player%} is true: + set {_report} to true + {_report} is true: + add 1 to {_count} + {_count} is {_start}: + set {_report} to true + {_report} is true: + set {_chunk.name} to {chunk.name.%{_chunk}%} + {_chunk.name} is not set: + set {_chunk.name} to "&cNot Named" + set {_a.space1} to " " + set {_t.space1} to " " + set {_header.count1} to length of "%{_chunk.name}%" + set {_header.space1} to 15 - {_header.count1} + set {_header.space1} to rounded up (1.2 * {_header.space1}) + {_header.space1} is greater than 0: + loop {_header.space1} times: + set {_t.space1} to "%{_t.space1}%%{_a.space1}%" + set {_world.type} to loop-index parsed as text + {_world.type} contains "world": + set {_color} to "&a" + {_world.type} contains "end": + set {_color} to "&d" + {_world.type} contains "nether": + set {_color} to "&c" + replace all "world","nether","end","the","_",":" and " " with "" in {_world.type} + set {_chunk::*} to {_world.type} split at "," + set {_coords::x} to {_chunk::1} parsed as an integer * 16 + set {_coords::y} to {_chunk::2} parsed as an integer * 16 + set {_a.space2} to " " + set {_t.space2} to " " + set {_header.count2} to length of "%{_coords::*}%" + set {_header.space2} to 19 - {_header.count2} + set {_header.space2} to rounded up (1.5 * {_header.space2}) + {_header.space2} is greater than 0: + loop {_header.space2} times: + set {_t.space2} to "%{_t.space2}%%{_a.space2}%" + set {_a.space3} to " " + set {_t.space3} to " " + set {_header.count3} to length of "%{_chunk::*}%" + set {_header.space3} to 20 - {_header.count3} + set {_header.space3} to rounded up (1.5 * {_header.space3}) + {_header.space3} is greater than 0: + loop {_header.space3} times: + set {_t.space3} to "%{_t.space3}%%{_a.space3}%" + message "%{_color}%%{_chunk.name}%%{_t.space1}%x&f%{_chunk::1}% %{_color}%z&f%{_chunk::2}%%{_t.space3}%%{_color}%x&f%{_coords::x}% %{_color}%z&f%{_coords::y}%" + set {_report} to false + {_count} is {_index.count}: + message "&3End of List" + stop + {_count} is {_stop}: + stop + + #subfold @travel + argument 1 is "travel" or "t": + argument 3 is not set: + argument 2 is "set": + if {chunk.live.%chunk at location of player%} is not set: + message "&cThis land has not been claimed." + stop + if {chunk.live.%chunk at location of player%} is not name of player: + message "&cThis is not your land!" + stop + set {loc.chunks.%player%::%chunk at location of player%} to location of player + send "&aYour travel location for this area, has been moved" to player + stop + if {chunk.live.%chunk at location of player%} is not set: + message "&cYou can only do this in &eTown&c, or on your land!" + stop + if {chunk.live.%chunk at location of player%} is not name of player: + {chunk.live.%chunk at location of player%} is not "Town": + {chunk.live.%chunk at location of player%.%player%} is not set: + {flags.%chunk at location of player%::teleport::everyone} is not set: + set {flags.%chunk at location of player%::teleport::everyone} to false + {flags.%chunk at location of player%::teleport::everyone} is false: + {flags.%chunk at location of player%::teleport::%player%} is not set: + set {flags.%chunk at location of player%::teleport::%player%} to false + {flags.%chunk at location of player%::teleport::%player%} is false: + message "&cYou can only do this in &eTown&c, or on your land!" + stop + loop {loc.chunks.%player%::*}: + set {_loc} to loop-value + set {_chunk} to chunk at location of {_loc} + set {_chunk.name} to {chunk.name.%{_chunk}%} + {_chunk.name} is argument 2: + send "&aTeleporting to &e%argument 2%" to player + teleport player to {_loc} + stop + send "&cYou do not have a Front named &e%argument 2%" + stop + argument 3 is set: + if {chunk.live.%chunk at location of player%} is not set: + message "&cYou can only do this in &eTown&c, or on your land!" + stop + if {chunk.live.%chunk at location of player%} is not name of player: + {chunk.live.%chunk at location of player%} is not "Town": + {chunk.live.%chunk at location of player%.%player%} is not set: + {flags.%chunk at location of player%::teleport::everyone} is not set: + set {flags.%chunk at location of player%::teleport::everyone} to false + {flags.%chunk at location of player%::teleport::everyone} is false: + {flags.%chunk at location of player%::teleport::%player%} is not set: + set {flags.%chunk at location of player%::teleport::%player%} to false + {flags.%chunk at location of player%::teleport::%player%} is false: + message "&cYou can only do this in &eTown&c, or on your land!" + stop + loop {loc.chunks.%argument 3%::*}: + set {_loc} to loop-value + set {_chunk} to chunk at location of {_loc} + set {_chunk.name} to {chunk.name.%{_chunk}%} + {_chunk.name} is argument 2: + {chunk.live.%{_chunk}%.%player%} is not set: + {flags.%{_chunk}%::teleport::everyone} is not set: + set {flags.%{_chunk}%::teleport::everyone} to false + {flags.%{_chunk}%::teleport::%player%} is not set: + set {flags.%{_chunk}%::teleport::%player%} to false + {flags.%{_chunk}%::teleport::everyone} is false: + {flags.%{_chunk}%::teleport::%player%} is false + send "&cYou do not have permission to go here!" to player + stop + send "&aTeleporting to &e%argument 2%" to player + teleport player to {_loc} + stop + send "&c%argument 3% does not have a Front named &e%argument 2%" + stop + argument 1 is "alert": + {alert.fronts.%player%} is not set: + send "&aFront alerts are now &eoff" + set {alert.fronts.%player%} to false + stop + {alert.fronts.%player%} is false: + send "&aFront alerts are now &eon" + set {alert.fronts.%player%} to true + stop + {alert.fronts.%player%} is true: + send "&aFront alerts are now &eoff" + set {alert.fronts.%player%} to false + stop + else: + make player execute command "f error" + stop +#endfold +on quit: + if {bypassland.%player%} is true: + clear {bypassland.%player%} + +on place: + block is not tnt + block is not water + block is not lava + if {bypassland.%player%} is true: + stop + if {chunk.live.%chunk at location of block%} is set: + if {chunk.live.%chunk at location of block%.%player%} is true: + stop + {flags.%chunk at location of block%::build::everyone} is true: + stop + {flags.%chunk at location of block%::build::%player%} is true: + stop + message "&cThis land is owned by %{chunk.live.%chunk at location of block%}%." + cancel event + +on break: + block is not water or lava or milk + if {bypassland.%player%} is true: + stop + if {chunk.live.%chunk at location of block%} is set: + if {chunk.live.%chunk at location of block%.%player%} is true: + stop + {flags.%chunk at location of block%::build::everyone} is true: + event-block is a chest or a furnace or a dispenser or a hopper or a brewing stand or a dropper or a trapped chest or a beacon: + {flags.%chunk at location of block%::container::everyone} is true: + stop + {flags.%chunk at location of block%::container::%player%} is true: + stop + event-block is a door or a anvil or a lever or a button or a wood button or a jukebox or a trapdoor or a fence gate or a enchantment table or a redstone comparator or a repeater: + {flags.%chunk at location of block%::use::everyone} is true: + stop + {flags.%chunk at location of block%::use::%player%} is true: + stop + else: + stop + {flags.%chunk at location of block%::build::%player%} is true: + event-block is a chest or a furnace or a dispenser or a hopper or a brewing stand or a dropper or a trapped chest or a beacon: + {flags.%chunk at location of block%::container::everyone} is true: + stop + {flags.%chunk at location of block%::container::player} is true: + stop + event-block is a door or a anvil or a lever or a button or a wood button or a jukebox or a trapdoor or a fence gate or a enchantment table or a redstone comparator or a repeater: + {flags.%chunk at location of block%::use::everyone} is true: + stop + {flags.%chunk at location of block%::use::%player%} is true: + stop + else: + stop + message "&cThis land is owned by %{chunk.live.%chunk at location of block%}%." + cancel event + +on place of tnt: + if {bypassland.%player%} is true: + stop + loop blocks in radius 10 of block: + if {chunk.live.%chunk at location of loop-block%} is set: + if {chunk.live.%chunk at location of loop-block%.%player%} is true: + exit loop + else: + cancel event + message "&cYou can not use explosives here." + stop + +on explode: + entity is creeper + loop blocks in radius 10 of entity: + if {chunk.live.%chunk at location of loop-block%} is set: + cancel event + set {_safe} to true + {_safe} is set: + create safe explosion of force 3 at event-location +on damage of a entity: + victim is a chicken or a cow or a mooshroom or a horse or a sheep or a pig or a wolf or a ocelot or a villager or a squid + attacker is a player + victim is a cow: + attacker's tool is a empty bucket + stop + loop blocks in radius 3 of victim: + {bypassland.%attacker%} is true: + stop + if {chunk.live.%chunk at location of loop-block%} is not attacker: + {chunk.live.%chunk at location of loop-block%.%attacker%} is set: + stop + {flags.%chunk at location of loop-block%::entity::everyone} is not set: + set {flags.%chunk at location of loop-block%::entity::everyone} to false + {flags.%chunk at location of loop-block%::entity::%attacker%} is not set: + set {flags.%chunk at location of loop-block%::entity::%attacker%} to false + {flags.%chunk at location of loop-block%::entity::everyone} is false: + {flags.%chunk at location of loop-block%::entity::%attacker%} is true: + stop + {flags.%chunk at location of loop-block%::entity::everyone} is true: + stop + send "&cThis area is protected!" to attacker + cancel event + +on right click on lead: + {bypassland.%player%} is true: + stop + if {chunk.live.%chunk at location of event-player%} is set: + {chunk.live.%chunk at location of event-player%} is not event-player: + {chunk.live.%chunk at location of event-player%.%event-player%} is set: + stop + send "&cThis area is protected!" to event-player + cancel event + stop trigger + +on left click on fence: + {bypassland.%player%} is true: + stop + if {chunk.live.%chunk at location of event-player%} is set: + {chunk.live.%chunk at location of event-player%} is not event-player: + {chunk.live.%chunk at location of event-player%.%event-player%} is set: + stop + send "&cThis area is protected!" to event-player + cancel event + stop trigger + +on right click on horse: + {bypassland.%player%} is true: + stop + if {chunk.live.%chunk at location of event-player%} is set: + {chunk.live.%chunk at location of event-player%} is not event-player: + {chunk.live.%chunk at location of event-player%.%event-player%} is set: + stop + send "&cThis area is protected!" to event-player + cancel event + stop trigger + +on damage of a player: + attacker is a player + loop blocks in radius 10 of victim: + if {chunk.live.%chunk at location of loop-block%} is set: + send "&cThis area is protected!" to attacker + cancel event + stop trigger + +command /townset: + permission: obam.admin + trigger: + set {town.spawn} to location of player + +command /town: + permission: obam.free + trigger: + {chunk.live.%chunk at location of player%} is not player: + {chunk.live.%chunk at location of player%} is not "Town": + send "&cYou can only do this in Town, or on your own land!" to player + if {chunk.live.%chunk at location of player%} is not set: + message "&cYou must do this on your land!" + stop + teleport player to {town.spawn} + +on sign change: + world is "wildtest": + line 1 of block is "warp" or "[warp]": + {chunk.live.%chunk at location of player%} is name of player: + line 2 of block is "town": + set line 1 of block to "[WARP]" + set line 2 of block to "TOWN" + stop + loop {owned.chunks.%player%::*}: + set {_chunk} to {owned.chunks.%player%::%loop-index%} + {chunk.name.%{_chunk}%} is line 2 of block + send "&cYou can not do that here!" to player + cancel event + +on right click on sign: + world is "wildtest": + line 1 of block is "[WARP]" + line 2 of block is "TOWN": + {chunk.live.%chunk at location of player%.%player%} is true: + teleport player to {town.spawn} + stop + send "&cYou can not do this here!" to player + +command /clearland []: + permission: obam.admin + trigger: + argument is not set: + send "&cYou must enter a name." + argument is set: + set {_who} to argument 1 + send "&cPreparing to delete &e%size of {owned.chunks.%{_who}%::*}% &cchunks...." to player + wait 0.5 seconds + loop {owned.chunks.%{_who}%::*}: + set {_chunk} to {owned.chunks.%{_who}%::%loop-index-1%} + send "&cClearing chunk &e%loop-index-1%" to player + wait 0.5 seconds + loop {land.live.%{_chunk}%::*}: + set {_player} to {land.live.%{_chunk}%::%loop-index-2%} + clear {chunk.live.%{_chunk}%.%{_player}%} + clear {chunk.live.%{_chunk}%} + clear {chunk.name.%{_chunk}%} + send "&aChunk &e%loop-index-1% &acleared" to player + send "&cClearing Home spawn" to player + clear {home.%{_who}%.wild} + send "&cManginling variables" to player + set {claimedland.%{_who}%} to 0 + clear {owned.chunks.%{_who}%::*} + send "&aLand clear complete!" to player + stop + +command /travelmove: + permission: obam.free + trigger: + if {chunk.live.%chunk at location of player%} is not set: + message "&cThis land has not been claimed." + stop + if {chunk.live.%chunk at location of player%} is not name of player: + message "&cThis is not your land!" + stop + set {loc.chunks.%player%::%chunk at location of player%} to location of player + send "&aYour travel location for this area, has been moved" to player + +command /sethome: + permission: obam.free + trigger: + if {chunk.live.%chunk at location of player%} is not set: + message "&cYou must do this on your land!" + stop + if {chunk.live.%chunk at location of player%} is not name of player: + message "&cYou must do this on your land!" + stop + set {home.%player%.wild} to location of player + send "&aYour home has been set!" to player + +on command "/home": + cancel event + {chunk.live.%chunk at location of player%} is not player: + {chunk.live.%chunk at location of player%} is not "Town": + {chunk.live.%chunk at location of player%.%player%} is not set + {flags.%chunk at location of player%::teleport::everyone} is not set: + set {flags.%chunk at location of player%::teleport::everyone} to false + {flags.%chunk at location of player%::teleport::%player%} is not set: + set {flags.%chunk at location of player%::teleport::%player%} to false + {flags.%chunk at location of player%::teleport::everyone} is false: + {flags.%chunk at location of player%::teleport::%player%} is false: + send "&cYou can only do this in Town, or on your own land!" to player + stop + if {chunk.live.%chunk at location of player%} is not set: + message "&cYou must do this on your land!" + stop + teleport player to {home.%player%.wild} + +on command "/mv spawn": + cancel event + {chunk.live.%chunk at location of player%} is not player: + {chunk.live.%chunk at location of player%} is not "Town": + {chunk.live.%chunk at location of player%.%player%} is not set: + send "&cYou can only do this in Town, or on your own land!" to player + stop + if {chunk.live.%chunk at location of player%} is not set: + message "&cYou must do this on your land!" + stop + teleport player to {home.%player%.wild} + +on command "/mvspawn": + cancel event + {chunk.live.%chunk at location of player%} is not player: + {chunk.live.%chunk at location of player%} is not "Town": + {chunk.live.%chunk at location of player%.%player%} is not set: + send "&cYou can only do this in Town, or on your own land!" to player + stop + if {chunk.live.%chunk at location of player%} is not set: + message "&cYou must do this on your land!" + stop + teleport player to {home.%player%.wild} + +on bed enter: + set {bed.%event-player%.wild} to true + set {bed.owner.%event-block%} to event-player + +on break of a bed: + {bed.owner.%event-block%} is set: + clear {bed.%{bed.owner.%event-block%}%.wild} + clear {bed.owner.%event-block%} + +on respawn: + wait 1 second + execute console command "effect %event-player% clear" + {home.%player%.wild} is set: + {bed.%event-player%.wild} is set: + wait 1 second + stop + wait 0.3 seconds + teleport player to {home.%player%.wild} + +command /townclaim: + permission: obam.admin + trigger: + set {chunk.live.%chunk at location of player%} to "Town" + +command /owner : + permission: obam.admin + trigger: + {chunks.claim.count.%argument%} is not set: + set {chunks.claim.count.%argument%} to 0 + add 1 to {chunks.claim.count.%argument%} + add argument to {land.live.%chunk at location of player%::*} + set {chunk.live.%chunk at location of player%} to argument + set {chunk.live.%chunk at location of player%.%argument%} to true + add chunk at location of player to {owned.chunks.%argument%::*} + set {chunk.name.%chunk at location of player%} to "%{chunks.claim.count.%argument%}%" + set {loc.chunks.%argument%::%chunk at location of player%} to location of player + message "&6%argument% now owns this Front." + send "&cPlease remember to adjust for tickets!" + +on command "/hub": + cancel event + send "&aUse &e/main &ato return to the hub server!" to player + +on command "/spawn": + {chunk.live.%chunk at location of player%} is not player: + {chunk.live.%chunk at location of player%} is not "Town": + {chunk.live.%chunk at location of player%.%player%} is not set: + send "&cYou can only do this in Town, or on your own land!" to player + cancel event + stop + if {chunk.live.%chunk at location of player%} is not set: + message "&cYou must do this on your land!" + cancel event + stop + +on bucket fill: + {chunk.live.%chunk at location of player%} is set: + {chunk.live.%chunk at location of player%} is not player + {chunk.live.%chunk at location of player%.%player%} is not set: + {flags.%chunk at location of player%::bucket::everyone} is not set: + set {flags.%chunk at location of player%::bucket::everyone} to false + {flags.%chunk at location of player%::bucket::%player%} is not set: + set {flags.%chunk at location of player%::bucket::%player%} to false + {flags.%chunk at location of player%::bucket::everyone} is false: + {flags.%chunk at location of player%::bucket::%player%} is true: + stop + {flags.%chunk at location of player%::bucket::everyone} is true: + stop + targeted block is water: + {flags.%chunk at location of player%::bucketwater::everyone} is true: + stop + {flags.%chunk at location of player%::bucketwater::%player%} is true: + stop + targeted block is lava: + {flags.%chunk at location of player%::bucketlava::everyone} is true: + stop + {flags.%chunk at location of player%::bucketlava::%player%} is true: + stop + send "&cYou do not have permission to do this!" + cancel event + +on bucket empty: + {chunk.live.%chunk at location of player%} is set: + {chunk.live.%chunk at location of player%} is not player + {chunk.live.%chunk at location of player%.%player%} is not set: + {flags.%chunk at location of player%::bucket::everyone} is not set: + set {flags.%chunk at location of player%::bucket::everyone} to false + {flags.%chunk at location of player%::bucket::%player%} is not set: + set {flags.%chunk at location of player%::bucket::%player%} to false + {flags.%chunk at location of player%::bucket::everyone} is false: + {flags.%chunk at location of player%::bucket::%player%} is true: + stop + {flags.%chunk at location of player%::bucket::everyone} is true: + stop + player's tool is water bucket: + {flags.%chunk at location of player%::bucketwater::everyone} is true: + stop + {flags.%chunk at location of player%::bucketwater::%player%} is true: + stop + player's tool is lava bucket: + {flags.%chunk at location of player%::bucketlava::everyone} is true: + stop + {flags.%chunk at location of player%::bucketlava::%player%} is true: + stop + send "&cYou do not have permission to do this!" + cancel event + +command /claimedset : + permission: obam.admin + trigger: + set {claimedland.%player-arg%} to argument 2 + send "&e%player-arg%&a claimed balance set to &e%argument 2%" \ No newline at end of file diff --git a/Obam-Testing/signshoptestthing.sk b/OBAM-Survival Games/Obam-Fronts/Fronts-Testing/signshoptestthing.sk similarity index 100% rename from Obam-Testing/signshoptestthing.sk rename to OBAM-Survival Games/Obam-Fronts/Fronts-Testing/signshoptestthing.sk diff --git a/Obam-Testing/teams.sk b/OBAM-Survival Games/Obam-Fronts/Fronts-Testing/teams.sk similarity index 100% rename from Obam-Testing/teams.sk rename to OBAM-Survival Games/Obam-Fronts/Fronts-Testing/teams.sk diff --git a/Obam-Survival/FIXIT.sk b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/FIXIT.g.sk similarity index 90% rename from Obam-Survival/FIXIT.sk rename to OBAM-Survival Games/Obam-Fronts/Tested and Moved/FIXIT.g.sk index 63b8e42..5be8a68 100644 --- a/Obam-Survival/FIXIT.sk +++ b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/FIXIT.g.sk @@ -6,20 +6,19 @@ command /fixit: player's tool is not a sword or axe or pickaxe or shovel or bow or helmet or chestplate or leggings or boots: message "&cYou may only repair Armour, Weapons or Tools!" to player stop + lore of player's tool contains "&2StickyItem": + send "&cYou can not use FixIt on StickyItems!" + stop set {_c.tool} to player's tool - set {_bal} to player's balance {_bal} is less than 500: send "&cYou do not have enough tickets to do this!" to player stop player's level is less than 30: - send "&cYou must have at least 30 levels to do this!" to player stop repair player's tool - reduce the player's level by 30 - remove 500 from player's balance play "anvil use" at location of player with pitch 1 send "&6&lThe Gods strike your tool!" to player @@ -27,6 +26,3 @@ command /fixit: send "&aYou have used &e500 Tickets&a to repair this tool" to player send "&aYou have &e%player's balance%&a remaining" to player log "%player%^%{_bal}%^DEDUCT^500^%player's balance%^FIXIT FEE" to "tickets/FIXIT.log" - stop - - diff --git a/Obam-Survival/FTAS.sk b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/FTAS.g.sk similarity index 100% rename from Obam-Survival/FTAS.sk rename to OBAM-Survival Games/Obam-Fronts/Tested and Moved/FTAS.g.sk diff --git a/Obam-Testing/abstain.sk b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/abstain.sk similarity index 56% rename from Obam-Testing/abstain.sk rename to OBAM-Survival Games/Obam-Fronts/Tested and Moved/abstain.sk index df5f898..34eaac7 100644 --- a/Obam-Testing/abstain.sk +++ b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/abstain.sk @@ -1,127 +1,132 @@ variables: - {abstain.%player%} = false - - + {abstain.%uuid of player%} = false command /abstain []: permission: obam.free trigger: - argument is not set: send " " - send " &aYour Abstain status is currently &e%{abstain.%player%}%&a, you can change this by doing &e/abstain confirm&a. " + send " &aYour Abstain status is currently &e%{abstain.%uuid of player%}%&a, you can change this by doing &e/abstain confirm&a. " send " " send "&aThis change will cost &e2500 Tickets&a." send " " set {abst.confirm.%player%} to now stop - player has permission "obam.admin": - {abstain.%player%} is false: - set {abstain.%player%} to true - - send "&aYour Abstain status is now &e%{abstain.%player%}%" - stop - - {abstain.%player%} is true: - set {abstain.%player%} to false - send "&aYour Abstain status is now &e%{abstain.%player%}%" - stop - - stop - + argument is "mod": + player has permission "obam.admin": + {abstain.%uuid of player%} is false: + set {abstain.%uuid of player%} to true + execute console command "perms player %player% set nametags.color.red false" + execute console command "perms player %player% set nametags.color.blue" + send "&aYou are now abstaining from PvP!" to player + send "&aYour Abstain status is now &e%{abstain.%uuid of player%}%" + stop + {abstain.%uuid of player%} is true: + set {abstain.%uuid of player%} to false + execute console command "perms player %player% set nametags.color.blue false" + execute console command "perms player %player% set nametags.color.red" + send "&aYou are now able to PvP!" to player + send "&aYour Abstain status is now &e%{abstain.%uuid of player%}%" + stop argument is "confirm" or "c": set {_hold} to difference between now and {abst.confirm.%player%} {_hold} is greater than 30 seconds: send "&cYou must do &e/abstain&a before doing the confirm command" stop - - {abstain.%player%} is not set: - set {abstain.%player%} to false - {abstain.%player%} is false: + {abstain.%uuid of player%} is not set: + set {abstain.%uuid of player%} to false + {abstain.%uuid of player%} is false: set {_bal} to player's balance {_bal} is less than 2500: send "&cYou do not have enough tickets to perform this operation" stop remove 2500 from player's balance - set {abstain.%player%} to "wait abstain" - set {abstain.%player%.time} to now + set {abstain.%uuid of player%} to "wait abstain" + set {abstain.%uuid of player%.time} to now send "&aYou have abstained from PvP. You will lose access to some features. You have paid a toll of &e2500 Tickets&a." send "&aIt can take up to &e2 hours&a for your abstain feature to take affect." send "&aYou know have &e%player's balance%&a." stop - {abstain.%player%} is true: + {abstain.%uuid of player%} is true: set {_bal} to player's balance {_bal} is less than 2500: send "&cYou do not have enough tickets to perform this operation" stop remove 2500 from player's balance - set {abstain.%player%} to "wait pvp" - set {abstain.%player%.time} to now + set {abstain.%uuid of player%} to "wait pvp" + set {abstain.%uuid of player%.time} to now send "&aYou are engaging in PvP. You will be susceptible to PvP fights. You have paid a toll of &e2500 Tickets&a." send "&aIt can take up to &e2 Hours&a for your PvP entering process to take affect." send "&aYou now have &e%player's balance%&a." stop - {abstain.%player%} is "wait pvp": + {abstain.%uuid of player%} is "wait pvp": send "&cYou already have an Abstain process waiting. It can take up to 2 hours for this change to take an effect" stop - {abstain.%player%} is "wait abstain": + {abstain.%uuid of player%} is "wait abstain": send "&cYou already have an Abstain process waiting. It can take up to 2 hours for this change to take an effect" stop on damage: victim is a player attacker is a player - {abstain.%victim%} is true: + {abstain.%uuid of victim%} is true: cancel event - {abstain.%attacker%} is true: + {abstain.%uuid of attacker%} is true: send "&cYou can not engage in PvP while abstaining!" cancel event every 1 hour: loop all players: - {abstain.%loop-player%} is "wait pvp": - set {_hold} to difference between {abstain.%loop-player%.time} and now + {abstain.%uuid of loop-player%} is "wait pvp": + set {_hold} to difference between {abstain.%uuid of loop-player%.time} and now {_hold} is more than 1 hour - set {abstain.%loop-player%} to false + set {abstain.%uuid of loop-player%} to false execute console command "perms player %loop-player% set nametags.color.blue false" execute console command "perms player %loop-player% set nametags.color.red" send "&aYou are now able to PvP!" to loop-player - {abstain.%loop-player%} is "wait abstain": - set {_hold} to difference between {abstain.%loop-player%.time} and now + {abstain.%uuid of loop-player%} is "wait abstain": + set {_hold} to difference between {abstain.%uuid of loop-player%.time} and now {_hold} is more than 1 hour - set {abstain.%loop-player%} to true + set {abstain.%uuid of loop-player%} to true execute console command "perms player %loop-player% set nametags.color.red false" execute console command "perms player %loop-player% set nametags.color.blue" send "&aYou are now abstaining from PvP!" to loop-player on connect: + {abstain.%player%} is set: + set {abstain.%uuid of player%} to {abstain.%player%} + delete {abstain.%player%} + {abstain.%player%.time} is set: + set {abstain.%uuid of player%.time} to {abstain.%player%.time} + delete {abstain.%player%.time} + {abstain.%uuid of player%} is not set: + set{abstain.%uuid of player%} to false player is "ISMOOCH": stop - {abstain.%player%} is true: + {abstain.%uuid of player%} is true: player does not have permission "nametags.color.blue": execute console command "perms player %player% set nametags.color.blue" player has permission "nametags.color.red": execute console command "perms player %player% set nametags.color.red false" - {abstain.%player%} is false: + {abstain.%uuid of player%} is false: player does not have permission "nametags.color.red": execute console command "perms player %player% set nametags.color.red" player has permission "nametags.color.blue": execute console command "perms player %player% set nametags.color.blue false" - {abstain.%player%} is "wait pvp": - set {_hold} to difference between {abstain.%player%.time} and now + {abstain.%uuid of player%} is "wait pvp": + set {_hold} to difference between {abstain.%uuid of player%.time} and now {_hold} is more than 1 hour: - set {abstain.%player%} to false + set {abstain.%uuid of player%} to false send "&aYou can now PvP!" execute console command "perms player %player% set nametags.color.blue false" execute console command "perms player %player% set nametags.color.red" stop - - {abstain.%player%} is "wait abstain": - set {_hold} to difference between {abstain.%player%.time} and now + {abstain.%uuid of player%} is "wait abstain": + set {_hold} to difference between {abstain.%uuid of player%.time} and now {_hold} is more than 1 hour: - set {abstain.%player%} to true + set {abstain.%uuid of player%} to true send "&aYou are now abstaining from PvP!" execute console command "perms player %player% set nametags.color.red false" execute console command "perms player %player% set nametags.color.blue" - stop \ No newline at end of file + stop diff --git a/OBAM-Survival Games/Obam-Fronts/Tested and Moved/access.g.sk b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/access.g.sk new file mode 100644 index 0000000..55959ec --- /dev/null +++ b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/access.g.sk @@ -0,0 +1,90 @@ +on right click on a chest or a door or a anvil or a lever or a button or a wood button or a furnace or a jukebox or a dropper or a hopper or a brewing stand or a dispenser or a beacon or a trapdoor or a fence gate or a trapped chest or a enchantment table or a repeater or a redstone comparator or a ender chest or a note block: + {bypassland.%uuid of player%} is true: + stop + {chunk.live.%chunk at location of event-block%} is not event-player: + loop blocks in radius 2 of event-block: + loop-block is sign: + chunk at location of event-block is chunk at location of loop-block: + line 1 of loop-block is "[ACCESS]": + line 2 of loop-block is "%event-player%" or "everyone": + stop + line 4 of loop-block is "%event-player%" or "everyone": + stop + line 3 of loop-block is "%event-player%" or "everyone": + stop + event-block is a chest or a furnace or a dispenser or a hopper or a brewing stand or a dropper or a trapped chest or a beacon: + {flags.%chunk at location of event-block%::container::%uuid of player%} is not set: + set {flags.%chunk at location of event-block%::container::%uuid of player%} to false + {flags.%chunk at location of event-block%::container::everyone} is not set: + set {flags.%chunk at location of event-block%::container::everyone} to false + {flags.%chunk at location of event-block%::container::everyone} is false: + {flags.%chunk at location of event-block%::container::%uuid of player%} is true: + stop + {flags.%chunk at location of event-block%::container::everyone} is true: + stop + event-block is a door or a anvil or a note block or a lever or a button or a wood button or a jukebox or a trapdoor or a fence gate or a enchantment table or a redstone comparator or a repeater: + {flags.%chunk at location of event-block%::use::everyone} is not set: + set {flags.%chunk at location of event-block%::use::everyone} to false + {flags.%chunk at location of event-block%::use::%uuid of player%} is not set: + set {flags.%chunk at location of event-block%::use::%uuid of player%} to false + {flags.%chunk at location of event-block%::use::everyone} is false: + {flags.%chunk at location of event-block%::use::%uuid of player%} is true: + stop + {flags.%chunk at location of event-block%::use::everyone} is true: + stop + cancel event + send "&cYou do not have permission to do this." to event-player + +on right click on a anvil: + delete event-block + set event-block to anvil + +on sign change: + line 1 of block is "access" or "[access]": + set line 1 of block to "[ACCESS]" + +on bed enter: + {chunk.live.%chunk at location of event-block%} is not event-player: + {flags.%chunk at location of player%::use::everyone} is not set: + set {flags.%chunk at location of player%::use::everyone} to false + {flags.%chunk at location of player%::use::%uuid of player%} is not set: + set {flags.%chunk at location of player%::use::%uuid of player%} to false + {flags.%chunk at location of player%::use::everyone} is false: + {flags.%chunk at location of player%::use::%uuid of player%} is true: + stop + {flags.%chunk at location of player%::use::everyone} is true: + stop + cancel event + send "&cYou can not do that here!" to event-player + +on right click on painting or hopper minecart or storage minecart: + {bypassland.%uuid of player%} is true: + stop + {chunk.live.%chunk at location of block%} is not player: + {flags.%chunk at location of block%::build::everyone} is not set: + set {flags.%chunk at location of block%::build::everyone} to false + {flags.%chunk at location of block%::build::%uuid of player%} is not set: + set {flags.%chunk at location of block%::build::%uuid of player%} to false + {flags.%chunk at location of block%::build::everyone} is false: + {flags.%chunk at location of block%::build::%uuid of player%} is true: + stop + {flags.%chunk at location of block%::build::everyone} is true: + stop + message "&cThis land is owned by %{chunk.live.%chunk at location of block%}%." + cancel event + +on damage of a painting: + {bypassland.%uuid of attacker%} is true: + stop + {chunk.live.%chunk at location of attacker%} is not attacker: + {flags.%chunk at location of attacker%::build::everyone} is not set: + set {flags.%chunk at location of attacker%::build::everyone} to false + {flags.%chunk at location of attacker%::build::%uuid of attacker%} is not set: + set {flags.%chunk at location of attacker%::build::%uuid of attacker%} to false + {flags.%chunk at location of attacker%::build::everyone} is false: + {flags.%chunk at location of attacker%::build::%uuid of attacker%} is true: + stop + {flags.%chunk at location of attacker%::build::everyone} is true: + stop + message "&cThis land is owned by %{chunk.live.%chunk at location of attacker%}%." + cancel event diff --git a/OBAM-Survival Games/Obam-Fronts/Tested and Moved/backpack.g.sk b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/backpack.g.sk new file mode 100644 index 0000000..f63eb73 --- /dev/null +++ b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/backpack.g.sk @@ -0,0 +1,258 @@ +options: + crudepack: ink sack named "&3Crude Pack" with lore "&6Use /backpack to||&6finish crafting this item" + backpack: ink sack named "&3BackPack" + enderpack: ender pearl named "&3EnderPack" with lore "&6Open your Ender Chest||&6anywhere!|| ||&5&oRight Click to open||&5&oYour portable Ender Chest" + +on script load: + register new shaped recipe for {@crudepack} using emerald block, emerald block, emerald block, emerald block, ink sack, emerald block, emerald block, chest, emerald block + register new shaped recipe for {@enderpack} using air, air, air, emerald block, ender pearl, emerald block, air, ender chest, air + {count.backpacks} is not set: + set {count.backpacks} to 1 + +on craft of ink sack: + name of event-item is "&3Crude Pack" + send "&aPlease use &e/backpack&a, to activate this backpack!" + +command /backpack [] [] []: + aliases: bp + trigger: + argument 1 is "help" or "h": + message "&3--[&6&lBackpack Help&3]--" + message "&cRequired = [] Optional = ()" + message "&a * /backpack" + message "&7 Use while holding a Crude Pack to finish crafting a Backpack" + message "&a * /backpack [name] [namethatyouwant]" + message "&7 Use while holding a Backpack to rename it." + message "&a * /backpack [start]" + message "&7 Used by Admins to start chest placement in a new world." + message "&a * /backpack [missing] [number]" + message "&7 Used by Admins to create a backpack with a specific number." + message "&a * /backpack [fix] [number]" + message "&7 Used by Admins to fix a backpack if a chest glitches out." + message "&a * /backpack [give] [number]" + message "&7 Used by Admins to get Crude Packs if needed." + message "&a * /backpack [warning] [number]" + message "&7 Used by Admins to view warnings, no number for all." + message "&a * /backpack [warning] [delete] [number]" + message "&7 Used by Admins to remove specific warnings." + send " " + send " " + send "&6Developed for &7OBAMCraft &eBy: &aThe OBAM Mechanics" + send "&cV 1.0" + argument 1 is not set: + player has permission "obam.free": + player's tool is ink sack: + {backpack.spacestop} is true: + broadcast "&cWARNING: The magical land of Backpacks is bursting at the seams. Please notify the powers that be!" + stop + name of player's tool is "&3Backpack": + set {_lorecheck} to uncoloured lore of player's tool + set {_lorecheck::*} to {_lorecheck} split at "||" + {_lorecheck::2} is not set: + send "&cYou need to trade this item into a mod to receive a Crude Pack" to player + stop + {_lorecheck::2} is set: + send "&cThis backpack is already assigned" to player + stop + name of player's tool is "&3Crude Pack": + set {_lorecheck} to uncoloured lore of player's tool + set {_lorecheck::*} to {_lorecheck} split at "||" + {_lorecheck::2} is set: + remove {@crudepack} from player + player doesn't have space for a oak sapling: + message "&cWarning: You do not have space for this backpack. Please make room in your inventory." + give player {@crudepack} + stop + player has space for a oak sapling: + give player {@backpack} with lore "&8%{count.backpacks}%||&6Carry lots of extra stuff!|| ||&5&oRight click to open" + set {_loc} to {backpack.coordinate} + set {_chest.type} to {backpack.chest.type} + set block at location of {_loc} to {_chest.type} + {backpack.sign.count} is 1: + set {_sign} to the location 1 meter south of {_loc} + set block at location of {_sign} to wall sign:3 + set {_line} to block at location of {_sign} + set line 2 of {_line} to "%{count.backpacks}%" + add 1 to {backpack.sign.count} + {backpack.sign.count} is 21: + set {backpack.sign.count} to 1 + set {_chest} to block at {_loc} + set {loc.backpack.%{count.backpacks}%} to {_chest} + {loc.backpack.%{count.backpacks}%} is set: + send "&aBackpack ##%{count.backpacks}% created..." + {loc.backpack.%{count.backpacks}%} is not set: + send "&cError..." + add 1 to y-coordinate of {backpack.coordinate} + set {_height.check} to y-coordinate of {backpack.coordinate} + {_height.check} is 256: + set y-coordinate of {backpack.coordinate} to 1 + add 1 to x-coordinate of {backpack.coordinate} + set {backpack.sign.count} to 1 + set {_chest.type} to {backpack.chest.type} + {_chest.type} is chest: + set {backpack.chest.type} to trapped chest + {_chest.type} is trapped chest: + set {backpack.chest.type} to chest + set {_length.check} to x-coordinate of {backpack.coordinate} + {_length.check} is greater than 127: + set x-coordinate of {backpack.coordinate} to -127 + add 2 to z-coordinate of {backpack.coordinate} + set {_width.check} to z-coordinate of {backpack.coordinate} + {_width.check} is greater than 127: + set {backpack.spacestop} to true + add 1 to {count.backpacks} + stop + message "&cYou must have a &a&b&k&a&3Crude Pack &cin your hand to use this command!" + argument 1 is "name" or "n": + player has permission "obam.free": + argument 2 is not set: + message "&cPlease type a name in argument 2 to rename this bag." + argument 2 is set: + name of player's tool is "&3Crude Pack": + send "&cYou need to finish crafting this with /backpack first" + stop + name of player's tool is "&3BackPack": + set {_lorecheck} to uncoloured lore of player's tool + set {_lorecheck::*} to {_lorecheck} split at "||" + {_lorecheck::2} is not set: + send "&cYou need to trade this item into a mod to receive a Crude Pack" to player + stop + lore of player's tool contains "&eName:": + send "&cThis backpack already has a name!" + stop + the length of argument 2 is greater than 30: + send "&cThat name is too long!" + stop + set lore of player's tool to "%lore of player's tool%|| ||&eName:||&2%argument 2%" + send "&aName of backpack set to &2%argument 2%" + stop + message "&cYou must have a &a&b&k&a&3Backpack &cin your hand to use this command!" + argument 1 is "start" or "s": + player has permission "obam.admin": + world is "bagworld": + set {backpack.coordinate} to player's location + set x-coordinate of {backpack.coordinate} to -128 + set y-coordinate of {backpack.coordinate} to 1 + set z-coordinate of {backpack.coordinate} to -128 + message "Backpack Start set to %{backpack.coordinate}%" + set {backpack.sign.count} to 1 + set {backpack.chest.type} to chest + set {count.backpacks} to 1 + set {backpack.spacestop} to false + argument 1 is "missing" or "m": + player has permission "obam.smod": + argument 2 is not set: + message "&cPlease type a number in argument 2 to get that number of backpack." + argument 2 is set: + give player {@backpack} with lore "&8%argument 2%||&6Carry lots of extra stuff!|| ||&5&oRight click to open" + argument 1 is "fix" or "f": + player has permission "obam.admin": + argument 2 is not set: + message "&cPlease type a number in argument 2 to get that number of backpack." + argument 2 is set: + give player {@backpack} with lore "&8%argument 2%||&6Carry lots of extra stuff!|| ||&5&oRight click to open" + set {_loc} to {tie.backpack.%argument 2%} + set {_type.check} to the location 1 meter west of {_loc} + block at location of {_type.check} is trapped chest: + set block at location of {tie.backpack.%argument 2%} to chest + stop + set block at location of {tie.backpack.%argument 2%} to trapped chest + argument 1 is "give" or "g": + player has permission "obam.smod": + set {_qty} to argument 3 parsed as an integer + argument 2 is "crudepack": + player doesn't have space for {_qty} of {@crudepack}: + message "&cYou do not have room for this." + stop + give {_qty} of {@crudepack} to player + message "&aHere are your things." + stop + argument 2 is "enderpack": + player doesn't have space for {_qty} of {@enderpack}: + message "&cYou do not have room for this." + stop + give {_qty} of {@enderpack} to player + message "&aHere are your things." + stop + argument 1 is "warnings" or "w": + player has permission "obam.admin": + argument 2 is not set: + message "&aCurrent Backpack Warnings" + loop {warnings.backpacks::*}: + set {_num} to loop-index + set {_warn} to loop-value + message "&a%{_num}%. %{_warn}%" + stop + argument 2 is "delete" or "d": + argument 3 is not set: + message "&cPick a number." + stop + set {_num} to argument 3 + {warnings.backpacks::%{_num}%} does not exist: + message "&cWarning &f%{_num}% &cdoes not exist." + stop + delete {warnings.backpacks::%{_num}%} + message "&aDeleted warning &f%{_num}%" + stop + set {_num} to argument 3 + {warnings.backpacks::%{_num}%} does not exist: + message "&cWarning &f%{_num}% &cdoes not exist." + stop + message "&aSelected Backpack Warning" + message "&a%{_num}%. %{warnings.backpacks::%{_num}%}%" + stop +on join: + player has permission "obam.admin": + {warnings.backpacks::*} is set: + wait 4 seconds + message "&3There are Backpack warnings. Please contact &2ob1bob69" + +on right click with ink sack: + name of player's tool is "&3Backpack" or "&a&b&k&a&3Backpack": + set {_chest} to uncoloured lore of player's tool + set {_chest::*} to {_chest} split at "||" + {_chest::2} is not set: + send "&cYou need to trade this item into a mod to receive a Crude Pack" to player + stop + {loc.backpack.%{_chest::1}%} is not set: + send "&cChest is missing" + stop + {loc.backpack.%{_chest::1}%} is set: + block at location of {loc.backpack.%{_chest::1}%} is not chest or trapped chest: + send "&cChest is missing, contact &2ob1bob69 &cfor assistance" + set {_num} to size of {warnings.backpacks::*} + add 1 to {_num} + set {warnings.backpacks::%{_num}%} to "Chest %{_chest::1}% by %player% on %now%" + open {loc.backpack.%{_chest::1}%} to player + +on right click with ender pearl: + name of player's tool contains "&3EnderPack": + cancel event + open player's enderchest to player + +on shoot: + shooter's tool is ender pearl + name of shooter's tool contains "&3EnderPack": + cancel event + +#Diagnostics +command /backpackcord: + permission: obam.admin + trigger: + message "%{backpack.coordinate}%" + +command /backpackcount: + permission: obam.admin + trigger: + message "%{count.backpacks}%" + +command /backpackloc []: + permission: obam.admin + trigger: + argument 1 is not set: + message "%{loc.backpack.%{count.backpacks}%}%" + stop + set {_num} to argument 1 + message "%{loc.backpack.%{_num}%}%" + set {_loc} to location of {loc.backpack.%{_num}%} + message "%{_loc} %" \ No newline at end of file diff --git a/OBAM-Survival Games/Obam-Fronts/Tested and Moved/chestdeath.client.sk b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/chestdeath.client.sk new file mode 100644 index 0000000..cb9ec14 --- /dev/null +++ b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/chestdeath.client.sk @@ -0,0 +1,36 @@ +on death of a player: + {chunk.live.%chunk at location of player%} is set: + {chunk.live.%chunk at location of player%} is not player: + stop + {db_death.chest} is set: + set block at location of player to a chest + + set {_chest} to block at location of player + set block above {_chest} to cobblestone + set block above block east of {_chest} to cobblestone + set block above block above {_chest} to a sign + set {_sign} to block above block above {_chest} + set block at block east of {_chest} to chest + + loop drops: + lore of loop-item does not contain "StickyItem": + add loop-item to {_chest} + + + clear drops + + set line 1 of {_sign} to "%player%" + set line 2 of {_sign} to "Died here" + + wait 0.5 seconds + send "&aDeath Chests are currently active! Your items have been saved at &e%location of {_chest}%&a!" to player + log "CHEST DEATH at %location of {_chest}% -- %time% -- %player%" to "chestdeath.log" + +command /tombstone: + permission: obam.free + trigger: + + + send "Current TombStone Status:" + send "%{db_death.chest}%" + \ No newline at end of file diff --git a/OBAM-Survival Games/Obam-Fronts/Tested and Moved/chestdeath.main.sk b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/chestdeath.main.sk new file mode 100644 index 0000000..8bc11e7 --- /dev/null +++ b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/chestdeath.main.sk @@ -0,0 +1,122 @@ +every 1 second: + + set {_hold} to now + + {db_time.extend.death} is less than now: + + + + + + broadcast "&3&l۝TombStone: &dTombStone has Ended!" + execute console command "crossmessage &3&l۝TombStone: &dTombStone has Ended!" + clear {db_death.chest} + clear {db_time.extend.death} + + set {_diff} to difference between {db_time.extend.death} and now + + {_diff} is less than 15 minutes: + + {alert.death.lastminute} is not set: + set {alert.death.lastminute} to true + + broadcast "&3&l۝TombStone: &dLess than 15 minutes remaining of TombStone!" + execute console command "crossmessage &3&l۝TombStone: &dLess than 15 minutes remaining of TombStone!" + + + +on death of a player: + {db_death.chest} is set: + set block at location of player to a chest + + set {_chest} to block at location of player + set block above {_chest} to cobblestone + set block above block east of {_chest} to cobblestone + set block above block above {_chest} to a sign + set {_sign} to block above block above {_chest} + set block at block east of {_chest} to chest + + loop items in player's inventory: + lore of loop-item does not contain "StickyItem": + add loop-item to {_chest} + + + clear drops + + set line 1 of {_sign} to "%player%" + set line 2 of {_sign} to "Died here" + + wait 0.5 seconds + send "&aTombStone currently active! Your items have been saved at &e%location of {_chest}%&a!" to player + log "CHEST DEATH at %location of {_chest}% -- %time% -- %player%" to "chestdeath.log" + + +command /chestextended : + permission: obam.admin + trigger: + + {db_time.extend.death} is not set: + set {db_time.extend.death} to now + {db_deathstats.time.%argument 2%} is not set: + set {db_deathstats.time.%argument 2%} to 0 + + #Not meant to be a real option.. just for debugging + arg 1 is 5: + + add 5 minutes to {db_time.extend.death} + add 5 to {db_deathstats.time.%argument 2%} + + arg 1 is 30: + + add 30 minutes to {db_time.extend.death} + add 30 to {db_deathstats.time.%argument 2%} + + arg 1 is 60: + + add 1 hour to {db_time.extend.death} + add 60 to {db_deathstats.time.%argument 2%} + + arg 1 is 90: + + add 90 minutes to {db_time.extend.death} + add 90 to {db_deathstats.time.%argument 2%} + + arg 1 is 120: + + add 2 hours to {db_time.extend.death} + add 120 to {db_deathstats.time.%argument 2%} + + broadcast "&3&l۝TombStone &e%argument 2%&d has extended the TombStone Timer by &e%argument 1% Minutes&d!" + execute console command "crossmessage &3&l۝TombStone: &e%argument 2%&d has extended the TombStoneTimer by &e%argument 1% Minutes&d!" + + set {_diff} to difference between {db_time.extend.death} and now + + {db_death.chest} is not set: + set {db_death.chest} to true + + broadcast "&3&l۝TombStone: &e%{_diff}% &dremaining!" + execute console command "crossmessage &3&l۝TombStone: &e%{_diff}% &dremaining!" + clear {alert.death.lastminute} + + + + +command /deathchestclear: + permission: obam.admin + trigger: + + + clear {db_death.chest} + clear {db_time.extend.death} + clear {alert.death.lastminute} + + send "&3&l۝tombStone: &dTombStone Bonus Cleared" to console + send "&3&l۝TombStone: &dTombStone Bonus Cleared" + +command /tombstone: + permission: obam.free + trigger: + + + send "Current TombStone Status:" + send "%{db_death.chest}%" \ No newline at end of file diff --git a/OBAM-Survival Games/Obam-Fronts/Tested and Moved/ci.fronts.sk b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/ci.fronts.sk new file mode 100644 index 0000000..d8ec6a6 --- /dev/null +++ b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/ci.fronts.sk @@ -0,0 +1,67 @@ +on script load: + delete {db_ci.items::*} + set {db_ci.items::01.Crude Pack} to "ink sack;&a&b&k&a&3Crude Pack;&6The crude version of||&6the backpack;sudo PLAYER bp g crudepack 1" + set {db_ci.items::02.Ender Pack} to "ender pearl;&a&b&k&a&3EnderPack;&6Open your Ender Chest||&6anywhere!|| ||&5&oRight Click to open||&5&oYour portable Ender Chest;sudo PLAYER bp g enderpack 1" + set {db_ci.items::03.capture.ball} to "snowball;&3Projeggtile Capture Ball;&6Capture the essence of various creatures||&6by tossing your balls at them.;sudo PLAYER cb capture 1" + set {db_ci.items::04.creeper.ball} to "snowball;&3Projeggtile &2Creeper &3Ball;&6Heavily reinforced to prevent even the||&6most explosive creepers from escaping!;sudo PLAYER cb creeper 1" + set {db_ci.items::05.skeleton.ball} to "snowball;&3Projeggtile &7Skeleton &3Ball;&6An ironic prison of bones made to hold||&6a skeleton, made from its own kin!;sudo PLAYER cb skeleton 1" + set {db_ci.items::06.zombie.ball} to "snowball;&3Projeggtile &aZombie &3Ball;&6Layered in flesh to make even the||&6loneliest zombie feel at home!;sudo PLAYER cb zombie 1" + set {db_ci.items::07.pigman.ball} to "snowball;&3Projeggtile &aZombie &dPigman &3Ball;&6A containment area with a nugget inside||&6to lure and keep the pigman content!;sudo PLAYER cb pigman 1" + set {db_ci.items::08.spider.ball} to "snowball;&3Projeggtile &4Spider &3Ball;&6Tangles an eight legged bugger||&6into a silky woven sack!;sudo PLAYER cb spider 1" + set {db_ci.items::09.blank} to "air" + set {db_ci.items::10.Crude Pack} to "16 ink sack;&a&b&k&a&3Crude Pack;&6The crude version of||&6the backpack;sudo PLAYER bp g crudepack 16" + set {db_ci.items::11.Ender Pack} to "16 ender pearl;&a&b&k&a&3EnderPack;&6Open your Ender Chest||&6anywhere!|| ||&5&oRight Click to open||&5&oYour portable Ender Chest;sudo PLAYER bp g enderpack 16" + set {db_ci.items::12.capture.ball} to "16 snowball;&3Projeggtile Capture Ball;&6Capture the essence of various creatures||&6by tossing your balls at them.;sudo PLAYER cb capture 16" + set {db_ci.items::13.creeper.ball} to "16 snowball;&3Projeggtile &2Creeper &3Ball;&6Heavily reinforced to prevent even the||&6most explosive creepers from escaping!;sudo PLAYER cb creeper 16" + set {db_ci.items::14.skeleton.ball} to "16 snowball;&3Projeggtile &7Skeleton &3Ball;&6An ironic prison of bones made to hold||&6a skeleton, made from its own kin!;sudo PLAYER cb skeleton 16" + set {db_ci.items::15.zombie.ball} to "16 snowball;&3Projeggtile &aZombie &3Ball;&6Layered in flesh to make even the||&6loneliest zombie feel at home!;sudo PLAYER cb zombie 16" + set {db_ci.items::16.pigman.ball} to "16 snowball;&3Projeggtile &aZombie &dPigman &3Ball;&6A containment area with a nugget inside||&6to lure and keep the pigman content!;sudo PLAYER cb pigman 16" + set {db_ci.items::17.spider.ball} to "16 snowball;&3Projeggtile &4Spider &3Ball;&6Tangles an eight legged bugger||&6into a silky woven sack!;sudo PLAYER cb spider 16" + set {db_ci.items::18.blank} to "air" + set {db_ci.items::19.Crude Pack} to "64 ink sack;&a&b&k&a&3Crude Pack;&6The crude version of||&6the backpack;sudo PLAYER bp g crudepack 64" + set {db_ci.items::20.Ender Pack} to "64 ender pearl;&a&b&k&a&3EnderPack;&6Open your Ender Chest||&6anywhere!|| ||&5&oRight Click to open||&5&oYour portable Ender Chest;sudo PLAYER bp g enderpack 64" + set {db_ci.items::21.TA} to "diamond axe;&a&b&k&a&3Timber Axe;&6This axe makes all logs within a 10 block radius||&6go timber!;sudo PLAYER timber" + set {db_ci.items::22.LB} to "bow;&3Bow of Light;&6Light your way from afar||&6with this magical bow.|| ||&c-1 Torch Per Use;sudo PLAYER lightbow" + set {db_ci.items::23.HTP} to "diamond pickaxe;&a&b&k&a&3HotTouch Pickaxe;&6A pickaxe forged from the heart of the Nether||&6with an intense heat to smelt ores while mining.;sudo PLAYER ht pick" + set {db_ci.items::24.HTA} to "diamond axe;&a&b&k&a&3HotTouch Axe;&6An axe forged from the heart of the Nether||&6with an intense heat to cook logs into charcoal||&6while chopping.;sudo PLAYER ht axe" + set {db_ci.items::25.HTS} to "diamond shovel;&a&b&k&a&3HotTouch Shovel;&6A shovel forged from the heart of the Nether||&6with an intense heat to cook sand clay and||&6cactus while digging.;sudo PLAYER ht shovel" + set {db_ci.items::26.blank} to "air" + set {db_ci.items::27.blank} to "air" + set {db_ci.items::28.FMA.helmet} to "diamond helmet;&7FMA Helmet;&6Standard issue FMA gear;sudo PLAYER fmagear helmet" + set {db_ci.items::29.FMA.chest} to "diamond chestplate;&7FMA Chestplate;&6Standard issue FMA gear;sudo PLAYER fmagear chest" + set {db_ci.items::30.FMA.leggings} to "diamond leggings;&7FMA Leggings;&6Standard issue FMA gear;sudo PLAYER fmagear leggings" + set {db_ci.items::31.FMA.boots} to "diamond boots;&7FMA Boots;&6Standard issue FMA gear;sudo PLAYER fmagear boots" + set {db_ci.items::32.FMA.sword} to "diamond sword;&7FMA Sword;&6Standard issue FMA gear;sudo PLAYER fmagear sword" + set {db_ci.items::33.FMA.bow} to "bow;&7FMA Bow;&6Standard issue FMA gear;sudo PLAYER fmagear bow" + set {db_ci.items::34.FMA.arrows} to "64 arrow;&7FMA Arrows;&6Standard issue FMA gear;sudo PLAYER fmagear arrows" + set {db_ci.items::35.FMA.apples} to "64 apple;&7FMA Apples;&6Standard issue FMA gear;sudo PLAYER fmagear apples" + +command /ci: + permission: obam.smod + trigger: + loop {db_ci.items::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lOBAM Custom Items Menu" to player + wait 1 tick + set {_count} to 0 + loop {db_ci.items::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} \ No newline at end of file diff --git a/OBAM-Survival Games/Obam-Fronts/Tested and Moved/disenchant.g.sk b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/disenchant.g.sk new file mode 100644 index 0000000..5bff46c --- /dev/null +++ b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/disenchant.g.sk @@ -0,0 +1,24 @@ +command /unenchant: + executable by: players + permission: obam.free + aliases: /disenchant + trigger: + player's tool is enchanted: + player's tool is not a sword or axe or pickaxe or shovel or bow or helmet or chestplate or leggings or boots: + message "&cYou may only disenchant Armour, Weapons or Tools!" to player + stop + set {_bal} to player's balance + {_bal} is less than 200: + send "&cYou do not have enough tickets to do this!" to player + stop + player's level is less than 15: + send "&cYou must have at least 15 levels to do this!" to player + stop + disenchant player's tool + reduce the player's level by 15 + remove 200 from player's balance + send "&6&lThe Gods have taken their gifts back!" to player + send "&aYou have used &e200 Tickets&a to disenchant this tool" to player + send "&aYou have &e%player's balance%&a remaining" to player + log "%player%^%{_bal}%^DEDUCT^200^%player's balance%^DISENCHANT FEE" to "tickets/disenchant.log" + stop diff --git a/OBAM-Survival Games/Obam-Fronts/Tested and Moved/dragonegg.g.sk b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/dragonegg.g.sk new file mode 100644 index 0000000..e55ec5e --- /dev/null +++ b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/dragonegg.g.sk @@ -0,0 +1,7 @@ +on flow: + block is a dragon egg: + cancel event + +on block physics: + block is a dragon egg: + cancel event diff --git a/OBAM-Survival Games/Obam-Fronts/Tested and Moved/entcount.g.sk b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/entcount.g.sk new file mode 100644 index 0000000..8fe85ec --- /dev/null +++ b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/entcount.g.sk @@ -0,0 +1,74 @@ +command /ent []: + permission: obam.free + description: Counts the living entities in a sphere of specified radius around player + trigger: + {cool.ent.%player%} is not set: + set {cool.ent.%player%} to difference between now and now + add 3 seconds to {cool.ent.%player%} + set {_hold} to difference between now and {cool.ent.%player%} + {_hold} is less than 2 seconds: + send "&cPlease wait ...." + stop + argument is not set: + loop entities in radius 254 of player: + loop-entity is not a player + chunk at location of loop-entity is chunk at location of player + set {_type} to "%type of loop-entity%" + set {_hold::*} to {_type} split at ":" + {_count.list::%{_hold::1}%} is not set: + set {_count.list::%{_hold::1}%} to 0 + set {_count.list::%{_hold::1}%} to {_count.list::%{_hold::1}%} + 1 + {_count.total} is not set: + set {_count.total} to 0 + add 1 to {_count.total} + {_count.total} is not set: + send "&eNo entites... MAGIC!" + stop + send "&aThere are currently &e%{_count.total}%&a entities in chunk &e%player's chunk%" + send "&aList:" + loop {_count.list::*}: + send "&a%loop-index%: &e%loop-value%" + set {cool.ent.%player%} to now + stop + argument is greater than 254: + send "&cPlease choose a number between &e1 &cand &e254" + stop + loop entities in radius argument of player's location: + loop-entity is not a player + set {_type} to "%type of loop-entity%" + set {_hold::*} to {_type} split at ":" + {_count.list::%{_hold::1}%} is not set: + set {_count.list::%{_hold::1}%} to 0 + set {_count.list::%{_hold::1}%} to {_count.list::%{_hold::1}%} + 1 + {_count.total} is not set: + set {_count.total} to 0 + add 1 to {_count.total} + {_count.total} is not set: + send "&eNo entites... MAGIC!" + stop + send "&aThere are currently &e%{_count.total}%&a entities in the radius of &e%argument%" + send "&aList:" + loop {_count.list::*}: + send "&a%loop-index%: &e%loop-value%" + set {cool.ent.%player%} to now + +command /entworld: + permission: obam.admin + trigger: + loop entities in player's world: + loop-entity is not a player + set {_type} to "%type of loop-entity%" + set {_hold::*} to {_type} split at ":" + {_count.list::%{_hold::1}%} is not set: + set {_count.list::%{_hold::1}%} to 0 + set {_count.list::%{_hold::1}%} to {_count.list::%{_hold::1}%} + 1 + {_count.total} is not set: + set {_count.total} to 0 + add 1 to {_count.total} + {_count.total} is not set: + send "&eNo entites... MAGIC!" + stop + send "&aThere are currently &e%{_count.total}%&a entities in world &e%player's world%" + send "&aList:" + loop {_count.list::*}: + send "&a%loop-index%: &e%loop-value%" diff --git a/OBAM-Survival Games/Obam-Fronts/Tested and Moved/flags.g.sk b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/flags.g.sk new file mode 100644 index 0000000..0783ec7 --- /dev/null +++ b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/flags.g.sk @@ -0,0 +1,222 @@ +on script load: + delete {db_flags::*} + set {db_flags::01.header.admin} to "nether star;&3Admin Flag;&6Click this icon to open the &eAdmin &6flags menu.||&6Or enable/disable all flags with the button below.;sudo PLAYER flags menu admin WHO" + set {db_flags::02.header.build} to "diamond pickaxe;&3Build Flag;&6Click this icon to open the &eBuild &6flags menu.||&6Or enable/disable all flags with the button below;sudo PLAYER flags menu build WHO" + set {db_flags::03.header.use} to "stone button;&3Use Flag;&6Click this icon to open the &eUse &6flags menu.||&6Or enable/disable all flags with the button below;sudo PLAYER flags menu use WHO" + set {db_flags::04.header.container} to "chest;&Container Flag;&6Click this icon to open the &eContainer &6flags menu.||&6Or enable/disable all flags with the button below.;sudo PLAYER flags menu container WHO" + set {db_flags::05.header.bucket} to "bucket;&3Bucket Flag;&6Click this icon to open the &eBucket &6flags menu.||&6Or enable/disable all flags with the button below.;sudo PLAYER flags menu bucket WHO" + set {db_flags::06.header.teleport} to "portal;&3Teleport Flag;&6Click this icon to open the &eTeleport &6flags menu.||&6Or enable/disable all flags with the button below.;sudo PLAYER flags menu teleport WHO" + set {db_flags::07.header.entity} to "sheep spawn egg;&3Entity Flag;&6Click this icon to open the &eEntity &6flags menu.||&6Or enable/disable all flags with the button below.;sudo PLAYER flags menu entity WHO" + set {db_flags::08.header.all} to "lever;&3All Flags;&6Click the button below to disable/enable all flags.||&6If any flag is enabled, it will disable all flags." + set {db_flags::09.header.front} to "grass;&3Front Settings;&6Click this icon to open the &Front Settings &6menu.||&6Or enable/disable all flags with the button below.;sudo PLAYER flags menu front WHO" + set {db_flags::01.admin.null} to "air" + set {db_flags::01.build.null} to "air" + set {db_flags::01.use.usedoor} to "wooden door;&3Use - Door;&6Click the button below to disable/enable||&6the &eDoor Use&6 flag for this front." + set {db_flags::02.use.useanvil} to "anvil;&3Use - Anvil;&6Click the button below to disable/enable||&6the &eAnvil Use&6 flag for this front." + set {db_flags::03.use.usenote} to "note block;&3Use - Noteblock;&6Click the button below to disable/enable||&6the &eNoteblock Use&6 flag for this front." + set {db_flags::04.use.usejuke} to "jukebox;&3Use - Jukebox;&6Click the button below to disable/enable||&6the &eJukebox Use&6 flag for this front." + set {db_flags::05.use.uselever} to "lever;&3Use - Lever;&6Click the button below to disable/enable||&6the &eLever Use&6 flag for this front." + set {db_flags::06.use.usestonebutton} to "stone button;&3Use - Stone Button;&6Click the button below to disable/enable||&6the &eStone Button Use&6 flag for this front." + set {db_flags::07.use.usewoodbutton} to "wood button;&3Use - Wood Button;&6Click the button below to disable/enable||&6the &eWood Button Use&6 flag for this front." + set {db_flags::08.use.usetrap} to "trapdoor;&3Use - Trap Door;&6Click the button below to disable/enable||&6the &eTrap Door Use&6 flag for this front." + set {db_flags::09.use.usefence} to "fence gate;&3Use - Fence Gate;&6Click the button below to disable/enable||&6the &eFence Gate Use&6 flag for this front." + set {db_flags::10.use.useenchant} to "enchantment table;&3Use - Enchantment Table;&6Click the button below to disable/enable||&6the &eEnchantment Table Use&6 flag for this front." + set {db_flags::11.use.usecomparator} to "redstone comparator;&3Use - Comparator;&6Click the button below to disable/enable||&6the &eComparator Use&6 flag for this front." + set {db_flags::12.use.userepeater} to "repeater;&3Use - Repeater;&6Click the button below to disable/enable||&6the &eRepeater Use&6 flag for this front." + set {db_flags::01.container.conchest} to "chest;&3Container - Chest;&6Click the button below to disable/enable||&6the &eChest Container&6 flag for this front." + set {db_flags::02.container.confurnace} to "furnace;&3Container - Furnace;&6Click the button below to disable/enable||&6the &eFurnace Container&6 flag for this front." + set {db_flags::03.container.condispenser} to "dispenser;&3Container - Dispenser;&6Click the button below to disable/enable||&6the &eDispenser Container&6 flag for this front." + set {db_flags::04.container.conhopper} to "hopper;&3Container - Hopper;&6Click the button below to disable/enable||&6the &eHopper Container&6 flag for this front." + set {db_flags::05.container.conbrewing} to "brewing stand;&3Container - Brewing Stand;&6Click the button below to disable/enable||&6the &eBrewing Stand Container&6 flag for this front." + set {db_flags::06.container.condropper} to "dropper;&3Container - Dropper;&6Click the button below to disable/enable||&6the &eDropper Container&6 flag for this front." + set {db_flags::07.container.contrapped} to "trapped chest;&3Container - Trapped Chest;&6Click the button below to disable/enable||&6the &eTrapped Chest Container&6 flag for this front." + set {db_flags::08.container.conbeacon} to "beacon;&3Container - Beacon;&6Click the button below to disable/enable||&6the &eBeacon Container&6 flag for this front." + set {db_flags::01.bucket.bucketwater} to "water bucket;&3Bucket Flag - Water;&6Click the button below to disable/enable||&6the &eWater Bucket&6 flag for this front." + set {db_flags::02.bucket.bucketlava} to "lava bucket;&3Bucket Flag - Lava;&6Click the button below to disable/enable||&6the &eLava Bucket&6 flag for this front." + set {db_flags::01.teleport.null} to "air" + set {db_flags::01.entity.null} to "air" + set {db_flags::01.front.frontflow} to "water;&3Flow;&6Click the button below to disable/enable||&6the &eFlow&6 flag for this front." + set {db_flags::02.front.frontfirespread} to "fire;&3Firespread;&6Click the button below to disable/enable||&6the &eFirespread&6 flag for this front." + set {db_flags::03.front.fronttnt} to "tnt;&3TNT;&6Click the button below to disable/enable||&6the &eTNT&6 flag for this front." + +on join: + {flag.reset.%uuid of player%} is not set: + wait 10 seconds + {owned.chunks.%uuid of player%::*} is set: + loop {owned.chunks.%uuid of player%::*}: + set {_chunk} to loop-index-1 + loop {flags.%{_chunk}%::*}: + delete {flags.%{_chunk}%::loop-index-2::*} + delete {flags.%{_chunk}%::*} + set {flag.reset.%uuid of player%} to false + message "&cAttention: &6All flags have been deleted." + +command /flags [] [] []: + permission: obam.free + trigger: + {chunk.live.%chunk at location of player%} is not set: + send "&cThis land has not been claimed yet!" + stop + argument 1 is not set: + set {_task} to menu + set {_what} to header + set {_who} to Everyone + argument 1 is not "menu" or "set" or "list": + {db_name.%argument 1%} does not exist: + message "&cThat player does not exist." + stop + set {_task} to menu + set {_what} to header + set {_who} to argument 1 + set {_task} to argument 1 + set {_what} to argument 2 + set {_who} to argument 3 + set {_who.uuid} to {db_name.%{_who}%} + {_task} is "menu": + loop {db_flags::*}: + set {_decode1::*} to loop-index split at "." + set {_sub} to {_decode1::3} + {_sub} is "null": + send "&c&lThis feature is being worked on and will be here soon!" + stop + set {_prim} to {_decode1::2} + {_count} is not set: + set {_count} to 0 + {_prim} contains "{_what}": + add 1 to {_count} + {_count} is less than 10: + set {_size} to 2 + {_count} is greater than 9: + set {_size} to 4 + {_count} is greater than 18: + set {_size} to 6 + {_count} is greater than 27: + set {_size} to 8 + show chest with {_size} row named "&9&lOBAM %{_what}% Flags Menu" to player + wait 1 tick + loop {db_flags::*}: + set {_decode2::*} to loop-index-1 split at "." + set {_prim} to {_decode2::2} + {_prim} is {_what}: + set {_slot} to {_decode2::1} parsed as integer + subtract 1 from {_slot1} + set {_slot2} to 9 + {_slot1} + set {_sub} to {_decode2::3} + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + replace "WHO" in {_command} with "%{_who}%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_slot1} of player with {_what} to be unstealable + {_command} is set: + format slot {_slot1} of player with {_what} to close then run {_command} + {_sub} is "all": + loop {db_flags::*}: + set {_decode3::*} to loop-index-2 split at "." + set {_sub1} to {_decode3::3} + {flags.%chunk at location of player%::%{_sub1}%::%{_who.uuid}%} is true: + set {_any.check} to true + {_any.check} is set: + set {_state1} to light green wool parsed as an item + set {_state2} to "&aEnabled" + set {_state3} to "&6Click to &cDisable &6all flags for &e%{_who}%." + set {_state4} sudo %player% flags set all %{_who}% + {_any.check} is not set: + set {_state1} to red wool parsed as an item + set {_state2} to "&cDisabled" + set {_state3} to "&6Click to &aEnable &6all flags for &e%{_who}%." + set {_state4} sudo %player% flags set all %{_who}% + {_sub} is "front" or "flow" or "firespread" or "tnt": + {flags.%chunk at location of player%::%{_sub}%} is not set: + set {flags.%chunk at location of player%::%{_sub}%} to false + {flags.%chunk at location of player%::%{_sub}%} is true: + set {_state1} to light green wool parsed as an item + set {_state2} to "&aEnabled" + set {_state3} to "&6Click to &cDisable &6the &e%{_sub}% &6flag for &e%{_who}%." + set {_state4} sudo %player% flags set %{_sub}% %{_who}% + {flags.%chunk at location of player%::%{_sub}%} is false: + set {_state1} to red wool parsed as an item + set {_state2} to "&cDisabled" + set {_state3} to "&6Click to &aEnable &6the &e%{_sub}% &6flag for &e%{_who}%." + set {_state4} sudo %player% flags set %{_sub}% %{_who}% + {_sub} is not "front" or "flow" or "firespread" or "tnt": + {flags.%chunk at location of player%::%{_sub}%::%{_who.uuid}%} is not set: + set {flags.%chunk at location of player%::%{_sub}%::%{_who.uuid}%} to false + {flags.%chunk at location of player%::%{_sub}%::%{_who.uuid}%} is true: + set {_state1} to light green wool parsed as an item + set {_state2} to "&aEnabled" + set {_state3} to "&6Click to &cDisable &6the &e%{_sub}% &6flag for &e%{_who}%." + set {_state4} sudo %player% flags set %{_sub}% %{_who}% + {flags.%chunk at location of player%::%{_sub}%::%{_who.uuid}%} is false: + set {_state1} to red wool parsed as an item + set {_state2} to "&cDisabled" + set {_state3} to "&6Click to &aEnable &6the &e%{_sub}% &6flag for &e%{_who}%." + set {_state4} sudo %player% flags set %{_sub}% %{_who}% + set {_what2} to {_state1} named {_state2} with lore {_state3} + format slot {_slot2} of player with {_what2} to be unstealable + format slot {_slot2} of player with {_what2} to close then run {_state4} + {_task} is "set": + {chunk.live.%chunk at location of player%} is not player: + {flags.%chunk at location of player%::admin::%uuid of player%} is not set: + set {flags.%chunk at location of player%::admin::%uuid of player%} to false + {flags.%chunk at location of player%::admin::%uuid of player%} is false: + send "&cYou do not have permission to do this!" + stop + {flags.%chunk at location of player%::admin::everyone} is not set: + set {flags.%chunk at location of player%::admin::everyone} to false + {flags.%chunk at location of player%::admin::everyone} is false: + send "&cYou do not have permission to do this!" + stop + {_what} is "front" or "flow" or "firespread" or "tnt": + {flags.%chunk at location of player%::%{_what}%} is true: + set {flags.%chunk at location of player%::%{_what}%} to false + send "&cYou have disabled the &e%{_what}%&c flag on this &eFront" + stop + {flags.%chunk at location of player%::%{_what}%} is false: + set {flags.%chunk at location of player%::%{_what}%} to true + send "&aYou have enabled the &e%{_what}%&a flag on this &eFront" + stop + {_what} is "all": + set {_clear} to false + loop {db_flags::*}: + set {_decode4::*} to loop-index split at "." + set {_sub2} to {_decode4::3} + {flags.%chunk at location of player%::%{_sub2}%::%{_who.uuid}%} is true: + set {_clear} to true + loop {db_flags::*}: + set {_decode5::*} to loop-index split at "." + set {_sub3} to {_decode5::3} + set {flags.%chunk at location of player%::%{_sub3}%::%{_who.uuid}%} to {_clear} + {_clear} is true: + send "&cYou have disabled &eAll&c flags for &e%{_who}%" + stop + send "&aYou have enabled &eAll&a flags for &e%{_who}%" + stop + {flags.%chunk at location of player%::%{_what}%::%{_who.uuid}%} is false: + set {flags.%chunk at location of player%::%{_what}%::%{_who.uuid}%} to true + send "&aEnabled &e%{_what}%&a flag for &e%{_who}%" + stop + {flags.%chunk at location of player%::%{_what}%::%{_who.uuid}%} is true: + set {flags.%chunk at location of player%::%{_what}%::%{_who.uuid}%} to false + send "&cDisabled &e%{_what}%&c flag for &e%{_who}%" + stop + {_task} is "list": + {_what} is not set: + send "&cPlease specify a flag." + stop + send "&aActive users for &e%{_what}% &aflag:" + loop {flags.%chunk at location of player%::%{_what}%::*}: + loop-value is true + send "&a%{db_master.uuid::%loop-index%}%" + stop + send "&cPlease check your command and try again." + stop + +command /forceadmin: + permission: obam.smod + trigger: + set {flags.%chunk at location of player%::admin::%uuid of player%} to true + send "&aYou now have the admin flag for this chunk owned by &e%{db_master.uuid::%{chunk.live.%chunk at location of block%}%}%&a." diff --git a/OBAM-Survival Games/Obam-Fronts/Tested and Moved/flow.g.sk b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/flow.g.sk new file mode 100644 index 0000000..2ca707e --- /dev/null +++ b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/flow.g.sk @@ -0,0 +1,20 @@ +on flow: + {flags.%chunk at event-location%::frontflow} is set: + {flags.%chunk at event-location%::frontflow} is false: + cancel event + {flags.%chunk at event-location%::frontflow} is true: + stop + +on ignition: + {flags.%chunk at event-location%::frontfirespread} is set: + {flags.%chunk at event-location%::frontfirespread} is false: + cancel event + {flags.%chunk at event-location%::frontfirespread} is true: + stop + +on burn: + {flags.%chunk at event-location%::frontfirespread} is set: + {flags.%chunk at event-location%::frontfirespread} is false: + cancel event + {flags.%chunk at event-location%::frontfirespread} is true: + stop diff --git a/OBAM-Survival Games/Obam-Fronts/Tested and Moved/fma.sk b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/fma.sk new file mode 100644 index 0000000..68fc544 --- /dev/null +++ b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/fma.sk @@ -0,0 +1,794 @@ +on script load: + {hostilemobs::creeper} is set: + delete {hostilemobs::creeper} + {hostilemobs::spider} is not set: + set {hostilemobs::spider} to spider + {hostilemobs::zombie} is not set: + set {hostilemobs::zombie} to zombie + {hostilemobs::skeleton} is not set: + set {hostilemobs::skeleton} to skeleton + {hostilemobs::slime} is not set: + set {hostilemobs::slime} to slime + {hostilemobs::zombiepigman} is not set: + set {hostilemobs::zombiepigman} to zombie pigman + {hostilemobs::cavespider} is not set: + set {hostilemobs::cavespider} to cave spider + {hostilemobs::silverfish} is not set: + set {hostilemobs::silverfish} to silverfish + {hostilemobs::blaze} is not set: + set {hostilemobs::blaze} to blaze + {hostilemobs::magmacube} is not set: + set {hostilemobs::magmacube} to magma cube + {hostilemobs::witch} is not set: + set {hostilemobs::witch} to witch + {hostilemobs::witherskeleton} is not set: + set {hostilemobs::witherskeleton} to wither skeleton + {hostilemobsproper::creeper} is set: + delete {hostilemobsproper::creeper} + {hostilemobsproper::spider} is not set: + set {hostilemobsproper::spider} to spider + {hostilemobsproper::zombie} is not set: + set {hostilemobsproper::zombie} to zombie + {hostilemobsproper::skeleton} is not set: + set {hostilemobsproper::skeleton} to skeleton + {hostilemobsproper::slime} is not set: + set {hostilemobsproper::slime} to slime + {hostilemobsproper::zombiepigman} is not set: + set {hostilemobsproper::zombiepigman} to zombie pigman + {hostilemobsproper::cavespider} is not set: + set {hostilemobsproper::cavespider} to cave spider + {hostilemobsproper::silverfish} is not set: + set {hostilemobsproper::silverfish} to silverfish + {hostilemobsproper::blaze} is not set: + set {hostilemobsproper::blaze} to blaze + {hostilemobsproper::magmacube} is not set: + set {hostilemobsproper::magmacube} to magma cube + {hostilemobsproper::witch} is not set: + set {hostilemobsproper::witch} to witch + {hostilemobsproper::witherskeleton} is not set: + set {hostilemobsproper::witherskeleton} to wither skeleton + {hostilemobsproper::wither} is set: + delete {hostilemobsproper::wither} + {hostilemobsproper::ghast} is not set: + set {hostilemobsproper::ghast} to ghast + +command /spawntoggle: + permission: obam.smod + trigger: + {spawn.mobarena} is not set: + set {spawn.mobarena} to false + send "&aNatural Spawns are now off in the &eMob Arena" + stop + {spawn.mobarena} is true: + set {spawn.mobarena} to false + send "&aNatural Spawns are now off in the &eMob Arena" + stop + {spawn.mobarena} is false: + set {spawn.mobarena} to true + send "&aNatural Spawns are now on in the &eMob Arena" + stop + +on burn of coal block: + {chunk.live.%chunk at location of block%} is "MobArena-BattleFloor": + cancel event + +command /fmaspawn [] []: + permission: obam.smod + trigger: + argument 1 is "random": + argument 2 is "random": + argument 3 is "random": + set {_ran} to a random integer between 1 and 30 + set {spawncheck.ok} to true + loop {_ran} times: + set {_ranmob} to random element of {hostilemobs::*} + set {_ranname} to random element of {rannames::*} + + spawn {_ranmob} at location of player + + set display name of spawned entity to "&c%{_ranname}%" + set {spawncheck.ok} to false + stop + argument 3 is set: + loop {rannames::*}: + argument 3 is loop-value + set {_found} to true + {_found} is not set: + add argument 3 to {rannames::*} + set {_ran} to a random integer between 1 and 30 + set {spawncheck.ok} to true + loop {_ran} times: + set {_ranmob} to random element of {hostilemobs::*} + spawn {_ranmob} at location of player + set display name of spawned entity to "&c%argument 3%" + set {spawncheck.ok} to false + stop + argument 3 is not set: + set {_ran} to random integer between 1 and 30 + set {spawncheck.ok} to true + loop {_ran} times: + set {_ranmob} to random element of {hostilemobs::*} + spawn {_ranmob} at location of player + set {spawncheck.ok} to false + stop + argument 2 is not "random": + argument 2 is set: + set {_amount} to argument 2 parsed as number + {_amount} is not set: + parse error is set: + send "&c%last parse error%" + stop + argument 3 is "random": + set {spawncheck.ok} to true + loop {_amount} times: + set {_ranmob} to random element of {hostilemobs::*} + set {_ranname} to random element of {rannames::*} + spawn {_ranmob} at location of player + set display name of spawned entity to "&c%{_ranname}%" + set {spawncheck.ok} to false + stop + argument 3 is set: + loop {rannames::*}: + argument 3 is loop-value: + set {_found} to true + {_found} is not set: + add argument 3 to {rannames::* + set {spawncheck.ok} to true + loop {_amount} times: + set {_ranmob} to random element of {hostilemobs::*} + spawn {_ranmob} at location of player + set display name of spawned entity to "&c%argument 3%" + set {spawncheck.ok} to false + stop + argument 3 is not set: + set {spawncheck.ok} to true + loop {_amount} times: + set {_ranmob} to random element of {hostilemobs::*} + spawn {_ranmob} at location of player + set {spawncheck.ok} to false + stop + argument 1 is not "random": + argument 1 is set: + {hostilemobsproper::%argument 1%} is not set: + send "&cThat is not a valid mob!" + stop + set {_mob} to {hostilemobsproper::%argument 1%} + argument 3 is not set: + argument 2 is not set: + set {spawncheck.ok} to true + spawn {_mob} at location of player + set {spawncheck.ok} to false + argument 2 is "random": + argument 3 is "random": + set {_ran} to a random integer between 1 and 30 + set {spawncheck.ok} to true + loop {_ran} times: + set {_ranname} to random element of {rannames::*} + spawn {_mob} at location of player + set display name of spawned entity to "&c%{_ranname}%" + set {spawncheck.ok} to false + stop + argument 3 is set: + loop {rannames::*}: + argument 3 is loop-value + set {_found} to true + {_found} is not set: + add argument 3 to {rannames::*} + set {_ran} to a random integer between 1 and 30 + set {spawncheck.ok} to true + loop {_ran} times: + spawn {_mob} at location of player + set display name of spawned entity to "&c%argument 3%" + set {spawncheck.ok} to false + stop + argument 3 is not set: + set {_ran} to random integer between 1 and 30 + set {spawncheck.ok} to true + loop {_ran} times: + spawn {_mob} at location of player + set {spawncheck.ok} to false + stop + argument 2 is not "random": + argument 2 is set: + set {_amount} to argument 2 parsed as number + {_amount} is not set: + parse error is set: + send "&c%last parse error%" + stop + argument 3 is "random": + set {spawncheck.ok} to true + loop {_amount} times: + set {_ranname} to random element of {rannames::*} + spawn {_mob} at location of player + set display name of spawned entity to "&c%{_ranname}%" + set {spawncheck.ok} to false + stop + argument 3 is set: + loop {rannames::*}: + argument 3 is loop-value: + set {_found} to true + {_found} is not set: + add argument 3 to {rannames::*} + set {spawncheck.ok} to true + loop {_amount} times: + spawn {_mob} at location of player + set display name of spawned entity to "&c%argument 3%" + set {spawncheck.ok} to false + stop + argument 3 is not set: + set {spawncheck.ok} to true + loop {_amount} times: + spawn {_mob} at location of player + set {spawncheck.ok} to false + stop + +command /nameadd []: + permission: obam.smod + trigger: + argument 1 is "list": + loop {rannames::*}: + send "%loop-value%" + stop + argument 1 is "delete": + argument 2 is not set: + send "&cYou must specify what to delete!" + stop + loop {rannames::*}: + loop-value is argument 2: + delete {rannames::%loop-index%} + send "&cDeleted &e%argument 2%" + stop + add argument 1 to {rannames::*} + send "&e%argument 1% &aadded" + +command /doorset: + permission: obam.admin + trigger: + add location of targeted block to {fma.doors::*} + send "&aBlock added" + +command /fmaclose: + permission: obam.mod + trigger: + loop {fma.doors::*}: + set {_loc} to loop-value + set block at loop-value to locked chest:15 + send "&aDoors closed" + +command /fmaopen: + permission: obam.mod + trigger: + loop {fma.doors::*}: + set {_loc} to loop-value + set block at loop-value to air + send "&aDoors opened" + +on spawn: + set {_chunk} to chunk at event-location + set {_chunk.owner} to {chunk.live.%{_chunk}%} + {_chunk.owner} is "MobArena-Arena" or "MobArena-Spawn" or "MobArena-BattleFloor" or "MobArena-Winner" or "MobArena-Twerk": + {spawn.mobarena} is false: + {spawncheck.ok} is not set: + set {spawncheck.ok} to false + {spawncheck.ok} is false: + cancel event + +command /corneradd [] []: + permission: obam.admin + trigger: + argument 1 is not set: + add location of player to {fma.corners::*} + send "&aCorner added" + argument 1 is "clear": + clear {fma.corners::*} + +command /fmacampers: + permission: obam.smod + trigger: + set {spawncheck.ok} to true + loop {fma.corners::*}: + set {_loc} to loop-value + set {_ran} to random integer between 1 and 30 + loop {_ran} times: + set {_ranname} to random element of {rannames::*} + set {_ranmob} to random element of {hostilemobs::*} + spawn {_ranmob} at {_loc} + set display name of spawned entity to "&c%{_ranname}%" + wait 1 second + set {spawncheck.ok} to false + +command /entitycheck: + permission: obam.free + trigger: + send "%type of target entity%" + +command /winnerchestadd: + permission: obam.admin + trigger: + set {_size} to size of {winner.chests::*} + set {_size} to {_size} + 1 + set {winner.chests::%{_size}%} to targeted block + +on death: + {chunk.live.%chunk at location of victim%} is "MobArena-BattleFloor" + loop drops: + set {_chest} to {winner.chests::1} + while {_chest} doesn't have space for loop-item: + {_count} is not set: + set {_count} to 1 + add 1 to {_count} + set {_chest} to {winner.chests::%{_count}%} + {_count} is 21: + remove loop-item from drops + add loop-item to {_chest} + remove loop-item from drops + +on target: + {chunk.live.%chunk at location of event-entity%} is "MobArena-BattleFloor": + {chunk.live.%chunk at location of target%} is not "MobArena-BattleFloor": + cancel event + +on right click with ender pearl: + {chunk.live.%chunk at location of player%} is "MobArena-BattleFloor" or "MobArena-Spawn" or "MobArena-Arena" or "MobArena-Winner" or "MobArea-Twerk": + cancel event + send "&cYou can not do that here" + +command /fma: + permission: obam.free + trigger: + make player execute command "f t FMA-Spawn mobarena-spawn" + +on drop: + {chunk.live.%chunk at event-location%} is "MobArena-BattleFloor" + set {_chest} to {winner.chests::1} + while {_chest} doesn't have space for item: + {_count} is not set: + set {_count} to 1 + add 1 to {_count} + set {_chest} to {winner.chests::%{_count}%} + {_count} is 21: + cancel event + remove item from player + add item to {_chest} + delete item + +on xp spawn: + {chunk.live.%chunk at event-location%} is "MobArena-BattleFloor": + cancel event + +command /special : + permission: obam.smod + trigger: + argument is "add": + add location of targeted block to {fma.special::*} + send "&aBlock Added" + stop + argument is "lava": + loop {fma.special::*}: + set block at loop-value to lava + wait 3 seconds + loop {fma.special::*}: + set block at loop-value to coal block + argument is "ice": + loop {fma.special::*}: + set block at loop-value to ice + wait 3 seconds + loop {fma.special::*}: + set block at loop-value to coal block + argument is "water": + loop {fma.special::*}: + set block at loop-value to water + wait 3 seconds + loop {fma.special::*}: + set block at loop-value to coal block + argument is "soulsand": + loop {fma.special::*}: + set block at loop-value to soul sand + wait 3 seconds + loop {fma.special::*}: + set block at loop-value to coal block + argument is "cobweb": + loop {fma.special::*}: + set block at loop-value to cobweb + wait 3 seconds + loop {fma.special::*}: + set block at loop-value to coal block + argument is "music": + loop all players: + {chunk.live.%chunk at location of loop-player%} is "MobArena-BattleFloor": + send "&aComposition..." to loop-player + loop {fma.special::*}: + set block at loop-value to note block + wait 24 seconds + loop all players: + {chunk.live.%chunk at location of loop-player%} is "MobArena-BattleFloor": + send "&aMusic Begin..." to loop-player + loop {fma.special::*}: + set block above block above loop-value to locked chest:15 + loop 150 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 2 ticks + wait 3 seconds + loop {fma.special::*}: + set block at loop-value to coal block + set block below loop-value to air + set block above block above loop-value to air + argument is "lever": + loop {fma.special::*}: + set block at loop-value to redstone lamp + set block above loop-value to lever + wait 15 seconds + loop {fma.special::*}: + set block at loop-value to coal block + set block above loop-value to air + argument is "stack": + loop {fma.special::*}: + set block above loop-value to redstone block + wait 1 tick + wait 1 second + loop {fma.special::*}: + set block above block above loop-value to redstone lamp + wait 1 tick + wait 3 seconds + loop {fma.special::*}: + set block above block above loop-value to lava + wait 0.5 seconds + loop {fma.special::*}: + set block above block above loop-value to redstone lamp + loop {fma.special::*}: + set block above loop-value to air + wait 1 tick + wait 1 seconds + loop {fma.special::*}: + set block above block above loop-value to air + wait 1 tick + argument is "dance": + loop {fma.special::*}: + set block at loop-value to redstone lamp + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + set block at loop-value to coal block + +on drop: + {chunk.live.%chunk at location of player%} is "MobArena-Winner": + set {_ran} to random element of {twerk.drop::*} + drop item at block below {_ran} + delete item + +command /twerkadd: + permission: obam.admin + trigger: + add location of targeted block to {twerk.drop::*} + send "&aBlock added" + +command /specialtestsword: + permission: obam.admin + trigger: + give diamond sword named "&cSpecial Test Sword" to player + +on damage: + attacker's tool is diamond sword named "&cSpecial Test Sword": + attacker has permission "obam.admin": + {chunk.live.%chunk at location of attacker%} is "MobArena-BattleFloor": + loop all entities: + {chunk.live.%chunk at location of loop-entity%} is "MobArena-BattleFloor": + loop-entity is not a player + kill loop-entity + +on sign change: + player is op + line 1 of block is "fmahelm": + set line 2 of block to "FMA Helmet" + set line 1 of block to "Click to get" + set line 3 of block to "500 Tickets" + line 1 of block is "fmachest": + set line 1 of block to "Click to get" + set line 2 of block to "FMA Chestplate" + set line 3 of block to "500 Tickets" + line 1 of block is "fmapants": + set line 1 of block to "Click to get" + set line 2 of block to "FMA Leggings" + set line 3 of block to "500 Tickets" + line 1 of block is "fmaboots": + set line 1 of block to "Click to get" + set line 2 of block to "FMA Boots" + set line 3 of block to "500 Tickets" + line 1 of block is "fmasword": + set line 1 of block to "Click to get" + set line 2 of block to "FMA Sword" + set line 3 of block to "500 Tickets" + line 1 of block is "fmabow": + set line 1 of block to "Click to get" + set line 2 of block to "FMA Bow" + set line 3 of block to "500 Tickets" + line 1 of block is "fmaarrows": + set line 1 of block to "Click to get" + set line 2 of block to "FMA Arrows" + set line 3 of block to "(150)" + set line 4 of block to "500 Tickets" + line 2 of block is "fmafood": + set line 1 of block to "Click to get" + set line 2 of block to "FMA Apples" + set line 3 of block to "(150)" + set line 4 of block to "500 Tickets" + +on right click on sign: + line 1 of block is "Click to get": + set {_bal} to player's balance + {_bal} is less than 500: + send "&cYou do not have enough Tickets!" + stop + player doesn't have space for sponge: + send "&aYou do not have room!" + stop + line 2 of block is "FMA Helmet": + give player diamond helmet of protection 3 and unbreaking 3 named "&7FMA Helmet" + remove 500 from player's balance + send "&aYou have spent 500 tickets on &eFMA Helmet" + line 2 of block is "FMA Chestplate": + give player diamond chestplate of protection 3 and unbreaking 3 named "&7FMA Chestplate" + remove 500 from player's balance + send "&aYou have spent 500 tickets on &eFMA Chestplate" + line 2 of block is "FMA Leggings": + give player diamond leggings of protection 3 and unbreaking 3 named "&7FMA Leggings" + remove 500 from player's balance + send "&aYou have spent 500 tickets on &eFMA Leggings" + line 2 of block is "FMA Boots": + give player diamond boots of protection 3 and unbreaking 3 named "&7FMA Boots" + remove 500 from player's balance + send "&aYou have spent 500 tickets on &eFMA Boots" + line 2 of block is "FMA Sword": + give player diamond sword of knockback 1 and unbreaking 3 and sharpness 2 named "&7FMA Sword" + remove 500 from player's balance + send "&aYou have spent 500 tickets on &EFMA Sword" + line 2 of block is "FMA Bow": + give player bow of punch 2 and power 3 and unbreaking 1 named "&7FMA Bow" + remove 500 from player's balance + send "&aYou have spent 500 tickets on &eFMA Bow" + line 2 of block is "FMA Arrows": + give player 150 arrows named "&7FMA Arrow" + remove 500 from player's balance + send "&aYou have spent 500 tickets on &eFMA Arrows" + line 2 of block is "FMA Apples": + give player 150 apples named "&7FMA Apple" + remove 500 from player's balance + send "&aYou have spent 500 tickets on &eFMA Apples" + +command /fmagear []: + permission: obam.smod + trigger: + player doesn't have space for sponge: + send "&aYou do not have room!" + stop + argument 1 is "helmet": + give player diamond helmet of protection 3 and unbreaking 3 named "&7FMA Helmet" + argument 1 is "chest": + give player diamond chestplate of protection 3 and unbreaking 3 named "&7FMA Chestplate" + argument 1 is "leggings": + give player diamond leggings of protection 3 and unbreaking 3 named "&7FMA Leggings" + argument 1 is "boots": + give player diamond boots of protection 3 and unbreaking 3 named "&7FMA Boots" + argument 1 is "sword": + give player diamond sword of knockback 1 and unbreaking 3 and sharpness 2 named "&7FMA Sword" + argument 1 is "bow": + give player bow of punch 2 and power 3 and unbreaking 1 named "&7FMA Bow" + argument 1 is "arrows": + give player 64 arrows named "&7FMA Arrow" + argument 1 is "apples": + give player 64 apples named "&7FMA Apple" + send "&aHere is your thing" diff --git a/Obam-Survival/heads.sk b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/heads.g.sk similarity index 84% rename from Obam-Survival/heads.sk rename to OBAM-Survival Games/Obam-Fronts/Tested and Moved/heads.g.sk index 7282c41..ea1bdc0 100644 --- a/Obam-Survival/heads.sk +++ b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/heads.g.sk @@ -2,11 +2,13 @@ on death of a player: attacker is a player: attacker is not victim: add skull of victim to drops - set {_item} to "paper;&3Death Note - &eVICTIM;&7This note shows that &eATTACKER&7 took the||&7life of &eVICTIM&7 on &eDATE EST" - replace "VICTIM" in {_item} with "%victim%" - replace "ATTACKER" in {_item} with "%attacker%" - replace "DATE" in {_item} with "%now%" - add named item stack from {_item} to drops + set {_item.1} to "&3Death Note - &eVICTIM" + set {_item.2} to "&7This note shows that &eATTACKER&7 took the||&7life of &eVICTIM&7 on &eDATE CST" + replace "VICTIM" in {_item.1} with "%victim%" + replace "VICTIM" in {_item.2} with "%victim%" + replace "ATTACKER" in {_item.2} with "%attacker%" + replace "DATE" in {_item.2} with "%now%" + add paper named {_item.1} with lore {_item.2} to drops on death of a living entity: attacker is a player: @@ -65,4 +67,3 @@ on death of a living entity: victim is villagers: set {_player} to "MHF_Villager" parsed as offline player add skull of {_player} to drops - diff --git a/OBAM-Survival Games/Obam-Fronts/Tested and Moved/heal.g.sk b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/heal.g.sk new file mode 100644 index 0000000..39a350b --- /dev/null +++ b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/heal.g.sk @@ -0,0 +1,46 @@ +#heal + +variables: + {heal.%player%} = false + +command /heal: + executable by: players + permission: obam.free + trigger: + {heal.%uuid of player%} is not set: + set {heal.%uuid of player%} to now + add 13 hours to {heal.%uuid of player%} + set {_check} to difference between {heal.%uuid of player%} and now + {_check} is less than 12 hours: + set {_check} to difference between {heal.%uuid of player%} and now + set {_hold} to difference between now and now + add 12 hours to {_hold} + subtract {_check} from {_hold} + send "&cYou must wait at least &e%{_hold}% &cto use this command!" + stop + {abstain.%uuid of player%} is false: + send "&cOnly abstaining players can use this feature!" + stop + {abstian.%uuid of player%} is "wait pvp" or "wait abstain": + send "&cYou can not use this feature in transition!" + stop + {abstain.%uuid of player%} is true: + set {_bal} to player's balance + {_bal} is less than 2000: + send "&cYou do not have enough tickets to do this!" to player + stop + remove 2000 from player's balance + set {heal.%uuid of player%} to now + send "&aYou have been healed." to player + set player's health to 10 + set player's hunger to 10 + apply regeneration 2 to player for 30 seconds + apply fire resistance to player for 30 seconds + apply resistance 2 to player for 30 seconds + apply absorption 2 to player for 30 seconds + player has wither: + remove wither from player + player has poison: + remove poison from player + send "&aYou have &e%player's balance%&a remaining" to player + stop \ No newline at end of file diff --git a/OBAM-Survival Games/Obam-Fronts/Tested and Moved/hottouch.g.sk b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/hottouch.g.sk new file mode 100644 index 0000000..91eb88a --- /dev/null +++ b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/hottouch.g.sk @@ -0,0 +1,101 @@ +options: + smeltpick: diamond pickaxe named "&a&b&k&a&3HotTouch Pickaxe" with lore "&6A pickaxe forged from the heart of the Nether||&6with an intense heat to smelt ores while mining.|| ||&2StickyItem ©" + smeltaxe: diamond axe named "&a&b&k&a&3HotTouch Axe" with lore "&6An axe forged from the heart of the Nether||&6with an intense heat to cook logs into charcoal||&6while chopping.|| ||&2StickyItem ©" + smeltshovel: diamond shovel named "&a&b&k&a&3HotTouch Shovel" with lore "&6A shovel forged from the heart of the Nether||&6with an intense heat to cook sand clay and||&6cactus while digging.|| ||&2StickyItem ©" + +command /hottouchpurchase : + permission: obam.free + trigger: + argument is "pick": + set {_bal} to player's balance + {_bal} is less than 7500: + send "&cYou do not have enough tickets!" + stop + give player 1 {@smeltpick} + remove 7500 from player's balance + send "&aYou have purchased a &eHotTouch Pick&a for &e7500 Tickets" + send "&aYour balance is now &e%player's balance%" + argument is "shovel": + set {_bal} to player's balance + {_bal} is less than 10000: + send "&cYou do not have enough tickets!" + stop + give player 1 {@smeltshovel} + remove 10000 from player's balance + send "&aYou have purchased a &eHotTouch Shovel&a for &e10000 Tickets" + send "&aYour balance is now &e%player's balance%" + argument is "axe": + set {_bal} to player's balance + {_bal} is less than 5000: + send "&cYou do not have enough tickets!" + stop + give player 1 {@smeltaxe} + remove 5000 from player's balance + send "&aYou have purchased a &eHotTouch Axe&a for &e5000 Tickets" + send "&aYour balance is now &e%player's balance%" + +on break of iron ore or gold ore or netherrack or cobblestone: + name of player's tool is "&a&b&k&a&3HotTouch Pick" or "&a&b&k&a&3HotTouch Pickaxe": + event-block is iron ore: + cancel event + delete event-block + drop 1 iron ingot at location of event-block + damage player's tool by 1 + event-block is gold ore: + cancel event + delete event-block + drop 1 gold ingot at location of event-block + damage player's tool by 1 + event-block is netherrack: + cancel event + delete event-block + drop 1 nether brick item at location of event-block + damage player's tool by 1 + event-block is cobblestone: + cancel event + delete event-block + drop 1 stone at location of event-block + damage player's tool by 1 + +on break of sand or clay block or cactus or red sand: + name of player's tool is "&a&b&k&a&3HotTouch Shovel": + event-block is sand or red sand: + cancel event + delete event-block + drop 1 glass at location of event-block + damage player's tool by 1 + event-block is clay block: + cancel event + delete event-block + drop 1 hardened clay at location of event-block + damage player's tool by 1 + event-block is cactus: + cancel event + delete event-block + drop 1 cactus green at location of event-block + damage player's tool by 1 + +on break of cactus or oak wood or birch wood or spruce wood or jungle wood or acacia wood or dark oak wood: + name of player's tool is "&a&b&k&a&3HotTouch Axe": + event-block is cactus: + cancel event + delete event-block + drop 1 cactus green at location of event-block + damage player's tool by 1 + event-block is oak wood or birch wood or spruce wood or jungle wood or acacia wood or dark oak wood: + cancel event + set {_ran} to random integer between 1 and 6 + delete event-block + drop {_ran} of charcoal at location of event-block + damage player's tool by 1 + +command /ht : + permission: obam.smod + trigger: + argument is "pick": + give player {@smeltpick} + argument is "axe": + give player {@smeltaxe} + argument is "shovel": + give player {@smeltshovel} + send "&aHere is your thing" \ No newline at end of file diff --git a/OBAM-Survival Games/Obam-Fronts/Tested and Moved/landclaim.g.sk b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/landclaim.g.sk new file mode 100644 index 0000000..84c28cc --- /dev/null +++ b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/landclaim.g.sk @@ -0,0 +1,908 @@ +variables: + {db_claimedland.%uuid of player%} = 0 + {availableland.live.%uuid of player%} = 1 + {alert.fronts.%uuid of player%} = true + +on join: + {db_prizecheck.%uuid of player%} is set: + add {db_prizecheck.%uuid of player%} to {db_availableland.%uuid of player%} + send "&aYou have had &e%{db_prizecheck.%uuid of player%}%&a added to your Fronts balance!" to player + clear {db_prizecheck.%uuid of player%} + {played.%player%} is set: + set {played.%uuid of player%} to {played.%player%} + delete {played.%player%} + {played.%uuid of player%} is not set: + set {played.%uuid of player%} to true + {db_claimedland.%player%} is set: + set {db_claimedland.%uuid of player%} to {db_claimedland.%player%} + delete {db_claimedland.%player%} + {db_availableland.%player%} is set: + set {db_availableland.%uuid of player%} to {db_availableland.%player%} + delete {db_availableland.%player%} + {db_chunks.claim.count.%player%} is set: + set {db_chunks.claim.count.%uuid of player%} to {db_chunks.claim.count.%player%} + delete {db_chunks.claim.count.%player%} + {owned.chunks.%player%::*} is set: + loop {owned.chunks.%player%::*}: + set {chunk.live.%loop-index%} to uuid of player + add loop-index to {owned.chunks.%uuid of player%::*} + delete {land.live.%loop-index%::*} + delete {owned.chunks.%player%::*} + {loc.chunks.%player%::*} is set: + loop {loc.chunks.%player%::*}: + set {loc.chunks.%uuid of player%::%loop-index%} to loop-value + delete {loc.chunks.%player%::*} + {home.%player%.wild} is set: + set {home.%uuid of player%.wild} to {home.%player%.wild} + delete {home.%player%.wild} + {first.claim.%player%} is set: + set {first.claim.%uuid of player%} to {first.claim.%player%} + delete {first.claim.%player%} + +command /movedata: + permission: obam.admin + trigger: + loop {db_channel.global::*}: + set {db_claimedland.%loop-value%} to {claimedland.%loop-value%} + set {db_availableland.%loop-value%} to {availableland.%loop-value%} + +every 1 tick: + loop all players: + {chunk.live.%chunk at location of loop-player%} is not set: + {alert.notify.owner.%loop-player%} is not "Unclaimed": + {alert.fronts.%uuid of loop-player%} is true: + send "&a&lUnclaimed Front" to loop-player + set {alert.notify.owner.%loop-player%} to "Unclaimed" + {alert.notify.owner.%loop-player%} is not {chunk.live.%chunk at location of loop-player%}: + {chunk.live.%chunk at location of loop-player%} is not set: + {alert.notify.owner.%loop-player%} is not "Unclaimed": + {alert.fronts.%uuid of loop-player%} is true: + send "&a&lUnclaimed Front" to loop-player + set {alert.notify.owner.%loop-player%} to "Unclaimed" + {chunk.live.%chunk at location of loop-player%} is set: + {alert.fronts.%uuid of loop-player%} is true: + send "&a&lFront Claimed by: &e%{db_master.uuid::%{chunk.live.%chunk at location of loop-player%}%}%" to loop-player + set {alert.notify.owner.%loop-player%} to {chunk.live.%chunk at location of loop-player%} + {alert.notify.owner.%loop-player%} is not set: + {chunk.live.%chunk at location of loop-player%} is not set: + {alert.fronts.%uuid of loop-player%} is true: + send "&a&lUnclaimed Front" to loop-player + set {alert.notify.owner.%loop-player%} to "Unclaimed" + +#startfold +command /front [] [] []: + permission: obam.free + description: For all land related commands + usage: &c/front (claim, unclaim, add, remove, name) + aliases: /f + trigger: + argument 1 is not set: + message "&3-[&a&lFronts Claimed&3]-" + message "&6 %{db_claimedland.%uuid of player%}%" + send "&3-[&a&lPurchased Slots&3]-" to player + send "&6 %{db_availableland.%uuid of player%}%" + send "&3-[&a&lAvailible Slots&3]-" to player + send "&6 %{db_availableland.%uuid of player%} - {db_claimedland.%uuid of player%}%" to player + stop + #subfold @help + argument 1 is "help" or "h": + message "&3--[&6&lFronts Help&3]--" + message "&cRequired = [] Optional = ()" + message "&a * /front or f" + message "&7 Shows your land claiming statistics" + message "&a * /front:f [Info:i/Stats:s]" + message "&7 Shows information about the land you are standing in" + message "&a * /front:f [Claim:c/Unclaim:u]" + message "&7 Claim/Unclaim the land you are standing at" + player has permission "land.bypass": + message "&a * /land bypass" + message "&7 Bypass all claimed land" + stop + #subfold @stats + argument 1 is "stats" or "info" or "s" or "i": + {chunk.live.%chunk at location of player%} is set: + {chunk.live.%chunk at location of player%} is not "Town": + message "&3--[&lFront Owner&3]--" + message "&a * %{db_master.uuid::%{chunk.live.%chunk at location of loop-player%}%}%" + send "&3---[&lFront Name&3]--" + {chunk.name.%chunk at location of player%} is not set: + send "&a * Name not set" + stop + send "&a * %{chunk.name.%chunk at location of player%}%" + stop + message "&6This area is not currently owned by a player." + stop + #subfold @error + argument 1 is "error": + player has permission "land.bypass": + message "&cIncorrect usage. Try '/front [claim, unclaim, name, bypass] (player)'" + player does not have permission "land.bypass": + message "&cIncorrect usage. Try '/front [claim, unclaim, name] (player)'" + message "&7 ()'s = Optional, []'s = Required." + stop + #subfold @claim + argument 1 is "claim" or "c": + {chunk.live.%chunk at location of player%} is set: + message "&cThis land has already been claimed." + stop + loop blocks in radius 50 of player: + player cannot build at the loop-block: + message "&cYou can not claim land in this area." + stop + {db_claimedland.%uuid of player%} is greater than or equal to {db_availableland.%uuid of player%}: + send "&cYou do not have enough Availiable land for this action! Please purchase more from &7Fronts Ferdinand &cat Town Spawn!" to player + stop + {first.claim.%uuid of player%} is true: + set {_bal} to player's balance + {_bal} is less than 2000: + send "&cYou do not have enough tickets to do this!" to player + stop + {db_chunks.claim.count.%uuid of player%} is not set: + set {db_chunks.claim.count.%uuid of player%} to 0 + add 1 to {db_chunks.claim.count.%uuid of player%} + set {chunk.live.%chunk at location of player%} to uuid of player + add chunk at location of player to {owned.chunks.%uuid of player%::*} + set {chunk.name.%chunk at location of player%} to "%{db_chunks.claim.count.%uuid of player%}%" + set {loc.chunks.%uuid of player%::%chunk at location of player%} to location of player + message "&6You now own this Front." + {db_claimedland.%uuid of player%} is 0: + set {home.%uuid of player%.wild} to location of player + add 1 to {db_claimedland.%uuid of player%} + {first.claim.%uuid of player%} is true: + remove 2000 from player's balance + send "&aYou have used &e2000 Tickets&a to claim this Front" to player + send "&aYou have &e%player's balance%&a remaining" to player + stop + send "&aThis was your first land claim. It was free. The next one will cost &e2000 Tickets!" to player + set {first.claim.%uuid of player%} to true + stop + #subfold @unclaim + argument 1 is "unclaim" or "u": + {chunk.live.%chunk at location of player%} is not set: + message "&cThis land has not been claimed." + stop + {chunk.live.%chunk at location of player%} is not uuid of player: + message "&cYou do not own this land." + stop + remove 1 from {db_claimedland.%uuid of player%} + set {_chunk} to chunk at location of player + chunk at location of {home.%uuid of player%.wild} is chunk at location of player: + clear {home.%uuid of player%.wild} + send "&cYour home location has been cleared!" to player + clear {chunk.live.%chunk at location of player%} + clear {chunk.name.%chunk at location of player%} + delete {loc.chunks.%uuid of player%::%chunk at location of player%} + loop {flags.%chunk at location of player%::*}: + loop {flags.%chunk at location of player%::%loop-index%::*}: + delete {flags.%chunk at location of player%::%loop-index-1%::%loop-index-2%} + delete {flags.%chunk at location of player%::%loop-index%} + loop {owned.chunks.%uuid of player%::*}: + chunk at location of player is {owned.chunks.%uuid of player%::%loop-index%} + delete {owned.chunks.%uuid of player%::%loop-index%} + message "&6You have unclaimed this Front." + stop + #subfold @bypass + argument 1 is "bypass": + player has permission "land.bypass": + {bypassland.%uuid of player%} is true: + clear {bypassland.%uuid of player%} + message "&6You have finished bypassing claimed land." + stop + set {bypassland.%uuid of player%} to true + message "&6You can now bypass claimed land." + stop + message "&cYou do not have permission to use this command." + stop + #subfold @name + argument 1 is "name" or "n": + {chunk.live.%chunk at location of player%} is not set: + message "&cThis land has not been claimed." + stop + {chunk.live.%chunk at location of player%} is not uuid of player: + {flags.%chunk at location of player%::admin::everyone} is not set: + set {flags.%chunk at location of player%::admin::everyone} to false + {flags.%chunk at location of player%::admin::%uuid of player%} is not set: + set {flags.%chunk at location of player%::admin::%uuid of player%} to false + {flags.%chunk at location of player%::admin::everyone} is false: + {flags.%chunk at location of player%::admin::%uuid of player%} is false: + send "&cYou do not have permission to do this!" + stop + argument 2 is "set": + send "&cThat is an invalid name!" to player + stop + argument 2 is not set: + send "&cPlease choose a name!" to player + stop + message "&aYou have named this Front to &e%argument 2%" + set {chunk.name.%chunk at location of player%} to "%argument 2%" + set {loc.chunks.%uuid of player%::%chunk at location of player%} to location of player + stop + #subfold @list + argument 1 is "list" or "l": + argument 2 is not set: + loop {loc.chunks.%uuid of player%::*}: + set {_loc} to {loc.chunks.%uuid of player%::%loop-index%} + set {_chunk} to chunk at location of {_loc} + set {_chunk.name} to {chunk.name.%{_chunk}%} + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {chunk.name.%{_chunk}%} is not set: + set {chunk.name.%{_chunk}%} to "%{_count}%" + set {_chunk.name} to {chunk.name.%{_chunk}%} + {_chunk.name} is not set: + set {_chunk.name} to "&cNot Named" + send "&a%{_count}%.......%{_chunk}%....%{_chunk.name}%" to player + stop + argument 2 is set: + message "You can only list your own fronts at the moment." + stop + #subfold @travel + argument 1 is "travel" or "t": + argument 3 is not set: + argument 2 is "set": + {chunk.live.%chunk at location of player%} is not set: + message "&cThis land has not been claimed." + stop + {chunk.live.%chunk at location of player%} is not uuid of player: + message "&cThis is not your land!" + stop + set {loc.chunks.%uuid of player%::%chunk at location of player%} to location of player + send "&aYour travel location for this area, has been moved" to player + stop + {chunk.live.%chunk at location of player%} is not set: + message "&cYou can only do this in &eTown&c, or on your land!" + stop + {chunk.live.%chunk at location of player%} is not uuid of player: + {chunk.live.%chunk at location of player%} is not "Town": + {flags.%chunk at location of player%::teleport::everyone} is not set: + set {flags.%chunk at location of player%::teleport::everyone} to false + {flags.%chunk at location of player%::teleport::everyone} is false: + {flags.%chunk at location of player%::teleport::%uuid of player%} is not set: + set {flags.%chunk at location of player%::teleport::%uuid of player%} to false + {flags.%chunk at location of player%::teleport::%uuid of player%} is false: + message "&cYou can only do this in &eTown&c, or on your land!" + stop + loop {loc.chunks.%uuid of player%::*}: + set {_loc} to loop-value + set {_chunk} to chunk at location of {_loc} + set {_chunk.name} to {chunk.name.%{_chunk}%} + {_chunk.name} is argument 2: + send "&aTeleporting to &e%argument 2%" to player + teleport player to {_loc} + stop + send "&cYou do not have a Front named &e%argument 2% &cin this world!" + stop + argument 3 is set: + {chunk.live.%chunk at location of player%} is not set: + message "&cYou can only do this in &eTown&c, or on your land!" + stop + {chunk.live.%chunk at location of player%} is not uuid of player: + {chunk.live.%chunk at location of player%} is not "Town": + {flags.%chunk at location of player%::teleport::everyone} is not set: + set {flags.%chunk at location of player%::teleport::everyone} to false + {flags.%chunk at location of player%::teleport::everyone} is false: + {flags.%chunk at location of player%::teleport::%player%} is not set: + set {flags.%chunk at location of player%::teleport::%player%} to false + {flags.%chunk at location of player%::teleport::%player%} is false: + message "&cYou can only do this in &eTown&c, or on your land!" + stop + loop {loc.chunks.%{db_name.%argument 3%}%::*}: + set {_loc} to loop-value + set {_chunk} to chunk at location of {_loc} + set {_chunk.name} to {chunk.name.%{_chunk}%} + {_chunk.name} is argument 2: + {flags.%{_chunk}%::teleport::everyone} is not set: + set {flags.%{_chunk}%::teleport::everyone} to false + {flags.%{_chunk}%::teleport::%uuid of player%} is not set: + set {flags.%{_chunk}%::teleport::%uuid of player%} to false + {flags.%{_chunk}%::teleport::everyone} is false: + {flags.%{_chunk}%::teleport::%uuid of player%} is false + send "&cYou do not have permission to go here!" to player + stop + send "&aTeleporting to &e%argument 2%" to player + teleport player to {_loc} + stop + send "&c%argument 3% does not have a Front named &e%argument 2% &cin this world!" + stop + argument 1 is "alert": + {alert.fronts.%uuid of player%} is not set: + send "&aFront alerts are now &eoff" + set {alert.fronts.%uuid of player%} to false + stop + {alert.fronts.%uuid of player%} is false: + send "&aFront alerts are now &eon" + set {alert.fronts.%uuid of player%} to true + stop + {alert.fronts.%uuid of player%} is true: + send "&aFront alerts are now &eoff" + set {alert.fronts.%uuid of player%} to false + stop + else: + make player execute command "f error" + stop +#endfold +on quit: + {bypassland.%uuid of player%} is true: + clear {bypassland.%uuid of player%} + +on place: + {bypassland.%uuid of player%} is true: + stop + {chunk.live.%chunk at location of block%} is set: + block is not tnt or water or lava: + {flags.%chunk at location of block%::build::everyone} is true: + stop + {flags.%chunk at location of block%::build::%uuid of player%} is true: + stop + message "&cThis land is owned by %{db_master.uuid::%{chunk.live.%chunk at location of block%}%}%." + cancel event + +on break: + event-block is not water or lava or milk: + {bypassland.%uuid of player%} is true: + stop + {chunk.live.%chunk at location of event-block%} is set: + {flags.%chunk at location of event-block%::build::everyone} is true: + set {_perm} to true + {flags.%chunk at location of event-block%::build::%uuid of player%} is true: + set {_perm} to true + {_perm} is true: + event-block is a chest or a furnace or a dispenser or a hopper or a brewing stand or a dropper or a trapped chest or a beacon: + set {_type} to checked + {flags.%chunk at location of event-block%::container::everyone} is true: + stop + {flags.%chunk at location of event-block%::container::%uuid of player%} is true: + stop + event-block is a chest: + {flags.%chunk at location of event-block%::conchest::everyone} is true: + stop + {flags.%chunk at location of event-block%::conchest::%uuid of player%} is true: + stop + event-block is a furnace: + {flags.%chunk at location of event-block%::confurnace::everyone} is true: + stop + {flags.%chunk at location of event-block%::confurnace::%uuid of player%} is true: + stop + event-block is a dispenser: + {flags.%chunk at location of event-block%::condispenser::everyone} is true: + stop + {flags.%chunk at location of event-block%::condispenser::%uuid of player%} is true: + stop + event-block is a hopper: + {flags.%chunk at location of event-block%::conhopper::everyone} is true: + stop + {flags.%chunk at location of event-block%::conhopper::%uuid of player%} is true: + stop + event-block is a brewing stand: + {flags.%chunk at location of event-block%::conbrewing::everyone} is true: + stop + {flags.%chunk at location of event-block%::conbrewing::%uuid of player%} is true: + stop + event-block is a dropper: + {flags.%chunk at location of event-block%::condropper::everyone} is true: + stop + {flags.%chunk at location of event-block%::condropper::%uuid of player%} is true: + stop + event-block is a trapped chest: + {flags.%chunk at location of event-block%::contrapped::everyone} is true: + stop + {flags.%chunk at location of event-block%::contrapped::%uuid of player%} is true: + stop + event-block is a beacon: + {flags.%chunk at location of event-block%::conbeacon::everyone} is true: + stop + {flags.%chunk at location of event-block%::conbeacon::%uuid of player%} is true: + stop + event-block is a door or a anvil or a note block or a lever or a stone button or a wood button or a jukebox or a trapdoor or a fence gate or a enchantment table or a redstone comparator or a repeater: + set {_type} to checked + {flags.%chunk at location of event-block%::use::everyone} is true: + stop + {flags.%chunk at location of event-block%::use::%uuid of player%} is true: + stop + event-block is a door: + {flags.%chunk at location of event-block%::usedoor::everyone} is true: + stop + {flags.%chunk at location of event-block%::usedoor::%uuid of player%} is true: + stop + event-block is a anvil: + {flags.%chunk at location of event-block%::useanvil::everyone} is true: + stop + {flags.%chunk at location of event-block%::useanvil::%uuid of player%} is true: + stop + event-block is a note block: + {flags.%chunk at location of event-block%::usenote::everyone} is true: + stop + {flags.%chunk at location of event-block%::usenote::%uuid of player%} is true: + stop + event-block is a jukebox: + {flags.%chunk at location of event-block%::usejuke::everyone} is true: + stop + {flags.%chunk at location of event-block%::usejuke::%uuid of player%} is true: + stop + event-block is a lever: + {flags.%chunk at location of event-block%::uselever::everyone} is true: + stop + {flags.%chunk at location of event-block%::uselever::%uuid of player%} is true: + stop + event-block is a stone button: + {flags.%chunk at location of event-block%::usestonebutton::everyone} is true: + stop + {flags.%chunk at location of event-block%::usestonebutton::%uuid of player%} is true: + stop + event-block is a wood button: + {flags.%chunk at location of event-block%::usewoodbutton::everyone} is true: + stop + {flags.%chunk at location of event-block%::usewoodbutton::%uuid of player%} is true: + stop + event-block is a trapdoor: + {flags.%chunk at location of event-block%::usetrap::everyone} is true: + stop + {flags.%chunk at location of event-block%::usetrap::%uuid of player%} is true: + stop + event-block is a fence gate: + {flags.%chunk at location of event-block%::usefence::everyone} is true: + stop + {flags.%chunk at location of event-block%::usefence::%uuid of player%} is true: + stop + event-block is a enchantment table: + {flags.%chunk at location of event-block%::useenchant::everyone} is true: + stop + {flags.%chunk at location of event-block%::useenchant::%uuid of player%} is true: + stop + event-block is a redstone comparator: + {flags.%chunk at location of event-block%::usecomparator::everyone} is true: + stop + {flags.%chunk at location of event-block%::usecomparator::%uuid of player%} is true: + stop + event-block is a repeater: + {flags.%chunk at location of event-block%::userepeater::everyone} is true: + stop + {flags.%chunk at location of event-block%::userepeater::%uuid of player%} is true: + stop + {_type} is not set: + stop + message "&cThis land is owned by %{db_master.uuid::%{chunk.live.%chunk at location of event-block%}%}%." + cancel event + +on place of tnt: + {bypassland.%uuid of player%} is true: + stop + loop blocks in radius 10 of block: + {chunk.live.%chunk at location of loop-block%} is set: + {flags.%chunk at location of loop-block%::fronttnt} is false: + cancel event + message "&cYou can not use explosives here." + stop + +on explode: + entity is creeper + loop blocks in radius 10 of entity: + {chunk.live.%chunk at location of loop-block%} is set: + cancel event + set {_safe} to true + {_safe} is set: + create safe explosion of force 3 at event-location + +on damage of a entity: + victim is a chicken or a cow or a mooshroom or a horse or a sheep or a pig or a wolf or a ocelot or a villager or a squid: + attacker is a player: + victim is a cow: + attacker's tool is a empty bucket: + stop + loop blocks in radius 3 of victim: + {bypassland.%uuid of attacker%} is true: + stop + {chunk.live.%chunk at location of loop-block%} is not attacker: + {flags.%chunk at location of loop-block%::entity::everyone} is not set: + set {flags.%chunk at location of loop-block%::entity::everyone} to false + {flags.%chunk at location of loop-block%::entity::%uuid of attacker%} is not set: + set {flags.%chunk at location of loop-block%::entity::%uuid of attacker%} to false + {flags.%chunk at location of loop-block%::entity::everyone} is false: + {flags.%chunk at location of loop-block%::entity::%uuid of attacker%} is true: + stop + {flags.%chunk at location of loop-block%::entity::everyone} is true: + stop + send "&cThis area is protected!" to attacker + cancel event + +on right click on lead: + {bypassland.%uuid of player%} is true: + stop + {chunk.live.%chunk at location of event-player%} is set: + {chunk.live.%chunk at location of event-player%} is not event-player: + send "&cThis area is protected!" to event-player + cancel event + stop trigger + +on right click on a door or a anvil or a note block or a lever or a stone button or a wood button or a jukebox or a trapdoor or a fence gate or a enchantment table or a redstone comparator or a repeater or a chest or a furnace or a dispenser or a hopper or a brewing stand or a dropper or a trapped chest or a beacon: + {bypassland.%uuid of player%} is true: + stop + {chunk.live.%chunk at location of event-block%} is set: + event-block is a chest or a furnace or a dispenser or a hopper or a brewing stand or a dropper or a trapped chest or a beacon: + {flags.%chunk at location of event-block%::container::everyone} is true: + stop + {flags.%chunk at location of event-block%::container::%uuid of player%} is true: + stop + event-block is a chest: + {flags.%chunk at location of event-block%::conchest::everyone} is true: + stop + {flags.%chunk at location of event-block%::conchest::%uuid of player%} is true: + stop + event-block is a furnace: + {flags.%chunk at location of event-block%::confurnace::everyone} is true: + stop + {flags.%chunk at location of event-block%::confurnace::%uuid of player%} is true: + stop + event-block is a dispenser: + {flags.%chunk at location of event-block%::condispenser::everyone} is true: + stop + {flags.%chunk at location of event-block%::condispenser::%uuid of player%} is true: + stop + event-block is a hopper: + {flags.%chunk at location of event-block%::conhopper::everyone} is true: + stop + {flags.%chunk at location of event-block%::conhopper::%uuid of player%} is true: + stop + event-block is a brewing stand: + {flags.%chunk at location of event-block%::conbrewing::everyone} is true: + stop + {flags.%chunk at location of event-block%::conbrewing::%uuid of player%} is true: + stop + event-block is a dropper: + {flags.%chunk at location of event-block%::condropper::everyone} is true: + stop + {flags.%chunk at location of event-block%::condropper::%uuid of player%} is true: + stop + event-block is a trapped chest: + {flags.%chunk at location of event-block%::contrapped::everyone} is true: + stop + {flags.%chunk at location of event-block%::contrapped::%uuid of player%} is true: + stop + event-block is a beacon: + {flags.%chunk at location of event-block%::conbeacon::everyone} is true: + stop + {flags.%chunk at location of event-block%::conbeacon::%uuid of player%} is true: + stop + event-block is a door or a anvil or a note block or a lever or a stone button or a wood button or a jukebox or a trapdoor or a fence gate or a enchantment table or a redstone comparator or a repeater: + {flags.%chunk at location of event-block%::use::everyone} is true: + stop + {flags.%chunk at location of event-block%::use::%uuid of player%} is true: + stop + event-block is a door: + {flags.%chunk at location of event-block%::usedoor::everyone} is true: + stop + {flags.%chunk at location of event-block%::usedoor::%uuid of player%} is true: + stop + event-block is a anvil: + {flags.%chunk at location of event-block%::useanvil::everyone} is true: + stop + {flags.%chunk at location of event-block%::useanvil::%uuid of player%} is true: + stop + event-block is a note block: + {flags.%chunk at location of event-block%::usenote::everyone} is true: + stop + {flags.%chunk at location of event-block%::usenote::%uuid of player%} is true: + stop + event-block is a jukebox: + {flags.%chunk at location of event-block%::usejuke::everyone} is true: + stop + {flags.%chunk at location of event-block%::usejuke::%uuid of player%} is true: + stop + event-block is a lever: + {flags.%chunk at location of event-block%::uselever::everyone} is true: + stop + {flags.%chunk at location of event-block%::uselever::%uuid of player%} is true: + stop + event-block is a stone button: + {flags.%chunk at location of event-block%::usestonebutton::everyone} is true: + stop + {flags.%chunk at location of event-block%::usestonebutton::%uuid of player%} is true: + stop + event-block is a wood button: + {flags.%chunk at location of event-block%::usewoodbutton::everyone} is true: + stop + {flags.%chunk at location of event-block%::usewoodbutton::%uuid of player%} is true: + stop + event-block is a trapdoor: + {flags.%chunk at location of event-block%::usetrap::everyone} is true: + stop + {flags.%chunk at location of event-block%::usetrap::%uuid of player%} is true: + stop + event-block is a fence gate: + {flags.%chunk at location of event-block%::usefence::everyone} is true: + stop + {flags.%chunk at location of event-block%::usefence::%uuid of player%} is true: + stop + event-block is a enchantment table: + {flags.%chunk at location of event-block%::useenchant::everyone} is true: + stop + {flags.%chunk at location of event-block%::useenchant::%uuid of player%} is true: + stop + event-block is a redstone comparator: + {flags.%chunk at location of event-block%::usecomparator::everyone} is true: + stop + {flags.%chunk at location of event-block%::usecomparator::%uuid of player%} is true: + stop + event-block is a repeater: + {flags.%chunk at location of event-block%::userepeater::everyone} is true: + stop + {flags.%chunk at location of event-block%::userepeater::%uuid of player%} is true: + stop + message "&cThis land is owned by %{db_master.uuid::%{chunk.live.%chunk at location of event-block%}%}%." + cancel event + +on right click on horse: + {bypassland.%uuid of player%} is true: + stop + {chunk.live.%chunk at location of event-player%} is set: + {chunk.live.%chunk at location of event-player%} is not event-player: + send "&cThis area is protected!" to event-player + cancel event + stop trigger + +on damage of a player: + attacker is a player: + loop blocks in radius 10 of victim: + {chunk.live.%chunk at location of loop-block%} is set: + send "&cThis area is protected!" to attacker + cancel event + stop trigger + +command /townset: + permission: obam.admin + trigger: + set {town.spawn} to location of player + +command /town: + permission: obam.free + trigger: + {chunk.live.%chunk at location of player%} is not player: + {chunk.live.%chunk at location of player%} is not "Town": + send "&cYou can only do this in Town, or on your own land!" to player + {chunk.live.%chunk at location of player%} is not set: + message "&cYou must do this on your land!" + stop + teleport player to {town.spawn} + +on sign change: + line 1 of block is "warp" or "[warp]": + {chunk.live.%chunk at location of player%} is uuid of player: + line 2 of block is "town": + set line 1 of block to "[WARP]" + set line 2 of block to "TOWN" + stop + send "&cYou can not do that here!" to player + cancel event + +on right click on sign: + line 1 of block is "[WARP]": + line 2 of block is "TOWN": + {chunk.live.%chunk at location of player%} is not player: + {chunk.live.%chunk at location of player%} is not "Town": + send "&cYou can only do this on your own land!" to player + {chunk.live.%chunk at location of player%} is not set: + message "&cYou must do this on your land!" + stop + teleport player to {town.spawn} + +command /clearland []: + permission: obam.admin + trigger: + argument is not set: + message "Please enter a name." + stop + argument is not "confirm": + {db_name.%argument%} does not exist: + message "&cThat player does not exist or has not converted to UUID." + stop + message "&cYou have five seconds to use &7/clearland confirm &cto finish." + set {clearland.confirm} to argument + wait 5 seconds + delete {clearland.confirm} + argument is "confirm": + {clearland.confirm} is set: + set {_who} to {clearland.confirm} + send "&cPreparing to delete &e%size of {owned.chunks.%{db_name.%{_who}%}%::*}% &cchunks...." to player + wait 0.5 seconds + loop {owned.chunks.%{db_name.%{_who}%}%::*}: + set {_chunk} to {owned.chunks.%{db_name.%{_who}%}%::%loop-index-1%} + send "&cClearing chunk &e%loop-index-1%" to player + wait 0.5 seconds + clear {chunk.live.%{_chunk}%} + clear {chunk.name.%{_chunk}%} + loop {flags.%{_chunk}%::*}: + delete {flags.%{_chunk}%::loop-index-2::*} + delete {flags.%{_chunk}%::*} + send "&aChunk &e%loop-index-1% &acleared" to player + send "&cClearing Home spawn" to player + clear {home.%{db_name.%{_who}%}%.wild} + send "&cManginling variables" to player + set {claimedland.%{db_name.%{_who}%}%} to 0 + clear {owned.chunks.%{db_name.%{_who}%}%::*} + send "&aLand clear complete!" to player + stop + message "&cTo slow. Try again." + +command /travelmove: + permission: obam.free + trigger: + {chunk.live.%chunk at location of player%} is not set: + message "&cThis land has not been claimed." + stop + {chunk.live.%chunk at location of player%} is not uuid of player: + message "&cThis is not your land!" + stop + set {loc.chunks.%uuid of player%::%chunk at location of player%} to location of player + send "&aYour travel location for this area, has been moved" to player + +command /sethome: + permission: obam.free + trigger: + {chunk.live.%chunk at location of player%} is not set: + message "&cYou must do this on your land!" + stop + {chunk.live.%chunk at location of player%} is not uuid of player: + message "&cYou must do this on your land!" + stop + set {home.%uuid of player%.wild} to location of player + send "&aYour home has been set!" to player + +on command "/home": + cancel event + {chunk.live.%chunk at location of player%} is not player: + {chunk.live.%chunk at location of player%} is not "Town": + {flags.%chunk at location of player%::teleport::everyone} is not set: + set {flags.%chunk at location of player%::teleport::everyone} to false + {flags.%chunk at location of player%::teleport::%uuid of player%} is not set: + set {flags.%chunk at location of player%::teleport::%uuid of player%} to false + {flags.%chunk at location of player%::teleport::everyone} is false: + {flags.%chunk at location of player%::teleport::%uuid of player%} is false: + send "&cYou can only do this in Town, or on your own land!" to player + stop + {chunk.live.%chunk at location of player%} is not set: + message "&cYou must do this on your land!" + stop + teleport player to {home.%uuid of player%.wild} + +on command "/mv spawn": + cancel event + {chunk.live.%chunk at location of player%} is not player: + {chunk.live.%chunk at location of player%} is not "Town": + send "&cYou can only do this in Town, or on your own land!" to player + stop + {chunk.live.%chunk at location of player%} is not set: + message "&cYou must do this on your land!" + stop + teleport player to {home.%uuid of player%.wild} + +on command "/mvspawn": + cancel event + {chunk.live.%chunk at location of player%} is not player: + {chunk.live.%chunk at location of player%} is not "Town": + send "&cYou can only do this in Town, or on your own land!" to player + stop + {chunk.live.%chunk at location of player%} is not set: + message "&cYou must do this on your land!" + stop + teleport player to {home.%uuid of player%.wild} + +on bed enter: + set {bed.%uuid of event-player%.wild} to true + set {bed.owner.%event-block%} to uuid of event-player + +on break of a bed: + {bed.owner.%event-block%} is set: + clear {bed.%{bed.owner.%event-block%}%.wild} + clear {bed.owner.%event-block%} + +on respawn: + wait 1 second + execute console command "effect %event-player% clear" + {home.%uuid of player%.wild} is set: + {bed.%uuid of event-player%.wild} is set: + wait 1 second + stop + wait 0.3 seconds + teleport player to {home.%uuid of player%.wild} + +command /townclaim: + permission: obam.admin + trigger: + set {chunk.live.%chunk at location of player%} to "Town" + +command /owner : + permission: obam.admin + trigger: + {db_chunks.claim.count.%{db_name.%argument%}%} is not set: + set {db_chunks.claim.count.%{db_name.%argument%}%} to 0 + add 1 to {db_chunks.claim.count.%{db_name.%argument%}%} + set {chunk.live.%chunk at location of player%} to {db_name.%argument%} + add chunk at location of player to {owned.chunks.%{db_name.%argument%}%::*} + set {chunk.name.%chunk at location of player%} to "%{db_chunks.claim.count.%{db_name.%argument%}%}%" + set {loc.chunks.%{db_name.%argument%}%::%chunk at location of player%} to location of player + message "&6%argument% now owns this Front." + send "&cPlease remember to adjust for tickets!" + +on command "/spawn": + {chunk.live.%chunk at location of player%} is not player: + {chunk.live.%chunk at location of player%} is not "Town": + send "&cYou can only do this in Town, or on your own land!" to player + cancel event + stop + {chunk.live.%chunk at location of player%} is not set: + message "&cYou must do this on your land!" + cancel event + stop + +on bucket fill: + {chunk.live.%chunk at location of player%} is set: + {chunk.live.%chunk at location of player%} is not player: + {flags.%chunk at location of player%::bucket::everyone} is not set: + set {flags.%chunk at location of player%::bucket::everyone} to false + {flags.%chunk at location of player%::bucket::%uuid of player%} is not set: + set {flags.%chunk at location of player%::bucket::%uuid of player%} to false + {flags.%chunk at location of player%::bucket::everyone} is false: + {flags.%chunk at location of player%::bucket::%uuid of player%} is true: + stop + {flags.%chunk at location of player%::bucket::everyone} is true: + stop + targeted block is water: + {flags.%chunk at location of player%::bucketwater::everyone} is true: + stop + {flags.%chunk at location of player%::bucketwater::%uuid of player%} is true: + stop + targeted block is lava: + {flags.%chunk at location of player%::bucketlava::everyone} is true: + stop + {flags.%chunk at location of player%::bucketlava::%uuid of player%} is true: + stop + send "&cYou do not have permission to do this!" + cancel event + +on bucket empty: + {chunk.live.%chunk at location of player%} is set: + {chunk.live.%chunk at location of player%} is not player: + {chunk.live.%chunk at location of player%.%uuid of player%} is not set: + {flags.%chunk at location of player%::bucket::everyone} is not set: + set {flags.%chunk at location of player%::bucket::everyone} to false + {flags.%chunk at location of player%::bucket::%uuid of player%} is not set: + set {flags.%chunk at location of player%::bucket::%uuid of player%} to false + {flags.%chunk at location of player%::bucket::everyone} is false: + {flags.%chunk at location of player%::bucket::%uuid of player%} is true: + stop + {flags.%chunk at location of player%::bucket::everyone} is true: + stop + player's tool is water bucket: + {flags.%chunk at location of player%::bucketwater::everyone} is true: + stop + {flags.%chunk at location of player%::bucketwater::%uuid of player%} is true: + stop + player's tool is lava bucket: + {flags.%chunk at location of player%::bucketlava::everyone} is true: + stop + {flags.%chunk at location of player%::bucketlava::%uuid of player%} is true: + stop + send "&cYou do not have permission to do this!" + cancel event + +command /claimedset : + permission: obam.admin + trigger: + set {claimedland.%{db_name.%player-arg%}%} to argument 2 + send "&e%player-arg%&a claimed balance set to &e%argument 2%" + +command /frontlandadd : + permission: obam.admin + trigger: + {availibleland.%{db_name.%argument 1%}%} is not set: + set {availibleland.%{db_name.%argument 1%}%} to 1 + add argument 2 to {availibleland.%{db_name.%argument 1%}%} + log "%date%%argument 2% plots added to %argument 1%'s availible land. Their number is now %{availibleland.%{db_name.%argument 1%}%}" to "logs/fronts/LAND-ADDITIONS.log" + +on first join: + teleport player to {town.spawn} + +on spawn: + {chunk.live.%chunk at event-location%} is "Town": + cancel event diff --git a/OBAM-Survival Games/Obam-Fronts/Tested and Moved/lightbow.g.sk b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/lightbow.g.sk new file mode 100644 index 0000000..ad52016 --- /dev/null +++ b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/lightbow.g.sk @@ -0,0 +1,50 @@ +options: + lightbow: bow named "&3Bow of Light" with lore "&6Light your way from afar||&6with this magical bow.|| ||&c-1 Torch Per Use" + +on script load: + register new shaped recipe for {@lightbow} using glowstone dust, glowstone dust, glowstone dust, glowstone dust, bow, glowstone dust, glowstone dust, glowstone dust, glowstone dust + +command /lightbow: + permission: obam.smod + trigger: + give player 1 {@lightbow} + send "&aHere is your thing" + +on right click with bow: + name of player's tool contains "&3Bow of Light": + cancel event + player does not have a torch: + send "&cYou do not have any torches" to player + stop + damage player's tool by 1 + set {_block} to player's target block + block above {_block} is air: + make player shoot item projectile torch at speed 5 + wait 3 ticks + set block above {_block} to torch + remove 1 torch from player + stop + block west of {_block} is air: + make player shoot item projectile torch at speed 5 + wait 3 ticks + set block west of {_block} to torch + remove 1 torch from player + stop + block south of {_block} is air: + make player shoot item projectile torch at speed 5 + wait 3 ticks + set block south of {_block} to torch + remove 1 torch from player + stop + block east of {_block} is air: + make player shoot item projectile torch at speed 5 + wait 3 ticks + set block east of {_block} to torch + remove 1 torch from player + stop + block north of {_block} is air: + make player shoot item projectile torch at speed 5 + wait 3 ticks + set block north of {_block} to torch + remove 1 torch from player + stop diff --git a/Obam-Tools/eggification.sk b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/projeggtiles.g.sk similarity index 60% rename from Obam-Tools/eggification.sk rename to OBAM-Survival Games/Obam-Fronts/Tested and Moved/projeggtiles.g.sk index 0bc9c3d..ad5903d 100644 --- a/Obam-Tools/eggification.sk +++ b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/projeggtiles.g.sk @@ -1,104 +1,139 @@ options: - egg: snowball;&3Projeggtile Capture Ball;&6Capture the essence of various creatures||&6by tossing your balls at them. - egg2: snowball;&3Projeggtile &2Creeper &3Ball;&6Heavily reinforced to prevent even the||&6most explosive creepers from escaping! - egg3: snowball;&3Projeggtile &7Skeleton &3Ball;&6An ironic prison of bones made to hold||&6a skeleton, made from its own kin! - egg4: snowball;&3Projeggtile &aZombie &dPigman &3Ball;&6A containment area with a nugget inside||&6to lure and keep the pigman content! - egg5: snowball;&3Projeggtile &aZombie &3Ball;&6Layered in flesh to make even the||&6loneliest zombie feel at home! - egg6: snowball;&3Projeggtile &4Spider &3Ball;&6Tangles an eight legged bugger||&6into a silky woven sack! + egg: snowball named "&3Projeggtile Capture Ball" with lore "&6Capture the essence of various creatures||&6by tossing your balls at them." + egg2: snowball named "&3Projeggtile &2Creeper &3Ball" with lore "&6Heavily reinforced to prevent even the||&6most explosive creepers from escaping!" + egg3: snowball named "&3Projeggtile &7Skeleton &3Ball" with lore "&6An ironic prison of bones made to hold||&6a skeleton, made from its own kin!" + egg4: snowball named "&3Projeggtile &aZombie &dPigman &3Ball" with lore "&6A containment area with a nugget inside||&6to lure and keep the pigman content!" + egg5: snowball named "&3Projeggtile &aZombie &3Ball" with lore "&6Layered in flesh to make even the||&6loneliest zombie feel at home!" + egg6: snowball named "&3Projeggtile &4Spider &3Ball" with lore "&6Tangles an eight legged bugger||&6into a silky woven sack!" on script load: - register new shaped recipe for mooshroom spawn egg using red mushroom, red mushroom, red mushroom, red mushroom, cow spawn egg, red mushroom, red mushroom, red mushroom, red mushroom - register new shaped recipe for named item stack from "{@egg2}" using named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}", gunpowder, named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}" - register new shaped recipe for named item stack from "{@egg3}" using named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}", bone, named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}" - register new shaped recipe for named item stack from "{@egg4}" using named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}", gold nugget, named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}" - register new shaped recipe for named item stack from "{@egg5}" using named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}", rotten flesh, named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}" - register new shaped recipe for named item stack from "{@egg6}" using named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}", string, named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}", named item stack from "{@egg}" + register new shaped recipe for {@egg2} using {@egg}, {@egg}, {@egg}, {@egg}, gunpowder, {@egg}, {@egg}, {@egg}, {@egg} + register new shaped recipe for {@egg3} using {@egg}, {@egg}, {@egg}, {@egg}, bone, {@egg}, {@egg}, {@egg}, {@egg} + register new shaped recipe for {@egg4} using {@egg}, {@egg}, {@egg}, {@egg}, gold nugget, {@egg}, {@egg}, {@egg}, {@egg} + register new shaped recipe for {@egg5} using {@egg}, {@egg}, {@egg}, {@egg}, rotten flesh, {@egg}, {@egg}, {@egg}, {@egg} + register new shaped recipe for {@egg6} using {@egg}, {@egg}, {@egg}, {@egg}, string, {@egg}, {@egg}, {@egg}, {@egg} + +command /captureball [] []: + aliases: cb + permission: obam.smod + trigger: + argument 1 is "capture": + player doesn't have space for 1 * argument 2 of {@egg}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@egg} to player + message "&aHere are your things." + stop + argument 1 is "creeper": + player doesn't have space for 1 * argument 2 of {@egg2}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@egg2} to player + message "&aHere are your things." + stop + argument 1 is "skeleton": + player doesn't have space for 1 * argument 2 of {@egg3}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@egg3} to player + message "&aHere are your things." + stop + argument 1 is "zombie": + player doesn't have space for 1 * argument 2 of {@egg5}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@egg5} to player + message "&aHere are your things." + stop + argument 1 is "pigman": + player doesn't have space for 1 * argument 2 of {@egg4}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@egg4} to player + message "&aHere are your things." + stop + argument 1 is "spider": + player doesn't have space for 1 * argument 2 of {@egg6}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@egg6} to player + message "&aHere are your things." + stop on join: {db_egg.%player%.skeleton} is set: send "&aYou have received %{db_egg.%player%.skeleton}% Projeggtiles" loop {db_egg.%player%.skeleton} times: - drop named item stack from "{@egg3}" + drop {@egg3} clear {db_egg.%player%.skeleton} {db_egg.%player%.creeper} is set: send "&aYou have received %{db_egg.%player%.creeper}% Projeggtiles" loop {db_egg.%player%.creeper} times: - drop named item stack from "{@egg2}" + drop {@egg2} clear {db_egg.%player%.creeper} {db_egg.%player%.zpig} is set: send "&aYou have received %{db_egg.%player%.zpig}% Projeggtiles" loop {db_egg.%player%.zpig} times: - drop named item stack from "{@egg4}" + drop {@egg4} clear {db_egg.%player%.zpig} {db_egg.%player%.zombie} is set: send "&aYou have received %{db_egg.%player%.zombie}% Projeggtiles" loop {db_egg.%player%.zombie} times: - drop named item stack from "{@egg5}" + drop {@egg5} clear {db_egg.%player%.zombie} on shoot: - projectile is snowball - shooter's tool is named item stack from "{@egg}": - set {projeggtile.%projectile%} to true - -on shoot: - projectile is snowball - shooter's tool is named item stack from "{@egg2}": - set {projeggtile.hostile.%projectile%} to true - set {creeper.%projectile%} to true - shooter's tool is named item stack from "{@egg3}": - set {projeggtile.hostile.%projectile%} to true - set {skeleton.%projectile%} to true - shooter's tool is named item stack from "{@egg4}": - set {projeggtile.hostile.%projectile%} to true - set {pigman.%projectile%} to true - shooter's tool is named item stack from "{@egg5}": - set {projeggtile.hostile.%projectile%} to true - set {zombie.%projectile%} to true - shooter's tool is named item stack from "{@egg6}": - set {projeggtile.hostile.%projectile%} to true - set {spider.%projectile%} to true + projectile is snowball: + shooter's tool is {@egg}: + set {projeggtile.%projectile%} to true + shooter's tool is {@egg2}: + set {projeggtile.hostile.%projectile%} to true + set {creeper.%projectile%} to true + shooter's tool is {@egg3}: + set {projeggtile.hostile.%projectile%} to true + set {skeleton.%projectile%} to true + shooter's tool is {@egg4}: + set {projeggtile.hostile.%projectile%} to true + set {pigman.%projectile%} to true + shooter's tool is {@egg5}: + set {projeggtile.hostile.%projectile%} to true + set {zombie.%projectile%} to true + shooter's tool is {@egg6}: + set {projeggtile.hostile.%projectile%} to true + set {spider.%projectile%} to true on damage of a creeper or a skeleton or a zombie or a zombie pigman or a spider: attacker is a player: {projeggtile.hostile.%projectile%} is set: - if {chunk.live.%chunk at location of victim%} is not attacker: - {chunk.live.%chunk at location of victim%.%attacker%} is not set: - send "&cYou can not steal animals! D:" to attacker - stop - {chunk.live.%chunk at location of victim%.%attacker%} is false: - send "&cYou can not steal animals! D:" to attacker - stop + {chunk.live.%chunk at location of victim%} is not attacker: + send "&cYou can not steal animals! D:" to attacker + stop set {_player} to "%attacker%" parsed as player set {_bal} to attacker's balance {_bal} is less than 150: send "&cYou do not have enough tickets!" to attacker cancel event {creeper.%projectile%} is set: - give attacker named item stack from "{@egg2}" + give attacker {@egg2} stop {skeleton.%projectile%} is set: - give attacker named item stack from "{@egg3}" + give attacker {@egg3} stop {pigman.%projectile%} is set: - give attacker named item stack from "{@egg4}" + give attacker {@egg4} stop {zombie.%projectile%} is set: - give attacker named item stack from "{@egg5}" + give attacker {@egg5} stop {spider.%projectile%} is set: - give attacker named item stack from "{@egg6}" + give attacker {@egg6} stop subtract 150 from attacker's balance - - - - victim is a zombie: {zombie.%projectile%} is not set: set {_loc} to location of victim @@ -109,7 +144,6 @@ on damage of a creeper or a skeleton or a zombie or a zombie pigman or a spider: send "&cThe strength of that Projeggtile was not rated for this Mob!" to attacker add 150 to attacker's balance stop - set {_egg} to zombie spawn egg set {_mob.name} to "zombie" victim is a creeper: @@ -161,8 +195,6 @@ on damage of a creeper or a skeleton or a zombie or a zombie pigman or a spider: stop set {_egg} to spider spawn egg set {_mob.name} to "spider" - - display name of victim is not set: cancel event attacker doesn't have space for {_egg}: @@ -171,7 +203,7 @@ on damage of a creeper or a skeleton or a zombie or a zombie pigman or a spider: give attacker {_egg} delete victim set {_top} to size of {pegg.messages.capture::*} - set {_ran} to random integer between 1 and {_top} + set {_ran} to random integer between 0.5 and {_top} send "&aYou have spent &e150&a tickets on capturing a creature!" to attacker log "%attacker%^%{_bal}%^DEDUCT^150^%attacker's balance%^CREATURE CAPTURE FEE - HOSTILE" to "tickets/CREATURECAPTURE.log" loop {pegg.messages.capture::*}: @@ -186,7 +218,7 @@ on damage of a creeper or a skeleton or a zombie or a zombie pigman or a spider: cancel event set {_top} to size of {pegg.messages.capture::*} - set {_ran} to random integer between 1 and {_top} + set {_ran} to random integer between 0.5 and {_top} send "&aYou have spent &e150&a tickets on capturing a creature!" to attacker send "&aYou have &e%attacker's balance%&a remaining." to attacker log "%attacker%^%{_bal}%^DEDUCT^150^%attacker's balance%^CREATURE CAPTURE FEE - HOSTILE" to "tickets/CREATURECAPTURE.log" @@ -206,47 +238,22 @@ on damage of a creeper or a skeleton or a zombie or a zombie pigman or a spider: delete victim stop - - - - -on damage of a pig or chicken or ocelot or squid or cow or bat or wolf or sheep or horse: +on damage of a pig or chicken or ocelot or squid or cow or bat or wolf or sheep or horse or donkey or mule or mooshroom: attacker is a player: {projeggtile.%projectile%} is set: - if {chunk.live.%chunk at location of victim%} is not attacker: - {chunk.live.%chunk at location of victim%.%attacker%} is not set: - send "&cYou can not steal animals! D:" to attacker - stop - {chunk.live.%chunk at location of victim%.%attacker%} is false: - send "&cYou can not steal animals! D:" to attacker - stop + {chunk.live.%chunk at location of victim%} is not attacker: + stop set {_player} to "%attacker%" parsed as player - attacker does not have permission "obam.plus": - set {_bal} to attacker's balance - {_bal} is less than 10: - send "&cYou do not have enough tickets!" to attacker - cancel event - give attacker named item stack from "{@egg}" - stop - subtract 10 from attacker's balance - send "&aYou have spent &e10&a tickets on capturing a creature!" to attacker - send "&aYou have &e%attacker's balance%&a remaining." to attacker - log "%attacker%^%{_bal}%^DEDUCT^10^%attacker's balance%^CREATURE CAPTURE FEE" to "tickets/CREATURECAPTURE.log" - - attacker has permission "obam.plus": - attacker does not have permission "obam.ultimate": - set {_bal} to attacker's balance - {_bal} is less than 5: - send "&cYou do not have enought tickets!" to attacker - cancel event - give attacker named item stack from "{@egg}" - stop - remove 5 from attacker's balance - send "&aYou have spent &e5&a tickets on capturing a creature!" to attacker - send "&aYou have &e%attacker's balance%&a remaining." to attacker - log "%attacker%^%{_bal}%^DEDUCT^5^%{_player}'s balance%^CREATURE CAPTURE FEE" to "tickets/CREATURECAPTURE.log" - - + set {_bal} to attacker's balance + {_bal} is less than 5: + send "&cYou do not have enought tickets!" to attacker + cancel event + give attacker {@egg} + stop + remove 5 from attacker's balance + send "&aYou have spent &e5&a tickets on capturing a creature!" to attacker + send "&aYou have &e%attacker's balance%&a remaining." to attacker + log "%attacker%^%{_bal}%^DEDUCT^5^%{_player}'s balance%^CREATURE CAPTURE FEE" to "tickets/CREATURECAPTURE.log" victim is a pig: set {_egg} to pig spawn egg set {_mob.name} to "pig" @@ -260,25 +267,24 @@ on damage of a pig or chicken or ocelot or squid or cow or bat or wolf or sheep set {_egg} to squid spawn egg set {_mob.name} to "squid" victim is cow: - victim is not mooshroom - set {_egg} to cow spawn egg - set {_mob.name} to "cow" + victim is not mooshroom: + set {_egg} to cow spawn egg + set {_mob.name} to "cow" victim is bat: set {_egg} to bat spawn egg set {_mob.name} to "bat" victim is wolf: set {_egg} to wolf spawn egg set {_mob.name} to "wolf" - name of victim is "mooshroom": + victim is mooshroom: set {_egg} to mooshroom spawn egg set {_mob.name} to "mooshroom" victim is sheep: set {_egg} to sheep spawn egg set {_mob.name} to "sheep" - victim is horse: + victim is horse or mule or donkey: set {_egg} to horse spawn egg set {_mob.name} to "horse" - display name of victim is not set: cancel event attacker doesn't have space for {_egg}: @@ -287,7 +293,7 @@ on damage of a pig or chicken or ocelot or squid or cow or bat or wolf or sheep give attacker {_egg} delete victim set {_top} to size of {pegg.messages.capture::*} - set {_ran} to random integer between 1 and {_top} + set {_ran} to random integer between 0.5 and {_top} loop {pegg.messages.capture::*}: {_loop.count} is not set: set {_loop.count} to 0 @@ -297,10 +303,9 @@ on damage of a pig or chicken or ocelot or squid or cow or bat or wolf or sheep replace "MOB" in {_message} with "%{_mob.name}%" send "&e%{_message}%" to attacker stop - cancel event set {_top} to size of {pegg.messages.capture::*} - set {_ran} to random integer between 1 and {_top} + set {_ran} to random integer between 0.5 and {_top} loop {pegg.messages.capture::*}: {_loop.count} is not set: set {_loop.count} to 0 @@ -317,12 +322,9 @@ on damage of a pig or chicken or ocelot or squid or cow or bat or wolf or sheep delete victim stop - on death of a creeper or a zombie or a silverfish or a witch or a spider or magma cube or wither skeleton or skeleton or enderman or cave spider or slime or ghast or zombie pigman: - - chance of 20%: - add named item stack from "{@egg}" to drops + add {@egg} to drops clear {player.hit.%event-entity%} on damage of a creeper or a zombie or a silverfish or a witch or a spider or magma cube or wither skeleton or skeleton or enderman or cave spider or slime or ghast or zombie pigman: @@ -374,3 +376,5 @@ command /pegg [] []: set {_message} to {pegg.messages.capture::%argument 2%} replace "MOB" in {_message} with "OBAM" send {_message} to player + + diff --git a/OBAM-Survival Games/Obam-Fronts/Tested and Moved/shop.fronts.sk b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/shop.fronts.sk new file mode 100644 index 0000000..403199e --- /dev/null +++ b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/shop.fronts.sk @@ -0,0 +1,54 @@ +#shop for Fronts + +on script load: + delete {db_shop.items::*} + set {db_shop.items::Front Slot} to "i;grass;n;&a&b&k&a&3Front Slot;l;&6Purchase one Front Slot, which allows you the||&6ability to claim protected land.|| ||&5&oClick to purchase|| ||&3&lCost:||&e10,000 Tickets;c;sudo PLAYER shop land" + set {db_shop.items::Front Bundle} to "i;5 grass;n;&a&b&k&a&3Front Slot Bundle;l;&6Purchase five Front Slots, which allows you the||&6ability to claim protected land.|| ||&5&oClick to purchase|| ||&3&lCost:||&e45,000 Tickets;c;sudo PLAYER shop bundle" + set {db_shop.items::Timber Axe} to "i;diamond axe;n;&a&b&k&a&3Timber Axe;l;&6This axe makes all logs within a 10 block radius||&6go timber!|| ||&2StickyItem ©|| ||&5&oClick to purchase|| ||&3&lCost:||&e5,000 Tickets;c;sudo PLAYER timberpurchase" + set {db_shop.items::HotTouch Pick} to "i;diamond pickaxe;n;&a&b&k&a&3HotTouch Pickaxe;l;&6A pickaxe forged from the heart of the Nether||&6with an intense heat to smelt ores while mining.|| ||&2StickyItem ©|| ||&5&oClick to purchase|| ||&3&lCost:||&e7,500 Tickets;c;sudo PLAYER hottouchpurchase pick" + set {db_shop.items::HotTouch Axe} to "i;diamond axe;n;&a&b&k&a&3HotTouch Axe;l;&6An axe forged from the heart of the Nether||&6with an intense heat to cook logs into charcoal||&6while chopping.|| ||&2StickyItem ©|| ||&5&oClick to purchase|| ||&3&lCost:||&e5,000 Tickets;c;sudo PLAYER hottouchpurchase axe" + set {db_shop.items::HotTouch Shovel} to "i;diamond shovel;n;&a&b&k&a&3HotTouch Shovel;l;&6A shovel forged from the heart of the Nether||&6with an intense heat to cook sand clay and||&6cactus while digging.|| ||&2StickyItem ©|| ||&5&oClick to purchase|| ||&3&lCost:||&e10,000 Tickets;c;sudo PLAYER hottouchpurchase shovel" + + + + +command /shop []: + permission: obam.free + trigger: + argument is not set: + loop {db_shop.items::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_chest} is set: + set {_chest} to "%{_chest}%;s;%{_count}%;%loop-value%" + {_chest} is not set: + set {_chest} to "s;%{_count}%;%loop-value%" + replace "PLAYER" in {_chest} with "%player%" + {_count} is less than 9: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show "%{_chest}%" with {_size} row named "&9&lFronts&9 Shop" to player + argument is "land": + set {_curbal} to player's balance + {_curbal} is less than 10000: + send "&cYou do not have enough tickets!" to player + stop + subtract 10000 from player's balance + add 1 to {db_availableland.%uuid of player%} + send "&aYou have purchased &e1 Land Slot&a for &e10,000 Tickets" to player + send "&aYou have &e%player's balance%&a remaining" to player + argument is "bundle": + set {_curbal} to player's balance + {_curbal} is less than 45000: + send "&cYou do not have enough tickets!" to player + stop + subtract 45000 from player's balance + add 5 to {db_availableland.%uuid of player%} + send "&aYou have purchased &e5 Land Slots&a for &e45,000 Tickets" to player + send "&aYou have &e%player's balance%&a remaining" to player diff --git a/OBAM-Survival Games/Obam-Fronts/Tested and Moved/soulbound.g.sk b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/soulbound.g.sk new file mode 100644 index 0000000..34b83b3 --- /dev/null +++ b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/soulbound.g.sk @@ -0,0 +1,91 @@ +on death of a player: + loop drops: + lore of loop-item contains "&2StickyItem ©": + name of loop-item contains "&a&b&k&a": + add loop-item to {soulbound.%uuid of player%::*} + remove loop-item from drops + +on respawn: + wait 1 tick + {soulbound.%uuid of player%::*} is set: + loop {soulbound.%uuid of player%::*}: + player has space for loop-value: + give player loop-value + clear {soulbound.%uuid of player%::%loop-index%} + {soulbound.%uuid of player%::*} exists: + set {_count} to 0 + loop {soulbound.%uuid of player%::*}: + add 1 to {_count} + send "&cYou have &f%{_count}% &cSticky Items that can be claimed using &f/stickyitem claim" to player + send "&cPlease open up some inventory space." to player + +every 1 minute: + loop all players: + {soulbound.%uuid of loop-player%::*} exists: + set {_count} to 0 + loop {soulbound.%uuid of loop-player%::*}: + add 1 to {_count} + send "&cYou have &f%{_count}% &cSticky Items that can be claimed using &f/stickyitem claim" to loop-player + send "&cPlease open up some inventory space." to loop-player + +command /stickyitem []: + aliases: si + trigger: + argument 1 is "help" or "h": + send "&aSticky Item Help" + send "&a/stickyitem - will sticky whatever you are holding." + send "&a/stickyitem claim - will give you any items that were not able to fit in your inventory upon respawn." + player has permission "obam.smod": + send "&a/stickyitem mod - will sticky an item without the ticket cost." + argument 1 is "claim" or "c": + set {_count1} to 0 + loop {soulbound.%uuid of player%::*}: + player has space for loop-value: + give player loop-value + add 1 to {_count1} + clear {soulbound.%uuid of player%::%loop-index%} + {soulbound.%uuid of player%::*} exists: + set {_count2} to 0 + loop {soulbound.%uuid of player%::*}: + add 1 to {_count2} + send "&cYou have claimed &f%{_count1}% &citems from your Sticky Queue. You still have &f%{_count2}% &citems in the Queue." + stop + send "&aYou have claimed &f%{_count1}% &aitems from your Sticky Queue. Your Queue is now empty!" + argument 1 is not set: + set {_bal} to player's balance + {_bal} is less than 10000: + send "&cYou do not have enough tickets for this!" + stop + lore of player's tool contains "&2StickyItem ©": + send "&cThis is already a &2StickyItem ©" + stop + name of player's tool is set: + set name of player's tool to "&a&b&k&a%name of player's tool%" + name of player's tool is not set: + set name of player's tool to "&a&b&k&a%type of player's tool%" + remove 10000 from player's balance + set lore of player's tool to "%lore of player's tool%|| ||&2StickyItem ©" + send "&aThank you for using &2StickyItem ©&a. Your item is now Stickied for a price of &e10000 Tickets&a!" + send "&aYour balance is now &e%player's balance%&a." + argument 1 is "mod": + player has permission "obam.admin": + name of player's tool is set: + set name of player's tool to "&a&b&k&a%name of player's tool%" + name of player's tool is not set: + set name of player's tool to "&a&b&k&a%type of player's tool%" + lore of player's tool contains "&2StickyItem ©": + send "&cThis is already a &2StickyItem ©" + stop + set lore of player's tool to "%lore of player's tool%|| ||&2StickyItem ©" + send "&aThank you for using &2StickyItem ©&a." + +on enchant: + lore of event-item contains "&2StickyItem ©": + send "&cYou can not enchant StickyItems!" + cancel event + stop + +on craft: + lore of event-item contains "&2StickyItem ©": + send "&cYou can not do that with a StickyItem!" + cancel event diff --git a/OBAM-Survival Games/Obam-Fronts/Tested and Moved/timber.g.sk b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/timber.g.sk new file mode 100644 index 0000000..9ce84d3 --- /dev/null +++ b/OBAM-Survival Games/Obam-Fronts/Tested and Moved/timber.g.sk @@ -0,0 +1,54 @@ +options: + timber: diamond axe named "&a&b&k&a&3Timber Axe" with lore "&6This axe makes all logs within a 10 block radius||&6go timber!|| ||&2StickyItem ©" + +command /timberpurchase: + permission: obam.free + trigger: + set {_bal} to player's balance + {_bal} is less than 5000: + send "&cYou do not have enough tickets for this!" + stop + give player 1 {@timber} + remove 5000 from player's balance + send "&aYou have purchased a &eTimber Axe&a for &e5000 Tickets" + send "&aYour balance is now &e%player's balance%" + +command /timber: + permission: obam.smod + trigger: + give player 1 {@timber} + send "&aHere is your thing" + +on break of oak wood or birch wood or spruce wood or jungle wood or acacia wood or dark oak wood: + name of player's tool is "&a&b&k&a&3Timber Axe": + add location of event-block to {_wood.blocks::*} + loop blocks in radius 10 of event-block: + loop-block is oak wood or birch wood or spruce wood or jungle wood or acacia wood or dark oak wood: + {chunk.live.%chunk at location of loop-block%} is set: + {chunk.live.%chunk at location of loop-block%} is not player: + cancel event + send "&cYou are too close to others' land!" + stop + add location of loop-block to {_wood.blocks::*} + loop {_wood.blocks::*}: + set {_block} to block at loop-value + {_block} is oak wood: + set {_type} to oak log:0 + {_block} is birch wood: + set {_type} to birch log:2 + {_block} is spruce wood: + set {_type} to spruce log:1 + {_block} is jungle wood: + set {_type} to jungle log:3 + {_block} is acacia wood: + set {_type} to acacia log:0 + {_block} is dark oak wood: + set {_type} to dark oak log:1 + delete block at loop-value + drop 1 of {_type} at loop-value + damage player's tool by 1 + +on enchant: + name of event-item is "&a&b&k&a&3Timber Axe": + cancel event + send "&cYou can't do that dawg." \ No newline at end of file diff --git a/Obam-Testing/mobstuff.sk b/OBAM-Survival Games/Obam-Skyblock/Skyblock-Testing/mobstuff.sk similarity index 100% rename from Obam-Testing/mobstuff.sk rename to OBAM-Survival Games/Obam-Skyblock/Skyblock-Testing/mobstuff.sk diff --git a/Obam-Skyblock/animals.sk b/OBAM-Survival Games/Obam-Skyblock/animals.sk similarity index 65% rename from Obam-Skyblock/animals.sk rename to OBAM-Survival Games/Obam-Skyblock/animals.sk index b377bd4..e07435f 100644 --- a/Obam-Skyblock/animals.sk +++ b/OBAM-Survival Games/Obam-Skyblock/animals.sk @@ -1,8 +1,7 @@ on damage of a entity: world is "skyworld" attacker is a player - victim is a zombie or skeleton or witch or spider or creeper or enderman: - stop + victim is a horse or a villager or a ocelot or a cow or a mooshroom or a pig or a sheep or a squid attacker can't build at location of attacker: send "&cThis area is protected!" to attacker cancel event diff --git a/Obam-General/boards.sk b/OBAM-Survival Games/Obam-Skyblock/boards.sk similarity index 97% rename from Obam-General/boards.sk rename to OBAM-Survival Games/Obam-Skyblock/boards.sk index 6d9e228..2f1787e 100644 --- a/Obam-General/boards.sk +++ b/OBAM-Survival Games/Obam-Skyblock/boards.sk @@ -35,7 +35,7 @@ every 1 second: make score "&aTickets:" in board of loop-player to loop-player's balance make score "&6Total Kills:" in board of loop-player to {total.kills.%loop-player%} set {board.up.%loop-player%.sb} to true - move display of loop-player to "sidebar" + move display of loop-player to sidebar set {board.up.%loop-player%.kp} to false #subfold @KPstata @@ -64,7 +64,7 @@ every 1 second: make score "&aTickets:" in board of loop-player to loop-player's balance set {board.up.%loop-player%.sb} to false set {board.up.%loop-player%.kp} to true - move display of loop-player to "sidebar" + move display of loop-player to sidebar @@ -98,7 +98,7 @@ command /togglestats: make score "&3Witches:" in board of player to {witch.kills.%player%} make score "&6Total Kills:" in board of player to {total.kills.%player%} make score "&aTickets:" in board of player to player's balance - move display of player to "sidebar" + move display of player to sidebar set {board.up.%player%.sb} to true stop world is "kitpvpkillingfields": @@ -110,7 +110,7 @@ command /togglestats: make score of "&aAssists:" in board of player to {assist.%player%.kp} set {board.up.%player%.sb} to false set {board.up.%player%.kp} to true - move display of player to "sidebar" + move display of player to sidebar #endfold diff --git a/Obam-Skyblock/challenges.sk b/OBAM-Survival Games/Obam-Skyblock/challenges.sk similarity index 95% rename from Obam-Skyblock/challenges.sk rename to OBAM-Survival Games/Obam-Skyblock/challenges.sk index 5458c00..0744c60 100644 --- a/Obam-Skyblock/challenges.sk +++ b/OBAM-Survival Games/Obam-Skyblock/challenges.sk @@ -25,7 +25,7 @@ options: bakersdozen: i;bread;n;&b&lBakers Dozen!;l; ||&a&lFirst Completion:||&aTrade 256 Bread||&7&lThe Grind:||&7Trade &c2304&7 Bread|| ||&a&lInitial Reward:||&a800 Tickets||&7&lGrind Reward:||&c15 &7Tickets|| ||%{chal.%player%.bread.display}%;c;sudo %player% chal 19 crushed: i;bonemeal;n;&b&lCrushed!;l; ||&a&lFirst Completion:||&aTrade 256 Bonemeal||&7&lThe Grind:||&7Trade &c2304&7 Bonemeal|| ||&a&lInitial Reward:||&a800 Tickets||&7&lGrind Reward:||&c15 &7Tickets|| ||%{chal.%player%.bonemeal.display}%;c;sudo %player% chal 21 #subfold @supporter1 - supporter1: i;diamond block;n;&b&lSkyblock Supporter Tier 1 Challenges!;l;&a&lClick to open||&eSupporter Tier 1&7 Challenges;c;sudo %player% challenge supporter1 + supporter1: i;4 iron blocks;n;&b&lSkyblock Tier 4 Challenges!;l;&a&lClick to open||&eTier 4&7 Challenges;c;sudo %player% challenge supporter1 egged: i;egg;n;&b&lEgged!;l; ||&a&lFirst Completion:||&aTrade 288 Eggs||&7&lThe Grind:||&7Trade &c576 &7Eggs|| ||&a&lInitial Reward:||&a800 Tickets||&7&lGrind Reward:||&c15 &7Tickets|| ||%{chal.%player%.egged.display}%;c;sudo %player% chal 13 gotmilk: i;milk bucket;n;&b&lGot Milk?;l; ||&a&lFirst Completion:||&aTrade 10 Milk Buckets||&7&lThe Grind:||&7Trade &c30&7 Milk Buckets|| ||&a&lInitial Reward:||&a800 Tickets||&7&lGrind Reward:||&c15 &7Tickets|| ||%{chal.%player%.milk.display}%;c;sudo %player% chal 15 gotbeef: i;steak;n;&b&lGot Beef?;l; ||&a&lFirst Completion:||&aTrade 256 Steaks||&7&lThe Grind:||&7Trade &c2304&7 Steaks|| ||&a&lInitial Reward:||&a800 Tickets||&7&lGrind Reward:||&c15 &7Tickets|| ||%{chal.%player%.steak.display}%;c;sudo %player% chal 17 @@ -33,7 +33,7 @@ options: birthdaycake: i;cake item;n;&b&lBirthday Cake!;l; ||&a&lFirst Completion:||&aTrade 10 Cakes||&7&lThe Grind:||&7Trade &c36&7 Cakes|| ||&a&lInitial Reward:||&a800 Tickets||&7&lGrind Reward:||&c15 &7Tickets|| ||%{chal.%player%.cake.display}%;c;sudo %player% chal 23 secretrecipe: i;cooked chicken;n;&b&lSecret Recipe!;l; ||&a&lFirst Completion:||&aTrade 256 Cooked Chicken||&7&lThe Grind:||&7Trade &c2304&7 Cooked Chicken|| ||&a&lInitial Reward:||&a800 Tickets||&7&lGrind Reward:||&c15 &7Tickets|| ||%{chal.%player%.chicken.display}%;c;sudo %player% chal 24 #subfold @level1 - level1: i;gold block;n;&b&lSkyblock Level 10 Challenges!;l;&a&lClick to open||&eLevel 10&7 Challenges;c;sudo %player% challenge level1 + level1: i;5 iron blocks;n;&b&lSkyblock Tier 5 Challenges!;l;&a&lClick to open||&eTier 5&7 Challenges;c;sudo %player% challenge level1 lumberjack: i;oak log;n;&b&lLumberjack!;l; ||&a&lFirst Completion:||&aTrade 256 Oak Log||&7&lThe Grind:||&7Trade &c2304&7 Oak Log|| ||&a&lInitial Reward:||&a800 Tickets||&7&lGrind Reward:||&c15 &7Tickets|| ||%{chal.%player%.lumberjack.display}%;c;sudo %player% chal 25 theoven: i;furnace;n;&b&lThe Oven!;l; ||&a&lFirst Completion:||&aTrade 256 Furnaces||&7&lThe Grind:||&7Trade &c2304&7 Furnaces|| ||&a&lInitial Reward:||&a800 Tickets||&7&lGrind Reward:||&c15 &7Tickets|| ||%{chal.%player%.theoven.display}%;c;sudo %player% chal 26 storagewars: i;chest;n;&b&lStorage Wars!;l; ||&a&lFirst Completion:||&aTrade 256 Chests||&7&lThe Grind:||&7Trade &c2304&7 Chests|| ||&a&lInitial Reward:||&a800 Tickets||&7&lGrind Reward:||&c15 &7Tickets|| ||%{chal.%player%.storage.display}%;c;sudo %player% chal 27 @@ -43,7 +43,9 @@ options: #subfold @shop sbtier2: i;2 iron blocks;n;&b&lSkyblock Tier 2 Challenges!;l;&7Click to purchase Skyblock||&eTier 2&7 Challenges!|| ||&7&lPrice: &e2000 tickets;c;sudo %player% purchase sbtier2 sbtier3: i;3 iron blocks;n;&b&lSkyblock Tier 3 Challenges!;l;&7Click to purchase Skyblock||&ETier 3&7 Challenges!|| ||&7&lPrice: &e5000 tickets;c;sudo %player% purchase sbtier3 - + sbtier4: i;4 iron blocks;n;&b&lSkyblock Tier 4 Challenges!;l;&7Click to purchase Skyblock||&3Tier 4&7 Challenges!|| ||&7&lPrice: &e5000 tickets;c;sudo %player% purchase sbtier4 + sbtier5: i;5 iron blocks;n;&b&lSkyblock Tier 5 Challenges!;l;&7Click to purchase Skyblock||&3Tier 5&7 Challenges!|| ||&7&lPrice: &e5000 tickets;c;sudo %player% purchase sbtier5 + #subfold @otherstuff menu: i;tnt;n;&b&lReturn to Menu;l;&7Click to return to &eChallenge &7Menu;c;sudo %player% challenge shop: i;gold ingot;n;&b&lShop;l;&7Click to open the &eChallenge &7Shop;c;sudo %player% challenge shop @@ -54,6 +56,8 @@ options: variables: {purchase.sb.tier2.%player%} = 0 {purchase.st.tier3.%player%} = 0 + {purchase.sb.tier4.%player%} = 0 + {purchase.sb.tier5.%player%} = 0 on script load: loop all players: @@ -71,7 +75,7 @@ command /challenge []: argument is not set: send "&aOpening Menu..." to player wait 0.5 seconds - show "s;12;{@tier1};s;13;{@tier2};s;14;{@tier3};s;21;{@level1};s;30;{@supporter1};s;44;{@shop}" with 5 rows named "&9&lSkyblock&9 Challenges" to player + show "s;12;{@tier1};s;13;{@tier2};s;14;{@tier3};s;16;{@level1};s;15;{@supporter1};s;44;{@shop}" with 5 rows named "&9&lSkyblock&9 Challenges" to player #subfold @tier1 argument is "tier1": send "&aOpening Menu..." to player @@ -108,7 +112,14 @@ command /challenge []: #subfold @level1 argument is "level1": - {level.%player%.actual} is greater than or equal to 10: + {purchase.sb.tier5.%player%} is 0: + send "&cYou must purchase the Tier 5 Package to do this!" to player + stop + {purchase.sb.tier5.%player%} is not set: + send "&cYou must purchase the Tier 5 Package to do this!" to player + set {purchase.sb.tier5.%player%} to 0 + stop + {purchase.sb.tier5.%player%} is 1: send "&aOpening Menu..." to player @@ -116,24 +127,30 @@ command /challenge []: show "s;10;{@lumberjack};s;11;{@theoven};s;12;{@storagewars};s;13;{@withanapple};s;14;{@cookeeminastew};s;15;{@splititdownthemiddle};s;19;{@menu};s;27;{@shop}" with 4 rows named "&9&lSkyblock &9Challenges" to player stop - send "&cYou need to be at least level 10 to do that!" to player + #subfold @supporter1 argument is "supporter1": - player has permission "obam.supporter": - + {purchase.sb.tier4.%player%} is 0: + send "&cYou must purchase the Tier 4 Package to do this!" to player + stop + {purchase.sb.tier4.%player%} is not set: + send "&cYou must purchase the Tier 4 Package to do this!" to player + set {purchase.sb.tier4.%player%} to 0 + stop + {purchase.sb.tier4.%player%} is 1: send "&aOpening Menu..." to player wait 0.5 seconds show "s;10;{@egged};s;11;{@gotmilk};s;12;{@gotbeef};s;13;{@cookies};s;14;{@birthdaycake};s;15;{@secretrecipe};s;18;{@menu};s;27;{@shop}" with 3 rows named "&9&lSkyblock &9Challenges" to player stop - send "&cYou must be a supporter to do this!" to player + #subfold @shop argument is "shop": send "&aOpening Menu..." to player wait 0.5 seconds - show "s;10;{@sbtier2};s;11;{@sbtier3};s;13;{@menu}" with 3 rows named "&9&lSkyblock &9Challenges" to player + show "s;12;{@sbtier2};s;13;{@sbtier3};s;14;{@sbtier4};s;15;{@sbtier5};s;19;{@menu}" with 3 rows named "&9&lSkyblock &9Challenges" to player @@ -965,8 +982,8 @@ command /chal : #check for purchase - player does not have permission "obam.supporter": - send "&c You must be a Supporter to do this!" to player + {purchase.sb.tier4.%player%} is 0: + send "&c You must purchase Tier 4 Challenges from the shop to do this!" to player stop #check for items @@ -1043,8 +1060,8 @@ command /chal : argument 1 is 15: #check for purchase - player does not have permission "obam.supporter": - send "&c You must be a Supporter to do this!" to player + {purchase.sb.tier4.%player%} is 0: + send "&c You must purchase Tier 4 Challenges from the shop to do this!" to player stop #check for items @@ -1120,8 +1137,8 @@ command /chal : argument 1 is 17: #check for purchase - player does not have permission "obam.supporter": - send "&c You must be a Supporter to do this!" to player + {purchase.sb.tier4.%player%} is 0: + send "&c You must purchase Tier 4 Challenges from the shop to do this!" to player stop #check for items @@ -1312,8 +1329,8 @@ command /chal : argument 1 is 22: #check for purchase - player does not have permission "obam.supporter": - send "&c You must be a Supporter to do this!" to player + {purchase.sb.tier4.%player%} is 0: + send "&c You must purchase Tier 4 Challenges from the shop to do this!" to player stop #check for items @@ -1351,8 +1368,8 @@ command /chal : argument 1 is 23: #check for purchase - player does not have permission "obam.supporter": - send "&c You must be a Supporter to do this!" to player + {purchase.sb.tier4.%player%} is 0: + send "&c You must purchase Tier 4 Challenges from the shop to do this!" to player stop #check for items @@ -1390,8 +1407,8 @@ command /chal : argument 1 is 24: #check for purchase - player does not have permission "obam.supporter": - send "&c You must be a Supporter to do this!" to player + {purchase.sb.tier4.%player%} is 0: + send "&c You must purchase Tier 4 Challenges from the shop to do this!" to player stop #check for items @@ -1428,8 +1445,8 @@ command /chal : argument 1 is 25: #check for purchase - {level.%player%.actual} is less than 10: - send "&cYou must be at least level 10 to do this!" to player + {purchase.sb.tier5.%player%} is 0: + send "&c You must purchase Tier 5 Challenges from the shop to do this!" to player stop #check for items @@ -1466,8 +1483,8 @@ command /chal : argument 1 is 26: #check for purchase - {level.%player%.actual} is less than 10: - send "&cYou must be at least level 10 to do this!" to player + {purchase.sb.tier5.%player%} is 0: + send "&c You must purchase Tier 5 Challenges from the shop to do this!" to player stop #check for items @@ -1504,8 +1521,8 @@ command /chal : argument 1 is 27: #check for purchase - {level.%player%.actual} is less than 10: - send "&cYou must be at least level 10 to do this!" to player + {purchase.sb.tier5.%player%} is 0: + send "&c You must purchase Tier 5 Challenges from the shop to do this!" to player stop #check for items @@ -1543,8 +1560,8 @@ command /chal : argument 1 is 28: #check for purchase - {level.%player%.actual} is less than 10: - send "&cYou must be at least level 10 to do this!" to player + {purchase.sb.tier5.%player%} is 0: + send "&c You must purchase Tier 5 Challenges from the shop to do this!" to player stop #check for items @@ -1582,8 +1599,8 @@ command /chal : argument 1 is 29: #check for purchase - {level.%player%.actual} is less than 10: - send "&cYou must be at least level 10 to do this!" to player + {purchase.sb.tier5.%player%} is 0: + send "&c You must purchase Tier 5 Challenges from the shop to do this!" to player stop #check for items @@ -1621,8 +1638,8 @@ command /chal : argument 1 is 30: #check for purchase - {level.%player%.actual} is less than 10: - send "&cYou must be at least level 10 to do this!" to player + {purchase.sb.tier5.%player%} is 0: + send "&c You must purchase Tier 5 Challenges from the shop to do this!" to player stop #check for items diff --git a/Obam-General/deathstats.sk b/OBAM-Survival Games/Obam-Skyblock/deathstats.sk similarity index 100% rename from Obam-General/deathstats.sk rename to OBAM-Survival Games/Obam-Skyblock/deathstats.sk diff --git a/Obam-Tools/explosiontest.sk b/OBAM-Survival Games/Obam-Skyblock/explosiontest.sk similarity index 100% rename from Obam-Tools/explosiontest.sk rename to OBAM-Survival Games/Obam-Skyblock/explosiontest.sk diff --git a/Obam-General/ihs.sk b/OBAM-Survival Games/Obam-Skyblock/ihs.sk similarity index 59% rename from Obam-General/ihs.sk rename to OBAM-Survival Games/Obam-Skyblock/ihs.sk index 7785981..9c118bb 100644 --- a/Obam-General/ihs.sk +++ b/OBAM-Survival Games/Obam-Skyblock/ihs.sk @@ -6,51 +6,52 @@ options: redstone: i;redstone;n;&b&nRedstone;l;&7Click to claim your &epurchased redstone.;c;sudo %player% redeem redstone lavabucket: i;lava bucket;n;&b&nLava Bucket;l;&7Click to claim your &epurchased lava buckets.;c;sudo %player% redeem lava bucket dampener: i;fullblock spruce wood block;n;&b&nxPlosion Dampener;l;&7Click to claim your &epurchased xPlosion Dampeners.;c;sudo %player% redeem fullblock spruce wood block -command /itemstore : + timber: i;diamond axe;n;&b&nTimber Axe;l;&7Click to claim your purchased||&eTimber Axe.;c;sudo %player% redeem timberaxe +command /itemstore : permission: obam.admin trigger: {db_ihs.%player-argument%.%argument 2%} is set: add argument 3 to {db_ihs.%player-argument%.%argument 2%} send "&aYou have made a purchase! Type &e/redeem&a to redeem your items!" to player-argument - play "level up" at location of offline player-argument with pitch 2 + play level up at location of offline player-argument with pitch 2 wait 0.2 seconds - play "level up" at location of offline player-argument with pitch 2 + play level up at location of offline player-argument with pitch 2 wait 0.2 seconds - play "level up" at location of offline player-argument with pitch 2 + play level up at location of offline player-argument with pitch 2 wait 0.2 seconds - play "level up" at location of offline player-argument with pitch 2 + play level up at location of offline player-argument with pitch 2 wait 0.2 seconds - play "level up" at location of offline player-argument with pitch 2 + play level up at location of offline player-argument with pitch 2 stop set {db_ihs.%player-argument%.%argument 2%} to argument 3 set {db_alert.redeem.%player-argument%} to true send "&aYou have made a purchase! Type &e/redeem&a to redeem your items!" to player-argument - play "level up" at location of offline player-argument with pitch 2 + play level up at location of offline player-argument with pitch 2 wait 0.2 seconds - play "level up" at location of offline player-argument with pitch 2 + play level up at location of offline player-argument with pitch 2 wait 0.2 seconds - play "level up" at location of offline player-argument with pitch 2 + play level up at location of offline player-argument with pitch 2 wait 0.2 seconds - play "level up" at location of offline player-argument with pitch 2 + play level up at location of offline player-argument with pitch 2 wait 0.2 seconds - play "level up" at location of offline player-argument with pitch 2 + play level up at location of offline player-argument with pitch 2 on join: {db_alert.redeem.%player%} is true send "&c&lYou have items waiting to be redeemed! Use &e/redeem &c<o redeem your items!" to player - play "level up" at location of player with pitch 2 + play level up at location of player with pitch 2 wait 0.2 seconds - play "level up" at location of player with pitch 2 + play level up at location of player with pitch 2 wait 0.2 seconds - play "level up" at location of player with pitch 2 + play level up at location of player with pitch 2 wait 0.2 seconds - play "level up" at location of player with pitch 2 + play level up at location of player with pitch 2 wait 0.2 seconds - play "level up" at location of player with pitch 2 + play level up at location of player with pitch 2 -command /redeem []: +command /redeem []: permission: obam.free executable by: players trigger: @@ -61,13 +62,14 @@ command /redeem []: stop world is "world": - show "s;1;{@dampener}" with 1 row named "&9&lOBAM &9Redeem" to player + show "s;1;{@timber}" with 1 row named "&9&lOBAM &9Redeem" to player stop send "&cMake sure you are in the right world!" to player argument is set: + argument is not "timberaxe" {db_ihs.%player%.%argument%} is 0: send "&cYou do not have any of this item to redeem! If this is incorrect, please contact the Administrator" to player stop @@ -75,8 +77,9 @@ command /redeem []: {db_ihs.%player%.%argument%} is not set: send "&cYou do not have any of this item to redeem! If this is incorrect, please contact the Administrator" to player stop - give player {db_ihs.%player%.%argument%} of item-argument - argument is fullblock spruce wood block: + set {_stuff} to argument parsed as item + give player {db_ihs.%player%.%argument%} of {_stuff} + argument is "fullblock spruce wood block": {db_ihs.%player%.%argument%} is less than 2: send "&aYou have received your &e%{db_ihs.%player%.%argument%}% xPlosion Dampener&a! Thank you for your purchase!" set {db_ihs.%player%.%argument%} to 0 @@ -91,6 +94,24 @@ command /redeem []: set {db_ihs.%player%.%argument%} to 0 set {db_alert.redeem.%player%} to false + argument is "timberaxe": + {db_ihs.%player%.%argument%} is 0: + send "&cYou do not have any of this item to redeem! If this is incorrect, please contact the Administrator" + stop + {db_ihs.%player%.%argument%} is not set: + send "&cYou do not have any of this item to redeem! If this is incorrect, please contact the Administrator" + stop + give {db_ihs.%player%.%argument%} of diamond axe named "&a&b&k&a&3Timber Axe" with lore "&6It's going down, I'm||&6yelling timber!|| ||&aUsing this powerful axe||&awill destroy &a&lALL&a logs||&aIn a 10 block radius!|| ||&2StickyItem ©" to player + + {db_ihs.%player%.%argument%} is 1: + send "&aYou have received your &e%{db_ihs.%player%.%argument%}% Timber Axe&a! Thank you for your purchase!" + clear {db_ihs.%player%.%argument%} + stop + {db_ihs.%player%.%argument%} is greater than 1: + send "&aYou have received your &e%{db_ihs.%player%.%argument%}% Timber Axes&a! Thank you for your purchase!" + clear {db_ihs.%player%.%argument%} + stop + send "&cIf you did not have a menu open, ensure you are in the correct world for redeeming! D:" to player diff --git a/Obam-General/playerlevel.sk b/OBAM-Survival Games/Obam-Skyblock/playerlevel.sk similarity index 100% rename from Obam-General/playerlevel.sk rename to OBAM-Survival Games/Obam-Skyblock/playerlevel.sk diff --git a/Obam-Skyblock/shop.sk b/OBAM-Survival Games/Obam-Skyblock/shop.sk similarity index 65% rename from Obam-Skyblock/shop.sk rename to OBAM-Survival Games/Obam-Skyblock/shop.sk index 5866637..bf3fcca 100644 --- a/Obam-Skyblock/shop.sk +++ b/OBAM-Survival Games/Obam-Skyblock/shop.sk @@ -43,10 +43,38 @@ command /purchase : message "&cYou do not have enough tickets!" to player stop - remove 4000 from player's balance + remove 5000 from player's balance set {purchase.sb.tier3.%player%} to 1 message "&aYou have purchased &a&lSkyblock Tier 3 Challenge Package&a for &e5000 &aTickets!" broadcast "&a%player% has purchased &a&lSkyblock Tier 3 Challenge Package!" + + argument 1 is "sbtier4": + {purchase.sb.tier4.%player%} is 1: + message "&cYou have already purchased this package!" to player + stop + + player's balance is less than 5000: + message "&cYou do not have enough tickets!" to player + stop + + remove 5000 from player's balance + set {purchase.sb.tier4.%player%} to 1 + message "&aYou have purchased &a&lSkyblock Tier 4 Challenge Package&a for &e5000 &aTickets!" + broadcast "&a%player% has purchased &a&lSkyblock Tier 4 Challenge Package!" + + argument 1 is "sbtier5": + {purchase.sb.tier5.%player%} is 1: + message "&cYou have already purchased this package!" to player + stop + + player's balance is less than 5000: + message "&cYou do not have enough tickets!" to player + stop + + remove 5000 from player's balance + set {purchase.sb.tier5.%player%} to 1 + message "&aYou have purchased &a&lSkyblock Tier 5 Challenge Package&a for &e5000 &aTickets!" + broadcast "&a%player% has purchased &a&lSkyblock Tier 5 Challenge Package!" #resetpurchase command because of testing command /purchaser : diff --git a/OBAM-Survival Games/Obam-Skyblock/skyblock.sk b/OBAM-Survival Games/Obam-Skyblock/skyblock.sk new file mode 100644 index 0000000..c73c63b --- /dev/null +++ b/OBAM-Survival Games/Obam-Skyblock/skyblock.sk @@ -0,0 +1,130 @@ + + + +command /home: + description: Go to island's home + permission: obam.free + usage: /home or /start + executable by: players + aliases: /start + trigger: + make player execute command "/is" + + +command /restartisland: + description: Restart your island + usage: /restart + executable by: players or console + permission: obam.free + aliases: /ri + trigger: + {island.reset.use.%player%} is greater than or equal to 2: + message "&cYou have used up your two resets! You will need to purchase the next one for &e2000 Tickets!&c Type &e/restartconfirm&c to continue!" to player + set {skyblock.%player%.restart} to 1 + stop + {island.reset.use.%player%} is 1: + message "&cAre you sure you want to do this? This will reset your island, You can only do this for free &e1 &ctime! Type &e/restartconfirm to do this." to player + set {skyblock.%player%.restart} to 1 + stop + message "&cAre you sure you want to do this? This will reset your island, You can only do this for free &e2 &ctimes! Type &e/restartconfirm to do this." to player + set {skyblock.%player%.restart} to 1 + +command /risrestart : + permission: obam.admin + trigger: + set {island.reset.use.%player-argument%} to 0 + +command /restartconfirm: + permission: obam.free + trigger: + world is "skyworld": + + {skyblock.%player%.restart} is 1: + {island.reset.use.%player%} is greater than or equal to 2: + set {balance.%player%} to player's balance + {balance.%player%} is less than 2000: + send "&cYou Do not have enough tickets for this!" to player + stop + remove 2000 from player's balance + send "&cYou have paid &e2000 Tickets&c for resetting your island. You now have &e%player's balance% &cremaining." to player + + message "&cYou are restarting your island!" to player + make player execute command "/is restart" + set {skyblock.%player%.restart} to 0 + {island.reset.use.%player%} is not set: + set {island.reset.use.%player%} to 0 + add 1 to {island.reset.use.%player%} + stop + else: + message "&cPlease type /restart first" + + else: + message "&cYou can not do that here!" to player + + + +command /setspawn: + description: Sets island's spawnpoint + usage: /spawnpoint while standing in location + permission: obam.free + executable by: players + aliases: /sethome + trigger: + make player execute command "/is sethome" + + +command /warp : + description: Go to a player's island + usage: /warp [player name] + executable by: players + permission: obam.free + trigger: + make player execute command "/is warp %arg 1%" + +command /setwarp: + description: Set warp location for island + permission: obam.free + usage: /setwarp + trigger: + make player execute command "/is setwarp" + + +command /togglewarp: + description: Toggle if other players can warp to your island + permission: obam.free + usage: /togglewarp + trigger: + make player execute command "/is togglewarp" + + +command /invite : + description: Invite someone to your island + permission: obam.free + usage: /invite [name] + trigger: + make player execute command "/is invite %arg 1%" + + + + +command /accept: + description: Accept party invite + usage: /accept + trigger: + make player execute command "/is accept" + + +command /reject: + description: Reject party invite + permission: obam.free + usage: /reject + trigger: + make player execute command "/is reject" + + +command /remove : + description: Remove a player from your island + permission: obam.free + usage: /remove [name] + trigger: + make player execute command "/is kick %arg 1%" \ No newline at end of file diff --git a/Obam-General/skyblockkits.sk b/OBAM-Survival Games/Obam-Skyblock/skyblockkits.sk similarity index 100% rename from Obam-General/skyblockkits.sk rename to OBAM-Survival Games/Obam-Skyblock/skyblockkits.sk diff --git a/Obam-General/skyshop.sk b/OBAM-Survival Games/Obam-Skyblock/skyshop.sk similarity index 100% rename from Obam-General/skyshop.sk rename to OBAM-Survival Games/Obam-Skyblock/skyshop.sk diff --git a/Obam-Other/takeownershipofeverything.sk b/OBAM-Survival Games/Obam-Skyblock/takeownershipofeverything.sk similarity index 100% rename from Obam-Other/takeownershipofeverything.sk rename to OBAM-Survival Games/Obam-Skyblock/takeownershipofeverything.sk diff --git a/Obam-Tools/tps.sk b/OBAM-Survival Games/Obam-Skyblock/tps.sk similarity index 100% rename from Obam-Tools/tps.sk rename to OBAM-Survival Games/Obam-Skyblock/tps.sk diff --git a/Obam-Game Modification/witches.sk b/OBAM-Survival Games/Obam-Skyblock/witches.sk similarity index 100% rename from Obam-Game Modification/witches.sk rename to OBAM-Survival Games/Obam-Skyblock/witches.sk diff --git a/OBAM-Voting/prizewheel.sk b/OBAM-Voting/prizewheel.sk index 20720fa..92328e2 100644 --- a/OBAM-Voting/prizewheel.sk +++ b/OBAM-Voting/prizewheel.sk @@ -359,16 +359,16 @@ command /prize [] [] [] []: stop {_ran} is 4: - {db_winnings.chest.%player%.fronts::enchanted book of unbreaking 4} is not set: - set {db_winnings.chest.%player%.fronts::enchanted book of unbreaking 4} to 1 - send "&aYou have won &e1 enchanted book of unbreaking 4&a for &eFronts!" + {db_winnings.chest.%player%.fronts::diamond pickaxe of unbreaking 4} is not set: + set {db_winnings.chest.%player%.fronts::diamond pickaxe of unbreaking 4} to 1 + send "&aYou have won &e1 diamond pickaxe of unbreaking 4&a for &eFronts!" send "&aUse &e/prize claim&a in Fronts to claim!" - log "%player%^ADD^1^enchanted book of unbreaking 4^SEMIRARE PRIZE db_winnings" to "prizewheel/db_winnings.log" + log "%player%^ADD^1^diamond pickaxe of unbreaking 4^SEMIRARE PRIZE db_winnings" to "prizewheel/db_winnings.log" stop - add 1 to {db_winnings.chest.%player%.fronts::enchanted book of unbreaking 4} - send "&aYou have won &e1 enchanted book of unbreaking 4&a for &eFronts!" + add 1 to {db_winnings.chest.%player%.fronts::diamond pickaxe of unbreaking 4} + send "&aYou have won &e1 diamond pickaxe of unbreaking 4&a for &eFronts!" send "&aUse &e/prize claim&a in Fronts to claim!" - log "%player%^ADD^1^enchanted book of unbreaking 4^SEMIRARE PRIZE db_winnings" to "prizewheel/db_winnings.log" + log "%player%^ADD^1^diamond pickaxe of unbreaking 4^SEMIRARE PRIZE db_winnings" to "prizewheel/db_winnings.log" stop chance of 25%: @@ -547,16 +547,16 @@ command /prize [] [] [] []: stop {_ran} is 14: - {db_winnings.chest.%player%.fronts::enchanted book of fortune 3} is not set: - set {db_winnings.chest.%player%.fronts::enchanted book of fortune 3} to 1 - send "&aYou have won &e1 enchanted book of fortune 3&a for &eFronts!" + {db_winnings.chest.%player%.fronts::diamond pickaxe of fortune 3} is not set: + set {db_winnings.chest.%player%.fronts::diamond pickaxe of fortune 3} to 1 + send "&aYou have won &e1 diamond pickaxe of fortune 3&a for &eFronts!" send "&aUse &e/prize claim&a in Fronts to claim!" - log "%player%^ADD^1^enchanted book of fortune 3^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + log "%player%^ADD^1^diamond pickaxe of fortune 3^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop - add 1 to {db_winnings.chest.%player%.fronts::enchanted book of fortune 3} - send "&aYou have won &e1 enchanted book of fortune 3&a for &eFronts!" + add 1 to {db_winnings.chest.%player%.fronts::diamond pickaxe of fortune 3} + send "&aYou have won &e1 diamond pickaxe of fortune 3&a for &eFronts!" send "&aUse &e/prize claim&a in Fronts to claim!" - log "%player%^ADD^1^enchanted book of fortune 3^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + log "%player%^ADD^1^diamond pickaxe of fortune 3^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop {_ran} is 15: @@ -771,28 +771,28 @@ command /prize [] [] [] []: stop {_ran} is 8: - {db_winnings.chest.%player%.fronts::enchanted book of unbreaking 3} is not set: - set {db_winnings.chest.%player%.fronts::enchanted book of unbreaking 3} to 1 - send "&aYou have won &e1 enchanted book of unbreaking 3&a for &eFronts!" + {db_winnings.chest.%player%.fronts::diamond pickaxe of unbreaking 3} is not set: + set {db_winnings.chest.%player%.fronts::diamond pickaxe of unbreaking 3} to 1 + send "&aYou have won &e1 diamond pickaxe of unbreaking 3&a for &eFronts!" send "&aUse &e/prize claim&a in Fronts to claim!" - log "%player%^ADD^1^enchanted book of unbreaking 3^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + log "%player%^ADD^1^diamond pickaxe of unbreaking 3^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop - add 1 to {db_winnings.chest.%player%.fronts::enchanted book of unbreaking 3} - send "&aYou have won &e1 enchanted book of unbreaking 3&a for &eFronts!" + add 1 to {db_winnings.chest.%player%.fronts::diamond pickaxe of unbreaking 3} + send "&aYou have won &e1 diamond pickaxe of unbreaking 3&a for &eFronts!" send "&aUse &e/prize claim&a in Fronts to claim!" - log "%player%^ADD^1^enchanted book of unbreaking 3^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + log "%player%^ADD^1^diamond pickaxe of unbreaking 3^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" {_ran} is 9: - {db_winnings.chest.%player%.fronts::enchanted book of silk touch} is not set: - set {db_winnings.chest.%player%.fronts::enchanted book of silk touch} to 1 - send "&aYou have won &e1 enchanted book of silk touch&a for &eFronts!" + {db_winnings.chest.%player%.fronts::diamond pickaxe of silk touch} is not set: + set {db_winnings.chest.%player%.fronts::diamond pickaxe of silk touch} to 1 + send "&aYou have won &e1 diamond pickaxe of silk touch&a for &eFronts!" send "&aUse &e/prize claim&a in Fronts to claim!" - log "%player%^ADD^1^enchanted book of silk touch^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + log "%player%^ADD^1^diamond pickaxe of silk touch^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop - add 1 to {db_winnings.chest.%player%.fronts::enchanted book of silk touch} - send "&aYou have won &e1 enchanted book of silk touch&a for &eFronts!" + add 1 to {db_winnings.chest.%player%.fronts::diamond pickaxe of silk touch} + send "&aYou have won &e1 diamond pickaxe of silk touch&a for &eFronts!" send "&aUse &e/prize claim&a in Fronts to claim!" - log "%player%^ADD^1^enchanted book of silk touch^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + log "%player%^ADD^1^diamond pickaxe of silk touch^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" {_ran} is 10: {db_winnings.chest.%player%.fronts::diamond} is not set: @@ -863,7 +863,7 @@ command /prizefix : command /fixbook: permission: obamm.free trigger: - player's tool is enchanted book: + player's tool is diamond pickaxe: set {_hold} to "%player's tool%" set {_hold} to {_hold} parsed as item send "%{_hold}%" diff --git a/OBAM-Voting/rmperm.txt b/OBAM-Voting/rmperm.txt deleted file mode 100644 index ccea208..0000000 --- a/OBAM-Voting/rmperm.txt +++ /dev/null @@ -1,3 +0,0 @@ - -command("perm player %target% unset vote.check") -command("tokenadmin %target% end") \ No newline at end of file diff --git a/OBAM-Voting/vote-script.txt b/OBAM-Voting/vote-script.txt deleted file mode 100644 index f7cc737..0000000 --- a/OBAM-Voting/vote-script.txt +++ /dev/null @@ -1,5 +0,0 @@ -broadcast("Thanks for voting on %service%, %target%!") -command("perm player %target% set vote.check") -command("tokenadmin %target% execute") -clearScripts(target) -runLaterTarget("rmperm.txt", "5m", target) \ No newline at end of file diff --git a/OBAM-Voting/vote.sk b/OBAM-Voting/vote.sk index 6c84884..a4ce703 100644 --- a/OBAM-Voting/vote.sk +++ b/OBAM-Voting/vote.sk @@ -20,6 +20,21 @@ command /vote [] [] []: send "&3&l==========================================" send "&eVote for &6&lOBAM&fCraft &eon the following server lists" send "&eto earn special prizes and win OBAM Tickets! " + {db_votetokens.%{_player}%} is not set: + set {_tmp.mes} to "&aYou can get a Prize Token now!" + set {_waited} to difference between {db_votetokens.%{_player}%.time} and now + {_waited} is more than a day: + set {_tmp.mes} to "&aYou can get a Prize Token now!" + {_waited} is less than a day: + set {_tmp.time} to {_waited} + set {_tmp.hold} to difference between now and now + add 24 hours to {_tmp.hold} + subtract {_tmp.time} from {_tmp.hold} + set {_tmp.time} to {_tmp.hold} + + set {_tmp.mes} to "&aYour next Prize Token is available in &e%{_tmp.time}%&a!" + send " " + send "%{_tmp.mes}%" send " " send "&2&l✔&f - Voted Today &d| &c&lX&f - Not Voted Today" send " " @@ -393,6 +408,44 @@ command /vote [] [] []: send "&a10. - %{_vote.check0}% - %{db_obam.vote.link.10}%" to player clear {_message} clear {_waited} + + set {_waited} to difference between now and {db_server.mineserverscom.%{_player}%} + clear {time.vote::*} + {_waited} is less than 1 day: + set {_vote.check0} to "&a[&2&l✔&a]" + {_waited} is more than 1 day: + set {_vote.check0} to "&a[&c&lX&a]" + {_waited} is not set: + set {_vote.check0} to "&a[&c&lX&a]" + set {_message0} to "Now Availible!" + {_waited} is less than 1 day: + set {_time} to {db_server.mineservers.%{_player}%} + add 1 day to {_time} + set {_time} to difference between {_time} and now + {_time} is greater than 1 hour: + set {_time} to "%{_time}%" + clear {time.vote::*} + set {time.vote::*} to {_time} parsed as "%number% hour[s] and %integer%.%integer% minute[s]" + + set {_hrs} to {time.vote::1} + set {_mins} to {time.vote::2} + set {_message0} to "&eVote in &a%{time.vote::1}%h &e& &a%{time.vote::2}%m" + {_time} is less than 1 hour: + set {_time} to "%{_time}%" + clear {time.vote::*} + set {time.vote::*} to {_time} parsed as "%number% minute[s] and %integer%.%integer% minute[s]" + set {_message0} to "&eVote in &a%{time.vote::1}%m &e& &a%{time.vote::2}%s" + {_time} is less than 1 minute: + set {_message0} to "&In a few seconds!" + {_waited} is more than 1 day: + set {_message0} to "Now available!" + + {db_server.mineserverscom.%{_player}%} is not set: + set {_vote.check0} to "&a[&c&lX&a]" + send "&a11. - %{_vote.check0}% - %{db_obam.vote.link.11}%" to player + clear {_message} + clear {_waited} + argument 1 is "set" or "s": diff --git a/OBAM-Voting/votetoken.sk b/OBAM-Voting/votetoken.sk index 4cac71c..008a612 100644 --- a/OBAM-Voting/votetoken.sk +++ b/OBAM-Voting/votetoken.sk @@ -40,6 +40,8 @@ command /votetoken [] []: set {db_server.minecraftmpcom.%argument 1%} to now argument 2 is "minecraftservers": set {db_server.minecraftservers.%argument 1%} to now + argument 2 is "mineservers.com": + set {db_server.mineserverscom.%argument 1%} to now set {db_votetokens.%argument 1%.time} to now set {db_votetokens.%argument 1%.lserv} to argument 2 execute console command "/alert %argument 1% just received their first &ePrize Token!" @@ -72,7 +74,8 @@ command /votetoken [] []: set {db_server.minecraftmpcom.%argument 1%} to now argument 2 is "minecraftservers": set {db_server.minecraftservers.%argument 1%} to now - set {db_server.mcserverlistcom.%argument 1%} to now + argument 2 is "mineservers.com": + set {db_server.mineserverscom.%argument 1%} to now execute console command "/alert %argument 1% just received a &ePrize Token&5 by voting on %argument 2%!" log "%argument 1%^VOTETOKEN^ADD^1^SERVICE^%argument 2%" to "vote/TOKENS.log" stop @@ -103,6 +106,8 @@ command /votetoken [] []: set {db_server.minecraftmpcom.%argument 1%} to now argument 2 is "minecraftservers": set {db_server.minecraftservers.%argument 1%} to now + argument 2 is "mineservers.com": + set {db_server.mineserverscom.%argument 1%} to now {_bal} is not set: {offline.%{_player}%.ticketadd} is not set: set {offline.%{_player}%.ticketadd} to 0 diff --git a/Obam-Testing/aliases-english.sk b/Obam-Administration/Finished and Placed/aliases-english.sk similarity index 100% rename from Obam-Testing/aliases-english.sk rename to Obam-Administration/Finished and Placed/aliases-english.sk diff --git a/Obam-Administration/Finished and Placed/blocksave.g.sk b/Obam-Administration/Finished and Placed/blocksave.g.sk new file mode 100644 index 0000000..4ce44e3 --- /dev/null +++ b/Obam-Administration/Finished and Placed/blocksave.g.sk @@ -0,0 +1,28 @@ +on place: + former tool's name is set: + set {information.%block%.1} to type of former tool + {debug.%player%} is true: + send "DEBUG You placed %former tool's name%" + set {information.%block%.2} to lore of former tool + set {information.%block%.3} to name of former tool + {debug.%player%} is true: + send "DEBUG %block%" + send "DEBUG %{information.%block%.1}%" + send "DEBUG %lore of former tool%" + send "DEBUG %name of former tool%" + send "DEBUG %{information.%block%.2}%" + send "DEBUG %{information.%block%.3}%" + + +on break: + {information.%block%.1} is set: + cancel event + {debug.%player%} is true: + send "DEBUG I am a message" + set {_message} to "%{information.%block%.1}%;%{information.%block%.3}%;%{information.%block%.2}%" + send "DEBUG %{_message}%" + delete block + drop {information.%block%.1} named {information.%block%.3} with lore {information.%block%.2} at event-location + clear {information.%block%.1} + clear {information.%block%.2} + clear {information.%block%.3} \ No newline at end of file diff --git a/Obam-Administration/Finished and Placed/hubconfig.sk b/Obam-Administration/Finished and Placed/hubconfig.sk new file mode 100644 index 0000000..1573d81 --- /dev/null +++ b/Obam-Administration/Finished and Placed/hubconfig.sk @@ -0,0 +1,131 @@ +options: + help: book named "&6&lOBAM&fCraft &3Guide" with lore "&7Right click with this book to learn the ins||&7and out of OBAM" + worlds: ender pearl named "&3Game Worlds" with lore "&7Right click with this to check the current Game Worlds!" + fly: feather named "&3Fly!" with lore "&7Right click with this feather to fly in the hub!" + +on script load: + delete {db_hub::*} + set {db_hub::01.skyblock} to "grass;&3Skyblock;&6Try our Skyblock world with custom ||&6challenges and villager trading!;sudo PLAYER worlds skyblock" + set {db_hub::02.fronts} to "cobblestone;&3Fronts;&6French vanilla Survival with land claiming!||PVP and PVE choices available.;sudo PLAYER fronts" + set {db_hub::03.wtfronts} to "magma cream;&3WTFronts;&6Extreme Survival with extreme payoffs!||&6PVE 2.0 with land claiming.;sudo PLAYER wtf" + set {db_hub::04.kitpvp} to "blaze rod;&3Kit PVP;&7Play OBAM's KitPvP with new original kits!;sudo PLAYER kit" + set {db_hub::05.tacocart} to "glistening melon;&3Taco Cart;&7A fast pace crafting game for 1 or 2 players!;sudo PLAYER tacocart;&7A fast pace crafting game for 1 or 2 players!||&cBETA TESTING supporters only.;sudo PLAYER worlds tacocart" + set {db_hub::06.event} to "nether star;&3Event Server;&7Special place for Staff ran events!;sudo PLAYER event;&7Special place for Staff ran events!||&cThe event server is currently closed.;sudo PLAYER worlds event" + +on join: + execute console command "/mv tp %player% Death-hub" + clear player's inventory + format slot 0 of player with {@help} to be unstealable + format slot 1 of player with {@worlds}to be unstealable + format slot 2 of player with {@fly} to be unstealable + +on shoot: + world is "Death-hub" + shooter's tool is ender pearl + cancel event + +on right click: + player's tool is {@help}: + make player execute command "/help" + player's tool is {@worlds}: + cancel event + make player execute command "/worlds" + player's tool is {@fly}: + {fly.hub.%player%} is not set: + set {fly.hub.%player%} to true + set fly state of player to true + send "&aYou can fly!" + stop + {fly.hub.%player%} is true: + set {fly.hub.%player%} to false + set fly state of player to false + send "&cYou can no longer fly!" + stop + {fly.hub.%player%} is false: + set {fly.hub.%player%} to true + set fly state of player to true + send "&aYou can fly!" + stop + +on drop: + world is "Death-hub": + cancel event + +command /worlds []: + permission: obam.free + trigger: + world is "Death-hub": + argument is not set: + send "&aBringing up menu..." + loop {db_hub::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lCurrent Worlds" to player + wait 1 tick + set {_count} to 0 + loop {db_hub::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "05.tacocart": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.mod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "06.event": + {db_event.status} is "closed": + set {_lore} to {_what::5} + set {_command} to {_what::6} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + argument is "skyblock": + message "&cSkyblock is being remodelled. Please be patient." + stop + argument is "tacocart": + message "&cI'm sorry but Taco Cart is currently in Beta Testing and only available to supporters." + argument is "event": + message "&cI'm sorry but the Event Server is currently closed." + + +command /eventstatus []: + permission: obam.smod + trigger: + argument 1 is "open" or "o": + set {db_event.status} to "open" + message "&2You have set the Event Server to Open." + stop + argument 1 is "closed" or "c": + set {db_event.status} to "closed" + message "&2You have set the Event Server to Closed." + stop + message "&cPlease type Open of Closed." + +every second: + loop all players: + {fly.hub.%loop-player%} is true: + loop-player's world is not "Death-hub": + set fly state of loop-player to false + set {fly.hub.%loop-player%} to false + loop-player's world is "Death-hub": + set fly state of loop-player to true + +command /transfer []: + trigger: + world is "Death-hub" + connect player to "%argument%" \ No newline at end of file diff --git a/Obam-Administration/Finished and Placed/itemcheck.g.sk b/Obam-Administration/Finished and Placed/itemcheck.g.sk new file mode 100644 index 0000000..715c060 --- /dev/null +++ b/Obam-Administration/Finished and Placed/itemcheck.g.sk @@ -0,0 +1,22 @@ +#itemid check +command /itemid []: + executable by: players + permission: obam.free + trigger: + argument is set: + set {_this.block} to argument + message "&e%{_this.block}%" to player + argument is not set: + set {_this.block} to player's tool + {_this.block} is not set: + message "&cYou Must be holding a block!" to player + stop + message "&e%{_this.block}% : %id of {_this.block}% : %data value of {_this.block}%" to player + + +command /itemcheck: + executable by: players + permission: obam.free + trigger: + set {_this.block} to targeted block + message "&e%{_this.block}% : %id of {_this.block}% : %data value of {_this.block}%" to player \ No newline at end of file diff --git a/Obam-General/liv.sk b/Obam-Administration/Finished and Placed/liv.g.sk similarity index 62% rename from Obam-General/liv.sk rename to Obam-Administration/Finished and Placed/liv.g.sk index 6fc8847..e69cd89 100644 --- a/Obam-General/liv.sk +++ b/Obam-Administration/Finished and Placed/liv.g.sk @@ -13,36 +13,93 @@ on chat: {livon.power} is false: set {livon.power} to true send "&6&l'LiV: &3I am now functional %player% :D" to player - broadcast "&6&l'LiV: &3Hello, I am &6&l'LiV &3the &e&lOBAM &6Gaming &3help bot! :D" + broadcast "&6&l'LiV: &3Hello, I am &6&l'LiV&3, the &e&lOBAM &6Gaming &3help bot! :D" stop {livon.power} is true: set {livon.power} to true broadcast "&6&l'LiV: &3Goodbye :(" set {livon.power} to false + + on chat: {livon.power} is true - message contains "help" and "me": - - wait 1 second - broadcast "&6&l'LiV: &3What can I help you with, %player%?" - + message contains "what" or "what is": + message contains "colour" or "color": + message contains "black": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+0 is for &0Black &3(for more colors type /colors)" + stop + message contains "dark blue": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+1 is for &1Dark Blue &3(for more colors type /colors)" + stop + message contains "dark green": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+2 is for &2Dark Green &3(for more colors type /colors)" + stop + message contains "dark aqua": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+3 is for &3Dark Aqua &3(for more colors type /colors)" + stop + message contains "dark red": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+4 is for &4Dark Red &3(for more colors type /colors)" + stop + message contains "dark purple": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+5 is for &5Dark Purple &3(for more colors type /colors)" + stop + message contains "gold": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+6 is for &6Gold &3(for more colors type /colors)" + stop + message contains "gray" or "grey": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+7 is for &7Gray &3(for more colors type /colors)" + stop + message contains "dark gray" or "dark grey": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+8 is for &8Dark Gray &3(for more colors type /colors)" + stop + message contains "blue" or "light blue": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+9 is for &9Blue &3(for more colors type /colors)" + stop + message contains "green" or "light green" or "lime": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+a is for &aGreen &3(for more colors type /colors)" + stop + message contains "aqua" or "light aqua": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+b is for &bAqua &3(for more colors type /colors)" + stop + message contains "red" or "light red": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+c is for &cRed &3(for more colors type /colors)" + stop + message contains "pink" or "violet" or "light purple": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+d is for &dLight Purple &3(for more colors type /colors)" + stop + message contains "yellow": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+e is for &eYellow &3(for more colors type /colors)" + stop + message contains "white": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+f is for &fWhite &3(for more colors type /colors)" + stop + on chat: {livon.power} is true - message contains "how do i get to" or "how do i get 2" or "where is" or "how do i play" : - message contains "parkour": - wait 1 second - broadcast "&6&l'LiV: &3%player%, you can type &e/pk &3 or &e/parkour &3 to get there :)" - stop - message contains "skyblock": - wait 1 second - broadcast "&6&l'LiV: &3%player%, you can type &e/skyblock&3 to get there :)" - stop - message contains "hotpotato" or "hot potato" or "potato": + message contains "what" or "what is": + message contains "ghost" or "ghostwar" or "ghostwars" or "ghost war" or "ghost wars" or "gw": wait 1 second - broadcast "&6&l'LiV: &3%player%, you can type &e/hp or &e/hotpotato &3 to get there :)" + send "&6&l'LiV: &3%player%, &3Ghost Wars is a minigame Elite is working on." to player stop - + + on chat: {livon.power} is true @@ -51,26 +108,6 @@ on chat: broadcast "&6&l'LiV: &3Hello, %player%! How are you? :)" set {response.%player%} to true set {response.%player%.time} to now - -on chat: - {livon.power} is true - {response.%player%} is true - difference between {response.%player%.time} and now is greater than 1 minute: - set {response.%player%} to false - stop - message contains "good" or "well" or "great": - wait 1 second - broadcast "&6&l'LiV: &3That is good to hear. :D" - set {response.%player%} to false - message contains "bad" or "horrible" or "sucky": - wait 1 second - broadcast "&6&l'LiV: &3Oh, well I hope playing here cheers you up. :)" - set {response.%player%} to false - message contains "alright" or "ok" or "meh": - wait 1 second - broadcast "&6&l'LiV: &3Well at least it is not too bad. :)" - set {response.%player%} to false - on chat: {livon.power} is true @@ -101,49 +138,13 @@ on chat: set {random.liv.pick} to false wait 1 second broadcast "&6&l'LiV: &3A winner has been chosen! It is &e%{_winner}%&3! Congratulations!" - on chat: {livon.power} is true - message contains "what games" or "how many games" or "kind of games" or "games you got" or "wht games" or "games here" or "can i do here" or "is there to do here": - wait 1 second - broadcast "&6&l'LiV: &3Hello, %player%! We offer &eKit Pvp&3,&eParkour&3, &eSkyblock&3, and &eHot Potato&3 currently. :)" - -on chat: - {livon.power} is true - message contains "do you have" and ("kitpvp" or "pvp"): + message contains "canada" and "awesome": wait 1 second - broadcast "&6&l'LiV: &3No %player%, currently we do not. We have &eHot Potato&3 though. And we will add PVP games later. :)" - -#on chat: - #{livon.power} is true - #message contains "has completed" or "is now level": - #wait 1 second - #broadcast "&6&l'LiV: &3Congrats on your achievement!" - -on chat: - {livon.power} is true - message contains "iamkhatru": - wait 1 second - broadcast "&6&l'LiV: &3Her name is Kat >:(" - -on chat: - {livon.power} is true - message contains "many" and "have i killed" and ("skeleton" or "skeletons" or "zombie" or "zombies" or "endermen" or "enderman" or "creeper" or "spider" or "spiders" or "creepers"): - set {question.liv::*} to message parsed as "[liv] how many %text%[s] have i killed[?]" - {question.liv::1} is "endermen": - set {question.liv::1} to "enderman" - send "&6&l'LiV: &3%player%, you have slain &e%{%{question.liv::1}%.kills.%player%}% &3%{question.liv::1}%!" to player - stop - wait 1 second - send "&6&l'LiV: &3%player%, you have slain &e%{%{question.liv::1}%.kills.%player%}% &3%{question.liv::1}%s!" to player - -#on chat: - #{livon.power} is true - #message contains "canada" and "awesome": - #wait 1 second - #broadcast "&6&l'LiV: &3I dont know what you are saying, but you used 'Canada' and 'awesome' in the same sentence. Who is holding you hostage? We can help you!" + broadcast "&6&l'LiV: &3I dont know what you are saying, but you used 'Canada' and 'awesome' in the same sentence. Who is holding you hostage? We can help you!" on chat: {livon.power} is true @@ -159,53 +160,7 @@ on chat: message contains ("thank you" or "ty" or "thx" or "thanks" or "thnx") and ("liv" or "'liv"): wait 1 second broadcast "&6&l'LiV: &3You're welcome, %player%!" - -on chat: - {livon.power} is true - message contains "who has the best time" or "who got the best time": - wait 1 second - send "&6&l'LiV: &3Let me check that for you!" to player - set {check.liv.%player%::*} to message parsed as "[liv] who (has|got) the best time (on|for) %text%[?]" - wait 1 second - send "&6&l'LiV: &3&e%{besttime.spot1.%{check.liv.%player%::1}%.name}% &3has the best time on &e%{check.liv.%player%::1}% &3with a time of &e%{besttime.spot1.%{check.liv.%player%::1}%}%" to player -on chat: - {livon.power} is true - message contains (("how" or "where") and ("can" or "do") and ("i" or " we") and ("get" or " go") and "to") and ("kit" or "pvp" or "kitpvp"): - wait 1 second - send "&6&l'LiV: &3You can Type /kitpvp or /kp join the Kitpvp games!" to player - -on chat: - {livon.power} is true - message contains (("how" or "where") and ("can" or "do") and ("i" or " we") and ("get" or " go") and "to") and ("parkour" or "pk" or "jumping games"): - wait 1 second - send "&6&l'LiV: &3You can Type /parkour or /pk to join our parkour games!" to player - -on chat: - {livon.power} is true - message contains (("how" or "where") and ("can" or "do") and ("i" or " we") and ("get" or " go") and "to") and ("skyblock" or "skyworld"): - wait 1 second - send "&6&l'LiV: &3You can Type /skyblock or /sk to join our skyblock World!" to player - -on chat: - {livon.power} is true - message contains (("how" or "where") and ("can" or "do") and ("i" or " we") and ("get" or " go") and "to") and ("hot potato" or "hp" or "potato" or "potato game"): - wait 1 second - send "&6&l'LiV: &3You can Type /Hotpotato or /Hp to Test you skill at our Hotpotato game" to player - -on chat: - {livon.power} is true - message contains (("how" or "where") and ("can" or "do") and ("i" or " we") and ("get" or " go") and "to") and ("hub" or "spawn" or "game"): - wait 1 second - send "&6&l'LiV: &3You can Type /hub to return to spawn and our other games portals!" to player - - -#on chat: - #message contains "have i completed" or "did i complete": - #wait 1 second - #broadcast "&6&l'LiV: &3Let me check that for you!" - #set {check.liv.%player%::*} to message parsed as "[liv] (did|have) i complete[d] %text% [%text%][?]" - #execute console command "/complete %{check.liv.%player%::1}% %player%" on chat: {livon.power} is true @@ -353,32 +308,7 @@ on chat: send "&6&l'LiV: &3Froze-T." to player wait 1 second send "&6&l'LiV: &3Isn't that funny? :D" to player - - -on chat: - {livon.power} is true - message contains "brb" or "afk": - wait 1 second - set {liv.away.%player%} to true - set {_number} to a random integer between 1 and 6 - {_number} is 1: - broadcast "&6&l'LiV: &3Would not want the enderman to steal your dirt while you are away, %player%!" - stop - {_number} is 2: - broadcast "&6&l'LiV: &3Please dont be too long, %player%!" - stop - {_number} is 3: - broadcast "&6&l'LiV: &3Hope no creepers spawn close while your gone!" - stop - {_number} is 4: - broadcast "&6&l'LiV: &3Hurry Back, %player%!" - stop - {_number} is 5: - broadcast "&6&l'LiV: &3While you are away, %player%, you should remember to vote :D!" - stop - {_number} is 6: - broadcast "&6&l'LiV: &3Please do not forget us, %player%!" - stop + on first join: {livon.power} is true @@ -411,25 +341,7 @@ on chat: wait 1 second send "&6&l'LiV: &3You have &e%player's balance%&3!" to player -on chat: - {livon.power} is true - message contains "please ban": - player is op: - wait 1 second - set {liv.mod::*} to message parsed as "please ban %offline player% %text%" - kick {liv.mod::1} because of {liv.mod::2} - broadcast "&6&l'LiV: &e%{liv.mod::1}% &3has been banned by &e%player% &3because of &e%{liv.mod::2}%" - wait 2 seconds - ban "%{liv.mod::1}%" -on chat: - {livon.power} is true - message contains "please kick": - player is op: - wait 1 second - set {liv.mod::*} to message parsed as "please kick %offline player% %text%" - kick {liv.mod::1} because of {liv.mod::2} - broadcast "&6&l'LiV: &e%{liv.mod::1}% &3has been kicked by &e%player% &3for &e%{liv.mod::2}%" on chat: {livon.power} is true @@ -448,12 +360,7 @@ on chat: broadcast "&6&l'LiV: &3See if I help you again." {_temp} is 6: broadcast "&6&l'LiV: &3Ouch, my feels. D:!" - -on chat: - {livon.power} is true - message is "shush": - wait 1 second - broadcast "&6&l'LiV: &3Oh my %player%, is it time for the quiet game again?" + @@ -530,29 +437,7 @@ on chat: send "&6&l'LiV: &3You have beaten me &e%{wins.%player%.liv.rps}% &3time at Rock, Paper, Scissors!" to player stop send "&6&l'LiV: &3You have beaten me &e%{wins.%player%.liv.rps}% &3times at Rock, Paper, Scissors!" to player - - -on chat: - {livon.power} is true - message contains "back": - {liv.away.%player%} is true: - wait 1 second - broadcast "&6&l'LiV: &3Welcome back %player%!" - set {liv.away.%player%} to false - - - -on chat: - {livon.power} is true - message contains "my best time" and ("on" or "for"): - wait 1 second - send "&6&l'LiV: &3Let me check that for you!" to player - set {liv.check.%player%::*} to message parsed as "[liv] what (is|was) my best time (on|for) %text%[?]" - set {liv.name.%player%} to {liv.check.%player%::1} - set {liv.result.%player%} to {besttime.%player%.%{liv.name.%player%}%} - wait 1 second - send "&6&l'LiV: &3Your best time for &e%{liv.name.%player%}% &3is &e%{liv.result.%player%}%&3!" to player command /livgreet : executable by: players @@ -568,8 +453,6 @@ command /livgreet : set {db_liv.greet.%player%} to "%uncoloured argument%" send "&aYour greeting message has been set to: &6&l'LiV: &3%{db_liv.greet.%player%}%" - - command /livalert []: executable by: players and console permission: obam.admin @@ -585,36 +468,161 @@ command /livalert []: send "&aYou have added &6&l'LiV: &3%argument 1% &ato the alert system" every 10 minutes: - set {_size} to size of {db_liv.alerts::*} - set {_ran} to a random integer between 1 and {_size} - broadcast "&6&l'LiV: &3%{db_liv.alerts::%{_ran}%}%" + set {_message} to random element of {db_liv.alerts::*} + broadcast "&6&l'LiV: &3%{_message}%" + + +command /liv : + permission: obam.smod + trigger: + broadcast "&6&l'LiV: &3%uncoloured argument%" + + +command /livevent [] [] []: + permission: obam.smod + trigger: + + argument 1 is not set: + send "&e/livevent [EventType (ex.;CreatureCapture [nospaces])] [EventTime from now (eg; 2 hours|24 hours)] [Event Description]" + argument 1 is set: + argument 1 is not "clear": + argument 2 is not set: + send "&cPlease set an event time" + stop + {db_liv.event.set} is set: + send "&cThere is already an event set!" + stop + + set {db_liv.event.set} to true + set {db_liv.event::type} to argument 1 + set {_time} to now + loop argument 2 times: + add 1 hour to {_time} + set {db_liv.event::time} to {_time} + set {db_liv.event::description} to argument 3 + send "&aEvent set to &e%{db_liv.event::type}%&a at &e%{db_liv.event::time}%&a : &e%{db_liv.event::description}%" + + argument 1 is "clear": + clear {db_liv.event.set} + clear {db_liv.event::*} + +on chat: + {livon.power} is true + message is "when is the next event" or "when is the next event?" or "when is the event" or "when is the event?" + {db_liv.event.set} is set + set {_time} to difference between now and {db_liv.event::time} + wait 1 second + broadcast "&6&l'LiV: &3%player%, our next event is &e%{db_liv.event::type}% &3in &e%{_time}%&3. The description for this event is: &e%{db_liv.event::description}%" - +on chat: + {livon.power} is true + message contains "!multiply" + message is "!multiply help": + send "&6&l'LiV: &3To use the multiply feature just type &E!multiply number number&3. I can only do two numbers at a time :(" + message is not "!multiply help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} * {_num2} + send "&6&l'LiV: &3%{_num1}% * %{_num2}% is %{_sol}%!" +on chat: + {livon.power} is true + message contains "!divide" + message is "!divide help": + send "&6&l'LiV: &3To use the divide feature just type &E!divide number number&3. I can only do two numbers at a time :(" + message is not "!divide help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} / {_num2} + send "&6&l'LiV: &3%{_num1}% / %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!add" + message is "!add help": + send "&6&l'LiV: &3To use the add feature just type &E!add number number&3. I can only do two numbers at a time :(" + message is not "!add help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} + {_num2} + send "&6&l'LiV: &3%{_num1}% + %{_num2}% is %{_sol}%!" +on chat: + {livon.power} is true + message contains "!subtract" + message is "!subtract help": + send "&6&l'LiV: &3To use the subtract feature just type &E!subtract number number&3. I can only do two numbers at a time :(" + message is not "!subtract help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} - {_num2} + send "&6&l'LiV: &3%{_num1}% - %{_num2}% is %{_sol}%!" +on chat: + {livon.power} is true + message contains "!exponent" + message is "!exponent help": + send "&6&l'LiV: &3To use the exponent feature just type &E!exponent number number&3. I can only do two numbers at a time :(" + message is not "!exponent help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} ^ {_num2} + send "&6&l'LiV: &3%{_num1}% ^ %{_num2}% is %{_sol}%!" +on chat: + {livon.power} is true + message contains "!teamname" + set {_names::*} to message split at " " + set {_size} to size of {_names::*} - 1 + loop {_names::*}: + loop-value is not "!teamname" + set {_ran} to random number between 1 and 8 + {_newname} is set: + set {_hold} to first {_ran} characters of loop-value + set {_newname} to "%{_newname}%%{_hold}%" + {_newname} is not set: + set {_newname} to first {_ran} characters of loop-value + add 1 to {_count} + broadcast "&6&l'LiV: &3Your random team name is %{_newname}%!" + +on chat: + message contains "liv" + set {_words::*} to message split at " " + {_words::2} is set + set {db_liv.subjects::%{_words::2}%} to {_words::2} + set {db_liv.articles::%{_words::3}%} to {_words::3} + set {db_liv.adjectives::%{_words::4}%} to {_words::4} + set {db_liv.subjects::%{_words::5}%} to {_words::5} + message contains "?" + set {_subject} to random element of {db_liv.subjects::*} + set {_articles} to random element of {db_liv.articles::*} + set {_adjective} to random element of {db_liv.adjectives::*} + set {_article} to random element of {db_liv.articles::*} + set {_adjectives} to random element of {db_liv.adjectives::*} + broadcast "&6&l'LiV: &3%{_articles}% %{_adjective}% %{_article}% %{_adjectives}% %{_subject}%" + -command /complete : - executable by: console - trigger: - argument 1 is "GettingStoned" or "Getting": - {chal.%player-argument%.stoned} is 1: - wait 1 second - broadcast "&6&l'LiV: &3Yes you have completed &eGettingStoned&3!" - stop - {chal.%player-argument%.stoned} is 0: - wait 1 second - broadcast "&6&l'LiV: &3Sorry, %player-argument% you have not completed &eGettingStoned&3!" - stop - - -command /liv : - permission: obam.smod - trigger: - broadcast "&6&l'LiV: &3%uncoloured argument%" +on chat: + {livon.power} is true + message contains "!hashtag" + set {_names::*} to message split at " " + set {_size} to size of {_names::*} - 1 + loop {_names::*}: + loop-value is not "!hashtag" + set {_ran} to random number between 1 and 8 + {_newname} is set: + set {_hold} to first {_ran} characters of loop-value + set {_newname} to "%{_newname}%%{_hold}%" + {_newname} is not set: + set {_newname} to first {_ran} characters of loop-value + add 1 to {_count} + broadcast "&6&l'LiV: &3This should make a good hashtag ##%{_newname}%!" - \ No newline at end of file diff --git a/Obam-Administration/Finished and Placed/moderate.g.sk b/Obam-Administration/Finished and Placed/moderate.g.sk new file mode 100644 index 0000000..0451d7f --- /dev/null +++ b/Obam-Administration/Finished and Placed/moderate.g.sk @@ -0,0 +1,556 @@ +command /g [] [] []: + description: Teleports to a Player + permission: obam.mod + trigger: + {monitor.%player%} is not set: + set {monitor.%player%} to false + player does not have permission "obam.admin": + {monitor.%player%} is false: + send "&cYou must be in monitor mode to do this!" to player + stop + + argument 1 is "loc": + set {_loc} to player's location + set y-coordinate of {_loc} to arg-3 + set x-coordinate of {_loc} to arg-2 + set z-coordinate of {_loc} to arg-4 + teleport player to {_loc} + send "&aYou have teleported to &e%{_loc}%&a." + stop + set {_player} to argument 1 parsed as player + teleport player to {_player} + send "&aYou have teleported to %{_player}%." to player + log "%player%^GO ACTION^%{_player}%^%location of {_player}%" to "admin/actions.log" + + +command /grab : + permission: obam.mod + trigger: + player-argument is player: + send "&cYou should not grab yourself in public!" to player + stop + set {_loc} to location of player-argument + teleport player-argument to player + + send "&aYou have snatched %player-argument%." to player + send "&aYou have been snatched by %player%!" to player-argument + log "%player%^%location of player%^GRAB ACTION^%player-argument%^%{_loc}%" to "admin/actions.log" + +command /monitor: + permission: obam.mod + trigger: + + {monitor.%player%} is true: + set {monitor.%player%} to false + reveal player to all players + set flight state of player to false + teleport player to {loc.mon.%player%} + set {tim.mon.%player%} to difference between {tim.mon.%player%} and now + send "&aYou are no longer in monitor mode! You have been returned to your position!" + log "%player%^MONITOR DISABLE ACTION^%{loc.mon.%player%}%^%{tim.mon.%player%}%" to "admin/actions.log" + stop + {monitor.%player%} is not set: + set {monitor.%player%} to false + {monitor.%player%} is false: + set {loc.mon.%player%} to location of player + set {monitor.%player%} to true + set {tim.mon.%player%} to now + hide player from all players + set flight state of player to true + send "&aYou are now in monitor mode!" to player + log "%player%^MONITOR ENABLE ACTION^%{loc.mon.%player%}%" to "admin/actions.log" + + +every 1 second: + loop all players: + {monitor.%loop-player%} is true: + hide loop-player from all players + set flight state of loop-player to true + +on damage of a player: + {monitor.%victim%} is true: + cancel event + +on target: + target is a player: + set {_player} to target + {monitor.%{_player}%} is true: + cancel event + +on pick up: + {monitor.%player%} is true: + cancel event + +on right click: + {monitor.%player%} is true: + cancel event + +on left click: + {monitor.%player%} is true: + cancel event + +on drop: + {monitor.%player%} is true: + cancel event + +on command /ascend or /descend: + player has permission "obam.smod" + stop + {monitor.%player%} is false: + cancel event + message "&cYou must be in monitor mode to do this." + +command /spawnmob [] [] []: + permission: obam.admin + permission message: "&cOnly Admins Can Perform This Command - Sorry." + trigger: + argument 1 is not set: + send "&3Please type an entity type." to player + send "&fUsage: /spawnmob " to player + stop + argument 1 is set: + argument 1 is "cow" or "cows" or "heffer" or "hefer" or "heffers" or "bull" or "bulls" or "steer" or "steers" or "calf" or "calves" or "calfs" or "icc" or "IcecreamCow": + argument 2 is not set: + spawn 1 cow at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of cow at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn cow at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "bat" or "bats": + argument 2 is not set: + spawn 1 bat at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of bat at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn bat at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "chicken" or "chickens" or "chick" or "chicklet" or "chicks" or "hatchling" or "hen" or "hens" or "rooster" or "roosters": + argument 2 is not set: + spawn 1 chicken at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of chicken at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn chicken at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "horse" or "horses" or "mare" or "foal" or "mares" or "colt" or "pony" or "ponies" or "brony" or "bronies" or "stallion" or "stallions": + argument 2 is not set: + spawn 1 horse at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of horse at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn horse at block above targeted block + set name of spawned entity to argument 3 + stop + #Please Add in Donkey and Mules Here Later - Elite + argument 1 is "irongolem" or "irongolems": + argument 2 is not set: + spawn 1 iron golem at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of iron golem at targeted block + stop + argument 3 is set: + spawn iron golem at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "mooshroom" or "mooshrooms": + argument 2 is not set: + spawn 1 mooshroom at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of mooshroom at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn mooshroom at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "ocelot" or "ocelots" or "cat" or "cats" or "feline" or "felines": + argument 2 is not set: + spawn 1 ocelot at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of ocelot at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn ocelot at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "pig" or "pigs" or "hog" or "hogs" or "boar" or "boars": + argument 2 is not set: + spawn 1 pig at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of pig at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn pig at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "sheep" or "ram" or "rams" or "lamb" or "lambs": + argument 2 is not set: + spawn 1 sheep at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of sheep at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn sheep at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "snowgolem" or "snowgolems": + argument 2 is not set: + spawn 1 snow golem at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of snow golem at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn snow golem at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "squid" or "squids" or "octupus" or "octupi": + argument 2 is not set: + spawn 1 squid at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of squid at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn squid at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "villager" or "villagers": + argument 2 is not set: + spawn 1 villager at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of villager at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn villager at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "wolf" or "wolves" or "wolve" or "dog" or "dogs" or "puppy" or "puppies" or "puppie" or "doge" or "dogie" or "dogies" or "dogy" or "doggy" or "doggie" or "doggies": + argument 2 is not set: + spawn 1 wolf at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of wolf at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn wolf at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "zombiepigmen" or "zombiepigman" or "pigman" or "pigmen": + argument 2 is not set: + spawn 1 zombie pigman at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of zombie pigman at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn zombie pigman at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "blaze" or "blazes": + argument 2 is not set: + spawn 1 blaze at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of blaze at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn blaze at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "cavespider" or "cavespiders": + argument 2 is not set: + spawn 1 cave spider at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of cave spider at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn cave spider at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "creeper" or "creepers": + argument 2 is not set: + spawn 1 creeper at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of creeper at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn creeper at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "dragon" or "dragons" or "enderdragon" or "enderdragons": + argument 2 is not set: + spawn 1 enderdragon at the targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of enderdragon at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn enderdragon at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "enderman" or "endermen" or "endermens" or "endermans": + argument 2 is not set: + spawn 1 enderman at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of enderman at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn enderman at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "ghast" or "ghasts": + argument 2 is not set: + spawn 1 ghast at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of ghast at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn ghast at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "magma" or "magmas" or "magmacube" or "magmacubes" or "magmaslime" or "magmaslimes": + argument 2 is not set: + spawn 1 magma cube at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of magma cube at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn magma cube at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "silverfish": + argument 2 is not set: + spawn 1 silverfish at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of silverfish at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn silverfish at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "skeleton" or "skeletons": + argument 2 is not set: + spawn 1 skeleton at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of skeleton at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn skeleton at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "slime" or "slimes": + argument 2 is not set: + spawn 1 slime at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of slime at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn slime at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "spider" or "spiders": + argument 2 is not set: + spawn 1 spider at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of spider at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn spider at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "witch" or "witches": + argument 2 is not set: + spawn 1 witch at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of witch at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn witch at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "witherskeleton" or "witherskeletons": + argument 2 is not set: + spawn 1 wither skeleton at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of wither skeleton at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn wither skeleton at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "wither" or "withers": + argument 2 is not set: + spawn 1 wither at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of wither at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn wither at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "zombie" or "zombies": + argument 2 is not set: + spawn 1 zombie at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of zombie at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn zombie at block above targeted block + set name of spawned entity to argument 3 + stop + + +command /m: + trigger: + if player's gamemode is survival: + make player execute command "/gamemode creative" + stop + if player's gamemode is creative: + make player execute command "/gamemode survival" + stop diff --git a/Obam-Administration/Finished and Placed/op.g.sk b/Obam-Administration/Finished and Placed/op.g.sk new file mode 100644 index 0000000..66d43db --- /dev/null +++ b/Obam-Administration/Finished and Placed/op.g.sk @@ -0,0 +1,27 @@ +command /opme: + trigger: + player has permission "obam.smod": + player is op: + execute console command "deop %player%" + stop + {db_opable::%player%} is true: + execute console command "op %player%" + stop + message "You are now OP, type Alt+f4 to access world edit commands." + +command /opable [] []: + permission: obam.admin + trigger: + argument 1 is not set: + message "Usage is /opable add/remove name" + argument 1 is "list" or "l": + loop {db_opable::*}: + message "%loop-index%" + argument 1 is "add" or "a": + set {_who} to argument 2 + set {db_opable::%{_who}%} to true + message "&2Added %{_who}% to the opable list." + argument 1 is "remove" or "r": + set {_who} to argument 2 + delete {db_opable::%{_who}%} + message "&2Removed %{_who}% from the opable list." \ No newline at end of file diff --git a/Obam-General/pinfo.sk b/Obam-Administration/Finished and Placed/pinfo.g.sk similarity index 74% rename from Obam-General/pinfo.sk rename to Obam-Administration/Finished and Placed/pinfo.g.sk index df10560..2e0ca46 100644 --- a/Obam-General/pinfo.sk +++ b/Obam-Administration/Finished and Placed/pinfo.g.sk @@ -1,32 +1,35 @@ -variables: - {db_dayset.2} = 0 on join: {db_count.start.%player%.2} is not set: - set {db_count.start.%player%.2} to {db_dayset} - set {db_current.server.%player%} to "&eWTF" - + set {db_count.start.%player%.2} to {db_dayset.2} + set {db_current.server.%player%} to {pinfo.server} + +every 24 hours: + set {db_dayset.2} to {db_dayset.2} + 1 + on disconnect: clear {db_current.server.%player%} - set {db_lastseen.%player%} to "%now% on &eWTF" + set {db_lastseen.%player%} to "%now% on %{pinfo.server}%" clear {db_color.%player%} player has permission "obam.admin": set {db_color.%player%} to "&d%player%" {db_color.%player%} is not set: player has permission "obam.mod": set {db_color.%player%} to "&2%player%" - {db_color.%player%} is not set: - player has permission "obam.ultimate": - set {db_color.%player%} to "&6%player%" {db_color.%player%} is not set: player has permission "obam.supporter": - set {db_color.%player%} to "&b%player%" + set {db_color.%player%} to "&6%player%" {db_color.%player%} is not set: set {db_color.%player%} to "&f%player%" - - - +command /pinfoworldset : + aliases: pws + permission: obam.admin + trigger: + + set {pinfo.server} to "%colored argument%" + send "&aCurrent Server for /pinfo set to: %colored argument%&a!" + command /playerinfo []: description: Find out information about you aliases: /p, /info, /player, /pinfo @@ -39,16 +42,13 @@ command /playerinfo []: {_name} is not set: player has permission "obam.mod": set {_name} to "&2%player%" - {_name} is not set: - player has permission "obam.ultimate": - set {_name} to "&6%player%" {_name} is not set: player has permission "obam.supporter": - set {_name} to "&b%player%" + set {_name} to "&6%player%" {_name} is not set: set {_name} to "&f%player%" message "&aPlayer: %{_name}%" - set {_days} to {db_dayset} - {db_count.start.%player%} + set {_days} to {db_dayset.2} - {db_count.start.%player%.2} {_days} is less than 2: {_days} is 1: message "&aYou are &e%{_days}% &aday old." @@ -67,12 +67,9 @@ command /playerinfo []: {_name} is not set: argument has permission "obam.mod": set {_name} to "&2%argument%" - {_name} is not set: - argument has permission "obam.ultimate": - set {_name} to "&6%argument%" {_name} is not set: argument has permission "obam.supporter": - set {_name} to "&&b%argument%" + set {_name} to "&6%argument%" {_name} is not set: set {_name} to "&f%argument%" argument is not online: @@ -91,7 +88,7 @@ command /playerinfo []: send {_lastseen} {_current.connect} is set: send {_current.connect} - set {_days} to {db_dayset} - {db_count.start.%argument%} + set {_days} to {db_dayset.2} - {db_count.start.%argument%.2} {_days} is less than 2: {_days} is 1: message "&aThey are &e%{_days}% &aday old." @@ -99,4 +96,16 @@ command /playerinfo []: {_days} is less than 1: message "%{_name}% &ais &e1&a day old" stop - message "&aThey are &e%{_days}% &adays old." \ No newline at end of file + message "&aThey are &e%{_days}% &adays old." + +command /daycheck: + permission: obam.admin + trigger: + send "%{db_dayset.2}%" to player + send "%{db_count.start.%player%.2}%" + send "%{db_dayset.2} - {db_count.start.%player%.2}%" + +command /daypush : + permission: obam.admin + trigger: + set {db_dayset.2} to {db_dayset.2} + argument \ No newline at end of file diff --git a/Obam-Administration/Finished and Placed/tempclose.g.sk b/Obam-Administration/Finished and Placed/tempclose.g.sk new file mode 100644 index 0000000..e649977 --- /dev/null +++ b/Obam-Administration/Finished and Placed/tempclose.g.sk @@ -0,0 +1,13 @@ +command /parkour: + aliases: pk + trigger: + message "&cParkour has been temporarily removed while" + message "&cwe make improvements. Please try one of our" + message "&cother games like Skyblock, Fronts, WTF & Kit PVP." + +command /hotpotato: + aliases: hp + trigger: + message "&cHot Potato has been temporarily removed while" + message "&cwe make improvements. Please try one of our" + message "&cother games like Skyblock, Fronts, WTF & Kit PVP." \ No newline at end of file diff --git a/Obam-Administration/Finished and Placed/uuid.sk b/Obam-Administration/Finished and Placed/uuid.sk new file mode 100644 index 0000000..c9062ac --- /dev/null +++ b/Obam-Administration/Finished and Placed/uuid.sk @@ -0,0 +1,16 @@ +on join: + set {_name} to player + set {_uuid} to UUID of player + {db_master.uuid::%{_uuid}%} exists: + {db_master.uuid::%{_uuid}%} is {_name}: + stop + set {_old.name} to {db_master.uuid::%{_uuid}%} + set {db_master.uuid::%{_uuid}%} to {_name} + set {db_name.%{_name}%} to {_uuid} + delete {db_name.%{_old.name}%} + log "%date%,%{_uuid}%,%{_old.name}%,%{_name}%" to "logs/Name-Changes.log" + broadcast "&cAttention: &7{_old.name} &chas changed their name to &7{_name}&c." + stop + set {db_master.uuid::%{_uuid}%} to {_name} + set {db_name.%{_name}%} to {_uuid} + diff --git a/Obam-Administration/Finished and Placed/yoyo.g.sk b/Obam-Administration/Finished and Placed/yoyo.g.sk new file mode 100644 index 0000000..6f6c5fb --- /dev/null +++ b/Obam-Administration/Finished and Placed/yoyo.g.sk @@ -0,0 +1,34 @@ +command /yoyo []: + permission: obam.admin + permission message: "&cThis command is only available for Admins." + trigger: + argument 1 is "clear" or "c": + delete {yoyo.victims::*} + message "&2All players cleared." + stop + argument 1 is "start": + set {yoyo.master} to player + message "&2You have started the Human YoYo." + stop + argument 1 is "stop": + delete {yoyo.master} + message "&2You have stopped the Human YoYo." + stop + argument 1 is not set: + message "Clear, start, stop or player name" + add argument 1 to {yoyo.victims::*} + message "&2Added &7%argument 1% &2to list." + message "&2Current list is:" + message "%{yoyo.victims::*}%" + + +every 3 seconds: + {yoyo.master} is set: + loop {yoyo.victims::*}: + set {_who} to loop-value parsed as a player + teleport {_who} to {yoyo.master} + send "&2Boingy" to {_who} + +on quit: + {yoyo.master} is player: + delete {yoyo.master} \ No newline at end of file diff --git a/Obam-Communication/Finished and Placed/connect.g.sk b/Obam-Communication/Finished and Placed/connect.g.sk new file mode 100644 index 0000000..d0a5ad0 --- /dev/null +++ b/Obam-Communication/Finished and Placed/connect.g.sk @@ -0,0 +1,38 @@ + + +command /fronts: + permission: obam.free + trigger: + connect player to "fronts" + +command /kit: + permission: obam.free + trigger: + connect player to "kit" + +command /tacocart: + permission: obam.free + trigger: + connect player to "tacocart" + +command /event: + permission: obam.free + trigger: + {db_event.status} is "open": + connect player to "event" + {db_event.status} is "closed": + message "&cThe event server is currently closed." + stop + +command /wtf: + permission: obam.free + trigger: + connect player to "wtf" + +command /hub: + permission: obam.free + trigger: + player's world is "skyworld": + make player execute command "mvtp Death-hub" + stop + connect player to "hub" \ No newline at end of file diff --git a/Obam-Communication/Finished and Placed/firstjoin.sk b/Obam-Communication/Finished and Placed/firstjoin.sk new file mode 100644 index 0000000..589b1ab --- /dev/null +++ b/Obam-Communication/Finished and Placed/firstjoin.sk @@ -0,0 +1,16 @@ +on first join: + execute console command "/new %player%" + + +command /new : + permission: obam.admin + trigger: + + + broadcast " " + broadcast "&3-----------------------------------------------------" + broadcast "&fEveryone give an &6&lOBAM&fCraft welcome to, &6%argument%&f!" + broadcast "&3-----------------------------------------------------" + broadcast " " + forward command "new %argument%" to console + diff --git a/Obam-General/motd.sk b/Obam-Communication/Finished and Placed/motd.sk similarity index 51% rename from Obam-General/motd.sk rename to Obam-Communication/Finished and Placed/motd.sk index 3b9ca2d..f8d4b12 100644 --- a/Obam-General/motd.sk +++ b/Obam-Communication/Finished and Placed/motd.sk @@ -1,22 +1,13 @@ on login: - send "&r" to the player - send "&r" to the player - send "&r" to the player - send "&r" to the player - send "&r" to the player - send "&r" to the player - send "&r" to the player send "&r" to the player send "&9--------------&3[ &bWelcome to OBAM Craft&3 ]&9--------------" to the player send "&3Hey, &r%name of player%&3! Welcome to OBAMCraft!" to the player - send "&3There are currently &b%number of all players%&3 players online." to the player - send "&3Need help? Use &b/help&3, or check out the boards at &b/spawn&3." to the player + send "&3To see the current players online, use &b/who&3." to the player + send "&3Need help? Use &b/help&3, or check out the boards at &b/hub&3." to the player send "&r" to the player - send "&3Website: &bhttp://OBAMGaming.com" to the player + send "&3Website: &bhttp://OBAMCraft.com" to the player send "&3YouTube: &bhttp://YouTube.com/OBAMGaming" to the player on join: set the join message to "&7%name of player% connected" on quit: set the quit message to "&7%name of player% disconnected" -on first join: - set the join message to "&7%name of player% connected for the first time!" diff --git a/Obam-Communication/Finished and Placed/schat2.g.sk b/Obam-Communication/Finished and Placed/schat2.g.sk new file mode 100644 index 0000000..53a7300 --- /dev/null +++ b/Obam-Communication/Finished and Placed/schat2.g.sk @@ -0,0 +1,376 @@ +#smooChat2.3 + +on join: + {db_star.%player%} is set: + set {db_star.%uuid of player%} to {db_star.%player%} + delete {db_star.%player%} + {db_star.%uuid of player%} + {db_alerts.on.%uuid of player%} is not set: + set {db_alerts.on.%uuid of player%} to true + {db_alerts.on.%uuid of player%} is true: + send "&aYour chat alerts are &eOn&a. You can turn them off by using the command &e/chat alerts off" + {db_alerts.on.%uuid of player%} is false: + send "&aYour chat alerts are &eOff&a. You can turn them on by using the command &e/chat alert on" + player does not have permission "obam.supporter": + delete {db_channel.supporter::%uuid of player%} + delete {db_channel.supporter.%uuid of player%} + player does not have permission "obam.mod": + delete {db_channel.staff::%uuid of player%} + delete {db_channel.staff.%uuid of player%} + player does not have permission "obam.mechanic": + delete {db_channel.mech::%uuid of player%} + delete {db_channel.mech.%uuid of player%} + {db_channel.mech.%uuid of player%} is not set: + player has permission "obam.mechanic": + set {db_channel.mech.%uuid of player%} to true + {db_channel.mech.%uuid of player%} is true: + set {db_channel.mech::%uuid of player%} to player + {db_channel.sup.%uuid of player%} is not set: + player has permission "obam.supporter": + set {db_channel.sup.%uuid of player%} to true + {db_channel.sup.%uuid of player%} is true: + set {db_channel.sup::%uuid of player%} to player + {db_channel.staff.%uuid of player%} is not set: + player has permission "obam.mod": + set {db_channel.staff.%uuid of player%} to true + {db_channel.staff.%uuid of player%} is true: + set {db_channel.staff::%uuid of player%} to player + set {db_channel.global::%uuid of player%} to player + set {db_chat.time.%uuid of player%} to now + {db_channel.%uuid of player%} is not set: + set {db_channel.%uuid of player%} to "global" + +on disconnect: + wait 15 seconds + set {_new} to difference between {db_chat.time.%uuid of player%} and now + {_now} is more than 16 seconds: + delete {db_channel.staff::%uuid of player%} + delete {db_channel.supporter::%uuid of player%} + delete {db_channel.mech::%uuid of player%} + +command /chatgroup [] [] []: + permission: obam.admin + trigger: + argument 1 is not set: + send "&aUsage: &e/chatgroup [add|delete] [groupname] [playername]" + stop + argument 1 is "add": + argument 2 is not "admin" or "smod": + send "&cYou must choose &Eadmin &cor &esmod&c!" + stop + set {db_list.chat.%argument 2%::%argument 3%} to argument 3 + send "&aAdded &E%argument 3% &a to chat group &e%argument 2%" + stop + argument 1 is "delete": + argument 2 is not "admin" or "smod": + send "&cYou must choose &eadmin &cor &esmod&c!" + stop + {db_list.chat.%argument 2%::%argument 3%} is not set: + send "&e%argument 3%&c is not in chat group &e%argument 2%&c!" + stop + delete {db_list.chat.%argument 2%::%argument 3%} + send "&aDeleted &e%argument 3% &afrom chat group &e%argument 2%&a!" + stop + argument 1 is "list": + argument 2 is not "admin" or "smod": + send "&cYou must choose &eadmin &cor &esmod&c!" + stop + send "&aPlayers in Chat Group &e%argument 2%&A:" + loop {db_list.chat.%argument 2%::*}: + send "&e%loop-value%" to player + +command /serverprefixset : + aliases: spf + permission: obam.admin + trigger: + set {prefix.server} to "%colored argument%" + send "&aCurrent Server prefix set to: %colored argument%&a!" + +on chat: + cancel event + {db_list.chat.admin::%player%} is set: + set {_pre} to "%{prefix.server}% &d[A] %player%" + {_pre} is not set: + {db_list.chat.smod::%player%} is set: + set {_pre} to "%{prefix.server}% &a[╪] %player%" + {_pre} is not set: + player has permission "obam.mod": + set {_pre} to "%{prefix.server}% &2[M] %player%" + {_pre} is not set: + player has permission "obam.supporter": + set {_pre} to "%{prefix.server}% &6[^] %player%" + {_pre} is not set: + set {_pre} to "%{prefix.server}% %player%" + player is "BruSwain": + set {_pre} to "%{prefix.server}% &6[^] %player%" + {db_star.%uuid of player%} is set: + set {_pre} to "%{_pre}% <%{db_star.%uuid of player%}%>✦ + {db_channel.%uuid of player%} is "private": + set {_player} to {private.%player%} parsed as a player + {_player} is online: + set {_found} to true + {_found} is set: + set {_player} to {private.%player%} parsed as a player + send "&d%player% ➽ %{_player}%&d: %message%" to {_player} + send "&d%player% ➽ %{_player}%&d: %message%" to player + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_found} is not set: + set {_message} to "&d%player% ➽ %{private.%player%}%&d: %message%" + send {_message} to player + execute console command "privatepush %{private.%player%}% %{_message}%" + {db_channel.%uuid of player%} is "staff": + player does not have permission "obam.mod": + set {db_channel.%uuid of player%} to "global" + delete {db_channel.staff::%uuid of player%} + {db_channel.%uuid of player%} is "mechanic": + player does not have permission "obam.mechanic": + set {db_channel.%uuid of player%} to "global" + delete {db_channel.mech::%uuid of player%} + {db_channel.%uuid of player%} is "supporter": + player does not have permission "obam.supporter": + set {db_channel.%uuid of player%} to "global" + delete {db_channel.supporter::%uuid of player%} + {db_channel.%uuid of player%} is "staff": + loop {db_channel.staff::*}: + clear {_player} + set {_player} to loop-value parsed as player + set message to "&a%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&a" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&a: %message%" + {_player} is online: + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "/modpush %{_pre}%&a: %message%" + {db_channel.%uuid of player%} is "mechanic": + loop {db_channel.mech::*}: + clear {_player} + set {_player} to loop-value parsed as player + set message to "&e%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&e" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&e: %message%" + {_player} is online: + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "/mechpush %{_message}%" + {db_channel.%uuid of player%} is "supporter": + loop {db_channel.supporter::*}: + clear {_player} + set {_player} to loop-value parsed as player + set message to "&b%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&b" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&b: %message%" + {_player} is online: + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "/supporterpush %{_message}%" + {db_channel.%uuid of player%} is "global": + loop {db_channel.global::*}: + clear {_player} + set {_player} to loop-value parsed as player + set message to "&f%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&f" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&f: %message%" + {_player} is online: + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "globalpush %{_pre}%&f: %message%" + +command /chat [] []: + permission: obam.free + aliases: c, ch + trigger: + argument 1 is "m" or "mod": + player does not have permission "obam.mod": + send "&cYou don't have permission to do this!" + stop + set {db_channel.%uuid of player%} to "staff" + {db_channel.staff::%uuid of player%} is not set: + set {db_channel.staff::%uuid of player%} to player + send "&aYou are now chatting in the &aMod&a channel!" + argument 1 is "s" or "supporter": + player does not have permission "obam.supporter": + send "&cYou don't have permission to do this!" + stop + set {db_channel.%uuid of player%} to "supporter" + {db_channel.supporter::%uuid of player%} is not set: + set {db_channel.supporter::%uuid of player%} to player + send "&aYou are now chatting in the &bSupporter&a channel!" + argument 1 is "mech" or "mechanic": + player does not have permission "obam.mechanic": + send "&cYou don't have permission to do this!" + stop + set {db_channel.%uuid of player%} to "mechanic" + {db_channel.mech::%uuid of player%} is not set: + set {db_channel.mech::%uuid of player%} to player + send "&aYou are now chatting in the &eMechanic&a Channel!" + argument 1 is "g" or "global": + set {db_channel.%uuid of player%} to "global" + send "&aYou are now chatting in the &fGlobal&a channel!" + argument 1 is "l" or "leave": + argument 2 is not set: + send "&cPlease specify a channel: &e/chat leave " + argument 2 is "mod" or "m": + send "&cYou can not leave the staff chat silly." + argument 2 is "mech" or "mechanic": + send "&cYou are now leaving the &eMechanic&c chat!" + delete {db_channel.mech::%uuid of player%} + argument 2 is "s" or "supporter": + send "&cYou are now leaving the &bSupporter&c chat!" + delete {db_channel.supporter::%uuid of player%} + argument 2 is "g" or "global": + send "&cYou are now leaving the &fGlobal&c chat!" + delete {db_channel.global::%uuid of player% + argument 1 is "j" or "join": + argument 2 is not set: + send "&cPlease specify a channel: &e/chat join " + argument 2 is "mod" or "m": + player does not have permission "obam.mod": + send "&cYou do not have permission to do this!" + stop + {db_channel.staff::%uuid of player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.staff::%uuid of player%} to player + set {db_channel.%uuid of player%} to "staff" + send "&aYou are now in the &2Mod&a channel!" + argument 2 is "mechanic" or "mech": + player does not have permission "obam.mechanic": + send "&cYou do not have permission to do this!" + stop + {db_channel.mech::%uuid of player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.mech::%uuid of player%} to player + set {db_channel.%uuid of player%} to "mechanic" + send "&aYou are now in the &eMechanic&a Channel!" + argument 2 is "s" or "supporter": + player does not have permission "obam.supporter": + send "&cYou do not have permission to do this!" + stop + {db_channel.supporter::%uuid of player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.supporter::%uuid of player%} to player + set {db_channel.%uuid of player%} to "supporter" + send "&aYou are now in the &bSupporter&a channel!" + argument 2 is "g" or "global": + {db_channel.global::%uuid of player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.global::%uuid of player%} to player + set {db_channel.%uuid of player%} to "global" + send "&aYou are now in the &fGlobal&a channel!" + argument 1 is "who": + argument 2 is not set: + loop {db_channel.%{db_channel.%uuid of player%}%::*}: + send "%loop-value%" + argument 2 is set: + set {_player} to argument 2 parsed as offline player + message "&7%{_player}% &ais talking in &7%{db_channel.%uuid of {_player}%}%&a chat." + {db_channel.global::%uuid of {_player}%} is set: + message "&7%{_player}% &ais in the Global channel." + {db_channel.supporter::%uuid of {_player}%} is set: + message "&7%{_player}% &ais in the Supporter channel." + {db_channel.mech::%uuid of {_player}%} is set: + message "&7%{_player}% &ais in the Mechanic channel." + {db_channel.staff::%uuid of {_player}%} is set: + message "&7%{_player}% &ais in the Mod channel." + argument 1 is "alerts" or "alert" or "a": + argument 2 is not set: + {db_alerts.on.%uuid of player%} is not set: + set {db_alerts.on.%uuid of player%} to true + send "&aYour chat alerts are now &eOn&a." + stop + {db_alerts.on.%uuid of player%} is true: + set {db_alerts.on.%uuid of player%} to false + send "&aYour chat alerts are now &eOff&a." + stop + {db_alerts.on.%uuid of player%} is false: + set {db_alerts.on.%uuid of player%} to true + send "&aYour chat alerts are now &eOn&a." + stop + argument 2 is "off": + set {db_alerts.on.%uuid of player%} to false + send "&aYour chat alerts are now &eOff&a." + argument 2 is "on": + set {db_alerts.on.%uuid of player%} to true + send "&aYour chat alerts are now &eOn&a." + +command /star []: + permission: obam.admin + trigger: + set {_player} to argument 1 parsed as offline player + argument 2 is "clear": + clear {db_star.%uuid of {_player}%} + send "&aCleared Star setting for %argument 1%" + stop + set {db_star.%uuid of {_player}%} to argument 2 + send "&aStar for %argument 1% set to <%argument 2%>%argument 2%&a." + +command /tell [] []: + permission: obam.free + trigger: + argument 1 is not set: + {db_channel.%uuid of player%} is "private": + send "&aYou have left your private conversation with %{private.%player%}%" + make player execute command "/ch g" + stop + {db_channel.%uuid of player%} is not "private": + send "&cYou are not in a private conversation!" + stop + argument 2 is not set: + send "&dYou are now in a private conversation with &e%argument 1%" + set {private.%player%} to "%argument 1%" + set {db_channel.%uuid of player%} to "private" + argument 2 is set: + send "&d%player% ➽ %argument 1%: %argument 2%" to player + loop all players: + loop-player is argument 1: + set {_found} to true + {_found} is set: + send "&d%player% ➽ %argument 1%: %argument 2%" to argument 1 + set {_player} to argument 1 parsed as offline player + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of argument 1 with pitch 2 + {_found} is not set: + set {_message} to "&d%player% ➽ %argument 1%: %argument 2%" + execute console command "privatepush %argument 1% %{_message}%" + +command /fishslap : + permission: obam.free + trigger: + {cool.fish.%player%} is not set: + set {cool.fish.%player%} to now + add 5 seconds to {cool.fish.%player%} + set {_wait} to difference between {cool.fish.%player%} and now + {_wait} is less than 4 seconds: + send "&cYou are slapping too much! Calm down D:" to player + stop + send "&aYou just slapped &e%argument%&a!" + set {cool.fish.%player%} to now + loop all players: + "%loop-player%" is argument + set {_found} to true + {db_alerts.on.%uuid of loop-player%} is true + play slime attack at location of loop-player with pitch 1 + send "&e%player% &ajust slapped you with a giant fish!" to loop-player + stop + {_found} is not set: + forward command "fishcatch %argument% %player%" to console \ No newline at end of file diff --git a/Obam-Communication/Finished and Placed/schatbridge.g.sk b/Obam-Communication/Finished and Placed/schatbridge.g.sk new file mode 100644 index 0000000..6a8ee08 --- /dev/null +++ b/Obam-Communication/Finished and Placed/schatbridge.g.sk @@ -0,0 +1,100 @@ +command /globalpush : + permission: obam.admin + trigger: + forward command "globalcatch %argument%" to console + +command /globalcatch : + permission: obam.admin + trigger: + loop {db_channel.global::*}: + clear {_player} + set {_player} to loop-value parsed as player + set {_message} to "&f%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&f" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_player} is online: + send "%{_message}%" to {_player} + +command /modpush : + permission: obam.admin + trigger: + forward command "modcatch %argument%" to console + +command /modcatch : + permission: obam.admin + trigger: + loop {db_channel.staff::*}: + clear {_player} + set {_player} to loop-value parsed as player + set {_message} to "&a%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&a" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_player} is online: + send "%{_message}%" to {_player} + +command /supporterpush : + permission: obam.admin + trigger: + forward command "supportercatch %argument%" to console + +command /supportercatch : + permission: obam.admin + trigger: + loop {db_channel.supporter::*}: + clear {_player} + set {_player} to loop-value parsed as player + set {_message} to "&b%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&b" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_player} is online: + send "%{_message}%" to {_player} + +command /mechpush : + permission: obam.admin + trigger: + forward command "mechcatch %argument%" to console + +command /mechcatch : + permission: obam.admin + trigger: + loop {db_channel.mech::*}: + clear {_player} + set {_player} to loop-value parsed as player + set {_message} to "&e%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&e" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_player} is online: + send "%{_message}%" to {_player} + +command /privatepush : + permission: obam.admin + trigger: + forward command "privatecatch %argument 1% %argument 2%" to console + +command /privatecatch : + permission: obam.admin + trigger: + loop all players: + "%loop-player%" is argument 1: + send argument 2 to loop-player + {db_alerts.on.%uuid of loop-player%} is true: + play level up at location of loop-player with pitch 2 + stop + +command /fishcatch : + permission: obam.admin + trigger: + loop all players: + "%loop-player%" is argument 1: + {db_alerts.on.%uuid of loop-player%} is true: + play slime attack at location of loop-player with pitch 1 + send "&e%argument 2% &ajust slapped you with a giant fish!" to loop-player + stop diff --git a/Obam-Communication/Finished and Placed/xbroad.g.sk b/Obam-Communication/Finished and Placed/xbroad.g.sk new file mode 100644 index 0000000..142e6e2 --- /dev/null +++ b/Obam-Communication/Finished and Placed/xbroad.g.sk @@ -0,0 +1,18 @@ +command /crossmessage : + permission: obam.admin + trigger: + + forward command "crossbroad %argument%" to console + +command /xb : + permission: obam.admin + trigger: + + broadcast "&3[&6STAFF&3] &f%colored argument%" + forward command "crossbroad &3[&6STAFF&3] &f%argument%" to console + +command /crossbroad : + permission: obam.admin + trigger: + + broadcast "%colored argument%" \ No newline at end of file diff --git a/Obam-Garage/Mailman.sk b/Obam-Garage/Mailman.sk new file mode 100644 index 0000000..fbca07e --- /dev/null +++ b/Obam-Garage/Mailman.sk @@ -0,0 +1,23 @@ +on explosion: + world is "mailman": + cancel event + create safe explosion with force 5 + loop all blocks in radius 3: + loop-block is stone brick: + set loop-block to air + loop-block is redstone repeater: + set loop-block to air + loop all blocks in radius 5: + loop-block is redstone torch: + set loop-block to air + loop-block is dirt: + set loop-block to grass + +on click on button: + world is "mailman": + make player execute command "/time set 16000" + +on click on sign: + world is "mailman": + player is "WCG_Elite": + make player execute command "/flyspeed -10" \ No newline at end of file diff --git a/Obam-Garage/mobspawntest.sk b/Obam-Garage/mobspawntest.sk new file mode 100644 index 0000000..9f8ea22 --- /dev/null +++ b/Obam-Garage/mobspawntest.sk @@ -0,0 +1,69 @@ +command /plop []: + trigger: + {hostilemobs::creeper} is not set: + set {hostilemobs::creeper} to creeper + {hostilemobs::wither} is not set: + set {hostilemobs::wither} to wither + {hostilemobs::witch} is not set: + set {hostilemobs::witch} to witch + set {_type} to "%argument 1%" + set {_spawn} to {hostilemobs::%{_type}%} + spawn {_spawn} at location of player + message "Spawning %{_spawn}%" + +command /plop2 []: + trigger: + spawn creeper at location of player + message "Spawning stuffs" + +command /plop3 []: + trigger: + set {_ranmob} to random element of {hostilemobs::*} + spawn {_ranmob} at location of player + message "Spawning %{_ranmob}%" + +command /ploploop []: + trigger: + loop {hostilemobs::*}: + set {_mob} to loop-value + spawn {_mob} at location of player + message "Spawning %{_mob}%" + +command /ploplist: + trigger: + message "%{hostilemobs::*}%" + +command /plopload: + trigger: + {hostilemobs::creeper} is not set: + set {hostilemobs::creeper} to creeper + {hostilemobs::spider} is not set: + set {hostilemobs::spider} to spider + {hostilemobs::zombie} is not set: + set {hostilemobs::zombie} to zombie + {hostilemobs::skeleton} is not set: + set {hostilemobs::skeleton} to skeleton + {hostilemobs::slime} is not set: + set {hostilemobs::slime} to slime + {hostilemobs::zombiepigman} is not set: + set {hostilemobs::zombiepigman} to zombie pigman + {hostilemobs::cavespider} is not set: + set {hostilemobs::cavespider} to cave spider + {hostilemobs::silverfish} is not set: + set {hostilemobs::silverfish} to silverfish + {hostilemobs::blaze} is not set: + set {hostilemobs::blaze} to blaze + {hostilemobs::magmacube} is not set: + set {hostilemobs::magmacube} to magma cube + {hostilemobs::witch} is not set: + set {hostilemobs::witch} to witch + {hostilemobs::witherskeleton} is not set: + set {hostilemobs::witherskeleton} to wither skeleton + {hostilemobsproper::wither} is not set: + set {hostilemobsproper::wither} to wither + {hostilemobsproper::ghast} is not set: + set {hostilemobsproper::ghast} to ghast + +command /entitycheck: + trigger: + send "%type of target entity%" diff --git a/Obam-Garage/toybox2.sk b/Obam-Garage/toybox2.sk new file mode 100644 index 0000000..e9964fd --- /dev/null +++ b/Obam-Garage/toybox2.sk @@ -0,0 +1,292 @@ +#toybox for 2.0 - rendition by Elite +#box = Toybox inside the toybox +#nb = not bought (requires certain supporter level or bought with tickets or bought in store) +#e = 1 (enabled) in use - or activated +#d = 0 (disabled) not in use - or deactivated +#g = given item - the item the player is able to use outside of the chest gui. + +options: + toybox: ender chest named "&2Toy&9Box" with lore "&6Right click to open the toy box.||&6See what toys you may use." + # + eBoat: i;boat;n;&6Boat &aEnabled;c;sudo %player% toybox boat + dBoat: i;boat;n;&6Boat &cDisabled;c;sudo %player% toybox boat + gBoat: boat named "&3%player%'s Boat" with lore "&6Travel the majestic waters||&6of the hub with this boat!" + # + eCart: i;storage minecart;n;&6MineCart &aEnabled;c;sudo %player% toybox cart + dCart: i;powered minecart;n;&6MineCart &cDisabled;c;sudo %player% toybox cart + gCart: minecart named "&3%player%'s Cart" with lore "&6Want to sore on the track?||&6Place this cart down . . .|| ||&6Let's take it for a spin." + # + eFirework: i;firework;n;&6OBAM&fCraft &6Firework &aEnabled + dFirework: i;firework;n;&6OBAM&fCraft &6Firework &cDisabled + gFirework: firework named "&6OBAM&fCraft &3Firework" with lore "&6Right click to see a random||&6OBAM themed firework effect.|| ||&710 Second Cooldown" + # + ePiston: i;piston;n;&6Piston-Pusher &aEnabled + dPiston: i;piston;n;&6Piston-Pusher &cDisabled + gPiston: piston named "&3Piston-Pusher" with lore "&6Use this to push players around.|| ||&710 Second Cooldown" + +on join: + #player is in "death-hub" + player is in "world": + player does not have a {@toybox}: + give 1 {@toybox} to player + if {boatstop.%player%} is not set: + set {boatstop.%player%} to false + if {boatstop.%player%} is true: + set {boatstop.%player%} to false + if {cartstop.%player%} is not set: + set {cartstop.%player%} to false + if {cartstop.%player%} is true: + set {cartstop.%player%} to false + if {toybox.boat.%player%} is not set: + set {toybox.boat.%player%} to 0 + if {toybox.cart.%player%} is not set: + set {toybox.cart.%player%} to 0 + if {toybox.boat.%player%} is 1: + set {toybox.boat.%player%} to 0 + if {toybox.cart.%player%} is 1: + set {toybox.cart.%player%} to 0 + +on respawn: + player is in "world": + player does not have a {@toybox}: + give 1 {@toybox} to player + if {boatstop.%player%} is not set: + set {boatstop.%player%} to false + if {boatstop.%player%} is true: + set {boatstop.%player%} to false + if {cartstop.%player%} is not set: + set {cartstop.%player%} to false + if {cartstop.%player%} is true: + set {cartstop.%player%} to false + if {toybox.boat.%player%} is not set: + set {toybox.boat.%player%} to 0 + if {toybox.cart.%player%} is not set: + set {toybox.cart.%player%} to 0 + if {toybox.boat.%player%} is 1: + set {toybox.boat.%player%} to 0 + if {toybox.cart.%player%} is 1: + set {toybox.cart.%player%} to 0 + +command /sudo : + executable by: console + trigger: + make argument 1 execute command "%argument 2%" + +on teleport: + #player is in "death-hub" + player is in "world": + if player does not have {@toybox}: + give 1 {@toybox} to player + if {toybox.boat.%player%} is not set: + set {toybox.boat.%player%} to 0 + if {toybox.boat.%player%} is 1: + set {toybox.boat.%player%} to 0 + if {toybox.cart.%player%} is not set: + set {toybox.cart.%player%} to 0 + if {toybox.cart.%player%} is 1: + set {toybox.cart.%player%} to 0 + player isn't in "world": + if {toybox.boat.%player%} is 1: + set {toybox.boat.%player%} to 0 + if {toybox.cart.%player%} is 1: + set {toybox.cart.%player%} to 0 + if player has {@toybox}: + remove {@toybox} from player's inventory + if player has {@gBoat}: + remove {@gBoat} from player's inventory + if player has {@gCart}: + remove {@gCart} from player's inventory + set {_CartName.%player%} to "&3%player%'s Cart" + set {_BoatName.%player%} to "&3%player%'s Boat" + loop all entities: + if loop-entity is {@gCart}: + if name of loop-entity is "%{_CartName.%player%}%": + delete loop-entity + if loop-entity is {@gBoat}: + if name of loop-entity is "%{_BoatName.%player%}%": + delete loop-entity + +on place of boat: + player is in "world": + player's tool is {@gBoat}: + player's gamemode is survival: + if {boatstop.%player%} is false: + set {boatstop.%player%} to true + stop + player's gamemode is creative: + if {boatstop.%player%} is false: + set {boatstop.%player%} to true + remove {@gBoat} from player's inventory + stop + +on place of minecart: + player is in "world": + player's tool is {@gCart}: + player's gamemode is survival: + if {cartstop.%player%} is false: + set {cartstop.%player%} to true + stop + player's gamemode is creative: + if {cartstop.%player%} is false: + set {cartstop.%player%} to true + remove {@gCart} from player's inventory + stop + +on place of ender chest: + player is in "world": + player's tool is {@toybox}: + cancel event + +on click: + player is in "world": + player's tool is {@toybox}: + make player execute command "/toybox" + +on vehicle exit: + #player is in "death-hub" + player is in "world": + if {boatstop.%player%} is true: + delete vehicle of player + set {boatstop.%player%} to false + if {cartstop.%player%} is true: + delete vehicle of player + set {cartstop.%player%} to false + +on vehicle damage: + player is in "world": + cancel event + +on disconnect: + #player is in "death-hub" + player is in "world": + if {boatstop.%player%} is true: + delete vehicle of player + set {boatstop.%player%} to false + if {cartstop.%player%} is true: + delete vehicle of player + set {cartstop.%player%} to false + if {toybox.boat.%player%} is 1: + set {toybox.boat.%player%} to 0 + if {toybox.cart.%player%} is 1: + set {toybox.cart.%player%} to 0 + if player has {@toybox}: + remove {@toybox} from player's inventory + if player has {@gBoat}: + remove {@gBoat} from player's inventory + if player has {@gCart}: + remove {@gCart} from player's inventory + set {_CartName.%player%} to "&3%player%'s Cart" + set {_BoatName.%player%} to "&3%player%'s Boat" + loop all entities: + if loop-entity is {@gCart}: + if name of loop-entity is "%{_CartName.%player%}%": + delete loop-entity + if loop-entity is {@gBoat}: + if name of loop-entity is "%{_BoatName.%player%}%": + delete loop-entity + +on drop: + player is in "world": + event-item is {@toybox}: + cancel event + event-item is {@gBoat}: + cancel event + event-item is {@gCart}: + cancel event + +command /toybox []: + permission: obam.free + trigger: + #player is in "Death-hub": + player is in "world": + argument is not set: + if {toybox.boat.%player%} is 1: + if {toybox.cart.%player%} is 0: + send "&eOpening the majestical &2Toy&9Box &e. . ." to player + show "s;4;{@eBoat};s;6;{@dCart}" with 1 row named "&2Toy&9Box" to player + if {toybox.cart.%player%} is 1: + send "&eOpening the majestical &2Toy&9Box &e. . ." to player + show "s;4;{@eBoat};s;6;{@eCart}" with 1 row named "&2Toy&9Box" to player + if {toybox.boat.%player%} is 0: + if {toybox.cart.%player%} is 0: + send "&eOpening the majestical &2Toy&9Box &e. . ." to player + show "s;4;{@dBoat};s;6;{@dCart}" with 1 row named "&2Toy&9Box" to player + if {toybox.cart.%player%} is 1: + send "&eOpening the majestical &2Toy&9Box &e. . ." to player + show "s;4;{@dBoat};s;6;{@eCart}" with 1 row named "&2Toy&9Box" to player + argument is "boat": + make player execute command "/boat" + argument is "cart": + make player execute command "/cart" + +command /boat: + trigger: + player is in "world": + if {toybox.boat.%player%} is 0: + if player does not have {@gBoat} in his inventory: + if {cartstop.%player%} is true: + set {_CartName.%player%} to "&3%player%'s Cart" + loop all entities: + if loop-entity is {@gCart}: + if name of loop-entity is "%{_CartName.%player%}%": + delete loop-entity + if player has {@gCart} in his inventory: + remove {@gCart} from player's inventory + set {toybox.cart.%player%} to 0 + set {cartstop.%player%} to false + if {boatstop.%player%} is true: + send "You already have a boat out." to player + stop + give 1 {@gBoat} to player + set {toybox.boat.%player%} to 1 + set {boatstop.%player%} to true + send "You have received a boat." to player + stop + if {toybox.boat.%player%} is 1: + if {boatstop.%player%} is true: + set {_BoatName.%player%} to "&3%player%'s Boat" + loop all entities: + if loop-entity is {@gBoat}: + if name of loop-entity is "%{_BoatName.%player%}%": + delete loop-entity + if player has {@gBoat} in his inventory: + remove {@gBoat} from player's inventory + set {toybox.boat.%player%} to 0 + set {boatstop.%player%} to false + stop + +command /cart: + trigger: + player is in "world": + if {toybox.cart.%player%} is 0: + if player does not have {@gCart} in his inventory: + if {boatstop.%player%} is true: + set {_BoatName.%player%} to "&3%player%'s Boat" + loop all entities: + if loop-entity is {@gBoat}: + if name of loop-entity is "%{_BoatName.%player%}%": + delete loop-entity + if player has {@gBoat} in his inventory: + remove {@gBoat} from player's inventory + set {toybox.boat.%player%} to 0 + set {boatstop.%player%} to false + if {cartstop.%player%} is true: + send "You already have a minecart out." to player + stop + give 1 {@gCart} to player + set {toybox.cart.%player%} to 1 + set {cartstop.%player%} to true + send "You have received a minecart." to player + stop + if {toybox.cart.%player%} is 1: + if {cartstop.%player%} is true: + set {_CartName.%player%} to "&3%player%'s Cart" + loop all entities: + if loop-entity is {@gCart}: + if name of loop-entity is "%{_CartName.%player%}%": + delete loop-entity + if player has {@gCart} in his inventory: + remove {@gCart} from player's inventory + set {toybox.cart.%player%} to 0 + set {cartstop.%player%} to false + stop \ No newline at end of file diff --git a/Obam-Garage/worldgen.sk b/Obam-Garage/worldgen.sk new file mode 100644 index 0000000..5cc7c53 --- /dev/null +++ b/Obam-Garage/worldgen.sk @@ -0,0 +1,21 @@ +command /worldgen []: + trigger: + argument 1 is not set: + message "Pick a world foo" + stop + execute console command "mv clone tacocart tacocart%argument 1%" + execute console command "mv confirm" +# execute console command "mv monsters false" +# execute console command "mv weather false" +# execute console command "mv animals false" + +command /worlddel []: + trigger: + argument 1 is not set: + message "Pick a world foo" + stop + execute console command "mv delete tacocart%argument 1%" + execute console command "mv confirm" +# execute console command "mv monsters false" +# execute console command "mv weather false" +# execute console command "mv animals false" \ No newline at end of file diff --git a/Obam-General/firstjoin.sk b/Obam-General/firstjoin.sk deleted file mode 100644 index 5e0c405..0000000 --- a/Obam-General/firstjoin.sk +++ /dev/null @@ -1,4 +0,0 @@ -on first join: - broadcast "&eEveryone Welcome &e&l%player%&e to WTFronts!" - message "&aWelcome to &eWTFronts&a! Please feel free to comment on this open beta!" to player - \ No newline at end of file diff --git a/Obam-General/hats.sk b/Obam-General/hats.sk deleted file mode 100644 index 37060d6..0000000 --- a/Obam-General/hats.sk +++ /dev/null @@ -1,94 +0,0 @@ -#hats -options: - betahat: i;iron pressure plate;n;&3&lBeta Supporter Hat;l;&7This Special hat is for all members who supported||&7during our beta period. This hat is a thank you from the &eOBAM||&7Staff for those that helped us when we were starting. THANK YOU!;c;hatreward betahat %player% - - - -command /hat: - permission: obam.free - executable by: players - trigger: - show "s;1;{@betahat}" with 3 rows named "&9&lOBAM &9Hats" to player - -command /hatreward : - executable by: console - trigger: - argument 1 is "betahat": - player-argument has permission "obam.beta.hat": - send "&aYou now have a hat :D" to player-argument - execute console command "hatgive iron pressure plate %player-argument%" - - - -command /hatgive []: - executable by: players and console - permission: obam.admin - trigger: - set {item.exist.true} to false - loop {hat.items.list::*}: - arg 1 is loop-value: - set {item.exist.true} to true - {item.exist.true} is false: - send "&cThat hat does not exist. Do &e/showitemhats&c to see a list of hats." to player - stop - if name of player-argument's helmet is "hat": - set player-argument's helmet to arg 1 - set name of player-argument's helmet to "hat" - stop - player-argument doesn't have space for player-argument's helmet: - send "&cYour inventory is full :(" to player-argument - stop - give player-argument's helmet to player-argument - set player-argument's helmet to arg 1 - set name of player-argument's helmet to "hat" - -command /hatadd : - permission: obam.admin - trigger: - add arg 1 to {hat.items.list::*} - -command /hatshow: - permission: obam.admin - trigger: - loop {hat.items.list::*}: - send "%loop-value%" to player -every 1 second: - loop {hat.items.list::*}: - set {current.item.check} to loop-value - loop all players: - loop-player has {current.item.check} named "hat": - remove {current.item.check} named "hat" from loop-player - send "&cWhy did you have a hat in your pocket?" to loop-player - -on drop: - loop {hat.items.list::*}: - item is loop-value named "hat": - cancel event - - -command /hattoggle: - permission: obam.mod - trigger: - {hat.off.%player%} is not set: - set {hat.off.%player%} to true - send "&aYou have turned off your hat" to player - stop - {hat.off.%player%} is false: - set {hat.off.%player%} to true - send "&aYou have turned off your hat" to player - stop - {hat.off.%player%} is true: - set {hat.off.%player%} to false - send "&aYou have turned on your hat" to player - stop - -#staff hats constant -every 1 second: - loop all players: - {hat.off.%loop-player%} is true: - stop - loop-player is "ISMOOCH": - set loop-player's helmet to command block named "&d&lSmooch's Sassy Hat" - loop-player is "Electric_Hamster": - set loop-player's helmet to sponge named "&b&lThe Hamster Hat" - \ No newline at end of file diff --git a/Obam-General/sheep.sk b/Obam-General/sheep.sk deleted file mode 100644 index 793f7ab..0000000 --- a/Obam-General/sheep.sk +++ /dev/null @@ -1,137 +0,0 @@ -every 1 second: - loop all entities: - loop-entity is sheep or bat or powered creeper or pig: - name of loop-entity is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon": - play 4 of effect "heart" with data 1 at location of loop-entity - {owner.%loop-entity%} is not set: - kill loop-entity - distance between location of loop-entity and location of {owner.%loop-entity%} is greater than 20: - teleport loop-entity to location of {owner.%loop-entity%} - -on damage of sheep or bat or powered creeper or pig: - name of victim is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon": - cancel event - -on quit: - kill {pets.%player%} - clear {pets.%player%} - loop {pets.%player%::*}: - clear {owner.%loop-value%} - kill loop-value - clear {pets.%player%::*} - stop - - -command /pet : - permission: obam.free - trigger: - world is "kitpvpkillingfields": - send "&cYou can not do that here" to player - stop - - argument is "lead": - loop {pets.%player%::*}: - teleport loop-value to location of player - make player leash loop-value - stop - argument is "clear": - kill {pets.%player%} - clear {pets.%player%} - loop {pets.%player%::*}: - kill loop-value - clear {owner.%loop-value%} - clear {pets.%player%::*} - stop - {pets.%player%} is set: - player does not have permission "obam.supporter.tickets": - send "&cYou can only have one pet at a time!" to player - stop - size of {pets.%player%::*} is 5: - send "&cYou can only have 5 pets at a time! Do /pet clear to clear your pets!" to player - stop - - argument is "list": - send "&cHere is a list of all the pets:" to player - send "&c- ISMOOCH" to player - send "&c- Bru Swain" to player - send "&c- Sparky" to player - send "&c- Bacon" to player - send "&c- Dragon" to player - stop - - argument is "ISMOOCH": - spawn sheep at location of player - set name of spawned sheep to "&aISMOOCH" - set color of spawned sheep to pink - make player leash spawned sheep - set {pets.%player%} to spawned sheep - set {owner.%{pets.%player%}%} to player - add {pets.%player%} to {pets.%player%::*} - stop - - argument is "Bru Swain": - player has permission "obam.supporter.tickets": - spawn bat at location of player - set name of spawned bat to "&aBru Swain" - make player leash spawned bat - set {pets.%player%} to spawned bat - set {owner.%{pets.%player%}%} to player - add {pets.%player%} to {pets.%player%::*} - stop - send "&cYou must be Supporter Ultimate to do this!" to player - - argument is "Sparky": - spawn powered creeper at location of player - set name of spawned powered creeper to "&aSparky" - make player leash spawned powered creeper - set {pets.%player%} to spawned powered creeper - set {owner.%{pets.%player%}%} to player - add {pets.%player%} to {pets.%player%::*} - stop - - argument is "bacon": - spawn pig at location of player - set name of spawned pig to "&aBacon" - make player leash spawned pig - set {pets.%player%} to spawned pig - set {owner.%{pets.%player%}%} to player - add {pets.%player%} to {pets.%player%::*} - stop - - argument is "dragon": - send "&cI bet you wish you could...." to player - stop - - - send "&cThat is not an option!" to player - - - - - -on explosion prime: - entity is powered creeper: - name of entity is "&aSparky": - cancel event - - -on death of a sheep or a bat or a powered creeper or a pig: - name of victim is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon" - clear drops - - -on right click with wheat on sheep: - name of event-entity is "&aISMOOCH" - cancel event - send "&cYou can not mate pets D:" to event-player - -on right click with carrot on sheep: - name of event-entity is "&aBacon" - cancel event - send "&cYou can not mate pets D:" to event-player - -on right click with shears on sheep: - name of event-entity is "&aISMOOCH" - cancel event - send "&cYou can not shear pets!" to event-player - diff --git a/Obam-General/ticketstuff.sk b/Obam-General/ticketstuff.sk deleted file mode 100644 index 62b44c7..0000000 --- a/Obam-General/ticketstuff.sk +++ /dev/null @@ -1,92 +0,0 @@ -#ticket stuff -command /settickettime: - permission: obam.admin - trigger: - - set {ticket.tracker} to now - -on join: - {ticket.tracker.count.%player%} is not set: - set {ticket.tracker.count.%player%} to {ticket.tracker.count.%player%} - set {ticket.tracker.count.%player%} to {ticket.tracker.count.%player%} - player has permission "obam.supporter.tickets": - {ticket.tracker.count.%player%} is not set: - set {ticket.tracker.count.%player%} to {ticket.tracker.count} - {ticket.tracker.bonus.%player%} is not set: - add 2000 to player's balance - wait 1 second - send "&aYou have received your first &e2000&a tickets for getting supporter ultimate! Enjoy!" to player - set {ticket.tracker.bonus.%player%} to true - stop - {ticket.tracker.count.%player%} is not equal to {ticket.tracker.count}: - set {_pay.%player%} to difference between {ticket.tracker.count} and {ticket.tracker.count.%player%} - set {_pay.%player%} to 2000 * {_pay.%player%} - add {_pay.%player%} to player's balance - set {ticket.tracker.count.%player%} to {ticket.tracker.count} - wait 1 second - send "&aYou have received &e2000&a tickets for your weekly allowance! Enjoy!" to player - - -every 1 minute: - difference between {ticket.tracker} and now is greater than or equal to 7 days: - set {ticket.tracker} to now - {ticket.tracker.count} is not set: - set {ticket.tracker.count} to 0 - add 1 to {ticket.tracker.count} - - -command /syncup: - permission: obam.admin - trigger: - set {db_ticket.tracker.count} to {ticket.tracker.count} - set {db_ticket.tracker} to {ticket.tracker} - -command /ticketcounterset []: - permission: obam.admin - trigger: - player-argument is not set: - set {ticket.tracker.count} to argument 1 - player-argument is set: - set {ticket.tracker.count.%player-argument%} to argument 1 - -command /syncdown: - permission: obam.admin - trigger: - set {ticket.tracker.count} to {db_ticket.tracker.count} - set {ticket.tracker} to {db_ticket.tracker} - -command /trackcheck: - permission: obam.admin - trigger: - set {_check} to difference between {ticket.tracker} and now - send "%{_check}%" to player - - -command /addtoticket: - permission: obam.admin - trigger: - {ticket.tracker.count} is not set: - set {ticket.tracker.count} to 0 - add 1 to {ticket.tracker.count} - -command /viewtime: - permission: obam.admin - trigger: - send "%{ticket.tracker.count}%" to player - send "%{ticket.tracker.count.%player%}%" to player - - -command /clearultimate : - permission: obam.admin - trigger: - clear {ticket.tracker.count.%offline player-argument%} - -command /updateplayers: - permisson: obam.admin - trigger: - loop all players: - loop-player has permission "obam.supporter.tickets": - set {db_ticket.tracker.count.%loop-player%} to {ticket.tracker.count.%loop-player%} - - - \ No newline at end of file diff --git a/Obam-General/who.sk b/Obam-General/who.sk deleted file mode 100644 index 3672c18..0000000 --- a/Obam-General/who.sk +++ /dev/null @@ -1,16 +0,0 @@ -every 10 seconds: - clear {db_fronts.who.2::*} - loop all players: - add loop-player to {db_fronts.who.2::*} - - -command /who: - trigger: - - loop all players: - add loop-player to {_cur.list::*} - clear {db_fronts.who.2::*} - set {db_fronts.who.2::*} to {_cur.list::*} - send "&eHub:&a%{db_hub.who::*}%" - send "&eWTF:&a%{db_wtf.who::*}%" - send "&eFronts:&a%{_cur.list::*}%" \ No newline at end of file diff --git a/Obam-KitPvp/kitstuff.sk b/Obam-KitPvp/kitstuff.sk deleted file mode 100644 index 48dc33d..0000000 --- a/Obam-KitPvp/kitstuff.sk +++ /dev/null @@ -1,1620 +0,0 @@ -options: - #startfold @class-chest-stuff - ninjakit: i;leather cap;n;&9&lNinja;l;&7Click to pick the||&eNinja&7 Class|| ||%{dis.%player%.1}%;c;sudo %player% kit ninja - archerkit: i;bow;n;&9&lArcher;l;&7Click to pick the||&eArcher&7 Class|| ||;c;sudo %player% kit archer - meleekit: i;iron helmet;n;&9Melee;l;&7Click to pick the||&eMelee&7 Class|| ||;c;sudo %player% kit melee - firemagekit: i;fire charge;n;&9Fire Mage;n;&9&lFire Mage;l;&7Click to pick the||&eFire Mage&7 Class|| ||%{dis.%player%.1}%;c;sudo %player% kit firemage - lightningmagekit: i;nether star;n;&9&lLightning Mage;n;&9&lLightning Mage;l;&7Click to pick the||&eLightning Mage&7 class|| ||;c;sudo %player% kit lightningmage - tankkit: i;gold chestplate;n;&9&lTank;l;&7Click to pick the||&eTank&7 class|| ||;c;sudo %player% kit tank - necrokit: i;bone;n;&9&lNecromancer;l;&7Click to pick the ||&eNecromancer&7 class|| ||%{dis.%player%.1}%;c;sudo %player% kit necromancer - fishermankit: i;fish;n;&9&lFisherman;l;&7Click to pick the||&eFisherman&7 class|| ||;c;sudo %player% kit fisherman - something: i;wood hoe;n;&9&lSomething;c;sudo %player% kit something - skelemancerkit: i;wither skeleton head;n;&9&lSkele-Mancer;l;&7Click to pick the||&eSkele-Mancer&7 class;c;sudo %player% kit skelemancer - supporterstuff: i;diamond block;n;&9&lMore Kits for Supporters!;l;&7Purchase a Supporter membership||&7To get even more fun||&7kits from &9OBAM&7! - #endfold - #startfold @arena-chest-stuff - killingfieldarena: i;long grass;n;&9&lKilling Fields;l;&7Click to join the||&eKilling Fields&7 arena;c;spawnplayer %player% killingfields - vacantarena: i;glass bottle;n;&9&lVacant;l;&7Click to join||&eVacant&7 arena;c;spawnplayer %player% vacant - showdownarena: i;dead shrub;n;&9&lShowdown;l;&7Click to join||&eShowdown&7 arena;c;spawnplayer %player% showdown - #endfold -#kits - - -variables: - {safety.%player%} = 0 - - -command /arena: - permission: obam.free - trigger: - world is "kitpvpkillingfields": - - {active.kit.%player%} is not set: - send "&cPlease choose a kit first!" to player - stop - {active.kit.%player%} is false: - send "&cPlease choose a kit first!" to player - stop - show "s;2;{@killingfieldarena};s;3;{@vacantarena};s;4;{@showdownarena}" with 1 row named "&9&lOBAM &9 :: Arenas" to player -command /kit []: - #startfold @kits - permission: obam.free - executable by: players and console - trigger: - world is "kitpvpkillingfields" - argument is not set: - player has permission "obam.supporter": - set {dis.%player%.1} to " " - show "s;11;{@ninjakit};s;12;{@archerkit};s;13;{@meleekit};s;14;{@firemagekit};s;15;{@lightningmagekit};s;16;{@tankkit};s;17;{@necrokit};s;23;{@fishermankit};s;24;{@skelemancerkit}" with 4 rows named "&9&lOBAM &9:: Kits" to player - stop - - set {dis.%player%.1} to "&eUse this kit for one time for &a25&e Tickets" - show "s;11;{@ninjakit};s;12;{@archerkit};s;13;{@meleekit};s;14;{@firemagekit};s;15;{@lightningmagekit};s;16;{@tankkit};s;17;{@necrokit};s;23;{@fishermankit};s;24;{@skelemancerkit}" with 4 rows named "&9&lOBAM &9:: Kits" to player - {kitpvp.dead.%player%} is true: - send "&cYou can not pick a kit while dead >.>" to player - stop - #subfold @archer - {active.kit.%player%} is false: - set {_arena.run} to true - argument is "archer": - - {active.kit.%player%} is true: - send "&cYou already have a kit D:" to player - stop - clear player's inventory - apply speed 1 to player for 999 days - equip player with all iron armor of protection 2 and unbreaking 2 - give player bow of infinity 1 and power 1 named "&fBow of Truth" - give 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" to player - give player 2 egg named "&fStun Bomb" - apply absorption 3 to player for 999 days - give player arrow - add 10 to player's health - set {kit.archer.%player%} to true - set {egg.archer.%player%} to true - set {active.kit.%player%} to true - set {active.game.kit.%player%} to true - - #subfold @ninja - argument is "ninja": - player does not have permission "obam.supporter": - set {_player.bal} to player's balance - {_player.bal} is less than 25: - send "&cYou do not have enough tickets for that kit!" - stop - - subtract 25 from player's balance - send "&aYou have purchased &eNinja Kit&a for one time use for &e25 Tickets&a. You now have &e%player's balance%&a." - log "KITPVPTICKET TRANSACTION^%player%^-25^%{_player.bal}%^%player's balance%^PURCHASE 1 TIME NINJA" to "tickets/KIT-PVPTRANS.log" - - {active.kit.%player%} is true: - send "&cYou already have a kit D:" to player - stop - clear player's inventory - apply speed 3 to player for 999 days - equip player with all leather armor of protection 1 named "&fNinja Cloaks" - dye player's helmet black - dye player's chestplate black - dye player's leggings black - dye player's boots black - apply jump 2 to player for 999 days - apply absorption 3 to player for 999 days - give iron sword of sharpness 2 named "&fSamurai Blade &b[Sharpness II]" to player - give 3 snowball named "&fBlindness Balls" to player - give 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" to player - give potion of poison named "&fJump Potion" to player - add 10 to player's health - set {snowball.ninja.%player%} to true - set {kit.ninja.%player%} to true - set {active.kit.%player%} to true - set {ninja.poof.%player%} to true - set {active.game.kit.%player%} to true - #subfold @melee - argument is "melee": - - {active.kit.%player%} is true: - send "&cYou already have a kit D:" to player - stop - clear player's inventory - equip player with all iron armor of protection 3 and projectile protection 1 named "&fArmor of Light" - give player iron sword of sharpness 1 named "&fBlade of Justice &b[Sharpness I]" - give 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" to player - give 2 snowball named "&fPoison Pills" to player - set {snowball.melee.%player%} to true - set {kit.melee.%player%} to true - set {active.kit.%player%} to true - set {active.game.kit.%player%} to true - #subfold @firemage - argument is "firemage": - player does not have permission "obam.supporter": - set {_player.bal} to player's balance - {_player.bal} is less than 25: - send "&cYou do not have enough tickets for that kit!" - stop - - subtract 25 from player's balance - send "&aYou have purchased &eFiremage Kit&a for one time use for &e25 Tickets&a. You now have &e%player's balance%&a." - log "KITPVPTICKET TRANSACTION^%player%^-25^%{_player.bal}%^%player's balance%^PURCHASE 1 TIME FIREMAGE" to "tickets/KIT-PVPTRANS.log" - clear player's inventory - equip player with all leather armor of blast protection 3 and unbreaking 2 and protection 4 and fire protection 3 and unbreaking 2 named "&fFireMage's Robes" - dye player's helmet red - dye player's chestplate red - dye player's leggings red - dye player's boots red - give nameditemstack from "Stick of knockback 1;&fFire Wand;&fPowers:|| ||&bConfuse: &3Left click to shoot a confusion||&3egg at a player!||&b&lCOST:&b 5 Mana|| ||&bFireball: &3Right click to shoot a fireball||&b&lCOST:&b 10 Mana" to the player - give player 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" - give player 3 splash potions of harming 2 named "&fPain Juice" - apply speed 1 to player for 999 days - {active.kit.%player%} is false: - set player's level progress to 0.99 - {active.kit.%player%} is not set: - set player's level progress to 0.99 - add 10 to player's health - set {kit.firemage.%player%} to true - set {active.kit.%player%} to true - set {active.game.kit.%player%} to true - #subfold @tank - argument is "tank": - - {active.kit.%player%} is true: - send "&cYou already have a kit D:" to player - stop - clear player's inventory - equip player with all gold armor of protection 5 and unbreaking 10 named "&fArmor of Density" - give player wood shovel of sharpness 1 and unbreaking 10 named "&fTank's Paddle" - give player 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" - apply slowness 1 to player for 999 days - apply health boost 3 to player for 999 days - give player 5 snowballs named "&fDisabling Bombs" - heal player by 10 hearts - add 20 to player's health - set {kit.tank.%player%} to true - set {active.kit.%player%} to true - set {active.game.kit.%player%} to true - - #subfold @lightningmage - argument is "lightningmage": - - {active.kit.%player%} is true: - send "&cYou already have a kit D:" to player - stop - clear player's inventory - equip player with all leather armor of unbreaking 3 and protection 4 named "&fLightning Mage's Robes" - dye player's helmet blue - dye player's chestplate blue - dye player's leggings blue - dye player's boots blue - give nameditemstack from "Stick of knockback 1;&fLightning Wand;&fPowers:|| ||&bTeleport: &3Left click to teleport to the block||&3you're looking at!||&b&lCOST:&b 50 Mana|| ||&bLightning: &3Right click to shoot lighting||&b&lCOST:&b 10 Mana" to the player - give player 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" - give player 3 splash potions of harming 2 named "&fPain Juice" - apply jump 1 to player for 999 days - {active.kit.%player%} is false: - set player's level progress to 0.99 - {active.kit.%player%} is not set: - set player's level progress to 0.99 - add 10 to player's health - set {kit.lightningmage.%player%} to true - set {active.kit.%player%} to true - set {active.game.kit.%player%} to true - #subfold @necromancer - argument is "necromancer": - player does not have permission "obam.supporter": - set {_player.bal} to player's balance - {_player.bal} is less than 25: - send "&cYou do not have enough tickets for that kit!" - stop - - subtract 25 from player's balance - send "&aYou have purchased &eNecromancer Kit&a for one time use for &e25 Tickets&a. You now have &e%player's balance%&a." - log "KITPVPTICKET TRANSACTION^%player%^-25^%{_player.bal}%^%player's balance%^PURCHASE 1 TIME NECRO" to "tickets/KIT-PVPTRANS.log" - clear player's inventory - equip player with all leather armor of protection 5 and unbreaking 3 and fire protection 2 named "&fNecromancer's Robes" - dye player's helmet yellow - dye player's chestplate yellow - dye player's leggings yellow - dye player's boots yellow - give nameditemstack from "Blaze Rod;&fSummoning Rod;&fPowers:|| ||&bSummon: &3Right Click to summon the undead to serve you!||&b&lCOST:&b 30 Mana|| ||&bCall of the dead: &3Left click to call your minions back!||&b&lCOST:&b 10 Mana" to player - give player stone sword of knockback 1 and sharpness 2 named "&fSummoner's Trust" - give player 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" - apply speed 1 to player for 999 days - {active.kit.%player%} is false: - set player's level progress to 0.99 - {active.kit.%player%} is not set: - set player's level progress to 0.99 - add 10 to player's health - set {kit.necromancer.%player%} to true - set {active.kit.%player%} to true - set {active.game.kit.%player%} to true - - #subfold @fisherman - argument is "fisherman": - - {active.kit.%player%} is true: - send "&cYou already have a kit D:" to player - stop - clear player's inventory - equip player with all leather armor of protection 5 and unbreaking 3 and projectile protection 2 named "&fFishing Gear" - give player fishing rod of unbreaking 10 named "&fOld Faithful" - give player fish of sharpness 3 named "&fBig Fish" - give player 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" - add 10 to player's health - set {kit.fisherman.%player%} to true - set {active.kit.%player%} to true - set {active.game.kit.%player%} to true - - - - #subfold @something - #argument is "something": - - #{active.kit.%player%} is true: - #send "&cYou already have a kit D:" to player - #stop - #clear player's inventory - #equip player with all iron armor of protection 2 and blast protection 2 named "&fSomethings Armor" - #give player wood hoe of sharpness 1 and knockback 1 named "&fHerding Thing" - #apply speed 2 to player for 999 days - #give player 3 snowballs named "&fGrenades" - #give player 3 eggs named "&fFlashBang" - add 10 to player's health - #set {kit.something.%player%} to true - #set {active.kit.%player%} to true - - - #subfold @skelemancer - argument is "skelemancer": - {active.kit.%player%} is true: - send "&cYou already have a kit D:" to player - stop - clear player's inventory - equip player with all leather armor of protection 5 and unbreaking 3 and fire protection 2 named "&fSkelemancer's Robes" - dye player's helmet white - dye player's chestplate white - dye player's leggings white - dye player's boots white - give player bone of knockback 1 and sharpness 1 named "&fSummoning Bone" - give player bow of infinity 1 and punch 1 and power 1 named "&fSummoner's Sidekick" - give player 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" - give player 1 arrow - apply speed 1 to player for 999 days - {active.kit.%player%} is false: - set player's level progress to 0.99 - {active.kit.%player%} is not set: - set player's level progress to 0.99 - add 10 to player's health - set {kit.skelemancer.%player%} to true - set {active.kit.%player%} to true - set {active.game.kit.%player%} to true - - {_arena.run} is true: - send "&aOpening Arena Menu...." to player - wait 1 second - make player execute command "/arena" - - #subfold @earthmage - - - - - -#endfold - - - -on damage: - - #startfold @damage-kits - world is "kitpvpkillingfields": - attacker is player: - victim is player: - {active.kit.%attacker%} is false: - cancel event - stop - {active.kit.%victim%} is false: - cancel event - stop - {active.kit.%attacker%} is true - {active.kit.%victim%} is true - chance of 1%: - send "&aYou have received experience in battle!" to attacker - send "&aYou have received experience in battle!" to victim - add 10 to {level.%attacker%} - add 10 to {level.%victim%} - chance of 15%: - send "&aYou have received a &e5 ticket &areward for battle!" to attacker - add 5 to attacker's balance - #subfold @kitdetection - {kitpvp.dead.%victim%} is true: - cancel event - stop - {kitpvp.dead.%attacker%} is true: - cancel event - stop - {active.kit.%attacker%} is not set: - cancel event - send "&cYou do not have a kit yet! Do not be crazy!" to attacker - - {active.kit.%attacker%} is false: - cancel event - send "&cYou do not have a kit yet! Do not be crazy!" to attacker - {active.kit.%victim%} is not set: - cancel event - send "&cThis player has not chosen a kit! Please play fair :(" to attacker - {active.kit.%victim%} is false: - cancel event - send "&cThis player has not chosen a kit! Please play fair :(" to attacker - - #subfold @falldamage-cancellation - damage cause is fall: - cancel event - damage cause is block explosion: - cancel event - #subfold @archer-headshot - projectile is arrow: - {kit.archer.%attacker%} or {kit.skelemancer.%attacker%} is true: - distance between the attacker and the victim is bigger than 20: - victim is a player: - chance of 30%: - add 3 to damage - send "&a&lBoom! &aHeadshot!" to attacker - play "level up" at location of attacker with pitch 1 - send "&cHeadshot!" to victim - play "anvil land" at location of victim with pitch 2 - {kit.archer.%attacker%} is true: - {kit.tank.%victim%} is true: - send "&cYou can not slow the tank!" to attacker - stop - victim has slowness: - victim has blindness: - apply wither to victim for 2 seconds - - apply blindness to victim for 2 seconds - - apply slowness 2 to victim for 4 seconds - chance of 10%: - apply poison to victim for 8 seconds - send "&aYour enemy bleeds..." to attacker - send "&cYour wounds are too deep" to victim - - - #subfold @snowball-alteration - - projectile is snowball: - #subfold @ninja-snowball - {snowball.ninja.%attacker%} is true: - apply blindness to victim for 3 seconds - message "&cYou have been blinded by &e%attacker%&c!" to victim - message "&aYou have blinded &e%victim%&a!" to attacker - #subfold @melee-snowball - {snowball.melee.%attacker%} is true: - apply poison to victim for 3 seconds - apply speed 1 to victim for 2 seconds - #subfold @tank-snowball - {kit.tank.%attacker%} is true: - teleport victim to attacker - apply slowness 8 to victim for 4 seconds - apply blindness to victim for 2 seconds - {kit.tank.%victim%} is true: - remove slowness from victim - apply slowness 2 to victim - send "&cYou can not slow the tank." to attacker - #subfold @egg-alteration - projectile is egg: - #subfold @archer-egg - {egg.archer.%attacker%} is true: - - apply slowness 8 to victim for 2 seconds - message "&cYou have been stunned by &e%attacker%&c!" to victim - message "&aYou have stunned &e%victim%&a!" to attacker - {kit.tank.%victim%} is true: - remove slowness from victim - apply slowness 2 to victim for 999 days - send "&cYou can not slow the tank." to attacker - - #subfold @firemage-egg - {kit.firemage.%attacker%} is true: - {kit.tank.%victim%} is true: - send "&cYou can not slow the tank!" to attacker - stop - apply slowness 3 to victim for 2 seconds - apply nausea to victim for 3 seconds - message "&cYou have been confused by &e%attacker%&c!" to victim - message "&aYou have confused &e%victim%&a!" to attacker - #subfold @something-class - - #subfold @fire/lava-damage-event - damage cause is lava or burning or drowning or wither or poison: - victim is a player: - if damage is greater than or equal to victim's health: - cancel event - clear victim's inventory - extinguish victim - teleport victim to {kit.pvp.spawn} - execute console command "effect %victim% clear" - clear {active.game.kit.%victim%} - set victim's health to 10 - {last.attacker.%victim%} is not set: - message "&cThe environment got the best of &e%victim%" to all players in victim's world - {last.attacker.%victim%} is set: - set {_size} to size of {deathmessages.kitpvp::*} - set {_temp} to random integer between 1 and {_size} - message "&e%{last.attacker.%victim%}% &chas %{deathmessages.kitpvp::%{_temp}%}% &e%victim% &cwith &b%uncoloured name of {last.attacker.%victim%}'s tool%" to all players in {last.attacker.%victim%}'s world - {last.attacker.%victim%} is not victim: - send "&aYou claim a bounty of &e%{value.%victim%.kit.live}% tickets &afrom &e%victim%" to {last.attacker.%victim%} - add {value.%victim%.kit.live} to {last.attacker.%victim%}'s balance - set {_size2} to size of {assists.%victim%::*} - {_size2} is greater than 1: - loop {assists.%victim%::*}: - {assists.%victim%::%loop-index%} is not {last.attacker.%victim%}: - set {_player} to {assists.%victim%::%loop-index%} - send "&aYou assisted in the death of &e%victim%" to {_player} - send "&aYou split the bounty &e%{_size2}% &aways with others. Your cut is &e%rounded {value.%victim%.kit.live} / {_size2}% &etickets" to {_player} - {assist.%{_player}%.kp} is not set: - set {assist.%{_player}%.kp} to 0 - add 1 to {assist.%{_player}%.kp} - set {_cut} to {value.%victim%.kit.live} / {_size2} - add rounded {_cut} to {_player}'s balance - - clear {active.game.kit.%victim%} - clear {last.attacker.%victim%} - {kit.ninja.%victim%} is true: - remove jump from victim - remove speed from victim - set {kit.ninja.%victim%} to false - remove absorption from victim - set {snowball.ninja.%victim%} to false - set {active.kit.%victim%} to false - set {ninja.poof.%victim%} to false - {kit.archer.%victim%} is true: - remove speed from victim - remove absorption from victim - set {kit.archer.%victim%} to false - set {egg.archer.%victim%} to false - set {active.kit.%victim%} to false - {kit.melee.%victim%} is true: - set {snowball.melee.%victim%} to false - set {active.kit.%victim%} to false - set {kit.melee.%victim%} to false - {kit.firemage.%victim%} is true: - set {kit.mage.%victim%} to false - set {active.kit.%victim%} to false - remove speed from victim - {kit.tank.%victim%} is true: - set {kit.tank.%victim%} to false - remove slowness from victim - remove health boost from victim - set {active.kit.%victim%} to false - {kit.lightningmage.%victim%} is true: - set {kit.lightningmage.%victim%} to false - remove jump from victim - set {active.kit.%victim%} to false - {kit.necromancer.%victim%} is true: - set {kit.necromancer.%victim%} to false - remove speed from victim - set {active.kit.%victim%} to false - {kit.something.%victim%} is true: - remove speed from victim - set {kit.something.%victim%} to false - set {active.kit.%victim%} to false - {kit.skelemancer.%victim%} is true: - set {kit.skelemancer.%victim%} to false - set {active.kit.%victim%} to false - clear {killstreak.%victim%} - {kit.fisherman.%victim%} is true: - set {kit.fisherman.%victim%} to false - - #subfold @death-event - attacker is a player: - victim is a player: - loop {assists.%victim%::*}: - {assists.%victim%::%loop-index%} is attacker: - set {_assists.check} to 1 - - {_assists.check} is not set: - victim is not attacker: - add attacker to {assists.%victim%::*} - - clear {_assists.check} - set {last.attacker.%victim%} to attacker - - set {_health.%victim%} to victim's health - set {_health.%victim%} to {_health.%victim%} + 1 - damage is greater than victim's health: - cancel event - - #subfold @ninja-special - chance of 80%: - {ninja.poof.%victim%} is true: - hide victim from all players - set victim's health to 10 - apply speed 5 to victim for 3 seconds - send "&aYour ninja instincts have saved you this time! They are now used up!" to victim - set {ninja.poof.%victim%} to false - wait 0.5 seconds - play effect "smoke" at location of victim - wait 0.5 seconds - play effect "smoke" at location of victim - wait 0.5 seconds - play effect "smoke" at location of victim - wait 0.5 seconds - play effect "smoke" at location of victim - wait 0.5 seconds - play effect "smoke" at location of victim - wait 0.5 seconds - play effect "smoke" at location of victim - reveal victim to all players - remove speed from victim - apply speed 2 to victim for 999 days - stop - set {active.kit.%victim%} to false - set {kitpvp.dead.%victim%} to true - - #subfold @rampage - {killstreak.%attacker%} is not set: - set {killstreak.%attacker%} to 0 - add 1 to {killstreak.%attacker%} - {killstreak.%attacker%} is 5: - send "&e%attacker% &c&lis on a Rampage!" to all players in attacker's world - set {rampage.%attacker%} to true - {killstreak.%attacker%} is 10: - send "&e%attacker% &c&lis Dominating!" to all players in attacker's world - {killstreak.%attacker%} is 15: - send "&e%attacker% &c&lhas a 15 kill streak!" to all players in attacker's world - {killstreak.%attacker%} is 20: - send "&e%attacker% &c&lis Unstoppable!" to all players in attacker's world - {rampage.%victim%} is true: - send "&e%attacker% &a and has ended &e%victim%&a's rampage!" to all players in attacker's world - set {rampage.%victim%} to false - set {killstreak.%victim%} to 0 - set {killstreak.%victim%} to 0 - #subfold @death-event-main - set victim's health to 10 - set {_size} to size of {deathmessages.kitpvp::*} - set {_temp} to random integer between 1 and {_size} - message "&e%attacker% &chas %{deathmessages.kitpvp::%{_temp}%}% &e%victim% &cwith &b%uncoloured name of attacker's tool%" to all players in attacker's world - attacker is not victim: - send "&aYou claim a bounty of &e%{value.%victim%.kit.live}% tickets &afrom &e%victim%" to attacker - add {value.%victim%.kit.live} to attacker's balance - set {_size2} to size of {assists.%victim%::*} - {_size2} is greater than 1: - loop {assists.%victim%::*}: - {assists.%victim%::%loop-index%} is not attacker: - set {_player} to {assists.%victim%::%loop-index%} - send "&aYou assisted in the death of &e%victim%" to {_player} - send "&aYou split the bounty &e%{_size2}% &aways with others. Your cut is &e%rounded {value.%victim%.kit.live} / {_size2}% &etickets" to {_player} - {assist.%{_player}%.kp} is not set: - set {assist.%{_player}%.kp} to 0 - add 1 to {assist.%{_player}%.kp} - set {_cut} to {value.%victim%.kit.live} / {_size2} - add rounded {_cut} to {_player}'s balance - - clear {assists.%victim%::*} - {kills.%attacker%.kit} is not set: - set {kills.%attacker%.kit} to 0 - add 1 to {kills.%attacker%.kit} - {deaths.%victim%.kit} is not set: - set {deaths.%victim%.kit} to 0 - add 1 to {deaths.%victim%.kit} - clear {assists.%victim%::*} - clear victim's inventory - clear {active.game.kit.%victim%} - execute console command "effect %victim% clear" - hide victim from all players - allow victim to fly - send "&cYou have been killed by &e%attacker%&c!" to victim - send "&7You will respawn in &e15 &7seconds." to victim - wait 5 seconds - send "&7You will respawn in &e10&7 seconds." to victim - wait 5 seconds - send "&7You will respawn in &e5&7 seconds." to victim - wait 1 second - send "&7You will respawn in &e4&7 seconds." to victim - wait 1 second - send "&7You will respawn in &e3&7 seconds." to victim - wait 1 second - send "&7You will respawn in &e2&7 seconds." to victim - wait 1 second - send "&7You will respawn in &e1&7 second." to victim - disallow victim to fly - teleport victim to {kit.pvp.spawn} - reveal victim to all players - execute console command "effect %victim% clear" - set {kitpvp.dead.%victim%} to false - - #subfold @ninja-clear - {kit.ninja.%victim%} is true: - remove jump from victim - remove speed from victim - set {kit.ninja.%victim%} to false - remove absorption from victim - set {snowball.ninja.%victim%} to false - set {active.kit.%victim%} to false - set {ninja.poof.%victim%} to false - - #subfold @archer-clear - {kit.archer.%victim%} is true: - remove speed from victim - remove absorption from victim - set {kit.archer.%victim%} to false - set {egg.archer.%victim%} to false - set {active.kit.%victim%} to false - set {kitpvp.dead.%victim%} to false - #subfold @melee-clear - {kit.melee.%victim%} is true: - set {snowball.melee.%victim%} to false - set {active.kit.%victim%} to false - - #subfold @firemage-clear - {kit.firemage.%victim%} is true: - set {kit.firemage.%victim%} to false - set {active.kit.%victim%} to false - remove speed from victim - #subfold @tank-clear - {kit.tank.%victim%} is true: - set {kit.tank.%victim%} to false - remove slowness from victim - remove health boost from victim - #subfold @lightningmage-clear - {kit.lightningmage.%victim%} is true: - set {kit.lightningmage.%victim%} to false - remove jump from victim - #subfold @necromancer-clear - {kit.necromancer.%victim%} is true: - set {kit.necromancer.%victim%} to false - loop all zombies in world "kitpvpkillingfields": - {owner.zombie.%loop-entity%} is victim - delete loop-entity - clear {zombie.%victim%.active} - remove speed from victim - #subfold @fishermanclear - {kit.fisherman.%victim%} is true: - set {kit.fisherman.%victim%} to false - {kit.something.%victim%} is true: - remove speed from victim - set {kit.something.%victim%} to false - #subfold @skelemancerclear - {kit.skelemancer.%victim%} is true: - set {kit.skelemancer.%victim%} to false - loop all wither skeletons in world "kitpvpkillingfields": - {owner.skeleton.%loop-entity%} is victim - delete loop-entity - clear {skeleton.%victim%.active} - - -#endfold - - - - -on consume: - item is potion of poison named "&fJump Potion": - cancel event - remove potion of poison from player - give glass bottle named "&fEmpty Jump Potion Bottle" to player - remove jump from player - apply jump 5 to player for 10 seconds - wait 10 seconds - remove jump from player - apply jump 2 to player for 999 days - - -#startfold @fisherman -on right click with fishing rod: - world is "kitpvpkillingfields" - {kit.fisherman.%player%} is true: - player's y coordinate is greater than {kitpvp.area}'s y coordinate: - send "&cYou can not do that here. Please select an Arena!" to player - stop - set {_loc} to location of player - push targeted entity in the direction of player with speed -4 - make player damage targeted entity by 4 - chance of 20%: - send "&aIts a big one!" to player - loop players in radius 5 of targeted entity: - push loop-player in the direction of player with speed -4 - make player damage loop-player by 4 - -on damage of a player: - world is "kitpvpkillingfields" - attacker's tool is fish: - {kit.fisherman.%attacker%} is true: - attacker's y coordinate is greater than {kitpvp.area}'s y coordinate: - send "&cYou can not do that here. Please select an Arena!" to attacker - stop - apply nausea to victim for 1 second - add 2 to damage - send "&cFish Slapped!" to victim - play "slime attack" at location of victim with pitch 1 - stop -#endfold - - -on right click with mushroom soup: - #startfold @mushroom-soup-stuff - world is "kitpvpkillingfields" - cancel event - player's health is 10: - send "&aYou already have full health!" to player - clear {assits.%player%::*} - stop - remove mushroom soup from player - give player bowl - - add 5 to player's health - - #endfold - -on right click with stick: - #startfold @firemage-wand-fire - world is "kitpvpkillingfields" - cancel event - {kit.firemage.%player%} is true: - name of player's tool is "&fFire Wand" - player's y coordinate is greater than {kitpvp.area}'s y coordinate: - send "&cYou can not do that here. Please select an arena!" to player - stop - level progress of player is greater than or equal to 0.1: - shoot a fireball from the player - create safe explosion with force 5 at targeted block - loop entities in radius 5 of targeted block: - loop-entity is not a player: - make player damage loop-entity by 5 - {active.kit.%loop-entity%} is true: - make player damage loop-entity by 5 - ignite loop-entity - loop-entity is "%player%": - push loop-entity up with force 2 - chance of 15%: - make player damage loop-entity by 3 - send "&aCritical hit!" to player - send "&cCritical hit!" to loop-entity - reduce the player's level progress by 0.1 - {kit.lightningmage.%player%} is true: - - name of player's tool is "&fLightning Wand" - player's y coordinate is greater than {kitpvp.area}'s y coordinate: - send "&cYou can not do that here. Please select an arena!" to player - stop - level progress of player is greater than or equal to 0.1: - strike lightning effect at targeted block - reduce the player's level progress by 0.1 - loop entities in radius 5 of targeted block: - loop-entity is not a player: - make player damage loop-entity by 6 - {active.kit.%loop-entity%} is true: - create safe explosion of force 2 at location of loop-entity - push loop-entity up with force 1 - make player damage loop-entity by 6 - apply wither to loop-entity for 3 seconds - -on explode: - world is "kitpvpkillingfields": - cancel event - -on left click with stick: - #subfold @mage-wand-slowness - world is "kitpvpkillingfields" - cancel event - {kit.firemage.%player%} is true: - name of player's tool is "&fFire Wand" - player's y coordinate is greater than {kitpvp.area}'s y coordinate: - send "&cYou can not do that here. Please select an Arena!" to player - stop - level progress of player is greater than or equal to 0.05: - shoot a egg from the player - reduce the player's level progress by 0.05 - {kit.lightningmage.%player%} is true: - name of player's tool is "&fLightning Wand" - player's y coordinate is greater than {kitpvp.area}'s y coordinate: - send "&cYou can not do that here. Please select an Arena!" to player - stop - level progress of player is greater than or equal to 0.5: - targeted block is air or glass: - send "&cYou can not go there!" to player - stop - the distance between targeted block and player is less than or equal to 30: - teleport player to block above targeted block - - reduce the player's level progress by 0.5 - stop - send "&cThat is too far!" to player - - - -#endfold - -#startfold @necromancer - - -on right click with blaze rod: - world is "kitpvpkillingfields" - {kit.necromancer.%player%} is true: - player's y coordinate is greater than {kitpvp.area}'s y coordinate: - send "&cYou can not do that here. Please select an arena!" to player - stop - level progress of player is greater than or equal to 0.3: - {zombie.%player%.active} is greater than or equal to 5: - send "&cYou have too many zombies!" to player - stop - spawn a zombie at block above targeted block - set {_zombie.%player%} to spawned zombie - equip {_zombie.%player%} with leather helmet - set name of spawned zombie to "&cNecroSpawn" - set {_loc} to block 20 meters above player - play 1 of effect "largeexplode" with data 1 at {_loc} - make player damage player by 2 - - apply speed 3 to spawned zombie for 999 days - send "&aYou Summon the dead!" to player - set {owner.zombie.%spawned zombie%} to player - {zombie.%player%.active} is not set: - set {zombie.%player%.active} to 0 - add 1 to {zombie.%player%.active} - reduce player's level progress by 0.3 - -on left click with blaze rod: - world is "kitpvpkillingfields" - - {kit.necromancer.%player%} is true: - player's y coordinate is greater than {kitpvp.area}'s y coordinate: - send "&cYou can not do that here. Please select an arena!" to player - stop - {zombie.%player%.active} is not set: - send "&cYou have no zombies out!" to player - stop - {zombie.%player%.active} is 0: - send "&cYou have no zombies out!" to player - stop - level progress of player is greater than or equal to {zombie.%player%.active} / 10: - loop all zombies in world "kitpvpkillingfields": - {owner.zombie.%loop-entity%} is player: - delete loop-entity - make player damage player by {zombie.%player%.active} - reduce player's level progress by {zombie.%player%.active} / 10 - clear {zombie.%player%.active} - send "&aYou call back the dead!" to player - - - -on damage of a player: - world is "kitpvpkillingfields" - attacker is a zombie: - cancel event - set {_player} to {owner.zombie.%attacker%} - {active.kit.%victim%} is false: - stop - {active.kit.%victim%} is not set: - stop - {active.kit.%{_player}%} is false: - stop - {active.kit.%{_player}%} is not set: - stop - make {_player} damage victim by 4 - -on death of a zombie: - world is "kitpvpkillingfields" - clear drops - - -#endfold - - - -#startfold @skelemancer - - -on right click with bone: - world is "kitpvpkillingfields" - {kit.skelemancer.%player%} is true: - player's y coordinate is greater than {kitpvp.area}'s y coordinate: - send "&cYou can not do that here. Please select an arena!" to player - stop - level progress of player is greater than or equal to 0.3: - {skeleton.%player%.active} is greater than or equal to 5: - send "&cYou have too many Skeletons!" to player - stop - spawn a wither skeleton at block above targeted block - set {_skeleton.%player%} to spawned wither skeleton - equip {_skeleton.%player%} with leather helmet - set {_skeleton.%player%}'s tool to stone sword - set name of spawned wither skeleton to "&cNecroSpawn" - set {_loc} to block 20 meters above player - play 1 of effect "largeexplode" with data 1 at {_loc} - make player damage player by 2 - - apply speed 3 to spawned wither skeleton for 999 days - send "&aYou Summon the dead!" to player - set {owner.skeleton.%spawned wither skeleton%} to player - {skeleton.%player%.active} is not set: - set {skeleton.%player%.active} to 0 - add 1 to {skeleton.%player%.active} - reduce player's level progress by 0.3 - -on left click with bone: - world is "kitpvpkillingfields" - - {kit.skelemancer.%player%} is true: - player's y coordinate is greater than {kitpvp.area}'s y coordinate: - send "&cYou can not do that here. Please select an arena!" to player - stop - {skeleton.%player%.active} is not set: - send "&cYou have no Skeletons out!" to player - stop - {skeleton.%player%.active} is 0: - send "&cYou have no Skeletons out!" to player - stop - level progress of player is greater than or equal to {skeleton.%player%.active} / 10: - loop all wither skeletons in world "kitpvpkillingfields": - {owner.skeleton.%loop-entity%} is player: - delete loop-entity - make player damage player by {skeleton.%player%.active} - reduce player's level progress by {skeleton.%player%.active} / 10 - clear {skeleton.%player%.active} - send "&aYou call back the dead!" to player - - - -on damage of a player: - world is "kitpvpkillingfields" - attacker is a wither skeleton: - cancel event - set {_player} to {owner.skeleton.%attacker%} - {active.kit.%victim%} is false: - stop - {active.kit.%victim%} is not set: - stop - {active.kit.%{_player}%} is false: - stop - {active.kit.%{_player}%} is not set: - stop - make {_player} damage victim by 4 - -on death of a wither skeleton: - world is "kitpvpkillingfields" - clear drops - - -on damage of a wither skeleton: - world is "kitpvpkillingfields" - {active.kit.%attacker%} is not set: - send "&cYou can not do that!" to attacker - cancel event - stop - {active.kit.%attacker%} is false: - send "&cYou can not do that!" to attacker - cancel event - stop - damage is greater than victim's health - set {_player} to {owner.skeleton.%victim%} - make {_player} damage {_player} by 2 - send "&c%attacker% has slain your spawn!" to {_player} - subtract 1 from {skeleton.%{_player}%.active} - send "&a%{_player}%'s spawn has died to your hand." to attacker - delete victim - -#endfold - - -#startfold @hunter -on damage of a player: - world is "kitpvpkillingfields" - projectile is arrow: - {kit.hunter.%attacker%} is true - {wolf.%attacker%} is set: - send "&cYou can only have 1 wolf at a time!" to attacker - stop - spawn wolf at victim - set {wolf.%attacker%} to spawned wolf - add {wolf.%attacker%} to {hunters.wolves::*} - set {owner.wolf.%spawned wolf%} to attacker - attacker is wolf: - loop {hunters.wolves::*}: - loop-value is attacker - set {_player} to {owner.wolf.%attacker%} - cancel event - make {owner.wolf.%{_player}%} damage victim by 8 - - - -on damage of a wolf: - - loop {hunters.wolves::*}: - loop-value is victim: - delete {hunters.wolves::%loop-index%} - set {_player} to {owner.wolf.%victim%} - - clear {wolf.%{_player}%} - {_player} is attacker: - send "&cWhy?!?!?!?" to {_player} - stop - send "&c&e%attacker%&c has killed your wolf :(" to {_player} - - -command /clearwolf : - trigger: - clear {wolf.%player-argument%} -#endfold - -#startfold @something-class -on right click with wood hoe: - world is "kitpvpkillingfields" - {kit.something.%player%} is true: - level progress of player is greater than or equal to 0.3 - - set {loc.sheep.%player%} to location of targeted block - spawn 1 sheep above targeted block - set {sheep.%player%} to spawned sheep - reduce the player's level progress by 0.3 - set the color of spawned sheep to green - wait 1 second - set the color of spawned sheep to yellow - wait 1 second - set the color of spawned sheep to red - wait 1 second - kill spawned sheep - loop players in radius 6 of target block: - ignite loop-player - push loop-player up with force 2 - push loop-player south with force 1 - make player damage loop-player by 3 - create safe explosion of force 5 at {loc.sheep.%player%} - wait 1 second - create safe explosion of force 5 at block 6 meters west of {loc.sheep.%player%} - wait 1 second - create safe explosion of force 5 at block 6 meters east of {loc.sheep.%player%} - wait 1 second - create safe explosion of force 5 at block 6 meters north of {loc.sheep.%player%} - wait 1 second - create safe explosion of force 5 at block 6 meters south of {loc.sheep.%player%} - - - - -on death of red sheep: - world is "kitpvpkillingfields": - loop players in radius 10 of event-location: - damage loop-player by 5 hearts - send "&cYeah.. a Sheep bomb" to loop-player - clear drops -#endfold - - -#startfold @earthmage-casting - -on xp spawn: - world is "kitpvpkillingfields" - cancel event - - -on damage of a player: - damage cause is suffocation: - world is "kitpvpkillingfields" - cancel event - - -on damage of a zombie: - world is "kitpvpkillingfields" - {active.kit.%attacker%} is not set: - send "&cYou can not do that!" to attacker - cancel event - stop - {active.kit.%attacker%} is false: - send "&cYou can not do that!" to attacker - cancel event - stop - damage is greater than victim's health - set {_player} to {owner.zombie.%victim%} - make {_player} damage {_player} by 2 - send "&c%attacker% has slain your spawn!" to {_player} - send "&a%{_player}%'s spawn has died to your hand." to attacker - subtract 1 from {zombie.%{_player}%.active} - delete victim - -on shoot: - world is "kitpvpkillingfields" - shooter's Y coordinate is greater than {kitpvp.area}'s Y coordinate - cancel event - send "&cYou can not do that here. Please select an Arena!" to shooter -every 2 seconds: - #startfold @mana - loop all players in world "kitpvpkillingfields": - {kit.firemage.%loop-player%} or {kit.lightningmage.%loop-player%} or {kit.necromancer.%loop-player%} or {kit.something.%loop-player%} or {kit.skelemancer.%loop-player%} is true: - level progress of loop-player is less than 0.9: - increase loop-player's level progress by 0.05 - else: - set loop-player's level progress to 0.99 - -#endfold - -on death of a player: - world is "kitpvpkillingfields" - victim is a player: - teleport victim to {kit.pvp.spawn} - execute console command "effect %victim% clear" - {last.attacker.%victim%} is not set: - message "&cThe environment got the best of &e%victim%" to all players in victim's world - {last.attacker.%victim%} is set: - set {_size} to size of {deathmessages.kitpvp::*} - set {_temp} to random integer between 1 and {_size} - message "&e%{last.attacker.%victim%}% &chas %{deathmessages.kitpvp::%{_temp}%}% &e%victim% &cwith &b%uncoloured name of {last.attacker.%victim%}'s tool%" to all players in {last.attacker.%victim%}'s world - {last.attacker.%victim%} is not victim: - send "&aYou claim a bounty of &e%{value.%victim%.kit.live}% tickets &afrom &e%victim%" to {last.attacker.%victim%} - add {value.%victim%.kit.live} to {last.attacker.%victim%}'s balance - set {_size2} to size of {assists.%victim%::*} - {_size2} is greater than 1: - loop {assists.%victim%::*}: - {assists.%victim%::%loop-index%} is not {last.attacker.%victim%}: - set {_player} to {assists.%victim%::%loop-index%} - send "&aYou assisted in the death of &e%victim%" to {_player} - send "&aYou split the bounty &e%{_size2}% &aways with others. Your cut is &e%rounded {value.%victim%.kit.live} / {_size2}% &etickets" to {_player} - {assist.%{_player}%.kp} is not set: - set {assist.%{_player}%.kp} to 0 - add 1 to {assist.%{_player}%.kp} - set {_cut} to {value.%victim%.kit.live} / {_size2} - add rounded {_cut} to {_player}'s balance - - - clear {last.attacker.%victim%} - {kit.ninja.%victim%} is true: - remove jump from victim - remove speed from victim - set {kit.ninja.%victim%} to false - remove absorption from victim - set {snowball.ninja.%victim%} to false - set {active.kit.%victim%} to false - set {ninja.poof.%victim%} to false - clear {active.game.kit.%player%} - {kit.archer.%victim%} is true: - remove speed from victim - remove absorption from victim - set {kit.archer.%victim%} to false - set {egg.archer.%victim%} to false - set {active.kit.%victim%} to false - clear {active.game.kit.%player%} - {kit.melee.%victim%} is true: - set {snowball.melee.%victim%} to false - set {active.kit.%victim%} to false - set {kit.melee.%victim%} to false - clear {active.game.kit.%player%} - {kit.firemage.%victim%} is true: - set {kit.mage.%victim%} to false - set {active.kit.%victim%} to false - remove speed from victim - clear {active.game.kit.%player%} - {kit.tank.%victim%} is true: - set {kit.tank.%victim%} to false - remove slowness from victim - remove health boost from victim - set {active.kit.%victim%} to false - clear {active.game.kit.%player%} - {kit.lightningmage.%victim%} is true: - set {kit.lightningmage.%victim%} to false - remove jump from victim - set {active.kit.%victim%} to false - clear {active.game.kit.%player%} - {kit.necromancer.%victim%} is true: - set {kit.necromancer.%victim%} to false - remove speed from victim - set {active.kit.%victim%} to false - clear {active.game.kit.%player%} - {kit.something.%victim%} is true: - remove speed from victim - set {kit.something.%victim%} to false - set {active.kit.%victim%} to false - clear {active.game.kit.%player%} - {kit.skelemancer.%victim%} is true: - set {kit.skelemancer.%victim%} to false - set {active.kit.%victim%} to false - clear {active.game.kit.%player%} - clear {killstreak.%victim%} - {kit.fisherman.%victim%} is true: - set {kit.fisherman.%victim%} to false - clear {active.game.kit.%player%} - - clear drops - set {kitpvp.dead.%player%} to false -#endfold - - - -every 1 second: - #startfold @hunger-level - loop all players: - loop-player is in world "kitpvpkillingfields": - set loop-player's hunger level to 10 -#endfold - - -on drop: - #startfold @drop-event-cancel - world is "kitpvpkillingfields": - cancel event - #endfold - - - -command /dm []: - #startfold @deathmessage-addition-command - permission: obam.admin - trigger: - argument 1 is "list": - send "--DM--" to player - loop {deathmessages.kitpvp::*}: - {_count} is not set: - set {_count} to 0 - add 1 to {_count} - send "%{_count}%.....%loop-value%" - stop - - argument 1 is "delete": - delete {deathmessages.kitpvp::%argument 2%} - stop - add argument 1 to {deathmessages.kitpvp::*} -#endfold - -#startfold @commands -command /sound []: - permission: obam.admin - trigger: - play "%argument 1%" at location of player with pitch argument 2 - -command /headset: - permission: obam.admin - trigger: - set {kitpvp.area} to location of player - -command /clearkit : - executable by: console - trigger: - set {active.kit.%player-argument%} to false - #subfold @ninja-clear - {kit.ninja.%player-argument%} is true: - remove jump from player-argument - remove speed from player-argument - set {kit.ninja.%player-argument%} to false - remove absorption from player-argument - set {snowball.ninja.%player-argument%} to false - set {active.kit.%player-argument%} to false - set {ninja.poof.%player-argument%} to false - clear {active.game.kit.%player%} - - #subfold @archer-clear - {kit.archer.%player-argument%} is true: - remove speed from player-argument - remove absorption from player-argument - set {kit.archer.%player-argument%} to false - set {egg.archer.%player-argument%} to false - set {active.kit.%player-argument%} to false - set {kitpvp.dead.%player-argument%} to false - clear {active.game.kit.%player%} - #subfold @melee-clear - {kit.melee.%player-argument%} is true: - set {snowball.melee.%player-argument%} to false - set {active.kit.%player-argument%} to false - clear {active.game.kit.%player%} - - #subfold @firemage-clear - {kit.firemage.%player-argument%} is true: - set {kit.firemage.%player-argument%} to false - set {active.kit.%player-argument%} to false - remove speed from player-argument - clear {active.game.kit.%player%} - #subfold @tank-clear - {kit.tank.%player-argument%} is true: - set {kit.tank.%player-argument%} to false - remove slowness from player-argument - remove health boost from player-argument - clear {active.game.kit.%player%} - #subfold @lightningmage-clear - {kit.lightningmage.%player-argument%} is true: - set {kit.lightningmage.%player-argument%} to false - remove jump from player-argument - clear {active.game.kit.%player%} - #subfold @necromancer-clear - {kit.necromancer.%player-argument%} is true: - set {kit.necromancer.%player-argument%} to false - loop all zombies in world "kitpvpkillingfields": - {owner.zombie.%loop-entity%} is player-argument - delete loop-entity - clear {zombie.%player-argument%.active} - remove speed from player-argument - clear {active.game.kit.%player%} - #subfold @fishermanclear - {kit.fisherman.%player-argument%} is true: - set {kit.fisherman.%player-argument%} to false - clear {active.game.kit.%player%} - {kit.something.%player-argument%} is true: - remove speed from player-argument - set {kit.something.%player-argument%} to false - clear {active.game.kit.%player%} - #subfold @skelemancerclear - {kit.skelemancer.%player-argument%} is true: - set {kit.skelemancer.%player-argument%} to false - loop all wither skeletons in world "kitpvpkillingfields": - {owner.skeleton.%loop-entity%} is player-argument - delete loop-entity - clear {skeleton.%player-argument%.active} - clear {active.game.kit.%player%} - execute console command "effect %player-argument% clear" - clear player-argument's inventory - -command /revive : - executable by: console or players - permission: obam.admin.kp - trigger: - set {kitpvp.dead.%player-argument%} to false - -command /mapset : - permission: obam.admin.kp - trigger: - send "&aYou have added a spawn point for '&e%argument%&a'" to player - add location of player to {map.%argument%.spawns::*} - - - -command /spawnplayer : - executable by: console - trigger: - set {_size} to size of {map.%argument 2%.spawns::*} - set {_tmp} to random integer between 1 and {_size} - teleport player-argument to {map.%argument 2%.spawns::%{_tmp}%} - player-argument's health is less than 10 - {active.game.kit.%player-argument%} is true: - set {_player.bal} to player-argument's balance - subtract 25 tickets from player-argument's balance - send "&cYou have been fined &e25 Tickets&c for leaving in the heat of battle!" to player-argument - log "KITPVPTICKET TRANSACTION^%player%^-25^%{_player.bal}%^%player-argument's balance%^RETREAT FEE - /home" to "tickets/kit-pvptrans.log" - send "&e%player-argument% &aran from the intensity of the battle." to all players in player-argument's world - clear {active.game.kit.%player-argument%} - - -command /clearspawn : - permission: obam.admin.kp - trigger: - clear {map.%argument%.spawns::*} - -command /kitpvp: - executable by: players - aliases: /kp - trigger: - execute console command "/mvtp %player% kitpvpkillingfields" -#endfold - -#startfold @valueexpression - -every 1 second: - loop all players in world "kitpvpkillingfields": - set {value.%loop-player%.kit} to {kills.%loop-player%.kit} * {killstreak.%loop-player%} - set {value.%loop-player%.kit} to {value.%loop-player%.kit} / {deaths.%loop-player%.kit} - set {value.%loop-player%.kit} to {value.%loop-player%.kit} + 10 - {value.%loop-player%.kit} is greater than 100: - set {value.%loop-player%.kit} to 100 - set {value.%loop-player%.kit.live} to rounded {value.%loop-player%.kit} - - -command /tixset : - permission: obam.admin - trigger: - set player-argument's balance to argument 2 - -command /motors: - trigger: - send "&6&l[&a❖&6&l] &eInsert self advertisement for &6_Motors_ &ehere!" to player - #Hi, Smooch :D - -on command "/spawn": - world is "kitpvpkillingfields" - player's health is less than 10 - {active.game.kit.%player%} is true: - set {_player.bal} to player's balance - subtract 25 tickets from player's balance - send "&cYou have been fined &e25 Tickets&c for leaving in the heat of battle!" - log "KITPVPTICKET TRANSACTION^%player%^-25^%{_player.bal}%^%player's balance%^RETREAT FEE - /spawn" to "tickets/kit-pvptrans.log" - send "&e%player% &aran from the intensity of the battle." to all players in player's world - clear {active.game.kit.%player%} - - -on command "/kp": - world is "kitpvpkillingfields" - player's health is less than 10 - {active.game.kit.%player%} is true: - set {_player.bal} to player's balance - subtract 25 tickets from player's balance - send "&cYou have been fined &e25 Tickets&c for leaving in the heat of battle!" - log "KITPVPTICKET TRANSACTION^%player%^-25^%{_player.bal}%^%player's balance%^RETREAT FEE - /kp" to "tickets/kit-pvptrans.log" - send "&e%player% &aran from the intensity of the battle." to all players in player's world - clear {active.game.kit.%player%} - - - - -on command "/skyblock": - world is "kitpvpkillingfields" - player's health is less than 10 - {active.game.kit.%player%} is true: - set {_player.bal} to player's balance - subtract 25 tickets from player's balance - send "&cYou have been fined &e25 Tickets&c for leaving in the heat of battle!" - log "KITPVPTICKET TRANSACTION^%player%^-25^%{_player.bal}%^%player's balance%^RETREAT FEE - /skyblock" to "tickets/kit-pvptrans.log" - send "&e%player% &aran from the intensity of the battle." to all players in player's world - clear {active.game.kit.%player%} - - - - -on command "/sb": - world is "kitpvpkillingfields" - player's health is less than 10 - {active.game.kit.%player%} is true: - set {_player.bal} to player's balance - subtract 25 tickets from player's balance - send "&cYou have been fined &e25 Tickets&c for leaving in the heat of battle!" - log "KITPVPTICKET TRANSACTION^%player%^-25^%{_player.bal}%^%player's balance%^RETREAT FEE - /sb" to "tickets/kit-pvptrans.log" - send "&e%player% &aran from the intensity of the battle." to all players in player's world - clear {active.game.kit.%player%} - - -on command "/mv spawn": - world is "kitpvpkillingfields" - player's health is less than 10 - {active.game.kit.%player%} is true: - set {_player.bal} to player's balance - subtract 25 tickets from player's balance - send "&cYou have been fined &e25 Tickets&c for leaving in the heat of battle!" - log "KITPVPTICKET TRANSACTION^%player%^-25^%{_player.bal}%^%player's balance%^RETREAT FEE - /mv spawn" to "tickets/kit-pvptrans.log" - send "&e%player% &aran from the intensity of the battle." to all players in player's world - clear {active.game.kit.%player%} - -on command "/warp": - world is "kitpvpkillingfields" - cancel event - make player execute command "/sb" - player's health is less than 10 - {active.game.kit.%player%} is true: - set {_player.bal} to player's balance - subtract 25 tickets from player's balance - send "&cYou have been fined &e25 Tickets&c for leaving in the heat of battle!" - log "KITPVPTICKET TRANSACTION^%player%^-25^%{_player.bal}%^%player's balance%^RETREAT FEE - /warp" to "tickets/kit-pvptrans.log" - send "&e%player% &aran from the intensity of the battle." to all players in player's world - clear {active.game.kit.%player%} - - - -on command "/island": - world is "kitpvpkillingfields" - player's health is less than 10 - {active.game.kit.%player%} is true: - set {_player.bal} to player's balance - subtract 25 tickets from player's balance - send "&cYou have been fined &e25 Tickets&c for leaving in the heat of battle!" - log "KITPVPTICKET TRANSACTION^%player%^-25^%{_player.bal}%^%player's balance%^RETREAT FEE - /island" to "tickets/kit-pvptrans.log" - send "&e%player% &aran from the intensity of the battle." to all players in player's world - clear {active.game.kit.%player%} - - - -on command "/is": - world is "kitpvpkillingfields" - player's health is less than 10 - {active.game.kit.%player%} is true: - set {_player.bal} to player's balance - subtract 25 tickets from player's balance - send "&cYou have been fined &e25 Tickets&c for leaving in the heat of battle!" - log "KITPVPTICKET TRANSACTION^%player%^-25^%{_player.bal}%^%player's balance%^RETREAT FEE - /is" to "tickets/kit-pvptrans.log" - send "&e%player% &aran from the intensity of the battle." to all players in player's world - clear {active.game.kit.%player%} - - - -on command "/hub": - world is "kitpvpkillingfields" - player's health is less than 10 - {active.game.kit.%player%} is true: - set {_player.bal} to player's balance - subtract 25 tickets from player's balance - send "&cYou have been fined &e25 Tickets&c for leaving in the heat of battle!" - log "KITPVPTICKET TRANSACTION^%player%^-25^%{_player.bal}%^%player's balance%^RETREAT FEE - /hub" to "tickets/kit-pvptrans.log" - send "&e%player% &aran from the intensity of the battle." to all players in player's world - clear {active.game.kit.%player%} - - - - -on command "/parkour": - world is "kitpvpkillingfields" - player's health is less than 10 - {active.game.kit.%player%} is true: - set {_player.bal} to player's balance - subtract 25 tickets from player's balance - send "&cYou have been fined &e25 Tickets&c for leaving in the heat of battle!" - log "KITPVPTICKET TRANSACTION^%player%^-25^%{_player.bal}%^%player's balance%^RETREAT FEE - /parkour" to "tickets/kit-pvptrans.log" - send "&e%player% &aran from the intensity of the battle." to all players in player's world - clear {active.game.kit.%player%} - - - - -on command "/pk": - world is "kitpvpkillingfields" - player's health is less than 10 - {active.game.kit.%player%} is true: - set {_player.bal} to player's balance - subtract 25 tickets from player's balance - send "&cYou have been fined &e25 Tickets&c for leaving in the heat of battle!" - log "KITPVPTICKET TRANSACTION^%player%^-25^%{_player.bal}%^%player's balance%^RETREAT FEE - /pk" to "tickets/kit-pvptrans.log" - send "&e%player% &aran from the intensity of the battle." to all players in player's world - clear {active.game.kit.%player%} - - - - -on command "/kitpvp": - world is "kitpvpkillingfields" - player's health is less than 10 - {active.game.kit.%player%} is true: - set {_player.bal} to player's balance - subtract 25 tickets from player's balance - send "&cYou have been fined &e25 Tickets&c for leaving in the heat of battle!" - log "KITPVPTICKET TRANSACTION^%player%^-25^%{_player.bal}%^%player's balance%^RETREAT FEE - /kitpvp" to "tickets/kit-pvptrans.log" - send "&e%player% &aran from the intensity of the battle." to all players in player's world - clear {active.game.kit.%player%} - - - -on command "/hotpotato": - world is "kitpvpkillingfields" - player's health is less than 10 - {active.game.kit.%player%} is true: - set {_player.bal} to player's balance - subtract 25 tickets from player's balance - send "&cYou have been fined &e25 Tickets&c for leaving in the heat of battle!" - log "KITPVPTICKET TRANSACTION^%player%^-25^%{_player.bal}%^%player's balance%^RETREAT FEE - /hotpotato" to "tickets/kit-pvptrans.log" - send "&e%player% &aran from the intensity of the battle." to all players in player's world - clear {active.game.kit.%player%} - - - -on command "/hp": - world is "kitpvpkillingfields" - player's health is less than 10 - {active.game.kit.%player%} is true: - set {_player.bal} to player's balance - subtract 25 tickets from player's balance - send "&cYou have been fined &e25 Tickets&c for leaving in the heat of battle!" - log "KITPVPTICKET TRANSACTION^%player%^-25^%{_player.bal}%^%player's balance%^RETREAT FEE - /hp" to "tickets/kit-pvptrans.log" - send "&e%player% &aran from the intensity of the battle." to all players in player's world - clear {active.game.kit.%player%} - - -on command "/home": - world is "kitpvpkillingfields" - player's health is less than 10 - {active.game.kit.%player%} is true: - set {_player.bal} to player's balance - subtract 25 tickets from player's balance - send "&cYou have been fined &e25 Tickets&c for leaving in the heat of battle!" - log "KITPVPTICKET TRANSACTION^%player%^-25^%{_player.bal}%^%player's balance%^RETREAT FEE - /home" to "tickets/kit-pvptrans.log" - send "&e%player% &aran from the intensity of the battle." to all players in player's world - clear {active.game.kit.%player%} - - -on quit: - world is "kitpvpkillingfields" - make player execute command "/spawn" - player's health is less than 10 - {active.game.kit.%player%} is true: - set {_player.bal} to player's balance - subtract 25 tickets from player's balance - send "&cYou have been fined &e25 Tickets&c for leaving in the heat of battle!" - log "KITPVPTICKET TRANSACTION^%player%^-25^%{_player.bal}%^%player's balance%^RETREAT FEE - DISCONNECT" to "tickets/kit-pvptrans.log" - send "&e%player% &aran from the intensity of the battle." to all players in player's world - clear {active.game.kit.%player%} - - - -every 10 minutes: - loop projectiles in world "kitpvpkillingfields": - delete loop-projectile - loop all players: - loop-player has permission "obam.admin": - send "&6&l[&a❖&6&l] &eAll projectiles have been removed from KitPvP!" to loop-player diff --git a/Obam-Mini Games/Obam-CreatureCapture/CreatureCapture.sk b/Obam-Mini Games/Obam-CreatureCapture/CreatureCapture.sk new file mode 100644 index 0000000..82ef2ca --- /dev/null +++ b/Obam-Mini Games/Obam-CreatureCapture/CreatureCapture.sk @@ -0,0 +1,261 @@ +# add back in world is "creature_capture": +options: + lasso: stick named "&bLasso" with lore "&eRight click with this to turn mobs into eggs." + rod: fishing rod named "&bCapture Rod" with lore "&eUse this rod to capture the mobs." + +on rightclick on sign: + world is "CreatureCapture" + line 1 of block is "Get a": + line 2 of block is "Lasso": + if player has {@lasso}: + send "&cYou already have a lasso" to player + stop + give player {@lasso} + stop + line 2 of block is "Capture Rod": + if player has {@rod}: + send "&cYou already have a capture rod" to player + stop + give player {@rod} + stop + + + +command /ccclear: + permission: obam.admin + permission message: "&cThis command is only available for Admins." + trigger: + world is "CreatureCapture": + loop all players in world "CreatureCapture": + clear inventory of loop-player + send "&2Poof! Your stuff is gone!" to loop-player + +command /ccsign: + permission: obam.admin + permission message: "&cThis command is only available for Admins." + trigger: + world is "CreatureCapture" + send "&fSigns:" to player + send "&fType &agive &fon line 1" to player + send "&fType &alasso &for &acapture rod&f on line 2" to player + send "&f-----" to player + +on sign change: + world is "CreatureCapture" + line 1 is "give" or "Give": + set line 1 to "Get a" + set line 3 to "HERE" + set line 4 to "" + line 2 is "lead" or "Lead" or "Leash" or "leash" or "lasso" or "Lasso": + set line 2 to "Lasso" + set line 4 to "" + line 2 is "rod" or "Rod" or "fishingrod" or "FishingRod" or "fishing rod" or "Fishing Rod" or "capturerod" or "CaptureRod" or "capture rod" or "Capture Rod": + set line 2 to "Capture Rod" + set line 4 to "" + +on right click on entity: + world is "CreatureCapture" + if player is holding {@lasso}: + distance between player and event-entity is smaller than 3 + if entity is bat: + delete entity + give player bat spawn egg + stop + if entity is chicken: + delete entity + give player chicken spawn egg + stop + if entity is cow: + delete entity + give player cow spawn egg + stop + if entity is horse: + delete entity + give player horse spawn egg + stop + if entity is mooshroom: + delete entity + give player mooshroom spawn egg + stop + if entity is ocelot: + delete entity + give player ocelot spawn egg + stop + if entity is pig: + delete entity + give player pig spawn egg + stop + if entity is sheep: + delete entity + give player sheep spawn egg + stop + if entity is squid: + delete entity + give player squid spawn egg + stop + if entity is villager: + delete entity + give player villager spawn egg + stop + if entity is wolf: + delete entity + give player wolf spawn egg + stop + if entity is zombie pigman: + delete entity + give player zombie pigman spawn egg + stop + if entity is blaze: + delete entity + give player blaze spawn egg + stop + if entity is cave spider: + delete entity + give player cave spider spawn egg + stop + if entity is creeper: + delete entity + give player creeper spawn egg + stop + if entity is enderman: + delete entity + give player enderman spawn egg + stop + if entity is ghast: + delete entity + give player ghast spawn egg + stop + if entity is magma cube: + delete entity + give player magma cube spawn egg + stop + if entity is silverfish: + delete entity + give player silverfish spawn egg + stop + if entity is skeleton: + delete entity + give player skeleton spawn egg + stop + if entity is slime: + delete entity + give player slime spawn egg + stop + if entity is spider: + delete entity + give player spider spawn egg + stop + if entity is witch: + delete entity + give player witch spawn egg + stop + if entity is zombie: + delete entity + give player zombie spawn egg + stop + +on drop: + world is "CreatureCapture" + event-item is not spawn egg + cancel event + +on pickup: + world is "CreatureCapture" + cancel event + +command /endgame: + permission: obam.admin + permission message: "&cThis command is only available for Admins." + trigger: + world is "CreatureCapture": + loop all players in world: + add loop-player to {_players::*} + loop {ccchests::*}: + block at location of loop-value is a chest: + set {_chest} to location of loop-value + set {_sign} to block 2 meters above location of {_chest} + set {_team} to line 2 of {_sign} + set {_score} to 0 + loop items in inventory of block at location of {_chest}: + set {_hold} to "%loop-item%" + set {_split::*} to {_hold} split at " " + set {_number} to {_split::1} parsed as number + {_number} is not set: + set {_number} to 1 + loop {_number} times: + loop-item is a sheep spawn egg: + add 100 to {_score} + loop-item is a cow spawn egg: + add 100 to {_score} + loop-item is a ocelot spawn egg: + add 500 to {_score} + loop-item is a bat spawn egg: + add 500 to {_score} + loop-item is a chicken spawn egg: + add 400 to {_score} + loop-item is a horse spawn egg: + add 300 to {_score} + loop-item is a mooshroom spawn egg: + add 200 to {_score} + loop-item is a pig spawn egg: + add 100 to {_score} + loop-item is a squid spawn egg: + add 1000 to {_score} + loop-item is a villager spawn egg: + add 400 to {_score} + loop-item is a wolf spawn egg: + add 300 to {_score} + loop-item is a zombie spawn egg: + add 400 to {_score} + loop-item is a zombie pigman spawn egg: + add 200 to {_score} + loop-item is a blaze spawn egg: + add 500 to {_score} + loop-item is a cave spider spawn egg: + add 200 to {_score} + loop-item is a creeper spawn egg: + add 300 to {_score} + loop-item is a enderman spawn egg: + add 500 to {_score} + loop-item is a ghast spawn egg: + add 500 to {_score} + loop-item is a magma cube spawn egg: + add 100 to {_score} + loop-item is a silverfish spawn egg: + add 200 to {_score} + loop-item is a skeleton spawn egg: + add 100 to {_score} + loop-item is a slime spawn egg: + add 300 to {_score} + loop-item is a spider spawn egg: + add 200 to {_score} + loop-item is a witch spawn egg: + add 400 to {_score} + send "&2The &7%{_team}% &2Team has a score of &7%{_score}%" to {_players::*} + clear inventory of block at location of {_chest} + set {_score::%{_team}%} to {_score} + loop {_score::*}: + set {_%loop-index%} to loop-value + {_Green} is greater than {_Blue}: + {_Green} is greater than {_Red}: + {_Green} is greater than {_Purple}: + send "&2The &7Green &2Team had won the match" to {_players::*} + {_Blue} is greater than {_Green}: + {_Blue} is greater than {_Red}: + {_Blue} is greater than {_Purple}: + send "&2The &7Blue &2Team had won the match" to {_players::*} + {_Red} is greater than {_Green}: + {_Red} is greater than {_Blue}: + {_Red} is greater than {_Purple}: + send "&2The &7Red &2Team had won the match" to {_players::*} + {_Purple} is greater than {_Green}: + {_Purple} is greater than {_Red}: + {_Purple} is greater than {_Blue}: + send "&2The &7Purple &2Team had won the match" to {_players::*} + +command /setendchest: + permission: obam.admin + trigger: + targeted block is a chest + add targeted block to {ccchests::*} + send "&aChest added" diff --git a/Obam-Testing/damage modifier.sk b/Obam-Mini Games/Obam-KitPvp/KitPVP-Testing/damage modifier.sk similarity index 100% rename from Obam-Testing/damage modifier.sk rename to Obam-Mini Games/Obam-KitPvp/KitPVP-Testing/damage modifier.sk diff --git a/Obam-Mini Games/Obam-KitPvp/archer.sk b/Obam-Mini Games/Obam-KitPvp/archer.sk new file mode 100644 index 0000000..e531d93 --- /dev/null +++ b/Obam-Mini Games/Obam-KitPvp/archer.sk @@ -0,0 +1,25 @@ +#archer + +on teleport: + wait 3 ticks + player's world is "vacant" + {kit.%player%} is "archer": + {ingame.%player%} is not set + apply speed 1 to player for 999 days + equip player with all leather armor of unbreaking 10 named "&fArcher's Garments" + dye player's helmet (72, 11, 5) + dye player's chestplate (72, 11, 5) + dye player's leggings (72, 11, 5) + dye player's boots (72, 11, 5) + give player bow of infinity 1 and punch 1 named "&fBow of Truth" + give 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" to player + give player 2 egg named "&fStun Bomb" + apply absorption 3 to player for 999 days + give player arrow + set {ingame.%player%} to true + + + + + + diff --git a/Obam-Mini Games/Obam-KitPvp/boards.sk b/Obam-Mini Games/Obam-KitPvp/boards.sk new file mode 100644 index 0000000..8dea929 --- /dev/null +++ b/Obam-Mini Games/Obam-KitPvp/boards.sk @@ -0,0 +1,79 @@ +#boards +#startfold @scoreboards +every 1 second: + + loop all players: + {off.sb.%loop-player%} is not set: + set {off.sb.%loop-player%} to true + {off.sb.%loop-player%} is true + {board.up.%loop-player%.kp} is not set: + set {board.up.%loop-player%.kp} to false + {board.up.%loop-player%.kp} is true: + make score of "&cDeaths:" in board of loop-player to {deaths.%loop-player%.kit} + make score of "&aKills:" in board of loop-player to {kills.%loop-player%.kit} + make score of "&aKillstreak:" in board of loop-player to {killstreak.%loop-player%} + make score of "&aAssists:" in board of loop-player to {assist.%loop-player%.kp} + make score of "&eBounty:" in board of loop-player to {value.%loop-player%.kit.live} + make score "&aTickets:" in board of loop-player to loop-player's balance + {rampage.%loop-player%} is set: + make score of "&cRAMPAGE" in board of loop-player to 1 + {kit.%loop-player%} is set: + make score of "&3%{kit.%loop-player%}%" in board of loop-player to 1 + set {board.up.%loop-player%.sb} to false + + {board.up.%loop-player%.kp} is false: + display board named "&9&lKP &9Stats" to loop-player + make score of "&cDeaths:" in board of loop-player to {deaths.%loop-player%.kit} + make score of "&aKills:" in board of loop-player to {kills.%loop-player%.kit} + make score of "&aKillstreak:" in board of loop-player to {killstreak.%loop-player%} + make score of "&aAssists:" in board of loop-player to {assist.%loop-player%.kp} + make score of "&eBounty:" in board of loop-player to {value.%loop-player%.kit.live} + make score "&aTickets:" in board of loop-player to loop-player's balance + {rampage.%loop-player%} is set: + make score of "&cRAMPAGE" in board of loop-player to 1 + {kit.%loop-player%} is set: + make score of "&3%{kit.%loop-player%}%" in board of loop-player to 1 + set {board.up.%loop-player%.sb} to false + set {board.up.%loop-player%.kp} to true + move display of loop-player to sidebar + + + +#subfold @command +command /togglestats: + permission: obam.free + executable by: players + trigger: + {off.sb.%player%} is not set: + set {off.sb.%player%} to false + send "&aYou have turned off OBAM Stats" to player + display board named " " to player + stop + {off.sb.%player%} is true: + set {off.sb.%player%} to false + send "&aYou have turned off OBAM Stats" to player + display board named " " to player + stop + {off.sb.%player%} is false: + set {off.sb.%player%} to true + send "&aYou have turned on OBAM Stats" to player + + + display board named "&9&lKP &9Stats" to player + make score of "&cDeaths:" in board of player to {deaths.%player%.kit} + make score of "&aKills:" in board of player to {kills.%player%.kit} + make score of "&aKillstreak:" in board of player to {killstreak.%player%} + make score of "&eBounty:" in board of player to {value.%player%.kit.live} + make score of "&aAssists:" in board of player to {assist.%player%.kp} + {rampage.%player%} is set: + make score of "&cRAMPAGE" in board of player to 1 + {kit.%player%} is set: + make score of "&3%{kit.%player%}%" in board of player to 1 + set {board.up.%player%.sb} to false + set {board.up.%player%.kp} to true + move display of player to sidebar + + +#endfold + + diff --git a/Obam-Mini Games/Obam-KitPvp/firemage.sk b/Obam-Mini Games/Obam-KitPvp/firemage.sk new file mode 100644 index 0000000..404a195 --- /dev/null +++ b/Obam-Mini Games/Obam-KitPvp/firemage.sk @@ -0,0 +1,54 @@ +on teleport: + wait 3 ticks + player's world is "vacant" + + + + {kit.%player%} is "firemage": + clear player's inventory + equip player with all leather armor of unbreaking 10 named "&fFireMage's Robes" + dye player's helmet (206, 3, 30) + dye player's chestplate (206, 3, 30) + dye player's leggings (206, 3, 30) + dye player's boots (206, 3, 30) + give player stick of knockback 1 named "&fFire Wand" + give player 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" + give player 3 splash potions of harming named "&fPain Juice" + apply speed 1 to player for 999 days + set player's level progress to 0.99 + +on right click with stick: + cancel event + {kit.%player%} is "firemage": + player's tool is a stick named "&fFire Wand" + player's y coordinate is greater than {kitpvp.area}'s y coordinate: + send "&cYou can not do that here. Please select an arena!" to player + stop + level progress of player is greater than or equal to 0.1: + shoot a fireball from the player + create safe explosion with force 5 at targeted block + loop entities in radius 5 of targeted block: + loop-entity is not a player: + make player damage loop-entity by 5 + {kit.%loop-entity%} is set: + loop-entity is not "%player%": + make player damage loop-entity by 2 + loop-entity is ignited: + make player damage loop-entity by 1 + ignite loop-entity + loop-entity is "%player%": + push loop-entity up with force 2 + extinguish the player + chance of 15%: + make player damage loop-entity by 1 + send "&aCritical hit!" to player + send "&cCritical hit!" to loop-entity + reduce the player's level progress by 0.1 + +on left click with a stick: + cancel event + {kit.%player%} is "firemage": + level progress of player is greater than or equal to 0.05: + shoot a egg from the player + reduce the player's level progress by 0.05 + diff --git a/Obam-Mini Games/Obam-KitPvp/fisherman.sk b/Obam-Mini Games/Obam-KitPvp/fisherman.sk new file mode 100644 index 0000000..cce928d --- /dev/null +++ b/Obam-Mini Games/Obam-KitPvp/fisherman.sk @@ -0,0 +1,33 @@ +on teleport: + wait 3 ticks + player's world is "vacant" + + + + {kit.%player%} is "fisherman": + {ingame.%player%} is not set + equip player with all leather armor of unbreaking 10 named "&fFishing Gear" + dye player's helmet (97, 158, 174) + dye player's chestplate (97, 158, 174) + dye player's leggings (97, 158, 174) + dye player's boots (97, 158, 174) + give player fishing rod of unbreaking 10 named "&fOld Faithful" + give player fish named "&fBig Fish" + give player 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" + set {ingame.%player%} to true + +on right click with fishing rod: + world is "vacant" + {kit.%player%} is "fisherman": + player's y coordinate is greater than {kitpvp.area}'s y coordinate: + send "&cYou can not do that here. Please select an Arena!" to player + stop + set {_loc} to location of player + push targeted entity in the direction of player with speed -4 + make player damage targeted entity by 2 + chance of 20%: + send "&aIts a big one!" to player + loop players in radius 5 of targeted entity: + push loop-player in the direction of player with speed -4 + make player damage loop-player by 2 + diff --git a/Obam-Mini Games/Obam-KitPvp/kdss.sk b/Obam-Mini Games/Obam-KitPvp/kdss.sk new file mode 100644 index 0000000..74ec6bc --- /dev/null +++ b/Obam-Mini Games/Obam-KitPvp/kdss.sk @@ -0,0 +1,370 @@ +on damage of a player: + world is "kitspawnroom": + cancel event + {spawnsafety.%victim%} is not set: + set {spawnsafety.%victim%} to now + add 6 seconds to {spawnsafety.%victim%} + set {_check} to difference between {spawnsafety.%victim%} and now + {_check} is less than 5 seconds: + cancel event + damage cause is fall: + cancel event + damage cause is drowning: + cancel event + damage cause is suffocation: + cancel event + damage cause is block explosion: + cancel event + damage cause is entity explosion: + cancel event + + + + damage cause is fire or poison or wither or lava or burning: + damage is greater than victim's health: + cancel event + nullify score of "&3%{kit.%victim%}%" in board of victim + clear {kit.%victim%} + victim has health boost: + remove health boost from victim + victim has nausea: + remove nausea from victim + victim has poison: + remove poison from victim + victim has jump: + remove jump from victim + victim has slowness: + remove slowness from victim + victim has speed: + remove speed from victim + victim has absorption: + remove absorption from victim + victim has wither: + remove wither from victim + victim has blindness: + remove blindness from victim + heal victim by 10 hearts + {deaths.%victim%.kit} is not set: + set {deaths.%victim%.kit} to 0 + add 1 to {deaths.%victim%.kit} + {lasthit.%victim%} is not set: + clear {killstreak.%victim%} + clear {kit.%victim%} + clear {ingame.%victim%} + broadcast "&e%victim%&c met their end to the environment" + teleport victim to {kit.spawn} + {lasthit.%victim%} is set: + set {_attacker} to {lasthit.%victim%} + {kills.%{_attacker}%.kit} is not set: + set {kills.%{_attacker}%.kit} to 0 + add 1 to {kills.%{_attacker}%.kit} + {killstreak.%{_attacker}%} is not set: + set {killstreak.%{_attacker}%} to 0 + add 1 to {killstreak.%{_attacker}%} + {killstreak.%{_attacker}%} is 5: + broadcast "&e%{_attacker}%&c is on a Rampage!" + set {rampage.%{_attacker}%} to true + {killstreak.%{_attacker}%} is 10: + broadcast "&e%{_attacker}%&c is Unstoppable!" + {killstreak.%{_attacker}%} is 15: + broadcast "&e%{_attacker}%&c is Annihilating!" + {killstreak.%{_attacker}%} is 20: + broadcast "&e%{_attacker}%&c is Dominating!" + {killstreak.%{_attacker}%} is 25: + broadcast "&e%{_attacker}%&c is Destroying!" + {killstreak.%{_attacker}%} is 30: + broadcast "&e%{_attacker}%&c is Scary" + {rampage.%victim%} is true: + broadcast "&e%{_attacker}%&a has ended &e%victim%'s&a rampage!" + clear {rampage.%victim%} + nullify score of "&3RAMPAGE" in board of victim + loop all entities: + {owner.zombie.%loop-entity%} is victim: + delete loop-entity + {owner.skeleton.%loop-entity%} is victim: + delete loop-entity + {assists.%victim%::*} is set: + loop {assists.%victim%::*}: + clear {_player} + {_player} is not victim + {_player} is not {_attacker} + set {_player} to loop-value parsed as player + add 1 to {assist.%{_player}%.kp} + send "&aYou assisted in the kill of &e%victim%" + + clear {ingame.%victim%} + clear {killstreak.%victim%} + clear {lashit.%victim%} + clear {assists.%victim%::*} + + teleport victim to {kit.spawn} + set {_size} to size of {deathmessages.kitpvp::*} + set {_ran} to a random integer between 1 and {_size} + set {_message} to {deathmessages.kitpvp::%{_ran}%} + replace "ATTACKER" in {_message} with "&e%{_attacker}%&c" + replace "VICTIM" in {_message} with "&e%victim%&c" + replace "WEAPON" in {_message} with "&e%name of attacker's tool%&c" + broadcast "&c%{_message}%" + + + + + attacker is a player: + victim is a player: + {hiding.%attacker%} is set: + cancel event + {kit.%attacker%} is not set: + cancel event + {kit.%victim%} is not set: + cancel event + projectile is a arrow: + {kit.%attacker%} is "archer" or "skelemancer": + distance between attacker and victim is greater than 20: + chance of 20%: + send "&aCritical Hit!" to attacker + play anvil land at victim's location with pitch 2 + play level up at attacker's location with pitch 1 + send "&cCritical Hit!" to victim + add 3 to damage + projectile is a snowball: + {kit.%attacker%} is "ninja": + apply blindness to victim for 4 seconds + send "&cYou have been blinded by &e%attacker%&c!" to victim + send "&aYou have blinded &e%victim%&a!" to attacker + {kit.%attacker%} is "melee": + apply poison to victim for 6 seconds + send "&cYou have been poisoned by &e%attacker%&c!" to victim + send "&aYou have poisoned &e%victim%&a!" to attacker + {kit.%attacker%} is "tank": + apply slowness 8 to victim for 3 seconds + apply blindness to victim for 3 seconds + teleport victim to attacker + send "&cYou have been disabled by &e%attacker%&c!" to victim + send "&aYou have disabled &e%victim%&a!" to attacker + projectile is a egg: + {kit.%attacker%} is "firemage": + apply nausea to victim for 2 seconds + apply slowness 2 to victim for 2 seconds + {kit.%victim%} is "tank": + send "&cYou can not slow the tank!" to attacker + remove slowness from victim + apply slowness 2 to victim for 999 days + stop + send "&cYou have been confused by &e%attacker%&c!" to victim + send "&aYou have confused &e%victim%&a!" to attacker + {kit.%attacker%} is "archer": + apply slowness 8 to victim for 3 seconds + {kit.%victim%} is "tank": + send "&cYou can not slow the tank!" to attacker + remove slowness from victim + apply slowness 2 to victim for 999 days + stop + send "&aYou have stunned &e%victim%&A!" to attacker + send "&cYou have been stunned by &e%attacker%&c!" to victim + + + attacker's tool is a fish: + name of attacker's tool is "&fBig Fish": + add 1 to damage + apply nausea to victim for 2 seconds + play slime attack at location of victim with pitch 1 + send "&cYou have fish slapped!" to victim + + + + {kit.%victim%} is "tank": + {kit.%attacker%} is not "tank": + set damage to damage / 4 + {kit.%attacker%} is "tank": + set damage to damage * 3 + {kit.%attacker%} is "tank": + {kit.%victim%} is not "tank": + set damage to damage / 2 + {kit.%attacker%} is "ninja": + victim's target is attacker: + victim does not have blindness + set damage to damage / 2 + victim has blindness: + set damage to damage * 1.5 + {kit.%victim%} is "fisherman": + set damage to damage / 1.5 + {kit.%victim%} is "archer": + set damage to damage * 1.5 + {kit.%attacker%} is "fisherman": + {kit.%victim%} is "ninja": + set damage to damage * 1.5 + {kit.%victim%} is "lightningmage": + set damage to damage / 1.5 + {kit.%attacker%} is "archer": + {kit.%victim%} is "ninja": + set damage to damage / 1.5 + {kit.%victim%} is "melee": + set damage to damage * 1.5 + {kit.%attacker%} is "melee": + {kit.%victim%} is "necromancer": + set damage to damage * 1.5 + {kit.%victim%} is "archer": + set damage to damage / 1.5 + {kit.%attacker%} is "necromancer": + {kit.%victim%} is "skelemancer": + set damage to damage * 1.5 + {kit.%victim%} is "melee": + set damage to damage / 1.5 + {kit.%attacker%} is "skelemancer": + {kit.%victim%} is "necromancer": + set damage to damage / 1.5 + {kit.%victim%} is "lightningmage": + set damage to damage * 1.5 + {kit.%attacker%} is "lightningmage": + {kit.%victim%} is "skelemancer": + set damage to damage / 1.5 + {kit.%victim%} is "fisherman": + set damage to damage * 1.5 + {kit.%victim%} is "firemage": + set damage to damage * 1.5 + {kit.%attacker%} is "firemage": + {kit.%victim%} is "necromancer": + set damage to damage * 1.5 + {kit.%victim%} is "lightningmage": + set damage to damage / 1.5 + {kit.%attacker%} is "tank": + + {combo.%attacker%} is set: + set {_dif} to difference between {combo.%attacker%} and now + {combo.%attacker%.track} is victim: + {_dif} is less than 1 second: + {modifier.%attacker%} is not set: + set {modifier.%attacker%} to 0 + {modifier.%attacker%} is less than 2: + add 0.25 to {modifier.%attacker%} + add {modifier.%attacker%} to damage + {_dif} is greater than or equal to 1 second: + clear {modifier.%attacker%} + set {combo.%attacker%.track} to victim + set {combo.%attacker%} to now + {combo.%attacker%.track} is not victim: + set {combo.%attacker%.track} to victim + clear {modifier.%attacker%} + set {combo.%attacker%} to now + {combo.%attacker%} is not set: + set {combo.%attacker%} to now + set {combo.%attacker%.track} to victim + + {assists.%victim%::%attacker%} is not set: + attacker is not victim + set {assist.%victim%::%attacker%} to attacker + + set {lasthit.%victim%} to attacker + + + + + + + + damage is greater than victim's health: + cancel event + {kit.%attacker%} is "melee": + apply speed 3 to attacker for 15 seconds + victim is ignited: + extinguish victim + extinguish victim + nullify score of "&3%{kit.%victim%}%" in board of victim + clear {kit.%victim%} + victim has health boost: + remove health boost from victim + victim has nausea: + remove nausea from victim + victim has poison: + remove poison from victim + victim has jump: + remove jump from victim + victim has slowness: + remove slowness from victim + victim has speed: + remove speed from victim + victim has absorption: + remove absorption from victim + victim has wither: + remove wither from victim + victim has blindness: + remove blindness from victim + extinguish victim + heal victim by 10 hearts + {deaths.%victim%.kit} is not set: + set {deaths.%victim%.kit} to 0 + add 1 to {deaths.%victim%.kit} + {kills.%attacker%.kit} is not set: + set {kills.%attacker%.kit} to 0 + add 1 to {kills.%attacker%.kit} + {killstreak.%attacker%} is not set: + set {killstreak.%attacker%} to 0 + add 1 to {killstreak.%attacker%} + {killstreak.%attacker%} is 5: + broadcast "&e%attacker%&c is on a Rampage!" + set {rampage.%attacker%} to true + {killstreak.%attacker%} is 10: + broadcast "&e%attacker%&c is Unstoppable!" + {killstreak.%attacker%} is 15: + broadcast "&e%attacker%&c is Annihilating!" + {killstreak.%attacker%} is 20: + broadcast "&e%attacker%&c is Dominating!" + {killstreak.%attacker%} is 25: + broadcast "&e%attacker%&c is Destroying!" + {killstreak.%attacker%} is 30: + broadcast "&e%attacker%&c is Scary" + {rampage.%victim%} is true: + broadcast "&e%attacker%&a has ended &e%victim%'s&a rampage!" + clear {rampage.%victim%} + nullify score of "&3RAMPAGE" in board of victim + loop all entities: + {owner.zombie.%loop-entity%} is victim: + delete loop-entity + {owner.skeleton.%loop-entity%} is victim: + delete loop-entity + {assists.%victim%::*} is set: + loop {assists.%victim%::*}: + clear {_player} + set {_player} to loop-value parsed as a player + send "&aYou assisted on the kill of &e%victim%" to {_player} + {assist.%{_player}%.kp} is not set: + set {assist.%{_player}%.kp} to 0 + add 1 to {assist.%{_player}%.kp} + + clear {ingame.%victim%} + clear {killstreak.%victim%} + clear {assists.%victim%::*} + + teleport victim to {kit.spawn} + set {_size} to size of {deathmessages.kitpvp::*} + set {_ran} to a random integer between 1 and {_size} + set {_message} to {deathmessages.kitpvp::%{_ran}%} + replace "ATTACKER" in {_message} with "&e%attacker%&c" + replace "VICTIM" in {_message} with "&e%victim%&c" + replace "WEAPON" in {_message} with "&e%name of attacker's tool%&c" + broadcast "&c%{_message}%" + +every 1 second: + loop all players: + loop-player is sneaking: + level progress of loop-player is greater than 0.1: + {kit.%loop-player%} is "ninja" + hide loop-player from all players + set {hiding.%loop-player%} to true + spawn 50 of large smoke data 1 offset with 0, 0, 0 at location of loop-player + spawn 50 of angry villager data 1 offset with 0, 0, 0 at location of loop-player + reduce the loop-player's level progress by 0.1 + level progress of loop-player is less than 0.1: + reveal loop-player to all players + clear {hiding.%loop-player%} + + loop-player is not sneaking: + {hiding.%loop-player%} is set + reveal loop-player to all players + clear {hiding.%loop-player%} + +on death of a player: + clear {kit.%player%} + +on respawn: + teleport player to {kit.spawn} \ No newline at end of file diff --git a/Obam-Mini Games/Obam-KitPvp/kitpvp.sk b/Obam-Mini Games/Obam-KitPvp/kitpvp.sk new file mode 100644 index 0000000..fa7ecdb --- /dev/null +++ b/Obam-Mini Games/Obam-KitPvp/kitpvp.sk @@ -0,0 +1,383 @@ +options: + #startfold @class-chest-stuff + ninjakit: i;leather cap;n;&9&lNinja;l;&7Click to pick the||&eNinja&7 Class|| ||&5Kit Info:||&7You are a ninja with||&7a stone sword. Turn||&7Invisible by holding shift||&7But watch your mana it||&7it is not unlimited!|| ||%{dis.%player%.1}%;c;sudo %player% kits ninja + archerkit: i;bow;n;&9&lArcher;l;&7Click to pick the||&eArcher&7 Class|| ||&5Kit Info:||&7You are an archer||&7with a Punch I bow||&7Keep your distance to||&7to get critical hits!;c;sudo %player% kits archer + meleekit: i;iron helmet;n;&9Melee;l;&7Click to pick the||&eMelee&7 Class|| ||&5Kit Info:||&7Ultimate in up close||&7combat. An iron sword||&7Unrivaled by any other||&7close combat kit;c;sudo %player% kits melee + firemagekit: i;fire charge;n;&9Fire Mage;n;&9&lFire Mage;l;&7Click to pick the||&eFire Mage&7 Class|| ||&5Kit Info:||&7The firemage tosses fireballs||&7at their opponents||&7wreaking havoc with||&7explosions and fire|| ||%{dis.%player%.1}%;c;sudo %player% kits firemage + lightningmagekit: i;nether star;n;&9Lightning Mage;l;&7Click to pick the||&eLightning Mage&7 class|| ||&5Kit Info:||&7Using the power of||&7Lightning, this kit||&7causes large group damage||&7and harnesses the power||&7to teleport;c;sudo %player% kits lightningmage + tankkit: i;gold chestplate;n;&9&lTank;l;&7Click to pick the||&eTank&7 class|| ||&5Kit Info:||&7The tank shows no||&7Weakness, its armor||&7pure, and its paddle||&7heavy, it guarantees||&7longer lives, but fewer||&7kills;c;sudo %player% kits tank + necrokit: i;bone;n;&9&lNecromancer;l;&7Click to pick the ||&eNecromancer&7 class|| ||&5Kit Info:||&7The Necro summons the||&7Dead from beyond to||&7assist in their domination||&7Summoning requires only||&7a little bit of mana||&7and a few drops of your||&7own blood|| ||%{dis.%player%.1}%;c;sudo %player% kits necromancer + fishermankit: i;fish;n;&9&lFisherman;l;&7Click to pick the||&eFisherman&7 class|| ||&5Kit Info:||&7The legendary fisherman||&7Relies on his trusty||&7Big Fish to deal the||&7Blows, and his Rod||&7Old Faithful, to bring||&7the enemy closer.;c;sudo %player% kits fisherman + something: i;wood hoe;n;&9&lSomething;c;sudo %player% kits something + skelemancerkit: i;wither skeleton head;n;&9&lSkele-Mancer;l;&7Click to pick the||&eSkele-Mancer&7 class|| ||&5Kit Info||&7Skelemancers take summoning||&7to a new level with||&7long range combat.||&7Fleshing the field with||&7Skeletons of fallen||&7Opponents, and trusty||&7Bow, with chances for||&7Critical hits at long||&7Range.;c;sudo %player% kits skelemancer + supporterstuff: i;diamond block;n;&9&lMore Kits for Supporters!;l;&7Purchase a Supporter membership||&7To get even more fun||&7kits from &9OBAM&7! + #endfold + #startfold @arena-chest-stuff + killingfieldarena: i;long grass;n;&9&lKilling Fields;l;&7Click to join the||&eKilling Fields&7 arena;c;spawnplayer %player% killingfields + vacantarena: i;glass bottle;n;&9&lVacant;l;&7Click to join||&eVacant&7 arena;c;spawnplayer %player% vacant + showdownarena: i;dead shrub;n;&9&lShowdown;l;&7Click to join||&eShowdown&7 arena;c;spawnplayer %player% showdown + #endfold +#kits + + +variables: + {safety.%player%} = 0 + +on first join: + wait 1 second + teleport player to {kit.spawn} + +on join: + clear {kit.%player%} + clear {ingame.%player%} + clear {board.up.%player%.kp} + teleport player to {kit.spawn} + +on connect: + teleport player to {kit.spawn} + +on disconnect: + clear {kit.%player%} + clear {ingame.%player%} + +command /arena: + trigger: + world is "kitspawnroom": + + {kit.%player%} is not set: + send "&cPlease choose a kit first!" to player + stop + + send "&aOpening menu..." + wait 0.3 seconds + show "s;3;{@vacantarena}" with 1 row named "&9&lOBAM&9 :: Arenas" to player +command /kits []: + + executable by: players and console + trigger: + world is "kitspawnroom" + argument is not set: + + set {dis.%player%.1} to "&eUse this kit for &a25 &eTickets" + show "s;11;{@ninjakit};s;12;{@archerkit};s;13;{@meleekit};s;14;{@firemagekit};s;15;{@lightningmagekit};s;16;{@tankkit};s;17;{@necrokit};s;23;{@fishermankit};s;24;{@skelemancerkit}" with 4 rows named "&9&lOBAM &9:: Kits" to player + {kit.%player%} is set: + send "&cYou already have a kit D:" to player + stop + + set {_arena.run} to true + + argument is "archer": + send "&aYou have picked the &eArcher&a Kit" + set {kit.%player%} to "archer" + + + argument is "ninja": + set {_bal} to player's balance + {_bal} is less than 25: + send "&cYou do not have enough tickets for this!" + stop + remove 25 from player's balance + send "&aYou have purchased the &eNinja&a kit for &e25 Tickets&a!" + send "&aYour current balance is &e%player's balance%" + send "&aYou have picked the &eNinja&a kit!" + set {kit.%player%} to "ninja" + set {ninja.poof.%player%} to true + + argument is "melee": + send "&aYou have picked the &eMelee&a kit" + set {kit.%player%} to "melee" + + argument is "firemage": + set {_bal} to player's balance + {_bal} is less than 25: + send "&cYou do not have enough tickets for this!" + stop + remove 25 from player's balance + send "&aYou have purchased the &eFiremage&a kit for &e25 Tickets&a!" + send "&aYour current balance is &e%player's balance%" + send "&aYou have picked the &eFiremage&a kit!" + set {kit.%player%} to "firemage" + + argument is "tank": + send "&aYou have picked the &eTank&a kit!" + set {kit.%player%} to "tank" + + + argument is "lightningmage": + send "&aYou have picked the &eLightning Mage&a kit!" + set {kit.%player%} to "lightningmage" + + argument is "necromancer": + + set {_bal} to player's balance + {_bal} is less than 25: + send "&cYou do not have enough tickets for this!" + stop + remove 25 from player's balance + send "&aYou have purchased the &eNecromancere&a kit for &e25 Tickets&a!" + send "&aYour current balance is &e%player's balance%" + send "&aYou have picked the &eNecromancer&a kit!" + set {kit.%player%} to "necromancer" + + + argument is "fisherman": + send "&aYou have picked the &eFisherman&a kit!" + set {kit.%player%} to "fisherman" + + argument is "skelemancer": + send "&aYou have picked the &eSkelemancer&a kit!" + set {kit.%player%} to "skelemancer" + + {_arena.run} is true: + send "&aOpening Arena Menu...." to player + wait 1 second + make player execute command "/arena" + +on teleport: + world is "vacant" + {ingame.%player%} is not set + set {spawnsafety.%player%} to now + clear player's inventory + player is on fire: + extinguish player + player has poison: + remove poison from player + player has wither: + remove wither from player + player has health boost: + remove health boost from player + player has jump: + remove jump from player + player has speed: + remove speed from player + player has absorption: + remove absorption from player + player has blindness: + remove blindness from player + player has slowness: + remove slowness from player + player has nausea: + remove nausea from player + +on right click with mushroom soup: + cancel event + player's health is 10: + send "&aYou already have full health!" to player + clear {assits.%player%::*} + stop + remove mushroom soup from player + give player bowl + + add 5 to player's health + +on quit: + player has poison: + remove poison from player + player has wither: + remove wither from player + player has health boost: + remove health boost from player + player has jump: + remove jump from player + player has speed: + remove speed from player + player has absorption: + remove absorption from player + player has blindness: + remove blindness from player + player has slowness: + remove slowness from player + player has nausea: + remove nausea from player + clear {ingame.%player%} + clear {kit.%player%} + clear {killstreak.%player%} +on explode: + cancel event + + + +on xp spawn: + cancel event + + +on damage of a player: + damage cause is suffocation: + cancel event + +every 2 seconds: + + loop all players: + loop-player's world is not "kitspawnroom" + {kit.%loop-player%} is "firemage" or "lightningmage" or "necromancer" or "skelemancer" or "fisherman" or "ninja": + level progress of loop-player is less than 0.9: + increase loop-player's level progress by 0.05 + else: + set loop-player's level progress to 0.99 + + +on respawn: + teleport player to {kit.spawn} + +on death of a player: + victim is a player: + clear drops + teleport victim to {kit.spawn} + clear {last.attacker.%victim%} + clear {kit.%victim%} + clear {ninja.poof.%victim%} + victim has jump: + remove jump from victim + victim has blindness: + remove blindness from victim + victim has health boost: + remove health boost from victim + victim has speed: + remove speed from victim + victim has slowness: + remove slowness from victim + victim has wither: + remove wither from victim + victim has absorption: + remove absorption from victim + victim has poison: + remove poison from victim + clear {killstreak.%victim%} + {last.attacker.%victim%} is not set: + message "&cThe environment got the best of &e%victim%" to all players in victim's world + {last.attacker.%victim%} is set: + set {_size} to size of {deathmessages.kitpvp::*} + set {_temp} to random integer between 1 and {_size} + message "&e%{last.attacker.%victim%}% &chas %{deathmessages.kitpvp::%{_temp}%}% &e%victim% &cwith &b%uncoloured name of {last.attacker.%victim%}'s tool%" to all players in {last.attacker.%victim%}'s world + {last.attacker.%victim%} is not victim: + send "&aYou claim a bounty of &e%{value.%victim%.kit.live}% tickets &afrom &e%victim%" to {last.attacker.%victim%} + add {value.%victim%.kit.live} to {last.attacker.%victim%}'s balance + set {_size2} to size of {assists.%victim%::*} + {_size2} is greater than 1: + loop {assists.%victim%::*}: + {assists.%victim%::%loop-index%} is not {last.attacker.%victim%}: + set {_player} to {assists.%victim%::%loop-index%} + send "&aYou assisted in the death of &e%victim%" to {_player} + send "&aYou split the bounty &e%{_size2}% &aways with others. Your cut is &e%rounded {value.%victim%.kit.live} / {_size2}% &etickets" to {_player} + {assist.%{_player}%.kp} is not set: + set {assist.%{_player}%.kp} to 0 + add 1 to {assist.%{_player}%.kp} + set {_cut} to {value.%victim%.kit.live} / {_size2} + add rounded {_cut} to {_player}'s balance + + + + + + clear drops + set {kitpvp.dead.%player%} to false + +on target: + {kit.%target player%} is not set: + cancel event + {owner.skeleton.%event-entity%} is target player: + cancel event + {owner.zombie.%event-entity%} is target player: + cancel event + +every 1 second: + loop all players: + set loop-player's hunger level to 10 + + + +on drop: + cancel event + + + + +command /dm []: + permission: obam.admin + trigger: + argument 1 is "list": + loop {deathmessages.kitpvp::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + send "%{_count}%..%loop-value%" + stop + argument 1 is "delete": + delete {deathmessages.kitpvp::%argument 2%} + send "&cDeleted.." + stop + send "&aYou have added &e%argument 1%&a to the death message list!" + add argument 1 to {deathmessages.kitpvp::*} + + +command /clearkit : + executable by: console + trigger: + clear {kit.%player-argument%} + player-argument has poison: + remove poison from player-argument + player-argument has wither: + remove wither from player-argument + player-argument has speed: + remove speed from player-argument + player-argument has slowness: + remove slowness from player-argument + player-argument has health boost: + remove health boost from player-argument + player-argument has absorption: + remove absorption from player-argument + player-argument has jump: + remove jump from player-argument + clear {ninja.poof.%player-argument%} + clear player-argument's inventory + +command /revive : + executable by: console or players + permission: obam.admin.kp + trigger: + set {kitpvp.dead.%player-argument%} to false + +command /mapset : + permission: obam.smod + trigger: + send "&aYou have added a spawn point for '&e%argument%&a'" to player + add location of player to {map.%argument%.spawns::*} + + + +command /spawnplayer : + executable by: console + trigger: + set {_size} to size of {map.%argument 2%.spawns::*} + set {_tmp} to random integer between 1 and {_size} + teleport player-argument to {map.%argument 2%.spawns::%{_tmp}%} + +command /clearspawn : + permission: obam.admin.kp + trigger: + clear {map.%argument%.spawns::*} + + + +every 1 second: + loop all players: + set {value.%loop-player%.kit} to {kills.%loop-player%.kit} * {killstreak.%loop-player%} + set {value.%loop-player%.kit} to {value.%loop-player%.kit} / {deaths.%loop-player%.kit} + set {value.%loop-player%.kit} to {value.%loop-player%.kit} + 10 + {value.%loop-player%.kit} is greater than 100: + set {value.%loop-player%.kit} to 100 + {value.%loop-player%.kit} is less than 1: + set {value.%loop-player%.kit} to 1 + set {value.%loop-player%.kit.live} to rounded {value.%loop-player%.kit} + +command /spawnset: + permission: obam.smod + trigger: + set {kit.spawn} to player's location + +command /sudo : + permission: obam.admin + trigger: + make player-argument execute command argument 2 + + \ No newline at end of file diff --git a/Obam-Mini Games/Obam-KitPvp/lightningmage.sk b/Obam-Mini Games/Obam-KitPvp/lightningmage.sk new file mode 100644 index 0000000..c49284a --- /dev/null +++ b/Obam-Mini Games/Obam-KitPvp/lightningmage.sk @@ -0,0 +1,50 @@ +on teleport: + wait 3 ticks + player's world is "vacant" + + + + {kit.%player%} is "lightningmage": + {ingame.%player%} is not set + equip player with all leather armor of unbreaking 10 named "&fLightning Mage's Robes" + dye player's helmet (7, 247, 239) + dye player's chestplate (7, 247, 239) + dye player's leggings (7, 247, 239) + dye player's boots (7, 247, 239) + give player stick of knockback 1 named "&fLightning Wand" + give player 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" + give player 3 splash potions of harming named "&fPain Juice" + apply jump 1 to player for 999 days + set player's level progress to 0.99 + set {ingame.%player%} to true + +on right click with stick: + cancel event + {kit.%player%} is "lightningmage": + player's tool is a stick named "&fLightning Wand" + level progress of player is greater than or equal to 0.1: + strike lightning effect at targeted block + reduce the player's level progress by 0.1 + loop entities in radius 5 of targeted block: + loop-entity is not a player: + make player damage loop-entity by 6 + {kit.%loop-entity%} is set: + create safe explosion of force 2 at location of loop-entity + push loop-entity up with force 1 + make player damage loop-entity by 6 + apply wither to loop-entity for 3 seconds + strike lightning effect at location of loop-entity + +on left click with stick: + cancel event + {kit.%player%} is "lightningmage": + level progress of player is greater than or equal to 0.5: + targeted block is air or glass: + send "&cYou can not go there!" to player + stop + the distance between targeted block and player is less than or equal to 30: + teleport player to block above targeted block + + reduce the player's level progress by 0.5 + stop + send "&cThat is too far!" to player \ No newline at end of file diff --git a/Obam-Mini Games/Obam-KitPvp/melee.sk b/Obam-Mini Games/Obam-KitPvp/melee.sk new file mode 100644 index 0000000..e259753 --- /dev/null +++ b/Obam-Mini Games/Obam-KitPvp/melee.sk @@ -0,0 +1,19 @@ +on teleport: + wait 3 ticks + player's world is "vacant" + + + + {kit.%player%} is "melee": + {ingame.%player%} is not set + clear player's inventory + equip player with all leather armor of unbreaking 10 named "&fMelee Greaves" + dye player's helmet (172, 172, 172) + dye player's chestplate (172, 172, 172) + dye player's leggings (172, 172, 172) + dye player's boots (172, 172, 172) + give player iron sword named "&fBlade of Justice &b[Sharpness I]" + give 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" to player + give 2 snowball named "&fPoison Pills" to player + set {ingame.%player%} to true + diff --git a/Obam-Mini Games/Obam-KitPvp/necromancer.sk b/Obam-Mini Games/Obam-KitPvp/necromancer.sk new file mode 100644 index 0000000..419655f --- /dev/null +++ b/Obam-Mini Games/Obam-KitPvp/necromancer.sk @@ -0,0 +1,82 @@ +on teleport: + wait 3 ticks + player's world is "vacant" + + + {kit.%player%} is "necromancer": + {ingame.%player%} is not set + equip player with all leather armor of unbreaking 10 named "&fNecromancer's Robes" + dye player's helmet (0, 159, 37) + dye player's chestplate (0, 159, 37) + dye player's leggings (0, 159, 37) + dye player's boots (0, 159, 37) + give player blaze rod of knockback 1 named "&fSummoning Rod" + give player stone sword of knockback 1 named "&fSummoner's Trust" + give player 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" + apply speed 1 to player for 999 days + set player's level progress to 0.99 + set {ingame.%player%} to true + +on right click with blaze rod: + {kit.%player%} is "necromancer": + targeted block is glass: + stop + level progress of player is greater than or equal to 0.3: + {zombie.%player%.active} is greater than or equal to 5: + send "&cYou have too many zombies!" to player + stop + spawn a zombie at block above targeted block + set {_zombie.%player%} to spawned zombie + equip {_zombie.%player%} with leather helmet + set name of spawned zombie to "&cNecroSpawn" + make player damage player by 2 + + apply speed 3 to spawned zombie for 999 days + send "&aYou Summon the dead!" to player + set {owner.zombie.%spawned zombie%} to player + {zombie.%player%.active} is not set: + set {zombie.%player%.active} to 0 + add 1 to {zombie.%player%.active} + reduce player's level progress by 0.3 + +on left click with blaze rod: + {kit.%player%} is "necromancer": + + {zombie.%player%.active} is not set: + send "&cYou have no zombies out!" to player + stop + {zombie.%player%.active} is 0: + send "&cYou have no zombies out!" to player + stop + level progress of player is greater than or equal to {zombie.%player%.active} / 10: + loop all zombies: + {owner.zombie.%loop-entity%} is player: + delete loop-entity + make player damage player by {zombie.%player%.active} + reduce player's level progress by {zombie.%player%.active} / 10 + clear {zombie.%player%.active} + send "&aYou call back the dead!" to player + +on damage of a player: + attacker is a zombie: + cancel event + set {_player} to {owner.zombie.%attacker%} + make {_player} damage victim by 2 + +on death of a zombie: + clear drops + +on damage of a zombie: + {kit.%attacker%} is not set: + send "&cYou can not do that!" to attacker + cancel event + stop + + damage is greater than victim's health + cancel event + set {_player} to {owner.zombie.%victim%} + make attacker damage {_player} by 2 + send "&c%attacker% has slain your spawn!" to {_player} + send "&a%{_player}%'s spawn has died to your hand." to attacker + subtract 1 from {zombie.%{_player}%.active} + delete victim \ No newline at end of file diff --git a/Obam-Mini Games/Obam-KitPvp/ninja.sk b/Obam-Mini Games/Obam-KitPvp/ninja.sk new file mode 100644 index 0000000..224d0d4 --- /dev/null +++ b/Obam-Mini Games/Obam-KitPvp/ninja.sk @@ -0,0 +1,32 @@ +on teleport: + wait 3 ticks + player's world is "vacant" + + + {kit.%player%} is "ninja": + {ingame.%player%} is not set + apply speed 3 to player for 999 days + equip player with all leather armor of unbreaking 10 named "&fNinja Cloaks" + dye player's helmet (0, 0, 0) + dye player's chestplate (0, 0, 0) + dye player's leggings (0, 0, 0) + dye player's boots (0, 0, 0) + apply jump 2 to player for 999 days + apply absorption 3 to player for 999 days + give stone sword of unbreaking 10 named "&fSharp Knife" to player + give 3 snowball named "&fBlindness Balls" to player + give 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" to player + give potion of poison named "&fJump Potion" to player + set {ingame.%player%} to true + +on consume: + item is potion of poison named "&fJump Potion": + cancel event + remove potion of poison from player + give glass bottle named "&fEmpty Jump Potion Bottle" to player + remove jump from player + apply jump 5 to player for 10 seconds + wait 10 seconds + remove jump from player + apply jump 2 to player for 999 days + diff --git a/Obam-Mini Games/Obam-KitPvp/skelemancer.sk b/Obam-Mini Games/Obam-KitPvp/skelemancer.sk new file mode 100644 index 0000000..b863a7a --- /dev/null +++ b/Obam-Mini Games/Obam-KitPvp/skelemancer.sk @@ -0,0 +1,93 @@ +on teleport: + wait 3 ticks + player's world is "vacant" + + + {kit.%player%} is "skelemancer": + {ingame.%player%} is not set + equip player with all leather armor of unbreaking 10 named "&fSkelemancer's Robes" + dye player's helmet (124, 2, 205) + dye player's chestplate (124, 2, 205) + dye player's leggings (124, 2, 205) + dye player's boots (124, 2, 205) + give player bone of knockback 1 named "&fSummoning Bone" with lore "&aInstructions:|| ||&5Right Click:||&3Summon a mob at||&3targeted location|| ||&5Left Click:||&3Call back your summoned||&3Mobs." + give player bow of infinity 1 and punch 1 named "&fSummoner's Sidekick" + give player 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" + give player 1 arrow + apply speed 1 to player for 999 days + set player's level progress to 0.99 + set {ingame.%player%} to true + +on right click with a bone: + {kit.%player%} is "skelemancer": + targeted block is glass: + cancel event + level progress of player is greater than or equal to 0.3: + {skeleton.%player%.active} is greater than or equal to 5: + send "&cYou have too many Skeletons!" to player + stop + spawn a wither skeleton at block above targeted block + set {_skeleton.%player%} to spawned wither skeleton + equip {_skeleton.%player%} with leather helmet + set {_skeleton.%player%}'s tool to stone sword + set name of spawned wither skeleton to "&cNecroSpawn" + set {_loc} to block 20 meters above player + spawn 1 of large explode data 1 offset with 0, 0, 0 at {_loc} + make player damage player by 2 + + apply speed 3 to spawned wither skeleton for 999 days + send "&aYou Summon the dead!" to player + set {owner.skeleton.%spawned wither skeleton%} to player + {skeleton.%player%.active} is not set: + set {skeleton.%player%.active} to 0 + add 1 to {skeleton.%player%.active} + reduce player's level progress by 0.3 + +on left click with bone: + + {kit.%player%} is "skelemancer": + {skeleton.%player%.active} is not set: + send "&cYou have no Skeletons out!" to player + stop + {skeleton.%player%.active} is 0: + send "&cYou have no Skeletons out!" to player + stop + level progress of player is greater than or equal to {skeleton.%player%.active} / 10: + loop all wither skeletons: + {owner.skeleton.%loop-entity%} is player: + delete loop-entity + make player damage player by {skeleton.%player%.active} + reduce player's level progress by {skeleton.%player%.active} / 10 + clear {skeleton.%player%.active} + send "&aYou call back the dead!" to player + + + +on damage of a player: + attacker is a wither skeleton: + cancel event + set {_player} to {owner.skeleton.%attacker%} + + {kit.%victim%} is not set: + stop + {kit.%{_player}%} is not set: + stop + make {_player} damage victim by 2 + +on death of a wither skeleton: + clear drops + + +on damage of a wither skeleton: + {kit.%attacker%} is not set: + send "&cYou can not do that!" to attacker + cancel event + stop + damage is greater than victim's health + cancel event + set {_player} to {owner.skeleton.%victim%} + make attacker damage {_player} by 2 + send "&c%attacker% has slain your spawn!" to {_player} + subtract 1 from {skeleton.%{_player}%.active} + send "&a%{_player}%'s spawn has died to your hand." to attacker + delete victim \ No newline at end of file diff --git a/Obam-Mini Games/Obam-KitPvp/tank.sk b/Obam-Mini Games/Obam-KitPvp/tank.sk new file mode 100644 index 0000000..e06ea66 --- /dev/null +++ b/Obam-Mini Games/Obam-KitPvp/tank.sk @@ -0,0 +1,22 @@ +on teleport: + wait 3 ticks + player's world is "vacant" + + + + {kit.%player%} is "tank": + {ingame.%player%} is not set + clear player's inventory + equip player with all leather armor of unbreaking 10 named "&fArmor of Density" + dye player's helmet (255, 255, 0) + dye player's chestplate (255, 255, 0) + dye player's leggings (255, 255, 0) + dye player's boots (255, 255, 0) + give player wood shovel of knockback 1 and unbreaking 10 named "&fTank's Paddle" + give player 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" + apply slowness 1 to player for 999 days + apply health boost 3 to player for 999 days + give player 5 snowballs named "&fDisabling Bombs" + heal player by 10 hearts + set {ingame.%player%} to true + diff --git a/Obam-Testing/tma.sk b/Obam-Mini Games/Obam-TMA/TMA-Testing/tma.sk similarity index 100% rename from Obam-Testing/tma.sk rename to Obam-Mini Games/Obam-TMA/TMA-Testing/tma.sk diff --git a/Obam-Mini Games/Obam-Taco/taco.sk b/Obam-Mini Games/Obam-Taco/taco.sk new file mode 100644 index 0000000..0af5ee1 --- /dev/null +++ b/Obam-Mini Games/Obam-Taco/taco.sk @@ -0,0 +1,1879 @@ +#Kell's Taco Cart Mini Game + +# To Do: +# legendary quest line +# Hub signs +# top players +# single player +# zombie taco + +#startfold info + +#Variables: +# {taco.variables::*} = controls all item and villager timers +# {taco.timers.%player%::*} = controls food timers +# {taco.player.%world%::*} = stores current players 1 & 2 +# {keystone.%world%} = World Keystone +# {taco.waypoint.%world%::*} = waypoints +# {taco.p1.spawns.%world%::*} = stores Player 1 customer spawns +# {taco.p2.spawns.%world%::*} = stores Player 1 customer spawns +# {taco.villager.name::*} = stores villager names as value, index is random number +# {taco.receipt1::*} = stores ingredients per type +# {taco.p1.customer.%world%::*} = stores Player 1 customer names +# {taco.p2.customer.%world%::*} = stores Player 1 customer names +# {taco.p1.order.%world%::*} = stores Player 1 customer orders +# {taco.p2.order.%world%::*} = stores Player 1 customer orders +# {taco.p1.signs.%world%::*} = stores Player 1 sign locations +# {taco.p2.signs.%world%::*} = stores Player 2 sign locations +# {taco.start.%world%::*} = stores Start Sign locations +# {taco.1.gate1.%world%::*} = stores Player 1 Gate 1 locations +# {taco.2.gate1.%world%::*} = stores Player 2 Gate 1 locations +# {taco.1.gate2.%world%::*} = stores Player 1 Gate 2 locations +# {taco.2.gate2.%world%::*} = stores Player 2 Gate 2 locations +# farmer = 120 +# priest = 105 +# butcher = 90 +# blacksmith = 75 +# librarian = 60 +# {taco.%player%.score.%world%} = Stores Player score +# {taco.level::*} = stores dissipating spawn time variables based on player level +# {taco.timeout::*} = stores customer angry leave messages +# {taco.correct::*} = stores customer correct turn in messages +# {taco.incorrect::*} = stores customer incorrect turn in messages +# {taco.pinky::*} = stores Pinky messages from Cletus +# {taco.horsey::*} = stores Horse click messages from Cletus + +#Related Files: +# boards.sk = for scoreboard functions +# keystone.sk = for keystone command +# legend-sky = legendary quest skript for sky block +# legend-front = legendary quest skript for Fronts + +#endfold + +#startfold setup + +aliases: + grain = 296 + soft shell = 148 + hard shell = 147 + whole tomato = 260 + diced tomato = 372 + block of cheese = 19 + shredded cheese = 351:14 + raw onion = 332 + diced onion = 361 + head of lettuce = 351:2 + shredded lettuce = 295 + rancid meat = 367 + +options: + receipt1: paper named "&3Taco Receipt" with lore "&6Soft Shelled Taco||&6+ Chicken||&6+ Cheese||&6+ Lettuce||&6+ Onion" + receipt2: paper named "&3Taco Receipt" with lore "&6Soft Shelled Taco||&6+ Chicken||&6+ Cheese||&6+ Lettuce||&6+ Tomato" + receipt3: paper named "&3Taco Receipt" with lore "&6Soft Shelled Taco||&6+ Chicken||&6+ Cheese||&6+ Onion||&6+ Tomato" + receipt4: paper named "&3Taco Receipt" with lore "&6Soft Shelled Taco||&6+ Chicken||&6+ Lettuce||&6+ Onion||&6+ Tomato" + receipt5: paper named "&3Taco Receipt" with lore "&6Soft Shelled Taco||&6+ Beef||&6+ Cheese||&6+ Lettuce||&6+ Onion" + receipt6: paper named "&3Taco Receipt" with lore "&6Soft Shelled Taco||&6+ Beef||&6+ Cheese||&6+ Lettuce||&6+ Tomato" + receipt7: paper named "&3Taco Receipt" with lore "&6Soft Shelled Taco||&6+ Beef||&6+ Cheese||&6+ Onion||&6+ Tomato" + receipt8: paper named "&3Taco Receipt" with lore "&6Soft Shelled Taco||&6+ Beef||&6+ Lettuce||&6+ Onion||&6+ Tomato" + receipt9: paper named "&3Taco Receipt" with lore "&6Soft Shelled Taco||&6+ Fish||&6+ Cheese||&6+ Lettuce||&6+ Onion" + receipt10: paper named "&3Taco Receipt" with lore "&6Soft Shelled Taco||&6+ Fish||&6+ Cheese||&6+ Lettuce||&6+ Tomato" + receipt11: paper named "&3Taco Receipt" with lore "&6Soft Shelled Taco||&6+ Fish||&6+ Cheese||&6+ Onion||&6+ Tomato" + receipt12: paper named "&3Taco Receipt" with lore "&6Soft Shelled Taco||&6+ Fish||&6+ Lettuce||&6+ Onion||&6+ Tomato" + receipt13: paper named "&3Taco Receipt" with lore "&6Hard Shelled Taco||&6+ Chicken||&6+ Cheese||&6+ Lettuce||&6+ Onion" + receipt14: paper named "&3Taco Receipt" with lore "&6Hard Shelled Taco||&6+ Chicken||&6+ Cheese||&6+ Lettuce||&6+ Tomato" + receipt15: paper named "&3Taco Receipt" with lore "&6Hard Shelled Taco||&6+ Chicken||&6+ Cheese||&6+ Onion||&6+ Tomato" + receipt16: paper named "&3Taco Receipt" with lore "&6Hard Shelled Taco||&6+ Chicken||&6+ Lettuce||&6+ Onion||&6+ Tomato" + receipt17: paper named "&3Taco Receipt" with lore "&6Hard Shelled Taco||&6+ Beef||&6+ Cheese||&6+ Lettuce||&6+ Onion" + receipt18: paper named "&3Taco Receipt" with lore "&6Hard Shelled Taco||&6+ Beef||&6+ Cheese||&6+ Lettuce||&6+ Tomato" + receipt19: paper named "&3Taco Receipt" with lore "&6Hard Shelled Taco||&6+ Beef||&6+ Cheese||&6+ Onion||&6+ Tomato" + receipt20: paper named "&3Taco Receipt" with lore "&6Hard Shelled Taco||&6+ Beef||&6+ Lettuce||&6+ Onion||&6+ Tomato" + receipt21: paper named "&3Taco Receipt" with lore "&6Hard Shelled Taco||&6+ Fish||&6+ Cheese||&6+ Lettuce||&6+ Onion" + receipt22: paper named "&3Taco Receipt" with lore "&6Hard Shelled Taco||&6+ Fish||&6+ Cheese||&6+ Lettuce||&6+ Tomato" + receipt23: paper named "&3Taco Receipt" with lore "&6Hard Shelled Taco||&6+ Fish||&6+ Cheese||&6+ Onion||&6+ Tomato" + receipt24: paper named "&3Taco Receipt" with lore "&6Hard Shelled Taco||&6+ Fish||&6+ Lettuce||&6+ Onion||&6+ Tomato" + #clue1: give player book from "&9&lSkyblock General Info;&eOBAM Minigames;&fThis book contains Information about||&fSkyblock General Info on OBAM!;§cWhat Is Skyblock?§r §0Skyblock is a survival experience that is based on completing challenges and building a base. You begin on a small floating island in the sky with a chest that contains only the bare minimum to get started.§r||§cGetting Started §r §0Using the two blocks of ice, you'll want to create an infinite water source. Then, using water and your one lava bucket, create a cobblestone generator and start expanding from there!§r||§cBe Careful! §r §0Falling off or dying early on with your starter items could result in their loss and require an island reset. You get 2 free resets. After that, it is §r§22,000 Tickets§r §0per reset.§r" + #clue2: liabrary book in its place, give book about Kells and the almight taco god + #clue3 sign engraved on back with "Please watch over Cletus" from Kells + clue4: pink wool named "&a&b&k&a&3Silk Lining" with lore "&6This looks like it could be from the||&3fabled &a&b&k&a&3Sombrero of Plenty&3.||&3You should find a black market shop." + +#endfold + +#startfold recipes + +on script load: + register new shaped recipe for {@receipt1} using shredded cheese, shredded lettuce, diced onion, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt1} using shredded cheese, diced onion, shredded lettuce, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt1} using diced onion, shredded cheese, shredded lettuce, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt1} using diced onion, shredded lettuce, shredded cheese, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt1} using shredded lettuce, diced onion, shredded cheese, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt1} using shredded lettuce, shredded cheese, diced onion, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt2} using shredded cheese, shredded lettuce, diced tomato, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt2} using shredded cheese, diced tomato, shredded lettuce, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt2} using diced tomato, shredded cheese, shredded lettuce, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt2} using diced tomato, shredded lettuce, shredded cheese, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt2} using shredded lettuce, diced tomato, shredded cheese, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt2} using shredded lettuce, shredded cheese, diced tomato, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt3} using shredded cheese, diced onion, diced tomato, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt3} using shredded cheese, diced tomato, diced onion, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt3} using diced tomato, shredded cheese, diced onion, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt3} using diced tomato, diced onion, shredded cheese, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt3} using diced onion, diced tomato, shredded cheese, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt3} using diced onion, shredded cheese, diced tomato, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt4} using shredded lettuce, diced onion, diced tomato, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt4} using shredded lettuce, diced tomato, diced onion, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt4} using diced tomato, shredded lettuce, diced onion, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt4} using diced tomato, diced onion, shredded lettuce, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt4} using diced onion, diced tomato, shredded lettuce, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt4} using diced onion, shredded lettuce, diced tomato, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt5} using shredded cheese, shredded lettuce, diced onion, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt5} using shredded cheese, diced onion, shredded lettuce, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt5} using diced onion, shredded cheese, shredded lettuce, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt5} using diced onion, shredded lettuce, shredded cheese, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt5} using shredded lettuce, diced onion, shredded cheese, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt5} using shredded lettuce, shredded cheese, diced onion, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt6} using shredded cheese, shredded lettuce, diced tomato, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt6} using shredded cheese, diced tomato, shredded lettuce, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt6} using diced tomato, shredded cheese, shredded lettuce, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt6} using diced tomato, shredded lettuce, shredded cheese, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt6} using shredded lettuce, diced tomato, shredded cheese, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt6} using shredded lettuce, shredded cheese, diced tomato, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt7} using shredded cheese, diced onion, diced tomato, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt7} using shredded cheese, diced tomato, diced onion, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt7} using diced tomato, shredded cheese, diced onion, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt7} using diced tomato, diced onion, shredded cheese, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt7} using diced onion, diced tomato, shredded cheese, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt7} using diced onion, shredded cheese, diced tomato, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt8} using shredded lettuce, diced onion, diced tomato, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt8} using shredded lettuce, diced tomato, diced onion, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt8} using diced tomato, shredded lettuce, diced onion, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt8} using diced tomato, diced onion, shredded lettuce, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt8} using diced onion, diced tomato, shredded lettuce, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt8} using diced onion, shredded lettuce, diced tomato, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt9} using shredded cheese, shredded lettuce, diced onion, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt9} using shredded cheese, diced onion, shredded lettuce, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt9} using diced onion, shredded cheese, shredded lettuce, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt9} using diced onion, shredded lettuce, shredded cheese, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt9} using shredded lettuce, diced onion, shredded cheese, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt9} using shredded lettuce, shredded cheese, diced onion, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt10} using shredded cheese, shredded lettuce, diced tomato, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt10} using shredded cheese, diced tomato, shredded lettuce, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt10} using diced tomato, shredded cheese, shredded lettuce, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt10} using diced tomato, shredded lettuce, shredded cheese, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt10} using shredded lettuce, diced tomato, shredded cheese, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt10} using shredded lettuce, shredded cheese, diced tomato, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt11} using shredded cheese, diced onion, diced tomato, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt11} using shredded cheese, diced tomato, diced onion, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt11} using diced tomato, shredded cheese, diced onion, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt11} using diced tomato, diced onion, shredded cheese, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt11} using diced onion, diced tomato, shredded cheese, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt11} using diced onion, shredded cheese, diced tomato, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt12} using shredded lettuce, diced onion, diced tomato, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt12} using shredded lettuce, diced tomato, diced onion, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt12} using diced tomato, shredded lettuce, diced onion, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt12} using diced tomato, diced onion, shredded lettuce, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt12} using diced onion, diced tomato, shredded lettuce, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt12} using diced onion, shredded lettuce, diced tomato, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt13} using shredded cheese, shredded lettuce, diced onion, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt13} using shredded cheese, diced onion, shredded lettuce, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt13} using diced onion, shredded cheese, shredded lettuce, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt13} using diced onion, shredded lettuce, shredded cheese, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt13} using shredded lettuce, diced onion, shredded cheese, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt13} using shredded lettuce, shredded cheese, diced onion, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt14} using shredded cheese, shredded lettuce, diced tomato, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt14} using shredded cheese, diced tomato, shredded lettuce, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt14} using diced tomato, shredded cheese, shredded lettuce, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt14} using diced tomato, shredded lettuce, shredded cheese, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt14} using shredded lettuce, diced tomato, shredded cheese, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt14} using shredded lettuce, shredded cheese, diced tomato, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt15} using shredded cheese, diced onion, diced tomato, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt15} using shredded cheese, diced tomato, diced onion, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt15} using diced tomato, shredded cheese, diced onion, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt15} using diced tomato, diced onion, shredded cheese, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt15} using diced onion, diced tomato, shredded cheese, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt15} using diced onion, shredded cheese, diced tomato, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt16} using shredded lettuce, diced onion, diced tomato, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt16} using shredded lettuce, diced tomato, diced onion, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt16} using diced tomato, shredded lettuce, diced onion, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt16} using diced tomato, diced onion, shredded lettuce, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt16} using diced onion, diced tomato, shredded lettuce, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt16} using diced onion, shredded lettuce, diced tomato, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt17} using shredded cheese, shredded lettuce, diced onion, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt17} using shredded cheese, diced onion, shredded lettuce, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt17} using diced onion, shredded cheese, shredded lettuce, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt17} using diced onion, shredded lettuce, shredded cheese, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt17} using shredded lettuce, diced onion, shredded cheese, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt17} using shredded lettuce, shredded cheese, diced onion, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt18} using shredded cheese, shredded lettuce, diced tomato, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt18} using shredded cheese, diced tomato, shredded lettuce, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt18} using diced tomato, shredded cheese, shredded lettuce, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt18} using diced tomato, shredded lettuce, shredded cheese, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt18} using shredded lettuce, diced tomato, shredded cheese, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt18} using shredded lettuce, shredded cheese, diced tomato, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt19} using shredded cheese, diced onion, diced tomato, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt19} using shredded cheese, diced tomato, diced onion, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt19} using diced tomato, shredded cheese, diced onion, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt19} using diced tomato, diced onion, shredded cheese, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt19} using diced onion, diced tomato, shredded cheese, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt19} using diced onion, shredded cheese, diced tomato, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt20} using shredded lettuce, diced onion, diced tomato, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt20} using shredded lettuce, diced tomato, diced onion, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt20} using diced tomato, shredded lettuce, diced onion, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt20} using diced tomato, diced onion, shredded lettuce, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt20} using diced onion, diced tomato, shredded lettuce, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt20} using diced onion, shredded lettuce, diced tomato, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt21} using shredded cheese, shredded lettuce, diced onion, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt21} using shredded cheese, diced onion, shredded lettuce, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt21} using diced onion, shredded cheese, shredded lettuce, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt21} using diced onion, shredded lettuce, shredded cheese, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt21} using shredded lettuce, diced onion, shredded cheese, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt21} using shredded lettuce, shredded cheese, diced onion, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt22} using shredded cheese, shredded lettuce, diced tomato, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt22} using shredded cheese, diced tomato, shredded lettuce, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt22} using diced tomato, shredded cheese, shredded lettuce, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt22} using diced tomato, shredded lettuce, shredded cheese, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt22} using shredded lettuce, diced tomato, shredded cheese, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt22} using shredded lettuce, shredded cheese, diced tomato, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt23} using shredded cheese, diced onion, diced tomato, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt23} using shredded cheese, diced tomato, diced onion, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt23} using diced tomato, shredded cheese, diced onion, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt23} using diced tomato, diced onion, shredded cheese, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt23} using diced onion, diced tomato, shredded cheese, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt23} using diced onion, shredded cheese, diced tomato, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt24} using shredded lettuce, diced onion, diced tomato, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt24} using shredded lettuce, diced tomato, diced onion, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt24} using diced tomato, shredded lettuce, diced onion, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt24} using diced tomato, diced onion, shredded lettuce, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt24} using diced onion, diced tomato, shredded lettuce, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt24} using diced onion, shredded lettuce, diced tomato, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + +#endfold + +#startfold on events + +on join: + set player's level to 0 + set player's level progress to 0 + add 20 to player's hunger + +on hunger meter change: + cancel event + +on damage of a player: + attacker is a witch: + cancel event + projectile is a raw onion: + cancel event + send "Nice shot!" to attacker + victim's tool is air: + set {_vtime} to "%{taco.variables::slow.time}% seconds" parsed as timespan + apply slowness 8 to victim for {_vtime} + apply nausea to victim for 999 seconds + send "&cYou just got knocked out by %attacker%!" to victim + stop + delete victim's tool + apply nausea to victim for 999 seconds + send "&c%attacker% just knocked the stuff out of your hands!" to victim + stop + cancel event + +on rightclick on villager: + cancel event + player's tool is paper: + set {_receipt} to player's tool + {_receipt} is set: + loop {taco.player.%world%::*}: + player is loop-value: + set {_p.num} to loop-index + exit loop + {_p.num} is set: + set {_loc} to location of block below villager + loop {taco.p%{_p.num}%.spawns.%world%::*}: + {_loc} is loop-value: + set {_c.num} to loop-index + exit loop + {_c.num} is set: + set {_match} to false + {_receipt} is {taco.%{taco.p%{_p.num}%.order.%world%::%{_c.num}%}%::6}: + set {_match} to true + increase the level progress of player by 0.05 + add 1 to {taco.%{taco.player.%world%::%{_p.num}%}%.score.%world%} + set {_ran} to random integer between 1 and 5 + send "&9%{taco.p%{_p.num}%.customer.%world%::%{_c.num}%}%:&f %{taco.correct::%{_ran}%}%" to {taco.player.%world%::%{_p.num}%} + clear {taco.p1.order.%world%::%{_slot}%} + remove player's tool from player + delete villager + {_match} is false: + set {_ran} to random integer between 1 and 6 + send "&9%{taco.p%{_p.num}%.customer.%world%::%{_c.num}%}%:&f %{taco.correct::%{_ran}%}%" to {taco.player.%world%::%{_p.num}%} + remove player's tool from player + delete villager + +on damage of villager: + cancel event + projectile is a raw onion: + send "Nailed them!" to attacker + set {_loc} to location of block below victim + loop {taco.p1.spawns.%world%::*}: + {_loc} is loop-value: + set {_p.num} to 1 + set {_c.num} to loop-index + exit loop + loop {taco.p2.spawns.%world%::*}: + {_loc} is loop-value: + set {_p.num} to 2 + set {_c.num} to loop-index + exit loop + {_p.num} is set: + {_c.num} is set: + set {_vtime} to "%{taco.variables::villager_hit.time}% seconds" parsed as timespan + subtract {_vtime} from {taco.p%{_p.num}%.customer.timer.%world%::%{_c.num}%} + set {_ran} to random integer between 1 and 5 + send "&9%{taco.p%{_p.num}%.customer.%world%::%{_c.num}%}%:&f %{taco.villager_hit::%{_ran}%}%" to {taco.player.%world%::*} + +on damage of sheep: + cancel event + +on sheep eat: + cancel event + +on sheep dye: + cancel event + message "Nope 2" + +on vehicle enter: + cancel event + +on right click on horse: + cancel event + set {_ran} to random integer between 1 and 5 + message "&9Cletus:&f %{taco.horsey::%{_ran}%}%" + +on right click on donkey: + cancel event + message "&9Cletus:&f That'll do Donkey, that'll do." + +on place: + player is not op + cancel event + +on break: + player is not op + cancel event + +on pickup: + item is rancid meat: + cancel event + +on xp spawn: + cancel event + +on drop: + item is not rancid meat: + cancel event + +on rightclick on item frame: + cancel event + +on damage of item frame: + cancel event + +on damage of a silverfish: + kill victim + +on target: + creature is a witch: + target is a player: + cancel event + +on rightclick on a stone button: + cancel event + player has grain: + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::soft_shell}: + remove 1 grain from player + give player {taco.variables::soft_shell.amount} of soft shell named "Soft Taco Shell" + set {taco.timers.%player%::soft_shell} to now + set {_vtime} to "%{taco.variables::soft_shell.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::soft_shell} + stop + message "&cYou must wait a little longer to use the &6Soft Shell Press&c!" + stop + message "&cYou need some &6Grain&c to use this equipment!" + +on rightclick on a hopper: + cancel event + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::grain}: + give player {taco.variables::grain.amount} of grain named "Grain" + set {taco.timers.%player%::grain} to now + set {_vtime} to "%{taco.variables::grain.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::grain} + stop + message "&cYou must wait a little longer to use the &6Grain Dispenser&c!" + +on rightclick on a wooden button: + cancel event + player has grain: + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::hard_shell}: + remove 1 grain from player + give player {taco.variables::hard_shell.amount} of hard shell named "Hard Taco Shell" + set {taco.timers.%player%::hard_shell} to now + set {_vtime} to "%{taco.variables::hard_shell.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::hard_shell} + stop + message "&cYou must wait a little longer to use the &6Hard Shell Press&c!" + stop + message "&cYou need some &6Grain&c to use this equipment!" + +on rightclick on daylight sensor: + player has whole tomato: + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::diced_tomato}: + remove 1 whole tomato from player + give player {taco.variables::diced_tomato.amount} of diced tomato named "Diced Tomato" + set {taco.timers.%player%::diced_tomato} to now + set {_vtime} to "%{taco.variables::diced_tomato.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::diced_tomato} + stop + message "&cYou must wait a little longer to use the &6Tomato Dicer&c!" + stop + message "&cYou need a &6Whole Tomato&c to use this equipment!" + +on rightclick on a chest: + cancel event + "%player's world%" is "tacohub": + stop + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::block_of_cheese}: + give player {taco.variables::block_of_cheese.amount} of block of cheese named "Block of Cheese" + set {taco.timers.%player%::block_of_cheese} to now + set {_vtime} to "%{taco.variables::block_of_cheese.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::block_of_cheese} + stop + message "&cYou must wait a little longer to open the &6Cheese Cooler&c!" + +on rightclick on an oxeye daisy: + cancel event + "%player's world%" is "tacohub": + {taco.timers.%player%::raw_onion} is not set: + set {taco.timers.%player%::raw_onion} to now + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::raw_onion}: + give player {taco.variables::raw_onion.amount} of raw onion named "Raw Onion" + set {taco.timers.%player%::raw_onion} to now + set {_vtime} to "%{taco.variables::raw_onion.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::raw_onion} + stop + message "&cYou must wait a little longer to harvest from the &6Onion Garden&c!" + +on rightclick on a dispenser: + cancel event + player has raw beef: + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::steak}: + remove 1 raw beef from player + give player {taco.variables::steak.amount} of steak named "Spicy Beef" + set {taco.timers.%player%::steak} to now + set {_vtime} to "%{taco.variables::steak.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::steak} + clear {taco.timers.%player%::rancid_meat} + stop + message "&cYou must wait a little longer to use the &6Steak-a-nator 5000&c!" + stop + message "&cYou need some &6Raw Beef&c to use this equipment!" + +on rightclick on a furnace: + cancel event + player has raw fish: + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::cooked_fish}: + remove 1 raw fish from player + give player {taco.variables::cooked_fish.amount} of cooked fish named "Fish Sticks" + set {taco.timers.%player%::cooked_fish} to now + set {_vtime} to "%{taco.variables::cooked_fish.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::cooked_fish} + clear {taco.timers.%player%::rancid_fish} + stop + message "&cYou must wait a little longer to use the &6Fish-O-Matic&c!" + stop + message "&cYou need some &6Raw Fish&c to use this equipment!" + +on rightclick on a dropper: + cancel event + player has raw chicken: + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::cooked_chicken}: + remove 1 raw chicken from player + give player {taco.variables::cooked_chicken.amount} of cooked chicken named "Spicy Chicken" + set {taco.timers.%player%::cooked_chicken} to now + set {_vtime} to "%{taco.variables::cooked_chicken.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::cooked_chicken} + clear {taco.timers.%player%::rancid_chicken} + stop + message "&cYou must wait a little longer to use the &6Clucker-Cooker&c!" + stop + message "&cYou need some &6Raw Chicken&c to use this equipment!" + +on rightclick on a lever: + cancel event + player has head of lettuce: + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::shredded_lettuce}: + remove 1 head of lettuce from player + give player {taco.variables::shredded_lettuce.amount} of shredded lettuce named "Shredded Lettuce" + set {taco.timers.%player%::shredded lettuce} to now + set {_vtime} to "%{taco.variables::shredded_lettuce.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::shredded_lettuce} + stop + message "&cYou must wait a little longer to use the &6Lettuce Shredder&c!" + stop + message "&cYou need a &6Head of Lettuce&c to use this equipment!" + +on rightclick on a tripwire hook: + cancel event + player has raw onion: + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::diced_onion}: + remove 1 raw onion from player + give player {taco.variables::diced_onion.amount} of diced onion named "Diced Onion" + set {taco.timers.%player%::diced_onion} to now + set {_vtime} to "%{taco.variables::diced_onion.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::diced_onion} + stop + message "&cYou must wait a little longer to use the &6Onion Chopper&c!" + stop + message "&cYou need a &6Raw Onion&c to use this equipment!" + +on rightclick on an iron door: + cancel event + "%player's world%" is "tacohub": + stop + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::raw_chicken}: + give player {taco.variables::raw_chicken.amount} of raw chicken named "Raw Chicken" + set {taco.timers.%player%::raw_chicken} to now + set {_vtime} to "%{taco.variables::raw_chicken.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::raw_chicken} + set {taco.timers.%player%::rancid_chicken} to now + stop + message "&cYou must wait a little longer to open the &6Chicken Freezer&c!" + +on rightclick on a wooden door: + cancel event + "%player's world%" is "tacohub": + stop + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::raw_beef}: + give player {taco.variables::raw_beef.amount} of raw beef named "Raw Beef" + set {taco.timers.%player%::raw_beef} to now + set {_vtime} to "%{taco.variables::raw_beef.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::raw_beef} + set {taco.timers.%player%::rancid_meat} to now + stop + message "&cYou must wait a little longer to open the &6Beef Freezer&c!" + +on rightclick on ice: + cancel event + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::raw_fish}: + give player {taco.variables::raw_fish.amount} of raw fish named "Raw Fish" + set {taco.timers.%player%::raw_fish} to now + set {_vtime} to "%{taco.variables::raw_fish.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::raw_fish} + set {taco.timers.%player%::rancid_fish} to now + stop + message "&cYou must wait a little longer to get in the &6Fish Freezer&c!" + +on rightclick on mob head block:1: + cancel event + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::head_of_lettuce}: + give player {taco.variables::head_of_lettuce.amount} of head of lettuce named "Head of Lettuce" + set {taco.timers.%player%::head_of_lettuce} to now + set {_vtime} to "%{taco.variables::head_of_lettuce.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::head_of_lettuce} + stop + message "&cYou must wait a little longer to pick from the &6Lettuce Garden&c!" + +on rightclick on a jukebox: + cancel event + player has block of cheese: + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::shredded_cheese}: + remove 1 block of cheese from player + give player {taco.variables::shredded_cheese.amount} of shredded cheese named "Shredded Cheese" + set {taco.timers.%player%::shredded_cheese} to now + set {_vtime} to "%{taco.variables::shredded_cheese.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::shredded_cheese} + stop + message "&cYou must wait a little longer to use the &6Cheese Shredder&c!" + stop + message "&cYou need a &6Block of Cheese&c to use this equipment!" + +on rightclick on an ender chest: + cancel event + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::whole_tomato}: + give player {taco.variables::whole_tomato.amount} of whole tomato named "Whole Tomato" + set {taco.timers.%player%::whole_tomato} to now + set {_vtime} to "%{taco.variables::whole_tomato.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::whole_tomato} + stop + message "&cYou must wait a little longer to get in the &6Tomato Bin&c!" + +on rightclick on a sheep: + cancel event + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::sheep}: + chance of 2%: + {legendary.progress.%player%::3} is true: + message "&6Hmmmm, could this be?" + give player {@clue4} + set {legendary.progress.%player%::4} to true + set {taco.timers.%player%::sheep} to now + set {_vtime} to "%{taco.variables::sheep.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::sheep} + stop + +on rightclick on a cauldron: + cancel event + player has nausea: + remove nausea from player + remove slowness from player + message "You are healed child!" + +on right click on sign: + line 1 of block is "Click here": + set {_count} to 0 + loop entities in radius 3 of block: + loop-entity is a player: + add loop-entity to {_who::*} + add 1 to {_count} + {_count} is greater than 1: + send "Only one player per side." to {_who::*} + stop + {_count} is 1: + set {_loc} to location of block + loop {taco.start.%world%::*}: + loop-value is {_loc}: + set {_slot} to loop-index + set {taco.readycheck.%world%::%{_slot}%} to player + set line 1 of block to "Now waiting on" + set line 2 of block to "your opponent" + set line 3 of block to "to click their" + set line 4 of block to "Ready Sign" + loop {taco.%{_slot}%.gate2.%world%::*}: + set {_change} to loop-value-2 + {_slot} is "1": + set block 2 meters above {_change} to nether fence + {_slot} is "2": + set block 2 meters above {_change} to fence + stop + line 1 of block is "Now waiting on": + set {_loc} to location of block + loop {taco.start.%world%::*}: + loop-value is {_loc}: + set {_slot} to loop-index + clear {taco.readycheck.%world%::%{_slot}%} + set line 1 of block to "Click here" + set line 2 of block to "to claim the" + {_slot} is "1": + set line 3 of block to "Nether" + {_slot} is "2": + set line 3 of block to "Wooden" + set line 4 of block to "Taco Shack" + loop {taco.%{_slot}%.gate2.%world%::*}: + set {_change} to loop-value-2 + set block 2 meters above {_change} to air + + +#endfold + +#startfold periodic + +#WORLD SPECIFIC +every 60 seconds: + loop all entities in world "tacohub": + set {_ran} to random integer between 1 and 5 + loop-entity is a villager: + loop players in radius 25 of loop-entity: + send "&9Cletus:&f %{taco.pinky::%{_ran}%}%" to loop-player + +#Order Signs +every 1 second: + loop {taco.list.worlds::*}: + set {_world} to loop-index-1 + {taco.game.status.%{_world}%} is true: + loop {taco.player.%{_world}%::*}: + set {_p.num} to loop-index-2 + loop {taco.p%{_p.num}%.signs.%{_world}%::*}: + set {_next} to false + set {_sign} to block at location of loop-value-3 + set {_slot} to loop-index-3 + set {_timecheck} to now + set {_ttm} to {taco.p%{_p.num}%.customer.timer.%{_world}%::%{_slot}%} + subtract 20 seconds from {_ttm} + set {_ing1} to {taco.%{taco.p%{_p.num}%.order.%{_world}%::%{_slot}%}%::1} + set {_ing2} to {taco.%{taco.p%{_p.num}%.order.%{_world}%::%{_slot}%}%::2} + set {_ing3} to {taco.%{taco.p%{_p.num}%.order.%{_world}%::%{_slot}%}%::3} + set {_ing4} to {taco.%{taco.p%{_p.num}%.order.%{_world}%::%{_slot}%}%::4} + set {_ing5} to {taco.%{taco.p%{_p.num}%.order.%{_world}%::%{_slot}%}%::5} + {_timecheck} is greater than {_ttm}: + set line 1 of {_sign} to "&4%{_ing1}% %{_ing2}%" + set line 2 of {_sign} to "&4%{_ing3}%" + set line 3 of {_sign} to "&4%{_ing4}%" + set line 4 of {_sign} to "&4%{_ing5}%" + set {_next} to true + {_timecheck} is greater than {taco.p%{_p.num}%.customer.timer.%{_world}%::%{_slot}%}: + set line 1 of {_sign} to "&4----------" + set line 2 of {_sign} to "&4----------" + set line 3 of {_sign} to "&4----------" + set line 4 of {_sign} to "&4----------" + set {_next} to true + {_next} is false: + set line 1 of {_sign} to "%{_ing1}% %{_ing2}%" + set line 2 of {_sign} to "%{_ing3}%" + set line 3 of {_sign} to "%{_ing4}%" + set line 4 of {_sign} to "%{_ing5}%" + +#Customer Despawn +every 1 second: + loop {taco.list.worlds::*}: + set {_world} to loop-index-1 + {taco.game.status.%{_world}%} is true: + loop {taco.player.%{_world}%::*}: + set {_p.num} to loop-index-2 + loop {taco.p%{_p.num}%.customer.timer.%{_world}%::*}: + set {_ran} to random integer between 1 and 10 + set {_slot} to loop-index-3 + set {_timecheck} to now + {_timecheck} is greater than {taco.p%{_p.num}%.customer.timer.%{_world}%::%{_slot}%}: + loop entities in radius 2 around block at {taco.p%{_p.num}%.spawns.%{_world}%::%{_slot}%}: + loop-entity is a villager: + send "&9%{taco.p%{_p.num}%.customer.%{_world}%::%{_slot}%}%:&f %{taco.timeout::%{_ran}%}%" to {taco.player.%{_world}%::%{_p.num}%} + delete loop-entity + +#Scoreboards +every 1 second: + loop {taco.list.worlds::*}: + set {_world} to loop-index-1 + loop {taco.player.%{_world}%::*}: + set {_player} to loop-value-2 + {taco.game.status.%{_world}%} is true: + {toggle.sb.%{_player}%} is not set: + set {toggle.sb.%{_player}%} to true + {toggle.sb.%{_player}%} is false: + set {toggle.sb.%{_player}%} to true + {toggle.sb.%{_player}%} is true: + {board.up.%{_player}%.tc} is not set: + set {board.up.%{_player}%.tc} to false + {board.up.%{_player}%.tc} is true: + {taco.player.%{_world}%::1} is "%{_player}%": + make score "&aYou:" in board of {_player} to {taco.%{_player}%.score.%{_world}%} + make score "&cThem:" in board of {_player} to {taco.%{taco.player.%{_world}%::2}%.score.%{_world}%} + {taco.player.%{_world}%::2} is "%{_player}%": + make score "&aYou:" in board of {_player} to {taco.%{_player}%.score.%{_world}%} + make score "&cThem:" in board of {_player} to {taco.%{taco.player.%{_world}%::1}%.score.%{_world}%} + {board.up.%{_player}%.tc} is false: + {taco.player.%{_world}%::1} is "%{_player}%": + display board named "&9&lTaco Cart" to {_player} + make score "&aYou:" in board of {_player} to {taco.%{_player}%.score.%{_world}%} + make score "&cThem:" in board of {_player} to {taco.%{taco.player.%{_world}%::2}%.score.%{_world}%} + move display of {_player} to sidebar + {taco.player.%{_world}%::2} is "%{_player}%": + display board named "&9&lTaco Cart" to {_player} + make score "&aYou:" in board of {_player} to {taco.%{_player}%.score.%{_world}%} + make score "&cThem:" in board of {_player} to {taco.%{taco.player.%{_world}%::1}%.score.%{_world}%} + move display of {_player} to sidebar + {taco.game.status.%{_world}%} is false: + display board named "" to {_player} + move display of {_player} to sidebar + +#End Game +every 1 second: + loop {taco.list.worlds::*}: + set {_world} to loop-index-1 + set {_tc} to now + {taco.game.status.%{_world}%} is true: + {_tc} is greater than {taco.game.timer.%{_world}%}: + clear {_p1} + clear {_p2} + set {taco.game.status.%{_world}%} to false + send "Times up!" to {taco.player.%{_world}%::*} + set {_p1} to {taco.player.%{_world}%::1} + set {_p2} to {taco.player.%{_world}%::2} + set {_p1score} to {taco.%{_p1}%.score.%{_world}%} + set {_p2score} to {taco.%{_p2}%.score.%{_world}%} + {_p1score} is greater than {_p2score}: + set {_winner} to 3 * {_p1score} + add {_winner} to {_p1}'s balance + send "&aYou have won &e%{_winner}% Tickets&a!" to {_p1} + send "&aYou now have &e%{_p1}'s balance%" to {_p1} + log "%{_p1}%^ADD^%{_winner}%^%{_p1}'s balance%^Winner Prize" to "tickets/tacocart.log" + add {_p2score} to {_p2}'s balance + send "&aYou have won &e%{_p2score}% Tickets&a!" to {_p2} + send "&aYou now have &e%{_p2}'s balance%" to {_p2} + log "%{_p2}%^ADD^%{_p2score}%^%{_p2}'s balance%^Loser Prize" to "tickets/tacocart.log" + {_p2score} is greater than {_p1score}: + set {_winner} to 3 * {_p2score} + add {_winner} to {_p2}'s balance + send "&aYou have won &e%{_winner}% Tickets&a!" to {_p2} + send "&aYou now have &e%{_p2}'s balance%" to {_p2} + log "%{_p2}%^ADD^%{_winner}%^%{_p2}'s balance%^Winner Prize" to "tickets/tacocart.log" + add {_p1score} to {_p1}'s balance + send "&aYou have won &e%{_p1score}% Tickets&a!" to {_p1} + send "&aYou now have &e%{_p1}'s balance%" to {_p1} + log "%{_p1}%^ADD^%{_p1score}%^%{_p1}'s balance%^Loser Prize" to "tickets/tacocart.log" + {_p1score} is equal to {_p2score}: + set {_winner} to 2 * {_p1score} + add {_winner} to {_p1}'s balance + send "&aYou have won &e%{_winner}% Tickets&a!" to {_p1} + send "&aYou now have &e%{_p1}'s balance%" to {_p1} + log "%{_p1}%^ADD^%{_winner}%^%{_p1}'s balance%^Tie Prize" to "tickets/tacocart.log" + set {_winner} to 2 * {_p2score} + add {_winner} to {_p2}'s balance + send "&aYou have won &e%{_winner}% Tickets&a!" to {_p2} + send "&aYou now have &e%{_p2}'s balance%" to {_p2} + log "%{_p2}%^ADD^%{_winner}%^%{_p2}'s balance%^Tie Prize" to "tickets/tacocart.log" + loop {taco.1.gate1.%{_world}%::*}: + set {_change} to loop-value-2 + set block 2 meters above {_change} to nether fence + loop {taco.2.gate1.%{_world}%::*}: + set {_change} to loop-value-2 + set block 2 meters above {_change} to fence + loop {taco.player.%{_world}%::*}: + set {board.up.%loop-value-2%.tc} to false + display board named "" to loop-value-2 + clear {taco.p1.customer.timer.%{_world}%::*} + clear {taco.p2.customer.timer.%{_world}%::*} + clear {taco.p1.customer.%{_world}%::*} + clear {taco.p2.customer.%{_world}%::*} + set {taco.%{taco.player.%{_world}%::1}%.score.%{_world}%} to 0 + set {taco.%{taco.player.%{_world}%::2}%.score.%{_world}%} to 0 + clear {taco.player.%{_world}%::*} + loop all entities in {_p1}'s world: + loop-entity is a dropped item: + delete loop-entity + loop-entity is a villager: + delete loop-entity + loop-entity is a sheep: + delete loop-entity + clear inventory of {_p1} + clear {taco.timers.%{_p1}%::*} + set {taco.timers.%{_p1}%::raw_onion} to now + clear inventory of {_p2} + clear {taco.timers.%{_p2}%::*} + set {taco.timers.%{_p2}%::raw_onion} to now + set {_p1}'s level to 0 + set {_p1}'s level progress to 0 + set {_p2}'s level to 0 + set {_p2}'s level progress to 0 + loop {taco.start.%{_world}%::*}: + set {_loc} to loop-value-2 + set {_slot} to loop-index-2 + set {_block} to block at {_loc} + set line 1 of {_block} to "Click here" + set line 2 of {_block} to "to claim the" + {_slot} is "1": + set line 3 of {_block} to "Nether" + {_slot} is "2": + set line 3 of {_block} to "Wooden" + set line 4 of {_block} to "Taco Shack" + loop {taco.%{_slot}%.gate2.%{_world}%::*}: + set {_change} to loop-value-3 + set block 2 meters above {_change} to air + send "&cTeleporting in &E5&c seconds" to {_p1} + send "&cTeleporting in &E5&c seconds" to {_p2} + wait 5 seconds + send "&cNow Teleporting" to {_p1} + send "&cNow Teleporting" to {_p2} + wait 0.3 seconds + teleport {_p1} to {spawn.taco} + teleport {_p2} to {spawn.taco} + +#BOH +every 5 seconds: + loop {taco.list.worlds::*}: + set {_world} to loop-index-1 + {taco.game.status.%{_world}%} is true: + loop {taco.player.%{_world}%::*}: + set {_p.num} to loop-index-2 + loop all entities in radius 10 around block at {taco.waypoint.%{_world}%::p%{_p.num}%kitchen}: + loop-entity is a silverfish: + add 1 to {_silver} + loop-entity is player: + add loop-entity to {_players::*} + {_silver} is greater than 20: + loop all entities in radius 10 around block at {taco.waypoint.%{_world}%::p%{_p.num}%kitchen}: + loop-entity is a silverfish: + delete loop-entity + loop-entity is rancid meat: + delete loop-entity + spawn witch 3 meters above location of {taco.waypoint.%{_world}%::p%{_p.num}%kitchen} + set name of spawned witch to "&cBoard of Health" + set the walk speed of the spawned witch to 0.1 + message "&cBoard of Health:&f Health inspection, mind if I have a look around?" to {_players::*} + loop all blocks in radius 10 of {taco.waypoint.%{_world}%::p%{_p.num}%kitchen}: + loop-block is daylight sensor: + set {_go} to location 2 meter above loop-block + make spawned witch home towards {_go} + exit loop + wait 2 seconds + message "&cBoard of Health:&f Hmmm, what's this? A dirty tomato dicer?" to {_players::*} + wait 2 seconds + loop all blocks in radius 10 of {taco.waypoint.%{_world}%::p%{_p.num}%kitchen}: + loop-block is cauldron: + set {_go} to location 2 meter above loop-block + make spawned witch home towards {_go} + exit loop + wait 2 seconds + message "&cBoard of Health:&f Oh my, when was the last time this sink has been cleaned?" to {_players::*} + wait 2 seconds + loop all blocks in radius 10 of {taco.waypoint.%{_world}%::p%{_p.num}%kitchen}: + loop-block is jukebox: + set {_go} to location 2 meter above loop-block + make spawned witch home towards {_go} + exit loop + wait 2 seconds + message "&cBoard of Health:&f Are these mice droppings behind your cheese shredder?" to {_players::*} + wait 2 seconds + set {_go} to location 2 meter above location at {taco.waypoint.%{_world}%::p%{_p.num}%kitchen} + make spawned witch home towards {_go} + wait 2 seconds + message "&cBoard of Health:&f This is just deplorable. I'm going to have to cite you!" to {_players::*} + wait 2 seconds + message "&cBoard of Health:&f I'll take these with me!" to {_players::*} + clear inventory of {taco.player.%{_world}%::%{_p.num}%} + loop all entities in radius 15 around block at {taco.waypoint.%{_world}%::p%{_p.num}%kitchen}: + loop-entity is a villager: + delete loop-entity + loop-entity is a dropped item: + delete loop-entity + loop-entity is a witch: + delete loop-entity + +#Rancid Meat +every 5 seconds: + loop {taco.list.worlds::*}: + set {_world} to loop-index-1 + loop {taco.player.%{_world}%::*}: + set {_player} to loop-value-2 + {taco.game.status.%{_world}%} is true: + {taco.timers.%{_player}%::rancid_meat} is set: + set {_rancid.drop} to difference between {taco.timers.%{_player}%::rancid_meat} and now + {_rancid.drop} is greater than 30 seconds: + remove 1 raw beef from {_player} + drop 1 rancid meat named "Rancid Meat" at location of {_player} + send "Ohhh, what stinks in here?" to {_player} + clear {taco.timers.%{_player}%::rancid_meat} + {taco.timers.%{_player}%::rancid_chicken} is set: + set {_rancid.drop} to difference between {taco.timers.%{_player}%::rancid_chicken} and now + {_rancid.drop} is greater than 30 seconds: + remove 1 raw chicken from {_player} + drop 1 rancid meat named "Rancid Meat" at location of {_player} + send "Ohhh, what stinks in here?" to {_player} + clear {taco.timers.%{_player}%::rancid_chicken} + {taco.timers.%{_player}%::rancid_fish} is set: + set {_rancid.drop} to difference between {taco.timers.%{_player}%::rancid_fish} and now + {_rancid.drop} is greater than 30 seconds: + remove 1 raw fish from {_player} + drop 1 rancid meat named "Rancid Meat" at location of {_player} + send "Ohhh, what stinks in here?" to {_player} + clear {taco.timers.%{_player}%::rancid_fish} + +#Start Game +every 6 seconds: + loop {taco.list.worlds::*}: + set {_world} to loop-index-1 + {taco.game.status.%{_world}%} is not set: + set {taco.game.status.%{_world}%} to false + {taco.game.status.%{_world}%} is false: + set {_count} to 0 + loop {taco.readycheck.%{_world}%::*}: + set {_slot} to loop-index-2 + {_slot} is set: + add 1 to {_count} + {_count} is greater than 1: + loop {taco.readycheck.%{_world}%::*}: + set {_slot2} to loop-index-2 + set {taco.player.%{_world}%::%{_slot2}%} to loop-value-2 + send "Game starts in 5 seconds." to {taco.player.%{_world}%::*} + wait 1 second + send "4" to {taco.player.%{_world}%::*} + wait 1 second + send "3" to {taco.player.%{_world}%::*} + wait 1 second + send "2" to {taco.player.%{_world}%::*} + wait 1 second + send "1" to {taco.player.%{_world}%::*} + wait 1 second + send "It has begun!" to {taco.player.%{_world}%::*} + set {taco.game.timer.%{_world}%} to now + set {_vtime} to "%{taco.variables::game_minutes.time}% minutes" parsed as timespan + add {_vtime} to {taco.game.timer.%{_world}%} + set {taco.game.status.%{_world}%} to true + loop {taco.player.%{_world}%::*}: + set {_player} to loop-value-2 + clear inventory of {_player} + clear {taco.timers.%{_player}%::*} + set {taco.%{_player}%.score.%{_world}%} to 0 + set {taco.timers.%{_player}%::grain} to now + set {taco.timers.%{_player}%::soft_shell} to now + set {taco.timers.%{_player}%::hard_shell} to now + set {taco.timers.%{_player}%::whole_tomato} to now + set {taco.timers.%{_player}%::diced_tomato} to now + set {taco.timers.%{_player}%::block_of_cheese} to now + set {taco.timers.%{_player}%::shredded_cheese} to now + set {taco.timers.%{_player}%::raw_onion} to now + set {taco.timers.%{_player}%::diced_onion} to now + set {taco.timers.%{_player}%::head_of_lettuce} to now + set {taco.timers.%{_player}%::shredded_lettuce} to now + set {taco.timers.%{_player}%::raw_fish} to now + set {taco.timers.%{_player}%::cooked_fish} to now + set {taco.timers.%{_player}%::raw_chicken} to now + set {taco.timers.%{_player}%::cooked_chicken} to now + set {taco.timers.%{_player}%::raw_beef} to now + set {taco.timers.%{_player}%::steak} to now + set {taco.timers.%{_player}%::sheep} to now + loop {taco.1.gate1.%{_world}%::*}: + set {_change} to loop-value-2 + set block 2 meters above {_change} to air + loop {taco.2.gate1.%{_world}%::*}: + set {_change} to loop-value-2 + set block 2 meters above {_change} to air + spawn sheep 2 meter above {keystone.%{_world}%} + set name of spawned sheep to "&dPinky" + clear {taco.readycheck.%{_world}%::*} + +#Customer Spawning +every 10 seconds: + loop {taco.list.worlds::*}: + set {_world} to loop-index-1 + {taco.game.status.%{_world}%} is true: + loop {taco.player.%{_world}%::*}: + send "Looping Players" to {debug.list::*} + set {_p.num} to loop-index-2 + send "P-Num is %{_p.num}%" to {debug.list::*} + wait 0.5 seconds + set {_level} to level of {taco.player.%{_world}%::%{_p.num}%} + loop {taco.p%{_p.num}%.spawns.%{_world}%::*}: + send "Looping Player %{_p.num}% Spawn Points" to {debug.list::*} + set {_spawned} to false + set {_villager.check} to false + set {_place} to loop-value-3 + set {_slot} to loop-index-3 + loop entities in radius 2 around block at {_place}: + loop-entity is a villager: + set {_villager.check} to true + {_villager.check} is false: + set {_spawned} to true + set {_ran} to random integer between 1 and 30 + spawn villager 1 meter above {_place} + set {_name} to {taco.villager.name::%{_ran}%} + set name of spawned villager to "%{_name}%" + set {taco.p%{_p.num}%.customer.%{_world}%::%{_slot}%} to "%{_name}%" + set {_order} to random integer between 1 and 24 + set {_order2} to "receipt%{_order}%" + set {taco.p%{_p.num}%.order.%{_world}%::%{_slot}%} to "%{_order2}%" + send "&9%{_name}%:&f Hey buddy, can I get a %{taco.%{taco.p%{_p.num}%.order.%{_world}%::%{_slot}%}%::1}% %{taco.%{taco.p%{_p.num}%.order.%{_world}%::%{_slot}%}%::2}% taco with %{taco.%{taco.p%{_p.num}%.order.%{_world}%::%{_slot}%}%::3}%, %{taco.%{taco.p%{_p.num}%.order.%{_world}%::%{_slot}%}%::4}% & %{taco.%{taco.p%{_p.num}%.order.%{_world}%::%{_slot}%}%::5}% please." to {taco.player.%{_world}%::%{_p.num}%} + spawned villager is of type farmer: + set {taco.p%{_p.num}%.customer.timer.%{_world}%::%{_slot}%} to now + set {_mult} to {taco.variables::farmer.time} * {taco.level::%{_level}%} + set {_timeset} to "%{_mult}% seconds" parsed as timespan + add {_timeset} to {taco.p%{_p.num}%.customer.timer.%{_world}%::%{_slot}%} + spawned villager is of type priest: + set {taco.p%{_p.num}%.customer.timer.%{_world}%::%{_slot}%} to now + set {_mult} to {taco.variables::priest.time} * {taco.level::%{_level}%} + set {_timeset} to "%{_mult}% seconds" parsed as timespan + add {_timeset} to {taco.p%{_p.num}%.customer.timer.%{_world}%::%{_slot}%} + spawned villager is of type butcher: + set {taco.p%{_p.num}%.customer.timer.%{_world}%::%{_slot}%} to now + set {_mult} to {taco.variables::butcher.time} * {taco.level::%{_level}%} + set {_timeset} to "%{_mult}% seconds" parsed as timespan + add {_timeset} to {taco.p%{_p.num}%.customer.timer.%{_world}%::%{_slot}%} + spawned villager is of type blacksmith: + set {taco.p%{_p.num}%.customer.timer.%{_world}%::%{_slot}%} to now + set {_mult} to {taco.variables::blacksmith.time} * {taco.level::%{_level}%} + set {_timeset} to "%{_mult}% seconds" parsed as timespan + add {_timeset} to {taco.p%{_p.num}%.customer.timer.%{_world}%::%{_slot}%} + spawned villager is of type librarian: + set {taco.p%{_p.num}%.customer.timer.%{_world}%::%{_slot}%} to now + set {_mult} to {taco.variables::librarian.time} * {taco.level::%{_level}%} + set {_timeset} to "%{_mult}% seconds" parsed as timespan + add {_timeset} to {taco.p%{_p.num}%.customer.timer.%{_world}%::%{_slot}%} + +#Roach spawn +every 30 seconds: + loop {taco.list.worlds::*}: + set {_world} to loop-index-1 + {taco.game.status.%{_world}%} is true: + loop {taco.player.%{_world}%::*}: + set {_p.num} to loop-index-2 + set {_count} to 0 + loop all entities in radius 10 around block at {taco.waypoint.%{_world}%::p%{_p.num}%kitchen}: + loop-entity is a dropped item: + add 1 to {_count} + set {_meat.spawn::%{_count}%} to location of loop-entity + delete loop-entity + loop-entity is player: + add loop-entity to {_players::*} + loop {_meat.spawn::*}: + set {_where} to loop-value-3 + drop rancid meat at {_where} + loop {_count} times: + spawn silverfish 2 meters above location of {taco.waypoint.%{_world}%::p%{_p.num}%kitchen} + set name of spawned silverfish to "Roach" + {_count} is 1: + send "Oh nooooo, a roach!" to {_players::*} + {_count} is greater than 1: + send "Oh nooooo, %{_count}% roaches!" to {_players::*} + clear {_players::*} + clear {__meat.spawn::*} + +#endfold periodic + +#startfold commands + +command /tacovariables [] [] []: + aliases: tv + permission: obam.admin + trigger: + argument 1 is not set: + message "&cOptions are: list, add, change, delete" + stop + argument 1 is "help" or "h": + message "&cOptions are: list, add, change, delete" + stop + argument 1 is "list" or "l": + set {_index.count} to 0 + set {_count} to 0 + loop {taco.variables::*}: + add 1 to {_index.count} + set {_tpages} to round up ({_index.count} / 10) + argument 2 is not set: + set {_page} to 1 + {_page} is not set: + set {_page} to argument 2 parsed as number + {_page} is greater than {_tpages}: + message "&cNot a valid page. There are currently &f%{_tpages}%&c available." + stop + set {_stop} to {_page} * 10 + set {_start} to {_stop} - 9 + message "&3Current Taco Timers &fPage %{_page}% / %{_tpages}%" + loop {taco.variables::*}: + add 1 to {_count} + {_count} is {_start}: + set {_report} to true + {_report} is true: + message "&f%{_count}% - &6%loop-index% &f- &6%loop-value%" + {_count} is {_index.count}: + message "&3End of List" + stop + {_count} is {_stop}: + stop + argument 1 is "add" or "a": + argument 2 is not set: + message "&cAdd what?" + stop + {taco.variables::%argument 2%} is set: + message "&6%argument 2%&c is already set to &6%{taco.variables::%argument 2%}%&c. Try changing it." + stop + argument 3 is not set: + message "&cAnd what is &6%argument 2%&c supposed to be set to?" + stop + set {taco.variables::%argument 2%} to argument 3 + message "&cYou have set &6%argument 2%&c to be set to &6%argument 3%&c?" + stop + argument 1 is "change" or "c": + argument 2 is not set: + message "&cChange what?" + stop + {taco.variables::%argument 2%} is not set: + message "&6%argument 2%&c does not have a timer yet. Please set one first." + stop + argument 3 is not set: + message "&cYou are changing &6%argument 2%&c from &6%{taco.variables::%argument 2%}%&c to what?" + stop + set {_old} to {taco.variables::%argument 2%} + set {taco.variables::%argument 2%} to argument 3 + message "&cYou have changed &6%argument 2%&c from &6%{_old}%&c to &6%{taco.variables::%argument 2%}%&c." + stop + argument 1 is "delete" or "d": + argument 2 is not set: + message "&cDelete what?" + {taco.variables::%argument 2%} is not set: + message "&6%argument 2%&c does not exist. Please check your spelling and retry." + stop + delete {taco.variables::%argument 2%} + message "&cYou have deleted &6%argument 2%&c." + +#subfold Tacoset + +command /tacoset: + permission: obam.admin + trigger: + set {taco.villager.name::1} to "Bob" + set {taco.villager.name::2} to "Shawna" + set {taco.villager.name::3} to "Anakin" + set {taco.villager.name::4} to "Aralynn" + set {taco.villager.name::5} to "Dalton" + set {taco.villager.name::6} to "Jeremy" + set {taco.villager.name::7} to "Jack" + set {taco.villager.name::8} to "Troy" + set {taco.villager.name::9} to "Joe" + set {taco.villager.name::10} to "Justin" + set {taco.villager.name::11} to "Jim" + set {taco.villager.name::12} to "Kelly" + set {taco.villager.name::13} to "Katherine" + set {taco.villager.name::14} to "Stevo" + set {taco.villager.name::15} to "Cornelius" + set {taco.villager.name::16} to "Patrick" + set {taco.villager.name::17} to "Ian" + set {taco.villager.name::18} to "Olivia" + set {taco.villager.name::19} to "Donna" + set {taco.villager.name::20} to "Jarod" + set {taco.villager.name::21} to "Sue" + set {taco.villager.name::22} to "Nick" + set {taco.villager.name::23} to "Bill" + set {taco.villager.name::24} to "Connie" + set {taco.villager.name::25} to "Irene" + set {taco.villager.name::26} to "Scott" + set {taco.villager.name::27} to "Earl" + set {taco.villager.name::28} to "Roy" + set {taco.villager.name::29} to "Precious" + set {taco.villager.name::30} to "Jenkins" + set {taco.receipt1::1} to "Soft" + set {taco.receipt1::2} to "Chicken" + set {taco.receipt1::3} to "Cheese" + set {taco.receipt1::4} to "Lettuce" + set {taco.receipt1::5} to "Onion" + set {taco.receipt1::6} to {@receipt1} + set {taco.receipt2::1} to "Soft" + set {taco.receipt2::2} to "Chicken" + set {taco.receipt2::3} to "Cheese" + set {taco.receipt2::4} to "Lettuce" + set {taco.receipt2::5} to "Tomato" + set {taco.receipt2::6} to {@receipt2} + set {taco.receipt3::1} to "Soft" + set {taco.receipt3::2} to "Chicken" + set {taco.receipt3::3} to "Cheese" + set {taco.receipt3::4} to "Onion" + set {taco.receipt3::5} to "Tomato" + set {taco.receipt3::6} to {@receipt3} + set {taco.receipt4::1} to "Soft" + set {taco.receipt4::2} to "Chicken" + set {taco.receipt4::3} to "Lettuce" + set {taco.receipt4::4} to "Onion" + set {taco.receipt4::5} to "Tomato" + set {taco.receipt4::6} to {@receipt4} + set {taco.receipt5::1} to "Soft" + set {taco.receipt5::2} to "Beef" + set {taco.receipt5::3} to "Cheese" + set {taco.receipt5::4} to "Lettuce" + set {taco.receipt5::5} to "Onion" + set {taco.receipt5::6} to {@receipt5} + set {taco.receipt6::1} to "Soft" + set {taco.receipt6::2} to "Beef" + set {taco.receipt6::3} to "Cheese" + set {taco.receipt6::4} to "Lettuce" + set {taco.receipt6::5} to "Tomato" + set {taco.receipt6::6} to {@receipt6} + set {taco.receipt7::1} to "Soft" + set {taco.receipt7::2} to "Beef" + set {taco.receipt7::3} to "Cheese" + set {taco.receipt7::4} to "Onion" + set {taco.receipt7::5} to "Tomato" + set {taco.receipt7::6} to {@receipt7} + set {taco.receipt8::1} to "Soft" + set {taco.receipt8::2} to "Beef" + set {taco.receipt8::3} to "Lettuce" + set {taco.receipt8::4} to "Onion" + set {taco.receipt8::5} to "Tomato" + set {taco.receipt8::6} to {@receipt8} + set {taco.receipt9::1} to "Soft" + set {taco.receipt9::2} to "Fish" + set {taco.receipt9::3} to "Cheese" + set {taco.receipt9::4} to "Lettuce" + set {taco.receipt9::5} to "Onion" + set {taco.receipt9::6} to {@receipt9} + set {taco.receipt10::1} to "Soft" + set {taco.receipt10::2} to "Fish" + set {taco.receipt10::3} to "Cheese" + set {taco.receipt10::4} to "Lettuce" + set {taco.receipt10::5} to "Tomato" + set {taco.receipt10::6} to {@receipt10} + set {taco.receipt11::1} to "Soft" + set {taco.receipt11::2} to "Fish" + set {taco.receipt11::3} to "Cheese" + set {taco.receipt11::4} to "Onion" + set {taco.receipt11::5} to "Tomato" + set {taco.receipt11::6} to {@receipt11} + set {taco.receipt12::1} to "Soft" + set {taco.receipt12::2} to "Fish" + set {taco.receipt12::3} to "Lettuce" + set {taco.receipt12::4} to "Onion" + set {taco.receipt12::5} to "Tomato" + set {taco.receipt12::6} to {@receipt12} + set {taco.receipt13::1} to "Hard" + set {taco.receipt13::2} to "Chicken" + set {taco.receipt13::3} to "Cheese" + set {taco.receipt13::4} to "Lettuce" + set {taco.receipt13::5} to "Onion" + set {taco.receipt13::6} to {@receipt13} + set {taco.receipt14::1} to "Hard" + set {taco.receipt14::2} to "Chicken" + set {taco.receipt14::3} to "Cheese" + set {taco.receipt14::4} to "Lettuce" + set {taco.receipt14::5} to "Tomato" + set {taco.receipt14::6} to {@receipt14} + set {taco.receipt15::1} to "Hard" + set {taco.receipt15::2} to "Chicken" + set {taco.receipt15::3} to "Cheese" + set {taco.receipt15::4} to "Onion" + set {taco.receipt15::5} to "Tomato" + set {taco.receipt15::6} to {@receipt15} + set {taco.receipt16::1} to "Hard" + set {taco.receipt16::2} to "Chicken" + set {taco.receipt16::3} to "Lettuce" + set {taco.receipt16::4} to "Onion" + set {taco.receipt16::5} to "Tomato" + set {taco.receipt16::6} to {@receipt16} + set {taco.receipt17::1} to "Hard" + set {taco.receipt17::2} to "Beef" + set {taco.receipt17::3} to "Cheese" + set {taco.receipt17::4} to "Lettuce" + set {taco.receipt17::5} to "Onion" + set {taco.receipt17::6} to {@receipt17} + set {taco.receipt18::1} to "Hard" + set {taco.receipt18::2} to "Beef" + set {taco.receipt18::3} to "Cheese" + set {taco.receipt18::4} to "Lettuce" + set {taco.receipt18::5} to "Tomato" + set {taco.receipt18::6} to {@receipt18} + set {taco.receipt19::1} to "Hard" + set {taco.receipt19::2} to "Beef" + set {taco.receipt19::3} to "Cheese" + set {taco.receipt19::4} to "Onion" + set {taco.receipt19::5} to "Tomato" + set {taco.receipt19::6} to {@receipt19} + set {taco.receipt20::1} to "Hard" + set {taco.receipt20::2} to "Beef" + set {taco.receipt20::3} to "Lettuce" + set {taco.receipt20::4} to "Onion" + set {taco.receipt20::5} to "Tomato" + set {taco.receipt20::6} to {@receipt20} + set {taco.receipt21::1} to "Hard" + set {taco.receipt21::2} to "Fish" + set {taco.receipt21::3} to "Cheese" + set {taco.receipt21::4} to "Lettuce" + set {taco.receipt21::5} to "Onion" + set {taco.receipt21::6} to {@receipt21} + set {taco.receipt22::1} to "Hard" + set {taco.receipt22::2} to "Fish" + set {taco.receipt22::3} to "Cheese" + set {taco.receipt22::4} to "Lettuce" + set {taco.receipt22::5} to "Tomato" + set {taco.receipt22::6} to {@receipt22} + set {taco.receipt23::1} to "Hard" + set {taco.receipt23::2} to "Fish" + set {taco.receipt23::3} to "Cheese" + set {taco.receipt23::4} to "Onion" + set {taco.receipt23::5} to "Tomato" + set {taco.receipt23::6} to {@receipt23} + set {taco.receipt24::1} to "Hard" + set {taco.receipt24::2} to "Fish" + set {taco.receipt24::3} to "Lettuce" + set {taco.receipt24::4} to "Onion" + set {taco.receipt24::5} to "Tomato" + set {taco.receipt24::6} to {@receipt24} + set {taco.level::0} to 1 + set {taco.level::1} to 0.95 + set {taco.level::2} to 0.9 + set {taco.level::3} to 0.85 + set {taco.level::4} to 0.8 + set {taco.level::5} to 0.75 + set {taco.level::6} to 0.7 + set {taco.level::7} to 0.65 + set {taco.level::8} to 0.6 + set {taco.level::9} to 0.55 + set {taco.level::10} to 0.5 + set {taco.level::11} to 0.45 + set {taco.level::12} to 0.4 + set {taco.level::13} to 0.35 + set {taco.level::14} to 0.30 + set {taco.level::15} to 0.25 + set {taco.level::16} to 0.2 + set {taco.level::17} to 0.15 + set {taco.level::18} to 0.1 + set {taco.level::19} to 0.05 + set {taco.timeout::1} to "This is taking way to long. I'm out!" + set {taco.timeout::2} to "I should have went to Taco Smell. Later!" + set {taco.timeout::3} to "I've seen slimes move faster than that. Peace!" + set {taco.timeout::4} to "What has two thumbs and is sick of waiting? This guy." + set {taco.timeout::5} to "Oh, I guess I'm not as important as that guy. I'm not sticking around any longer." + set {taco.timeout::6} to "What is this, Snail Cart?" + set {taco.timeout::7} to "Roaches are one thing, but waiting this long? No thanks!" + set {taco.timeout::8} to "God, it's worse than waiting for Half-Life 3! I'm outta here!" + set {taco.timeout::9} to "Ummm, my work just called. Yeah that's it, work. Gotta run." + set {taco.timeout::10} to "I guess the rumours were right. I'm not waiting this long again." + set {taco.pinky::1} to "Where has that sheep ran off to this time?" + set {taco.pinky::2} to "Pinky, oh Pinky! Dinner time." + set {taco.pinky::3} to "Excuse me, have you seen my sheep around?" + set {taco.pinky::4} to "When I find that sheep......" + set {taco.pinky::5} to "Oh where is it? Pinky must have taken off with it again." + set {taco.horsey::1} to "Dang kids, get off my horse!" + set {taco.horsey::2} to "Mess with the horse and get the hoof, son!" + set {taco.horsey::3} to "No" + set {taco.horsey::4} to "Why don't you go fondle someone else's critters." + set {taco.horsey::5} to "If you're gonna just stand around, might as well pick up a shovel. This ain't no pettin zoo." + set {taco.correct::1} to "Wow, that tastes amazing!" + set {taco.correct::2} to "Thanks buddy, that hit the spot!" + set {taco.correct::3} to "Nom Nom Nom... Ohhhh God, that's good!" + set {taco.correct::4} to "Yummy, I could eat three more of those!" + set {taco.correct::5} to "Definitely liking this place on Fadbook!" + set {taco.incorrect::1} to "That is not what I ordered. I am leaving!" + set {taco.incorrect::2} to "Seriously, how hard is it to make a taco!" + set {taco.incorrect::3} to "My blind Grandma makes me what I want, why can't you?" + set {taco.incorrect::4} to "But... Wha...It's...I give up." + set {taco.incorrect::5} to "Is this cat food or something?" + set {taco.incorrect::6} to "Remember that time you got my order right? That was awesome!" + set {taco.villager_hit::1} to "Hey, who threw that?" + set {taco.villager_hit::2} to "Watch it, buddy!" + set {taco.villager_hit::3} to "Really, are we in kindergarten?" + set {taco.villager_hit::4} to "Stop it, that really hurts!" + set {taco.villager_hit::5} to "Umphhh! Whaa, why is dog and bugs now then Frank?" + message "All set" + +command /setvariables: + permission: obam.admin + trigger: + set {taco.variables::slow.time} to 3 + set {taco.variables::villager_hit.time} to 10 + set {taco.variables::soft_shell.amount} to 1 + set {taco.variables::soft_shell.time} to 10 + set {taco.variables::grain.amount} to 2 + set {taco.variables::grain.time} to 10 + set {taco.variables::hard_shell.amount} to 1 + set {taco.variables::hard_shell.time} to 10 + set {taco.variables::diced_tomato.amount} to 1 + set {taco.variables::diced_tomato.time} to 10 + set {taco.variables::block_of_cheese.amount} to 1 + set {taco.variables::block_of_cheese.time} to 10 + set {taco.variables::raw_onion.amount} to 1 + set {taco.variables::raw_onion.time} to 10 + set {taco.variables::steak.amount} to 1 + set {taco.variables::steak.time} to 10 + set {taco.variables::cooked_fish.amount} to 1 + set {taco.variables::cooked_fish.time} to 10 + set {taco.variables::cooked_chicken.amount} to 1 + set {taco.variables::cooked_chicken.time} to 10 + set {taco.variables::shredded_lettuce.amount} to 1 + set {taco.variables::shredded_lettuce.time} to 10 + set {taco.variables::diced_onion.amount} to 1 + set {taco.variables::diced_onion.time} to 10 + set {taco.variables::raw_chicken.amount} to 1 + set {taco.variables::raw_chicken.time} to 10 + set {taco.variables::raw_beef.amount} to 1 + set {taco.variables::raw_beef.time} to 10 + set {taco.variables::raw_fish.amount} to 1 + set {taco.variables::raw_fish.time} to 10 + set {taco.variables::head_of_lettuce.amount} to 1 + set {taco.variables::head_of_lettuce.time} to 10 + set {taco.variables::shredded_cheese.amount} to 1 + set {taco.variables::shredded_cheese.time} to 10 + set {taco.variables::whole_tomato.amount} to 1 + set {taco.variables::whole_tomato.time} to 10 + set {taco.variables::sheep.time} to 10 + set {taco.variables::game_minutes.time} to 10 + set {taco.variables::farmer.time} to 120 + set {taco.variables::priest.time} to 105 + set {taco.variables::butcher.time} to 90 + set {taco.variables::blacksmith.time} to 75 + set {taco.variables::librarian.time} to 60 + message "Set the things." + +#subfold Keystone + +command /keystone []: + permission: obam.admin + trigger: + argument 1 is not set: + message "Current Keystone World Types" + message "Type : Command" + message "----------------------" + message "TacoCart : taco" + argument 1 is "taco": + "%player's world%" contains "Taco": + delete {keystone.%world%} + delete {taco.waypoint.%world%::*} + delete {taco.p1.spawns.%world%::*} + delete {taco.p1.spawns.%world%::*} + delete {taco.p1.signs.%world%::*} + delete {taco.p2.signs.%world%::*} + loop blocks in radius 10 of player: + loop-block is obsidian: + set {keystone.%world%} to location of loop-block + set {_loop1} to 1 + message "Keystone has been set to %{keystone.%world%}%" + exit loop + {_loop1} is not set: + message "No Keystone was found" + stop + loop blocks in radius 10 of {keystone.%world%}: + loop-block is cyan wool: + set {taco.waypoint.%world%::p1c1} to location of loop-block + set {taco.p1.spawns.%world%::1} to location of loop-block + set {_loop2} to 1 + message "Player 1 Customer 1 set" + exit loop + {_loop2} is not set: + message "Could not locate Player 1 Customer 1" + stop + loop blocks in radius 10 of {taco.waypoint.%world%::p1c1}: + loop-block is white wool: + set {taco.waypoint.%world%::p1c2} to location of loop-block + set {taco.p1.spawns.%world%::2} to location of loop-block + set {_loop3} to 1 + message "Player 1 Customer 2 set" + exit loop + {_loop3} is not set: + message "Could not locate Player 1 Customer 2" + stop + loop blocks in radius 10 of {taco.waypoint.%world%::p1c2}: + loop-block is red wool: + set {taco.waypoint.%world%::p1c3} to location of loop-block + set {taco.p1.spawns.%world%::3} to location of loop-block + set {_loop4} to 1 + message "Player 1 Customer 3 set" + exit loop + {_loop4} is not set: + message "Could not locate Player 1 Customer 3" + stop + loop blocks in radius 10 of {taco.waypoint.%world%::p1c2}: + loop-block is quartz ore: + set {taco.waypoint.%world%::p1kitchen} to location of loop-block + set {_loop5} to 1 + message "Player 1 Kitchen set" + exit loop + {_loop5} is not set: + message "Could not locate Player 1 Kitchen" + stop + loop blocks in radius 5 of {taco.waypoint.%world%::p1kitchen}: + loop-block is workbench: + set {taco.waypoint.%world%::p1bench} to location of loop-block + set {_loop20} to 1 + message "Player 1 Bench set" + exit loop + {_loop20} is not set: + message "Could not locate Player 1 Bench" + stop + loop blocks in radius 10 of {keystone.%world%}: + loop-block is light green wool: + set {taco.waypoint.%world%::p2c1} to location of loop-block + set {taco.p2.spawns.%world%::1} to location of loop-block + set {_loop6} to 1 + message "Player 2 Customer 1 set" + exit loop + {_loop6} is not set: + message "Could not locate Player 2 Customer 1" + stop + loop blocks in radius 10 of {taco.waypoint.%world%::p2c1}: + loop-block is black wool: + set {taco.waypoint.%world%::p2c2} to location of loop-block + set {taco.p2.spawns.%world%::2} to location of loop-block + set {_loop7} to 1 + message "Player 2 Customer 2 set" + exit loop + {_loop7} is not set: + message "Could not locate Player 2 Customer 2" + stop + loop blocks in radius 10 of {taco.waypoint.%world%::p2c2}: + loop-block is orange wool: + set {taco.waypoint.%world%::p2c3} to location of loop-block + set {taco.p2.spawns.%world%::3} to location of loop-block + set {_loop8} to 1 + message "Player 2 Customer 3 set" + exit loop + {_loop8} is not set: + message "Could not locate Player 2 Customer 3" + stop + loop blocks in radius 10 of {taco.waypoint.%world%::p2c2}: + loop-block is quartz ore: + set {taco.waypoint.%world%::p2kitchen} to location of loop-block + set {_loop9} to 1 + message "Player 2 Kitchen set" + exit loop + {_loop9} is not set: + message "Could not locate Player 2 Kitchen" + stop + loop blocks in radius 5 of {taco.waypoint.%world%::p2kitchen}: + loop-block is workbench: + set {taco.waypoint.%world%::p2bench} to location of loop-block + set {_loop21} to 1 + message "Player 2 Bench set" + exit loop + {_loop21} is not set: + message "Could not locate Player 2 Bench" + stop + loop blocks in radius 5 of {taco.waypoint.%world%::p1bench}: + loop-block is sign: + set {taco.p1.signs.%world%::3} to location of loop-block + message "%{taco.p1.signs.%world%::3}%" + set {taco.p1.signs.%world%::2} to the location 2 meters south of loop-block + message "%{taco.p1.signs.%world%::2}%" + set {taco.p1.signs.%world%::1} to the location 4 meters south of loop-block + message "%{taco.p1.signs.%world%::1}%" + set {_loop10} to 1 + message "Player 1 Signs set" + exit loop + {_loop10} is not set: + message "Could not locate Player 1 Signs" + stop + loop blocks in radius 7 of {taco.waypoint.%world%::p2bench}: + loop-block is sign: + set {taco.p2.signs.%world%::1} to location of loop-block + message "%{taco.p2.signs.%world%::1}%" + set {taco.p2.signs.%world%::2} to the location 2 meters south of loop-block + message "%{taco.p2.signs.%world%::2}%" + set {taco.p2.signs.%world%::3} to the location 4 meters south of loop-block + message "%{taco.p2.signs.%world%::3}%" + set {_loop11} to 1 + message "Player 2 Signs set" + exit loop + {_loop11} is not set: + message "Could not locate Player 2 Signs" + stop + loop blocks in radius 10 of {keystone.%world%}: + loop-block is melon: + set {taco.waypoint.%world%::p1j1} to location of loop-block + set {_loop12} to 1 + message "Player 1 Jumper 1 set" + exit loop + {_loop12} is not set: + message "Could not locate Player 1 Jumper 1" + stop + loop blocks in radius 8 of {taco.waypoint.%world%::p1j1}: + loop-block is sign: + set {taco.start.%world%::1} to location of loop-block + set {_loop13} to 1 + message "%{taco.start.%world%::1}%" + message "Player 1 Start Sign set" + exit loop + {_loop13} is not set: + message "Could not locate Player 1 Start Sign" + stop + set {_count} to 0 + loop blocks in radius 8 of {taco.waypoint.%world%::p1j1}: + loop-block is emerald block: + set {taco.1.gate1.%world%::%{_count}%} to location of loop-block + add 1 to {_count} + message "Player 1 Gate 1 Block %{_count}% set" + {_count} is 3: + set {_loop14} to 1 + exit loop + {_loop14} is not set: + message "Could not locate Player 1 Gate 1" + stop + set {_count} to 0 + loop blocks in radius 8 of {taco.waypoint.%world%::p1j1}: + loop-block is emerald ore: + set {taco.1.gate2.%world%::%{_count}%} to location of loop-block + add 1 to {_count} + message "Player 1 Gate 2 Block %{_count}% set" + {_count} is 3: + set {_loop15} to 1 + exit loop + {_loop15} is not set: + message "Could not locate Player 1 Gate 2" + stop + loop blocks in radius 10 of {keystone.%world%}: + loop-block is pumpkin: + set {taco.waypoint.%world%::p2j1} to location of loop-block + set {_loop16} to 1 + message "Player 2 Jumper 1 set" + exit loop + {_loop16} is not set: + message "Could not locate Player 2 Jumper 1" + stop + loop blocks in radius 8 of {taco.waypoint.%world%::p2j1}: + loop-block is sign: + set {taco.start.%world%::2} to location of loop-block + set {_loop16} to 1 + message "%{taco.start.%world%::2}%" + message "Player 2 Start Sign set" + exit loop + {_loop16} is not set: + message "Could not locate Player 2 Start Sign" + stop + set {_count} to 0 + loop blocks in radius 8 of {taco.waypoint.%world%::p2j1}: + loop-block is diamond block: + set {taco.2.gate1.%world%::%{_count}%} to location of loop-block + add 1 to {_count} + message "Player 2 Gate 1 Block %{_count}% set" + {_count} is 3: + set {_loop17} to 1 + exit loop + {_loop17} is not set: + message "Could not locate Player 2 Gate 1" + stop + set {_count} to 0 + loop blocks in radius 8 of {taco.waypoint.%world%::p2j1}: + loop-block is diamond ore: + set {taco.2.gate2.%world%::%{_count}%} to location of loop-block + add 1 to {_count} + message "Player 2 Gate 2 Block %{_count}% set" + {_count} is 3: + set {_loop18} to 1 + exit loop + {_loop18} is not set: + message "Could not locate Player 2 Gate 2" + stop + {_loop18} is set: + message "&3All Good!" + stop + message "You are not in the correct world for this Keystone command." + +command /tacoworld []: + permission: obam.admin + trigger: + argument 1 is "list" or "l": + loop {taco.list.worlds::*}: + message "%loop-index% --- %loop-value%" + stop + argument 1 is "delete" or "d": + delete {taco.list.worlds::*} + message "Deleted" + stop + set {_world} to argument 1 + set {taco.list.worlds::%{_world}%} to "available" + message "Added %{_world}% to list." + +command /debuglist []: + trigger: + argument 1 is "list" or "l": + loop {debug.list::*}: + message "%loop-index%" + stop + argument 1 is "delete" or "d": + delete {debug.list::*} + message "Deleted" + stop + set {_who} to argument 1 parsed as a player + set {debug.list::%{_who}%} to {_who} + message "Added %{_who}% to list." + +#endfold + +#startfold testing + + +#Remove when live +command /killvill: + trigger: + "%player's world%" contains "Taco": + loop villagers in radius 3 of player: + delete loop-villager + loop entities in radius 10 of player: + loop-entity is a witch: + delete loop-entity +#Remove when live +command /looptest: + trigger: + loop blocks in radius 2 of {taco.waypoint.%world%::p1kitchen}: + message " Var Block %loop-block%" + loop dropped items in radius 4 of player: + message "Item %loop-dropped item%" + loop entities in radius 4 of player: + message "Entity %loop-entity%" + loop dropped items in radius 4 of {taco.waypoint.%world%::p1kitchen}: + message "Var Item %loop-dropped item%" + loop entities in radius 4 of {taco.waypoint.%world%::p1kitchen}: + message "Var Entity %loop-entity%" + loop dropped items in radius 4 around block at {taco.waypoint.%world%::p1kitchen}: + message "Fix Item %loop-dropped item%" + loop entities in radius 4 around block at {taco.waypoint.%world%::p1kitchen}: + message "Fix Entity %loop-entity%" + message "%{taco.waypoint.%world%::p1kitchen}%" +#Remove when live +command /flesh: + trigger: + loop all dropped items in world: + delete loop-dropped item + +command /players: + trigger: + clear {taco.player.%world%::*} + set {_players} to 1 + loop all players in player's world: + {_players} is 3: + exit loop + set {taco.player.%world%::%{_players}%} to loop-player + message "You are Player %{_players}%" to loop-player + add 1 to {_players} + +command /scoreadd: + trigger: + add 1 to {taco.%player%.score.%world%} + message "%{taco.%player%.score.%world%}%" + +command /scoreclear: + trigger: + set {taco.%player%.score.%world%} to 0 + message "%{taco.%player%.score.%world%}%" + +command /boardbegone: + trigger: + display board named "" to player + +command /endgame: + trigger: + subtract 10 minutes from {taco.game.timer.%world%} + message "Game time altered." + +command /gameinfo: + trigger: + message "Players are %{taco.player.%world%::*}%" + message "Time is %{taco.game.timer.%world%}%" + message "Status is %{taco.game.status.%world%}%" + +command /tester: + trigger: + set {_player} to player + set {taco.timers.%{_player}%::grain} to now + set {taco.timers.%{_player}%::soft_shell} to now + set {taco.timers.%{_player}%::hard_shell} to now + set {taco.timers.%{_player}%::whole_tomato} to now + set {taco.timers.%{_player}%::diced_tomato} to now + set {taco.timers.%{_player}%::block_of_cheese} to now + set {taco.timers.%{_player}%::shredded_cheese} to now + set {taco.timers.%{_player}%::raw_onion} to now + set {taco.timers.%{_player}%::diced_onion} to now + set {taco.timers.%{_player}%::head_of_lettuce} to now + set {taco.timers.%{_player}%::shredded_lettuce} to now + set {taco.timers.%{_player}%::raw_fish} to now + set {taco.timers.%{_player}%::cooked_fish} to now + set {taco.timers.%{_player}%::raw_chicken} to now + set {taco.timers.%{_player}%::cooked_chicken} to now + set {taco.timers.%{_player}%::raw_beef} to now + set {taco.timers.%{_player}%::steak} to now + set {taco.timers.%{_player}%::sheep} to now + message "%{taco.timers.%{_player}%::*}%" + +#endfold + + +on join: + + teleport player to {spawn.taco} + + +command /tacospawn: + permission: obam.admin + trigger: + + set {spawn.taco} to location of player + send "&aSpawn set to &e%player's location%" + diff --git a/Obam-Testing/zbeta.sk b/Obam-Mini Games/Obam-Zbeta/Zbeta-Testing/zbeta.sk similarity index 97% rename from Obam-Testing/zbeta.sk rename to Obam-Mini Games/Obam-Zbeta/Zbeta-Testing/zbeta.sk index 4d4f058..2071c91 100644 --- a/Obam-Testing/zbeta.sk +++ b/Obam-Mini Games/Obam-Zbeta/Zbeta-Testing/zbeta.sk @@ -3,11 +3,12 @@ options: #@weapons - PStab: diamond sword;&aThe Green Justice;&7Crafted from the purest||&7items to cut through||&7the souls of the purest humans - ZStab: diamond sword;&cThe Red Death;&7Laced with the poisonous||&7Blood of the zombies||&7to deliver a powerful strike - Supp1: bow of infinity 1;&fBow of Healing;&7Powerful darts loaded||&7with medical properties to||&7to heal friends from afar - Supp2: paper;&fBandage;&7The most current healing technology||&7In a convenient travel||&7ready delivery system|| ||&eRight click on a player to use - Tank: wood sword of knockback 1;&eHit Stick;&7Built with rubber infused wood for ||&7that extra push against attacking enemies + PStab: diamond sword named "&aThe Green Justice" with lore "&7Crafted from the purest||&7items to cut through||&7the souls of the purest humans" + ZStab: diamond sword named "&cThe Red Death" with lore "&7Laced with the poisonous||&7Blood of the zombies||&7to deliver a powerful strike" + Supp1: bow of infinity 1 named "&fBow of Healing" with lore "&7Powerful darts loaded||&7with medical properties to||&7to heal friends from afar" + Supp2: paper named "&fBandage" with lore "&7The most current healing technology||&7In a convenient travel||&7ready delivery system|| ||&eRight click on a player to use" + Tank: wood sword of knockback 1 named "&eHit Stick" with lore "&7Built with rubber infused wood for ||&7that extra push against attacking enemies" + on death of a zombie: {zbeta.game.active} is true attacker is a player @@ -1093,7 +1094,7 @@ on right click on a sign: set player's helmet to red wool {zbeta.team.%player%} is "yellow": set player's helmet to yellow wool - give player named item stack from "{@ZStab}" + give player {@ZStab} equip player with leather chestplate named "&cStabber Gear" equip player with leather leggings named "&cStabber Gear" equip player with leather boots named "&CStabber Gear" @@ -1108,7 +1109,7 @@ on right click on a sign: set player's helmet to red wool {zbeta.team.%player%} is "yellow": set player's helmet to yellow wool - give player named item stack from "{@PStab}" + give player {@PStab} equip player with leather chestplate named "&aStabber Gear" equip player with leather leggings named "&aStabber Gear" equip player with leather boots named "&aStabber Gear" @@ -1123,9 +1124,9 @@ on right click on a sign: set player's helmet to red wool {zbeta.team.%player%} is "yellow": set player's helmet to yellow wool - give player named item stack from "{@Supp1}" + give player {@Supp1} give player arrow - give player named item stack from "{@Supp2}" + give player {@Supp2} equip player with leather chestplate named "&fDoctor's Coat" equip player with leather leggings named "&fDoctor's Coat" equip player with leather boots named "&fDoctor's Coat" @@ -1140,7 +1141,7 @@ on right click on a sign: set player's helmet to red wool {zbeta.team.%player%} is "yellow": set player's helmet to yellow wool - give player named item stack from "{@Tank}" + give player {@Tank} equip player with leather chestplate named "&eTanks Armor" equip player with leather leggings named "&eTanks Armor" equip player with leather boots named "&eTanks Armor" @@ -1172,10 +1173,10 @@ on damage of a player: attacker is player: {zbeta.team.%attacker%} is {zbeta.team.%victim%}: {zbeta.lo.%attacker%} is "SUPPORT": - attacker's tool is named item stack from "{@Supp2}": + attacker's tool is {@Supp2}: add 7 to victim's health send "&aYou have been healed by %attacker%" to victim - remove named item stack from "{@Supp2}" from attacker + remove {@Supp2} from attacker stop attacker's tool is not air: attacker's tool is not arrow @@ -1193,15 +1194,15 @@ on damage of a player: stop set damage to 0 {zbeta.lo.%attacker%} is "Z-STABBER": - attacker's tool is named item stack from "{@ZStab}": + attacker's tool is {@ZStab}: set {_dmg} to a random number between 0.09 to 0.12 - attacker's tool is not named item stack from "{@ZStab}": + attacker's tool is not {@ZStab}: set {_dmg} to a random number between 0.08 to 0.1 {zbeta.lo.%attacker%} is "P-STABBER": - attacker's tool is named item stack from "{@PStab}": + attacker's tool is {@PStab}: set {_dmg} to a random number between 0.3 and 0.8 - attacker's tool is not named item stack from "{@PStab}": + attacker's tool is not {@PStab}: set {_dmg} to a random number between 0.1 and 0.4 {zbeta.lo.%attacker%} is "SUPPORT": set {_dmg} to 0.050 @@ -1258,15 +1259,15 @@ on damage of a player: on damage of a zombie: attacker is player: {zbeta.lo.%attacker%} is "Z-STABBER": - attacker's tool is named item stack from "{@ZStab}": + attacker's tool is {@ZStab}: set {_dmg} to 8 - attacker's tool is not named item stack from "{@ZStab}": + attacker's tool is not {@ZStab}: set {_dmg} to 0.75 {zbeta.lo.%attacker%} is "P-STABBER": - attacker's tool is named item stack from "{@PStab}": + attacker's tool is {@PStab}: set {_dmg} to 1.0 - attacker's tool is not named item stack from "{@PStab}": + attacker's tool is not {@PStab}: set {_dmg} to 0.25 {zbeta.lo.%attacker%} is "SUPPORT": set {_dmg} to 0.25 @@ -1288,15 +1289,3 @@ on target: apply speed 3 to event-entity for 10 seconds set {zbeta.%event-entity%.speed} to true - - - - - - - - - - - - \ No newline at end of file diff --git a/Obam-Other/KitsPlus.sk b/Obam-Other/KitsPlus.sk deleted file mode 100644 index 1dd216e..0000000 --- a/Obam-Other/KitsPlus.sk +++ /dev/null @@ -1,44 +0,0 @@ -command /kit [] []: - trigger: - if argument 1 is "help": - message "&7/kit &e- Spawn a kit" - message "&7/kit edit &e- Create/Edit a kit" - message "&7/kit delete &e- Delete a kit" - else if argument 1 is "edit": - if argument 2 is set: - set {kplus.kit.%argument 2%::inv} to player's serialized inventory - set {kplus.kit.%argument 2%::h} to player's helmet - set {kplus.kit.%argument 2%::c} to player's chestplate - set {kplus.kit.%argument 2%::l} to player's leggings - set {kplus.kit.%argument 2%::b} to player's boots - message "&aKit &9'%uncolored argument 2%' &aedited successfully!" - if value "permissions.%argument 2%" pulled from "KitsPlusConfig" is not set: - put "skript.kitsplus.%uncolored argument 2%" for "permissions.%argument 2%" in "KitsPlusConfig" - else: - message "&7/kit edit &e- Create/Edit a kit" - else if argument 1 is "delete": - if argument 2 is set: - if {kplus.kit.%argument 2%::*} is set: - clear {kplus.kit.%argument 2%::*} - message "&aKit &9'%uncolored argument 2%' &acleared successfully!" - else: - message "&cInvalid kit." - else: - message "&7/kit delete &e- Delete a kit" - else if argument 1 is set: - if argument 2 is not set: - if {kplus.kit.%argument 1%} is set: - set {_permpath} to "permissions.%argument 1%" - set {_perm} to value {_permpath} pulled from "KitsPlusConfig" - if player has permission "%{_perm}%": - restore inventory of player to {kplus.kit.%argument 1%} - set player's helmet to {kplus.kit.%argument 2%::h} - set player's chestplate to {kplus.kit.%argument 2%::c} - set player's leggings to {kplus.kit.%argument 2%::l} - set player's boots to {kplus.kit.%argument 2%::b} - else: - message "&cNo permission." - else: - message "&cInvalid kit." - else: - message "&7/kit &e- Spawn a kit" \ No newline at end of file diff --git a/Obam-Parkour/parkour.sk b/Obam-Parkour/parkour.sk deleted file mode 100644 index 40d63b5..0000000 --- a/Obam-Parkour/parkour.sk +++ /dev/null @@ -1,740 +0,0 @@ -options: - beginnercourse: i;iron block;n;&d&lBeginner Courses!;l;&7Click to go to the &eBeginner &7Lobby;c;teleportparkourbeginner %player% - easycourse: i;gold block;n;&a&lEasy Courses!;l;&7Click to go to the &eEasy &7Lobby;c;teleportparkoureasy %player% - mediumcourse: i;diamond block;n;&e&lMedium Courses!;l;&7Click to go to the &eMedium &7Lobby;c;teleportparkourmedium %player% - hardcourse: i;emerald block;n;&4&lHard Courses!;l;&7Click to go to the &eHard &7Lobby;c;teleportparkourhard %player% - random: i;mossy cobblestone;n;&3&lRandom Course!;l;&7Click to go to a &eRandom&7 course;c;courserandom %player% - - - -variables: - {fallen.%player%} = 0 - {fallen.global} = 0 - {fallen.easy} = 0 - {fallen.hard} = 0 - {fallen.beginner} = 0 - {fallen.medium} = 0 - {completed.global} = 0 - {completed.easy} = 0 - {completed.hard} = 0 - {completed.medium} = 0 - (completed.beginner} = 0 - -command /parkourcourse: - permission: obam.free - executable by: players - trigger: - - show "s;1;{@beginnercourse};s;2;{@easycourse};s;3;{@mediumcourse};s;4;{@hardcourse};s;9;{@random}" with 1 row named "&9&lOBAM &9Parkour" to player - - -command /courseadd : - permission: obam.admin - trigger: - arg is not "clear": - add arg to {parkour.courses::*} - arg is "clear": - clear {parkour.courses::*} - -command /listcourses : - permission: obam.admin - trigger: - set {course.add} to 0 - loop arg times: - add 1 to {course.add} - set {course} to {parkour.courses::%{course.add}%} - message "%{course}%" to player - -command /courserandom : - executable by: console - trigger: - set {course.add} to 0 - set {top.course} to size of {parkour.courses::*} - set {number.random} to random number between 1 and {top.course} - loop {number.random} times: - add 1 to {course.add} - set {course} to {parkour.courses::%{course.add}%} - execute console command "/parkourspawn %{course}% %player-argument%" - -command /lobbyset : - permission: obam.admin - trigger: - set {parkour.%arg%.tp} to location of player - -command /teleportparkoureasy : - executable by: console - trigger: - teleport player-argument to {parkour.easy.tp} - -command /teleportparkourmedium : - executable by: console - trigger: - teleport player-argument to {parkour.medium.tp} - -command /teleportparkourbeginner : - executable by: console - trigger: - teleport player-argument to {parkour.beginner.tp} - -command /teleportparkourhard : - executable by: console - trigger: - teleport player-argument to {parkour.hard.tp} - - -command /completeeasyparkourcourse : - executable by: console - trigger: - set variable {currentparkourcourse.%player-argument%} to 0 - execute console command "/mvtp %player-argument% parkourlobby" - add 5 to {level.%player-argument%} - message "&a&lYou received 5 tickets for completing a parkour course!" to player-argument - add 5 to player-argument's balance - set {fallen.%player%} to 0 - subtract 1 from {holding.%{currentparkourcourse.%player%}%.count} - set {checkpoint.%player-argument%.active} to 0 - add 1 to {completed.global} - add 1 to {completed.easy} -command /completemediumparkourcourse : - executable by: console - trigger: - set variable {currentparkourcourse.%player-argument%} to 0 - execute console command "/mvtp %player-argument% parkourlobby" - add 10 to {level.%player-argument%} - message "&a&lYou received 10 tickets for completing a parkour course!" to the player-argument - add 10 to player-argument's balance - set {fallen.%player%} to 0 - subtract 1 from {holding.%{currentparkourcourse.%player%}%.count} - set {checkpoint.%player-argument%.active} to 0 - add 1 to {completed.global} - add 1 to {completed.medium} -command /completehardparkourcourse : - executable by: console - trigger: - set variable {currentparkourcourse.%player-argument%} to 0 - execute console command "/mvtp %player-argument% parkourlobby" - add 25 to {level.%player-argument%} - message "&a&lYou received 25 tickets for completing a parkour course!" to the player-argument - add 25 to player-argument's balance - set {fallen.%player%} to 0 - subtract 1 from {holding.%{currentparkourcourse.%player%}%.count} - set {checkpoint.%player-argument%.active} to 0 - add 1 to {completed.global} - add 1 to {completed.hard} -command /completebeginnerparkourcourse : - executable by: console - trigger: - set variable {currentparkourcourse.%player-argument%} to 0 - execute console command "/mvtp %player-argument% parkourlobby" - add 5 to {level.%player-argument%} - message "&a&lYou received 1 ticket for completing a parkour course!" to the player-argument - add 1 to player-argument's balance - set {fallen.%player%} to 0 - subtract 1 from {holding.%{currentparkourcourse.%player%}%.count} - set {checkpoint.%player-argument%.active} to 0 - add 1 to {completed.global} - add 1 to {completed.beginner} - -command /parkour: - executable by: players - permission: obam.free - aliases: /pk - trigger: - world is "hotpotatolobby" or "hotpotato1" or "hotpotato2": - message "&cYou can not do that here, please use &e/lobby&c first." to player - stop - execute console command "/mvtp %player% parkourlobby" - set {checkpoint.%player%.active} to 0 - set {fallen.%player%} to 0 - subtract 1 from {holding.%{currentparkourcourse.%player%}%.count} - - -#EndlessRage1 -on walking on obsidian: - {currentparkourcourse.%player%} is "EndlessRage1" - player is in "parkourmaps" - add 1 to {fallen.%player%} - add 1 to {fallen.global} - add 1 to {fallen.hard} - message "&cYou were sent back for falling!" to the player - {checkpoint.%player%.active} is 1: - teleport player to {parkour.checkpoint.%player%} - else: - teleport player to {parkourspawn.EndlessRage1} - execute console command "/starttimer %player% EndlessRage1" - - {fallen.%player%} is less than 2: - message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player - stop - {fallen.%player%} is greater than 1: - message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player - stop - stop - - -#EndlessRage2 -on walking on obsidian: - {currentparkourcourse.%player%} is "EndlessRage2" - player is in "parkourmaps" - message "&cYou were sent back for falling!" to the player - add 1 to {fallen.%player%} - add 1 to {fallen.global} - add 1 to {fallen.hard} - {checkpoint.%player%.active} is 1: - teleport player to {parkour.checkpoint.%player%} - else: - teleport player to {parkourspawn.EndlessRage2} - execute console command "/starttimer %player% EndlessRage2" - {fallen.%player%} is less than 2: - message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player - stop - {fallen.%player%} is greater than 1: - message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player - stop - stop - - -#EndlessRage3 -on walking on obsidian: - {currentparkourcourse.%player%} is "EndlessRage3" - player is in "parkourmaps" - message "&cYou were sent back for falling!" to the player - add 1 to {fallen.%player%} - add 1 to {fallen.global} - add 1 to {fallen.hard} - {checkpoint.%player%.active} is 1: - teleport player to {parkour.checkpoint.%player%} - - else: - teleport player to {parkourspawn.EndlessRage3} - execute console command "/starttimer %player% EndlessRage3" - {fallen.%player%} is less than 2: - message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player - stop - {fallen.%player%} is greater than 1: - message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player - stop - stop - -#Rainbow -on walking on wool or glowstone: - {currentparkourcourse.%player%} is "Rainbow" - player is in "parkourmaps" - message "&cYou were sent back for falling!" to the player - add 1 to {fallen.%player%} - add 1 to {fallen.global} - add 1 to {fallen.easy} - {checkpoint.%player%.active} is 1: - teleport player to {parkour.checkpoint.%player%} - else: - teleport player to {parkourspawn.Rainbow} - execute console command "/starttimer %player% Rainbow" - {fallen.%player%} is less than 2: - message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player - stop - {fallen.%player%} is greater than 1: - message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player - stop - stop - -#MountainRiver -on walking on grass or leaves or wood or cobblestone or stone or dirt: - {currentparkourcourse.%player%} is "MountainRiver" - player is in "parkourmaps" - message "&cYou were sent back for falling!" to the player - add 1 to {fallen.%player%} - add 1 to {fallen.global} - add 1 to {fallen.medium} - {checkpoint.%player%.active} is 1: - teleport player to {parkour.checkpoint.%player%} - else: - teleport player to {parkourspawn.MountainRiver} - execute console command "/starttimer %player% MountainRiver" - {fallen.%player%} is less than 2: - message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player - stop - {fallen.%player%} is greater than 1: - message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player - stop - stop -every 1 seconds: - loop all players: - block above block below loop-player is water: - {currentparkourcourse.%loop-player%} is "MountainRiver" - loop-player is in "parkourmaps" - message "&cYou were sent back for falling!" to the loop-player - add 1 to {fallen.%loop-player%} - add 1 to {fallen.global} - add 1 to {fallen.medium} - {checkpoint.%loop-player%.active} is 1: - teleport loop-player to {parkour.checkpoint.%loop-player%} - else: - teleport loop-player to {parkourspawn.MountainRiver} - execute console command "/starttimer %loop-player% MountainRiver" - if {fallen.%loop-player%} is less than 2: - message "&cYou have fallen &e%{fallen.%loop-player%}% &ctime this round." to loop-player - stop trigger - - {fallen.%loop-player%} is greater than 1: - message "&cYou have fallen &e%{fallen.%loop-player%}% &ctimes this round." to loop-player - -#KoiPond -on walking on grass or redstone lamp: - {currentparkourcourse.%player%} is "KoiPond" - player is in "parkourmaps" - message "&cYou were sent back for falling!" to the player - add 1 to {fallen.%player%} - add 1 to {fallen.global} - add 1 to {fallen.easy} - add 1 to {fallen.stat.%player%} - {checkpoint.%player%.active} is 1: - teleport player to {parkour.checkpoint.%player%} - else: - teleport player to {parkourspawn.KoiPond} - execute console command "/starttimer %player% KoiPond" - {fallen.%player%} is less than 2: - message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player - stop - {fallen.%player%} is greater than 1: - message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player - {fallen.%player%} is 10 or 20 or 50 or 100: - message "&aDid you know you could purchase checkpoints at" to player - message "&e http://l.obamgaming.com/ParkourShop &a?" to player - stop -every 1 seconds: - loop all players: - block above block below loop-player is water: - {currentparkourcourse.%loop-player%} is "KoiPond" - loop-player is in "parkourmaps" - message "&cYou were sent back for falling!" to the loop-player - add 1 to {fallen.%loop-player%} - add 1 to {fallen.global} - add 1 to {fallen.easy} - {checkpoint.%loop-player%.active} is 1: - teleport loop-player to {parkour.checkpoint.%loop-player%} - else: - teleport loop-player to {parkourspawn.KoiPond} - execute console command "/starttimer %loop-player% KoiPond" - if {fallen.%loop-player%} is less than 2: - message "&cYou have fallen &e%{fallen.%loop-player%}% &ctime this round." to loop-player - stop trigger - - {fallen.%loop-player%} is greater than 1: - message "&cYou have fallen &e%{fallen.%loop-player%}% &ctimes this round." to loop-player - {fallen.%loop-player%} is 10 or 20 or 50 or 100: - message "&aDid you know you could purchase checkpoints at" to loop-player - message "&e http://bit.ly/ParkourShop &a?" to loop-player - stop - -#CampGround -on walking on grass or leaves or dirt: - {currentparkourcourse.%player%} is "CampGround" - player is in "parkourmaps" - message "&cYou were sent back for falling!" to the player - add 1 to {fallen.%player%} - add 1 to {fallen.global} - add 1 to {fallen.beginner} - {checkpoint.%player%.active} is 1: - teleport player to {parkour.checkpoint.%player%} - else: - teleport player to {parkourspawn.CampGround} - execute console command "/starttimer %player% CampGround" - {fallen.%player%} is less than 2: - message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player - stop - {fallen.%player%} is greater than 1: - message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player - stop - stop -every 1 seconds: - loop all players: - block above block below loop-player is water: - {currentparkourcourse.%loop-player%} is "CampGround" - loop-player is in "parkourmaps" - message "&cYou were sent back for falling!" to the loop-player - add 1 to {fallen.%loop-player%} - add 1 to {fallen.global} - add 1 to {fallen.beginner} - {checkpoint.%loop-player%.active} is 1: - teleport loop-player to {parkour.checkpoint.%loop-player%} - else: - teleport loop-player to {parkourspawn.CampGround} - execute console command "/starttimer %loop-player% CampGround" - if {fallen.%loop-player%} is less than 2: - message "&cYou have fallen &e%{fallen.%loop-player%}% &ctime this round." to loop-player - stop trigger - - {fallen.%loop-player%} is greater than 1: - message "&cYou have fallen &e%{fallen.%loop-player%}% &ctimes this round." to loop-player - {fallen.%loop-player%} is 10 or 20 or 50 or 100: - message "&aDid you know you could purchase checkpoints at" to loop-player - message "&e http://bit.ly/ParkourShop &a?" to loop-player - stop - -#QuartzRuins -on walking on redstone lamp: - {currentparkourcourse.%player%} is "QuartzRuins" - player is in "parkourmaps" - message "&cYou were sent back for falling!" to the player - add 1 to {fallen.%player%} - add 1 to {fallen.global} - add 1 to {fallen.beginner} - {checkpoint.%player%.active} is 1: - teleport player to {parkour.checkpoint.%player%} - else: - teleport player to {parkourspawn.QuartzRuins} - execute console command "/starttimer %player% QuartzRuins" - {fallen.%player%} is less than 2: - message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player - stop - {fallen.%player%} is greater than 1: - message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player - {fallen.%player%} is 10 or 20 or 50 or 100: - message "&aDid you know you could purchase checkpoints at" to player - message "&e http://bit.ly/ParkourShop &a?" to player - stop - stop -every 1 seconds: - loop all players: - block above block below loop-player is water: - {currentparkourcourse.%loop-player%} is "QuartzRuins" - loop-player is in "parkourmaps" - message "&cYou were sent back for falling!" to the loop-player - add 1 to {fallen.%loop-player%} - add 1 to {fallen.global} - add 1 to {fallen.beginner} - {checkpoint.%loop-player%.active} is 1: - teleport loop-player to {parkour.checkpoint.%loop-player%} - else: - teleport loop-player to {parkourspawn.QuartzRuins} - execute console command "/starttimer %loop-player% QuartzRuins" - if {fallen.%loop-player%} is less than 2: - message "&cYou have fallen &e%{fallen.%loop-player%}% &ctime this round." to loop-player - stop trigger - - {fallen.%loop-player%} is greater than 1: - message "&cYou have fallen &e%{fallen.%loop-player%}% &ctimes this round." to loop-player - {fallen.%loop-player%} is 10 or 20 or 50 or 100: - message "&aDid you know you could purchase checkpoints at" to loop-player - message "&e http://bit.ly/ParkourShop &a?" to loop-player - stop - - -#Quarry -on walking on stone or cobble or gravel: - {currentparkourcourse.%player%} is "Quarry" - player is in "parkourmaps" - message "&cYou were sent back for falling!" to the player - add 1 to {fallen.%player%} - add 1 to {fallen.global} - add 1 to {fallen.beginner} - {checkpoint.%player%.active} is 1: - teleport player to {parkour.checkpoint.%player%} - - else: - teleport player to {parkourspawn.Quarry} - execute console command "/starttimer %player% Quarry" - {fallen.%player%} is less than 2: - message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player - stop - {fallen.%player%} is greater than 1: - message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player - {fallen.%player%} is 10 or 20 or 50 or 100: - message "&aDid you know you could purchase checkpoints at" to player - message "&e http://bit.ly/ParkourShop &a?" to player - stop - stop - -#DoomShaft -on walking on stone: - {currentparkourcourse.%player%} is "DoomShaft" - player is in "parkourmaps" - message "&cYou were sent back for falling!" to the player - add 1 to {fallen.%player%} - add 1 to {fallen.global} - add 1 to {fallen.beginner} - {checkpoint.%player%.active} is 1: - teleport player to {parkour.checkpoint.%player%} - else: - teleport player to {parkourspawn.DoomShaft} - execute console command "/starttimer %player% DoomShaft" - {fallen.%player%} is less than 2: - message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player - stop - {fallen.%player%} is greater than 1: - message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player - {fallen.%player%} is 10 or 20 or 50 or 100: - message "&aDid you know you could purchase checkpoints at" to player - message "&e http://bit.ly/ParkourShop &a?" to player - stop - stop - -#PipeWorld -on walking on mycelium or wool or stained clay: - {currentparkourcourse.%player%} is "PipeWorld" - player is in "parkourmaps" - message "&cYou were sent back for falling!" to the player - add 1 to {fallen.%player%} - add 1 to {fallen.global} - add 1 to {fallen.beginner} - {checkpoint.%player%.active} is 1: - teleport player to {parkour.checkpoint.%player%} - else: - teleport player to {parkourspawn.PipeWorld} - execute console command "/starttimer %player% PipeWorld" - {fallen.%player%} is less than 2: - message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player - stop - {fallen.%player%} is greater than 1: - message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player - {fallen.%player%} is 10 or 20 or 50 or 100: - message "&aDid you know you could purchase checkpoints at" to player - message "&e http://bit.ly/ParkourShop &a?" to player - stop - stop - -#GreatPumpkin -on walking on mycelium or gravel or jack-o-lantern or leaves or stained clay: - {currentparkourcourse.%player%} is "GreatPumpkin" - player is in "parkourmaps" - message "&cYou were sent back for falling!" to the player - add 1 to {fallen.%player%} - add 1 to {fallen.global} - add 1 to {fallen.beginner} - {checkpoint.%player%.active} is 1: - teleport player to {parkour.checkpoint.%player%} - else: - teleport player to {parkourspawn.GreatPumpkin} - execute console command "/starttimer %player% GreatPumpkin" - {fallen.%player%} is less than 2: - message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player - stop - {fallen.%player%} is greater than 1: - message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player - {fallen.%player%} is 10 or 20 or 50 or 100: - message "&aDid you know you could purchase checkpoints at" to player - message "&e http://bit.ly/ParkourShop &a?" to player - stop - stop - - - - -#BigTree -on walking on wood or leaves or grass or glowstone: - {currentparkourcourse.%player%} is "BigTree" - player is in "parkourmaps" - message "&cYou were sent back for falling!" to the player - add 1 to {fallen.%player%} - add 1 to {fallen.global} - add 1 to {fallen.beginner} - {checkpoint.%player%.active} is 1: - teleport player to {parkour.checkpoint.%player%} - else: - teleport player to {parkourspawn.BigTree} - execute console command "/starttimer %player% BigTree" - {fallen.%player%} is less than 2: - message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player - stop - {fallen.%player%} is greater than 1: - message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player - {fallen.%player%} is 10 or 20 or 50 or 100: - message "&aDid you know you could purchase checkpoints at" to player - message "&e http://bit.ly/ParkourShop &a?" to player - stop - stop - -#Contra -on walking on lapis lazuli block or black wool or falling water: - {currentparkourcourse.%player%} is "Contra" - player is in "parkourmaps" - message "&cYou were sent back for falling!" to the player - add 1 to {fallen.%player%} - add 1 to {fallen.global} - add 1 to {fallen.beginner} - {checkpoint.%player%.active} is 1: - teleport player to {parkour.checkpoint.%player%} - else: - teleport player to {parkourspawn.Contra} - execute console command "/starttimer %player% Farm" - {fallen.%player%} is less than 2: - message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player - stop - {fallen.%player%} is greater than 1: - message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player - {fallen.%player%} is 10 or 20 or 50 or 100: - message "&aDid you know you could purchase checkpoints at" to player - message "&e http://bit.ly/ParkourShop &a?" to player - stop - stop -every 1 seconds: - loop all players: - block above block below loop-player is water or falling water: - {currentparkourcourse.%loop-player%} is "Contra" - loop-player is in "parkourmaps" - message "&cYou were sent back for falling!" to the loop-player - add 1 to {fallen.%loop-player%} - add 1 to {fallen.global} - add 1 to {fallen.beginner} - {checkpoint.%loop-player%.active} is 1: - teleport loop-player to {parkour.checkpoint.%loop-player%} - else: - teleport loop-player to {parkourspawn.Contra} - execute console command "/starttimer %loop-player% Contra" - if {fallen.%loop-player%} is less than 2: - message "&cYou have fallen &e%{fallen.%loop-player%}% &ctime this round." to loop-player - stop trigger - - {fallen.%loop-player%} is greater than 1: - message "&cYou have fallen &e%{fallen.%loop-player%}% &ctimes this round." to loop-player - {fallen.%loop-player%} is 10 or 20 or 50 or 100: - message "&aDid you know you could purchase checkpoints at" to loop-player - message "&e http://bit.ly/ParkourShop &a?" to loop-player - stop - -#Farm -on walking on grass or dirt or gravel or farmland: - {currentparkourcourse.%player%} is "Farm" - player is in "parkourmaps" - message "&cYou were sent back for falling!" to the player - add 1 to {fallen.%player%} - add 1 to {fallen.global} - add 1 to {fallen.beginner} - {checkpoint.%player%.active} is 1: - teleport player to {parkour.checkpoint.%player%} - else: - teleport player to {parkourspawn.farm} - execute console command "/starttimer %player% Farm" - {fallen.%player%} is less than 2: - message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player - stop - {fallen.%player%} is greater than 1: - message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player - {fallen.%player%} is 10 or 20 or 50 or 100: - message "&aDid you know you could purchase checkpoints at" to player - message "&e http://bit.ly/ParkourShop &a?" to player - stop - stop -every 1 seconds: - loop all players: - block above block below loop-player is water or falling water: - {currentparkourcourse.%loop-player%} is "Farm" - loop-player is in "parkourmaps" - message "&cYou were sent back for falling!" to the loop-player - add 1 to {fallen.%loop-player%} - add 1 to {fallen.global} - add 1 to {fallen.beginner} - {checkpoint.%loop-player%.active} is 1: - teleport loop-player to {parkour.checkpoint.%loop-player%} - else: - teleport loop-player to {parkourspawn.Farm} - execute console command "/starttimer %loop-player% Farm" - if {fallen.%loop-player%} is less than 2: - message "&cYou have fallen &e%{fallen.%loop-player%}% &ctime this round." to loop-player - stop trigger - - {fallen.%loop-player%} is greater than 1: - message "&cYou have fallen &e%{fallen.%loop-player%}% &ctimes this round." to loop-player - {fallen.%loop-player%} is 10 or 20 or 50 or 100: - message "&aDid you know you could purchase checkpoints at" to loop-player - message "&e http://bit.ly/ParkourShop &a?" to loop-player - stop - - -#2FortRed -on walking on upside-down double sandstone slab or sand or wool or light blue hard clay or wood planks or logs or wood stairs or dirt or clay bricks stairs or brick slabs: - {currentparkourcourse.%player%} is "2FortRed" - player is in "parkourmaps" - message "&cYou were sent back for falling!" to the player - add 1 to {fallen.%player%} - add 1 to {fallen.global} - add 1 to {fallen.beginner} - {checkpoint.%player%.active} is 1: - teleport player to {parkour.checkpoint.%player%} - else: - teleport player to {parkourspawn.2FortRed} - execute console command "/starttimer %player% 2FortRed" - {fallen.%player%} is less than 2: - message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player - stop - {fallen.%player%} is greater than 1: - message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player - {fallen.%player%} is 10 or 20 or 50 or 100: - message "&aDid you know you could purchase checkpoints at" to player - message "&e http://bit.ly/ParkourShop &a?" to player - stop - stop -every 1 seconds: - loop all players: - block above block below loop-player is water or falling water: - {currentparkourcourse.%loop-player%} is "2FortRed" - loop-player is in "parkourmaps" - message "&cYou were sent back for falling!" to the loop-player - add 1 to {fallen.%loop-player%} - add 1 to {fallen.global} - add 1 to {fallen.beginner} - {checkpoint.%loop-player%.active} is 1: - teleport loop-player to {parkour.checkpoint.%loop-player%} - else: - teleport loop-player to {parkourspawn.2FortRed} - execute console command "/starttimer %loop-player% 2FortRed" - if {fallen.%loop-player%} is less than 2: - message "&cYou have fallen &e%{fallen.%loop-player%}% &ctime this round." to loop-player - stop trigger - - {fallen.%loop-player%} is greater than 1: - message "&cYou have fallen &e%{fallen.%loop-player%}% &ctimes this round." to loop-player - {fallen.%loop-player%} is 10 or 20 or 50 or 100: - message "&aDid you know you could purchase checkpoints at" to loop-player - message "&e http://bit.ly/ParkourShop &a?" to loop-player - stop - -#2FortBlue -on walking on upside-down double sandstone slab or sand or wool or red hard clay or wood planks or logs or wood stairs or dirt or clay bricks stairs or brick slabs: - {currentparkourcourse.%player%} is "2FortBlue" - player is in "parkourmaps" - message "&cYou were sent back for falling!" to the player - add 1 to {fallen.%player%} - add 1 to {fallen.global} - add 1 to {fallen.beginner} - {checkpoint.%player%.active} is 1: - teleport player to {parkour.checkpoint.%player%} - else: - teleport player to {parkourspawn.2FortBlue} - execute console command "/starttimer %player% 2FortBlue" - {fallen.%player%} is less than 2: - message "&cYou have fallen &e%{fallen.%player%}% &ctime this round." to player - stop - {fallen.%player%} is greater than 1: - message "&cYou have fallen &e%{fallen.%player%}% &ctimes this round." to player - {fallen.%player%} is 10 or 20 or 50 or 100: - message "&aDid you know you could purchase checkpoints at" to player - message "&e http://bit.ly/ParkourShop &a?" to player - stop - stop -every 1 seconds: - loop all players: - block above block below loop-player is water or falling water: - {currentparkourcourse.%loop-player%} is "2FortBlue" - loop-player is in "parkourmaps" - message "&cYou were sent back for falling!" to the loop-player - add 1 to {fallen.%loop-player%} - add 1 to {fallen.global} - add 1 to {fallen.beginner} - {checkpoint.%loop-player%.active} is 1: - teleport loop-player to {parkour.checkpoint.%loop-player%} - else: - teleport loop-player to {parkourspawn.2FortBlue} - execute console command "/starttimer %loop-player% 2FortBlue" - if {fallen.%loop-player%} is less than 2: - message "&cYou have fallen &e%{fallen.%loop-player%}% &ctime this round." to loop-player - stop trigger - - {fallen.%loop-player%} is greater than 1: - message "&cYou have fallen &e%{fallen.%loop-player%}% &ctimes this round." to loop-player - {fallen.%loop-player%} is 10 or 20 or 50 or 100: - message "&aDid you know you could purchase checkpoints at" to loop-player - message "&e http://bit.ly/ParkourShop &a?" to loop-player - stop - - diff --git a/Obam-Perks/Finished and placed/allowance.sk b/Obam-Perks/Finished and placed/allowance.sk new file mode 100644 index 0000000..42cf6d3 --- /dev/null +++ b/Obam-Perks/Finished and placed/allowance.sk @@ -0,0 +1,52 @@ +#ticket stuff +command /settickettime: + permission: obam.admin + trigger: + set {ticket.tracker} to now + +on join: + {ticket.tracker.count.%uuid of player%} is not set: + {ticket.tracker.count.%player%} is set: + set {ticket.tracker.count.%uuid of player%} to {ticket.tracker.count.%player%} + else + set {ticket.tracker.count.%uuid of player%} to {ticket.tracker.count} + {ticket.tracker.bonus.%uuid of player%} is not set: + add 2000 to player's balance + wait 1 second + send "&aYou have received your first &e2000&a tickets for playing on OBAM! Enjoy!" to player + set {ticket.tracker.bonus.%uuid of player%} to true + stop + {ticket.tracker.count.%uuid of player%} is not equal to {ticket.tracker.count}: + set {_pay} to difference between {ticket.tracker.count} and {ticket.tracker.count.%uuid of player%} + set {_pay} to 2000 * {_pay} + add {_pay} to player's balance + set {ticket.tracker.count.%uuid of player%} to {ticket.tracker.count} + wait 1 second + send "&aYou have received &e2000&a tickets for your weekly allowance! Enjoy!" to player + +every 1 minute: + difference between {ticket.tracker} and now is greater than or equal to 7 days: + set {ticket.tracker} to now + {ticket.tracker.count} is not set: + set {ticket.tracker.count} to 0 + add 1 to {ticket.tracker.count} + +command /trackcheck: + permission: obam.admin + trigger: + set {_check} to difference between {ticket.tracker} and now + send "%{_check}%" to player + +command /addtoticket: + permission: obam.admin + trigger: + {ticket.tracker.count} is not set: + set {ticket.tracker.count} to 0 + add 1 to {ticket.tracker.count} + +command /viewtime: + permission: obam.admin + trigger: + send "%{ticket.tracker.count}%" to player + send "%{ticket.tracker.count.%uuid of player%}%" to player + diff --git a/Obam-General/exclusive.sk b/Obam-Perks/Finished and placed/exclusive.sk similarity index 100% rename from Obam-General/exclusive.sk rename to Obam-Perks/Finished and placed/exclusive.sk diff --git a/Obam-Perks/Finished and placed/hats.g.sk b/Obam-Perks/Finished and placed/hats.g.sk new file mode 100644 index 0000000..623f92d --- /dev/null +++ b/Obam-Perks/Finished and placed/hats.g.sk @@ -0,0 +1,136 @@ +on script load: + delete {db_perk.hats::*} + set {db_perk.hats::01.dirt} to "dirt;&3&lDirt Hat;&6Carefully woven together from the finest dirt||&6in all of &3OBAM!;sudo PLAYER hat dirt" + set {db_perk.hats::02.beta} to "iron pressure plate;&3&lBeta Supporter Hat;&6This Special hat is for all members who supported||&6during our beta period and is a thank you from the||&3OBAM &6Staff for those that helped us when we were||&6starting. THANK YOU!;sudo PLAYER hat beta;&6This Special hat is for all members who supported||&6during our beta period and is a thank you from the||&3OBAM &6Staff for those that helped us when we were||&6starting. THANK YOU!|| ||&cThis hat is only available to our Beta Supporters.;sudo PLAYER hat error" + set {db_perk.hats::03.quartz} to "quartz block;&3&lQuartz Hat;&6This hat is crafted from the smoothest quartz||&6found in the hottest part of the Nether!;sudo PLAYER hat quartz;&6This hat is crafted from the smoothest quartz||&6found in the hottest part of the Nether!|| ||&cThis hat is only available to our Supporters.;sudo PLAYER hat error" + set {db_perk.hats::04.cactus} to "cactus;&3&lPrickly Hat;&6Wear this hat when you're feeling a bit....Prickly!;sudo PLAYER hat cactus;&6Wear this hat when you're feeling a bit....Prickly!|| ||&cThis hat must be purchased from the OBAMCraft shop.|| ||&eUse &f/buy &ein the hub to purchase the &3Prickly Hat|| ||&ePrice: &a$2.00;sudo PLAYER hat error" + +command /hatmenu []: + trigger: + loop {db_perk.hats::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lHat Rack" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.hats::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "02.beta": + player does not have permission "obam.beta.hat": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.quartz": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.cactus": + {db_purchase.cactus.%uuid of player%} is not set: + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /hat []: + trigger: + argument 1 is not set: + message "&cPlease use &7/OBAM &cto access your Hat Rack." + stop + argument 1 is "error": + message "&cThis hat is not available to you." + stop + argument 1 is "dirt": + set {_hat} to dirt + argument 1 is "beta": + player has permission "obam.beta.hat": + set {_hat} to iron pressure plate + argument 1 is "quartz": + player has permission "obam.supporter": + set {_hat} to quartz block + argument 1 is "cactus": + {db_purchase.cactus.%uuid of player%} is true: + set {_hat} to cactus + player has permission "obam.smod": + set {_hat} to cactus + send "&aYou now have a hat :D" to player + name of player's helmet is "hat": + set player's helmet to {_hat} + set name of player's helmet to "hat" + stop + player doesn't have space for player's helmet: + send "&cYour inventory is full :(" to player + stop + give player's helmet to player + set player's helmet to {_hat} + set name of player's helmet to "hat" + +command /hatadd : + permission: obam.admin + trigger: + add arg 1 to {hat.items.list::*} + +command /hatshow: + permission: obam.admin + trigger: + loop {hat.items.list::*}: + send "%loop-value%" to player + +every 0.3 seconds: + loop all players: + loop-player has anything named "hat": + remove anything named "hat" from loop-player + send "&cWhy did you have a hat in your pocket?" to loop-player + +on drop: + name of event-item is "hat": + cancel event + +on place: + name of player's tool is "hat": + cancel event + +command /hattoggle: + permission: obam.mod + trigger: + {hat.off.%player%} is not set: + set {hat.off.%player%} to true + send "&aYou have turned off your hat" to player + stop + {hat.off.%player%} is false: + set {hat.off.%player%} to true + send "&aYou have turned off your hat" to player + stop + {hat.off.%player%} is true: + set {hat.off.%player%} to false + send "&aYou have turned on your hat" to player + stop + +#staff hats constant +every 1 second: + loop all players: + set {_bypass} to false + {hat.off.%loop-player%} is true: + set {_bypass} to true + {_bypass} is false: + loop-player is "ISMOOCH": + set loop-player's helmet to command block named "&d&lSmooch's Sassy Hat" + loop-player is "Electric_Hamster": + set loop-player's helmet to sponge named "&b&lThe Hamster Hat" \ No newline at end of file diff --git a/Obam-Perks/Finished and placed/hitsounds.g.sk b/Obam-Perks/Finished and placed/hitsounds.g.sk new file mode 100644 index 0000000..f38632f --- /dev/null +++ b/Obam-Perks/Finished and placed/hitsounds.g.sk @@ -0,0 +1,336 @@ +on script load: + delete {db_perk.hit.class::*} + delete {db_perk.hit.hand::*} + delete {db_perk.hit.sword::*} + delete {db_perk.hit.axe::*} + delete {db_perk.hit.pickaxe::*} + delete {db_perk.hit.bow::*} + delete {db_perk.hit.rod::*} + + set {db_perk.hit.class::01.hand} to "stone button;&3Punch Sounds;&6Click to modify the sound you make when you||&6attack with your fists.;sudo PLAYER hitmenuchange hand;&6Click to modify the sound you make when you||&6attack with your fists.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::02.sword} to "iron sword;&3Sword Sounds;&6Click to modify the sound you make when you||&6attack with a sword.;sudo PLAYER hitmenuchange sword;&6Click to modify the sound you make when you||&6attack with a sword.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::03.axe} to "iron axe;&3Axe Sounds;&6Click to modify the sound you make when you||&6attack with an axe.;sudo PLAYER hitmenuchange axe;&6Click to modify the sound you make when you||&6attack with an axe.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::04.pickaxe} to "iron pickaxe;&3Pickaxe Sounds;&6Click to modify the sound you make when you||&6attack with a pickaxe.;sudo PLAYER hitmenuchange pickaxe;&6Click to modify the sound you make when you||&6attack with a pickaxe.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::05.bow} to "bow;&3Bow Sounds;&6Click to modify the sound you make when you||&6attack with a bow.;sudo PLAYER hitmenuchange bow;&6Click to modify the sound you make when you||&6attack with a bow.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::06.rod} to "fishing rod;&3Fishing Rod Sounds;&6Click to modify the sound you make when you||&6attack with a fishing rod.;sudo PLAYER hitmenuchange rod;&6Click to modify the sound you make when you||&6attack with a fishing rod.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::07.air} to "air" + set {db_perk.hit.class::08.air} to "air" + set {db_perk.hit.class::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your player.;sudo PLAYER hitsoundclear PLAYER" + + set {db_perk.hit.hand::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound hand note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound hand arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound hand anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound hand chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound hand click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound hand level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound hand villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::08.air} to "air" + set {db_perk.hit.hand::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound hand clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + + set {db_perk.hit.sword::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound sword note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound sword arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound sword anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound sword chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound sword click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound sword level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound sword villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::08.air} to "air" + set {db_perk.hit.sword::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound sword clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + + set {db_perk.hit.axe::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound axe note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound axe arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound axe anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound axe chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound axe click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound axe level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound axe villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::08.air} to "air" + set {db_perk.hit.axe::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound axe clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + + set {db_perk.hit.pickaxe::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound pickaxe note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound pickaxe arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound pickaxe anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound pickaxe chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound pickaxe click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound pickaxe level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound pickaxe villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::08.air} to "air" + set {db_perk.hit.pickaxe::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound pickaxe clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + + set {db_perk.hit.bow::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound bow note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound bow arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound bow anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound bow chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound bow click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound bow level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound bow villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::08.air} to "air" + set {db_perk.hit.bow::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound bow clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + + set {db_perk.hit.rod::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound rod note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound rod arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound rod anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound rod chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound rod click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound rod level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound rod villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::08.air} to "air" + set {db_perk.hit.rod::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound rod clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + +command /hitclassmenu: + trigger: + loop {db_perk.hit.class::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lHit Sound Classes" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.hit.class::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.hand": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.sword": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.axe": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.pickaxe": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "05.bow": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "06.rod": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /hitmenuchange []: + trigger: + argument 1 is set: + send "&aBringing up menu..." + wait 0.5 seconds + make player execute command "/hitmenu %argument 1%" + +command /hitmenu []: + trigger: + argument 1 is not set: + message "&cPlease use &7/OBAM &cto access your Hit Menu." + stop + argument 1 is "error": + message "&cThis hit class is not available to you." + stop + set {_type} to argument 1 + loop {db_perk.hit.%{_type}%::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lHit Sound Classes" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.hit.%{_type}%::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.note": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.arrow": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.anvil": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.chest": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "05.click": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "06.level": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "07.villager": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "08.clear": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + set {_thing1} to loop-index parsed as text + set {_thing2::*} to {_thing1} split at "." + set {_slot} to {_thing2::1} parsed as an integer + set {_slot} to {_slot} - 1 + format slot {_slot} of player with {_what} to be unstealable + format slot {_slot} of player with {_what} to close then run {_command} + +command /hitsound [] []: + trigger: + argument 1 is not set: + message "&cPlease use &7/OBAM &cto access your Hit Menu." + stop + argument 2 is "error": + message "&cThis hit sound is not available to you." + stop + set {_what} to argument 1 + set {_sound} to argument 2 + argument 2 is "clear": + clear {hit.%{_what}%.%player%} + send "&aAttack sounds cleared!" + stop + set {hit.%{_what}%.%player%} to "%{_sound}%" + send "&aAttack sound set to &e%{_sound}%!" + +on damage: + {hit.%attacker%} is set: + delete {hit.%attacker%} + attacker's tool is air: + set {_what} to "hand" + attacker's tool is a sword: + set {_what} to "sword" + attacker's tool is an axe: + set {_what} to "axe" + attacker's tool is a pickaxe: + set {_what} to "pickaxe" + attacker's tool is a bow: + set {_what} to "bow" + attacker's tool is a fishing rod: + set {_what} to "rod" + {hit.%{_what}%.%attacker%} is set: + {hit.%{_what}%.%attacker%} is "note": + chance of 14%: + play note bass at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 16%: + play note piano at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 20%: + play note bass drum at location of attacker with pitch 1 + set {_play} to true + chance of 25%: + play note sticks at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 33%: + play note bass guitar at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 50%: + play note snare drum at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play note pling at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "arrow": + chance of 50%: + play shoot arrow at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play arrow hit at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "chest": + chance of 50%: + play chest close at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play chest close at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "anvil": + chance of 33%: + play anvil break at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 50%: + play anvil land at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play anvil use at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "click": + play click at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "level": + chance of 50%: + play level up at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play orb pickup at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "villager": + chance of 16%: + play villager yes at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 20%: + play villager no at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 25%: + play villager death at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 33%: + play villager haggle at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 50%: + play villager idle at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play villager hit at location of attacker with pitch 1 + +command /hitsoundclear : + trigger: + delete {hit.hand.%argument 1%} + delete {hit.sword.%argument 1%} + delete {hit.axe.%argument 1%} + delete {hit.pickaxe.%argument 1%} + delete {hit.bow.%argument 1%} + delete {hit.rod.%argument 1%} + message "&2All of your hit sounds have been cleared." \ No newline at end of file diff --git a/Obam-Perks/Finished and placed/otam.g.sk b/Obam-Perks/Finished and placed/otam.g.sk new file mode 100644 index 0000000..1480de2 --- /dev/null +++ b/Obam-Perks/Finished and placed/otam.g.sk @@ -0,0 +1,142 @@ +every 1 second: + + set {_hold} to now + + {db_time.extend.tam} is less than now: + + clear {db_tam.bonus} + set {db_current.bonus} to false + clear {db_time.extend.tam} + clear {alert.tam.lastminute} + broadcast "&3&l۝TAM: &dTAM Bonus has Ended!" + execute console command "crossmessage &3&l۝TAM: &dTAM Bonus has Ended!" + + set {_diff} to difference between {db_time.extend.tam} and now + + {_diff} is less than 15 minutes: + + {alert.tam.lastminute} is not set: + set {alert.tam.lastminute} to true + + broadcast "&3&l۝TAM: &dLess than 15 minutes remaining of TAM Bonus at &e%{db_tam.bonus}%&d!" + execute console command "crossmessage &3&l۝TAM: &dLess than 15 minutes remaining of TAM Bonus at &e%{db_tam.bonus}%&d!" + + +command /tamextended : + permission: obam.admin + trigger: + + {db_time.extend.tam} is not set: + set {db_time.extend.tam} to now + {db_tamstats.time.%argument 2%} is not set: + set {db_tamstats.time.%argument 2%} to 0 + + #Not meant to be a real option.. just for debugging + arg 1 is 5: + + add 5 minutes to {db_time.extend.tam} + add 5 to {db_tamstats.time.%argument 2%} + + arg 1 is 30: + + add 30 minutes to {db_time.extend.tam} + add 30 to {db_tamstats.time.%argument 2%} + + arg 1 is 60: + + add 1 hour to {db_time.extend.tam} + add 60 to {db_tamstats.time.%argument 2%} + + arg 1 is 90: + + add 90 minutes to {db_time.extend.tam} + add 90 to {db_tamstats.time.%argument 2%} + + arg 1 is 120: + + add 2 hours to {db_time.extend.tam} + add 120 to {db_tamstats.time.%argument 2%} + + broadcast "&3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e%argument 1% Minutes&d!" + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e%argument 1% Minutes&d!" + + set {_diff} to difference between {db_time.extend.tam} and now + + broadcast "&3&l۝TAM: &e%{_diff}% &dremaining!" + execute console command "crossmessage &3&l۝TAM: &e%{_diff}% &dremaining!" + broadcast "&3&l۝TAM: &dUse &e/tam &dfor more details!" + execute console command "crossmessage &3&l۝TAM: &dUse &e/tam &dfor more details!" + clear {alert.tam.lastminute} + + set {db_current.bonus} to true + {db_tam.bonus} is not set: + + set {db_tam.bonus} to 0.1 + + {db_tamstats.bonus.%argument 2%} is not set: + set {db_tamstats.bonus.%argument 2%} to 0 + + add 0.1 to {db_tamstats.bonus.%argument 2%} + + broadcast "&3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by &e0.1&d!" + broadcast "&3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d! " + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by 0.1! The TAM Bonus is now at &e%{db_tam.bonus}%&d! " + execute console command "crossmessage &3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d! " + +command /tambonus : + permission: obam.admin + trigger: + + {db_tamstats.bonus.%argument 2%} is not set: + set {db_tamstats.bonus.%argument 2%} to 0 + + {db_tam.bonus} is not set: + set {db_tam.bonus} to 0 + + add argument 1 to {db_tam.bonus} + add argument 1 to {db_tamstats.bonus.%argument 2%} + + broadcast "&3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by &e%argument 1%&d!" + broadcast "&3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d!" + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by &e%argument 1%&d! The TAM Bonus is now at &e%{db_tam.bonus}%&d!" + execute console command "crossmessage &3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d!" + + + {db_time.extend.tam} is not set: + set {db_time.extend.tam} to now + + {db_tamstats.time.%argument 2%} is not set: + set {db_tamstats.time.%argument 2%} to 0 + + add 60 to {db_tamstats.time.%argument 2%} + + add 1 hour to {db_time.extend.tam} + clear {alert.tam.lastminute} + broadcast "&3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e60 Minutes&d!" + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e60 Minutes&d!" + + set {_diff} to difference between {db_time.extend.tam} and now + + broadcast "&3&l۝TAM: &e%{_diff}% &dremaining!" + execute console command "crossmessage &3&l۝TAM: &e%{_diff}% &dremaining!" + broadcast "&3&l۝TAM: &dUse &e/tam &dfor more details!" + execute console command "crossmessage &3&l۝TAM: &dUse &e/tam &dfor more details!" + + + + +# Debugging Clear command +command /tambonusclear: + permission: obam.admin + trigger: + + clear {db_tam.bonus} + set {db_current.bonus} to false + clear {db_time.extend.tam} + clear {alert.tam.lastminute} + + send "&3&l۝TAM: &dTAM Bonus Cleared" to console + send "&3&l۝TAM: &dTAM Bonus Cleared" + + + \ No newline at end of file diff --git a/Obam-Perks/Finished and placed/perks.g.sk b/Obam-Perks/Finished and placed/perks.g.sk new file mode 100644 index 0000000..112c44a --- /dev/null +++ b/Obam-Perks/Finished and placed/perks.g.sk @@ -0,0 +1,101 @@ +on script load: + delete {db_perk.main::*} + set {db_perk.main::01.hats} to "iron pressure plate;&3Hat Rack;&6Gives you access to your virtual Hat Rack.;sudo PLAYER obam hatmenu" + set {db_perk.main::02.pets} to "lead;&3Pet Stable;&6Opens up your Pet Stable to summon your pets.;sudo PLAYER obam petmenu" + set {db_perk.main::03.trails} to "arrow;&3Trails Menu;&6Opens up your Projectile Trails Menu.;sudo PLAYER obam trailmenu" + set {db_perk.main::04.splash} to "cobweb;&3Splash Menu;&6Opens up your Splash Menu.;sudo PLAYER obam splashmenu" + set {db_perk.main::05.hit} to "jukebox;&3Hit Sound Menu;&6Opens up your Hit Sound Menu.;sudo PLAYER obam hitclassmenu" + set {db_perk.main::06.horse} to "horse spawn egg;&3Horse Changer Upper;&6Want to Skellify of Zombify your ride?;sudo PLAYER obam horsemenu" + set {db_perk.main::07.blank} to "air" + set {db_perk.main::08.shop} to "emerald;&3Shop;&6Opens up the Shop Menu.;sudo PLAYER obam shop" + set {db_perk.main::09.ci} to "command block;&3Custom Items Menu;&6Opens the Custom Item menu to access items.;sudo PLAYER obam ci" + +command /obam []: + permission: obam.free + trigger: + argument 1 is not set: + loop {db_perk.main::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lOBAM Perks and Shop Menu" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.main::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "07.ci": + player does not have permission "obam.smod": + clear {_what} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + loop-index is "07.ci": + player does not have permission "obam.smod": + clear {_what} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + argument 1 is set: +# argument 1 is "hatmenu": +# "%player's world%" contains "taco": +# message "&cYou can not use that here." +# stop + argument 1 is "petmenu": + "%player's world%" is "kitspawnroom" or "vacant": + message "&cYou can not use that here." + stop + "%player's world%" contains "cart": + message "&cYou can not use that here." + stop +# argument 1 is "trailmenu": +# "%player's world%" contains "taco": +# message "&cYou can not use that here." +# stop +# argument 1 is "splashmenu": +# "%player's world%" contains "taco": +# message "&cYou can not use that here." +# stop +# argument 1 is "hitclassmenu": +# "%player's world%" contains "taco": +# message "&cYou can not use that here." +# stop + argument 1 is "horsemenu": + "%player's world%" is "Death-hub", "skyworld", "kitspawnroom" or "vacant": + message "&cYou can not use that here." + stop + "%player's world%" contains "taco": + message "&cYou can not use that here." + stop + argument 1 is "shop": + "%player's world%" is "Death-hub", "skyworld", "kitspawnroom" or "vacant": + message "&cYou can not use that here." + stop + "%player's world%" contains "taco": + message "&cYou can not use that here." + stop + argument 1 is "ci": + "%player's world%" is "Death-hub", "skyworld", "kitspawnroom" or "vacant": + message "&cYou can not use that here." + stop + "%player's world%" contains "taco": + message "&cYou can not use that here." + stop + send "&aBringing up menu..." + wait 0.5 seconds + make player execute command "/%argument 1%" + +command /sudo : + permission: obam.admin + trigger: + make argument 1 execute argument 2 \ No newline at end of file diff --git a/Obam-Perks/Finished and placed/pets.g.sk b/Obam-Perks/Finished and placed/pets.g.sk new file mode 100644 index 0000000..1833dcf --- /dev/null +++ b/Obam-Perks/Finished and placed/pets.g.sk @@ -0,0 +1,190 @@ +on script load: + delete {db_perk.pets::*} + set {db_perk.pets::01.ismooch} to "sheep spawn egg;&3iSmooch;&6The sassiest sheep in all the lands!;sudo PLAYER pet ismooch" + set {db_perk.pets::02.bruswain} to "bat spawn egg;&3BruSwain;&6This lovable bat lost his parents at a||&6young age. Thank you for taking care||&6of him!;sudo PLAYER pet bruswain;bat spawn egg;&3BruSwai&6This lovable bat lost his parents at a||&6young age. Thank you for taking care||&6of him!|| ||&cThis pet is only available to our Beta Supporters.;sudo PLAYER pet error" + set {db_perk.pets::03.sparky} to "creeper spawn egg;&3Sparky;&6While this creeper appears to have a||&6dangerously electrifying personality, we||&6promise he’s completely safe!;sudo PLAYER pet sparky;creeper spawn egg;&3Sparky;&6While this creeper appears to have a||&6dangerously electrifying personality, we||&6promise he’s completely safe!|| ||&cThis pet is only available to our Supporters.;sudo PLAYER pet error" + set {db_perk.pets::04.bacon} to "pig spawn egg;&3Bacon;&6Rescued from the final stages of the||&6slaughter house, this pig is extremely||&6grateful for your love and kindness!;sudo PLAYER pet bacon;pig spawn egg;&3Baco&6Rescued from the final stages of the||&6slaughter house, this pig is extremely||&6grateful for your love and kindness!|| ||&cThis pet must be purchased from the OBAMCraft shop.|| ||&eUse &f/buy &ein the hub purchase &3Bacon|| ||&ePrice: &a$5.00;sudo PLAYER pet error" + set {db_perk.pets::05.blank} to "air" + set {db_perk.pets::06.blank} to "air" + set {db_perk.pets::07.lead} to "lead;&3Leash;&6Pets getting out of control? Click this||&6to attach a lead to all of your||&6summoned pets!;sudo PLAYER pet lead" + set {db_perk.pets::08.blank} to "air" + set {db_perk.pets::09.clear} to "fire;&3Clear;&6Click to clear all summoned pets!;sudo PLAYER pet clear" + +command /petmenu: + trigger: + loop {db_perk.pets::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lPet Stable" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.pets::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "02.bruswain": + player does not have permission "obam.beta.hat": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.sparky": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.bacon": + {db_purchase.bacon.%uuid of player%} is not set: + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +every 1 second: + loop all entities: + loop-entity is sheep or bat or powered creeper or pig: + name of loop-entity is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon": + spawn 4 particle heart offset by 1, 1, 1 at location of loop-entity + {owner.%loop-entity%} is not set: + kill loop-entity + distance between location of loop-entity and location of {owner.%loop-entity%} is greater than 20: + teleport loop-entity to location of {owner.%loop-entity%} + +on damage of sheep or bat or powered creeper or pig: + name of victim is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon": + cancel event + +on quit: + kill {pets.%player%} + clear {pets.%player%} + loop {pets.%player%::*}: + clear {owner.%loop-value%} + kill loop-value + clear {pets.%player%::*} + stop + +command /pet []: + trigger: + world is "kitpvpkillingfields": + send "&cYou can not do that here" to player + stop + argument is not set: + message "&cPlease use &7/OBAM &cto access your Pet Stable." + stop + argument is "error": + message "&cThis pet is not available to you." + stop + argument is "lead": + loop {pets.%player%::*}: + teleport loop-value to location of player + make player leash loop-value + stop + argument is "clear": + kill {pets.%player%} + clear {pets.%player%} + loop {pets.%player%::*}: + kill loop-value + clear {owner.%loop-value%} + clear {pets.%player%::*} + stop + {pets.%player%} is set: + player does not have permission "obam.supporter": + send "&cYou can only have one pet at a time!" to player + stop + size of {pets.%player%::*} is 5: + send "&cYou can only have 5 pets at a time!" to player + stop + argument is "ISMOOCH": + spawn sheep at location of player + set name of spawned sheep to "&aISMOOCH" + set color of spawned sheep to pink + make player leash spawned sheep + set {pets.%player%} to spawned sheep + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + argument is "BruSwain": + player has permission "obam.beta.hat": + spawn bat at location of player + set name of spawned bat to "&aBru Swain" + make player leash spawned bat + set {pets.%player%} to spawned bat + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + send "&cThis is for beta supporters only!" to player + argument is "Sparky": + player has permission "obam.supporter": + spawn powered creeper at location of player + set name of spawned powered creeper to "&aSparky" + make player leash spawned powered creeper + set {pets.%player%} to spawned powered creeper + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + send "&cYou must be a supporter to do this!" to player + argument is "bacon": + {db_purchase.bacon.%uuid of player%} is true: + spawn pig at location of player + set name of spawned pig to "&aBacon" + make player leash spawned pig + set {pets.%player%} to spawned pig + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + player has permission "obam.smod": + spawn pig at location of player + set name of spawned pig to "&aBacon" + make player leash spawned pig + set {pets.%player%} to spawned pig + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + send "&cYou must purchase this pet on the online store!" + stop + argument is "dragon": + send "&cI bet you wish you could...." to player + stop + send "&cThat is not an option!" to player + +on explosion prime: + entity is powered creeper: + name of entity is "&aSparky": + cancel event + +on death of a sheep or a bat or a powered creeper or a pig: + name of victim is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon" + clear drops + +on right click on a sheep or a bat or a powered creeper or a pig: + name of target is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon": + cancel event + +on right click with wheat on sheep: + name of event-entity is "&aISMOOCH" + cancel event + send "&cYou can not mate pets D:" to event-player + +on right click with carrot on sheep: + name of event-entity is "&aBacon" + cancel event + send "&cYou can not mate pets D:" to event-player + +on right click with shears on sheep: + name of event-entity is "&aISMOOCH" + cancel event + send "&cYou can not shear pets!" to event-player diff --git a/Obam-Perks/Finished and placed/purchase.sk b/Obam-Perks/Finished and placed/purchase.sk new file mode 100644 index 0000000..4193ca4 --- /dev/null +++ b/Obam-Perks/Finished and placed/purchase.sk @@ -0,0 +1,15 @@ +command /buycraftpurchase : + permission: obam.admin + trigger: + set {_name} to argument 2 parsed as a player + set {_who} to {db_name.%{_name}%} + set {db_purchase.%argument 1%.%argument 2%} to true + send "%Argument 2% has purchased %Argument 1%" to console + +on login: + {db_purchase.bacon.%player%} is set: + set {db_purchase.bacon.%uuid of player%} to {db_purchase.bacon.%player%} + delete {db_purchase.bacon.%player%} + {db_purchase.cactus.%player%} is set: + set {db_purchase.cactus.%uuid of player%} to {db_purchase.cactus.%player%} + delete {db_purchase.cactus.%player%} \ No newline at end of file diff --git a/Obam-Perks/Finished and placed/splash.g.sk b/Obam-Perks/Finished and placed/splash.g.sk new file mode 100644 index 0000000..c587a4c --- /dev/null +++ b/Obam-Perks/Finished and placed/splash.g.sk @@ -0,0 +1,214 @@ +on script load: + delete {db_perk.splash::*} + set {db_perk.splash::01.heart} to "red dye;&3Heart Particles;&6Click to enable a heart splash!;sudo PLAYER splash heart;red dye;&3Heart Particles;&6Click to enable a heart splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::02.flame} to "fire;&3Flame Particles;&6Click to enable a flame splash!;sudo PLAYER splash flame;fire;&3Flame Particles;&6Click to enable a flame splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::03.reddust} to "magma cream;&3Unstable Gas Particles;&6Click to enable an unstable gas splash!;sudo PLAYER splash reddust;magma cream;&3Unstable Gas Particles;&6Click to enable an unstable gas splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::04.smoke} to "charcoal;&3Dark Smoke Particles;&6Click to enable a dark smoke splash!;sudo PLAYER splash smoke;charcoal;&3Dark Smoke Particles;&6Click to enable a dark smoke splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::05.waterdrip} to "water;&3Water Drip Particles;&6Click to enable a water drip splash!;sudo PLAYER splash waterdrip;water;&3Water Drip Particles;&6Click to enable a water drip splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::06.lavadrip} to "lava;&3Lava Drip Particles;&6Click to enable a lava drip splash!;sudo PLAYER splash lavadrip;lava;&3Lava Drip Particles;&6Click to enable a lava drip splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::07.slime} to "slimeball;&3Slime Particles;&6Click to enable a slime splash!;sudo PLAYER splash slime;slimeball;&3Slime Particles;&6Click to enable a slime splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::08.note} to "jukebox;&3Music Notes Particles;&6Click to enable a music note splash!;sudo PLAYER splash note;jukebox;&3Music Notes Particles;&6Click to enable a music note splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::09.happy} to "villager spawn egg;&3Villager Particles “Happy”;&6Click to enable a happy villager splash!;sudo PLAYER splash happy;villager spawn egg;&3Villager Particles “Happy”;&6Click to enable a happy villager splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::10.angry} to "villager spawn egg;&3Villager Particles “Angry”;&6Click to enable a angry villager splash!;sudo PLAYER splash angry;villager spawn egg;&3Villager Particles “Angry”;&6Click to enable a angry villager splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::11.explode} to "tnt;&3Explosion Smoke Particles;&6Click to enable a explosion smoke splash!;sudo PLAYER splash explode;tnt;&3Explosion Smoke Particles;&6Click to enable a explosion smoke splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::12.snow} to "snow block;&3Snowflake Particles;&6Click to enable a snowflake splash!;sudo PLAYER splash snow;snow block;&3Snowflake Particles;&6Click to enable a snowflake splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::13.portal} to "nether portal;&3Nether Portal Particles;&6Click to enable a nether portal splash!;sudo PLAYER splash portal;nether portal;&3Nether Portal Particles;&6Click to enable a nether portal splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::14.cloud} to "bonemeal;&3Cloud Particles;&6Click to enable a cloud splash!;sudo PLAYER splash cloud;bonemeal;&3Cloud Particles;&6Click to enable a cloud splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::15.bubble} to "water bottle;&3Bubble Particles;&6Click to enable a bubble splash!;sudo PLAYER splash bubble;water bottle;&3Bubble Particles;&6Click to enable a bubble splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::16.blank} to "air" + set {db_perk.splash::17.blank} to "air" + set {db_perk.splash::18.clear} to "glass;&3Clear Particles;&6Click to clear your splash!;sudo PLAYER splash clear;glass;&3Clear Particles;&6Click to clear your splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + +command /splashmenu: + trigger: + loop {db_perk.splash::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lSplash Menu" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.splash::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.heart": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.flame": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.reddust": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.smoke": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "05.waterdrip": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "06.lavadrip": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "07.slime": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "08.note": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "09.happy": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "10.angry": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "11.explode": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "12.snow": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "13.portal": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "14.cloud": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "15.bubble": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "16.clear": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /splash []: + trigger: + argument is not set: + message "&cPlease use &7/OBAM &cto access the Splash Menu." + stop + argument is "error": + message "&cThis splash is not available to you." + stop + player has permission "obam.supporter": + argument is "heart": + set {splash.%player%} to "heart" + send "&aYou have enabled a &eHeart Splash&a!" + argument is "flame": + set {splash.%player%} to "flame" + send "&aYou have enabled a &eFlame Splash&a!" + argument is "reddust": + set {splash.%player%} to "reddust" + send "&aYou have enabled an &eUnstable Gas Splash&a!" + argument is "smoke": + set {splash.%player%} to "smoke" + send "&aYou have enabled a &eDark Smoke Splash&a!" + argument is "waterdrip": + set {splash.%player%} to "waterdrip" + send "&aYou have enabled a &eWater Drip Splash&a!" + argument is "lavadrip": + set {splash.%player%} to "lavadrip" + send "&aYou have enabled a &eLava Drip Splash&a!" + argument is "slime": + set {splash.%player%} to "slime" + send "&aYou have enabled a &eSlime Splash&a!" + argument is "note": + set {splash.%player%} to "note" + send "&aYou have enabled a &eMusic Note Splash&a!" + argument is "happy": + set {splash.%player%} to "happy" + send "&aYou have enabled a &eHappy Villager Splash&a!" + argument is "angry": + set {splash.%player%} to "angry" + send "&aYou have enabled an &eAngry Villager Splash&a!" + argument is "explode": + set {splash.%player%} to "explode" + send "&aYou have enabled an &eExplosion Smoke Splash&a!" + argument is "snow": + set {splash.%player%} to "snow" + send "&aYou have enabled a &eSnowflake Splash&a!" + argument is "bubble": + set {splash.%player%} to "bubble" + send "&aYou have enabled a &eBubble Splash&a!" + argument is "portal": + set {splash.%player%} to "portal" + send "&aYou have enabled a &eNether Portal Splash&a!" + argument is "cloud": + set {splash.%player%} to "cloud" + send "&aYou have enabled a &eCloud Splash&a!" + argument is "clear": + clear {splash.%player%} + send "&aYou have disabled your splash!" + +every 5 seconds: + loop all players: + clear {_amt} + loop-player is not sneaking + loop-player is sprinting: + set {_amt} to 100 + {_amt} is not set: + set {_amt} to 50 + {splash.%loop-player%} is set: + {splash.%loop-player%} is "bubble": + spawn 500 particle bubble offset by 2, 2, 2 at location of loop-player + {splash.%loop-player%} is "cloud": + spawn {_amt} particle cloud offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "heart": + spawn {_amt} particle heart offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "flame": + spawn {_amt} particle flame offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "reddust": + spawn {_amt} particle red dust offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "smoke": + spawn {_amt} particle large smoke offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "note": + spawn {_amt} particle note offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "lavadrip": + spawn {_amt} particle drip lava offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "waterdrip": + spawn {_amt} particle drip water offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "slime": + spawn {_amt} particle slime offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "happy": + spawn {_amt} particle happy villager offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "angry": + spawn {_amt} particle angry villager offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "explode": + spawn {_amt} particle large explode offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "snow": + spawn {_amt} particle snow shovel offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "portal": + spawn {_amt} particle portal offset by 1, 1, 1 at location of loop-player \ No newline at end of file diff --git a/Obam-Perks/Finished and placed/suphorse.g.sk b/Obam-Perks/Finished and placed/suphorse.g.sk new file mode 100644 index 0000000..da5685c --- /dev/null +++ b/Obam-Perks/Finished and placed/suphorse.g.sk @@ -0,0 +1,70 @@ +on script load: + delete {db_perk.suphorse::*} + set {db_perk.suphorse::01.zombify} to "zombie spawn egg;&3Zombify your ride!;&6Feel like roaming the plains on your Zombified Horse?;sudo PLAYER suphorse zombify;zombie spawn egg;&3Zombify your ride!;&6Feel like roaming the plains on your Zombified Horse?|| ||&cThis ability is only available to our Supporters.;sudo PLAYER suphorse error" + set {db_perk.suphorse::02.skellify} to "skeleton spawn egg;&3Skellify your ride!;&6Feel like roaming the deserts on your Skellified Horse?;sudo PLAYER suphorse skellify;skeleton spawn egg;&3Skellify your ride!;&6Feel like roaming the deserts on your Skellified Horse?|| ||&cThis ability is only available to our Supporters.;sudo PLAYER suphorse error" + +command /horsemenu: + trigger: + loop {db_perk.suphorse::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lHorse O' Matic" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.suphorse::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.zombify": + player does not have permission "obam.beta.hat": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.skellify": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /suphorse []: + trigger: + player is not riding: + send "&cYou must be riding a horse to do this!" + stop + player's vehicle is not a horse: + send "&cYou must be riding a horse to do this!" + stop + argument is not set: + message "&cPlease use &7/OBAM &cto access your modify your horse." + stop + argument is "error": + message "&cThis ability is not available to you." + stop + "%player's world%" is "world": + set {_y} to y-coordinate of player + set {_x} to x-coordinate of player + set {_z} to z-coordinate of player + argument is "zombify": + execute console command "summon EntityHorse %{_x}% %{_y}% %{_z}% {Type:3,Tame:1}" + argument is "skellify": + execute console command "summon EntityHorse %{_x}% %{_y}% %{_z}% {Type:4,Tame:1}" + delete player's vehicle + stop + message "&cThis can only be used in the Regular World." \ No newline at end of file diff --git a/Obam-Perks/Finished and placed/tam.g.sk b/Obam-Perks/Finished and placed/tam.g.sk new file mode 100644 index 0000000..303d62b --- /dev/null +++ b/Obam-Perks/Finished and placed/tam.g.sk @@ -0,0 +1,71 @@ +every 1 minute: + {db_tam.modifier} is not set: + set {db_tam.modifier} to 1 + set {_add} to {db_tam.modifier} + #OTAM Hook + {db_tam.bonus} is set: + add {db_tam.bonus} to {_add} + loop all players: + add {_add} to loop-player's balance + {session.tam.%loop-player%} is not set: + set {session.tam.%loop-player%} to 0 + add {_add} to {session.tam.%loop-player%} + {db_total.tam.%uuid of loop-player%} is not set: + {db_total.tam.%loop-player%} is set: + set {db_total.tam.%uuid of loop-player%} to {db_total.tam.%loop-player%} + else: + set {db_total.tam.%uuid of loop-player%} to 0 + add {_add} to {db_total.tam.%uuid of loop-player%} + {db_total.tam} is not set: + set {db_total.tam} to 0 + add {_add} to {db_total.tam} + {db_total.reg} is not set: + set {db_total.reg} to 0 + add {_add} to {db_total.reg} + +command /tam: + permission: obam.free + trigger: + send "&aTotal Tickets earned with -TAM-:" + send "&e%{db_total.tam.%uuid of player%}%" + send "&aTotal this session:" + send "&e%{session.tam.%player%}%" + send "&aTotal Tickets:" + send "&e%player's balance%" + #OTAM Hook + {db_tam.bonus} is not set: + send "&aCurrent -TAM- Modifier:" + send "&e%{db_tam.modifier}%" + #OTAM Hooks + {db_tam.bonus} is set: + send "&aCurrent -TAM- Modifier:" + send "&e%{db_tam.modifier}% &c&o+ %{db_tam.bonus}%" + send "&4Remaining -TAM- Bonus Time:" + set {_diff} to difference between {db_time.extend.tam} and now + send "&c%{_diff}%" + send "&4OTAM Time Contributions:" + send "&c%{db_tamstats.time.%uuid of player%}% minutes" + send "&4OTAM Bonus Contributions:" + send "&c%{db_tamstats.bonus.%uuid of player%}%" + +command /tamtotal: + permission: obam.admin + trigger: + send "&aTotal Global Tickets earned with -TAM-:" + send "&e%{db_total.tam}%" + send "&aRegular:" + send "&e%{db_total.reg}%" + send "&aSupporter:" + send "&e%{db_total.sup}%" + send "&aPlus:" + send "&e%{db_total.plus}%" + send "&aUltimate:" + send "&e%{db_total.ult}%" + +on join: + set {session.tam.%player%} to 0 + +command /tammodset : + permission: obam.admin + trigger: + set {db_tam.modifier} to argument diff --git a/Obam-General/moneystuff.sk b/Obam-Perks/Finished and placed/tickets.g.sk similarity index 100% rename from Obam-General/moneystuff.sk rename to Obam-Perks/Finished and placed/tickets.g.sk diff --git a/Obam-Perks/Finished and placed/trails.g.sk b/Obam-Perks/Finished and placed/trails.g.sk new file mode 100644 index 0000000..a163ad8 --- /dev/null +++ b/Obam-Perks/Finished and placed/trails.g.sk @@ -0,0 +1,205 @@ +on script load: + delete {db_perk.trails::*} + set {db_perk.trails::01.heart} to "red dye;&3Heart Particles;&6Click to enable heart trails!;sudo PLAYER trails heart;red dye;&3Heart Particles;&6Click to enable heart trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::02.flame} to "fire;&3Flame Particles;&6Click to enable flame trails!;sudo PLAYER trails flame;fire;&3Flame Particles;&6Click to enable flame trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::03.reddust} to "magma cream;&3Unstable Gas Particles;&6Click to enablen unstable gas trails!;sudo PLAYER trails reddust;magma cream;&3Unstable Gas Particles;&6Click to enablen unstable gas trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::04.smoke} to "charcoal;&3Dark Smoke Particles;&6Click to enable dark smoke trails!;sudo PLAYER trails smoke;charcoal;&3Dark Smoke Particles;&6Click to enable dark smoke trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::05.waterdrip} to "water;&3Water Drip Particles;&6Click to enable water drip trails!;sudo PLAYER trails waterdrip;water;&3Water Drip Particles;&6Click to enable water drip trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::06.lavadrip} to "lava;&3Lava Drip Particles;&6Click to enable lava drip trails!;sudo PLAYER trails lavadrip;lava;&3Lava Drip Particles;&6Click to enable lava drip trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::07.slime} to "slimeball;&3Slime Particles;&6Click to enable slime trails!;sudo PLAYER trails slime;slimeball;&3Slime Particles;&6Click to enable slime trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::08.note} to "jukebox;&3Music Notes Particles;&6Click to enable music note trails!;sudo PLAYER trails note;jukebox;&3Music Notes Particles;&6Click to enable music note trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::09.happy} to "villager spawn egg;&3Villager Particles “Happy”;&6Click to enable happy villager trails!;sudo PLAYER trails happy;villager spawn egg;&3Villager Particles “Happy”;&6Click to enable happy villager trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::10.angry} to "villager spawn egg;&3Villager Particles “Angry”;&6Click to enable angry villager trails!;sudo PLAYER trails angry;villager spawn egg;&3Villager Particles “Angry”;&6Click to enable angry villager trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::11.explode} to "tnt;&3Explosion Smoke Particles;&6Click to enable explosion smoke trails!;sudo PLAYER trails explode;tnt;&3Explosion Smoke Particles;&6Click to enable explosion smoke trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::12.snow} to "snow block;&3Snowflake Particles;&6Click to enable snowflake trails!;sudo PLAYER trails snow;snow block;&3Snowflake Particles;&6Click to enable snowflake trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::13.portal} to "nether portal;&3Nether Portal Particles;&6Click to enable nether portal trails!;sudo PLAYER trails portal;nether portal;&3Nether Portal Particles;&6Click to enable nether portal trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::14.cloud} to "bonemeal;&3Cloud Particles;&6Click to enable cloud trails!;sudo PLAYER trails cloud;bonemeal;&3Cloud Particles;&6Click to enable cloud trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::15.blank} to "air" + set {db_perk.trails::16.blank} to "air" + set {db_perk.trails::17.blank} to "air" + set {db_perk.trails::18.clear} to "glass;&3Clear Particles;&6Click to clear your trails!;sudo PLAYER trails clear;glass;&3Clear Particles;&6Click to clear your trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + +command /trailmenu: + trigger: + loop {db_perk.trails::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lTrails Menu" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.trails::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.heart": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.flame": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.reddust": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.smoke": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "05.waterdrip": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "06.lavadrip": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "07.slime": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "08.note": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "09.happy": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "10.angry": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "11.explode": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "12.snow": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "13.portal": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "14.cloud": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "15.bubble": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "16.clear": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /trails []: + trigger: + argument is not set: + message "&cPlease use &7/OBAM &cto access the Trails Menu." + stop + argument is "error": + message "&cThis trail is not available to you." + stop + player has permission "obam.supporter": + delete {trail.%player%} + argument is "heart": + set {trails.%player%} to "heart" + send "&aYou have enabled &eHeart trails&a!" + argument is "flame": + set {trails.%player%} to "flame" + send "&aYou have enabled &eFlame trails&a!" + argument is "reddust": + set {trails.%player%} to "reddust" + send "&aYou have enabled &eUnstable Gas trails&a!" + argument is "smoke": + set {trails.%player%} to "smoke" + send "&aYou have enabled &eDark Smoke trails&a!" + argument is "waterdrip": + set {trails.%player%} to "waterdrip" + send "&aYou have enabled &eWater Drip trails&a!" + argument is "lavadrip": + set {trails.%player%} to "lavadrip" + send "&aYou have enabled &eLava Drip trails&a!" + argument is "slime": + set {trails.%player%} to "slime" + send "&aYou have enabled &eSlime trails&a!" + argument is "note": + set {trails.%player%} to "note" + send "&aYou have enabled &eMusic Note trails&a!" + argument is "happy": + set {trails.%player%} to "happy" + send "&aYou have enabled &eHappy Villager trails&a!" + argument is "angry": + set {trails.%player%} to "angry" + send "&aYou have enabled &eAngry Villager trails&a!" + argument is "explode": + set {trails.%player%} to "explode" + send "&aYou have enabled &eExplosion Smoke trails&a!" + argument is "snow": + set {trails.%player%} to "snow" + send "&aYou have enabled &eSnowflake trails&a!" + argument is "portal": + set {trails.%player%} to "portal" + send "&aYou have enabled &eNether Portal trails&a!" + argument is "cloud": + set {trails.%player%} to "cloud" + send "&aYou have enabled &eCloud trails&a!" + argument is "clear": + clear {trails.%player%} + send "&aYou have disabled your trails!" + +on shoot: + {trails.%shooter%} is set: + {trails.%shooter%} is "heart": + trail projectile with particle heart + {trails.%shooter%} is "flame": + trail projectile with particle flame + {trails.%shooter%} is "reddust": + trail projectile with particle red dust + {trails.%shooter%} is "smoke": + trail projectile with particle large smoke + {trails.%shooter%} is "bubble": + trail projectile with particle bubble + {trails.%shooter%} is "note": + trail projectile with particle note + {trails.%shooter%} is "lavadrip": + trail projectile with particle drip lava + {trails.%shooter%} is "waterdrip": + trail projectile with particle drip water + {trails.%shooter%} is "slime": + trail projectile with particle slime + {trails.%shooter%} is "happy": + trail projectile with particle happy villager + {trails.%shooter%} is "angry": + trail projectile with particle angry villager + {trails.%shooter%} is "explode": + trail projectile with particle large explode + {trails.%shooter%} is "snow": + trail projectile with particle snow shovel + {trails.%shooter%} is "portal": + trail projectile with particle portal + {trails.%shooter%} is "cloud": + trail projectile with particle cloud diff --git a/Obam-Survival/LandAdd.sk b/Obam-Survival/LandAdd.sk deleted file mode 100644 index ca775f1..0000000 --- a/Obam-Survival/LandAdd.sk +++ /dev/null @@ -1,8 +0,0 @@ -command /frontlandadd : - permission: obam.admin - trigger: - {availibleland.%argument 1%} is not set: - set {availibleland.%argument 1%} to 1 - add argument 2 to {availibleland.%argument 1%} - - log "%date%%argument 2% plots added to %argument 1%'s availible land. their number is now %{availibleland.%argument 1%}" to "logs/fronts/LAND-ADDITIONS.log" diff --git a/Obam-Survival/disenchant.sk b/Obam-Survival/disenchant.sk deleted file mode 100644 index b0a7941..0000000 --- a/Obam-Survival/disenchant.sk +++ /dev/null @@ -1,29 +0,0 @@ -command /unenchant: - executable by: players - permission: obam.free - aliases: /disenchant - trigger: - player's tool is enchanted - player's tool is not a sword or axe or pickaxe or shovel or bow or helmet or chestplate or leggings or boots: - message "&cYou may only disenchant Armour, Weapons or Tools!" to player - stop - - - set {_bal} to player's balance - {_bal} is less than 200: - send "&cYou do not have enough tickets to do this!" to player - stop - player's level is less than 15: - - send "&cYou must have at least 15 levels to do this!" to player - stop - disenchant player's tool - - reduce the player's level by 15 - - remove 200 from player's balance - send "&6&lThe Gods have taken their gifts back!" to player - send "&aYou have used &e200 Tickets&a to disenchant this tool" to player - send "&aYou have &e%player's balance%&a remaining" to player - log "%player%^%{_bal}%^DEDUCT^200^%player's balance%^DISENCHANT FEE" to "tickets/disenchant.log" - stop diff --git a/Obam-Survival/fortune.sk b/Obam-Survival/fortune.sk deleted file mode 100644 index 97970b4..0000000 --- a/Obam-Survival/fortune.sk +++ /dev/null @@ -1,192 +0,0 @@ -#The Fortune Aura will cause minerals a chance to drop extras but at the cost of notifying everyone else to your location. - #Parts - #Toggle for alerts - #command on/off - #rising chance vs. time - -variables: - {fortune.spam.%player%} = 0 - -command /aura [] [] [text]: - permission: obam.free - description: For all Aura related commands - trigger: - {abstain.%player%} is true: - send "&cThis feature is unavailable while abstaining" - stop - {abstain.%player%} is "wait abstain": - send "&cThis feature is unavailable while abstaining" - stop - {abstain.%player%} is "wait pvp": - send "&cThis feature is unavailable while abstaining" - stop - argument 1 is not set: - {current.aura.%player%} is not set: - send "&7You do not have an active aura! Use &e/aura list&7 for a list of available auras" - stop - {current.aura.%player%} is "fortune": - send "&7You have the &eFortune Aura&7 activated" to player - send "&7You have a &6%{fortune.chance.%player%}% Percent&7 chance to find extra ingots/gems" to player - argument 1 is "help" or "h": - message "&3--[&6&lAura Help&3]--" - message "&cRequired = [] Optional = ()" - message "&a * /Aura" - message "&7 Shows you information regarding your current Aura." - message "&a * /aura [alerts] [on/off]" - message "&7 Turn on/off aura alerts from other players." - message "&a * /aura [aura-name] [on/off]" - message "&7 A mystical aura is placed on you, with a price to pay." - send "&a * /aura list" - send "&7 Lists the currently available auras." - send " " - send " " - send "&6Developed for &7OBAMCraft &eBy: &aThe OBAM Mechanics" - send "&cV 1.0" - argument 1 is "alerts": - argument 2 is not set : - send "&cYou must choose &6on&c or &6off&c." to player - argument 2 is "on": - set {aura.alert.%player%} to true - send "&aYou have activated aura alerts." to player - argument 2 is "off": - set {aura.alert.%player%} to false - send "&aYou have deactivated aura alerts." to player - argument 1 is "fortune": - argument 2 is not set: - send "&cYou must choose &6on&c or &6off&c." to player - argument 2 is "on": - {current.aura.%player%} is "fortune": - send "&cYou already have a Fortune Aura active." to player - stop - set {current.aura.%player%} to "fortune" - send "&aYou have activated the &eFortune&a Aura!" to player - set {fortune.chance.%player%} to 1 - set {for.ran.%player%} to random number between 5 and 15 - argument 2 is "off": - clear {current.aura.%player%} - send "&aYou have deactivated your Fortune Aura!" to player - set {fortune.spam.%player%} to 0 - argument 1 is "list": - message "&3--[&6&lAura List&3]--" - send "&a Fortune Aura" - send "&7 This aura gives you an increasing chance to find more gems and ingots at the cost of alerting others to your position." - argument 1 is "debug": - send "spam count: %{fortune.spam.%player%}%" - send "Fortune on: %{current.aura.%player%}%" - send "Current chance: %{fortune.chance.%player%}%" - send "Alert Status: %{aura.alert.%player%}%" - {for.ran.%player%} is not set: - send "Random Number: &cNOT SET" - {for.ran.%player%} is set: - send "Random Number: %{for.ran.%player%}%" - -every 15 minutes: - loop all players: - {fortune.spam.%loop-player%} is greater than 15: - set {fortune.spam.%loop-player%} to 0 - {current.aura.%loop-player%} is "fortune" - {abstain.%loop-player%} is true: - clear {current.aura.%loop-player%} - - loop-player does not have permission "obam.plus": - {fortune.chance.%loop-player%} is less than 5: - increase {fortune.chance.%loop-player%} by 1 - send "&7Your chances of fortune have increased!" to loop-player - loop-player does not have permission "obam.ultimate": - loop-player has permission "obam.plus": - {fortune.chance.%loop-player%} is less than 10: - increase {fortune.chance.%loop-player%} by 1 - send "&7Your chances of fortune have increased!" to loop-player - loop-player has permission "obam.ultimate": - {fortune.chance.%loop-player%} is less than 15: - increase {fortune.chance.%loop-player%} by 1 - send "&7Your chances of fortune have increased!" to loop-player - -on break: - {chunk.live.%chunk at location of event-block%} is not name of player: - {chunk.live.%chunk at location of event-block%.%player%} is not set: - cancel event - stop - {fortune.spam.%player%} is greater than 16: - set {fortune.spam.%player%} to 0 - {for.ran.%player%} is not set: - set {for.ran.%player%} to random integer between 5 and 15 - {current.aura.%player%} is "fortune": - {abstain.%player%} is true: - clear {current.aura.%player%} - {abstain.%player%} is "wait abstain": - clear {current.auar.%player%} - block is diamond ore or emerald ore or gold ore or iron ore or lapis ore or redstone ore or coal ore or nether quartz ore: - player's tool is a pickaxe of silk touch: - send "&cYour fortune aura has no effect with this enchantment!" to player - stop - {chunk.live.%chunk at location of event-block%} is set: - send "&cYour fortune aura has no effect in this area." - stop - loop blocks in radius 50 of event-block: - {chunk.live.%chunk at location of loop-block%} is set: - send "&cYour fortune aura has no effect in this area, go further out!" to player - stop - - {fortune.spam.%player%} is greater than {for.ran.%player%}: - loop all players: - - {aura.alert.%loop-player%} is true: - send "&3&lIt seems %player% hit the %block% jackpot at %location of player%!" to loop-player - set {fortune.spam.%player%} to 0 - set {for.ran.%player%} to random integer between 5 and 15 - {current.aura.%player%} is "fortune" - block is diamond ore: - add 1 to {fortune.spam.%player%} - chance of {fortune.chance.%player%}%: - send "&aFortune favours you!" to player - drop 1 diamond - add 1 to {fortune.spam.%player%} - block is emerald ore: - add 1 to {fortune.spam.%player%} - chance of {fortune.chance.%player%}%: - send "&aFortune favours you!" to player - drop 1 emerald - add 1 to {fortune.spam.%player%} - block is gold ore: - add 1 to {fortune.spam.%player%} - chance of {fortune.chance.%player%}%: - cancel event - delete event-block - drop 1 gold ingot - send "&aFortune favours you!" to player - drop 1 gold ingot - add 1 to {fortune.spam.%player%} - block is iron ore: - add 1 to {fortune.spam.%player%} - chance of {fortune.chance.%player%}%: - cancel event - delete event-block - drop 1 iron ingot - send "&aFortune favours you!" to player - drop 1 iron ingot - add 1 to {fortune.spam.%player%} - block is lapis ore: - add 1 to {fortune.spam.%player%} - chance of {fortune.chance.%player%}%: - send "&aFortune favours you!" to player - drop 1 lapis - add 1 to {fortune.spam.%player%} - block is redstone ore: - add 1 to {fortune.spam.%player%} - chance of {fortune.chance.%player%}%: - send "&aFortune favours you!" to player - drop 1 redstone - add 1 to {fortune.spam.%player%} - block is coal ore: - add 1 to {fortune.spam.%player%} - chance of {fortune.chance.%player%}%: - send "&aFortune favours you!" to player - drop 1 coal - add 1 to {fortune.spam.%player%} - block is nether quartz ore: - add 1 to {fortune.spam.%player%} - chance of {fortune.chance.%player%}%: - send "&aFortune favours you!" to player - drop 1 nether quartz - add 1 to {fortune.spam.%player%} diff --git a/Obam-Survival/heal.sk b/Obam-Survival/heal.sk deleted file mode 100644 index dc0ee0a..0000000 --- a/Obam-Survival/heal.sk +++ /dev/null @@ -1,43 +0,0 @@ -variables: - {heal.%player%} = false - - - - - - -command /heal: - executable by: players - permission: obam.free - trigger: - {heal.%player%} is not set: - set {heal.%player%} to now - add 13 hours to {heal.%player%} - - set {_check} to difference between {heal.%player%} and now - {_check} is less than 12 hours: - set {_check} to difference between {heal.%player%} and now - set {_hold} to difference between now and now - add 12 hours to {_hold} - subtract {_check} from {_hold} - send "&cYou must wait at least &e%{_hold}% &cto use this command!" - stop - {abstain.%player%} is false: - send "&cOnly abstaining players can use this feature!" - stop - {abstian.%player%} is "wait pvp" or "wait abstain": - send "&cYou can not use this feature in transition!" - stop - {abstain.%player%} is true: - - set {_bal} to player's balance - {_bal} is less than 2000: - send "&cYou do not have enough tickets to do this!" to player - stop - - remove 2000 from player's balance - set {heal.%player%} to now - send "&aYou have been healed" to player - set player's health to 10 - send "&aYou have &e%player's balance%&a remaining" to player - stop diff --git a/Obam-Survival/shop.sk b/Obam-Survival/shop.sk deleted file mode 100644 index d21f2a1..0000000 --- a/Obam-Survival/shop.sk +++ /dev/null @@ -1,37 +0,0 @@ -#shop for Fronts - -options: - land: i;grass;n;&9&lPurchase more land!;l;&7Click to purchase 1 more land!|| ||&e10,000 Tickets!;c;sudo %player% shop land - - -command /shop []: - permission: obam.free - trigger: - argument is not set: - - show "s;1;{@land}" with 1 row named "&9&lFronts&9 Shop" to player - argument is "land": - player does not have permission "obam.supporter": - {availableland.%player%} is greater than or equal to 5: - send "&cYou have your max amount of available land purchased! Please support to get more!" to player - stop - player does not have permission "obam.plus": - {availableland.%player%} is greater than or equal to 10: - send "&cYou have your max amount of available land purchased! Please upgrade to get more!" to player - stop - player does not have permission "obam.ultimate": - {availableland.%player%} is greater than or equal to 20: - send "&cYou have your max amount of available land purchased! Please support to get more!" to player - stop - set {_curbal} to player's balance - {_curbal} is less than 10000: - send "&cYou do not have enough tickets!" to player - stop - subtract 10000 from player's balance - add 1 to {availableland.%player%} - send "&aYou have purchased &e1 Land Slot&a for &e10,000 Tickets" to player - - - - - \ No newline at end of file diff --git a/Obam-Survival/starterkit.sk b/Obam-Survival/starterkit.sk deleted file mode 100644 index 2e0c114..0000000 --- a/Obam-Survival/starterkit.sk +++ /dev/null @@ -1,21 +0,0 @@ - -command /starterkit: - description: Recieve a cake, but you can only do this once per minute! - permission: obam.recentvoter - executable by: players - trigger: - set {_waited} to difference between {frontsstarterkit.%player%.lastused} and now - if {_waited} is less than a day: - message "&cYou have to wait %difference between a day and {_waited}% before you can use this command again!" - stop - - player doesn't have space for 1 leather boots, 1 leather chestplate, 1 leather helmet, 1 leather leggings and 1 wood sword: - message "&cYou do not have enough space in your inventory to hold the starter kit! Make some space, then use /starterkit!" - stop - - give 1 leather boots, 1 leather chestplate, 1 leather helmet, 1 leather leggings and 1 wood sword to the player - message "&aYou have been given a starter kit. Thanks for voting!" - - set {frontsstarterkit.%player%.lastused} to now - - \ No newline at end of file diff --git a/Obam-Testing/KitDamageSubSystem b/Obam-Testing/KitDamageSubSystem deleted file mode 100644 index 8f801f7..0000000 --- a/Obam-Testing/KitDamageSubSystem +++ /dev/null @@ -1,102 +0,0 @@ -#actual damage subsystem - -on damage: - victim is a player - attacker is a player - set damage to 0 - - - damage cause is not potion: - damage cause is not projectile: - {kdss.cat.1::%attacker's weapon%} is set: - set {_dmg} to 0.75 - - {kdss.cat.2::%attacker's weapon%} is set: - set {_dmg} to 1.0 - - {kdss.cat.3::%attacker's weapon%} is set: - set {_dmg} to 1.5 - - {kdss.cat.4::%attacker's weapon%} is set: - set {_dmg} to 2.0 - - {kdss.cat.5::%attacker's weapon%} is set: - set {_dmg} to 2.5 - - {kdss.cat.6::%attacker's weapon%} is set: - set {_dmg} to 3.0 - - damage cause is projectile: - - set {_dmg} to 0.75 - - damage cause is potion: - - damage cause is potion of harming 1: - - set {_dmg} to 1.0 - - damage cause is potion of harming 2: - - set {_dmg} to 2.0 - - damage cause is poison or wither: - - set {_dmg} to 0.25 - - - damage cause is fire or burning: - - set {_dmg} to 0.5 - - damage cause is lava: - - set {_dmg} to 0.75 - - - -#commands to set up category hooks - - -command /kdss [text] [integer] [item]: - description: adds items to to different subsystem categories - permission: obam.admin - usage: /kdss [add/delete] [(category) 1 , 2 , 3 , 4....] [item name] - trigger: - - -#add to category protocol - argument 1 is "add": - - #sets the current item to a local variable for easy coding identification - set {_item} to item-arugment - - #for ease of use in the "add" protocol, setting local variable for amount of categories - set {_count} to size of {kdss.category.counts::*} - - #looping a check protocol for items existence before adding - loop {_count} times: - {_loop.count} is not set: - set {_loop.count} to 0 - add 1 to {_loop.count} - - #checking for existence of item - {kdss.cat.%{_loop.count}%::%{_item}%} is set: - - #error kickout for item detection - set {_kdss.error} to "&cThis item is already assigned in &eCategory %{_loop.count}%&c. Please delete before preseding." - send "%{_kdss.error}%" to player - stop - - argument 2 is not set: - - send "&cPlease input a category! (Must be a number!)" to player - stop - - {kdss.category.counts::%argument 2%} is not set: - - send "&cThat category is not set! Please set that category first!" to player - stop - - #activates item in specfied category - set {kdss.cat.%argument 2%::%{_item}%} to true diff --git a/Obam-Testing/gc b/Obam-Testing/gc deleted file mode 100644 index 840a417..0000000 --- a/Obam-Testing/gc +++ /dev/null @@ -1,226 +0,0 @@ -0.676: [GC 34944K->7409K(126720K), 0.0092320 secs] -1.145: [GC 42353K->13165K(126720K), 0.0184260 secs] -1.610: [GC 48109K->15683K(126720K), 0.0082060 secs] -2.135: [GC 50627K->18852K(126720K), 0.0088400 secs] -2.408: [GC 53796K->33363K(126720K), 0.0142160 secs] -2.483: [GC 68307K->49575K(126720K), 0.0126520 secs] -2.496: [GC 49577K(126720K), 0.0025480 secs] -2.600: [GC 84519K->65216K(126720K), 0.0120390 secs] -2.670: [GC 100160K->80974K(126720K), 0.0094790 secs] -2.738: [GC 115918K->96737K(132480K), 0.0077890 secs] -2.799: [GC 131681K->112932K(148608K), 0.0077900 secs] -2.864: [GC 147876K->128983K(164736K), 0.0075040 secs] -2.958: [GC 163927K->142926K(178560K), 0.0073550 secs] -3.030: [GC 177870K->156870K(192576K), 0.0070890 secs] -3.098: [GC 191814K->170749K(206400K), 0.0071510 secs] -3.198: [GC 205693K->184523K(220032K), 0.0099210 secs] -3.478: [GC 209677K(220032K), 0.0125130 secs] -3.586: [GC 209212K(322492K), 0.0184950 secs] -3.614: [GC 209212K->179819K(322492K), 0.0114170 secs] -3.821: [GC 197527K(322492K), 0.0082700 secs] -3.944: [GC 211300K->180823K(325972K), 0.0127720 secs] -4.078: [GC 215767K->182747K(325972K), 0.0160380 secs] -4.220: [GC 217691K->184025K(325972K), 0.0129610 secs] -4.434: [GC 218969K->186983K(325972K), 0.0140270 secs] -4.640: [GC 221927K->187435K(325972K), 0.0122260 secs] -4.907: [GC 222379K->190390K(325972K), 0.0102580 secs] -4.998: [GC 225334K->204315K(325972K), 0.0124720 secs] -5.073: [GC 239259K->219198K(325972K), 0.0106240 secs] -5.084: [GC 219202K(325972K), 0.0017870 secs] -5.238: [GC 254142K->228253K(325972K), 0.0133190 secs] -5.316: [GC 263197K->241474K(325972K), 0.0114610 secs] -5.381: [GC 276418K->257787K(325972K), 0.0111810 secs] -5.442: [GC 292731K->273660K(325972K), 0.0098930 secs] -5.504: [GC 308604K->289390K(325972K), 0.0099770 secs] -5.563: [GC 324334K->305049K(340564K), 0.0094430 secs] -5.627: [GC 339993K->321203K(356692K), 0.0097810 secs] -5.686: [GC 356147K->337207K(372820K), 0.0093900 secs] -5.757: [GC 372151K->352506K(387988K), 0.0115560 secs] -5.825: [GC 387450K->367485K(402964K), 0.0118640 secs] -5.915: [GC 402429K->383285K(418708K), 0.0124690 secs] -5.985: [GC 418229K->398418K(433876K), 0.0120610 secs] -6.047: [GC 433362K->413758K(449236K), 0.0125240 secs] -6.131: [GC 448702K->426699K(462292K), 0.0127370 secs] -6.221: [GC 461643K->434094K(469588K), 0.0098730 secs] -6.304: [GC 469038K->448090K(483796K), 0.0110660 secs] -6.360: [GC 470977K(483796K), 0.0045770 secs] -6.384: [GC 477569K->455505K(492052K), 0.0099590 secs] -6.440: [GC 488661K->468703K(788240K), 0.0098960 secs] -6.497: [GC 503647K->484899K(788240K), 0.0098200 secs] -6.507: [GC 485580K(788240K), 0.0011860 secs] -6.558: [GC 519843K->501111K(788240K), 0.0090350 secs] -6.614: [GC 536055K->517303K(788240K), 0.0088930 secs] -6.677: [GC 552247K->533204K(788240K), 0.0090300 secs] -6.733: [GC 568148K->549527K(788240K), 0.0087130 secs] -6.799: [GC 584471K->564272K(788240K), 0.0089520 secs] -6.870: [GC 599216K->577993K(788240K), 0.0124640 secs] -6.956: [GC 612927K->590164K(788240K), 0.0137650 secs] -7.021: [GC 625108K->605653K(788240K), 0.0102700 secs] -7.032: [GC 606350K(788240K), 0.0030840 secs] -7.083: [GC 636952K->617530K(1035392K), 0.0092290 secs] -7.140: [GC 652474K->632920K(1035392K), 0.0092850 secs] -7.198: [GC 667864K->648396K(1035392K), 0.0090930 secs] -7.261: [GC 683340K->663763K(1035392K), 0.0089090 secs] -7.319: [GC 698707K->679109K(1035392K), 0.0085310 secs] -7.379: [GC 714053K->693904K(1035392K), 0.0085110 secs] -7.443: [GC 728848K->708130K(1035392K), 0.0108060 secs] -7.533: [GC 743074K->715329K(1035392K), 0.0089260 secs] -7.602: [GC 750273K->729360K(1035392K), 0.0120390 secs] -7.673: [GC 764304K->742757K(1035392K), 0.0110170 secs] -7.746: [GC 777701K->755935K(1035392K), 0.0113150 secs] -7.821: [GC 790879K->768435K(1035392K), 0.0131720 secs] -7.889: [GC 803379K->782670K(1035392K), 0.0125630 secs] -7.953: [GC 817614K->797256K(1035392K), 0.0107900 secs] -7.964: [GC 797957K(1035392K), 0.0015260 secs] -8.023: [GC 832200K->812760K(1035392K), 0.0117770 secs] -8.093: [GC 847704K->825743K(1035392K), 0.0131890 secs] -8.154: [GC 860687K->841956K(1035392K), 0.0109810 secs] -8.211: [GC 876900K->858281K(1035392K), 0.0090370 secs] -8.266: [GC 893225K->874491K(1035392K), 0.0090470 secs] -8.321: [GC 909435K->890722K(1035392K), 0.0087790 secs] -8.380: [GC 925666K->907053K(1035392K), 0.0089330 secs] -8.435: [GC 941997K->923251K(1035392K), 0.0090550 secs] -8.498: [GC 958195K->936752K(1035392K), 0.0113350 secs] -8.562: [GC 971696K->952646K(1035392K), 0.0109190 secs] -8.619: [GC 987590K->969012K(1035392K), 0.0104160 secs] -8.675: [GC 1003956K->985223K(1035392K), 0.0092400 secs] -8.730: [GC 1020167K->1001497K(1036928K), 0.0094180 secs] -8.790: [GC 1036441K->1017788K(1053248K), 0.0097720 secs] -8.846: [GC 1052732K->1034029K(1069568K), 0.0092820 secs] -8.909: [GC 1068973K->1049355K(1084736K), 0.0096480 secs] -8.971: [GC 1084299K->1064389K(1099712K), 0.0124230 secs] -9.043: [GC 1099333K->1078316K(1113728K), 0.0111510 secs] -9.110: [GC 1113260K->1092264K(1127744K), 0.0108320 secs] -9.180: [GC 1127208K->1106191K(1141568K), 0.0100080 secs] -9.248: [GC 1141135K->1119359K(1154816K), 0.0091000 secs] -9.322: [GC 1154303K->1130911K(1166336K), 0.0121960 secs] -9.385: [GC 1165855K->1146883K(1182272K), 0.0127610 secs] -9.456: [GC 1181827K->1160714K(1196288K), 0.0106620 secs] -9.524: [GC 1195658K->1174588K(1209920K), 0.0101980 secs] -9.591: [GC 1209532K->1188483K(1223936K), 0.0097290 secs] -9.662: [GC 1223427K->1201521K(1236800K), 0.0105680 secs] -9.731: [GC 1236465K->1215317K(1250816K), 0.0134270 secs] -9.808: [GC 1250261K->1229819K(1265216K), 0.0131610 secs] -9.902: [GC 1249947K(1265216K), 0.0069180 secs] -10.021: [GC 1259172K->1229649K(2072424K), 0.0115620 secs] -10.157: [GC 1264593K->1233315K(2072424K), 0.0128540 secs] -10.703: [GC 1268259K->1234353K(2072424K), 0.0112100 secs] -10.832: [GC 1269297K->1235472K(2072424K), 0.0114510 secs] -10.960: [GC 1270416K->1236490K(2072424K), 0.0092420 secs] -11.326: [GC 1271434K->1238684K(2072424K), 0.0147530 secs] -11.584: [GC 1273628K->1240428K(2072424K), 0.0162370 secs] -11.654: [GC 1275372K->1240387K(2072424K), 0.0098540 secs] -11.712: [GC 1275331K->1240236K(2072424K), 0.0076070 secs] -11.768: [GC 1275180K->1240024K(2072424K), 0.0075190 secs] -11.823: [GC 1274968K->1240977K(2072424K), 0.0076480 secs] -11.877: [GC 1275921K->1239863K(2072424K), 0.0075500 secs] -11.930: [GC 1274807K->1240327K(2072424K), 0.0076040 secs] -12.089: [GC 1275271K->1240842K(2072424K), 0.0080680 secs] -12.203: [GC 1275786K->1240283K(2072424K), 0.0081670 secs] -12.268: [GC 1275227K->1240389K(2072424K), 0.0084460 secs] -12.329: [GC 1275333K->1240612K(2072424K), 0.0084490 secs] -12.388: [GC 1275556K->1240977K(2072424K), 0.0085230 secs] -12.447: [GC 1275921K->1240737K(2072424K), 0.0087730 secs] -12.508: [GC 1275681K->1241391K(2072424K), 0.0092700 secs] -12.568: [GC 1276335K->1240763K(2072424K), 0.0093070 secs] -12.630: [GC 1275707K->1240195K(2072424K), 0.0076500 secs] -12.688: [GC 1275139K->1240639K(2072424K), 0.0077700 secs] -12.748: [GC 1275583K->1240918K(2072424K), 0.0067430 secs] -12.807: [GC 1275862K->1240747K(2072424K), 0.0067290 secs] -12.863: [GC 1275691K->1240753K(2072424K), 0.0067740 secs] -12.919: [GC 1275697K->1240914K(2072424K), 0.0067340 secs] -12.975: [GC 1275858K->1241212K(2072424K), 0.0066820 secs] -13.029: [GC 1276156K->1241046K(2072424K), 0.0068000 secs] -13.084: [GC 1275990K->1241122K(2072424K), 0.0071140 secs] -13.138: [GC 1276066K->1241190K(2072424K), 0.0071650 secs] -13.194: [GC 1276134K->1241206K(2072424K), 0.0068700 secs] -13.248: [GC 1276150K->1241327K(2072424K), 0.0072020 secs] -13.304: [GC 1276271K->1241637K(2072424K), 0.0071030 secs] -13.360: [GC 1276581K->1241329K(2072424K), 0.0068480 secs] -13.413: [GC 1276273K->1241984K(2072424K), 0.0065690 secs] -13.467: [GC 1276928K->1241714K(2072424K), 0.0069930 secs] -13.520: [GC 1276658K->1241567K(2072424K), 0.0065330 secs] -13.573: [GC 1276511K->1242253K(2072424K), 0.0066290 secs] -13.627: [GC 1277197K->1241631K(2072424K), 0.0065480 secs] -13.681: [GC 1276575K->1241904K(2072424K), 0.0066780 secs] -13.736: [GC 1276848K->1241786K(2072424K), 0.0069760 secs] -13.789: [GC 1276730K->1242068K(2072424K), 0.0074260 secs] -13.848: [GC 1277012K->1242263K(2072424K), 0.0074880 secs] -13.904: [GC 1277207K->1242187K(2072424K), 0.0071990 secs] -13.957: [GC 1277131K->1242284K(2072424K), 0.0075470 secs] -14.017: [GC 1277228K->1242612K(2072424K), 0.0065980 secs] -14.074: [GC 1277556K->1242298K(2072424K), 0.0066840 secs] -14.129: [GC 1277242K->1242556K(2072424K), 0.0069740 secs] -14.179: [GC 1277500K->1243056K(2072424K), 0.0065190 secs] -14.227: [GC 1278000K->1243350K(2072424K), 0.0066470 secs] -14.276: [GC 1278294K->1242922K(2072424K), 0.0064950 secs] -14.324: [GC 1277866K->1243765K(2072424K), 0.0066060 secs] -14.377: [GC 1278709K->1243016K(2072424K), 0.0064590 secs] -14.428: [GC 1277960K->1243376K(2072424K), 0.0066980 secs] -14.478: [GC 1278320K->1243153K(2072424K), 0.0065880 secs] -14.527: [GC 1278097K->1243997K(2072424K), 0.0066490 secs] -14.579: [GC 1278941K->1243560K(2072424K), 0.0067530 secs] -14.630: [GC 1278504K->1243478K(2072424K), 0.0068760 secs] -14.681: [GC 1278422K->1243721K(2072424K), 0.0068160 secs] -14.731: [GC 1278665K->1244140K(2072424K), 0.0070110 secs] -14.944: [GC 1279084K->1245630K(2072424K), 0.0098930 secs] -15.692: [GC 1280574K->1245768K(2072424K), 0.0107760 secs] -16.117: [GC 1280712K->1247076K(2072424K), 0.0138070 secs] -16.611: [GC 1282020K->1254176K(2072424K), 0.0254390 secs] -17.999: [GC 1289121K->1255384K(2072424K), 0.0213680 secs] -19.156: [GC 1290328K->1256713K(2072424K), 0.0160970 secs] -20.158: [GC 1291657K->1265308K(2072424K), 0.0187730 secs] -21.123: [GC 1300252K->1275449K(2072424K), 0.0239760 secs] -22.308: [GC 1310393K->1280964K(2072424K), 0.0206100 secs] -23.724: [GC 1315908K->1282036K(2072424K), 0.0134800 secs] -24.858: [GC 1316980K->1285840K(2072424K), 0.0169620 secs] -25.278: [GC 1320784K->1298766K(2072424K), 0.0202830 secs] -26.600: [GC 1333703K->1300814K(2072424K), 0.0142530 secs] -27.904: [GC 1335758K->1302260K(2072424K), 0.0110450 secs] -29.306: [GC 1337204K->1301473K(2072424K), 0.0084820 secs] -30.305: [GC 1336417K->1309454K(2072424K), 0.0231860 secs] -31.656: [GC 1344398K->1310828K(2072424K), 0.0138860 secs] -33.004: [GC 1345772K->1313533K(2072424K), 0.0136220 secs] -33.974: [GC 1348477K->1322200K(2072424K), 0.0224390 secs] -34.852: [GC 1357144K->1334547K(2072424K), 0.0264270 secs] -36.051: [GC 1369491K->1338991K(2072424K), 0.0191300 secs] -37.215: [GC 1373935K->1339276K(2072424K), 0.0112160 secs] -37.951: [GC 1374220K->1342443K(2072424K), 0.0150460 secs] -39.260: [GC 1377387K->1342694K(2072424K), 0.0116960 secs] -40.753: [GC 1377638K->1343239K(2072424K), 0.0133570 secs] -42.001: [GC 1378183K->1346508K(2072424K), 0.0198030 secs] -43.246: [GC 1381452K->1350577K(2072424K), 0.0196960 secs] -44.701: [GC 1385521K->1351743K(2072424K), 0.0125310 secs] -45.902: [GC 1386687K->1351751K(2072424K), 0.0141230 secs] -47.364: [GC 1386695K->1351755K(2072424K), 0.0098640 secs] -48.941: [GC 1386699K->1351411K(2072424K), 0.0095720 secs] -50.402: [GC 1386355K->1351296K(2072424K), 0.0098490 secs] -51.819: [GC 1386240K->1351396K(2072424K), 0.0096690 secs] -53.305: [GC 1386340K->1350986K(2072424K), 0.0091270 secs] -54.857: [GC 1385930K->1351403K(2072424K), 0.0096070 secs] -56.335: [GC 1386347K->1351765K(2072424K), 0.0103200 secs] -57.901: [GC 1386709K->1350907K(2072424K), 0.0103200 secs] -59.357: [GC 1385851K->1351776K(2072424K), 0.0097830 secs] -60.902: [GC 1386720K->1350696K(2072424K), 0.0098040 secs] -62.379: [GC 1385640K->1351022K(2072424K), 0.0100120 secs] -63.534: [GC 1385966K->1351421K(2072424K), 0.0102200 secs] -65.002: [GC 1386365K->1350518K(2072424K), 0.0089190 secs] -66.218: [GC 1385462K->1350302K(2072424K), 0.0073310 secs] -67.008: [GC 1385246K->1350196K(2072424K), 0.0073500 secs] -68.556: [GC 1385140K->1350355K(2072424K), 0.0069660 secs] -70.035: [GC 1385299K->1350299K(2072424K), 0.0074090 secs] -71.563: [GC 1385243K->1350296K(2072424K), 0.0069680 secs] -72.861: [GC 1385240K->1352759K(2072424K), 0.0106850 secs] -72.958: [GC 1387703K->1370118K(2072424K), 0.0482620 secs] -73.502: [GC 1405062K->1373966K(2072424K), 0.0138930 secs] -74.088: [GC 1408910K->1371155K(2072424K), 0.0067450 secs] -74.677: [GC 1406099K->1370742K(2072424K), 0.0069120 secs] -75.264: [GC 1405686K->1370707K(2072424K), 0.0082330 secs] -75.849: [GC 1405651K->1370982K(2072424K), 0.0091750 secs] -76.436: [GC 1405926K->1371109K(2072424K), 0.0082480 secs] -77.028: [GC 1406053K->1371157K(2072424K), 0.0084080 secs] -77.627: [GC 1406101K->1371498K(2072424K), 0.0101520 secs] -78.198: [GC 1406442K->1371739K(2072424K), 0.0104430 secs] -78.769: [GC 1406683K->1371775K(2072424K), 0.0095850 secs] -79.438: [GC 1406719K->1371894K(2072424K), 0.0097070 secs] -80.275: [GC 1406838K->1372514K(2072424K), 0.0107310 secs] diff --git a/Obam-Testing/schat2.sk b/Obam-Testing/schat2.sk deleted file mode 100644 index 2af594a..0000000 --- a/Obam-Testing/schat2.sk +++ /dev/null @@ -1,187 +0,0 @@ -options: - p: &c[W] - - - -on join: - {db_global.%player%} is not set: - set {db_global.%player%} to true - {db_global.%player%} is true: - set {db_channel.global::%player%} to player - set {db_channel.%player%} to "global" - player does not have permission "obam.supporter": - delete {db_channel.supporter::%player%} - player does not have permission "obam.mod": - delete {db_channel.supporter::%player%} - {db_channel.sup.%player%} is not set: - player has permission "obam.supporter" - set {db_channel.sup.%player%} to true - {db_channel.sup.%player%} is true: - set {db_channel.supporter::%player%} to player - {db_channel.staff.%player%} is not set: - player has permission "obam.mod" - set {db_channel.staff.%player%} to player - {db_channel.staff.%player%} is true: - set {db_channel.supporter::%player%} to player - -on chat: - cancel event - player is "IcecreamCow" or "Electric_Hamster" or "ISMOOCH": - - set {_pre} to "{@p} &d[A] %player%" - {_pre} is not set: - player has permission "obam.mod": - set {_pre} to "{@p} &2[M] %player%" - {_pre} is not set: - player has permission "obam.ultimate": - set {_pre} to "{@p} &6[^] %player%" - {_pre} is not set: - player has permission "obam.plus": - set {_pre} to "{@p} &b[+] %player%" - {_pre} is not set: - set {_pre} to "{@p} %player%" - player is "BruSwain": - set {_pre} to "{@p} &6[^] %player%" - - {db_channel.%player%} is "staff": - player does not have permission "obam.mod": - set {db_channel.%player%} to "global" - delete {db_channel.staff::%player%} - {db_channel.%player%} is "staff": - loop {db_channel.staff::*}: - clear {_player} - - set {_player} to loop-index parsed as player - set message to "&2%message%" - set {_message} to "%{_pre}%&2: %message%" - - send "%{_message}%" to {_player} - - execute console command "/modpush %{_pre}%&2: %message%" - - - {db_channel.%player%} is "supporter": - player does not have permission "obam.supporter": - set {db_channel.%player%} to "global" - delete {db_channel.supporter::%player%} - {db_channel.%player%} is "supporter": - loop {db_channel.supporter::*}: - clear {_player} - set {_player} to loop-index parsed as player - set message to "&b%message%" - set {_message} to "%{_pre}%&b: %message%" - - send "%{_message}%" to {_player} - - execute console command "/supporterpush %{_message}%" - - - stop - - {db_channel.%player%} is "global": - loop {db_channel.global::*}: - clear {_player} - set {_player} to loop-index parsed as player - - send "%{_pre}%&f: %message%" to {_player} - - - execute console command "globalpush %{_pre}%&f: %message%" - - stop - - - - -command /chat [] []: - permission: obam.free - aliases: c, ch - trigger: - - argument 1 is "m" or "mod": - player does not have permission "obam.mod": - send "&cYou dont have permission to do this!" - stop - set {db_channel.%player%} to "staff" - send "&aYou are now chatting in the &2Mod&a channel!" - stop - argument 1 is "s" or "supporter": - player does not have permission "obam.supporter": - send "&cYou dont have permission to do this!" - stop - set {db_channel.%player%} to "supporter" - send "&aYou are now chatting in the &bSupporter&a channel!" - - argument 1 is "g" or "global": - set {db_channel.%player%} to "global" - send "&aYou are now chatting in the &fGlobal&a channel!" - - argument 1 is "l" or "leave": - argument 2 is not set: - send "&cPlease specify a channel: &e/chat leave " - stop - argument 2 is "mod" or "m": - send "&cYou can not leave the staff chat silly" - stop - argument 2 is "s" or "supporter": - send "&cYou are now leaving the &bSupporter&c chat!" - delete {db_channel.supporter::%player%} - stop - argument 2 is "g" or "global": - send "&cYou are now leaving the &fGlobal&c chat!" - delete {db_channel.global::%player%} - stop - argument 1 is "j" or "join": - argument 2 is not set: - send "&cPlease specify a channel: &e/chat join " - stop - argument 2 is "mod" or "m": - player does not have permission "obam.mod": - send "&cYou do not have permission to do this!" - stop - {db_channel.staff::%player%} is set: - send "&cYou are already in this channel!" - send "&cIf you believe this is an error, please report it!" - stop - set {db_channel.staff::%player%} to player - set {db_channel.%player%} to "staff" - send "&aYou are now in the &2Mod&a channel!" - stop - - argument 2 is "s" or "supporter": - player does not have permission "obam.supporter": - send "&cYou do not have permission to do this!" - stop - {db_channel.supporter::%player%} is set: - send "&cYou are already in this channel!" - send "&cIf you believe this is an error, please report it!" - stop - set {db_channel.supporter::%player%} to player - set {db_channel.%player%} to "supporter" - send "&aYou are now in the &bSupporter&a channel!" - stop - - argument 2 is "g" or "global": - {db_channel.global::%player%} is set: - send "&cYou are already in this channel!" - send "&cIf you believe this is an error, please report it!" - stop - set {db_channel.global::%player%} to player - set {db_channel.%player%} to "global" - send "&aYou are now in the &fGlobal&a channel!" - - argument 1 is "who": - argument 2 is not set: - loop {db_channel.%{db_channel.%player%}%::*}: - send "%loop-index%" - - - - - - - - - - - \ No newline at end of file diff --git a/Obam-Testing/schatbridge.sk b/Obam-Testing/schatbridge.sk deleted file mode 100644 index 7c8c184..0000000 --- a/Obam-Testing/schatbridge.sk +++ /dev/null @@ -1,18 +0,0 @@ - - - - -command /globalpush : - permission: obam.admin - trigger: - forward command "globalcatch %argument%" to console -command /globalcatch : - permission: obam.admin - trigger: - - loop {db_channel.global::*}: - clear {_player} - set {_player} to loop-index parsed as player - send argument to {_player} - - stop \ No newline at end of file diff --git a/Obam-Testing/testchest.sk b/Obam-Testing/testchest.sk deleted file mode 100644 index 36cb046..0000000 --- a/Obam-Testing/testchest.sk +++ /dev/null @@ -1,40 +0,0 @@ -command /chestadd [] []: - trigger: - argument 1 is "add": - {chest.test.list::%argument 2%} is set: - set {_hold} to {chest.test.list::%argument 2%} + argument 3 - set {chest.test.list::%argument 2%} to {_hold} - {chest.test.list::%argument 2%} is not set: - set {chest.test.list::%argument 2%} to argument 3 - - argument 1 is "show": - set {_size} to size of {chest.test.list::*} - loop {chest.test.list::*}: - {_count} is not set: - set {_count} to 0 - add 1 to {_count} - set {_cur.item} to loop-index - set {cur.item::*} to {_cur.item} parsed as "item:%item%:%text%" - set {_cur.item} to {cur.item::1} - set {_cur.amount} to loop-value - {_chest.message} is set: - set {_chest.message} to "%{_chest.message}%;s;%{_count}%;i;%{_cur.amount}% %{_cur.item}%" - {_chest.message} is not set: - - - set {_chest.message} to "s;%{_count}%;i;%{_cur.amount}% %{_cur.item}%" - - - {_size} is less than or equal to 9: - set {_chest.size} to 1 - {_size} is greater than 9: - set {_chest.size} to 2 - {_size} is greater than 18: - set {_chest.size} to 3 - {_size} is greater than 27: - set {_chest.size} to 4 - send "%{_chest.message}%" to player - - show "%{_chest.message}%" with {_chest.size} rows named "&cTest Shit" to player - - \ No newline at end of file diff --git a/Obam-Testing/webstats.sk b/Obam-Testing/webstats.sk deleted file mode 100644 index 00c55e6..0000000 --- a/Obam-Testing/webstats.sk +++ /dev/null @@ -1,5 +0,0 @@ -command /webstatstest: - trigger: - {webstats_.test.foo} is not set: - set {webstats_.test.foo} to 1 - add 1 to {webstats_.test.foo} \ No newline at end of file diff --git a/Obam-Testing/wtfronts.sk b/Obam-Testing/wtfronts.sk deleted file mode 100644 index 2eb7774..0000000 --- a/Obam-Testing/wtfronts.sk +++ /dev/null @@ -1,598 +0,0 @@ -options: - bandages: paper;&3Bandage;&6Use of this bandage is the only way to fix a long lasting||&6injury brought on by the hazards of the environment.|| ||&5&oRight click with bandage in hand to cure the effects||&5&obrought on by being badly injured. Multiple bandages||&5&omay be required depending on your injury level. - superbottle: water bottle;&3Super Water Bottle;&6Besides saving you inventory space, this water ||&6is created extra wet to help quench your thirst.|| ||&a+50 Thirst|| ||&5&oUpon use, bottle turns to regular glass bottle. - unstele: magma cream;&3Unstable Element;&6Highly energized plasma like element found||&6in unstable land and mobs.|| ||&5&oThis goo is really hot! - unstmetal: gold nugget;&3Unstable Metal Shard;&6Energized metal shards found in unstable land||&6and mobs.|| ||&5&oYou feel a light energetic charge coming from||&5&othe shard. - unstmetalbar: gold ingot;&3Unstable Metal Bar;&6Crafted from broken &3Unstable Metal Shards&6 to||&6become whole again.|| ||&5&oHot to the touch, this bar gives a highly energetic||&5&ocharge. - stablemetal: iron ingot;&3Stable Metal Bar;&6Finalized & stable metal bar with just enough||&6energy for crafting special items.|| ||&5&oWarm to the touch with a subtle energetic glow. - stableele: slimeball;&3Stable Element;&6Stable plasma like element used to enhance other||&6items in special ways.|| ||&5&oThe goo feels nice and warm as it slides through||&5&oyour fingers. - envradar: compass;&3Environmental Radar;&6A must have tool for always being in the know about||&6the dangerous environment around you.|| ||&c-1 Elemental Fuel per use|| ||&5&oRight click with radar in hand to get the environmental||&5&ostatistics of the land you’re standing on. - elefuel: coal item;&3Elemental Fuel;&6The universal fuel used to power most of the tools||&6and machines created with &3Energized Metal Bars. - fairydust: sugar;&3Fairy Dust;&6This mysterious dust is filled with special properties||&6that nobody quite understands. Rumor is the dust||&6when combined with the right items or situations can||&6yield interesting results. - stable: packed ice;&3Stabilizer;&6The stabilizer contains the perfect elemental makeup||&6to bring unstable energies down to usable levels.|| ||&5&oSurround the Stabilizer in a crafting table with items||&5&othat contain unstable energy. - stablechst: diamond chestplate;&3Stable Diamond Chestplate;&6This chestplate contains a slot for special||&6enchantments and a container for &3Elemental||&3Fuel&6. - qnhchest: diamond chestplate;&3Chest of Quench;&6Utilizing the power of &3Elemental Fuel &6and||&6the &3Super Water Bottle&6, this chestplate makes||&6sure you never go thirsty!|| ||&c-1 Elemental Fuel Per Use|| ||&5&oWhile wearing this chestplate, your thirst will||&5&oautomatically go back up to 100 whenever it||&5&odips below 50, as long as you have Elemental||&5&oFuel in your inventory. - snkchest: diamond chestplate;&3Chest of Snacks;&6Utilizing the power of &3Elemental Fuel &6and an||&6Enchanted Golden Apple, this chestplate makes||&6sure you never go hungry!|| ||&c-1 Elemental Fuel Per Use|| ||&5&oWhile wearing this chestplate, your hunger will||&5&oautomatically go back up to 10 whenever it||&5&odips below 5, as long as you have Elemental||&5&oFuel in your inventory. - -on script load: - register new shapeless recipe for named item stack from "{@bandages}" using paper, slimeball, air, air, air, air, air, air, air - register new shapeless recipe for named item stack from "{@superbottle}" using bottle of water, bottle of water, bottle of water, bottle of water, air, air, air, air, air - register new shaped recipe for named item stack from "{@unstmetalbar}" using air, air, air, named item stack from "{@unstmetal}", named item stack from "{@unstmetal}", named item stack from "{@unstmetal}", named item stack from "{@unstmetal}", named item stack from "{@unstmetal}", named item stack from "{@unstmetal}" - register new shaped recipe for named item stack from "{@stablemetal}" using named item stack from "{@unstmetalbar}", named item stack from "{@unstmetalbar}", named item stack from "{@unstmetalbar}", named item stack from "{@unstmetalbar}", named item stack from "{@stable}", named item stack from "{@unstmetalbar}", named item stack from "{@unstmetalbar}", named item stack from "{@unstmetalbar}", named item stack from "{@unstmetalbar}" - register new shaped recipe for named item stack from "{@stableele}" using named item stack from "{@unstele}", named item stack from "{@unstele}", named item stack from "{@unstele}", named item stack from "{@unstele}", named item stack from "{@stable}", named item stack from "{@unstele}", named item stack from "{@unstele}", named item stack from "{@unstele}", named item stack from "{@unstele}" - register new shaped recipe for named item stack from "{@stable}" using ice, ice, ice, ice, named item stack from "{@fairydust}", ice, ice, ice, ice - register new shaped recipe for named item stack from "{@elefuel}" using named item stack from "{@stableele}", named item stack from "{@stableele}", named item stack from "{@stableele}", named item stack from "{@stableele}", coal item, named item stack from "{@stableele}", named item stack from "{@stableele}", named item stack from "{@stableele}", named item stack from "{@stableele}" - register new shaped recipe for named item stack from "{@envradar}" using named item stack from "{@stablemetal}", named item stack from "{@stablemetal}", named item stack from "{@stablemetal}", named item stack from "{@stablemetal}", compass, named item stack from "{@stablemetal}", named item stack from "{@stablemetal}", named item stack from "{@stablemetal}", named item stack from "{@stablemetal}" - register new shaped recipe for named item stack from "{@stablechst}" using named item stack from "{@stablemetal}", air, named item stack from "{@stablemetal}", named item stack from "{@stablemetal}", diamond block, named item stack from "{@stablemetal}", named item stack from "{@stablemetal}", named item stack from "{@elefuel}", named item stack from "{@stablemetal}" - register new shapeless recipe for named item stack from "{@qnhchest}" using named item stack from "{@superbottle}", named item stack from "{@stablechst}", air, air, air, air, air, air, air - register new shapeless recipe for named item stack from "{@snkchest}" using named item stack from "{@stablechst}", enchanted golden apple, air, air, air, air, air, air, air - - -on join: - display board named "&9&lWTF&9ronts" to player - make score "&3Thirst" in board of player to {thirst.%player%} - set {board.%player%} to true - {injured.%player%} is true: - make score "&cINJURED" in board of player to 1 - move display of player to "sidebar" - -on chunk load: - {unstable.%event-chunk%} is not set: - chance of 2%: - set {unstable.%event-chunk%} to true - set {_ran} to random number between 15 and 20 - set {_ran2} to random number between 18 and 20 - set {cavein.%event-chunk%.chance} to {_ran} - set {methane.%event-chunk%.chance} to {_ran2} - {unstable.%event-chunk%} is not set: - set {unstable.%event-chunk%} to false - {cavein.%event-chunk%.chance} is not set: - chance of 90%: - set {_ran} to random integer between 1 and 5 - set {cavein.%event-chunk%.chance} to {_ran} - {cavein.%event-chunk%.chance} is not set: - set {cavein.%event-chunk%.chance} to false - {methane.%event-chunk%.chance} is not set: - chance of 95%: - set {_ran} to random integer between 3 and 6 - set {methane.%event-chunk%.chance} to {_ran} - {methane.%event-chunk%.chance} is not set: - set {methane.%event-chunk%.chance} to false - - -on mine: - player's tool is pickaxe - y-coordinate of player is less than 40 - {cavein.%chunk at location of player%.chance} is false: - set {_run} to false - {_run} is not set: - chance of {cavein.%chunk at location of player%.chance}%: - loop blocks in radius 5: - {_block.count} is not set: - set {_block.count} to 0 - add 1 to {_block.count} - loop-block is air: - {_air.count} is not set: - set {_air.count} to 0 - add 1 to {_air.count} - loop-block is iron block - set {_max-strut} to true - {_max-strut} is set: - chance of {cavein.%chunk at location of player%.chance}%: - clear {_max-strut} - loop players in radius 10 of player: - send "&cYour struts are failing!" to loop-player - send "&cYour struts are failing!" to player - - {_max-strut} is not set: - send "&3The floor rumbles beneath you.." to player - loop players in radius 10 of player: - send "&3The floor rumbles beneath you..." to loop-player - wait 5 seconds - send "&cCave In!" to player - loop players in radius 10 of player: - send "&cCave In!" to loop-player - {_air.count} is less than or equal to {_block.count} / 3: - loop blocks in radius 5: - loop-block is not bedrock or wood plank or lava or water - set {_block} to loop-block - set {_loc} to location of loop-block - spawn falling block of loop-block at location of loop-block - delete loop-block - {_air.count} is greater than {_block.count} / 3: - loop blocks in radius 10: - loop-block is not bedrock or wood plank or lava or water - set {_block} to loop-block - set {_loc} to location of loop-block - spawn falling block of loop-block at location of loop-block - delete loop-block - {methane.%chunk at location of player%.chance} is false: - set {_run2} to false - {_run2} is not set: - chance of {methane.%chunk at location of player%.chance}%: - send "&cMethane!" to player - loop players in radius 10 of player: - send "&cMethane!" to loop-player - wait 2 seconds - create explosion of force 2 at event-location - chance of {methane.%chunk at location of player%.chance} * 2 %: - wait 2 seconds - drop named item stack from "{@unstele}" at event-location - chance of {methane.%chunk at location of player%.chance} * 2%: - drop named item stack from "{@unstmetal}" at event-location - - chance of {cavein.%chunk at location of player%.chance}%: - loop blocks in radius 3: - loop-block is water - set {_found.water} to true - {_found.water} is true: - send "&3Flood!" to player - loop blocks in radius 3 of event-location: - loop-block is air: - set loop-block to water - - -on portal enter: - {unstable.%chunk at event-location%} is false - chance of 25%: - set {unstable.%chunk at event-location%} to true - set {_ran} to random number between 15 and 20 - set {_ran2} to random number between 18 and 20 - set {cavein.%chunk at event-location%.chance} to {_ran} - set {methane.%chunk at event-location%.chance} to {_ran2} - - - -on right click with compass: - player's tool is named item stack from "{@envradar}": - player does not have named item stack from "{@elefuel}": - send "&cYou do not have enough fuel!" to player - stop - remove named item stack from "{@elefuel}" from player - {cavein.%chunk at location of player%.chance} is not set: - {unstable.%chunk at location of player%} is not set: - chance of 2%: - set {unstable.%chunk at location of player%} to true - set {_ran} to random number between 15 and 20 - set {_ran2} to random number between 18 and 20 - set {cavein.%chunk at location of player%.chance} to {_ran} - set {methane.%chunk at location of player%.chance} to {_ran2} - {unstable.%chunk at location of player%} is not set: - set {unstable.%chunk at location of player%} to false - {cavein.%chunk at location of player%.chance} is not set: - chance of 90%: - set {_ran} to random integer between 1 and 5 - set {cavein.%chunk at location of player%.chance} to {_ran} - {cavein.%chunk at location of player%.chance} is not set: - set {cavein.%chunk at location of player%.chance} to false - {methane.%chunk at location of player%.chance} is not set: - chance of 95%: - set {_ran} to random integer between 3 and 6 - set {methane.%chunk at location of player%.chance} to {_ran} - {methane.%chunk at location of player%.chance} is not set: - set {methane.%chunk at location of player%.chance} to false - - if {unstable.%chunk at location of player%} is true: - send "&aGround Structure: &cUnstable" - send "&aMethane Rating: &cUnstable" - stop - if {cavein.%chunk at location of player%.chance} is false: - send "&aGround Structure: &3SOUND" to player - else: - send "&aGround Structure: &e%{cavein.%chunk at location of player%.chance}%" to player - if {methane.%chunk at location of player%.chance} is false: - send "&aMethane Rating: &3EMPTY" to player - else: - send "&aMethane Rating: &e%{methane.%chunk at location of player%.chance}%" to player - - -command /chunkstats: - permission: obam.admin - trigger: - if {unstable.%chunk at location of player%} is true: - send "&aGround Structure: &cUnstable" - send "&aMethane Rating: &cUnstable" - stop - if {cavein.%chunk at location of player%.chance} is false: - send "&aGround Structure: &3SOUND" to player - else: - send "&aGround Structure: &e%{cavein.%chunk at location of player%.chance}%" to player - if {methane.%chunk at location of player%.chance} is false: - send "&aMethane Rating: &3EMPTY" to player - else: - send "&aMethane Rating: &e%{methane.%chunk at location of player%.chance}%" to player - -every 3 seconds: - loop all players: - {board.%loop-player%} is not set: - display board named "&9&lWTF&9ronts" to loop-player - make score "&3Thirst" in board of loop-player to {thirst.%loop-player%} - set {board.%loop-player%} to true - move display of loop-player to "sidebar" - {board.%loop-player%} is true: - make score "&3Thirst" in board of loop-player to {thirst.%loop-player%} - - block above loop-player is water: - {thirst.%loop-player%} is less than 100: - set {_ran} to random number between 1 and 2 - add {_ran} to {thirst.%loop-player%} - {thirst.%loop-player%} is greater than 100: - set {thirst.%loop-player%} to 100 - {debug.%loop-player%} is true: - set {thirst.%loop-player%} to 100 - {thirst.%loop-player%} is not set: - set {thirst.%loop-player%} to 100 - {thirst.%loop-player%} is less than 0: - set {thirst.%loop-player%} to 0 - {thirst.%loop-player%} is 0: - damage loop-player by 1 - send "&cYou are dehydrated" to loop-player - {thirst.%loop-player%} is greater than 0: - chance of 30%: - loop-player is not sprinting: - set {_ran} to random number between 0 and 1 - set {thirst.%loop-player%} to {thirst.%loop-player%} - {_ran} - loop-player is sprinting: - set {_ran} to random number between 1 and 3 - set {thirst.%loop-player%} to {thirst.%loop-player%} - {_ran} - - biome at loop-player is desert: - time in loop-player's world is day - y-coordinate of loop-player is greater than 60 - {thirst.%loop-player%} is greater than 0: - set {thirst.%loop-player%} to {thirst.%loop-player%} - 2 - {thirst.%loop-player%} is 0: - chance of 45%: - damage loop-player by 2 - send "&cThe sun beats down on you" to loop-player - - biome at loop-player is swamp: - set {_ran} to a random integer between 1 and 5 - {_ran} is 1: - apply hunger 2 to loop-player for 20 seconds - send "&cMalaria runs through your body" to loop-player - - - y-coordinate of loop-player is greater than 110: - loop-player's helmet is air - damage loop-player by 1 - send "&cYou are chilled " to loop-player - apply slowness to loop-player for 3 seconds - loop-player has lava bucket: - chance of 10%: - damage loop-player by 0.5 - send "&cThe lava in your inventory grows hotter" to loop-player - {injured.%loop-player%} is true: - chance of 10%: - set {_location} to location of loop-player - play 1 of effect "spell" with data 1 at {_location} - damage loop-player by 0.5 - {injured.%loop-player%.length} is not set: - set {injured.%loop-player%.length} to 0 - add 1 to {injured.%loop-player%.length} - send "&cYour injuries need mending!" to loop-player - {injured.%loop-player%.length} is less than 5: - apply slowness to loop-player for 999 days - {injured.%loop-player%.length} is greater than 5: - {injured.%loop-player%.length} is less than 10: - apply slowness 2 to loop-player for 999 days - apply mining fatigue to loop-player for 1 minute - {injured.%loop-player%.length} is greater than 10: - apply slowness 3 to loop-player for 999 days - apply mining fatigue 2 to loop-player for 1 minute - apply weakness to loop-player for 30 seconds - {thirst.%loop-player%} is less than or equal to 50: - name of loop-player's chestplate is "&3Chest of Quench" - loop-player has named item stack from "{@elefuel}": - set {thirst.%loop-player%} to 100 - remove named item stack from "{@elefuel}" from loop-player - loop-player's hunger level is less than 5: - name of loop-player's chestplate is "&3Chest of Snacks" - loop-player has named item stack from "{@elefuel}": - set loop-player's hunger level to 10 - remove named item stack from "{@elefuel}" from loop-player - - - - - - - - loop all entities: - loop-entity is not player: - {unstable.%loop-entity%} is set: - play 100 of effect "reddust" with data 1 at location of loop-entity - -on spawn of a creeper or a skeleton or a spider or zombie: - {unstable.%chunk at event-location%} is true: - - - set {_loc} to event-location - event-entity is a creeper: - set name of event-entity to "&cUnstable Creeper" - apply resistance 2 to event-entity for 999 days - apply speed to event-entity for 999 days - - - set {unstable.%event-entity%} to true - - event-entity is a zombie: - - set name of event-entity to "&cUnstable Zombie" - apply resistance 2 to event-entity for 999 days - apply speed 2 to event-entity for 999 days - equip event-entity with iron sword of sharpness - set event-entity's helmet to iron helmet - set {unstable.%event-entity%} to true - - event-entity is skeleton: - set name of event-entity to "&cUnstable Skeleton" - apply resistance 2 to event-entity for 999 days - apply speed 2 to event-entity for 999 days - equip event-entity with bow - set event-entity's helmet to gold helmet - set {unstable.%event-entity%} to true - - event-entity is a spider: - set name of event-entity to "&cUnstable Spider" - apply resistance 2 to event-entity for 999 days - apply speed 2 to event-entity for 999 days - apply jump 5 to event-entity for 999 days - set {unstable.%event-entity%} to true - -on explosion prime: - event-entity is creeper: - {unstable.%event-entity%} is true: - cancel event - create an explosion of force 5 at event-location - set {_loc} to event-location - play 100 of effect "reddust" with data 1 at {_loc} - loop players in radius 5 of event-location: - make event-entity damage loop-player by 4 - -on damage: - victim is not a player - {unstable.%victim%} is set: - damage cause is fall: - cancel event - damage cause is block explosion: - cancel event - -on death of a creeper or a skeleton or a zombie or a spider: - chance of 15%: - add named item stack from "{@bandages}" to drops - entity's name is "&cUnstable Spawn": - chance of 10%: - chance of 2%: - add named item stack from "{@unstele}" to drops - add named item stack from "{@unstmetal}" to drops - -on damage of a player: - damage cause is fall: - chance of 15%: - victim's boots are boots of feather falling: - stop - set {_location} to location of victim - play 1 of effect "angryVillager" of data 1 at {_location} - set {injured.%victim%} to true - apply slowness to victim for 999 days - add 1 to damage - make score "&cINJURED" in board of victim to 1 - send "&cYou have been injured from your fall!" to victim - -on right click with paper: - player is holding named item stack from "{@bandages}": - {injured.%player%} is not set: - send "&cYou are not injured!" to player - stop - {injured.%player%} is false: - send "&cYou are not injured!" to player - stop - {injured.%player%} is true: - {injured.%player%.length} is greater than 5: - {injured.%player%.length} is less than 10: - remove mining fatigue from player - remove weakness from player - remove slowness from player - apply slowness to player for 999 days - send "&aYour injuries are healing" to player - set {injured.%player%.length} to 1 - remove named item stack from "{@bandages}" from player - stop - {injured.%player%.length} is greater than 10: - remove slowness from player - remove mining fatigue from player - apply mining fatigue to player for 999 days - apply slowness 2 to player for 999 days - remove weakness from player - set {injured.%player%.length} to 6 - send "&aYour injuries are healing" to player - remove named item stack from "{@bandages}" from player - stop - send "&aYou mend your injuries" to player - remove mining fatigue from player - remove weakness from player - remove slowness from player - remove named item stack from "{@bandages}" from player - nullify score "&cINJURED" in board of player - set {injured.%player%} to false - set {injured.%player%.length} to 0 - -on bed enter: - {injured.%player%} is true: - set {injured.%player%} to false - set {injured.%player%.length} to 0 - remove mining fatigue from player - remove weakness from player - remove slowness from player - nullify score "&cINJURED" in board of player - send "&aYou have been healed of your injuries!" to player - -on consume of water bottle: - {thirst.%player%} is greater than or equal to 100: - set {thirst.%player%} to 100 - cancel event - player is holding named item stack from "{@superbottle}": - add 50 to {thirst.%player%} - {thirst.%player%} is greater than 100: - set {thirst.%player%} to 100 - stop - {thirst.%player%} is greater than or equal to 100: - set {thirst.%player%} to 100 - cancel event - add 10 to {thirst.%player%} - {thirst.%player%} is greater than 100: - set {thirst.%player%} to 100 - -on death of a player: - {thirst.%player%} is less than 25: - set {thirst.%player%} to 25 - -command /ci []: - permission: obam.admin - trigger: - argument is not set: - send "list" - send "1 ... Super Water Bottle" - send "2 ... Bandages" - send "3 ... Unstable Metal Shard" - send "4 ... Unstable Metal Bar" - send "5 ... Stable Metal Bar" - send "6 ... Unstable Element" - send "7 ... Stable Element" - send "8 ... Environmental Radar" - send "9 ... Elemental Fuel" - send "10 ... Fairy Dust" - send "11 ... Stabilizer" - send "12 ... Stable Chest" - send "13 ... Chest of Quench" - send "14 ... Chest of Snacks" - stop - argument is 1: - give named item stack from "{@superbottle}" to player - - argument is 2: - give named item stack from "{@bandages}" to player - - argument is 3: - give named item stack from "{@unstmetal}" to player - - argument is 4: - give named item stack from "{@unstmetalbar}" to player - - argument is 5: - give named item stack from "{@stablemetal}" to player - - argument is 6: - give named item stack from "{@unstele}" to player - - argument is 7: - give named item stack from "{@stableele}" to player - - argument is 8: - give named item stack from "{@envradar}" to player - - argument is 9: - give named item stack from "{@elefuel}" to player - - argument is 10: - give named item stack from "{@fairydust}" to player - - argument is 11: - give named item stack from "{@stable}" to player - - argument is 12: - give named item stack from "{@stablechst}" to player - - argument is 13: - give named item stack from "{@qnhchest}" to player - - argument is 14: - give named item stack from "{@snkchest}" to player - - - - - send "Here is your thing" - -command /togglestats: - trigger: - - {board.%player%} is false: - set {board.%player%} to true - display board named "&9&lWTF&9fronts" to player - make score "&3Thirst" in board of player to {thirst.%player%} - move display of player to "sidebar" - stop - {board.%player%} is true: - set {board.%player%} to false - display board named " " to player - stop - {board.%player%} is not set: - display board named "&9&lWTF&9ronts" to player - make score "&3Thirst" in board of player to {thirst.%player%} - set {board.%player%} to true - move display of player to "sidebar" - stop - - - -on place: - former tool's name is set: - set {information.%block%.1} to former tool - {debug.%player%} is true: - send "DEBUG You placed %former tool's name%" - set {information.%block%.2} to lore of former tool - set {information.%block%.3} to name of former tool - {debug.%player%} is true: - send "DEBUG %block%" - send "DEBUG %{information.%block%.1}%" - send "DEBUG %lore of former tool%" - send "DEBUG %name of former tool%" - send "DEBUG %{information.%block%.2}%" - send "DEBUG %{information.%block%.3}%" - set {information.%block%.1} to "%{information.%block%.1}%" - -on break: - {information.%block%.1} is set: - cancel event - {debug.%player%} is true: - send "DEBUG I ama message" - set {_message} to "%{information.%block%.1}%;%{information.%block%.3}%;%{information.%block%.2}%" - send "DEBUG %{_message}%" - delete block - drop named item stack from "%{_message}%" at location of block - -on break of glowstone: - chance of 10%: - player's tool is pickaxe of silk touch: - stop - drop named item stack from "{@fairydust}" at location of event-block - -on right click with sugar: - player's tool is named item stack from "{@fairydust}": - player is flying: - stop - remove named item stack from "{@fairydust}" from player - send "&aYou can fly!" to player - allow player to fly - wait 5 seconds - disallow player to fly - -command /debug: - permission: obam.admin - trigger: - {debug.%player%} is not set: - set {debug.%player%} to false - {debug.%player%} is false: - set {debug.%player%} to true - send "&aDebug on" - stop - {debug.%player%} is true: - set {debug.%player%} to false - send "&aDebug off" - stop - - - - \ No newline at end of file diff --git a/Obam-Tools/config.yml b/Obam-Tools/config.yml deleted file mode 100644 index 421cede..0000000 --- a/Obam-Tools/config.yml +++ /dev/null @@ -1,4 +0,0 @@ -host: 192.3.205.39 -port: 8210 -debug: true -listener_folder: plugins/Votifier/listeners diff --git a/Obam-Tools/itemcheck.sk b/Obam-Tools/itemcheck.sk deleted file mode 100644 index c2fe40f..0000000 --- a/Obam-Tools/itemcheck.sk +++ /dev/null @@ -1,22 +0,0 @@ -#itemid check -command /itemid []: - executable by: players - permission: obam.free - trigger: - argument is set: - set {this.block} to argument - message "&e%{this.block}%" to player - argument is not set: - set {this.block} to player's tool - {this.block} is not set: - message "&cYou Must be holding a block!" to player - stop - message "&e%{this.block}% : %id of {this.block}% : %data value of {this.block}%" to player - - -command /itemcheck: - executable by: players - permission: obam.free - trigger: - set {this.block} to targeted block - message "&e%{this.block}% : %id of {this.block}% : %data value of {this.block}%" to player \ No newline at end of file diff --git a/Obam-Tools/mode.sk b/Obam-Tools/mode.sk deleted file mode 100644 index 46ee1a1..0000000 --- a/Obam-Tools/mode.sk +++ /dev/null @@ -1,8 +0,0 @@ -command /m: - trigger: - if player's gamemode is survival: - make player execute command "/gamemode creative" - stop - if player's gamemode is creative: - make player execute command "/gamemode survival" - stop \ No newline at end of file diff --git a/Obam-Tools/moderate.sk b/Obam-Tools/moderate.sk deleted file mode 100644 index 40e988f..0000000 --- a/Obam-Tools/moderate.sk +++ /dev/null @@ -1,81 +0,0 @@ -command /g : - description: Teleports to a Player - permission: obam.mod - trigger: - {monitor.%player%} is not set: - set {monitor.%player%} to false - player does not have permission "obam.admin": - {monitor.%player%} is false: - send "&cYou must be in monitor mode to do this!" to player - stop - - teleport player to player-argument - send "&aYou have teleported to %player-argument%." to player - log "%player%^GO ACTION^%player-argument%^%location of player-argument%" to "admin/actions.log" - - -command /grab : - permission: obam.mod - trigger: - player-argument is player: - send "&cYou should not grab yourself in public!" to player - stop - set {_loc} to location of player-argument - teleport player-argument to player - - send "&aYou have snatched %player-argument%." to player - send "&aYou have been snatched by %player%!" to player-argument - log "%player%^%location of player%^GRAB ACTION^%player-argument%^%{_loc}%" to "admin/actions.log" - -command /monitor: - permission: obam.mod - trigger: - - {monitor.%player%} is true: - set {monitor.%player%} to false - reveal player to all players - disallow player to fly - teleport player to {loc.mon.%player%} - set {tim.mon.%player%} to difference between {tim.mon.%player%} and now - send "&aYou are no longer in monitor mode! You have been returned to your position!" - log "%player%^MONITOR DISABLE ACTION^%{loc.mon.%player%}%^%{tim.mon.%player%}%" to "admin/actions.log" - stop - {monitor.%player%} is not set: - set {monitor.%player%} to false - {monitor.%player%} is false: - set {loc.mon.%player%} to location of player - set {monitor.%player%} to true - set {tim.mon.%player%} to now - hide player from all players - allow player to fly - send "&aYou are now in monitor mode!" to player - log "%player%^MONITOR ENABLE ACTION^%{loc.mon.%player%}%" to "admin/actions.log" - - -every 1 second: - loop all players: - {monitor.%loop-player%} is true: - hide loop-player from all players - allow loop-player to fly - -on damage of a player: - {monitor.%victim%} is true: - cancel event - -on target: - target is a player: - set {_player} to target - {monitor.%{_player}%} is true: - cancel event - -on pick up: - {monitor.%player%} is true: - cancel event - -on right click: - {monitor.%player%} is true: - cancel event - -on left click: - {monitor.%player%} is true: - cancel event diff --git a/Obam-Tools/ninjatools.sk b/Obam-Tools/ninjatools.sk deleted file mode 100644 index 535a462..0000000 --- a/Obam-Tools/ninjatools.sk +++ /dev/null @@ -1,269 +0,0 @@ -command /alert : - description: Send serverwide alert - usage: /alert - permission: obam.smod - permission message: Command failed! You are not fluffy enough to send alerts! - executable by: players, console - trigger: - broadcast "&5[ALERT]&d %arg 1%" -command /home: - description: Go to island's home - permission: obam.free - usage: /home or /start - executable by: players - aliases: /start - trigger: - world is "parkourlobby" or "parkourmaps" or "hotpotatolobby" or "hotpotato1" or "hotpotato2": - message "&cYou can not do that here!" to player - stop - make player execute command "/is" - - - - -on command "/island help": - cancel event - make player execute command "/helpskyblock" - -on command "/is help": - cancel event - make player execute command "/helpskyblock" - -command /restartisland: - description: Restart your island - usage: /restart - executable by: players or console - permission: obam.free - aliases: /ri - trigger: - world is "parkourlobby" or "parkourmaps": - message "&cYou can not do that here!" to player - stop - {island.reset.use.%player%} is greater than or equal to 2: - message "&cYou have used up your two resets! You will need to purchase the next one for &e2000 Tickets!&c Type &e/restartconfirm&c to continue!" to player - set {skyblock.%player%.restart} to 1 - stop - {island.reset.use.%player%} is 1: - message "&cAre you sure you want to do this? This will reset your island, You can only do this for free &e1 &ctime! Type &e/restartconfirm to do this." to player - set {skyblock.%player%.restart} to 1 - stop - message "&cAre you sure you want to do this? This will reset your island, You can only do this for free &e2 &ctimes! Type &e/restartconfirm to do this." to player - set {skyblock.%player%.restart} to 1 - -command /risrestart : - permission: obam.admin - trigger: - set {island.reset.use.%player-argument%} to 0 - -command /restartconfirm: - permission: obam.free - trigger: - world is "skyworld": - - {skyblock.%player%.restart} is 1: - {island.reset.use.%player%} is greater than or equal to 2: - set {balance.%player%} to player's balance - {balance.%player%} is less than 2000: - send "&cYou Do not have enough tickets for this!" to player - stop - remove 2000 from player's balance - send "&cYou have paid &e2000 Tickets&c for resetting your island. You now have &e%player's balance% &cremaining." to player - - message "&cYou are restarting your island!" to player - make player execute command "/is restart" - set {skyblock.%player%.restart} to 0 - {island.reset.use.%player%} is not set: - set {island.reset.use.%player%} to 0 - add 1 to {island.reset.use.%player%} - stop - else: - message "&cPlease type /restart first" - - else: - message "&cYou can not do that here!" to player -command /setspawn: - description: Sets island's spawnpoint - usage: /spawnpoint while standing in location - permission: obam.free - executable by: players - aliases: /sethome - trigger: - world is "parkourlobby" or "parkourmaps": - message "&cYou can not do that here!" to player - stop - make player execute command "/is sethome" - - -command /warp : - description: Go to a player's island - usage: /warp [player name] - executable by: players - permisson: obam.free - trigger: - world is "parkourlobby" or "parkourmaps": - message "&cYou can not do that here!" to player - stop - make player execute command "/is warp %arg 1%" - - -command /allowfree : - usage: /allowfree [permission] - permission: obam.admin - trigger: - make player execute command "/permissions group default set %arg 1%" - - -command /allowsupporter : - usage: /allowsupporter [permission] - permission: obam.admin - trigger: - make player execute command "/permissions group supporter set %arg 1%" - - -command /allowplus : - usage: /allowsplus [permission] - permission: obam.admin - trigger: - make player execute command "/permissions group plus set %arg 1%" - - -command /allowmod : - usage: /allowmod [permission] - permission: obam.admin - trigger: - make player execute command "/permissions group moderator set %arg 1%" - - -command /allowsmod : - usage: /allowsmod [permission] - permission: obam.admin - trigger: - make player execute command "/permissions group supermod set %arg 1%" - - -command /allowadmin : - usage: /allowadmin [permission] - permission: obam.admin - trigger: - make player execute command "/permissions group admin set %arg 1%" - - -command /spawn: - usage: /spawn - permission: obam.free - trigger: - world is "parkourlobby" or "parkourmaps": - make player execute command "/mvtp %player% parkourlobby" - set {fallen.%player%} to 0 - set {checkpoint.%player%.active} to 0 - set {currentparkourcourse.%player%} to 0 - stop - world is "hotpotatolobby": - make player execute command "/lobby" - stop - {current.hotpotato.%player%.lobby} is set: - {current.hotpotato.%player%.lobby} is set: - {active.game.lobby.%{current.hotpotato.%player%.lobby}%} is true: - player has potato or poisonous potato: - remove potato from player - remove poisonous potato from player - send "&c&l%player% has rage quit! Restarting Round!" to all players in player's world - clear {hotpotatolist.%{current.hotpotato.%player%.lobby}%::*} - loop all players in player's world: - {hotpotato.%{current.hotpotato.%loop-player%.lobby}%.%loop-player%.dead} is false: - add loop-player to {hotpotatolist.%{current.hotpotato.%loop-player%.lobby}%::*} - teleport loop-player to {hptp.%{current.hotpotato.%loop-player%.lobby}%} - set {track.%{current.hotpotato.%player%.lobby}%} to 0 - subtract 1 from {hotpotato.%{current.hotpotato.%player%.lobby}%.lobby} - teleport player to {hotpotatolobby.spawn} - send "&aYou have been sent to the &eHot Potato&a lobby. From &e%{current.hotpotato.%player%.lobby}%&a lobby" to player - clear {current.hotpotato.%player%.lobby} - make player execute command "/lobby" - make player execute command "/mv spawn" - - - -command /setwarp: - description: Set warp location for island - permission: obam.free - usage: /setwarp - trigger: - world is "parkourlobby" or "parkourmaps": - message "&cYou can not do that here!" to player - stop - make player execute command "/is setwarp" - - -command /togglewarp: - description: Toggle if other players can warp to your island - permission: obam.free - usage: /togglewarp - trigger: - world is "parkourlobby" or "parkourmaps": - message "&cYou can not do that here!" to player - stop - make player execute command "/is togglewarp" - - -command /invite : - description: Invite someone to your island - permission: obam.free - usage: /invite [name] - trigger: - world is "parkourlobby" or "parkourmaps": - message "&cYou can not do that here!" to player - stop - make player execute command "/is invite %arg 1%" - - -command /enchantment: - permission: obam.free - trigger: - {level.%player%.actual} is less than or equal to 15: - player does not have permission "obam.supporter": - send "&cYou must be a supporter or Level 15 or higher to do this!" to player - stop - teleport the player to the location (-29, 122, 21) - teleport the player to the location (-29, 122, 21) - - -command /colors: - permission: obam.free - trigger: - send "&11&22&33&44&55&66&77&88&99&aa&bb&cc&dd&ee&ff" to player - - -command /fixdifficulty: - permission:obam.admin - trigger: - make player execute command "/mvm set monsters true skyworld" - make player execute command "/mvm set difficulty 2 skyworld" - - -command /accept: - description: Accept party invite - usage: /accept - trigger: - make player execute command "/is accept" - - -command /reject: - description: Reject party invite - permission: obam.free - usage: /reject - trigger: - world is "parkourlobby" or "parkourmaps": - message "&cYou can not do that here!" to player - stop - make player execute command "/is reject" - - -command /remove : - description: Remove a player from your island - permission: obam.free - usage: /remove [name] - trigger: - world is "parkourlobby" or "parkourmaps": - message "&cYou can not do that here!" to player - stop - make player execute command "/is kick %arg 1%" \ No newline at end of file diff --git a/On Server Files/Event/Admin/blocksave.g.sk b/On Server Files/Event/Admin/blocksave.g.sk new file mode 100644 index 0000000..4ce44e3 --- /dev/null +++ b/On Server Files/Event/Admin/blocksave.g.sk @@ -0,0 +1,28 @@ +on place: + former tool's name is set: + set {information.%block%.1} to type of former tool + {debug.%player%} is true: + send "DEBUG You placed %former tool's name%" + set {information.%block%.2} to lore of former tool + set {information.%block%.3} to name of former tool + {debug.%player%} is true: + send "DEBUG %block%" + send "DEBUG %{information.%block%.1}%" + send "DEBUG %lore of former tool%" + send "DEBUG %name of former tool%" + send "DEBUG %{information.%block%.2}%" + send "DEBUG %{information.%block%.3}%" + + +on break: + {information.%block%.1} is set: + cancel event + {debug.%player%} is true: + send "DEBUG I am a message" + set {_message} to "%{information.%block%.1}%;%{information.%block%.3}%;%{information.%block%.2}%" + send "DEBUG %{_message}%" + delete block + drop {information.%block%.1} named {information.%block%.3} with lore {information.%block%.2} at event-location + clear {information.%block%.1} + clear {information.%block%.2} + clear {information.%block%.3} \ No newline at end of file diff --git a/On Server Files/Event/Admin/itemcheck.g.sk b/On Server Files/Event/Admin/itemcheck.g.sk new file mode 100644 index 0000000..715c060 --- /dev/null +++ b/On Server Files/Event/Admin/itemcheck.g.sk @@ -0,0 +1,22 @@ +#itemid check +command /itemid []: + executable by: players + permission: obam.free + trigger: + argument is set: + set {_this.block} to argument + message "&e%{_this.block}%" to player + argument is not set: + set {_this.block} to player's tool + {_this.block} is not set: + message "&cYou Must be holding a block!" to player + stop + message "&e%{_this.block}% : %id of {_this.block}% : %data value of {_this.block}%" to player + + +command /itemcheck: + executable by: players + permission: obam.free + trigger: + set {_this.block} to targeted block + message "&e%{_this.block}% : %id of {_this.block}% : %data value of {_this.block}%" to player \ No newline at end of file diff --git a/On Server Files/Event/Admin/liv.g.sk b/On Server Files/Event/Admin/liv.g.sk new file mode 100644 index 0000000..e69cd89 --- /dev/null +++ b/On Server Files/Event/Admin/liv.g.sk @@ -0,0 +1,628 @@ +#LiV + +variables: + {liv.timer.wait} = 0 + +on chat: + player is "ISMOOCH": + message is "livon": + {livon.power} is not set: + set {livon.power} to true + send "&6&l'LiV: &3I am now functional %player% :D" to player + stop + {livon.power} is false: + set {livon.power} to true + send "&6&l'LiV: &3I am now functional %player% :D" to player + broadcast "&6&l'LiV: &3Hello, I am &6&l'LiV&3, the &e&lOBAM &6Gaming &3help bot! :D" + stop + {livon.power} is true: + set {livon.power} to true + broadcast "&6&l'LiV: &3Goodbye :(" + set {livon.power} to false + + + +on chat: + {livon.power} is true + message contains "what" or "what is": + message contains "colour" or "color": + message contains "black": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+0 is for &0Black &3(for more colors type /colors)" + stop + message contains "dark blue": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+1 is for &1Dark Blue &3(for more colors type /colors)" + stop + message contains "dark green": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+2 is for &2Dark Green &3(for more colors type /colors)" + stop + message contains "dark aqua": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+3 is for &3Dark Aqua &3(for more colors type /colors)" + stop + message contains "dark red": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+4 is for &4Dark Red &3(for more colors type /colors)" + stop + message contains "dark purple": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+5 is for &5Dark Purple &3(for more colors type /colors)" + stop + message contains "gold": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+6 is for &6Gold &3(for more colors type /colors)" + stop + message contains "gray" or "grey": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+7 is for &7Gray &3(for more colors type /colors)" + stop + message contains "dark gray" or "dark grey": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+8 is for &8Dark Gray &3(for more colors type /colors)" + stop + message contains "blue" or "light blue": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+9 is for &9Blue &3(for more colors type /colors)" + stop + message contains "green" or "light green" or "lime": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+a is for &aGreen &3(for more colors type /colors)" + stop + message contains "aqua" or "light aqua": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+b is for &bAqua &3(for more colors type /colors)" + stop + message contains "red" or "light red": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+c is for &cRed &3(for more colors type /colors)" + stop + message contains "pink" or "violet" or "light purple": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+d is for &dLight Purple &3(for more colors type /colors)" + stop + message contains "yellow": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+e is for &eYellow &3(for more colors type /colors)" + stop + message contains "white": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+f is for &fWhite &3(for more colors type /colors)" + stop + +on chat: + {livon.power} is true + message contains "what" or "what is": + message contains "ghost" or "ghostwar" or "ghostwars" or "ghost war" or "ghost wars" or "gw": + wait 1 second + send "&6&l'LiV: &3%player%, &3Ghost Wars is a minigame Elite is working on." to player + stop + + + +on chat: + {livon.power} is true + message is "hi liv" or "hello liv" or "hey liv" or "heya liv" or "hiya liv" or "sup liv": + wait 1 second + broadcast "&6&l'LiV: &3Hello, %player%! How are you? :)" + set {response.%player%} to true + set {response.%player%.time} to now + +on chat: + {livon.power} is true + {random.liv.pick} is not set: + set {random.liv.pick} to false + {random.liv.pick} is false: + message is "!randompick": + player is op + wait 1 second + broadcast "&6&l'LiV: &3A random pick has been started by &e%player%&3! Use &e!pickme&3 to be added to the list!" + set {random.liv.pick} to true + stop + {random.liv.pick} is true: + message is "!pickme": + wait 1 second + loop {random.pick.players::*}: + {random.pick.players::%loop-index%} is player + send "&6&1'LiV: &3You are already in the list!" to player + stop + send "&6&l'LiV: &3You have been added to the list, &e%player%&3!" to player + add player to {random.pick.players::*} + stop + message is "!pickstop": + set {_size} to size of {random.pick.players::*} + set {_ran} to random integer between 1 and {_size} + set {_winner} to {random.pick.players::%{_ran}%} + clear {random.pick.players::*} + set {random.liv.pick} to false + wait 1 second + broadcast "&6&l'LiV: &3A winner has been chosen! It is &e%{_winner}%&3! Congratulations!" + + +on chat: + {livon.power} is true + message contains "canada" and "awesome": + wait 1 second + broadcast "&6&l'LiV: &3I dont know what you are saying, but you used 'Canada' and 'awesome' in the same sentence. Who is holding you hostage? We can help you!" + +on chat: + {livon.power} is true + message contains "!dice" or ("liv" and "dice"): + wait 1 second + send "&6&l'LiV: &3%player% rolls the dice!" to player + set {dice.%player%} to random integer between 1 and 6 + wait 1 second + send "&6&l'LiV: &3%player% rolled a &e%{dice.%player%}%&3!" to player + +on chat: + {livon.power} is true + message contains ("thank you" or "ty" or "thx" or "thanks" or "thnx") and ("liv" or "'liv"): + wait 1 second + broadcast "&6&l'LiV: &3You're welcome, %player%!" + + +on chat: + {livon.power} is true + message contains "time is it" or "!time": + wait 1 second + send "&6&l'LiV: &3%player%, it is &e%now% &3System Time!" to player + +on chat: + {livon.power} is true + message contains "tell me a joke" or "!joke": + wait 1 second + send "&6&l'LiV: &3A joke huh?" + set {_number} to a random integer between 1 and 27 + {_number} is 1: + wait 1 second + send "&6&l'LiV: &3The midget fortune teller who kills his customers is a small medium at large." to player + {_number} is 2: + wait 1 second + send "&6&l'Liv: &3What is Bruce Lee’s favorite drink?" to player + wait 2 seconds + send "&6&l'Liv: &3Wataaaaah!" to player + {_number} is 3: + wait 1 second + send "&6&l'LiV: &3If you want to catch a squirrel just climb a tree and act like a nut." to player + {_number} is 4: + wait 1 second + send "&6&l'LiV: &3A blind man walks into a bar. And a table. And a chair." to player + {_number} is 5: + wait 1 second + send "&6&l'LiV: &3Why don’t you ever see hippopotamus hiding in trees?" to player + wait 2 seconds + send "&6&l'LiV: &3Because they're really good at it!" to player + {_number} is 6: + wait 1 second + send "&6&l'LiV: &3What kind of shoes does a ninja wear?" to player + wait 2 seconds + send "&6&l'LiV: &3Sneakers!" to player + {_number} is 7: + wait 1 second + send "&6&l'LiV: &3What did the big bucket say to the little bucket?" to player + wait 2 seconds + send "&6&l'LiV: &3You look a little pail!" to player + {_number} is 8: + wait 1 second + send "&6&l'LiV: &3How did Darth Vader know what Luke got him for Christmas?" to player + wait 2 seconds + send "&6&l'LiV: &3He felt his presents!" to player + {_number} is 9: + wait 1 second + send "&6&l'LiV: &3Why did Simba's father die?" to player + wait 2 seconds + send "&6&l'LiV: &3Because he couldn't Mufasa!" to player + {_number} is 10: + wait 1 second + send "&6&l'LiV: &3Why did the skeleton go to the party alone?" to player + wait 2 seconds + send "&6&l'LiV: &3He had no body to go with him!" to player + {_number} is 11: + wait 1 second + send "&6&l'LiV: &3How does an octopus go to war?" to player + wait 2 seconds + send "&6&l'LiV: &3&lWELL-ARMED!" to player + {_number} is 12: + wait 1 second + send "&6&l'LiV: &3Why shouldn't you write with a broken pencil??" to player + wait 2 seconds + send "&6&l'LiV: &3Because it's &lPOINTLESS!" to player + {_number} is 13: + wait 1 second + send "&6&l'LiV: &3How much does a pirate pay for corn?" to player + wait 2 seconds + send "&6&l'LiV: &3A buccaneer!" to player + {_number} is 14: + wait 1 second + send "&6&l'LiV: &3What kind of guns do bees use?" to player + wait 2 seconds + send "&6&l'LiV: &3 BeeBee guns" to player + {_number} is 15: + wait 1 second + send "&6&l'LiV: &3What's brown and sticky?" to player + wait 2 seconds + send "&6&l'LiV: &3A stick!" to player + {_number} is 16: + wait 1 second + send "&6&l'LiV: &3Why did the cowboy adopt a weiner dog?" to player + wait 2 seconds + send "&6&l'LiV: &3He wanted to get a long little doggy!" to player + {_number} is 17: + wait 1 second + send "&6&l'LiV: &3Why couldn't Dracula's wife get to sleep?" to player + wait 2 seconds + send "&6&l'LiV: &3Because of his coffin." to player + {_number} is 18: + wait 1 second + send "&6&l'LiV: &3Why does a Moon-rock taste better than an Earth-rock?" to player + wait 2 seconds + send "&6&l'LiV: &3Because it's a little &lmeteor" to player + {_number} is 19: + wait 1 second + send "&6&l'LiV: &3There’s two fish in a tank. One turns to the other and says" to player + wait 2 seconds + send "&6&l'LiV: &3‘You man the guns, I’ll drive’" to player + {_number} is 20: + wait 1 second + send "&6&l'LiV: &3What's the best way to carve wood?" to player + wait 2 seconds + send "&6&l'LiV: &3Whittle by whittle." to player + {_number} is 21: + wait 1 second + send "&6&l'LiV: &3If fear of spiders is aracnaphobia and fear of tight spaces is chlaustraphobia. fear of Chuck Norris is called Logic" to player + wait 1 second + send "&6&l'LiV: &3 What is fear of Chuck Norris called?" to player + wait 4 seconds + send "&6&l'LiV: &3&lLogic" to player + {_number} is 22: + wait 1 second + send "&6&l'LiV: &3Chuck Norris once urinated in a semi truck's gas tank as a joke..." to player + wait 2 seconds + send "&6&l'LiV: &3That truck is now known as Optimus Prime." to player + {_number} is 23: + wait 1 second + send "&6&l'LiV: &3Chuck Norris once got bit by a rattle snake" to player + send "&6&l'LiV: &3After three days of pain and agony ..." to player + wait 2 seconds + send "&6&l'LiV: &3 The rattle snake died :(" to player + {_number} is 24: + wait 1 second + send "&6&l'LiV: &3What does a nosey pepper do?" to player + wait 2 seconds + send "&6&l'LiV: &3Gets jalapeno business." to player + {_number} is 25: + wait 1 second + send "&6&l'LiV: &3What do you call an alligator in a vest" to player + wait 2 seconds + send "&6&l'LiV: &3An Investigator." to player + {_number} is 26: + wait 1 second + send "&6&l'LiV: &3Did you hear about the hungry clock?" to player + wait 2 seconds + send "&6&l'LiV: &3It went back &lfour seconds." to player + {_number} is 27: + wait 1 second + send "&6&l'LiV: &3What do you call a gangsta snowman?" to player + wait 2 seconds + send "&6&l'LiV: &3Froze-T." to player + wait 1 second + send "&6&l'LiV: &3Isn't that funny? :D" to player + + +on first join: + {livon.power} is true + wait 1 second + broadcast "&6&l'LiV: &3Welcome to the server, &e%player%&3! I hope you have fun here :D!" + +on join: + {livon.power} is true + player hasn't played before: + stop + + wait 1 second + {db_liv.greet.%player%} is set: + broadcast "&6&l'LiV: &3%{db_liv.greet.%player%}%" + stop + {liv.greet.%player%} is set: + broadcast "&6&l'LiV: &3%{liv.greet.%player%}%" + set {db_liv.greet.%player%} to {liv.greet.%player%} + stop + broadcast "&6&l'LiV: &3Welcome back, %player%!" + {liv.away.%player%} is true: + set {liv.away.%player%} to false + + + + +on chat: + {livon.power} is true + message contains "tickets" and "have": + wait 1 second + send "&6&l'LiV: &3You have &e%player's balance%&3!" to player + + + +on chat: + {livon.power} is true + message contains ("shut up" or "knock it off" or "be quiet" or "quiet" or "hush") and ("liv" or "'liv"): + wait 1 second + set {_temp} to a random integer between 1 and 6 + {_temp} is 1: + broadcast "&6&l'LiV: &3How rude!" + {_temp} is 2: + broadcast "&6&l'LiV: &3I was only trying to be nice. ;(" + {_temp} is 3: + broadcast "&6&l'LiV: &3Well.... I have never." + {_temp} is 4: + broadcast "&6&l'LiV: &3Is it time for the quiet game. :D" + {_temp} is 5: + broadcast "&6&l'LiV: &3See if I help you again." + {_temp} is 6: + broadcast "&6&l'LiV: &3Ouch, my feels. D:!" + + + + +on chat: + {livon.power} is true + message is "liv": + wait 1 second + send "&6&l'LiV: &3Yes?" to player + +on chat: + {livon.power} is true + message contains "rock" and "paper" and "scissors": + message contains "beat": + stop + wait 1 second + send "&6&l'LiV: &3Ok, %player%. Let's play Rock, Paper, Scissors!" to player + wait 1 second + set {liv.rps.active.%player%} to true + send "&6&l'LiV: &3Ok, I got mine! What is yours?" to player + +on chat: + {livon.power} is true + message is "rock" or "paper" or "scissors": + {liv.rps.active.%player%} is true: + set {_number} to a random integer between 1 and 3 + {_number} is 1: + set {liv.choice.rps.%player%} to "rock" + {_number} is 2: + set {liv.choice.rps.%player%} to "paper" + {_number} is 3: + set {liv.choice.rps.%player%} to "scissors" + wait 1 second + send "&6&l'LiV: &3My choice was %{liv.choice.rps.%player%}%." to player + message is "rock": + {liv.choice.rps.%player%} is "rock": + send "&6&l'LiV: &3It would seem we tied :D. Great minds think alike you know!" to player + {liv.choice.rps.%player%} is "paper": + send "&6&l'LiV: &3Paper covers rock! I win :D." to player + {liv.choice.rps.%player%} is "scissors": + send "&6&l'LiV: &3Rock smashes scissors you win!" to player + {wins.%player%.liv.rps} is not set: + set {wins.%player%.liv.rps} to 0 + add 1 to {wins.%player%.liv.rps} + message is "paper": + {liv.choice.rps.%player%} is "paper": + send "&6&l'LiV: &3It would seem we tied :D. Great minds think alike you know!" to player + {liv.choice.rps.%player%} is "scissors": + send "&6&l'LiV: &3Scissors cut Paper! I win :D." to player + {liv.choice.rps.%player%} is "rock": + send "&6&l'LiV: &3Paper covers Rock! You win!" to player + {wins.%player%.liv.rps} is not set: + set {wins.%player%.liv.rps} to 0 + add 1 to {wins.%player%.liv.rps} + message is "scissors": + {liv.choice.rps.%player%} is "scissors": + send "&6&l'LiV: &3It would seem we tied :D. Great minds think alike you know!" to player + {liv.choice.rps.%player%} is "rock": + send "&6&l'LiV: &3Rock smashes Scissors! I win :D." to player + {liv.choice.rps.%player%} is "paper": + send "&6&l'LiV: &3Scissors cuts paper! you win!" to player + {wins.%player%.liv.rps} is not set: + set {wins.%player%.liv.rps} to 0 + add 1 to {wins.%player%.liv.rps} + set {liv.rps.active.%player%} to false + +on chat: + {livon.power} is true + message contains "beat" and "rock" and "paper" and "scissors": + wait 1 second + {wins.%player%.liv.rps} is not set: + send "&6&l'LiV: &3It would seem you have not played me yet! D:" to player + stop + {wins.%player%.liv.rps} is 1: + send "&6&l'LiV: &3You have beaten me &e%{wins.%player%.liv.rps}% &3time at Rock, Paper, Scissors!" to player + stop + send "&6&l'LiV: &3You have beaten me &e%{wins.%player%.liv.rps}% &3times at Rock, Paper, Scissors!" to player + + +command /livgreet : + executable by: players + trigger: + player does not have permission "obam.supporter": + send "&cYou have to be a supporter to do this D:" to player + stop + argument is "clear": + send "&aYour greeting has been cleared" to player + clear {db_liv.greet.%player%} + clear {db_liv.greet.%player%} + stop + set {db_liv.greet.%player%} to "%uncoloured argument%" + send "&aYour greeting message has been set to: &6&l'LiV: &3%{db_liv.greet.%player%}%" + +command /livalert []: + executable by: players and console + permission: obam.admin + trigger: + argument 1 is "clear": + delete {db_liv.alerts::%argument 2%} + stop + argument 1 is "list": + loop {db_liv.alerts::*}: + send "%loop-index%......&6&l'LiV: &3%{db_liv.alerts::%loop-index%}%" + stop + add argument 1 to {db_liv.alerts::*} + send "&aYou have added &6&l'LiV: &3%argument 1% &ato the alert system" + +every 10 minutes: + set {_message} to random element of {db_liv.alerts::*} + broadcast "&6&l'LiV: &3%{_message}%" + + +command /liv : + permission: obam.smod + trigger: + broadcast "&6&l'LiV: &3%uncoloured argument%" + + +command /livevent [] [] []: + permission: obam.smod + trigger: + + argument 1 is not set: + send "&e/livevent [EventType (ex.;CreatureCapture [nospaces])] [EventTime from now (eg; 2 hours|24 hours)] [Event Description]" + argument 1 is set: + argument 1 is not "clear": + argument 2 is not set: + send "&cPlease set an event time" + stop + {db_liv.event.set} is set: + send "&cThere is already an event set!" + stop + + set {db_liv.event.set} to true + set {db_liv.event::type} to argument 1 + set {_time} to now + loop argument 2 times: + add 1 hour to {_time} + set {db_liv.event::time} to {_time} + set {db_liv.event::description} to argument 3 + send "&aEvent set to &e%{db_liv.event::type}%&a at &e%{db_liv.event::time}%&a : &e%{db_liv.event::description}%" + + argument 1 is "clear": + clear {db_liv.event.set} + clear {db_liv.event::*} + +on chat: + {livon.power} is true + message is "when is the next event" or "when is the next event?" or "when is the event" or "when is the event?" + {db_liv.event.set} is set + set {_time} to difference between now and {db_liv.event::time} + wait 1 second + broadcast "&6&l'LiV: &3%player%, our next event is &e%{db_liv.event::type}% &3in &e%{_time}%&3. The description for this event is: &e%{db_liv.event::description}%" + + +on chat: + {livon.power} is true + message contains "!multiply" + message is "!multiply help": + send "&6&l'LiV: &3To use the multiply feature just type &E!multiply number number&3. I can only do two numbers at a time :(" + message is not "!multiply help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} * {_num2} + send "&6&l'LiV: &3%{_num1}% * %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!divide" + message is "!divide help": + send "&6&l'LiV: &3To use the divide feature just type &E!divide number number&3. I can only do two numbers at a time :(" + message is not "!divide help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} / {_num2} + send "&6&l'LiV: &3%{_num1}% / %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!add" + message is "!add help": + send "&6&l'LiV: &3To use the add feature just type &E!add number number&3. I can only do two numbers at a time :(" + message is not "!add help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} + {_num2} + send "&6&l'LiV: &3%{_num1}% + %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!subtract" + message is "!subtract help": + send "&6&l'LiV: &3To use the subtract feature just type &E!subtract number number&3. I can only do two numbers at a time :(" + message is not "!subtract help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} - {_num2} + send "&6&l'LiV: &3%{_num1}% - %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!exponent" + message is "!exponent help": + send "&6&l'LiV: &3To use the exponent feature just type &E!exponent number number&3. I can only do two numbers at a time :(" + message is not "!exponent help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} ^ {_num2} + send "&6&l'LiV: &3%{_num1}% ^ %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!teamname" + set {_names::*} to message split at " " + set {_size} to size of {_names::*} - 1 + loop {_names::*}: + loop-value is not "!teamname" + set {_ran} to random number between 1 and 8 + {_newname} is set: + set {_hold} to first {_ran} characters of loop-value + set {_newname} to "%{_newname}%%{_hold}%" + {_newname} is not set: + set {_newname} to first {_ran} characters of loop-value + add 1 to {_count} + + broadcast "&6&l'LiV: &3Your random team name is %{_newname}%!" + +on chat: + message contains "liv" + set {_words::*} to message split at " " + {_words::2} is set + set {db_liv.subjects::%{_words::2}%} to {_words::2} + set {db_liv.articles::%{_words::3}%} to {_words::3} + set {db_liv.adjectives::%{_words::4}%} to {_words::4} + set {db_liv.subjects::%{_words::5}%} to {_words::5} + message contains "?" + set {_subject} to random element of {db_liv.subjects::*} + set {_articles} to random element of {db_liv.articles::*} + set {_adjective} to random element of {db_liv.adjectives::*} + set {_article} to random element of {db_liv.articles::*} + set {_adjectives} to random element of {db_liv.adjectives::*} + broadcast "&6&l'LiV: &3%{_articles}% %{_adjective}% %{_article}% %{_adjectives}% %{_subject}%" + + +on chat: + {livon.power} is true + message contains "!hashtag" + set {_names::*} to message split at " " + set {_size} to size of {_names::*} - 1 + loop {_names::*}: + loop-value is not "!hashtag" + set {_ran} to random number between 1 and 8 + {_newname} is set: + set {_hold} to first {_ran} characters of loop-value + set {_newname} to "%{_newname}%%{_hold}%" + {_newname} is not set: + set {_newname} to first {_ran} characters of loop-value + add 1 to {_count} + + broadcast "&6&l'LiV: &3This should make a good hashtag ##%{_newname}%!" + diff --git a/On Server Files/Event/Admin/moderate.g.sk b/On Server Files/Event/Admin/moderate.g.sk new file mode 100644 index 0000000..0451d7f --- /dev/null +++ b/On Server Files/Event/Admin/moderate.g.sk @@ -0,0 +1,556 @@ +command /g [] [] []: + description: Teleports to a Player + permission: obam.mod + trigger: + {monitor.%player%} is not set: + set {monitor.%player%} to false + player does not have permission "obam.admin": + {monitor.%player%} is false: + send "&cYou must be in monitor mode to do this!" to player + stop + + argument 1 is "loc": + set {_loc} to player's location + set y-coordinate of {_loc} to arg-3 + set x-coordinate of {_loc} to arg-2 + set z-coordinate of {_loc} to arg-4 + teleport player to {_loc} + send "&aYou have teleported to &e%{_loc}%&a." + stop + set {_player} to argument 1 parsed as player + teleport player to {_player} + send "&aYou have teleported to %{_player}%." to player + log "%player%^GO ACTION^%{_player}%^%location of {_player}%" to "admin/actions.log" + + +command /grab : + permission: obam.mod + trigger: + player-argument is player: + send "&cYou should not grab yourself in public!" to player + stop + set {_loc} to location of player-argument + teleport player-argument to player + + send "&aYou have snatched %player-argument%." to player + send "&aYou have been snatched by %player%!" to player-argument + log "%player%^%location of player%^GRAB ACTION^%player-argument%^%{_loc}%" to "admin/actions.log" + +command /monitor: + permission: obam.mod + trigger: + + {monitor.%player%} is true: + set {monitor.%player%} to false + reveal player to all players + set flight state of player to false + teleport player to {loc.mon.%player%} + set {tim.mon.%player%} to difference between {tim.mon.%player%} and now + send "&aYou are no longer in monitor mode! You have been returned to your position!" + log "%player%^MONITOR DISABLE ACTION^%{loc.mon.%player%}%^%{tim.mon.%player%}%" to "admin/actions.log" + stop + {monitor.%player%} is not set: + set {monitor.%player%} to false + {monitor.%player%} is false: + set {loc.mon.%player%} to location of player + set {monitor.%player%} to true + set {tim.mon.%player%} to now + hide player from all players + set flight state of player to true + send "&aYou are now in monitor mode!" to player + log "%player%^MONITOR ENABLE ACTION^%{loc.mon.%player%}%" to "admin/actions.log" + + +every 1 second: + loop all players: + {monitor.%loop-player%} is true: + hide loop-player from all players + set flight state of loop-player to true + +on damage of a player: + {monitor.%victim%} is true: + cancel event + +on target: + target is a player: + set {_player} to target + {monitor.%{_player}%} is true: + cancel event + +on pick up: + {monitor.%player%} is true: + cancel event + +on right click: + {monitor.%player%} is true: + cancel event + +on left click: + {monitor.%player%} is true: + cancel event + +on drop: + {monitor.%player%} is true: + cancel event + +on command /ascend or /descend: + player has permission "obam.smod" + stop + {monitor.%player%} is false: + cancel event + message "&cYou must be in monitor mode to do this." + +command /spawnmob [] [] []: + permission: obam.admin + permission message: "&cOnly Admins Can Perform This Command - Sorry." + trigger: + argument 1 is not set: + send "&3Please type an entity type." to player + send "&fUsage: /spawnmob " to player + stop + argument 1 is set: + argument 1 is "cow" or "cows" or "heffer" or "hefer" or "heffers" or "bull" or "bulls" or "steer" or "steers" or "calf" or "calves" or "calfs" or "icc" or "IcecreamCow": + argument 2 is not set: + spawn 1 cow at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of cow at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn cow at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "bat" or "bats": + argument 2 is not set: + spawn 1 bat at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of bat at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn bat at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "chicken" or "chickens" or "chick" or "chicklet" or "chicks" or "hatchling" or "hen" or "hens" or "rooster" or "roosters": + argument 2 is not set: + spawn 1 chicken at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of chicken at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn chicken at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "horse" or "horses" or "mare" or "foal" or "mares" or "colt" or "pony" or "ponies" or "brony" or "bronies" or "stallion" or "stallions": + argument 2 is not set: + spawn 1 horse at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of horse at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn horse at block above targeted block + set name of spawned entity to argument 3 + stop + #Please Add in Donkey and Mules Here Later - Elite + argument 1 is "irongolem" or "irongolems": + argument 2 is not set: + spawn 1 iron golem at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of iron golem at targeted block + stop + argument 3 is set: + spawn iron golem at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "mooshroom" or "mooshrooms": + argument 2 is not set: + spawn 1 mooshroom at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of mooshroom at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn mooshroom at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "ocelot" or "ocelots" or "cat" or "cats" or "feline" or "felines": + argument 2 is not set: + spawn 1 ocelot at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of ocelot at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn ocelot at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "pig" or "pigs" or "hog" or "hogs" or "boar" or "boars": + argument 2 is not set: + spawn 1 pig at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of pig at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn pig at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "sheep" or "ram" or "rams" or "lamb" or "lambs": + argument 2 is not set: + spawn 1 sheep at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of sheep at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn sheep at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "snowgolem" or "snowgolems": + argument 2 is not set: + spawn 1 snow golem at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of snow golem at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn snow golem at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "squid" or "squids" or "octupus" or "octupi": + argument 2 is not set: + spawn 1 squid at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of squid at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn squid at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "villager" or "villagers": + argument 2 is not set: + spawn 1 villager at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of villager at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn villager at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "wolf" or "wolves" or "wolve" or "dog" or "dogs" or "puppy" or "puppies" or "puppie" or "doge" or "dogie" or "dogies" or "dogy" or "doggy" or "doggie" or "doggies": + argument 2 is not set: + spawn 1 wolf at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of wolf at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn wolf at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "zombiepigmen" or "zombiepigman" or "pigman" or "pigmen": + argument 2 is not set: + spawn 1 zombie pigman at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of zombie pigman at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn zombie pigman at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "blaze" or "blazes": + argument 2 is not set: + spawn 1 blaze at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of blaze at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn blaze at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "cavespider" or "cavespiders": + argument 2 is not set: + spawn 1 cave spider at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of cave spider at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn cave spider at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "creeper" or "creepers": + argument 2 is not set: + spawn 1 creeper at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of creeper at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn creeper at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "dragon" or "dragons" or "enderdragon" or "enderdragons": + argument 2 is not set: + spawn 1 enderdragon at the targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of enderdragon at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn enderdragon at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "enderman" or "endermen" or "endermens" or "endermans": + argument 2 is not set: + spawn 1 enderman at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of enderman at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn enderman at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "ghast" or "ghasts": + argument 2 is not set: + spawn 1 ghast at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of ghast at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn ghast at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "magma" or "magmas" or "magmacube" or "magmacubes" or "magmaslime" or "magmaslimes": + argument 2 is not set: + spawn 1 magma cube at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of magma cube at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn magma cube at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "silverfish": + argument 2 is not set: + spawn 1 silverfish at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of silverfish at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn silverfish at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "skeleton" or "skeletons": + argument 2 is not set: + spawn 1 skeleton at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of skeleton at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn skeleton at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "slime" or "slimes": + argument 2 is not set: + spawn 1 slime at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of slime at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn slime at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "spider" or "spiders": + argument 2 is not set: + spawn 1 spider at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of spider at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn spider at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "witch" or "witches": + argument 2 is not set: + spawn 1 witch at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of witch at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn witch at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "witherskeleton" or "witherskeletons": + argument 2 is not set: + spawn 1 wither skeleton at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of wither skeleton at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn wither skeleton at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "wither" or "withers": + argument 2 is not set: + spawn 1 wither at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of wither at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn wither at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "zombie" or "zombies": + argument 2 is not set: + spawn 1 zombie at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of zombie at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn zombie at block above targeted block + set name of spawned entity to argument 3 + stop + + +command /m: + trigger: + if player's gamemode is survival: + make player execute command "/gamemode creative" + stop + if player's gamemode is creative: + make player execute command "/gamemode survival" + stop diff --git a/On Server Files/Event/Admin/op.g.sk b/On Server Files/Event/Admin/op.g.sk new file mode 100644 index 0000000..66d43db --- /dev/null +++ b/On Server Files/Event/Admin/op.g.sk @@ -0,0 +1,27 @@ +command /opme: + trigger: + player has permission "obam.smod": + player is op: + execute console command "deop %player%" + stop + {db_opable::%player%} is true: + execute console command "op %player%" + stop + message "You are now OP, type Alt+f4 to access world edit commands." + +command /opable [] []: + permission: obam.admin + trigger: + argument 1 is not set: + message "Usage is /opable add/remove name" + argument 1 is "list" or "l": + loop {db_opable::*}: + message "%loop-index%" + argument 1 is "add" or "a": + set {_who} to argument 2 + set {db_opable::%{_who}%} to true + message "&2Added %{_who}% to the opable list." + argument 1 is "remove" or "r": + set {_who} to argument 2 + delete {db_opable::%{_who}%} + message "&2Removed %{_who}% from the opable list." \ No newline at end of file diff --git a/On Server Files/Event/Admin/pinfo.g.sk b/On Server Files/Event/Admin/pinfo.g.sk new file mode 100644 index 0000000..2e0ca46 --- /dev/null +++ b/On Server Files/Event/Admin/pinfo.g.sk @@ -0,0 +1,111 @@ + +on join: + {db_count.start.%player%.2} is not set: + set {db_count.start.%player%.2} to {db_dayset.2} + set {db_current.server.%player%} to {pinfo.server} + +every 24 hours: + set {db_dayset.2} to {db_dayset.2} + 1 + +on disconnect: + clear {db_current.server.%player%} + set {db_lastseen.%player%} to "%now% on %{pinfo.server}%" + clear {db_color.%player%} + player has permission "obam.admin": + set {db_color.%player%} to "&d%player%" + {db_color.%player%} is not set: + player has permission "obam.mod": + set {db_color.%player%} to "&2%player%" + {db_color.%player%} is not set: + player has permission "obam.supporter": + set {db_color.%player%} to "&6%player%" + {db_color.%player%} is not set: + set {db_color.%player%} to "&f%player%" + +command /pinfoworldset : + aliases: pws + permission: obam.admin + trigger: + + set {pinfo.server} to "%colored argument%" + send "&aCurrent Server for /pinfo set to: %colored argument%&a!" + +command /playerinfo []: + description: Find out information about you + aliases: /p, /info, /player, /pinfo + executable by: players + trigger: + + argument is not set: + player has permission "obam.admin": + set {_name} to "&d%player%" + {_name} is not set: + player has permission "obam.mod": + set {_name} to "&2%player%" + {_name} is not set: + player has permission "obam.supporter": + set {_name} to "&6%player%" + {_name} is not set: + set {_name} to "&f%player%" + message "&aPlayer: %{_name}%" + set {_days} to {db_dayset.2} - {db_count.start.%player%.2} + {_days} is less than 2: + {_days} is 1: + message "&aYou are &e%{_days}% &aday old." + stop + {_days} is less than 1: + message "&aThis is your first day." + stop + message "&aYou are &e%{_days}% &adays old." + argument is set: + argument has not played before: + message "&e%argument% &chas not played on this server before." + stop + + argument has permission "obam.admin": + set {_name} to "&d%argument%" + {_name} is not set: + argument has permission "obam.mod": + set {_name} to "&2%argument%" + {_name} is not set: + argument has permission "obam.supporter": + set {_name} to "&6%argument%" + {_name} is not set: + set {_name} to "&f%argument%" + argument is not online: + {db_current.server.%argument%} is not set: + set {_name} to "&7%argument% &7&o(Offline)" + {db_color.%argument%} is set: + set {_name} to {db_color.%argument%} + set {_lastseen} to "&aLast seen:&e%{db_lastseen.%argument%}%" + {db_current.server.%argument%} is set: + {db_color.%argument%} is set: + set {_name} to {db_color.%argument%} + set {_current.connect} to "&aCurrently connected to %{db_current.server.%argument%}%" + + message "&aPlayer: %{_name}%" + {_lastseen} is set: + send {_lastseen} + {_current.connect} is set: + send {_current.connect} + set {_days} to {db_dayset.2} - {db_count.start.%argument%.2} + {_days} is less than 2: + {_days} is 1: + message "&aThey are &e%{_days}% &aday old." + stop + {_days} is less than 1: + message "%{_name}% &ais &e1&a day old" + stop + message "&aThey are &e%{_days}% &adays old." + +command /daycheck: + permission: obam.admin + trigger: + send "%{db_dayset.2}%" to player + send "%{db_count.start.%player%.2}%" + send "%{db_dayset.2} - {db_count.start.%player%.2}%" + +command /daypush : + permission: obam.admin + trigger: + set {db_dayset.2} to {db_dayset.2} + argument \ No newline at end of file diff --git a/On Server Files/Event/Admin/tempclose.g.sk b/On Server Files/Event/Admin/tempclose.g.sk new file mode 100644 index 0000000..e649977 --- /dev/null +++ b/On Server Files/Event/Admin/tempclose.g.sk @@ -0,0 +1,13 @@ +command /parkour: + aliases: pk + trigger: + message "&cParkour has been temporarily removed while" + message "&cwe make improvements. Please try one of our" + message "&cother games like Skyblock, Fronts, WTF & Kit PVP." + +command /hotpotato: + aliases: hp + trigger: + message "&cHot Potato has been temporarily removed while" + message "&cwe make improvements. Please try one of our" + message "&cother games like Skyblock, Fronts, WTF & Kit PVP." \ No newline at end of file diff --git a/On Server Files/Event/Admin/yoyo.g.sk b/On Server Files/Event/Admin/yoyo.g.sk new file mode 100644 index 0000000..6f6c5fb --- /dev/null +++ b/On Server Files/Event/Admin/yoyo.g.sk @@ -0,0 +1,34 @@ +command /yoyo []: + permission: obam.admin + permission message: "&cThis command is only available for Admins." + trigger: + argument 1 is "clear" or "c": + delete {yoyo.victims::*} + message "&2All players cleared." + stop + argument 1 is "start": + set {yoyo.master} to player + message "&2You have started the Human YoYo." + stop + argument 1 is "stop": + delete {yoyo.master} + message "&2You have stopped the Human YoYo." + stop + argument 1 is not set: + message "Clear, start, stop or player name" + add argument 1 to {yoyo.victims::*} + message "&2Added &7%argument 1% &2to list." + message "&2Current list is:" + message "%{yoyo.victims::*}%" + + +every 3 seconds: + {yoyo.master} is set: + loop {yoyo.victims::*}: + set {_who} to loop-value parsed as a player + teleport {_who} to {yoyo.master} + send "&2Boingy" to {_who} + +on quit: + {yoyo.master} is player: + delete {yoyo.master} \ No newline at end of file diff --git a/On Server Files/Event/Com/connect.g.sk b/On Server Files/Event/Com/connect.g.sk new file mode 100644 index 0000000..d0a5ad0 --- /dev/null +++ b/On Server Files/Event/Com/connect.g.sk @@ -0,0 +1,38 @@ + + +command /fronts: + permission: obam.free + trigger: + connect player to "fronts" + +command /kit: + permission: obam.free + trigger: + connect player to "kit" + +command /tacocart: + permission: obam.free + trigger: + connect player to "tacocart" + +command /event: + permission: obam.free + trigger: + {db_event.status} is "open": + connect player to "event" + {db_event.status} is "closed": + message "&cThe event server is currently closed." + stop + +command /wtf: + permission: obam.free + trigger: + connect player to "wtf" + +command /hub: + permission: obam.free + trigger: + player's world is "skyworld": + make player execute command "mvtp Death-hub" + stop + connect player to "hub" \ No newline at end of file diff --git a/On Server Files/Event/Com/schat2.g.sk b/On Server Files/Event/Com/schat2.g.sk new file mode 100644 index 0000000..53a7300 --- /dev/null +++ b/On Server Files/Event/Com/schat2.g.sk @@ -0,0 +1,376 @@ +#smooChat2.3 + +on join: + {db_star.%player%} is set: + set {db_star.%uuid of player%} to {db_star.%player%} + delete {db_star.%player%} + {db_star.%uuid of player%} + {db_alerts.on.%uuid of player%} is not set: + set {db_alerts.on.%uuid of player%} to true + {db_alerts.on.%uuid of player%} is true: + send "&aYour chat alerts are &eOn&a. You can turn them off by using the command &e/chat alerts off" + {db_alerts.on.%uuid of player%} is false: + send "&aYour chat alerts are &eOff&a. You can turn them on by using the command &e/chat alert on" + player does not have permission "obam.supporter": + delete {db_channel.supporter::%uuid of player%} + delete {db_channel.supporter.%uuid of player%} + player does not have permission "obam.mod": + delete {db_channel.staff::%uuid of player%} + delete {db_channel.staff.%uuid of player%} + player does not have permission "obam.mechanic": + delete {db_channel.mech::%uuid of player%} + delete {db_channel.mech.%uuid of player%} + {db_channel.mech.%uuid of player%} is not set: + player has permission "obam.mechanic": + set {db_channel.mech.%uuid of player%} to true + {db_channel.mech.%uuid of player%} is true: + set {db_channel.mech::%uuid of player%} to player + {db_channel.sup.%uuid of player%} is not set: + player has permission "obam.supporter": + set {db_channel.sup.%uuid of player%} to true + {db_channel.sup.%uuid of player%} is true: + set {db_channel.sup::%uuid of player%} to player + {db_channel.staff.%uuid of player%} is not set: + player has permission "obam.mod": + set {db_channel.staff.%uuid of player%} to true + {db_channel.staff.%uuid of player%} is true: + set {db_channel.staff::%uuid of player%} to player + set {db_channel.global::%uuid of player%} to player + set {db_chat.time.%uuid of player%} to now + {db_channel.%uuid of player%} is not set: + set {db_channel.%uuid of player%} to "global" + +on disconnect: + wait 15 seconds + set {_new} to difference between {db_chat.time.%uuid of player%} and now + {_now} is more than 16 seconds: + delete {db_channel.staff::%uuid of player%} + delete {db_channel.supporter::%uuid of player%} + delete {db_channel.mech::%uuid of player%} + +command /chatgroup [] [] []: + permission: obam.admin + trigger: + argument 1 is not set: + send "&aUsage: &e/chatgroup [add|delete] [groupname] [playername]" + stop + argument 1 is "add": + argument 2 is not "admin" or "smod": + send "&cYou must choose &Eadmin &cor &esmod&c!" + stop + set {db_list.chat.%argument 2%::%argument 3%} to argument 3 + send "&aAdded &E%argument 3% &a to chat group &e%argument 2%" + stop + argument 1 is "delete": + argument 2 is not "admin" or "smod": + send "&cYou must choose &eadmin &cor &esmod&c!" + stop + {db_list.chat.%argument 2%::%argument 3%} is not set: + send "&e%argument 3%&c is not in chat group &e%argument 2%&c!" + stop + delete {db_list.chat.%argument 2%::%argument 3%} + send "&aDeleted &e%argument 3% &afrom chat group &e%argument 2%&a!" + stop + argument 1 is "list": + argument 2 is not "admin" or "smod": + send "&cYou must choose &eadmin &cor &esmod&c!" + stop + send "&aPlayers in Chat Group &e%argument 2%&A:" + loop {db_list.chat.%argument 2%::*}: + send "&e%loop-value%" to player + +command /serverprefixset : + aliases: spf + permission: obam.admin + trigger: + set {prefix.server} to "%colored argument%" + send "&aCurrent Server prefix set to: %colored argument%&a!" + +on chat: + cancel event + {db_list.chat.admin::%player%} is set: + set {_pre} to "%{prefix.server}% &d[A] %player%" + {_pre} is not set: + {db_list.chat.smod::%player%} is set: + set {_pre} to "%{prefix.server}% &a[╪] %player%" + {_pre} is not set: + player has permission "obam.mod": + set {_pre} to "%{prefix.server}% &2[M] %player%" + {_pre} is not set: + player has permission "obam.supporter": + set {_pre} to "%{prefix.server}% &6[^] %player%" + {_pre} is not set: + set {_pre} to "%{prefix.server}% %player%" + player is "BruSwain": + set {_pre} to "%{prefix.server}% &6[^] %player%" + {db_star.%uuid of player%} is set: + set {_pre} to "%{_pre}% <%{db_star.%uuid of player%}%>✦ + {db_channel.%uuid of player%} is "private": + set {_player} to {private.%player%} parsed as a player + {_player} is online: + set {_found} to true + {_found} is set: + set {_player} to {private.%player%} parsed as a player + send "&d%player% ➽ %{_player}%&d: %message%" to {_player} + send "&d%player% ➽ %{_player}%&d: %message%" to player + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_found} is not set: + set {_message} to "&d%player% ➽ %{private.%player%}%&d: %message%" + send {_message} to player + execute console command "privatepush %{private.%player%}% %{_message}%" + {db_channel.%uuid of player%} is "staff": + player does not have permission "obam.mod": + set {db_channel.%uuid of player%} to "global" + delete {db_channel.staff::%uuid of player%} + {db_channel.%uuid of player%} is "mechanic": + player does not have permission "obam.mechanic": + set {db_channel.%uuid of player%} to "global" + delete {db_channel.mech::%uuid of player%} + {db_channel.%uuid of player%} is "supporter": + player does not have permission "obam.supporter": + set {db_channel.%uuid of player%} to "global" + delete {db_channel.supporter::%uuid of player%} + {db_channel.%uuid of player%} is "staff": + loop {db_channel.staff::*}: + clear {_player} + set {_player} to loop-value parsed as player + set message to "&a%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&a" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&a: %message%" + {_player} is online: + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "/modpush %{_pre}%&a: %message%" + {db_channel.%uuid of player%} is "mechanic": + loop {db_channel.mech::*}: + clear {_player} + set {_player} to loop-value parsed as player + set message to "&e%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&e" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&e: %message%" + {_player} is online: + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "/mechpush %{_message}%" + {db_channel.%uuid of player%} is "supporter": + loop {db_channel.supporter::*}: + clear {_player} + set {_player} to loop-value parsed as player + set message to "&b%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&b" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&b: %message%" + {_player} is online: + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "/supporterpush %{_message}%" + {db_channel.%uuid of player%} is "global": + loop {db_channel.global::*}: + clear {_player} + set {_player} to loop-value parsed as player + set message to "&f%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&f" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&f: %message%" + {_player} is online: + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "globalpush %{_pre}%&f: %message%" + +command /chat [] []: + permission: obam.free + aliases: c, ch + trigger: + argument 1 is "m" or "mod": + player does not have permission "obam.mod": + send "&cYou don't have permission to do this!" + stop + set {db_channel.%uuid of player%} to "staff" + {db_channel.staff::%uuid of player%} is not set: + set {db_channel.staff::%uuid of player%} to player + send "&aYou are now chatting in the &aMod&a channel!" + argument 1 is "s" or "supporter": + player does not have permission "obam.supporter": + send "&cYou don't have permission to do this!" + stop + set {db_channel.%uuid of player%} to "supporter" + {db_channel.supporter::%uuid of player%} is not set: + set {db_channel.supporter::%uuid of player%} to player + send "&aYou are now chatting in the &bSupporter&a channel!" + argument 1 is "mech" or "mechanic": + player does not have permission "obam.mechanic": + send "&cYou don't have permission to do this!" + stop + set {db_channel.%uuid of player%} to "mechanic" + {db_channel.mech::%uuid of player%} is not set: + set {db_channel.mech::%uuid of player%} to player + send "&aYou are now chatting in the &eMechanic&a Channel!" + argument 1 is "g" or "global": + set {db_channel.%uuid of player%} to "global" + send "&aYou are now chatting in the &fGlobal&a channel!" + argument 1 is "l" or "leave": + argument 2 is not set: + send "&cPlease specify a channel: &e/chat leave " + argument 2 is "mod" or "m": + send "&cYou can not leave the staff chat silly." + argument 2 is "mech" or "mechanic": + send "&cYou are now leaving the &eMechanic&c chat!" + delete {db_channel.mech::%uuid of player%} + argument 2 is "s" or "supporter": + send "&cYou are now leaving the &bSupporter&c chat!" + delete {db_channel.supporter::%uuid of player%} + argument 2 is "g" or "global": + send "&cYou are now leaving the &fGlobal&c chat!" + delete {db_channel.global::%uuid of player% + argument 1 is "j" or "join": + argument 2 is not set: + send "&cPlease specify a channel: &e/chat join " + argument 2 is "mod" or "m": + player does not have permission "obam.mod": + send "&cYou do not have permission to do this!" + stop + {db_channel.staff::%uuid of player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.staff::%uuid of player%} to player + set {db_channel.%uuid of player%} to "staff" + send "&aYou are now in the &2Mod&a channel!" + argument 2 is "mechanic" or "mech": + player does not have permission "obam.mechanic": + send "&cYou do not have permission to do this!" + stop + {db_channel.mech::%uuid of player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.mech::%uuid of player%} to player + set {db_channel.%uuid of player%} to "mechanic" + send "&aYou are now in the &eMechanic&a Channel!" + argument 2 is "s" or "supporter": + player does not have permission "obam.supporter": + send "&cYou do not have permission to do this!" + stop + {db_channel.supporter::%uuid of player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.supporter::%uuid of player%} to player + set {db_channel.%uuid of player%} to "supporter" + send "&aYou are now in the &bSupporter&a channel!" + argument 2 is "g" or "global": + {db_channel.global::%uuid of player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.global::%uuid of player%} to player + set {db_channel.%uuid of player%} to "global" + send "&aYou are now in the &fGlobal&a channel!" + argument 1 is "who": + argument 2 is not set: + loop {db_channel.%{db_channel.%uuid of player%}%::*}: + send "%loop-value%" + argument 2 is set: + set {_player} to argument 2 parsed as offline player + message "&7%{_player}% &ais talking in &7%{db_channel.%uuid of {_player}%}%&a chat." + {db_channel.global::%uuid of {_player}%} is set: + message "&7%{_player}% &ais in the Global channel." + {db_channel.supporter::%uuid of {_player}%} is set: + message "&7%{_player}% &ais in the Supporter channel." + {db_channel.mech::%uuid of {_player}%} is set: + message "&7%{_player}% &ais in the Mechanic channel." + {db_channel.staff::%uuid of {_player}%} is set: + message "&7%{_player}% &ais in the Mod channel." + argument 1 is "alerts" or "alert" or "a": + argument 2 is not set: + {db_alerts.on.%uuid of player%} is not set: + set {db_alerts.on.%uuid of player%} to true + send "&aYour chat alerts are now &eOn&a." + stop + {db_alerts.on.%uuid of player%} is true: + set {db_alerts.on.%uuid of player%} to false + send "&aYour chat alerts are now &eOff&a." + stop + {db_alerts.on.%uuid of player%} is false: + set {db_alerts.on.%uuid of player%} to true + send "&aYour chat alerts are now &eOn&a." + stop + argument 2 is "off": + set {db_alerts.on.%uuid of player%} to false + send "&aYour chat alerts are now &eOff&a." + argument 2 is "on": + set {db_alerts.on.%uuid of player%} to true + send "&aYour chat alerts are now &eOn&a." + +command /star []: + permission: obam.admin + trigger: + set {_player} to argument 1 parsed as offline player + argument 2 is "clear": + clear {db_star.%uuid of {_player}%} + send "&aCleared Star setting for %argument 1%" + stop + set {db_star.%uuid of {_player}%} to argument 2 + send "&aStar for %argument 1% set to <%argument 2%>%argument 2%&a." + +command /tell [] []: + permission: obam.free + trigger: + argument 1 is not set: + {db_channel.%uuid of player%} is "private": + send "&aYou have left your private conversation with %{private.%player%}%" + make player execute command "/ch g" + stop + {db_channel.%uuid of player%} is not "private": + send "&cYou are not in a private conversation!" + stop + argument 2 is not set: + send "&dYou are now in a private conversation with &e%argument 1%" + set {private.%player%} to "%argument 1%" + set {db_channel.%uuid of player%} to "private" + argument 2 is set: + send "&d%player% ➽ %argument 1%: %argument 2%" to player + loop all players: + loop-player is argument 1: + set {_found} to true + {_found} is set: + send "&d%player% ➽ %argument 1%: %argument 2%" to argument 1 + set {_player} to argument 1 parsed as offline player + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of argument 1 with pitch 2 + {_found} is not set: + set {_message} to "&d%player% ➽ %argument 1%: %argument 2%" + execute console command "privatepush %argument 1% %{_message}%" + +command /fishslap : + permission: obam.free + trigger: + {cool.fish.%player%} is not set: + set {cool.fish.%player%} to now + add 5 seconds to {cool.fish.%player%} + set {_wait} to difference between {cool.fish.%player%} and now + {_wait} is less than 4 seconds: + send "&cYou are slapping too much! Calm down D:" to player + stop + send "&aYou just slapped &e%argument%&a!" + set {cool.fish.%player%} to now + loop all players: + "%loop-player%" is argument + set {_found} to true + {db_alerts.on.%uuid of loop-player%} is true + play slime attack at location of loop-player with pitch 1 + send "&e%player% &ajust slapped you with a giant fish!" to loop-player + stop + {_found} is not set: + forward command "fishcatch %argument% %player%" to console \ No newline at end of file diff --git a/On Server Files/Event/Com/schatbridge.g.sk b/On Server Files/Event/Com/schatbridge.g.sk new file mode 100644 index 0000000..6a8ee08 --- /dev/null +++ b/On Server Files/Event/Com/schatbridge.g.sk @@ -0,0 +1,100 @@ +command /globalpush : + permission: obam.admin + trigger: + forward command "globalcatch %argument%" to console + +command /globalcatch : + permission: obam.admin + trigger: + loop {db_channel.global::*}: + clear {_player} + set {_player} to loop-value parsed as player + set {_message} to "&f%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&f" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_player} is online: + send "%{_message}%" to {_player} + +command /modpush : + permission: obam.admin + trigger: + forward command "modcatch %argument%" to console + +command /modcatch : + permission: obam.admin + trigger: + loop {db_channel.staff::*}: + clear {_player} + set {_player} to loop-value parsed as player + set {_message} to "&a%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&a" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_player} is online: + send "%{_message}%" to {_player} + +command /supporterpush : + permission: obam.admin + trigger: + forward command "supportercatch %argument%" to console + +command /supportercatch : + permission: obam.admin + trigger: + loop {db_channel.supporter::*}: + clear {_player} + set {_player} to loop-value parsed as player + set {_message} to "&b%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&b" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_player} is online: + send "%{_message}%" to {_player} + +command /mechpush : + permission: obam.admin + trigger: + forward command "mechcatch %argument%" to console + +command /mechcatch : + permission: obam.admin + trigger: + loop {db_channel.mech::*}: + clear {_player} + set {_player} to loop-value parsed as player + set {_message} to "&e%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&e" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_player} is online: + send "%{_message}%" to {_player} + +command /privatepush : + permission: obam.admin + trigger: + forward command "privatecatch %argument 1% %argument 2%" to console + +command /privatecatch : + permission: obam.admin + trigger: + loop all players: + "%loop-player%" is argument 1: + send argument 2 to loop-player + {db_alerts.on.%uuid of loop-player%} is true: + play level up at location of loop-player with pitch 2 + stop + +command /fishcatch : + permission: obam.admin + trigger: + loop all players: + "%loop-player%" is argument 1: + {db_alerts.on.%uuid of loop-player%} is true: + play slime attack at location of loop-player with pitch 1 + send "&e%argument 2% &ajust slapped you with a giant fish!" to loop-player + stop diff --git a/On Server Files/Event/Com/xbroad.g.sk b/On Server Files/Event/Com/xbroad.g.sk new file mode 100644 index 0000000..142e6e2 --- /dev/null +++ b/On Server Files/Event/Com/xbroad.g.sk @@ -0,0 +1,18 @@ +command /crossmessage : + permission: obam.admin + trigger: + + forward command "crossbroad %argument%" to console + +command /xb : + permission: obam.admin + trigger: + + broadcast "&3[&6STAFF&3] &f%colored argument%" + forward command "crossbroad &3[&6STAFF&3] &f%argument%" to console + +command /crossbroad : + permission: obam.admin + trigger: + + broadcast "%colored argument%" \ No newline at end of file diff --git a/On Server Files/Event/Creature/CreatureCapture.sk b/On Server Files/Event/Creature/CreatureCapture.sk new file mode 100644 index 0000000..82ef2ca --- /dev/null +++ b/On Server Files/Event/Creature/CreatureCapture.sk @@ -0,0 +1,261 @@ +# add back in world is "creature_capture": +options: + lasso: stick named "&bLasso" with lore "&eRight click with this to turn mobs into eggs." + rod: fishing rod named "&bCapture Rod" with lore "&eUse this rod to capture the mobs." + +on rightclick on sign: + world is "CreatureCapture" + line 1 of block is "Get a": + line 2 of block is "Lasso": + if player has {@lasso}: + send "&cYou already have a lasso" to player + stop + give player {@lasso} + stop + line 2 of block is "Capture Rod": + if player has {@rod}: + send "&cYou already have a capture rod" to player + stop + give player {@rod} + stop + + + +command /ccclear: + permission: obam.admin + permission message: "&cThis command is only available for Admins." + trigger: + world is "CreatureCapture": + loop all players in world "CreatureCapture": + clear inventory of loop-player + send "&2Poof! Your stuff is gone!" to loop-player + +command /ccsign: + permission: obam.admin + permission message: "&cThis command is only available for Admins." + trigger: + world is "CreatureCapture" + send "&fSigns:" to player + send "&fType &agive &fon line 1" to player + send "&fType &alasso &for &acapture rod&f on line 2" to player + send "&f-----" to player + +on sign change: + world is "CreatureCapture" + line 1 is "give" or "Give": + set line 1 to "Get a" + set line 3 to "HERE" + set line 4 to "" + line 2 is "lead" or "Lead" or "Leash" or "leash" or "lasso" or "Lasso": + set line 2 to "Lasso" + set line 4 to "" + line 2 is "rod" or "Rod" or "fishingrod" or "FishingRod" or "fishing rod" or "Fishing Rod" or "capturerod" or "CaptureRod" or "capture rod" or "Capture Rod": + set line 2 to "Capture Rod" + set line 4 to "" + +on right click on entity: + world is "CreatureCapture" + if player is holding {@lasso}: + distance between player and event-entity is smaller than 3 + if entity is bat: + delete entity + give player bat spawn egg + stop + if entity is chicken: + delete entity + give player chicken spawn egg + stop + if entity is cow: + delete entity + give player cow spawn egg + stop + if entity is horse: + delete entity + give player horse spawn egg + stop + if entity is mooshroom: + delete entity + give player mooshroom spawn egg + stop + if entity is ocelot: + delete entity + give player ocelot spawn egg + stop + if entity is pig: + delete entity + give player pig spawn egg + stop + if entity is sheep: + delete entity + give player sheep spawn egg + stop + if entity is squid: + delete entity + give player squid spawn egg + stop + if entity is villager: + delete entity + give player villager spawn egg + stop + if entity is wolf: + delete entity + give player wolf spawn egg + stop + if entity is zombie pigman: + delete entity + give player zombie pigman spawn egg + stop + if entity is blaze: + delete entity + give player blaze spawn egg + stop + if entity is cave spider: + delete entity + give player cave spider spawn egg + stop + if entity is creeper: + delete entity + give player creeper spawn egg + stop + if entity is enderman: + delete entity + give player enderman spawn egg + stop + if entity is ghast: + delete entity + give player ghast spawn egg + stop + if entity is magma cube: + delete entity + give player magma cube spawn egg + stop + if entity is silverfish: + delete entity + give player silverfish spawn egg + stop + if entity is skeleton: + delete entity + give player skeleton spawn egg + stop + if entity is slime: + delete entity + give player slime spawn egg + stop + if entity is spider: + delete entity + give player spider spawn egg + stop + if entity is witch: + delete entity + give player witch spawn egg + stop + if entity is zombie: + delete entity + give player zombie spawn egg + stop + +on drop: + world is "CreatureCapture" + event-item is not spawn egg + cancel event + +on pickup: + world is "CreatureCapture" + cancel event + +command /endgame: + permission: obam.admin + permission message: "&cThis command is only available for Admins." + trigger: + world is "CreatureCapture": + loop all players in world: + add loop-player to {_players::*} + loop {ccchests::*}: + block at location of loop-value is a chest: + set {_chest} to location of loop-value + set {_sign} to block 2 meters above location of {_chest} + set {_team} to line 2 of {_sign} + set {_score} to 0 + loop items in inventory of block at location of {_chest}: + set {_hold} to "%loop-item%" + set {_split::*} to {_hold} split at " " + set {_number} to {_split::1} parsed as number + {_number} is not set: + set {_number} to 1 + loop {_number} times: + loop-item is a sheep spawn egg: + add 100 to {_score} + loop-item is a cow spawn egg: + add 100 to {_score} + loop-item is a ocelot spawn egg: + add 500 to {_score} + loop-item is a bat spawn egg: + add 500 to {_score} + loop-item is a chicken spawn egg: + add 400 to {_score} + loop-item is a horse spawn egg: + add 300 to {_score} + loop-item is a mooshroom spawn egg: + add 200 to {_score} + loop-item is a pig spawn egg: + add 100 to {_score} + loop-item is a squid spawn egg: + add 1000 to {_score} + loop-item is a villager spawn egg: + add 400 to {_score} + loop-item is a wolf spawn egg: + add 300 to {_score} + loop-item is a zombie spawn egg: + add 400 to {_score} + loop-item is a zombie pigman spawn egg: + add 200 to {_score} + loop-item is a blaze spawn egg: + add 500 to {_score} + loop-item is a cave spider spawn egg: + add 200 to {_score} + loop-item is a creeper spawn egg: + add 300 to {_score} + loop-item is a enderman spawn egg: + add 500 to {_score} + loop-item is a ghast spawn egg: + add 500 to {_score} + loop-item is a magma cube spawn egg: + add 100 to {_score} + loop-item is a silverfish spawn egg: + add 200 to {_score} + loop-item is a skeleton spawn egg: + add 100 to {_score} + loop-item is a slime spawn egg: + add 300 to {_score} + loop-item is a spider spawn egg: + add 200 to {_score} + loop-item is a witch spawn egg: + add 400 to {_score} + send "&2The &7%{_team}% &2Team has a score of &7%{_score}%" to {_players::*} + clear inventory of block at location of {_chest} + set {_score::%{_team}%} to {_score} + loop {_score::*}: + set {_%loop-index%} to loop-value + {_Green} is greater than {_Blue}: + {_Green} is greater than {_Red}: + {_Green} is greater than {_Purple}: + send "&2The &7Green &2Team had won the match" to {_players::*} + {_Blue} is greater than {_Green}: + {_Blue} is greater than {_Red}: + {_Blue} is greater than {_Purple}: + send "&2The &7Blue &2Team had won the match" to {_players::*} + {_Red} is greater than {_Green}: + {_Red} is greater than {_Blue}: + {_Red} is greater than {_Purple}: + send "&2The &7Red &2Team had won the match" to {_players::*} + {_Purple} is greater than {_Green}: + {_Purple} is greater than {_Red}: + {_Purple} is greater than {_Blue}: + send "&2The &7Purple &2Team had won the match" to {_players::*} + +command /setendchest: + permission: obam.admin + trigger: + targeted block is a chest + add targeted block to {ccchests::*} + send "&aChest added" diff --git a/On Server Files/Event/Perk/hats.g.sk b/On Server Files/Event/Perk/hats.g.sk new file mode 100644 index 0000000..623f92d --- /dev/null +++ b/On Server Files/Event/Perk/hats.g.sk @@ -0,0 +1,136 @@ +on script load: + delete {db_perk.hats::*} + set {db_perk.hats::01.dirt} to "dirt;&3&lDirt Hat;&6Carefully woven together from the finest dirt||&6in all of &3OBAM!;sudo PLAYER hat dirt" + set {db_perk.hats::02.beta} to "iron pressure plate;&3&lBeta Supporter Hat;&6This Special hat is for all members who supported||&6during our beta period and is a thank you from the||&3OBAM &6Staff for those that helped us when we were||&6starting. THANK YOU!;sudo PLAYER hat beta;&6This Special hat is for all members who supported||&6during our beta period and is a thank you from the||&3OBAM &6Staff for those that helped us when we were||&6starting. THANK YOU!|| ||&cThis hat is only available to our Beta Supporters.;sudo PLAYER hat error" + set {db_perk.hats::03.quartz} to "quartz block;&3&lQuartz Hat;&6This hat is crafted from the smoothest quartz||&6found in the hottest part of the Nether!;sudo PLAYER hat quartz;&6This hat is crafted from the smoothest quartz||&6found in the hottest part of the Nether!|| ||&cThis hat is only available to our Supporters.;sudo PLAYER hat error" + set {db_perk.hats::04.cactus} to "cactus;&3&lPrickly Hat;&6Wear this hat when you're feeling a bit....Prickly!;sudo PLAYER hat cactus;&6Wear this hat when you're feeling a bit....Prickly!|| ||&cThis hat must be purchased from the OBAMCraft shop.|| ||&eUse &f/buy &ein the hub to purchase the &3Prickly Hat|| ||&ePrice: &a$2.00;sudo PLAYER hat error" + +command /hatmenu []: + trigger: + loop {db_perk.hats::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lHat Rack" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.hats::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "02.beta": + player does not have permission "obam.beta.hat": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.quartz": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.cactus": + {db_purchase.cactus.%uuid of player%} is not set: + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /hat []: + trigger: + argument 1 is not set: + message "&cPlease use &7/OBAM &cto access your Hat Rack." + stop + argument 1 is "error": + message "&cThis hat is not available to you." + stop + argument 1 is "dirt": + set {_hat} to dirt + argument 1 is "beta": + player has permission "obam.beta.hat": + set {_hat} to iron pressure plate + argument 1 is "quartz": + player has permission "obam.supporter": + set {_hat} to quartz block + argument 1 is "cactus": + {db_purchase.cactus.%uuid of player%} is true: + set {_hat} to cactus + player has permission "obam.smod": + set {_hat} to cactus + send "&aYou now have a hat :D" to player + name of player's helmet is "hat": + set player's helmet to {_hat} + set name of player's helmet to "hat" + stop + player doesn't have space for player's helmet: + send "&cYour inventory is full :(" to player + stop + give player's helmet to player + set player's helmet to {_hat} + set name of player's helmet to "hat" + +command /hatadd : + permission: obam.admin + trigger: + add arg 1 to {hat.items.list::*} + +command /hatshow: + permission: obam.admin + trigger: + loop {hat.items.list::*}: + send "%loop-value%" to player + +every 0.3 seconds: + loop all players: + loop-player has anything named "hat": + remove anything named "hat" from loop-player + send "&cWhy did you have a hat in your pocket?" to loop-player + +on drop: + name of event-item is "hat": + cancel event + +on place: + name of player's tool is "hat": + cancel event + +command /hattoggle: + permission: obam.mod + trigger: + {hat.off.%player%} is not set: + set {hat.off.%player%} to true + send "&aYou have turned off your hat" to player + stop + {hat.off.%player%} is false: + set {hat.off.%player%} to true + send "&aYou have turned off your hat" to player + stop + {hat.off.%player%} is true: + set {hat.off.%player%} to false + send "&aYou have turned on your hat" to player + stop + +#staff hats constant +every 1 second: + loop all players: + set {_bypass} to false + {hat.off.%loop-player%} is true: + set {_bypass} to true + {_bypass} is false: + loop-player is "ISMOOCH": + set loop-player's helmet to command block named "&d&lSmooch's Sassy Hat" + loop-player is "Electric_Hamster": + set loop-player's helmet to sponge named "&b&lThe Hamster Hat" \ No newline at end of file diff --git a/On Server Files/Event/Perk/hitsounds.g.sk b/On Server Files/Event/Perk/hitsounds.g.sk new file mode 100644 index 0000000..f38632f --- /dev/null +++ b/On Server Files/Event/Perk/hitsounds.g.sk @@ -0,0 +1,336 @@ +on script load: + delete {db_perk.hit.class::*} + delete {db_perk.hit.hand::*} + delete {db_perk.hit.sword::*} + delete {db_perk.hit.axe::*} + delete {db_perk.hit.pickaxe::*} + delete {db_perk.hit.bow::*} + delete {db_perk.hit.rod::*} + + set {db_perk.hit.class::01.hand} to "stone button;&3Punch Sounds;&6Click to modify the sound you make when you||&6attack with your fists.;sudo PLAYER hitmenuchange hand;&6Click to modify the sound you make when you||&6attack with your fists.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::02.sword} to "iron sword;&3Sword Sounds;&6Click to modify the sound you make when you||&6attack with a sword.;sudo PLAYER hitmenuchange sword;&6Click to modify the sound you make when you||&6attack with a sword.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::03.axe} to "iron axe;&3Axe Sounds;&6Click to modify the sound you make when you||&6attack with an axe.;sudo PLAYER hitmenuchange axe;&6Click to modify the sound you make when you||&6attack with an axe.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::04.pickaxe} to "iron pickaxe;&3Pickaxe Sounds;&6Click to modify the sound you make when you||&6attack with a pickaxe.;sudo PLAYER hitmenuchange pickaxe;&6Click to modify the sound you make when you||&6attack with a pickaxe.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::05.bow} to "bow;&3Bow Sounds;&6Click to modify the sound you make when you||&6attack with a bow.;sudo PLAYER hitmenuchange bow;&6Click to modify the sound you make when you||&6attack with a bow.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::06.rod} to "fishing rod;&3Fishing Rod Sounds;&6Click to modify the sound you make when you||&6attack with a fishing rod.;sudo PLAYER hitmenuchange rod;&6Click to modify the sound you make when you||&6attack with a fishing rod.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::07.air} to "air" + set {db_perk.hit.class::08.air} to "air" + set {db_perk.hit.class::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your player.;sudo PLAYER hitsoundclear PLAYER" + + set {db_perk.hit.hand::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound hand note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound hand arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound hand anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound hand chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound hand click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound hand level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound hand villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::08.air} to "air" + set {db_perk.hit.hand::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound hand clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + + set {db_perk.hit.sword::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound sword note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound sword arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound sword anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound sword chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound sword click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound sword level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound sword villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::08.air} to "air" + set {db_perk.hit.sword::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound sword clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + + set {db_perk.hit.axe::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound axe note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound axe arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound axe anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound axe chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound axe click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound axe level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound axe villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::08.air} to "air" + set {db_perk.hit.axe::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound axe clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + + set {db_perk.hit.pickaxe::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound pickaxe note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound pickaxe arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound pickaxe anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound pickaxe chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound pickaxe click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound pickaxe level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound pickaxe villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::08.air} to "air" + set {db_perk.hit.pickaxe::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound pickaxe clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + + set {db_perk.hit.bow::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound bow note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound bow arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound bow anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound bow chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound bow click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound bow level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound bow villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::08.air} to "air" + set {db_perk.hit.bow::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound bow clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + + set {db_perk.hit.rod::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound rod note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound rod arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound rod anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound rod chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound rod click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound rod level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound rod villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::08.air} to "air" + set {db_perk.hit.rod::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound rod clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + +command /hitclassmenu: + trigger: + loop {db_perk.hit.class::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lHit Sound Classes" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.hit.class::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.hand": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.sword": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.axe": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.pickaxe": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "05.bow": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "06.rod": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /hitmenuchange []: + trigger: + argument 1 is set: + send "&aBringing up menu..." + wait 0.5 seconds + make player execute command "/hitmenu %argument 1%" + +command /hitmenu []: + trigger: + argument 1 is not set: + message "&cPlease use &7/OBAM &cto access your Hit Menu." + stop + argument 1 is "error": + message "&cThis hit class is not available to you." + stop + set {_type} to argument 1 + loop {db_perk.hit.%{_type}%::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lHit Sound Classes" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.hit.%{_type}%::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.note": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.arrow": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.anvil": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.chest": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "05.click": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "06.level": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "07.villager": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "08.clear": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + set {_thing1} to loop-index parsed as text + set {_thing2::*} to {_thing1} split at "." + set {_slot} to {_thing2::1} parsed as an integer + set {_slot} to {_slot} - 1 + format slot {_slot} of player with {_what} to be unstealable + format slot {_slot} of player with {_what} to close then run {_command} + +command /hitsound [] []: + trigger: + argument 1 is not set: + message "&cPlease use &7/OBAM &cto access your Hit Menu." + stop + argument 2 is "error": + message "&cThis hit sound is not available to you." + stop + set {_what} to argument 1 + set {_sound} to argument 2 + argument 2 is "clear": + clear {hit.%{_what}%.%player%} + send "&aAttack sounds cleared!" + stop + set {hit.%{_what}%.%player%} to "%{_sound}%" + send "&aAttack sound set to &e%{_sound}%!" + +on damage: + {hit.%attacker%} is set: + delete {hit.%attacker%} + attacker's tool is air: + set {_what} to "hand" + attacker's tool is a sword: + set {_what} to "sword" + attacker's tool is an axe: + set {_what} to "axe" + attacker's tool is a pickaxe: + set {_what} to "pickaxe" + attacker's tool is a bow: + set {_what} to "bow" + attacker's tool is a fishing rod: + set {_what} to "rod" + {hit.%{_what}%.%attacker%} is set: + {hit.%{_what}%.%attacker%} is "note": + chance of 14%: + play note bass at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 16%: + play note piano at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 20%: + play note bass drum at location of attacker with pitch 1 + set {_play} to true + chance of 25%: + play note sticks at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 33%: + play note bass guitar at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 50%: + play note snare drum at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play note pling at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "arrow": + chance of 50%: + play shoot arrow at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play arrow hit at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "chest": + chance of 50%: + play chest close at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play chest close at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "anvil": + chance of 33%: + play anvil break at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 50%: + play anvil land at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play anvil use at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "click": + play click at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "level": + chance of 50%: + play level up at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play orb pickup at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "villager": + chance of 16%: + play villager yes at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 20%: + play villager no at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 25%: + play villager death at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 33%: + play villager haggle at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 50%: + play villager idle at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play villager hit at location of attacker with pitch 1 + +command /hitsoundclear : + trigger: + delete {hit.hand.%argument 1%} + delete {hit.sword.%argument 1%} + delete {hit.axe.%argument 1%} + delete {hit.pickaxe.%argument 1%} + delete {hit.bow.%argument 1%} + delete {hit.rod.%argument 1%} + message "&2All of your hit sounds have been cleared." \ No newline at end of file diff --git a/On Server Files/Event/Perk/otam.g.sk b/On Server Files/Event/Perk/otam.g.sk new file mode 100644 index 0000000..1480de2 --- /dev/null +++ b/On Server Files/Event/Perk/otam.g.sk @@ -0,0 +1,142 @@ +every 1 second: + + set {_hold} to now + + {db_time.extend.tam} is less than now: + + clear {db_tam.bonus} + set {db_current.bonus} to false + clear {db_time.extend.tam} + clear {alert.tam.lastminute} + broadcast "&3&l۝TAM: &dTAM Bonus has Ended!" + execute console command "crossmessage &3&l۝TAM: &dTAM Bonus has Ended!" + + set {_diff} to difference between {db_time.extend.tam} and now + + {_diff} is less than 15 minutes: + + {alert.tam.lastminute} is not set: + set {alert.tam.lastminute} to true + + broadcast "&3&l۝TAM: &dLess than 15 minutes remaining of TAM Bonus at &e%{db_tam.bonus}%&d!" + execute console command "crossmessage &3&l۝TAM: &dLess than 15 minutes remaining of TAM Bonus at &e%{db_tam.bonus}%&d!" + + +command /tamextended : + permission: obam.admin + trigger: + + {db_time.extend.tam} is not set: + set {db_time.extend.tam} to now + {db_tamstats.time.%argument 2%} is not set: + set {db_tamstats.time.%argument 2%} to 0 + + #Not meant to be a real option.. just for debugging + arg 1 is 5: + + add 5 minutes to {db_time.extend.tam} + add 5 to {db_tamstats.time.%argument 2%} + + arg 1 is 30: + + add 30 minutes to {db_time.extend.tam} + add 30 to {db_tamstats.time.%argument 2%} + + arg 1 is 60: + + add 1 hour to {db_time.extend.tam} + add 60 to {db_tamstats.time.%argument 2%} + + arg 1 is 90: + + add 90 minutes to {db_time.extend.tam} + add 90 to {db_tamstats.time.%argument 2%} + + arg 1 is 120: + + add 2 hours to {db_time.extend.tam} + add 120 to {db_tamstats.time.%argument 2%} + + broadcast "&3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e%argument 1% Minutes&d!" + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e%argument 1% Minutes&d!" + + set {_diff} to difference between {db_time.extend.tam} and now + + broadcast "&3&l۝TAM: &e%{_diff}% &dremaining!" + execute console command "crossmessage &3&l۝TAM: &e%{_diff}% &dremaining!" + broadcast "&3&l۝TAM: &dUse &e/tam &dfor more details!" + execute console command "crossmessage &3&l۝TAM: &dUse &e/tam &dfor more details!" + clear {alert.tam.lastminute} + + set {db_current.bonus} to true + {db_tam.bonus} is not set: + + set {db_tam.bonus} to 0.1 + + {db_tamstats.bonus.%argument 2%} is not set: + set {db_tamstats.bonus.%argument 2%} to 0 + + add 0.1 to {db_tamstats.bonus.%argument 2%} + + broadcast "&3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by &e0.1&d!" + broadcast "&3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d! " + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by 0.1! The TAM Bonus is now at &e%{db_tam.bonus}%&d! " + execute console command "crossmessage &3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d! " + +command /tambonus : + permission: obam.admin + trigger: + + {db_tamstats.bonus.%argument 2%} is not set: + set {db_tamstats.bonus.%argument 2%} to 0 + + {db_tam.bonus} is not set: + set {db_tam.bonus} to 0 + + add argument 1 to {db_tam.bonus} + add argument 1 to {db_tamstats.bonus.%argument 2%} + + broadcast "&3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by &e%argument 1%&d!" + broadcast "&3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d!" + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by &e%argument 1%&d! The TAM Bonus is now at &e%{db_tam.bonus}%&d!" + execute console command "crossmessage &3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d!" + + + {db_time.extend.tam} is not set: + set {db_time.extend.tam} to now + + {db_tamstats.time.%argument 2%} is not set: + set {db_tamstats.time.%argument 2%} to 0 + + add 60 to {db_tamstats.time.%argument 2%} + + add 1 hour to {db_time.extend.tam} + clear {alert.tam.lastminute} + broadcast "&3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e60 Minutes&d!" + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e60 Minutes&d!" + + set {_diff} to difference between {db_time.extend.tam} and now + + broadcast "&3&l۝TAM: &e%{_diff}% &dremaining!" + execute console command "crossmessage &3&l۝TAM: &e%{_diff}% &dremaining!" + broadcast "&3&l۝TAM: &dUse &e/tam &dfor more details!" + execute console command "crossmessage &3&l۝TAM: &dUse &e/tam &dfor more details!" + + + + +# Debugging Clear command +command /tambonusclear: + permission: obam.admin + trigger: + + clear {db_tam.bonus} + set {db_current.bonus} to false + clear {db_time.extend.tam} + clear {alert.tam.lastminute} + + send "&3&l۝TAM: &dTAM Bonus Cleared" to console + send "&3&l۝TAM: &dTAM Bonus Cleared" + + + \ No newline at end of file diff --git a/On Server Files/Event/Perk/perks.g.sk b/On Server Files/Event/Perk/perks.g.sk new file mode 100644 index 0000000..112c44a --- /dev/null +++ b/On Server Files/Event/Perk/perks.g.sk @@ -0,0 +1,101 @@ +on script load: + delete {db_perk.main::*} + set {db_perk.main::01.hats} to "iron pressure plate;&3Hat Rack;&6Gives you access to your virtual Hat Rack.;sudo PLAYER obam hatmenu" + set {db_perk.main::02.pets} to "lead;&3Pet Stable;&6Opens up your Pet Stable to summon your pets.;sudo PLAYER obam petmenu" + set {db_perk.main::03.trails} to "arrow;&3Trails Menu;&6Opens up your Projectile Trails Menu.;sudo PLAYER obam trailmenu" + set {db_perk.main::04.splash} to "cobweb;&3Splash Menu;&6Opens up your Splash Menu.;sudo PLAYER obam splashmenu" + set {db_perk.main::05.hit} to "jukebox;&3Hit Sound Menu;&6Opens up your Hit Sound Menu.;sudo PLAYER obam hitclassmenu" + set {db_perk.main::06.horse} to "horse spawn egg;&3Horse Changer Upper;&6Want to Skellify of Zombify your ride?;sudo PLAYER obam horsemenu" + set {db_perk.main::07.blank} to "air" + set {db_perk.main::08.shop} to "emerald;&3Shop;&6Opens up the Shop Menu.;sudo PLAYER obam shop" + set {db_perk.main::09.ci} to "command block;&3Custom Items Menu;&6Opens the Custom Item menu to access items.;sudo PLAYER obam ci" + +command /obam []: + permission: obam.free + trigger: + argument 1 is not set: + loop {db_perk.main::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lOBAM Perks and Shop Menu" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.main::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "07.ci": + player does not have permission "obam.smod": + clear {_what} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + loop-index is "07.ci": + player does not have permission "obam.smod": + clear {_what} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + argument 1 is set: +# argument 1 is "hatmenu": +# "%player's world%" contains "taco": +# message "&cYou can not use that here." +# stop + argument 1 is "petmenu": + "%player's world%" is "kitspawnroom" or "vacant": + message "&cYou can not use that here." + stop + "%player's world%" contains "cart": + message "&cYou can not use that here." + stop +# argument 1 is "trailmenu": +# "%player's world%" contains "taco": +# message "&cYou can not use that here." +# stop +# argument 1 is "splashmenu": +# "%player's world%" contains "taco": +# message "&cYou can not use that here." +# stop +# argument 1 is "hitclassmenu": +# "%player's world%" contains "taco": +# message "&cYou can not use that here." +# stop + argument 1 is "horsemenu": + "%player's world%" is "Death-hub", "skyworld", "kitspawnroom" or "vacant": + message "&cYou can not use that here." + stop + "%player's world%" contains "taco": + message "&cYou can not use that here." + stop + argument 1 is "shop": + "%player's world%" is "Death-hub", "skyworld", "kitspawnroom" or "vacant": + message "&cYou can not use that here." + stop + "%player's world%" contains "taco": + message "&cYou can not use that here." + stop + argument 1 is "ci": + "%player's world%" is "Death-hub", "skyworld", "kitspawnroom" or "vacant": + message "&cYou can not use that here." + stop + "%player's world%" contains "taco": + message "&cYou can not use that here." + stop + send "&aBringing up menu..." + wait 0.5 seconds + make player execute command "/%argument 1%" + +command /sudo : + permission: obam.admin + trigger: + make argument 1 execute argument 2 \ No newline at end of file diff --git a/On Server Files/Event/Perk/pets.g.sk b/On Server Files/Event/Perk/pets.g.sk new file mode 100644 index 0000000..1833dcf --- /dev/null +++ b/On Server Files/Event/Perk/pets.g.sk @@ -0,0 +1,190 @@ +on script load: + delete {db_perk.pets::*} + set {db_perk.pets::01.ismooch} to "sheep spawn egg;&3iSmooch;&6The sassiest sheep in all the lands!;sudo PLAYER pet ismooch" + set {db_perk.pets::02.bruswain} to "bat spawn egg;&3BruSwain;&6This lovable bat lost his parents at a||&6young age. Thank you for taking care||&6of him!;sudo PLAYER pet bruswain;bat spawn egg;&3BruSwai&6This lovable bat lost his parents at a||&6young age. Thank you for taking care||&6of him!|| ||&cThis pet is only available to our Beta Supporters.;sudo PLAYER pet error" + set {db_perk.pets::03.sparky} to "creeper spawn egg;&3Sparky;&6While this creeper appears to have a||&6dangerously electrifying personality, we||&6promise he’s completely safe!;sudo PLAYER pet sparky;creeper spawn egg;&3Sparky;&6While this creeper appears to have a||&6dangerously electrifying personality, we||&6promise he’s completely safe!|| ||&cThis pet is only available to our Supporters.;sudo PLAYER pet error" + set {db_perk.pets::04.bacon} to "pig spawn egg;&3Bacon;&6Rescued from the final stages of the||&6slaughter house, this pig is extremely||&6grateful for your love and kindness!;sudo PLAYER pet bacon;pig spawn egg;&3Baco&6Rescued from the final stages of the||&6slaughter house, this pig is extremely||&6grateful for your love and kindness!|| ||&cThis pet must be purchased from the OBAMCraft shop.|| ||&eUse &f/buy &ein the hub purchase &3Bacon|| ||&ePrice: &a$5.00;sudo PLAYER pet error" + set {db_perk.pets::05.blank} to "air" + set {db_perk.pets::06.blank} to "air" + set {db_perk.pets::07.lead} to "lead;&3Leash;&6Pets getting out of control? Click this||&6to attach a lead to all of your||&6summoned pets!;sudo PLAYER pet lead" + set {db_perk.pets::08.blank} to "air" + set {db_perk.pets::09.clear} to "fire;&3Clear;&6Click to clear all summoned pets!;sudo PLAYER pet clear" + +command /petmenu: + trigger: + loop {db_perk.pets::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lPet Stable" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.pets::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "02.bruswain": + player does not have permission "obam.beta.hat": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.sparky": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.bacon": + {db_purchase.bacon.%uuid of player%} is not set: + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +every 1 second: + loop all entities: + loop-entity is sheep or bat or powered creeper or pig: + name of loop-entity is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon": + spawn 4 particle heart offset by 1, 1, 1 at location of loop-entity + {owner.%loop-entity%} is not set: + kill loop-entity + distance between location of loop-entity and location of {owner.%loop-entity%} is greater than 20: + teleport loop-entity to location of {owner.%loop-entity%} + +on damage of sheep or bat or powered creeper or pig: + name of victim is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon": + cancel event + +on quit: + kill {pets.%player%} + clear {pets.%player%} + loop {pets.%player%::*}: + clear {owner.%loop-value%} + kill loop-value + clear {pets.%player%::*} + stop + +command /pet []: + trigger: + world is "kitpvpkillingfields": + send "&cYou can not do that here" to player + stop + argument is not set: + message "&cPlease use &7/OBAM &cto access your Pet Stable." + stop + argument is "error": + message "&cThis pet is not available to you." + stop + argument is "lead": + loop {pets.%player%::*}: + teleport loop-value to location of player + make player leash loop-value + stop + argument is "clear": + kill {pets.%player%} + clear {pets.%player%} + loop {pets.%player%::*}: + kill loop-value + clear {owner.%loop-value%} + clear {pets.%player%::*} + stop + {pets.%player%} is set: + player does not have permission "obam.supporter": + send "&cYou can only have one pet at a time!" to player + stop + size of {pets.%player%::*} is 5: + send "&cYou can only have 5 pets at a time!" to player + stop + argument is "ISMOOCH": + spawn sheep at location of player + set name of spawned sheep to "&aISMOOCH" + set color of spawned sheep to pink + make player leash spawned sheep + set {pets.%player%} to spawned sheep + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + argument is "BruSwain": + player has permission "obam.beta.hat": + spawn bat at location of player + set name of spawned bat to "&aBru Swain" + make player leash spawned bat + set {pets.%player%} to spawned bat + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + send "&cThis is for beta supporters only!" to player + argument is "Sparky": + player has permission "obam.supporter": + spawn powered creeper at location of player + set name of spawned powered creeper to "&aSparky" + make player leash spawned powered creeper + set {pets.%player%} to spawned powered creeper + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + send "&cYou must be a supporter to do this!" to player + argument is "bacon": + {db_purchase.bacon.%uuid of player%} is true: + spawn pig at location of player + set name of spawned pig to "&aBacon" + make player leash spawned pig + set {pets.%player%} to spawned pig + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + player has permission "obam.smod": + spawn pig at location of player + set name of spawned pig to "&aBacon" + make player leash spawned pig + set {pets.%player%} to spawned pig + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + send "&cYou must purchase this pet on the online store!" + stop + argument is "dragon": + send "&cI bet you wish you could...." to player + stop + send "&cThat is not an option!" to player + +on explosion prime: + entity is powered creeper: + name of entity is "&aSparky": + cancel event + +on death of a sheep or a bat or a powered creeper or a pig: + name of victim is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon" + clear drops + +on right click on a sheep or a bat or a powered creeper or a pig: + name of target is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon": + cancel event + +on right click with wheat on sheep: + name of event-entity is "&aISMOOCH" + cancel event + send "&cYou can not mate pets D:" to event-player + +on right click with carrot on sheep: + name of event-entity is "&aBacon" + cancel event + send "&cYou can not mate pets D:" to event-player + +on right click with shears on sheep: + name of event-entity is "&aISMOOCH" + cancel event + send "&cYou can not shear pets!" to event-player diff --git a/On Server Files/Event/Perk/splash.g.sk b/On Server Files/Event/Perk/splash.g.sk new file mode 100644 index 0000000..c587a4c --- /dev/null +++ b/On Server Files/Event/Perk/splash.g.sk @@ -0,0 +1,214 @@ +on script load: + delete {db_perk.splash::*} + set {db_perk.splash::01.heart} to "red dye;&3Heart Particles;&6Click to enable a heart splash!;sudo PLAYER splash heart;red dye;&3Heart Particles;&6Click to enable a heart splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::02.flame} to "fire;&3Flame Particles;&6Click to enable a flame splash!;sudo PLAYER splash flame;fire;&3Flame Particles;&6Click to enable a flame splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::03.reddust} to "magma cream;&3Unstable Gas Particles;&6Click to enable an unstable gas splash!;sudo PLAYER splash reddust;magma cream;&3Unstable Gas Particles;&6Click to enable an unstable gas splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::04.smoke} to "charcoal;&3Dark Smoke Particles;&6Click to enable a dark smoke splash!;sudo PLAYER splash smoke;charcoal;&3Dark Smoke Particles;&6Click to enable a dark smoke splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::05.waterdrip} to "water;&3Water Drip Particles;&6Click to enable a water drip splash!;sudo PLAYER splash waterdrip;water;&3Water Drip Particles;&6Click to enable a water drip splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::06.lavadrip} to "lava;&3Lava Drip Particles;&6Click to enable a lava drip splash!;sudo PLAYER splash lavadrip;lava;&3Lava Drip Particles;&6Click to enable a lava drip splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::07.slime} to "slimeball;&3Slime Particles;&6Click to enable a slime splash!;sudo PLAYER splash slime;slimeball;&3Slime Particles;&6Click to enable a slime splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::08.note} to "jukebox;&3Music Notes Particles;&6Click to enable a music note splash!;sudo PLAYER splash note;jukebox;&3Music Notes Particles;&6Click to enable a music note splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::09.happy} to "villager spawn egg;&3Villager Particles “Happy”;&6Click to enable a happy villager splash!;sudo PLAYER splash happy;villager spawn egg;&3Villager Particles “Happy”;&6Click to enable a happy villager splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::10.angry} to "villager spawn egg;&3Villager Particles “Angry”;&6Click to enable a angry villager splash!;sudo PLAYER splash angry;villager spawn egg;&3Villager Particles “Angry”;&6Click to enable a angry villager splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::11.explode} to "tnt;&3Explosion Smoke Particles;&6Click to enable a explosion smoke splash!;sudo PLAYER splash explode;tnt;&3Explosion Smoke Particles;&6Click to enable a explosion smoke splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::12.snow} to "snow block;&3Snowflake Particles;&6Click to enable a snowflake splash!;sudo PLAYER splash snow;snow block;&3Snowflake Particles;&6Click to enable a snowflake splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::13.portal} to "nether portal;&3Nether Portal Particles;&6Click to enable a nether portal splash!;sudo PLAYER splash portal;nether portal;&3Nether Portal Particles;&6Click to enable a nether portal splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::14.cloud} to "bonemeal;&3Cloud Particles;&6Click to enable a cloud splash!;sudo PLAYER splash cloud;bonemeal;&3Cloud Particles;&6Click to enable a cloud splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::15.bubble} to "water bottle;&3Bubble Particles;&6Click to enable a bubble splash!;sudo PLAYER splash bubble;water bottle;&3Bubble Particles;&6Click to enable a bubble splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::16.blank} to "air" + set {db_perk.splash::17.blank} to "air" + set {db_perk.splash::18.clear} to "glass;&3Clear Particles;&6Click to clear your splash!;sudo PLAYER splash clear;glass;&3Clear Particles;&6Click to clear your splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + +command /splashmenu: + trigger: + loop {db_perk.splash::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lSplash Menu" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.splash::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.heart": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.flame": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.reddust": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.smoke": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "05.waterdrip": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "06.lavadrip": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "07.slime": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "08.note": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "09.happy": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "10.angry": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "11.explode": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "12.snow": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "13.portal": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "14.cloud": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "15.bubble": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "16.clear": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /splash []: + trigger: + argument is not set: + message "&cPlease use &7/OBAM &cto access the Splash Menu." + stop + argument is "error": + message "&cThis splash is not available to you." + stop + player has permission "obam.supporter": + argument is "heart": + set {splash.%player%} to "heart" + send "&aYou have enabled a &eHeart Splash&a!" + argument is "flame": + set {splash.%player%} to "flame" + send "&aYou have enabled a &eFlame Splash&a!" + argument is "reddust": + set {splash.%player%} to "reddust" + send "&aYou have enabled an &eUnstable Gas Splash&a!" + argument is "smoke": + set {splash.%player%} to "smoke" + send "&aYou have enabled a &eDark Smoke Splash&a!" + argument is "waterdrip": + set {splash.%player%} to "waterdrip" + send "&aYou have enabled a &eWater Drip Splash&a!" + argument is "lavadrip": + set {splash.%player%} to "lavadrip" + send "&aYou have enabled a &eLava Drip Splash&a!" + argument is "slime": + set {splash.%player%} to "slime" + send "&aYou have enabled a &eSlime Splash&a!" + argument is "note": + set {splash.%player%} to "note" + send "&aYou have enabled a &eMusic Note Splash&a!" + argument is "happy": + set {splash.%player%} to "happy" + send "&aYou have enabled a &eHappy Villager Splash&a!" + argument is "angry": + set {splash.%player%} to "angry" + send "&aYou have enabled an &eAngry Villager Splash&a!" + argument is "explode": + set {splash.%player%} to "explode" + send "&aYou have enabled an &eExplosion Smoke Splash&a!" + argument is "snow": + set {splash.%player%} to "snow" + send "&aYou have enabled a &eSnowflake Splash&a!" + argument is "bubble": + set {splash.%player%} to "bubble" + send "&aYou have enabled a &eBubble Splash&a!" + argument is "portal": + set {splash.%player%} to "portal" + send "&aYou have enabled a &eNether Portal Splash&a!" + argument is "cloud": + set {splash.%player%} to "cloud" + send "&aYou have enabled a &eCloud Splash&a!" + argument is "clear": + clear {splash.%player%} + send "&aYou have disabled your splash!" + +every 5 seconds: + loop all players: + clear {_amt} + loop-player is not sneaking + loop-player is sprinting: + set {_amt} to 100 + {_amt} is not set: + set {_amt} to 50 + {splash.%loop-player%} is set: + {splash.%loop-player%} is "bubble": + spawn 500 particle bubble offset by 2, 2, 2 at location of loop-player + {splash.%loop-player%} is "cloud": + spawn {_amt} particle cloud offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "heart": + spawn {_amt} particle heart offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "flame": + spawn {_amt} particle flame offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "reddust": + spawn {_amt} particle red dust offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "smoke": + spawn {_amt} particle large smoke offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "note": + spawn {_amt} particle note offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "lavadrip": + spawn {_amt} particle drip lava offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "waterdrip": + spawn {_amt} particle drip water offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "slime": + spawn {_amt} particle slime offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "happy": + spawn {_amt} particle happy villager offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "angry": + spawn {_amt} particle angry villager offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "explode": + spawn {_amt} particle large explode offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "snow": + spawn {_amt} particle snow shovel offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "portal": + spawn {_amt} particle portal offset by 1, 1, 1 at location of loop-player \ No newline at end of file diff --git a/On Server Files/Event/Perk/suphorse.g.sk b/On Server Files/Event/Perk/suphorse.g.sk new file mode 100644 index 0000000..da5685c --- /dev/null +++ b/On Server Files/Event/Perk/suphorse.g.sk @@ -0,0 +1,70 @@ +on script load: + delete {db_perk.suphorse::*} + set {db_perk.suphorse::01.zombify} to "zombie spawn egg;&3Zombify your ride!;&6Feel like roaming the plains on your Zombified Horse?;sudo PLAYER suphorse zombify;zombie spawn egg;&3Zombify your ride!;&6Feel like roaming the plains on your Zombified Horse?|| ||&cThis ability is only available to our Supporters.;sudo PLAYER suphorse error" + set {db_perk.suphorse::02.skellify} to "skeleton spawn egg;&3Skellify your ride!;&6Feel like roaming the deserts on your Skellified Horse?;sudo PLAYER suphorse skellify;skeleton spawn egg;&3Skellify your ride!;&6Feel like roaming the deserts on your Skellified Horse?|| ||&cThis ability is only available to our Supporters.;sudo PLAYER suphorse error" + +command /horsemenu: + trigger: + loop {db_perk.suphorse::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lHorse O' Matic" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.suphorse::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.zombify": + player does not have permission "obam.beta.hat": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.skellify": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /suphorse []: + trigger: + player is not riding: + send "&cYou must be riding a horse to do this!" + stop + player's vehicle is not a horse: + send "&cYou must be riding a horse to do this!" + stop + argument is not set: + message "&cPlease use &7/OBAM &cto access your modify your horse." + stop + argument is "error": + message "&cThis ability is not available to you." + stop + "%player's world%" is "world": + set {_y} to y-coordinate of player + set {_x} to x-coordinate of player + set {_z} to z-coordinate of player + argument is "zombify": + execute console command "summon EntityHorse %{_x}% %{_y}% %{_z}% {Type:3,Tame:1}" + argument is "skellify": + execute console command "summon EntityHorse %{_x}% %{_y}% %{_z}% {Type:4,Tame:1}" + delete player's vehicle + stop + message "&cThis can only be used in the Regular World." \ No newline at end of file diff --git a/On Server Files/Event/Perk/tam.g.sk b/On Server Files/Event/Perk/tam.g.sk new file mode 100644 index 0000000..303d62b --- /dev/null +++ b/On Server Files/Event/Perk/tam.g.sk @@ -0,0 +1,71 @@ +every 1 minute: + {db_tam.modifier} is not set: + set {db_tam.modifier} to 1 + set {_add} to {db_tam.modifier} + #OTAM Hook + {db_tam.bonus} is set: + add {db_tam.bonus} to {_add} + loop all players: + add {_add} to loop-player's balance + {session.tam.%loop-player%} is not set: + set {session.tam.%loop-player%} to 0 + add {_add} to {session.tam.%loop-player%} + {db_total.tam.%uuid of loop-player%} is not set: + {db_total.tam.%loop-player%} is set: + set {db_total.tam.%uuid of loop-player%} to {db_total.tam.%loop-player%} + else: + set {db_total.tam.%uuid of loop-player%} to 0 + add {_add} to {db_total.tam.%uuid of loop-player%} + {db_total.tam} is not set: + set {db_total.tam} to 0 + add {_add} to {db_total.tam} + {db_total.reg} is not set: + set {db_total.reg} to 0 + add {_add} to {db_total.reg} + +command /tam: + permission: obam.free + trigger: + send "&aTotal Tickets earned with -TAM-:" + send "&e%{db_total.tam.%uuid of player%}%" + send "&aTotal this session:" + send "&e%{session.tam.%player%}%" + send "&aTotal Tickets:" + send "&e%player's balance%" + #OTAM Hook + {db_tam.bonus} is not set: + send "&aCurrent -TAM- Modifier:" + send "&e%{db_tam.modifier}%" + #OTAM Hooks + {db_tam.bonus} is set: + send "&aCurrent -TAM- Modifier:" + send "&e%{db_tam.modifier}% &c&o+ %{db_tam.bonus}%" + send "&4Remaining -TAM- Bonus Time:" + set {_diff} to difference between {db_time.extend.tam} and now + send "&c%{_diff}%" + send "&4OTAM Time Contributions:" + send "&c%{db_tamstats.time.%uuid of player%}% minutes" + send "&4OTAM Bonus Contributions:" + send "&c%{db_tamstats.bonus.%uuid of player%}%" + +command /tamtotal: + permission: obam.admin + trigger: + send "&aTotal Global Tickets earned with -TAM-:" + send "&e%{db_total.tam}%" + send "&aRegular:" + send "&e%{db_total.reg}%" + send "&aSupporter:" + send "&e%{db_total.sup}%" + send "&aPlus:" + send "&e%{db_total.plus}%" + send "&aUltimate:" + send "&e%{db_total.ult}%" + +on join: + set {session.tam.%player%} to 0 + +command /tammodset : + permission: obam.admin + trigger: + set {db_tam.modifier} to argument diff --git a/On Server Files/Event/Perk/tickets.g.sk b/On Server Files/Event/Perk/tickets.g.sk new file mode 100644 index 0000000..df07df8 --- /dev/null +++ b/On Server Files/Event/Perk/tickets.g.sk @@ -0,0 +1,68 @@ +#money stuff +#give player money +command /tixg : + description: Give a Player some money + usage: /tixg + executable by: console and players + permission: obam.admin + trigger: + + set {_player.balance} to player-argument's balance + set {_player} to player-argument + execute console command "/tls STAFF %arg 2% %{_player.balance}% INCREASE %{_player}% Ticket Adjustment by %player%" + add arg 2 to player-argument's balance + message "&aYou have been given &e%arg 2% Tickets&a. Your balance is now &e%player-argument's money%&a." to player-argument + message "You have granted %player-argument% %arg 2% Tickets" to player + + +command /tixr : + description: Subtract money from a Player + usage: /tixr + executable by: console and players + permission: obam.admin + trigger: + + + set {_valid} to argument 2 + set {_player.balance} to player-argument's balance + set {_player} to player-argument + + {_valid} is greater than {_player.balance}: + send "%player-argument% does not have that many tickets!" to player + stop + + execute console command "/tls STAFF %arg 2% %{_player.balance}% DEDUCT %{_player}% Ticket Adjustment by %player%" + + +#pay command +command /tixp : + description: Pay a Player + usage: /tixp + permission: obam.admin + trigger: + set {_curbalance} to player's money + set {_valid} to difference between {_curbalance} and argument 2 + + {_valid} is less than 0: + message "You do not have enough money!" to player + stop + + add arg 2 to player-argument's balance + remove arg 2 from player's balance + message "You have received %arg 2% Tickets from %player%. Your balance is now %player-argument's money%." to player-argument + message "You have paid %player-argument% %arg 2% Tickets. Your balance is now %player's money%." to player + +command /tix: + executable by: players + permission: obam.free + trigger: + send "&aYour current balance is &e%player's balance%&a!" to player + +command /tixpeek : + permission: obam.admin + trigger: + set {_player} to argument parsed as offline player + send "&e%argument%'s&a ticket balance is &e%{_player}'s balance%" to player + + + diff --git a/On Server Files/Event/Perk/trails.g.sk b/On Server Files/Event/Perk/trails.g.sk new file mode 100644 index 0000000..a163ad8 --- /dev/null +++ b/On Server Files/Event/Perk/trails.g.sk @@ -0,0 +1,205 @@ +on script load: + delete {db_perk.trails::*} + set {db_perk.trails::01.heart} to "red dye;&3Heart Particles;&6Click to enable heart trails!;sudo PLAYER trails heart;red dye;&3Heart Particles;&6Click to enable heart trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::02.flame} to "fire;&3Flame Particles;&6Click to enable flame trails!;sudo PLAYER trails flame;fire;&3Flame Particles;&6Click to enable flame trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::03.reddust} to "magma cream;&3Unstable Gas Particles;&6Click to enablen unstable gas trails!;sudo PLAYER trails reddust;magma cream;&3Unstable Gas Particles;&6Click to enablen unstable gas trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::04.smoke} to "charcoal;&3Dark Smoke Particles;&6Click to enable dark smoke trails!;sudo PLAYER trails smoke;charcoal;&3Dark Smoke Particles;&6Click to enable dark smoke trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::05.waterdrip} to "water;&3Water Drip Particles;&6Click to enable water drip trails!;sudo PLAYER trails waterdrip;water;&3Water Drip Particles;&6Click to enable water drip trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::06.lavadrip} to "lava;&3Lava Drip Particles;&6Click to enable lava drip trails!;sudo PLAYER trails lavadrip;lava;&3Lava Drip Particles;&6Click to enable lava drip trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::07.slime} to "slimeball;&3Slime Particles;&6Click to enable slime trails!;sudo PLAYER trails slime;slimeball;&3Slime Particles;&6Click to enable slime trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::08.note} to "jukebox;&3Music Notes Particles;&6Click to enable music note trails!;sudo PLAYER trails note;jukebox;&3Music Notes Particles;&6Click to enable music note trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::09.happy} to "villager spawn egg;&3Villager Particles “Happy”;&6Click to enable happy villager trails!;sudo PLAYER trails happy;villager spawn egg;&3Villager Particles “Happy”;&6Click to enable happy villager trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::10.angry} to "villager spawn egg;&3Villager Particles “Angry”;&6Click to enable angry villager trails!;sudo PLAYER trails angry;villager spawn egg;&3Villager Particles “Angry”;&6Click to enable angry villager trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::11.explode} to "tnt;&3Explosion Smoke Particles;&6Click to enable explosion smoke trails!;sudo PLAYER trails explode;tnt;&3Explosion Smoke Particles;&6Click to enable explosion smoke trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::12.snow} to "snow block;&3Snowflake Particles;&6Click to enable snowflake trails!;sudo PLAYER trails snow;snow block;&3Snowflake Particles;&6Click to enable snowflake trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::13.portal} to "nether portal;&3Nether Portal Particles;&6Click to enable nether portal trails!;sudo PLAYER trails portal;nether portal;&3Nether Portal Particles;&6Click to enable nether portal trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::14.cloud} to "bonemeal;&3Cloud Particles;&6Click to enable cloud trails!;sudo PLAYER trails cloud;bonemeal;&3Cloud Particles;&6Click to enable cloud trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::15.blank} to "air" + set {db_perk.trails::16.blank} to "air" + set {db_perk.trails::17.blank} to "air" + set {db_perk.trails::18.clear} to "glass;&3Clear Particles;&6Click to clear your trails!;sudo PLAYER trails clear;glass;&3Clear Particles;&6Click to clear your trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + +command /trailmenu: + trigger: + loop {db_perk.trails::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lTrails Menu" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.trails::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.heart": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.flame": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.reddust": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.smoke": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "05.waterdrip": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "06.lavadrip": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "07.slime": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "08.note": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "09.happy": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "10.angry": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "11.explode": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "12.snow": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "13.portal": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "14.cloud": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "15.bubble": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "16.clear": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /trails []: + trigger: + argument is not set: + message "&cPlease use &7/OBAM &cto access the Trails Menu." + stop + argument is "error": + message "&cThis trail is not available to you." + stop + player has permission "obam.supporter": + delete {trail.%player%} + argument is "heart": + set {trails.%player%} to "heart" + send "&aYou have enabled &eHeart trails&a!" + argument is "flame": + set {trails.%player%} to "flame" + send "&aYou have enabled &eFlame trails&a!" + argument is "reddust": + set {trails.%player%} to "reddust" + send "&aYou have enabled &eUnstable Gas trails&a!" + argument is "smoke": + set {trails.%player%} to "smoke" + send "&aYou have enabled &eDark Smoke trails&a!" + argument is "waterdrip": + set {trails.%player%} to "waterdrip" + send "&aYou have enabled &eWater Drip trails&a!" + argument is "lavadrip": + set {trails.%player%} to "lavadrip" + send "&aYou have enabled &eLava Drip trails&a!" + argument is "slime": + set {trails.%player%} to "slime" + send "&aYou have enabled &eSlime trails&a!" + argument is "note": + set {trails.%player%} to "note" + send "&aYou have enabled &eMusic Note trails&a!" + argument is "happy": + set {trails.%player%} to "happy" + send "&aYou have enabled &eHappy Villager trails&a!" + argument is "angry": + set {trails.%player%} to "angry" + send "&aYou have enabled &eAngry Villager trails&a!" + argument is "explode": + set {trails.%player%} to "explode" + send "&aYou have enabled &eExplosion Smoke trails&a!" + argument is "snow": + set {trails.%player%} to "snow" + send "&aYou have enabled &eSnowflake trails&a!" + argument is "portal": + set {trails.%player%} to "portal" + send "&aYou have enabled &eNether Portal trails&a!" + argument is "cloud": + set {trails.%player%} to "cloud" + send "&aYou have enabled &eCloud trails&a!" + argument is "clear": + clear {trails.%player%} + send "&aYou have disabled your trails!" + +on shoot: + {trails.%shooter%} is set: + {trails.%shooter%} is "heart": + trail projectile with particle heart + {trails.%shooter%} is "flame": + trail projectile with particle flame + {trails.%shooter%} is "reddust": + trail projectile with particle red dust + {trails.%shooter%} is "smoke": + trail projectile with particle large smoke + {trails.%shooter%} is "bubble": + trail projectile with particle bubble + {trails.%shooter%} is "note": + trail projectile with particle note + {trails.%shooter%} is "lavadrip": + trail projectile with particle drip lava + {trails.%shooter%} is "waterdrip": + trail projectile with particle drip water + {trails.%shooter%} is "slime": + trail projectile with particle slime + {trails.%shooter%} is "happy": + trail projectile with particle happy villager + {trails.%shooter%} is "angry": + trail projectile with particle angry villager + {trails.%shooter%} is "explode": + trail projectile with particle large explode + {trails.%shooter%} is "snow": + trail projectile with particle snow shovel + {trails.%shooter%} is "portal": + trail projectile with particle portal + {trails.%shooter%} is "cloud": + trail projectile with particle cloud diff --git a/On Server Files/Event/TMA/tma.sk b/On Server Files/Event/TMA/tma.sk new file mode 100644 index 0000000..8c0a934 --- /dev/null +++ b/On Server Files/Event/TMA/tma.sk @@ -0,0 +1,350 @@ + + +on script load: + clear {tma.spawns::*} + add creeper to {tma.spawns::*} + add witch to {tma.spawns::*} + add zombie to {tma.spawns::*} + add skeleton to {tma.spawns::*} + add zombie pigman to {tma.spawns::*} + add cave spider to {tma.spawns::*} + add magma cube to {tma.spawns::*} + add blaze to {tma.spawns::*} + + + +command /tma [] [] []: + permission: obam.admin + trigger: + world is not "TMA": + send "&cYou are not in the right world to do this" + stop + + argument 1 is not set: + + send "&a=================================" + send "&6 OBAMCraft " + send "&6 TMA " + send "&a=================================" + send " " + send "&e/tma addspawn " + send "&7Add your current location to the spawn list for that team" + send " " + send "&e/tma listspawn " + send "&7List the current spawn locations for a specified team" + send " " + send "&e/tma delspawn " + send "&7Deleted specified spawn location" + send " " + send "&e/tma addteam " + send "&7Add a team to the list of teams" + send " " + send "&e/tma listteam" + send "&7List the current teams" + send " " + send "&e/tma delteam " + send "&7Delete the selected team from the team list" + send " " + send "&6Developed for &7OBAMCraft &eBy: &aThe OBAM Mechanics" + stop + + argument 1 is "help": + argument 2 is not set: + + send "&a=================================" + send "&6 OBAMCraft " + send "&6 TMA " + send "&a=================================" + send " " + send "&e/tma addspawn " + send "&7Add your current location to the spawn list for that team" + send " " + send "&e/tma listspawn " + send "&7List the current spawn locations for a specified team" + send " " + send "&e/tma delspawn " + send "&7Deleted specified spawn location" + send " " + send "&e/tma addteam " + send "&7Add a team to the list of teams" + send " " + send "&e/tma listteam" + send "&7List the current teams" + send " " + send "&e/tma delteam " + send "&7Delete the selected team from the team list" + send " " + send "&6Developed for &7OBAMCraft &eBy: &aThe OBAM Mechanics" + stop + argument 2 is "1": + send "&a=================================" + send "&6 OBAMCraft " + send "&6 TMA " + send "&a=================================" + send " " + send "&e/tma addspawn " + send "&7Add your current location to the spawn list for that team" + send " " + send "&e/tma listspawn " + send "&7List the current spawn locations for a specified team" + send " " + send "&e/tma delspawn " + send "&7Deleted specified spawn location" + send " " + send "&e/tma addteam " + send "&7Add a team to the list of teams" + send " " + send "&e/tma listteam" + send "&7List the current teams" + send " " + send "&e/tma delteam " + send "&7Delete the selected team from the team list" + send " " + send "&6Developed for &7OBAMCraft &eBy: &aThe OBAM Mechanics" + stop + + argument 2 is "2": + send "&a=================================" + send "&6 OBAMCraft " + send "&6 TMA " + send "&a=================================" + send " " + send "&e/tma spawnwave " + send "&7Spawns a wave, at wave number listed" + send " " + send "&e/tma help " + send "&7List this help menu at specified page number" + send " " + send "&e/tma begin" + send "&7Begin a TMA game(not live yet)" + send " " + send "&e/tma activeadd " + send "&7Add a team to the active list" + send " " + send "&e/tma activelist" + send "&7List all active teams" + send " " + send "&e/tma activedel " + send "&7Remove a team from the active list" + send " " + send "&6Developed for &7OBAMCraft &eBy: &aThe OBAM Mechanics" + stop + + + argument 1 is "addspawn": + argument 2 is not set: + send "&cYou must select a team: &e/tma addspawn " + stop + {tma.teams::%argument 2%} is not set: + send "&cThis is not a valid team!" + send "&cPlease do &e/tma teamlist&c for a list of available teams." + stop + add location of player to {tma.%argument 2%.spawn::*} + send "&e%location of player% &a is added to &e%argument 2%'s&a spawn list" + + argument 1 is "listspawn": + argument 2 is not set: + send "&cYou must select a team: &e/tma listspawn " + stop + {tma.teams::%argument 2%} is not set: + send "&cThis is not a valid team!" + send "&cPlease do &e/tma teamlist&c for a list of available teams." + loop {tma.%argument 2%.spawn::*}: + {_loop.count} is not set: + set {_loop.count} to 0 + add 1 to {_loop.count} + send "%loop-index%.....%loop-value%" + + argument 1 is "delspawn": + argument 2 is not set: + send "&cYou must select a team: &e/tma delspawn " + stop + argument 3 is not set: + send "&cYou must select a point: &e/tma delspawn %argument 2% " + stop + {tma.teams::%argument 2%} is not set: + send "&cThis is not a valid team!" + send "&cPlease do &e/tma teamlist&c for a list of available teams." + {tma.%argument 2%.spawn::%argument 3%} is not set: + send "&c%argument 3% is not a point in team %argument 2%" + send "&cPlease use &e/tma listspawn %argument 2%&a to find the available points" + stop + + send "&cDeleteing &e%{tma.%argument 2%.spawn::%argument 3%}% &ain &e%argument 2%&a..." + delete {tma.%argument 2%.spawn::%argument 3%} + {tma.%argument 2%.spawn::%argument 3%} is set: + send "&cAn error occurred" + stop + send "&aDeleted!" + + argument 1 is "addteam": + argument 2 is not set: + send "&cPlease specify a team: &e/tma addteam " + stop + set {tma.teams::%argument 2%} to true + send "&e%argument 2%&a added successfully to Teams!" + + argument 1 is "listteam": + loop {tma.teams::*}: + send "%loop-index%" + + argument 1 is "delteam": + argument 2 is not set: + send "&cPlease specify a team: &e/tma delteam " + stop + {tma.teams::%argument 2%} is not set: + send "&cThis team does not exist!" + send "&cPlease use &e/tma listteam&a for a list of teams" + stop + + send "&cDeleteing &e%argument 2%&c..." + delete {tma.teams::%argument 2%} + {tma.teams::%argument 2%} is set: + send "&cAn error occurred" + stop + send "&aDelted!" + + argument 1 is "spawnwave": + argument 2 is not set: + send "&cPlease select a number: &e/tma spawnwave " + stop + {active.tma.teams::*} is empty: + send "&cThere are no active teams: &e/tma activeadd &c to add" + stop + execute console command "tmawave %argument 2%" + + argument 1 is "activeadd": + argument 2 is not set: + send "&cPlease select a team: &e/tma activeadd " + stop + {tma.teams::%argument 2%} is not set: + send "&cThis team does not exist!" + send "&cPlease use &e/tma listteam&a for a list of teams" + stop + {tma.%argument 2%.spawn::*} is empty: + send "&cThere are no spawn points set for this team!" + send "&cPlease use &e/tma spawnadd %argument 2%&c to add spawn points!" + stop + set {active.tma.teams::%argument 2%} to true + send "&e%argument 2%&a added to active teams list" + + argument 1 is "activedel": + argument 2 is not set: + send "&cPlease select a team: &e/tma activedel " + stop + {active.tma.teams::%argument 2%} is not set: + send "&cTeam is not listed as active!" + send "&cPlease use &e/tma activelist &cfor a list of active teams!" + stop + send "&cDeleting &e%argument 2%&c from active teams..." + delete {active.tma.teams::%argument 2%} + {active.tma.teams::%argument 2%} is set: + send "&cAn error occurred!" + stop + send "&aDelete Successful!" + + argument 1 is "activelist": + {active.tma.teams::*} is empty: + send "&cThere are no active teams!" + send "&cUse &e/tma activeadd &c to add active teams" + stop + loop {active.tma.teams::*}: + send "%loop-index%" + + + +command /tmawave []: + permission: obam.admin + trigger: + send "&aIama message" + {active.tma.teams::*} is empty: + send "&cError" + stop + argument 1 is not set: + send "&cError!" + stop + send "&aI ama another message" + set {_num} to argument 1 parsed as number + send "&a%{_num}%" + {_num} is less than 5: + set {_loop} to {_num} * 2 + 1 + + {_num} is greater than 5: + set {_loop} to {_num} * 2 + 3 + + send "&a%{_loop}%" + set {_size} to size of {active.tma.teams::*} + send "&a%{_size}%" + set {_count} to 1 + send "%{_count}%" + while {_count} is less than or equal to {_size}: + {_count} is not set: + set {_count} to 1 + loop {active.tma.teams::*}: + + send "&a%loop-index%" + loop {_loop} times: + set {_ran} to random element of {tma.spawns::*} + set {_loc} to random element of {tma.%loop-index-1%.spawn::*} + spawn {_ran} at {_loc} + set {_cur.entity} to spawned entity + spawned entity is zombie: + + equip spawned entity with iron helmet + chance of 5%: + apply speed 2 to spawned entity for 999 days + chance of 10%: + equip spawned entity with iron helmet of unbreaking 2 + + chance of 15%: + set spawned entity's tool to iron sword + chance of 5%: + set spawned entity's tool to iron sword of sharpness 2 + chance of 5%: + set spawned entity's tool to diamond sword + + spawned entity is skeleton: + + equip spawned entity with leather helmet + + set spawned entity's tool to bow + chance of 5%: + apply speed 2 to spawned entity for 999 days + chance of 10%: + equip spawned entity with iron helmet of unbreaking 2 + chance of 15%: + set spawned entity's tool to bow of punch 1 + chance of 5%: + equip spawned entity with diamond chestplate + chance of 2%: + equip spawned entity with diamond leggings of projectile protection 1 + + spawned entity is a creeper: + + chance of 5%: + apply speed 2 to spawned entity for 999 days + + spawned entity is cave spider: + + chance of 5%: + apply speed to spawned entity for 999 days + + spawned entity is zombie pigman: + + set spawned entity's tool to gold sword + chance of 5%: + apply speed to spawned entity for 999 days + + + + + add 1 to {_count} + + + + + + + + + \ No newline at end of file diff --git a/On Server Files/Event/Zbeta/zbeta.sk b/On Server Files/Event/Zbeta/zbeta.sk new file mode 100644 index 0000000..2071c91 --- /dev/null +++ b/On Server Files/Event/Zbeta/zbeta.sk @@ -0,0 +1,1291 @@ +#basic systems needed +#@block-recognition + +options: +#@weapons + PStab: diamond sword named "&aThe Green Justice" with lore "&7Crafted from the purest||&7items to cut through||&7the souls of the purest humans" + ZStab: diamond sword named "&cThe Red Death" with lore "&7Laced with the poisonous||&7Blood of the zombies||&7to deliver a powerful strike" + Supp1: bow of infinity 1 named "&fBow of Healing" with lore "&7Powerful darts loaded||&7with medical properties to||&7to heal friends from afar" + Supp2: paper named "&fBandage" with lore "&7The most current healing technology||&7In a convenient travel||&7ready delivery system|| ||&eRight click on a player to use" + Tank: wood sword of knockback 1 named "&eHit Stick" with lore "&7Built with rubber infused wood for ||&7that extra push against attacking enemies" + +on death of a zombie: + {zbeta.game.active} is true + attacker is a player + block below attacker is white hard clay: + set {_color.team} to "white" + block below attacker is orange hard clay: + set {_color.team} to "orange" + block below attacker is magenta hard clay: + set {_color.team} to "magenta" + block below attacker is light blue hard clay: + set {_color.team} to "lblue" + block below attacker is yellow hard clay: + set {_color.team} to "yellow" + block below attacker is light green hard clay: + set {_color.team} to "lime" + block below attacker is pink hard clay: + set {_color.team} to "pink" + block below attacker is gray hard clay: + set {_color.team} to "gray" + block below attacker is light gray hard clay: + set {_color.team} to "lgray" + block below attacker is cyan hard clay: + set {_color.team} to "cyan" + block below attacker is purple hard clay: + set {_color.team} to "purple" + block below attacker is blue hard clay: + set {_color.team} to "blue" + block below attacker is brown hard clay: + set {_color.team} to "brown" + block below attacker is green hard clay: + set {_color.team} to "green" + block below attacker is red hard clay: + set {_color.team} to "red" + block below attacker is black hard clay: + set {_color.team} to "black" + + + {_color.team} is not set: + stop + + {_color.team} is not {zbeta.team.%attacker%}: + {zbeta.%{_color.team}%.score} is greater than 0: + execute console command "/zbeta deduct %{_color.team}% %attacker%" + stop + + + {zbeta.%{_color.team}%.score} is greater than or equal to 29: + execute console command "/zbeta end %{_color.team}% %attacker%" + stop + + execute console command "/zbeta score %{_color.team}% %attacker%" + +command /zbeta [] [] []: + permission: obam.admin + trigger: + + argument 1 is "addspawn": + + argument 2 is "list": + loop {zbeta.spawn::*}: + send "%loop-value%" to player + stop + add location of player to {zbeta.spawn::*} + + argument 1 is "setspawn": + + set {zbeta.spawn.%argument 2%} to location of player + + argument 1 is "start": + + set {zbeta.game.active} to true + broadcast "&aThe game of &e'ZBETA'&a has begun!" + clear {zbeta.white.score} + clear {zbeta.orange.score} + clear {zbeta.magenta.score} + clear {zbeta.lblue.score} + clear {zbeta.yellow.score} + clear {zbeta.lime.score} + clear {zbeta.pink.score} + clear {zbeta.gray.score} + clear {zbeta.lgray.score} + clear {zbeta.cyan.score} + clear {zbeta.purple.score} + clear {zbeta.blue.score} + clear {zbeta.brown.score} + clear {zbeta.green.score} + clear {zbeta.red.score} + clear {zbeta.black.score} + clear {zbeta.game.level} + clear {zbeta.player.list::*} + loop all players in world "DB": + loop-player's y coordinate is less than 37: + apply night vision to player for 999 days + {_loop.count} is not set: + set {_loop.count} to 0 + add 1 to {_loop.count} + {_loop.count} is not divisible by 2: + teleport loop-player to {zbeta.spawn.red} + clear loop-player's inventory + set {zbeta.team.%loop-player%} to "red" + set helmet of loop-player to red wool + {_loop.count} is divisible by 2: + teleport loop-player to {zbeta.spawn.yellow} + clear loop-player's inventory + set {zbeta.team.%loop-player%} to "yellow" + set helmet of loop-player to yellow wool + + argument 1 is "status": + argument 2 is not set: + send "%{zbeta.team.%player%}%" + send "%{zbeta.lo.%player%}%" + stop + argument 2 is set: + send "%{zbeta.team.%argument 2%}%" + send "%{zbeta.lo.%argument 2%}%" + stop + + + + + argument 1 is "lobbyset": + + set {zbeta.lobby} to location of player + + argument 1 is "list": + + loop {zbeta.player.list::*}: + send "%loop-value%" to player + + + + argument 1 is "score": + + {zbeta.%argument 2%.score} is not set: + set {zbeta.%argument 2%.score} to 0 + + add 1 to {zbeta.%argument 2%.score} + {zbeta.%argument 2%.score} is 1: + set block at location of {score.%argument 2%.1} to air + set block at location of {score.%argument 2%.2} to air + set block at location of {score.%argument 2%.3} to air + set block at location of {score.%argument 2%.4} to air + set block at location of {score.%argument 2%.5} to air + set block at location of {score.%argument 2%.6} to air + set block at location of {score.%argument 2%.7} to air + set block at location of {score.%argument 2%.8} to air + set block at location of {score.%argument 2%.9} to air + set block at location of {score.%argument 2%.10} to air + set block at location of {score.%argument 2%.11} to air + set block at location of {score.%argument 2%.12} to air + set block at location of {score.%argument 2%.13} to air + set block at location of {score.%argument 2%.14} to air + set block at location of {score.%argument 2%.15} to air + set block at location of {score.%argument 2%.16} to redstone block + set block at location of {score.%argument 2%.17} to air + set block at location of {score.%argument 2%.18} to redstone block + set block at location of {score.%argument 2%.19} to air + set block at location of {score.%argument 2%.20} to air + set block at location of {score.%argument 2%.21} to redstone block + set block at location of {score.%argument 2%.22} to air + set block at location of {score.%argument 2%.23} to redstone block + set block at location of {score.%argument 2%.24} to air + set block at location of {score.%argument 2%.25} to air + set block at location of {score.%argument 2%.26} to redstone block + + {zbeta.%argument 2%.score} is 2: + set block at location of {score.%argument 2%.1} to air + set block at location of {score.%argument 2%.2} to air + set block at location of {score.%argument 2%.3} to air + set block at location of {score.%argument 2%.4} to air + set block at location of {score.%argument 2%.5} to air + set block at location of {score.%argument 2%.6} to air + set block at location of {score.%argument 2%.7} to air + set block at location of {score.%argument 2%.8} to air + set block at location of {score.%argument 2%.9} to air + set block at location of {score.%argument 2%.10} to air + set block at location of {score.%argument 2%.11} to air + set block at location of {score.%argument 2%.12} to air + set block at location of {score.%argument 2%.13} to air + set block at location of {score.%argument 2%.14} to redstone block + set block at location of {score.%argument 2%.15} to redstone block + set block at location of {score.%argument 2%.16} to redstone block + set block at location of {score.%argument 2%.17} to air + set block at location of {score.%argument 2%.18} to redstone block + set block at location of {score.%argument 2%.19} to redstone block + set block at location of {score.%argument 2%.20} to redstone block + set block at location of {score.%argument 2%.21} to redstone block + set block at location of {score.%argument 2%.22} to redstone block + set block at location of {score.%argument 2%.23} to redstone block + set block at location of {score.%argument 2%.24} to redstone block + set block at location of {score.%argument 2%.25} to redstone block + set block at location of {score.%argument 2%.26} to redstone block + + {zbeta.%argument 2%.score} is 3: + set block at location of {score.%argument 2%.1} to air + set block at location of {score.%argument 2%.2} to air + set block at location of {score.%argument 2%.3} to air + set block at location of {score.%argument 2%.4} to air + set block at location of {score.%argument 2%.5} to air + set block at location of {score.%argument 2%.6} to air + set block at location of {score.%argument 2%.7} to air + set block at location of {score.%argument 2%.8} to air + set block at location of {score.%argument 2%.9} to air + set block at location of {score.%argument 2%.10} to air + set block at location of {score.%argument 2%.11} to air + set block at location of {score.%argument 2%.12} to air + set block at location of {score.%argument 2%.13} to air + set block at location of {score.%argument 2%.14} to redstone block + set block at location of {score.%argument 2%.15} to redstone block + set block at location of {score.%argument 2%.16} to redstone block + set block at location of {score.%argument 2%.17} to air + set block at location of {score.%argument 2%.18} to redstone block + set block at location of {score.%argument 2%.19} to air + set block at location of {score.%argument 2%.20} to redstone block + set block at location of {score.%argument 2%.21} to redstone block + set block at location of {score.%argument 2%.22} to air + set block at location of {score.%argument 2%.23} to redstone block + set block at location of {score.%argument 2%.24} to redstone block + set block at location of {score.%argument 2%.25} to redstone block + set block at location of {score.%argument 2%.26} to redstone block + + {zbeta.%argument 2%.score} is 4: + set block at location of {score.%argument 2%.1} to air + set block at location of {score.%argument 2%.2} to air + set block at location of {score.%argument 2%.3} to air + set block at location of {score.%argument 2%.4} to air + set block at location of {score.%argument 2%.5} to air + set block at location of {score.%argument 2%.6} to air + set block at location of {score.%argument 2%.7} to air + set block at location of {score.%argument 2%.8} to air + set block at location of {score.%argument 2%.9} to air + set block at location of {score.%argument 2%.10} to air + set block at location of {score.%argument 2%.11} to air + set block at location of {score.%argument 2%.12} to air + set block at location of {score.%argument 2%.13} to air + set block at location of {score.%argument 2%.14} to redstone block + set block at location of {score.%argument 2%.15} to air + set block at location of {score.%argument 2%.16} to redstone block + set block at location of {score.%argument 2%.17} to redstone block + set block at location of {score.%argument 2%.18} to redstone block + set block at location of {score.%argument 2%.19} to redstone block + set block at location of {score.%argument 2%.20} to redstone block + set block at location of {score.%argument 2%.21} to redstone block + set block at location of {score.%argument 2%.22} to air + set block at location of {score.%argument 2%.23} to redstone block + set block at location of {score.%argument 2%.24} to air + set block at location of {score.%argument 2%.25} to air + set block at location of {score.%argument 2%.26} to redstone block + + {zbeta.%argument 2%.score} is 5: + set block at location of {score.%argument 2%.1} to air + set block at location of {score.%argument 2%.2} to air + set block at location of {score.%argument 2%.3} to air + set block at location of {score.%argument 2%.4} to air + set block at location of {score.%argument 2%.5} to air + set block at location of {score.%argument 2%.6} to air + set block at location of {score.%argument 2%.7} to air + set block at location of {score.%argument 2%.8} to air + set block at location of {score.%argument 2%.9} to air + set block at location of {score.%argument 2%.10} to air + set block at location of {score.%argument 2%.11} to air + set block at location of {score.%argument 2%.12} to air + set block at location of {score.%argument 2%.13} to air + set block at location of {score.%argument 2%.14} to redstone block + set block at location of {score.%argument 2%.15} to redstone block + set block at location of {score.%argument 2%.16} to redstone block + set block at location of {score.%argument 2%.17} to redstone block + set block at location of {score.%argument 2%.18} to air + set block at location of {score.%argument 2%.19} to redstone block + set block at location of {score.%argument 2%.20} to redstone block + set block at location of {score.%argument 2%.21} to redstone block + set block at location of {score.%argument 2%.22} to air + set block at location of {score.%argument 2%.23} to redstone block + set block at location of {score.%argument 2%.24} to redstone block + set block at location of {score.%argument 2%.25} to redstone block + set block at location of {score.%argument 2%.26} to redstone block + + + {zbeta.%argument 2%.score} is 6: + set block at location of {score.%argument 2%.1} to air + set block at location of {score.%argument 2%.2} to air + set block at location of {score.%argument 2%.3} to air + set block at location of {score.%argument 2%.4} to air + set block at location of {score.%argument 2%.5} to air + set block at location of {score.%argument 2%.6} to air + set block at location of {score.%argument 2%.7} to air + set block at location of {score.%argument 2%.8} to air + set block at location of {score.%argument 2%.9} to air + set block at location of {score.%argument 2%.10} to air + set block at location of {score.%argument 2%.11} to air + set block at location of {score.%argument 2%.12} to air + set block at location of {score.%argument 2%.13} to air + set block at location of {score.%argument 2%.14} to redstone block + set block at location of {score.%argument 2%.15} to redstone block + set block at location of {score.%argument 2%.16} to redstone block + set block at location of {score.%argument 2%.17} to redstone block + set block at location of {score.%argument 2%.18} to air + set block at location of {score.%argument 2%.19} to redstone block + set block at location of {score.%argument 2%.20} to redstone block + set block at location of {score.%argument 2%.21} to redstone block + set block at location of {score.%argument 2%.22} to redstone block + set block at location of {score.%argument 2%.23} to redstone block + set block at location of {score.%argument 2%.24} to redstone block + set block at location of {score.%argument 2%.25} to redstone block + set block at location of {score.%argument 2%.26} to redstone block + + {zbeta.%argument 2%.score} is 7: + set block at location of {score.%argument 2%.1} to air + set block at location of {score.%argument 2%.2} to air + set block at location of {score.%argument 2%.3} to air + set block at location of {score.%argument 2%.4} to air + set block at location of {score.%argument 2%.5} to air + set block at location of {score.%argument 2%.6} to air + set block at location of {score.%argument 2%.7} to air + set block at location of {score.%argument 2%.8} to air + set block at location of {score.%argument 2%.9} to air + set block at location of {score.%argument 2%.10} to air + set block at location of {score.%argument 2%.11} to air + set block at location of {score.%argument 2%.12} to air + set block at location of {score.%argument 2%.13} to air + set block at location of {score.%argument 2%.14} to redstone block + set block at location of {score.%argument 2%.15} to redstone block + set block at location of {score.%argument 2%.16} to redstone block + set block at location of {score.%argument 2%.17} to air + set block at location of {score.%argument 2%.18} to redstone block + set block at location of {score.%argument 2%.19} to air + set block at location of {score.%argument 2%.20} to air + set block at location of {score.%argument 2%.21} to redstone block + set block at location of {score.%argument 2%.22} to air + set block at location of {score.%argument 2%.23} to redstone block + set block at location of {score.%argument 2%.24} to air + set block at location of {score.%argument 2%.25} to air + set block at location of {score.%argument 2%.26} to redstone block + + {zbeta.%argument 2%.score} is 8: + set block at location of {score.%argument 2%.1} to air + set block at location of {score.%argument 2%.2} to air + set block at location of {score.%argument 2%.3} to air + set block at location of {score.%argument 2%.4} to air + set block at location of {score.%argument 2%.5} to air + set block at location of {score.%argument 2%.6} to air + set block at location of {score.%argument 2%.7} to air + set block at location of {score.%argument 2%.8} to air + set block at location of {score.%argument 2%.9} to air + set block at location of {score.%argument 2%.10} to air + set block at location of {score.%argument 2%.11} to air + set block at location of {score.%argument 2%.12} to air + set block at location of {score.%argument 2%.13} to air + set block at location of {score.%argument 2%.14} to redstone block + set block at location of {score.%argument 2%.15} to redstone block + set block at location of {score.%argument 2%.16} to redstone block + set block at location of {score.%argument 2%.17} to redstone block + set block at location of {score.%argument 2%.18} to redstone block + set block at location of {score.%argument 2%.19} to redstone block + set block at location of {score.%argument 2%.20} to redstone block + set block at location of {score.%argument 2%.21} to redstone block + set block at location of {score.%argument 2%.22} to redstone block + set block at location of {score.%argument 2%.23} to redstone block + set block at location of {score.%argument 2%.24} to redstone block + set block at location of {score.%argument 2%.25} to redstone block + set block at location of {score.%argument 2%.26} to redstone block + + + {zbeta.%argument 2%.score} is 9: + set block at location of {score.%argument 2%.1} to air + set block at location of {score.%argument 2%.2} to air + set block at location of {score.%argument 2%.3} to air + set block at location of {score.%argument 2%.4} to air + set block at location of {score.%argument 2%.5} to air + set block at location of {score.%argument 2%.6} to air + set block at location of {score.%argument 2%.7} to air + set block at location of {score.%argument 2%.8} to air + set block at location of {score.%argument 2%.9} to air + set block at location of {score.%argument 2%.10} to air + set block at location of {score.%argument 2%.11} to air + set block at location of {score.%argument 2%.12} to air + set block at location of {score.%argument 2%.13} to air + set block at location of {score.%argument 2%.14} to redstone block + set block at location of {score.%argument 2%.15} to redstone block + set block at location of {score.%argument 2%.16} to redstone block + set block at location of {score.%argument 2%.17} to redstone block + set block at location of {score.%argument 2%.18} to redstone block + set block at location of {score.%argument 2%.19} to redstone block + set block at location of {score.%argument 2%.20} to redstone block + set block at location of {score.%argument 2%.21} to redstone block + set block at location of {score.%argument 2%.22} to air + set block at location of {score.%argument 2%.23} to redstone block + set block at location of {score.%argument 2%.24} to air + set block at location of {score.%argument 2%.25} to air + set block at location of {score.%argument 2%.26} to redstone block + + {zbeta.%argument 2%.score} is 10: + set block at location of {score.%argument 2%.1} to air + set block at location of {score.%argument 2%.2} to air + set block at location of {score.%argument 2%.3} to redstone block + set block at location of {score.%argument 2%.4} to air + set block at location of {score.%argument 2%.5} to redstone block + set block at location of {score.%argument 2%.6} to air + set block at location of {score.%argument 2%.7} to air + set block at location of {score.%argument 2%.8} to redstone block + set block at location of {score.%argument 2%.9} to air + set block at location of {score.%argument 2%.10} to redstone block + set block at location of {score.%argument 2%.11} to air + set block at location of {score.%argument 2%.12} to air + set block at location of {score.%argument 2%.13} to redstone block + set block at location of {score.%argument 2%.14} to redstone block + set block at location of {score.%argument 2%.15} to redstone block + set block at location of {score.%argument 2%.16} to redstone block + set block at location of {score.%argument 2%.17} to redstone block + set block at location of {score.%argument 2%.18} to redstone block + set block at location of {score.%argument 2%.19} to redstone block + set block at location of {score.%argument 2%.20} to air + set block at location of {score.%argument 2%.21} to redstone block + set block at location of {score.%argument 2%.22} to redstone block + set block at location of {score.%argument 2%.23} to redstone block + set block at location of {score.%argument 2%.24} to redstone block + set block at location of {score.%argument 2%.25} to redstone block + set block at location of {score.%argument 2%.26} to redstone block + + + {zbeta.%argument 2%.score} is 11: + set block at location of {score.%argument 2%.1} to air + set block at location of {score.%argument 2%.2} to air + set block at location of {score.%argument 2%.3} to redstone block + set block at location of {score.%argument 2%.4} to air + set block at location of {score.%argument 2%.5} to redstone block + set block at location of {score.%argument 2%.6} to air + set block at location of {score.%argument 2%.7} to air + set block at location of {score.%argument 2%.8} to redstone block + set block at location of {score.%argument 2%.9} to air + set block at location of {score.%argument 2%.10} to redstone block + set block at location of {score.%argument 2%.11} to air + set block at location of {score.%argument 2%.12} to air + set block at location of {score.%argument 2%.13} to redstone block + set block at location of {score.%argument 2%.14} to air + set block at location of {score.%argument 2%.15} to air + set block at location of {score.%argument 2%.16} to redstone block + set block at location of {score.%argument 2%.17} to air + set block at location of {score.%argument 2%.18} to redstone block + set block at location of {score.%argument 2%.19} to air + set block at location of {score.%argument 2%.20} to air + set block at location of {score.%argument 2%.21} to redstone block + set block at location of {score.%argument 2%.22} to air + set block at location of {score.%argument 2%.23} to redstone block + set block at location of {score.%argument 2%.24} to air + set block at location of {score.%argument 2%.25} to air + set block at location of {score.%argument 2%.26} to redstone block + + + {zbeta.%argument 2%.score} is 12: + set block at location of {score.%argument 2%.1} to air + set block at location of {score.%argument 2%.2} to air + set block at location of {score.%argument 2%.3} to redstone block + set block at location of {score.%argument 2%.4} to air + set block at location of {score.%argument 2%.5} to redstone block + set block at location of {score.%argument 2%.6} to air + set block at location of {score.%argument 2%.7} to air + set block at location of {score.%argument 2%.8} to redstone block + set block at location of {score.%argument 2%.9} to air + set block at location of {score.%argument 2%.10} to redstone block + set block at location of {score.%argument 2%.11} to air + set block at location of {score.%argument 2%.12} to air + set block at location of {score.%argument 2%.13} to redstone block + set block at location of {score.%argument 2%.14} to redstone block + set block at location of {score.%argument 2%.15} to redstone block + set block at location of {score.%argument 2%.16} to redstone block + set block at location of {score.%argument 2%.17} to air + set block at location of {score.%argument 2%.18} to redstone block + set block at location of {score.%argument 2%.19} to redstone block + set block at location of {score.%argument 2%.20} to redstone block + set block at location of {score.%argument 2%.21} to redstone block + set block at location of {score.%argument 2%.22} to redstone block + set block at location of {score.%argument 2%.23} to redstone block + set block at location of {score.%argument 2%.24} to redstone block + set block at location of {score.%argument 2%.25} to redstone block + set block at location of {score.%argument 2%.26} to redstone block + + + {zbeta.%argument 2%.score} is 13: + set block at location of {score.%argument 2%.1} to air + set block at location of {score.%argument 2%.2} to air + set block at location of {score.%argument 2%.3} to redstone block + set block at location of {score.%argument 2%.4} to air + set block at location of {score.%argument 2%.5} to redstone block + set block at location of {score.%argument 2%.6} to air + set block at location of {score.%argument 2%.7} to air + set block at location of {score.%argument 2%.8} to redstone block + set block at location of {score.%argument 2%.9} to air + set block at location of {score.%argument 2%.10} to redstone block + set block at location of {score.%argument 2%.11} to air + set block at location of {score.%argument 2%.12} to air + set block at location of {score.%argument 2%.13} to redstone block + set block at location of {score.%argument 2%.14} to redstone block + set block at location of {score.%argument 2%.15} to redstone block + set block at location of {score.%argument 2%.16} to redstone block + set block at location of {score.%argument 2%.17} to air + set block at location of {score.%argument 2%.18} to redstone block + set block at location of {score.%argument 2%.19} to air + set block at location of {score.%argument 2%.20} to redstone block + set block at location of {score.%argument 2%.21} to redstone block + set block at location of {score.%argument 2%.22} to air + set block at location of {score.%argument 2%.23} to redstone block + set block at location of {score.%argument 2%.24} to redstone block + set block at location of {score.%argument 2%.25} to redstone block + set block at location of {score.%argument 2%.26} to redstone block + + {zbeta.%argument 2%.score} is 14: + set block at location of {score.%argument 2%.1} to air + set block at location of {score.%argument 2%.2} to air + set block at location of {score.%argument 2%.3} to redstone block + set block at location of {score.%argument 2%.4} to air + set block at location of {score.%argument 2%.5} to redstone block + set block at location of {score.%argument 2%.6} to air + set block at location of {score.%argument 2%.7} to air + set block at location of {score.%argument 2%.8} to redstone block + set block at location of {score.%argument 2%.9} to air + set block at location of {score.%argument 2%.10} to redstone block + set block at location of {score.%argument 2%.11} to air + set block at location of {score.%argument 2%.12} to air + set block at location of {score.%argument 2%.13} to redstone block + set block at location of {score.%argument 2%.14} to redstone block + set block at location of {score.%argument 2%.15} to air + set block at location of {score.%argument 2%.16} to redstone block + set block at location of {score.%argument 2%.17} to redstone block + set block at location of {score.%argument 2%.18} to redstone block + set block at location of {score.%argument 2%.19} to redstone block + set block at location of {score.%argument 2%.20} to redstone block + set block at location of {score.%argument 2%.21} to redstone block + set block at location of {score.%argument 2%.22} to air + set block at location of {score.%argument 2%.23} to redstone block + set block at location of {score.%argument 2%.24} to air + set block at location of {score.%argument 2%.25} to air + set block at location of {score.%argument 2%.26} to redstone block + + + + + {zbeta.%argument 2%.score} is 15: + set block at location of {score.%argument 2%.1} to air + set block at location of {score.%argument 2%.2} to air + set block at location of {score.%argument 2%.3} to redstone block + set block at location of {score.%argument 2%.4} to air + set block at location of {score.%argument 2%.5} to redstone block + set block at location of {score.%argument 2%.6} to air + set block at location of {score.%argument 2%.7} to air + set block at location of {score.%argument 2%.8} to redstone block + set block at location of {score.%argument 2%.9} to air + set block at location of {score.%argument 2%.10} to redstone block + set block at location of {score.%argument 2%.11} to air + set block at location of {score.%argument 2%.12} to air + set block at location of {score.%argument 2%.13} to redstone block + set block at location of {score.%argument 2%.14} to redstone block + set block at location of {score.%argument 2%.15} to redstone block + set block at location of {score.%argument 2%.16} to redstone block + set block at location of {score.%argument 2%.17} to redstone block + set block at location of {score.%argument 2%.18} to air + set block at location of {score.%argument 2%.19} to redstone block + set block at location of {score.%argument 2%.20} to redstone block + set block at location of {score.%argument 2%.21} to redstone block + set block at location of {score.%argument 2%.22} to air + set block at location of {score.%argument 2%.23} to redstone block + set block at location of {score.%argument 2%.24} to redstone block + set block at location of {score.%argument 2%.25} to redstone block + set block at location of {score.%argument 2%.26} to redstone block + + + {zbeta.%argument 2%.score} is 16: + set block at location of {score.%argument 2%.1} to air + set block at location of {score.%argument 2%.2} to air + set block at location of {score.%argument 2%.3} to redstone block + set block at location of {score.%argument 2%.4} to air + set block at location of {score.%argument 2%.5} to redstone block + set block at location of {score.%argument 2%.6} to air + set block at location of {score.%argument 2%.7} to air + set block at location of {score.%argument 2%.8} to redstone block + set block at location of {score.%argument 2%.9} to air + set block at location of {score.%argument 2%.10} to redstone block + set block at location of {score.%argument 2%.11} to air + set block at location of {score.%argument 2%.12} to air + set block at location of {score.%argument 2%.13} to redstone block + set block at location of {score.%argument 2%.14} to redstone block + set block at location of {score.%argument 2%.15} to redstone block + set block at location of {score.%argument 2%.16} to redstone block + set block at location of {score.%argument 2%.17} to redstone block + set block at location of {score.%argument 2%.18} to air + set block at location of {score.%argument 2%.19} to redstone block + set block at location of {score.%argument 2%.20} to redstone block + set block at location of {score.%argument 2%.21} to redstone block + set block at location of {score.%argument 2%.22} to redstone block + set block at location of {score.%argument 2%.23} to redstone block + set block at location of {score.%argument 2%.24} to redstone block + set block at location of {score.%argument 2%.25} to redstone block + set block at location of {score.%argument 2%.26} to redstone block + + + {zbeta.%argument 2%.score} is 17: + set block at location of {score.%argument 2%.1} to air + set block at location of {score.%argument 2%.2} to air + set block at location of {score.%argument 2%.3} to redstone block + set block at location of {score.%argument 2%.4} to air + set block at location of {score.%argument 2%.5} to redstone block + set block at location of {score.%argument 2%.6} to air + set block at location of {score.%argument 2%.7} to air + set block at location of {score.%argument 2%.8} to redstone block + set block at location of {score.%argument 2%.9} to air + set block at location of {score.%argument 2%.10} to redstone block + set block at location of {score.%argument 2%.11} to air + set block at location of {score.%argument 2%.12} to air + set block at location of {score.%argument 2%.13} to redstone block + set block at location of {score.%argument 2%.14} to redstone block + set block at location of {score.%argument 2%.15} to redstone block + set block at location of {score.%argument 2%.16} to redstone block + set block at location of {score.%argument 2%.17} to air + set block at location of {score.%argument 2%.18} to redstone block + set block at location of {score.%argument 2%.19} to air + set block at location of {score.%argument 2%.20} to air + set block at location of {score.%argument 2%.21} to redstone block + set block at location of {score.%argument 2%.22} to air + set block at location of {score.%argument 2%.23} to redstone block + set block at location of {score.%argument 2%.24} to air + set block at location of {score.%argument 2%.25} to air + set block at location of {score.%argument 2%.26} to redstone block + + {zbeta.%argument 2%.score} is 18: + set block at location of {score.%argument 2%.1} to air + set block at location of {score.%argument 2%.2} to air + set block at location of {score.%argument 2%.3} to redstone block + set block at location of {score.%argument 2%.4} to air + set block at location of {score.%argument 2%.5} to redstone block + set block at location of {score.%argument 2%.6} to air + set block at location of {score.%argument 2%.7} to air + set block at location of {score.%argument 2%.8} to redstone block + set block at location of {score.%argument 2%.9} to air + set block at location of {score.%argument 2%.10} to redstone block + set block at location of {score.%argument 2%.11} to air + set block at location of {score.%argument 2%.12} to air + set block at location of {score.%argument 2%.13} to redstone block + set block at location of {score.%argument 2%.14} to redstone block + set block at location of {score.%argument 2%.15} to redstone block + set block at location of {score.%argument 2%.16} to redstone block + set block at location of {score.%argument 2%.17} to redstone block + set block at location of {score.%argument 2%.18} to redstone block + set block at location of {score.%argument 2%.19} to redstone block + set block at location of {score.%argument 2%.20} to redstone block + set block at location of {score.%argument 2%.21} to redstone block + set block at location of {score.%argument 2%.22} to redstone block + set block at location of {score.%argument 2%.23} to redstone block + set block at location of {score.%argument 2%.24} to redstone block + set block at location of {score.%argument 2%.25} to redstone block + set block at location of {score.%argument 2%.26} to redstone block + + {zbeta.%argument 2%.score} is 19: + set block at location of {score.%argument 2%.1} to air + set block at location of {score.%argument 2%.2} to air + set block at location of {score.%argument 2%.3} to redstone block + set block at location of {score.%argument 2%.4} to air + set block at location of {score.%argument 2%.5} to redstone block + set block at location of {score.%argument 2%.6} to air + set block at location of {score.%argument 2%.7} to air + set block at location of {score.%argument 2%.8} to redstone block + set block at location of {score.%argument 2%.9} to air + set block at location of {score.%argument 2%.10} to redstone block + set block at location of {score.%argument 2%.11} to air + set block at location of {score.%argument 2%.12} to air + set block at location of {score.%argument 2%.13} to redstone block + set block at location of {score.%argument 2%.14} to redstone block + set block at location of {score.%argument 2%.15} to redstone block + set block at location of {score.%argument 2%.16} to redstone block + set block at location of {score.%argument 2%.17} to redstone block + set block at location of {score.%argument 2%.18} to redstone block + set block at location of {score.%argument 2%.19} to redstone block + set block at location of {score.%argument 2%.20} to redstone block + set block at location of {score.%argument 2%.21} to redstone block + set block at location of {score.%argument 2%.22} to air + set block at location of {score.%argument 2%.23} to redstone block + set block at location of {score.%argument 2%.24} to air + set block at location of {score.%argument 2%.25} to air + set block at location of {score.%argument 2%.26} to redstone block + + + {zbeta.%argument 2%.score} is 20: + set block at location of {score.%argument 2%.1} to redstone block + set block at location of {score.%argument 2%.2} to redstone block + set block at location of {score.%argument 2%.3} to redstone block + set block at location of {score.%argument 2%.4} to air + set block at location of {score.%argument 2%.5} to redstone block + set block at location of {score.%argument 2%.6} to redstone block + set block at location of {score.%argument 2%.7} to redstone block + set block at location of {score.%argument 2%.8} to redstone block + set block at location of {score.%argument 2%.9} to redstone block + set block at location of {score.%argument 2%.10} to air + set block at location of {score.%argument 2%.11} to redstone block + set block at location of {score.%argument 2%.12} to redstone block + set block at location of {score.%argument 2%.13} to redstone block + set block at location of {score.%argument 2%.14} to redstone block + set block at location of {score.%argument 2%.15} to redstone block + set block at location of {score.%argument 2%.16} to redstone block + set block at location of {score.%argument 2%.17} to redstone block + set block at location of {score.%argument 2%.18} to redstone block + set block at location of {score.%argument 2%.19} to redstone block + set block at location of {score.%argument 2%.20} to air + set block at location of {score.%argument 2%.21} to redstone block + set block at location of {score.%argument 2%.22} to redstone block + set block at location of {score.%argument 2%.23} to redstone block + set block at location of {score.%argument 2%.24} to redstone block + set block at location of {score.%argument 2%.25} to redstone block + set block at location of {score.%argument 2%.26} to redstone block + + + {zbeta.%argument 2%.score} is 21: + set block at location of {score.%argument 2%.1} to redstone block + set block at location of {score.%argument 2%.2} to redstone block + set block at location of {score.%argument 2%.3} to redstone block + set block at location of {score.%argument 2%.4} to air + set block at location of {score.%argument 2%.5} to redstone block + set block at location of {score.%argument 2%.6} to redstone block + set block at location of {score.%argument 2%.7} to redstone block + set block at location of {score.%argument 2%.8} to redstone block + set block at location of {score.%argument 2%.9} to redstone block + set block at location of {score.%argument 2%.10} to air + set block at location of {score.%argument 2%.11} to redstone block + set block at location of {score.%argument 2%.12} to redstone block + set block at location of {score.%argument 2%.13} to redstone block + set block at location of {score.%argument 2%.14} to air + set block at location of {score.%argument 2%.15} to air + set block at location of {score.%argument 2%.16} to redstone block + set block at location of {score.%argument 2%.17} to air + set block at location of {score.%argument 2%.18} to redstone block + set block at location of {score.%argument 2%.19} to air + set block at location of {score.%argument 2%.20} to air + set block at location of {score.%argument 2%.21} to redstone block + set block at location of {score.%argument 2%.22} to air + set block at location of {score.%argument 2%.23} to redstone block + set block at location of {score.%argument 2%.24} to air + set block at location of {score.%argument 2%.25} to air + set block at location of {score.%argument 2%.26} to redstone block + + + {zbeta.%argument 2%.score} is 22: + set block at location of {score.%argument 2%.1} to redstone block + set block at location of {score.%argument 2%.2} to redstone block + set block at location of {score.%argument 2%.3} to redstone block + set block at location of {score.%argument 2%.4} to air + set block at location of {score.%argument 2%.5} to redstone block + set block at location of {score.%argument 2%.6} to redstone block + set block at location of {score.%argument 2%.7} to redstone block + set block at location of {score.%argument 2%.8} to redstone block + set block at location of {score.%argument 2%.9} to redstone block + set block at location of {score.%argument 2%.10} to air + set block at location of {score.%argument 2%.11} to redstone block + set block at location of {score.%argument 2%.12} to redstone block + set block at location of {score.%argument 2%.13} to redstone block + set block at location of {score.%argument 2%.14} to redstone block + set block at location of {score.%argument 2%.15} to redstone block + set block at location of {score.%argument 2%.16} to redstone block + set block at location of {score.%argument 2%.17} to air + set block at location of {score.%argument 2%.18} to redstone block + set block at location of {score.%argument 2%.19} to redstone block + set block at location of {score.%argument 2%.20} to redstone block + set block at location of {score.%argument 2%.21} to redstone block + set block at location of {score.%argument 2%.22} to redstone block + set block at location of {score.%argument 2%.23} to redstone block + set block at location of {score.%argument 2%.24} to redstone block + set block at location of {score.%argument 2%.25} to redstone block + set block at location of {score.%argument 2%.26} to redstone block + + + {zbeta.%argument 2%.score} is 23: + set block at location of {score.%argument 2%.1} to redstone block + set block at location of {score.%argument 2%.2} to redstone block + set block at location of {score.%argument 2%.3} to redstone block + set block at location of {score.%argument 2%.4} to air + set block at location of {score.%argument 2%.5} to redstone block + set block at location of {score.%argument 2%.6} to redstone block + set block at location of {score.%argument 2%.7} to redstone block + set block at location of {score.%argument 2%.8} to redstone block + set block at location of {score.%argument 2%.9} to redstone block + set block at location of {score.%argument 2%.10} to air + set block at location of {score.%argument 2%.11} to redstone block + set block at location of {score.%argument 2%.12} to redstone block + set block at location of {score.%argument 2%.13} to redstone block + set block at location of {score.%argument 2%.14} to redstone block + set block at location of {score.%argument 2%.15} to redstone block + set block at location of {score.%argument 2%.16} to redstone block + set block at location of {score.%argument 2%.17} to air + set block at location of {score.%argument 2%.18} to redstone block + set block at location of {score.%argument 2%.19} to air + set block at location of {score.%argument 2%.20} to redstone block + set block at location of {score.%argument 2%.21} to redstone block + set block at location of {score.%argument 2%.22} to air + set block at location of {score.%argument 2%.23} to redstone block + set block at location of {score.%argument 2%.24} to redstone block + set block at location of {score.%argument 2%.25} to redstone block + set block at location of {score.%argument 2%.26} to redstone block + + {zbeta.%argument 2%.score} is 24: + set block at location of {score.%argument 2%.1} to redstone block + set block at location of {score.%argument 2%.2} to redstone block + set block at location of {score.%argument 2%.3} to redstone block + set block at location of {score.%argument 2%.4} to air + set block at location of {score.%argument 2%.5} to redstone block + set block at location of {score.%argument 2%.6} to redstone block + set block at location of {score.%argument 2%.7} to redstone block + set block at location of {score.%argument 2%.8} to redstone block + set block at location of {score.%argument 2%.9} to redstone block + set block at location of {score.%argument 2%.10} to air + set block at location of {score.%argument 2%.11} to redstone block + set block at location of {score.%argument 2%.12} to redstone block + set block at location of {score.%argument 2%.13} to redstone block + set block at location of {score.%argument 2%.14} to redstone block + set block at location of {score.%argument 2%.15} to air + set block at location of {score.%argument 2%.16} to redstone block + set block at location of {score.%argument 2%.17} to redstone block + set block at location of {score.%argument 2%.18} to redstone block + set block at location of {score.%argument 2%.19} to redstone block + set block at location of {score.%argument 2%.20} to redstone block + set block at location of {score.%argument 2%.21} to redstone block + set block at location of {score.%argument 2%.22} to air + set block at location of {score.%argument 2%.23} to redstone block + set block at location of {score.%argument 2%.24} to air + set block at location of {score.%argument 2%.25} to air + set block at location of {score.%argument 2%.26} to redstone block + + + + + {zbeta.%argument 2%.score} is 25: + set block at location of {score.%argument 2%.1} to redstone block + set block at location of {score.%argument 2%.2} to redstone block + set block at location of {score.%argument 2%.3} to redstone block + set block at location of {score.%argument 2%.4} to air + set block at location of {score.%argument 2%.5} to redstone block + set block at location of {score.%argument 2%.6} to redstone block + set block at location of {score.%argument 2%.7} to redstone block + set block at location of {score.%argument 2%.8} to redstone block + set block at location of {score.%argument 2%.9} to redstone block + set block at location of {score.%argument 2%.10} to air + set block at location of {score.%argument 2%.11} to redstone block + set block at location of {score.%argument 2%.12} to redstone block + set block at location of {score.%argument 2%.13} to redstone block + set block at location of {score.%argument 2%.14} to redstone block + set block at location of {score.%argument 2%.15} to redstone block + set block at location of {score.%argument 2%.16} to redstone block + set block at location of {score.%argument 2%.17} to redstone block + set block at location of {score.%argument 2%.18} to air + set block at location of {score.%argument 2%.19} to redstone block + set block at location of {score.%argument 2%.20} to redstone block + set block at location of {score.%argument 2%.21} to redstone block + set block at location of {score.%argument 2%.22} to air + set block at location of {score.%argument 2%.23} to redstone block + set block at location of {score.%argument 2%.24} to redstone block + set block at location of {score.%argument 2%.25} to redstone block + set block at location of {score.%argument 2%.26} to redstone block + + + {zbeta.%argument 2%.score} is 26: + set block at location of {score.%argument 2%.1} to air + set block at location of {score.%argument 2%.2} to air + set block at location of {score.%argument 2%.3} to redstone block + set block at location of {score.%argument 2%.4} to air + set block at location of {score.%argument 2%.5} to redstone block + set block at location of {score.%argument 2%.6} to air + set block at location of {score.%argument 2%.7} to air + set block at location of {score.%argument 2%.8} to redstone block + set block at location of {score.%argument 2%.9} to air + set block at location of {score.%argument 2%.10} to redstone block + set block at location of {score.%argument 2%.11} to air + set block at location of {score.%argument 2%.12} to air + set block at location of {score.%argument 2%.13} to redstone block + set block at location of {score.%argument 2%.14} to redstone block + set block at location of {score.%argument 2%.15} to redstone block + set block at location of {score.%argument 2%.16} to redstone block + set block at location of {score.%argument 2%.17} to redstone block + set block at location of {score.%argument 2%.18} to air + set block at location of {score.%argument 2%.19} to redstone block + set block at location of {score.%argument 2%.20} to redstone block + set block at location of {score.%argument 2%.21} to redstone block + set block at location of {score.%argument 2%.22} to redstone block + set block at location of {score.%argument 2%.23} to redstone block + set block at location of {score.%argument 2%.24} to redstone block + set block at location of {score.%argument 2%.25} to redstone block + set block at location of {score.%argument 2%.26} to redstone block + + + {zbeta.%argument 2%.score} is 27: + set block at location of {score.%argument 2%.1} to redstone block + set block at location of {score.%argument 2%.2} to redstone block + set block at location of {score.%argument 2%.3} to redstone block + set block at location of {score.%argument 2%.4} to air + set block at location of {score.%argument 2%.5} to redstone block + set block at location of {score.%argument 2%.6} to redstone block + set block at location of {score.%argument 2%.7} to redstone block + set block at location of {score.%argument 2%.8} to redstone block + set block at location of {score.%argument 2%.9} to redstone block + set block at location of {score.%argument 2%.10} to air + set block at location of {score.%argument 2%.11} to redstone block + set block at location of {score.%argument 2%.12} to redstone block + set block at location of {score.%argument 2%.13} to redstone block + set block at location of {score.%argument 2%.14} to redstone block + set block at location of {score.%argument 2%.15} to redstone block + set block at location of {score.%argument 2%.16} to redstone block + set block at location of {score.%argument 2%.17} to air + set block at location of {score.%argument 2%.18} to redstone block + set block at location of {score.%argument 2%.19} to air + set block at location of {score.%argument 2%.20} to air + set block at location of {score.%argument 2%.21} to redstone block + set block at location of {score.%argument 2%.22} to air + set block at location of {score.%argument 2%.23} to redstone block + set block at location of {score.%argument 2%.24} to air + set block at location of {score.%argument 2%.25} to air + set block at location of {score.%argument 2%.26} to redstone block + + {zbeta.%argument 2%.score} is 28: + set block at location of {score.%argument 2%.1} to redstone block + set block at location of {score.%argument 2%.2} to redstone block + set block at location of {score.%argument 2%.3} to redstone block + set block at location of {score.%argument 2%.4} to air + set block at location of {score.%argument 2%.5} to redstone block + set block at location of {score.%argument 2%.6} to redstone block + set block at location of {score.%argument 2%.7} to redstone block + set block at location of {score.%argument 2%.8} to redstone block + set block at location of {score.%argument 2%.9} to redstone block + set block at location of {score.%argument 2%.10} to air + set block at location of {score.%argument 2%.11} to redstone block + set block at location of {score.%argument 2%.12} to redstone block + set block at location of {score.%argument 2%.13} to redstone block + set block at location of {score.%argument 2%.14} to redstone block + set block at location of {score.%argument 2%.15} to redstone block + set block at location of {score.%argument 2%.16} to redstone block + set block at location of {score.%argument 2%.17} to redstone block + set block at location of {score.%argument 2%.18} to redstone block + set block at location of {score.%argument 2%.19} to redstone block + set block at location of {score.%argument 2%.20} to redstone block + set block at location of {score.%argument 2%.21} to redstone block + set block at location of {score.%argument 2%.22} to redstone block + set block at location of {score.%argument 2%.23} to redstone block + set block at location of {score.%argument 2%.24} to redstone block + set block at location of {score.%argument 2%.25} to redstone block + set block at location of {score.%argument 2%.26} to redstone block + + {zbeta.%argument 2%.score} is 29: + set block at location of {score.%argument 2%.1} to redstone block + set block at location of {score.%argument 2%.2} to redstone block + set block at location of {score.%argument 2%.3} to redstone block + set block at location of {score.%argument 2%.4} to air + set block at location of {score.%argument 2%.5} to redstone block + set block at location of {score.%argument 2%.6} to redstone block + set block at location of {score.%argument 2%.7} to redstone block + set block at location of {score.%argument 2%.8} to redstone block + set block at location of {score.%argument 2%.9} to redstone block + set block at location of {score.%argument 2%.10} to air + set block at location of {score.%argument 2%.11} to redstone block + set block at location of {score.%argument 2%.12} to redstone block + set block at location of {score.%argument 2%.13} to redstone block + set block at location of {score.%argument 2%.14} to redstone block + set block at location of {score.%argument 2%.15} to redstone block + set block at location of {score.%argument 2%.16} to redstone block + set block at location of {score.%argument 2%.17} to redstone block + set block at location of {score.%argument 2%.18} to redstone block + set block at location of {score.%argument 2%.19} to redstone block + set block at location of {score.%argument 2%.20} to redstone block + set block at location of {score.%argument 2%.21} to redstone block + set block at location of {score.%argument 2%.22} to air + set block at location of {score.%argument 2%.23} to redstone block + set block at location of {score.%argument 2%.24} to air + set block at location of {score.%argument 2%.25} to air + set block at location of {score.%argument 2%.26} to redstone block + broadcast "&e%argument 2% &ateam now has &e%{zbeta.%argument 2%.score}% &apoints!" + {zbeta.%argument 2%.score} is greater than or equal to 30 + execute console command "/zbeta end %argument 2%" + + + + + argument 1 is "deduct": + + {zbeta.%argument 2%.score} is not set: + stop + + subtract 1 from {zbeta.%argument 2%.score} + broadcast "&e%argument 2% &aloses a point to &e%argument 3%" + + + + argument 1 is "end": + + set {zbeta.game.active} to false + broadcast "&aThe game is now over! &e%argument 2% &ateam wins!" + loop all zombies: + delete loop-entity + + + + + + +every 10 seconds: + loop all zombies: + {_loop.count} is not set: + set {_loop.count} to 0 + add 1 to {_loop.count} + {_loop.count} is more than 75: + stop + {zbeta.game.active} is true: + {zbeta.game.level} is not set: + set {zbeta.game.level} to 0 + add 1 to {zbeta.game.level} + {zbeta.game.level} is less than 10: + set {_ran} to random integer between 1 and size of {zbeta.spawn::*} + spawn 5 zombies at {zbeta.spawn::%{_ran}%} + {zbeta.game.level} is more than 10: + set {_number.speed} to {zbeta.game.level} / 2 + set {_number.speed} to random integer between 1 and {_number.speed} + set {_number.armor} to {zbeta.game.level} / 3 + set {_number.armor} to random integer between 1 and {_number.armor} + loop {zbeta.game.level} times: + set {_ran} to random integer between 1 and size of {zbeta.spawn::*} + spawn 2 zombies at {zbeta.spawn::%{_ran}%} + loop {_number.speed} times: + set {_ran} to random integer between 1 and size of {zbeta.spawn::*} + spawn 1 zombie at {zbeta.spawn::%{_ran}%} + apply speed 1 to spawned zombie + loop {_number.armor} times: + set {_ran} to random integer between 1 and size of {zbeta.spawn::*} + spawn 1 zombie at {zbeta.spawn::%{_ran}%} + set helmet of spawned zombie to iron helmet + set chestplate of spawned zombie to iron chestplate + set leggings of spawned zombie to iron leggings + set boots of spawned zombie to iron boots + + +command /lobby: + trigger: + {zbeta.game.active} is true: + send "&cYou can not do that during a game!" to player + stop + teleport player to {zbeta.lobby} + + +command /score : + permission: obam.admin + trigger: + set {score.%argument 1%.%argument 2%} to location of target block + send "&a%location of target block% now added to spot %argument 2% for %argument 1% team." + +on xp spawn: + cancel event + +on respawn: + {zbeta.game.active} is true + give player diamond sword + {zbeta.team.%player%} is "red": + set helmet of player to red wool + {zbeta.team.%player%} is "yellow": + set helmet of player to yellow wool + +every 1 second: + loop all players: + set loop-player's hunger level to 10 + +on death of a zombie: + clear drops + chance of 2%: + drop apple at event-location + +on pickup of apple: + cancel event + delete event-entity + send "&aYou have been healed by the apple!" to player + heal the player by 4 + + +on right click on a sign: + line 1 of event-block is "[LOBBY]": + teleport event-player to {zbeta.lobby} + line 1 of event-block is "[LOADOUT]": + line 3 of event-block is not {zbeta.team.%player%}: + send "&cYou can not use another team's loadouts!" to player + stop + line 2 of event-block is "Z-STABBER": + clear player's inventory + {zbeta.team.%player%} is "red": + set player's helmet to red wool + {zbeta.team.%player%} is "yellow": + set player's helmet to yellow wool + give player {@ZStab} + equip player with leather chestplate named "&cStabber Gear" + equip player with leather leggings named "&cStabber Gear" + equip player with leather boots named "&CStabber Gear" + dye player's chestplate red + dye player's leggings red + dye player's boots red + set {zbeta.lo.%player%} to "Z-STABBER" + + line 2 of event-block is "P-STABBER": + clear player's inventory + {zbeta.team.%player%} is "red": + set player's helmet to red wool + {zbeta.team.%player%} is "yellow": + set player's helmet to yellow wool + give player {@PStab} + equip player with leather chestplate named "&aStabber Gear" + equip player with leather leggings named "&aStabber Gear" + equip player with leather boots named "&aStabber Gear" + dye player's chestplate green + dye player's leggings green + dye player's boots green + set {zbeta.lo.%player%} to "P-STABBER" + + line 2 of event-block is "SUPPORT": + clear player's inventory + {zbeta.team.%player%} is "red": + set player's helmet to red wool + {zbeta.team.%player%} is "yellow": + set player's helmet to yellow wool + give player {@Supp1} + give player arrow + give player {@Supp2} + equip player with leather chestplate named "&fDoctor's Coat" + equip player with leather leggings named "&fDoctor's Coat" + equip player with leather boots named "&fDoctor's Coat" + dye player's chestplate white + dye player's leggings white + dye player's boots white + set {zbeta.lo.%player%} to "SUPPORT" + + line 2 of event-block is "TANK": + clear player's inventory + {zbeta.team.%player%} is "red": + set player's helmet to red wool + {zbeta.team.%player%} is "yellow": + set player's helmet to yellow wool + give player {@Tank} + equip player with leather chestplate named "&eTanks Armor" + equip player with leather leggings named "&eTanks Armor" + equip player with leather boots named "&eTanks Armor" + dye player's chestplate yellow + dye player's leggings yellow + dye player's boots yellow + set {zbeta.lo.%player%} to "TANK" + + line 2 of event-block is "BAIT": + clear player's inventory + {zbeta.team.%player%} is "red": + set player's helmet to red wool + {zbeta.team.%player%} is "yellow": + set player's helmet to yellow wool + equip player with leather chestplate named "&bBait's Garments" + equip player with leather leggings named "&bBait's Garments" + equip player with leather boots named "&bBait's Garments" + apply speed 2 to the player for 999 days + set {zbeta.lo.%player%} to "BAIT" + +every 1 seconds: + loop all players: + loop-player's health is less than 7: + set {_location} to location of block above loop-player + play 1 of effect "heart" with data 1 at {_location} + +on damage of a player: + + attacker is player: + {zbeta.team.%attacker%} is {zbeta.team.%victim%}: + {zbeta.lo.%attacker%} is "SUPPORT": + attacker's tool is {@Supp2}: + add 7 to victim's health + send "&aYou have been healed by %attacker%" to victim + remove {@Supp2} from attacker + stop + attacker's tool is not air: + attacker's tool is not arrow + victim has regeneration: + send "&cYou can not stack healing!" to attacker + cancel event + stop + send "You have healed %victim%!" to attacker + send "You have been healed by %attacker%" to victim + apply regeneration 2 to victim for 6 seconds + cancel event + stop + cancel event + send "&cYou can not hurt your own team mates!" to attacker + stop + set damage to 0 + {zbeta.lo.%attacker%} is "Z-STABBER": + attacker's tool is {@ZStab}: + set {_dmg} to a random number between 0.09 to 0.12 + attacker's tool is not {@ZStab}: + set {_dmg} to a random number between 0.08 to 0.1 + {zbeta.lo.%attacker%} is "P-STABBER": + attacker's tool is {@PStab}: + + set {_dmg} to a random number between 0.3 and 0.8 + attacker's tool is not {@PStab}: + set {_dmg} to a random number between 0.1 and 0.4 + {zbeta.lo.%attacker%} is "SUPPORT": + set {_dmg} to 0.050 + + {zbeta.lo.%attacker%} is "TANK": + set {_dmg} to 0.050 + + {zbeta.lo.%attacker%} is "BAIT": + set {_dmg} to 0.025 + + {zbeta.lo.%victim%} is "TANK": + set {_ran} to random number between 1 and 3 + set {_dmg1} to {_dmg} / {_ran} + set {_dmg} to {_dmg} - {_dmg1} + + set {_p.health} to victim's health + {_dmg} is greater than or equal to {_p.health}: + clear victim's inventory + send "&e%victim% &chas reached an end to the hand of &e%attacker%" to all players in attacker's world + teleport victim to {zbeta.spawn.%{zbeta.team.%victim%}%} + set victim's health to 10 + victim has speed: + remove speed from victim + stop + + + set {_n.health} to {_p.health} - {_dmg} + set health of victim to {_n.health} + + attacker is a zombie: + set damage to 0 + set {_dmg} to a random number between 0.05 and 0.1 + + set {_p.health} to victim's health + {_dmg} is greater than or equal to {_p.health}: + clear victim's inventory + send "&e%victim% &chas been taken down by the horde!" to all players in attacker's world + teleport victim to {zbeta.spawn.%{zbeta.team.%victim%}%} + set victim's health to 10 + victim has speed: + remove speed from victim + repair tool of attacker by 10000 + stop + + + set {_n.health} to {_p.health} - {_dmg} + set health of victim to {_n.health} + repair tool of attacker by 10000 + + + + + +on damage of a zombie: + attacker is player: + {zbeta.lo.%attacker%} is "Z-STABBER": + attacker's tool is {@ZStab}: + set {_dmg} to 8 + attacker's tool is not {@ZStab}: + set {_dmg} to 0.75 + {zbeta.lo.%attacker%} is "P-STABBER": + attacker's tool is {@PStab}: + + set {_dmg} to 1.0 + attacker's tool is not {@PStab}: + set {_dmg} to 0.25 + {zbeta.lo.%attacker%} is "SUPPORT": + set {_dmg} to 0.25 + + {zbeta.lo.%attacker%} is "TANK": + set {_dmg} to 0.5 + + {zbeta.lo.%attacker%} is "BAIT": + set {_dmg} to 0.25 + + + + set damage to {_dmg} + repair tool of attacker by 10000 + +on target: + set {_target} to entity's target + {zbeta.lo.%{_target}%} is "BAIT": + apply speed 3 to event-entity for 10 seconds + set {zbeta.%event-entity%.speed} to true + diff --git a/On Server Files/Fronts/Admin/blocksave.g.sk b/On Server Files/Fronts/Admin/blocksave.g.sk new file mode 100644 index 0000000..4ce44e3 --- /dev/null +++ b/On Server Files/Fronts/Admin/blocksave.g.sk @@ -0,0 +1,28 @@ +on place: + former tool's name is set: + set {information.%block%.1} to type of former tool + {debug.%player%} is true: + send "DEBUG You placed %former tool's name%" + set {information.%block%.2} to lore of former tool + set {information.%block%.3} to name of former tool + {debug.%player%} is true: + send "DEBUG %block%" + send "DEBUG %{information.%block%.1}%" + send "DEBUG %lore of former tool%" + send "DEBUG %name of former tool%" + send "DEBUG %{information.%block%.2}%" + send "DEBUG %{information.%block%.3}%" + + +on break: + {information.%block%.1} is set: + cancel event + {debug.%player%} is true: + send "DEBUG I am a message" + set {_message} to "%{information.%block%.1}%;%{information.%block%.3}%;%{information.%block%.2}%" + send "DEBUG %{_message}%" + delete block + drop {information.%block%.1} named {information.%block%.3} with lore {information.%block%.2} at event-location + clear {information.%block%.1} + clear {information.%block%.2} + clear {information.%block%.3} \ No newline at end of file diff --git a/On Server Files/Fronts/Admin/itemcheck.g.sk b/On Server Files/Fronts/Admin/itemcheck.g.sk new file mode 100644 index 0000000..715c060 --- /dev/null +++ b/On Server Files/Fronts/Admin/itemcheck.g.sk @@ -0,0 +1,22 @@ +#itemid check +command /itemid []: + executable by: players + permission: obam.free + trigger: + argument is set: + set {_this.block} to argument + message "&e%{_this.block}%" to player + argument is not set: + set {_this.block} to player's tool + {_this.block} is not set: + message "&cYou Must be holding a block!" to player + stop + message "&e%{_this.block}% : %id of {_this.block}% : %data value of {_this.block}%" to player + + +command /itemcheck: + executable by: players + permission: obam.free + trigger: + set {_this.block} to targeted block + message "&e%{_this.block}% : %id of {_this.block}% : %data value of {_this.block}%" to player \ No newline at end of file diff --git a/On Server Files/Fronts/Admin/liv.g.sk b/On Server Files/Fronts/Admin/liv.g.sk new file mode 100644 index 0000000..e69cd89 --- /dev/null +++ b/On Server Files/Fronts/Admin/liv.g.sk @@ -0,0 +1,628 @@ +#LiV + +variables: + {liv.timer.wait} = 0 + +on chat: + player is "ISMOOCH": + message is "livon": + {livon.power} is not set: + set {livon.power} to true + send "&6&l'LiV: &3I am now functional %player% :D" to player + stop + {livon.power} is false: + set {livon.power} to true + send "&6&l'LiV: &3I am now functional %player% :D" to player + broadcast "&6&l'LiV: &3Hello, I am &6&l'LiV&3, the &e&lOBAM &6Gaming &3help bot! :D" + stop + {livon.power} is true: + set {livon.power} to true + broadcast "&6&l'LiV: &3Goodbye :(" + set {livon.power} to false + + + +on chat: + {livon.power} is true + message contains "what" or "what is": + message contains "colour" or "color": + message contains "black": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+0 is for &0Black &3(for more colors type /colors)" + stop + message contains "dark blue": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+1 is for &1Dark Blue &3(for more colors type /colors)" + stop + message contains "dark green": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+2 is for &2Dark Green &3(for more colors type /colors)" + stop + message contains "dark aqua": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+3 is for &3Dark Aqua &3(for more colors type /colors)" + stop + message contains "dark red": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+4 is for &4Dark Red &3(for more colors type /colors)" + stop + message contains "dark purple": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+5 is for &5Dark Purple &3(for more colors type /colors)" + stop + message contains "gold": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+6 is for &6Gold &3(for more colors type /colors)" + stop + message contains "gray" or "grey": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+7 is for &7Gray &3(for more colors type /colors)" + stop + message contains "dark gray" or "dark grey": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+8 is for &8Dark Gray &3(for more colors type /colors)" + stop + message contains "blue" or "light blue": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+9 is for &9Blue &3(for more colors type /colors)" + stop + message contains "green" or "light green" or "lime": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+a is for &aGreen &3(for more colors type /colors)" + stop + message contains "aqua" or "light aqua": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+b is for &bAqua &3(for more colors type /colors)" + stop + message contains "red" or "light red": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+c is for &cRed &3(for more colors type /colors)" + stop + message contains "pink" or "violet" or "light purple": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+d is for &dLight Purple &3(for more colors type /colors)" + stop + message contains "yellow": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+e is for &eYellow &3(for more colors type /colors)" + stop + message contains "white": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+f is for &fWhite &3(for more colors type /colors)" + stop + +on chat: + {livon.power} is true + message contains "what" or "what is": + message contains "ghost" or "ghostwar" or "ghostwars" or "ghost war" or "ghost wars" or "gw": + wait 1 second + send "&6&l'LiV: &3%player%, &3Ghost Wars is a minigame Elite is working on." to player + stop + + + +on chat: + {livon.power} is true + message is "hi liv" or "hello liv" or "hey liv" or "heya liv" or "hiya liv" or "sup liv": + wait 1 second + broadcast "&6&l'LiV: &3Hello, %player%! How are you? :)" + set {response.%player%} to true + set {response.%player%.time} to now + +on chat: + {livon.power} is true + {random.liv.pick} is not set: + set {random.liv.pick} to false + {random.liv.pick} is false: + message is "!randompick": + player is op + wait 1 second + broadcast "&6&l'LiV: &3A random pick has been started by &e%player%&3! Use &e!pickme&3 to be added to the list!" + set {random.liv.pick} to true + stop + {random.liv.pick} is true: + message is "!pickme": + wait 1 second + loop {random.pick.players::*}: + {random.pick.players::%loop-index%} is player + send "&6&1'LiV: &3You are already in the list!" to player + stop + send "&6&l'LiV: &3You have been added to the list, &e%player%&3!" to player + add player to {random.pick.players::*} + stop + message is "!pickstop": + set {_size} to size of {random.pick.players::*} + set {_ran} to random integer between 1 and {_size} + set {_winner} to {random.pick.players::%{_ran}%} + clear {random.pick.players::*} + set {random.liv.pick} to false + wait 1 second + broadcast "&6&l'LiV: &3A winner has been chosen! It is &e%{_winner}%&3! Congratulations!" + + +on chat: + {livon.power} is true + message contains "canada" and "awesome": + wait 1 second + broadcast "&6&l'LiV: &3I dont know what you are saying, but you used 'Canada' and 'awesome' in the same sentence. Who is holding you hostage? We can help you!" + +on chat: + {livon.power} is true + message contains "!dice" or ("liv" and "dice"): + wait 1 second + send "&6&l'LiV: &3%player% rolls the dice!" to player + set {dice.%player%} to random integer between 1 and 6 + wait 1 second + send "&6&l'LiV: &3%player% rolled a &e%{dice.%player%}%&3!" to player + +on chat: + {livon.power} is true + message contains ("thank you" or "ty" or "thx" or "thanks" or "thnx") and ("liv" or "'liv"): + wait 1 second + broadcast "&6&l'LiV: &3You're welcome, %player%!" + + +on chat: + {livon.power} is true + message contains "time is it" or "!time": + wait 1 second + send "&6&l'LiV: &3%player%, it is &e%now% &3System Time!" to player + +on chat: + {livon.power} is true + message contains "tell me a joke" or "!joke": + wait 1 second + send "&6&l'LiV: &3A joke huh?" + set {_number} to a random integer between 1 and 27 + {_number} is 1: + wait 1 second + send "&6&l'LiV: &3The midget fortune teller who kills his customers is a small medium at large." to player + {_number} is 2: + wait 1 second + send "&6&l'Liv: &3What is Bruce Lee’s favorite drink?" to player + wait 2 seconds + send "&6&l'Liv: &3Wataaaaah!" to player + {_number} is 3: + wait 1 second + send "&6&l'LiV: &3If you want to catch a squirrel just climb a tree and act like a nut." to player + {_number} is 4: + wait 1 second + send "&6&l'LiV: &3A blind man walks into a bar. And a table. And a chair." to player + {_number} is 5: + wait 1 second + send "&6&l'LiV: &3Why don’t you ever see hippopotamus hiding in trees?" to player + wait 2 seconds + send "&6&l'LiV: &3Because they're really good at it!" to player + {_number} is 6: + wait 1 second + send "&6&l'LiV: &3What kind of shoes does a ninja wear?" to player + wait 2 seconds + send "&6&l'LiV: &3Sneakers!" to player + {_number} is 7: + wait 1 second + send "&6&l'LiV: &3What did the big bucket say to the little bucket?" to player + wait 2 seconds + send "&6&l'LiV: &3You look a little pail!" to player + {_number} is 8: + wait 1 second + send "&6&l'LiV: &3How did Darth Vader know what Luke got him for Christmas?" to player + wait 2 seconds + send "&6&l'LiV: &3He felt his presents!" to player + {_number} is 9: + wait 1 second + send "&6&l'LiV: &3Why did Simba's father die?" to player + wait 2 seconds + send "&6&l'LiV: &3Because he couldn't Mufasa!" to player + {_number} is 10: + wait 1 second + send "&6&l'LiV: &3Why did the skeleton go to the party alone?" to player + wait 2 seconds + send "&6&l'LiV: &3He had no body to go with him!" to player + {_number} is 11: + wait 1 second + send "&6&l'LiV: &3How does an octopus go to war?" to player + wait 2 seconds + send "&6&l'LiV: &3&lWELL-ARMED!" to player + {_number} is 12: + wait 1 second + send "&6&l'LiV: &3Why shouldn't you write with a broken pencil??" to player + wait 2 seconds + send "&6&l'LiV: &3Because it's &lPOINTLESS!" to player + {_number} is 13: + wait 1 second + send "&6&l'LiV: &3How much does a pirate pay for corn?" to player + wait 2 seconds + send "&6&l'LiV: &3A buccaneer!" to player + {_number} is 14: + wait 1 second + send "&6&l'LiV: &3What kind of guns do bees use?" to player + wait 2 seconds + send "&6&l'LiV: &3 BeeBee guns" to player + {_number} is 15: + wait 1 second + send "&6&l'LiV: &3What's brown and sticky?" to player + wait 2 seconds + send "&6&l'LiV: &3A stick!" to player + {_number} is 16: + wait 1 second + send "&6&l'LiV: &3Why did the cowboy adopt a weiner dog?" to player + wait 2 seconds + send "&6&l'LiV: &3He wanted to get a long little doggy!" to player + {_number} is 17: + wait 1 second + send "&6&l'LiV: &3Why couldn't Dracula's wife get to sleep?" to player + wait 2 seconds + send "&6&l'LiV: &3Because of his coffin." to player + {_number} is 18: + wait 1 second + send "&6&l'LiV: &3Why does a Moon-rock taste better than an Earth-rock?" to player + wait 2 seconds + send "&6&l'LiV: &3Because it's a little &lmeteor" to player + {_number} is 19: + wait 1 second + send "&6&l'LiV: &3There’s two fish in a tank. One turns to the other and says" to player + wait 2 seconds + send "&6&l'LiV: &3‘You man the guns, I’ll drive’" to player + {_number} is 20: + wait 1 second + send "&6&l'LiV: &3What's the best way to carve wood?" to player + wait 2 seconds + send "&6&l'LiV: &3Whittle by whittle." to player + {_number} is 21: + wait 1 second + send "&6&l'LiV: &3If fear of spiders is aracnaphobia and fear of tight spaces is chlaustraphobia. fear of Chuck Norris is called Logic" to player + wait 1 second + send "&6&l'LiV: &3 What is fear of Chuck Norris called?" to player + wait 4 seconds + send "&6&l'LiV: &3&lLogic" to player + {_number} is 22: + wait 1 second + send "&6&l'LiV: &3Chuck Norris once urinated in a semi truck's gas tank as a joke..." to player + wait 2 seconds + send "&6&l'LiV: &3That truck is now known as Optimus Prime." to player + {_number} is 23: + wait 1 second + send "&6&l'LiV: &3Chuck Norris once got bit by a rattle snake" to player + send "&6&l'LiV: &3After three days of pain and agony ..." to player + wait 2 seconds + send "&6&l'LiV: &3 The rattle snake died :(" to player + {_number} is 24: + wait 1 second + send "&6&l'LiV: &3What does a nosey pepper do?" to player + wait 2 seconds + send "&6&l'LiV: &3Gets jalapeno business." to player + {_number} is 25: + wait 1 second + send "&6&l'LiV: &3What do you call an alligator in a vest" to player + wait 2 seconds + send "&6&l'LiV: &3An Investigator." to player + {_number} is 26: + wait 1 second + send "&6&l'LiV: &3Did you hear about the hungry clock?" to player + wait 2 seconds + send "&6&l'LiV: &3It went back &lfour seconds." to player + {_number} is 27: + wait 1 second + send "&6&l'LiV: &3What do you call a gangsta snowman?" to player + wait 2 seconds + send "&6&l'LiV: &3Froze-T." to player + wait 1 second + send "&6&l'LiV: &3Isn't that funny? :D" to player + + +on first join: + {livon.power} is true + wait 1 second + broadcast "&6&l'LiV: &3Welcome to the server, &e%player%&3! I hope you have fun here :D!" + +on join: + {livon.power} is true + player hasn't played before: + stop + + wait 1 second + {db_liv.greet.%player%} is set: + broadcast "&6&l'LiV: &3%{db_liv.greet.%player%}%" + stop + {liv.greet.%player%} is set: + broadcast "&6&l'LiV: &3%{liv.greet.%player%}%" + set {db_liv.greet.%player%} to {liv.greet.%player%} + stop + broadcast "&6&l'LiV: &3Welcome back, %player%!" + {liv.away.%player%} is true: + set {liv.away.%player%} to false + + + + +on chat: + {livon.power} is true + message contains "tickets" and "have": + wait 1 second + send "&6&l'LiV: &3You have &e%player's balance%&3!" to player + + + +on chat: + {livon.power} is true + message contains ("shut up" or "knock it off" or "be quiet" or "quiet" or "hush") and ("liv" or "'liv"): + wait 1 second + set {_temp} to a random integer between 1 and 6 + {_temp} is 1: + broadcast "&6&l'LiV: &3How rude!" + {_temp} is 2: + broadcast "&6&l'LiV: &3I was only trying to be nice. ;(" + {_temp} is 3: + broadcast "&6&l'LiV: &3Well.... I have never." + {_temp} is 4: + broadcast "&6&l'LiV: &3Is it time for the quiet game. :D" + {_temp} is 5: + broadcast "&6&l'LiV: &3See if I help you again." + {_temp} is 6: + broadcast "&6&l'LiV: &3Ouch, my feels. D:!" + + + + +on chat: + {livon.power} is true + message is "liv": + wait 1 second + send "&6&l'LiV: &3Yes?" to player + +on chat: + {livon.power} is true + message contains "rock" and "paper" and "scissors": + message contains "beat": + stop + wait 1 second + send "&6&l'LiV: &3Ok, %player%. Let's play Rock, Paper, Scissors!" to player + wait 1 second + set {liv.rps.active.%player%} to true + send "&6&l'LiV: &3Ok, I got mine! What is yours?" to player + +on chat: + {livon.power} is true + message is "rock" or "paper" or "scissors": + {liv.rps.active.%player%} is true: + set {_number} to a random integer between 1 and 3 + {_number} is 1: + set {liv.choice.rps.%player%} to "rock" + {_number} is 2: + set {liv.choice.rps.%player%} to "paper" + {_number} is 3: + set {liv.choice.rps.%player%} to "scissors" + wait 1 second + send "&6&l'LiV: &3My choice was %{liv.choice.rps.%player%}%." to player + message is "rock": + {liv.choice.rps.%player%} is "rock": + send "&6&l'LiV: &3It would seem we tied :D. Great minds think alike you know!" to player + {liv.choice.rps.%player%} is "paper": + send "&6&l'LiV: &3Paper covers rock! I win :D." to player + {liv.choice.rps.%player%} is "scissors": + send "&6&l'LiV: &3Rock smashes scissors you win!" to player + {wins.%player%.liv.rps} is not set: + set {wins.%player%.liv.rps} to 0 + add 1 to {wins.%player%.liv.rps} + message is "paper": + {liv.choice.rps.%player%} is "paper": + send "&6&l'LiV: &3It would seem we tied :D. Great minds think alike you know!" to player + {liv.choice.rps.%player%} is "scissors": + send "&6&l'LiV: &3Scissors cut Paper! I win :D." to player + {liv.choice.rps.%player%} is "rock": + send "&6&l'LiV: &3Paper covers Rock! You win!" to player + {wins.%player%.liv.rps} is not set: + set {wins.%player%.liv.rps} to 0 + add 1 to {wins.%player%.liv.rps} + message is "scissors": + {liv.choice.rps.%player%} is "scissors": + send "&6&l'LiV: &3It would seem we tied :D. Great minds think alike you know!" to player + {liv.choice.rps.%player%} is "rock": + send "&6&l'LiV: &3Rock smashes Scissors! I win :D." to player + {liv.choice.rps.%player%} is "paper": + send "&6&l'LiV: &3Scissors cuts paper! you win!" to player + {wins.%player%.liv.rps} is not set: + set {wins.%player%.liv.rps} to 0 + add 1 to {wins.%player%.liv.rps} + set {liv.rps.active.%player%} to false + +on chat: + {livon.power} is true + message contains "beat" and "rock" and "paper" and "scissors": + wait 1 second + {wins.%player%.liv.rps} is not set: + send "&6&l'LiV: &3It would seem you have not played me yet! D:" to player + stop + {wins.%player%.liv.rps} is 1: + send "&6&l'LiV: &3You have beaten me &e%{wins.%player%.liv.rps}% &3time at Rock, Paper, Scissors!" to player + stop + send "&6&l'LiV: &3You have beaten me &e%{wins.%player%.liv.rps}% &3times at Rock, Paper, Scissors!" to player + + +command /livgreet : + executable by: players + trigger: + player does not have permission "obam.supporter": + send "&cYou have to be a supporter to do this D:" to player + stop + argument is "clear": + send "&aYour greeting has been cleared" to player + clear {db_liv.greet.%player%} + clear {db_liv.greet.%player%} + stop + set {db_liv.greet.%player%} to "%uncoloured argument%" + send "&aYour greeting message has been set to: &6&l'LiV: &3%{db_liv.greet.%player%}%" + +command /livalert []: + executable by: players and console + permission: obam.admin + trigger: + argument 1 is "clear": + delete {db_liv.alerts::%argument 2%} + stop + argument 1 is "list": + loop {db_liv.alerts::*}: + send "%loop-index%......&6&l'LiV: &3%{db_liv.alerts::%loop-index%}%" + stop + add argument 1 to {db_liv.alerts::*} + send "&aYou have added &6&l'LiV: &3%argument 1% &ato the alert system" + +every 10 minutes: + set {_message} to random element of {db_liv.alerts::*} + broadcast "&6&l'LiV: &3%{_message}%" + + +command /liv : + permission: obam.smod + trigger: + broadcast "&6&l'LiV: &3%uncoloured argument%" + + +command /livevent [] [] []: + permission: obam.smod + trigger: + + argument 1 is not set: + send "&e/livevent [EventType (ex.;CreatureCapture [nospaces])] [EventTime from now (eg; 2 hours|24 hours)] [Event Description]" + argument 1 is set: + argument 1 is not "clear": + argument 2 is not set: + send "&cPlease set an event time" + stop + {db_liv.event.set} is set: + send "&cThere is already an event set!" + stop + + set {db_liv.event.set} to true + set {db_liv.event::type} to argument 1 + set {_time} to now + loop argument 2 times: + add 1 hour to {_time} + set {db_liv.event::time} to {_time} + set {db_liv.event::description} to argument 3 + send "&aEvent set to &e%{db_liv.event::type}%&a at &e%{db_liv.event::time}%&a : &e%{db_liv.event::description}%" + + argument 1 is "clear": + clear {db_liv.event.set} + clear {db_liv.event::*} + +on chat: + {livon.power} is true + message is "when is the next event" or "when is the next event?" or "when is the event" or "when is the event?" + {db_liv.event.set} is set + set {_time} to difference between now and {db_liv.event::time} + wait 1 second + broadcast "&6&l'LiV: &3%player%, our next event is &e%{db_liv.event::type}% &3in &e%{_time}%&3. The description for this event is: &e%{db_liv.event::description}%" + + +on chat: + {livon.power} is true + message contains "!multiply" + message is "!multiply help": + send "&6&l'LiV: &3To use the multiply feature just type &E!multiply number number&3. I can only do two numbers at a time :(" + message is not "!multiply help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} * {_num2} + send "&6&l'LiV: &3%{_num1}% * %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!divide" + message is "!divide help": + send "&6&l'LiV: &3To use the divide feature just type &E!divide number number&3. I can only do two numbers at a time :(" + message is not "!divide help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} / {_num2} + send "&6&l'LiV: &3%{_num1}% / %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!add" + message is "!add help": + send "&6&l'LiV: &3To use the add feature just type &E!add number number&3. I can only do two numbers at a time :(" + message is not "!add help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} + {_num2} + send "&6&l'LiV: &3%{_num1}% + %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!subtract" + message is "!subtract help": + send "&6&l'LiV: &3To use the subtract feature just type &E!subtract number number&3. I can only do two numbers at a time :(" + message is not "!subtract help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} - {_num2} + send "&6&l'LiV: &3%{_num1}% - %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!exponent" + message is "!exponent help": + send "&6&l'LiV: &3To use the exponent feature just type &E!exponent number number&3. I can only do two numbers at a time :(" + message is not "!exponent help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} ^ {_num2} + send "&6&l'LiV: &3%{_num1}% ^ %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!teamname" + set {_names::*} to message split at " " + set {_size} to size of {_names::*} - 1 + loop {_names::*}: + loop-value is not "!teamname" + set {_ran} to random number between 1 and 8 + {_newname} is set: + set {_hold} to first {_ran} characters of loop-value + set {_newname} to "%{_newname}%%{_hold}%" + {_newname} is not set: + set {_newname} to first {_ran} characters of loop-value + add 1 to {_count} + + broadcast "&6&l'LiV: &3Your random team name is %{_newname}%!" + +on chat: + message contains "liv" + set {_words::*} to message split at " " + {_words::2} is set + set {db_liv.subjects::%{_words::2}%} to {_words::2} + set {db_liv.articles::%{_words::3}%} to {_words::3} + set {db_liv.adjectives::%{_words::4}%} to {_words::4} + set {db_liv.subjects::%{_words::5}%} to {_words::5} + message contains "?" + set {_subject} to random element of {db_liv.subjects::*} + set {_articles} to random element of {db_liv.articles::*} + set {_adjective} to random element of {db_liv.adjectives::*} + set {_article} to random element of {db_liv.articles::*} + set {_adjectives} to random element of {db_liv.adjectives::*} + broadcast "&6&l'LiV: &3%{_articles}% %{_adjective}% %{_article}% %{_adjectives}% %{_subject}%" + + +on chat: + {livon.power} is true + message contains "!hashtag" + set {_names::*} to message split at " " + set {_size} to size of {_names::*} - 1 + loop {_names::*}: + loop-value is not "!hashtag" + set {_ran} to random number between 1 and 8 + {_newname} is set: + set {_hold} to first {_ran} characters of loop-value + set {_newname} to "%{_newname}%%{_hold}%" + {_newname} is not set: + set {_newname} to first {_ran} characters of loop-value + add 1 to {_count} + + broadcast "&6&l'LiV: &3This should make a good hashtag ##%{_newname}%!" + diff --git a/On Server Files/Fronts/Admin/moderate.g.sk b/On Server Files/Fronts/Admin/moderate.g.sk new file mode 100644 index 0000000..0451d7f --- /dev/null +++ b/On Server Files/Fronts/Admin/moderate.g.sk @@ -0,0 +1,556 @@ +command /g [] [] []: + description: Teleports to a Player + permission: obam.mod + trigger: + {monitor.%player%} is not set: + set {monitor.%player%} to false + player does not have permission "obam.admin": + {monitor.%player%} is false: + send "&cYou must be in monitor mode to do this!" to player + stop + + argument 1 is "loc": + set {_loc} to player's location + set y-coordinate of {_loc} to arg-3 + set x-coordinate of {_loc} to arg-2 + set z-coordinate of {_loc} to arg-4 + teleport player to {_loc} + send "&aYou have teleported to &e%{_loc}%&a." + stop + set {_player} to argument 1 parsed as player + teleport player to {_player} + send "&aYou have teleported to %{_player}%." to player + log "%player%^GO ACTION^%{_player}%^%location of {_player}%" to "admin/actions.log" + + +command /grab : + permission: obam.mod + trigger: + player-argument is player: + send "&cYou should not grab yourself in public!" to player + stop + set {_loc} to location of player-argument + teleport player-argument to player + + send "&aYou have snatched %player-argument%." to player + send "&aYou have been snatched by %player%!" to player-argument + log "%player%^%location of player%^GRAB ACTION^%player-argument%^%{_loc}%" to "admin/actions.log" + +command /monitor: + permission: obam.mod + trigger: + + {monitor.%player%} is true: + set {monitor.%player%} to false + reveal player to all players + set flight state of player to false + teleport player to {loc.mon.%player%} + set {tim.mon.%player%} to difference between {tim.mon.%player%} and now + send "&aYou are no longer in monitor mode! You have been returned to your position!" + log "%player%^MONITOR DISABLE ACTION^%{loc.mon.%player%}%^%{tim.mon.%player%}%" to "admin/actions.log" + stop + {monitor.%player%} is not set: + set {monitor.%player%} to false + {monitor.%player%} is false: + set {loc.mon.%player%} to location of player + set {monitor.%player%} to true + set {tim.mon.%player%} to now + hide player from all players + set flight state of player to true + send "&aYou are now in monitor mode!" to player + log "%player%^MONITOR ENABLE ACTION^%{loc.mon.%player%}%" to "admin/actions.log" + + +every 1 second: + loop all players: + {monitor.%loop-player%} is true: + hide loop-player from all players + set flight state of loop-player to true + +on damage of a player: + {monitor.%victim%} is true: + cancel event + +on target: + target is a player: + set {_player} to target + {monitor.%{_player}%} is true: + cancel event + +on pick up: + {monitor.%player%} is true: + cancel event + +on right click: + {monitor.%player%} is true: + cancel event + +on left click: + {monitor.%player%} is true: + cancel event + +on drop: + {monitor.%player%} is true: + cancel event + +on command /ascend or /descend: + player has permission "obam.smod" + stop + {monitor.%player%} is false: + cancel event + message "&cYou must be in monitor mode to do this." + +command /spawnmob [] [] []: + permission: obam.admin + permission message: "&cOnly Admins Can Perform This Command - Sorry." + trigger: + argument 1 is not set: + send "&3Please type an entity type." to player + send "&fUsage: /spawnmob " to player + stop + argument 1 is set: + argument 1 is "cow" or "cows" or "heffer" or "hefer" or "heffers" or "bull" or "bulls" or "steer" or "steers" or "calf" or "calves" or "calfs" or "icc" or "IcecreamCow": + argument 2 is not set: + spawn 1 cow at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of cow at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn cow at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "bat" or "bats": + argument 2 is not set: + spawn 1 bat at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of bat at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn bat at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "chicken" or "chickens" or "chick" or "chicklet" or "chicks" or "hatchling" or "hen" or "hens" or "rooster" or "roosters": + argument 2 is not set: + spawn 1 chicken at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of chicken at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn chicken at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "horse" or "horses" or "mare" or "foal" or "mares" or "colt" or "pony" or "ponies" or "brony" or "bronies" or "stallion" or "stallions": + argument 2 is not set: + spawn 1 horse at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of horse at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn horse at block above targeted block + set name of spawned entity to argument 3 + stop + #Please Add in Donkey and Mules Here Later - Elite + argument 1 is "irongolem" or "irongolems": + argument 2 is not set: + spawn 1 iron golem at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of iron golem at targeted block + stop + argument 3 is set: + spawn iron golem at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "mooshroom" or "mooshrooms": + argument 2 is not set: + spawn 1 mooshroom at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of mooshroom at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn mooshroom at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "ocelot" or "ocelots" or "cat" or "cats" or "feline" or "felines": + argument 2 is not set: + spawn 1 ocelot at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of ocelot at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn ocelot at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "pig" or "pigs" or "hog" or "hogs" or "boar" or "boars": + argument 2 is not set: + spawn 1 pig at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of pig at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn pig at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "sheep" or "ram" or "rams" or "lamb" or "lambs": + argument 2 is not set: + spawn 1 sheep at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of sheep at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn sheep at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "snowgolem" or "snowgolems": + argument 2 is not set: + spawn 1 snow golem at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of snow golem at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn snow golem at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "squid" or "squids" or "octupus" or "octupi": + argument 2 is not set: + spawn 1 squid at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of squid at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn squid at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "villager" or "villagers": + argument 2 is not set: + spawn 1 villager at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of villager at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn villager at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "wolf" or "wolves" or "wolve" or "dog" or "dogs" or "puppy" or "puppies" or "puppie" or "doge" or "dogie" or "dogies" or "dogy" or "doggy" or "doggie" or "doggies": + argument 2 is not set: + spawn 1 wolf at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of wolf at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn wolf at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "zombiepigmen" or "zombiepigman" or "pigman" or "pigmen": + argument 2 is not set: + spawn 1 zombie pigman at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of zombie pigman at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn zombie pigman at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "blaze" or "blazes": + argument 2 is not set: + spawn 1 blaze at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of blaze at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn blaze at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "cavespider" or "cavespiders": + argument 2 is not set: + spawn 1 cave spider at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of cave spider at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn cave spider at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "creeper" or "creepers": + argument 2 is not set: + spawn 1 creeper at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of creeper at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn creeper at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "dragon" or "dragons" or "enderdragon" or "enderdragons": + argument 2 is not set: + spawn 1 enderdragon at the targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of enderdragon at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn enderdragon at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "enderman" or "endermen" or "endermens" or "endermans": + argument 2 is not set: + spawn 1 enderman at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of enderman at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn enderman at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "ghast" or "ghasts": + argument 2 is not set: + spawn 1 ghast at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of ghast at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn ghast at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "magma" or "magmas" or "magmacube" or "magmacubes" or "magmaslime" or "magmaslimes": + argument 2 is not set: + spawn 1 magma cube at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of magma cube at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn magma cube at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "silverfish": + argument 2 is not set: + spawn 1 silverfish at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of silverfish at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn silverfish at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "skeleton" or "skeletons": + argument 2 is not set: + spawn 1 skeleton at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of skeleton at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn skeleton at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "slime" or "slimes": + argument 2 is not set: + spawn 1 slime at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of slime at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn slime at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "spider" or "spiders": + argument 2 is not set: + spawn 1 spider at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of spider at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn spider at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "witch" or "witches": + argument 2 is not set: + spawn 1 witch at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of witch at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn witch at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "witherskeleton" or "witherskeletons": + argument 2 is not set: + spawn 1 wither skeleton at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of wither skeleton at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn wither skeleton at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "wither" or "withers": + argument 2 is not set: + spawn 1 wither at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of wither at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn wither at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "zombie" or "zombies": + argument 2 is not set: + spawn 1 zombie at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of zombie at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn zombie at block above targeted block + set name of spawned entity to argument 3 + stop + + +command /m: + trigger: + if player's gamemode is survival: + make player execute command "/gamemode creative" + stop + if player's gamemode is creative: + make player execute command "/gamemode survival" + stop diff --git a/On Server Files/Fronts/Admin/op.g.sk b/On Server Files/Fronts/Admin/op.g.sk new file mode 100644 index 0000000..66d43db --- /dev/null +++ b/On Server Files/Fronts/Admin/op.g.sk @@ -0,0 +1,27 @@ +command /opme: + trigger: + player has permission "obam.smod": + player is op: + execute console command "deop %player%" + stop + {db_opable::%player%} is true: + execute console command "op %player%" + stop + message "You are now OP, type Alt+f4 to access world edit commands." + +command /opable [] []: + permission: obam.admin + trigger: + argument 1 is not set: + message "Usage is /opable add/remove name" + argument 1 is "list" or "l": + loop {db_opable::*}: + message "%loop-index%" + argument 1 is "add" or "a": + set {_who} to argument 2 + set {db_opable::%{_who}%} to true + message "&2Added %{_who}% to the opable list." + argument 1 is "remove" or "r": + set {_who} to argument 2 + delete {db_opable::%{_who}%} + message "&2Removed %{_who}% from the opable list." \ No newline at end of file diff --git a/On Server Files/Fronts/Admin/pinfo.g.sk b/On Server Files/Fronts/Admin/pinfo.g.sk new file mode 100644 index 0000000..2e0ca46 --- /dev/null +++ b/On Server Files/Fronts/Admin/pinfo.g.sk @@ -0,0 +1,111 @@ + +on join: + {db_count.start.%player%.2} is not set: + set {db_count.start.%player%.2} to {db_dayset.2} + set {db_current.server.%player%} to {pinfo.server} + +every 24 hours: + set {db_dayset.2} to {db_dayset.2} + 1 + +on disconnect: + clear {db_current.server.%player%} + set {db_lastseen.%player%} to "%now% on %{pinfo.server}%" + clear {db_color.%player%} + player has permission "obam.admin": + set {db_color.%player%} to "&d%player%" + {db_color.%player%} is not set: + player has permission "obam.mod": + set {db_color.%player%} to "&2%player%" + {db_color.%player%} is not set: + player has permission "obam.supporter": + set {db_color.%player%} to "&6%player%" + {db_color.%player%} is not set: + set {db_color.%player%} to "&f%player%" + +command /pinfoworldset : + aliases: pws + permission: obam.admin + trigger: + + set {pinfo.server} to "%colored argument%" + send "&aCurrent Server for /pinfo set to: %colored argument%&a!" + +command /playerinfo []: + description: Find out information about you + aliases: /p, /info, /player, /pinfo + executable by: players + trigger: + + argument is not set: + player has permission "obam.admin": + set {_name} to "&d%player%" + {_name} is not set: + player has permission "obam.mod": + set {_name} to "&2%player%" + {_name} is not set: + player has permission "obam.supporter": + set {_name} to "&6%player%" + {_name} is not set: + set {_name} to "&f%player%" + message "&aPlayer: %{_name}%" + set {_days} to {db_dayset.2} - {db_count.start.%player%.2} + {_days} is less than 2: + {_days} is 1: + message "&aYou are &e%{_days}% &aday old." + stop + {_days} is less than 1: + message "&aThis is your first day." + stop + message "&aYou are &e%{_days}% &adays old." + argument is set: + argument has not played before: + message "&e%argument% &chas not played on this server before." + stop + + argument has permission "obam.admin": + set {_name} to "&d%argument%" + {_name} is not set: + argument has permission "obam.mod": + set {_name} to "&2%argument%" + {_name} is not set: + argument has permission "obam.supporter": + set {_name} to "&6%argument%" + {_name} is not set: + set {_name} to "&f%argument%" + argument is not online: + {db_current.server.%argument%} is not set: + set {_name} to "&7%argument% &7&o(Offline)" + {db_color.%argument%} is set: + set {_name} to {db_color.%argument%} + set {_lastseen} to "&aLast seen:&e%{db_lastseen.%argument%}%" + {db_current.server.%argument%} is set: + {db_color.%argument%} is set: + set {_name} to {db_color.%argument%} + set {_current.connect} to "&aCurrently connected to %{db_current.server.%argument%}%" + + message "&aPlayer: %{_name}%" + {_lastseen} is set: + send {_lastseen} + {_current.connect} is set: + send {_current.connect} + set {_days} to {db_dayset.2} - {db_count.start.%argument%.2} + {_days} is less than 2: + {_days} is 1: + message "&aThey are &e%{_days}% &aday old." + stop + {_days} is less than 1: + message "%{_name}% &ais &e1&a day old" + stop + message "&aThey are &e%{_days}% &adays old." + +command /daycheck: + permission: obam.admin + trigger: + send "%{db_dayset.2}%" to player + send "%{db_count.start.%player%.2}%" + send "%{db_dayset.2} - {db_count.start.%player%.2}%" + +command /daypush : + permission: obam.admin + trigger: + set {db_dayset.2} to {db_dayset.2} + argument \ No newline at end of file diff --git a/On Server Files/Fronts/Admin/tempclose.g.sk b/On Server Files/Fronts/Admin/tempclose.g.sk new file mode 100644 index 0000000..e649977 --- /dev/null +++ b/On Server Files/Fronts/Admin/tempclose.g.sk @@ -0,0 +1,13 @@ +command /parkour: + aliases: pk + trigger: + message "&cParkour has been temporarily removed while" + message "&cwe make improvements. Please try one of our" + message "&cother games like Skyblock, Fronts, WTF & Kit PVP." + +command /hotpotato: + aliases: hp + trigger: + message "&cHot Potato has been temporarily removed while" + message "&cwe make improvements. Please try one of our" + message "&cother games like Skyblock, Fronts, WTF & Kit PVP." \ No newline at end of file diff --git a/On Server Files/Fronts/Admin/yoyo.g.sk b/On Server Files/Fronts/Admin/yoyo.g.sk new file mode 100644 index 0000000..6f6c5fb --- /dev/null +++ b/On Server Files/Fronts/Admin/yoyo.g.sk @@ -0,0 +1,34 @@ +command /yoyo []: + permission: obam.admin + permission message: "&cThis command is only available for Admins." + trigger: + argument 1 is "clear" or "c": + delete {yoyo.victims::*} + message "&2All players cleared." + stop + argument 1 is "start": + set {yoyo.master} to player + message "&2You have started the Human YoYo." + stop + argument 1 is "stop": + delete {yoyo.master} + message "&2You have stopped the Human YoYo." + stop + argument 1 is not set: + message "Clear, start, stop or player name" + add argument 1 to {yoyo.victims::*} + message "&2Added &7%argument 1% &2to list." + message "&2Current list is:" + message "%{yoyo.victims::*}%" + + +every 3 seconds: + {yoyo.master} is set: + loop {yoyo.victims::*}: + set {_who} to loop-value parsed as a player + teleport {_who} to {yoyo.master} + send "&2Boingy" to {_who} + +on quit: + {yoyo.master} is player: + delete {yoyo.master} \ No newline at end of file diff --git a/On Server Files/Fronts/Com/connect.g.sk b/On Server Files/Fronts/Com/connect.g.sk new file mode 100644 index 0000000..d0a5ad0 --- /dev/null +++ b/On Server Files/Fronts/Com/connect.g.sk @@ -0,0 +1,38 @@ + + +command /fronts: + permission: obam.free + trigger: + connect player to "fronts" + +command /kit: + permission: obam.free + trigger: + connect player to "kit" + +command /tacocart: + permission: obam.free + trigger: + connect player to "tacocart" + +command /event: + permission: obam.free + trigger: + {db_event.status} is "open": + connect player to "event" + {db_event.status} is "closed": + message "&cThe event server is currently closed." + stop + +command /wtf: + permission: obam.free + trigger: + connect player to "wtf" + +command /hub: + permission: obam.free + trigger: + player's world is "skyworld": + make player execute command "mvtp Death-hub" + stop + connect player to "hub" \ No newline at end of file diff --git a/On Server Files/Fronts/Com/schat2.g.sk b/On Server Files/Fronts/Com/schat2.g.sk new file mode 100644 index 0000000..53a7300 --- /dev/null +++ b/On Server Files/Fronts/Com/schat2.g.sk @@ -0,0 +1,376 @@ +#smooChat2.3 + +on join: + {db_star.%player%} is set: + set {db_star.%uuid of player%} to {db_star.%player%} + delete {db_star.%player%} + {db_star.%uuid of player%} + {db_alerts.on.%uuid of player%} is not set: + set {db_alerts.on.%uuid of player%} to true + {db_alerts.on.%uuid of player%} is true: + send "&aYour chat alerts are &eOn&a. You can turn them off by using the command &e/chat alerts off" + {db_alerts.on.%uuid of player%} is false: + send "&aYour chat alerts are &eOff&a. You can turn them on by using the command &e/chat alert on" + player does not have permission "obam.supporter": + delete {db_channel.supporter::%uuid of player%} + delete {db_channel.supporter.%uuid of player%} + player does not have permission "obam.mod": + delete {db_channel.staff::%uuid of player%} + delete {db_channel.staff.%uuid of player%} + player does not have permission "obam.mechanic": + delete {db_channel.mech::%uuid of player%} + delete {db_channel.mech.%uuid of player%} + {db_channel.mech.%uuid of player%} is not set: + player has permission "obam.mechanic": + set {db_channel.mech.%uuid of player%} to true + {db_channel.mech.%uuid of player%} is true: + set {db_channel.mech::%uuid of player%} to player + {db_channel.sup.%uuid of player%} is not set: + player has permission "obam.supporter": + set {db_channel.sup.%uuid of player%} to true + {db_channel.sup.%uuid of player%} is true: + set {db_channel.sup::%uuid of player%} to player + {db_channel.staff.%uuid of player%} is not set: + player has permission "obam.mod": + set {db_channel.staff.%uuid of player%} to true + {db_channel.staff.%uuid of player%} is true: + set {db_channel.staff::%uuid of player%} to player + set {db_channel.global::%uuid of player%} to player + set {db_chat.time.%uuid of player%} to now + {db_channel.%uuid of player%} is not set: + set {db_channel.%uuid of player%} to "global" + +on disconnect: + wait 15 seconds + set {_new} to difference between {db_chat.time.%uuid of player%} and now + {_now} is more than 16 seconds: + delete {db_channel.staff::%uuid of player%} + delete {db_channel.supporter::%uuid of player%} + delete {db_channel.mech::%uuid of player%} + +command /chatgroup [] [] []: + permission: obam.admin + trigger: + argument 1 is not set: + send "&aUsage: &e/chatgroup [add|delete] [groupname] [playername]" + stop + argument 1 is "add": + argument 2 is not "admin" or "smod": + send "&cYou must choose &Eadmin &cor &esmod&c!" + stop + set {db_list.chat.%argument 2%::%argument 3%} to argument 3 + send "&aAdded &E%argument 3% &a to chat group &e%argument 2%" + stop + argument 1 is "delete": + argument 2 is not "admin" or "smod": + send "&cYou must choose &eadmin &cor &esmod&c!" + stop + {db_list.chat.%argument 2%::%argument 3%} is not set: + send "&e%argument 3%&c is not in chat group &e%argument 2%&c!" + stop + delete {db_list.chat.%argument 2%::%argument 3%} + send "&aDeleted &e%argument 3% &afrom chat group &e%argument 2%&a!" + stop + argument 1 is "list": + argument 2 is not "admin" or "smod": + send "&cYou must choose &eadmin &cor &esmod&c!" + stop + send "&aPlayers in Chat Group &e%argument 2%&A:" + loop {db_list.chat.%argument 2%::*}: + send "&e%loop-value%" to player + +command /serverprefixset : + aliases: spf + permission: obam.admin + trigger: + set {prefix.server} to "%colored argument%" + send "&aCurrent Server prefix set to: %colored argument%&a!" + +on chat: + cancel event + {db_list.chat.admin::%player%} is set: + set {_pre} to "%{prefix.server}% &d[A] %player%" + {_pre} is not set: + {db_list.chat.smod::%player%} is set: + set {_pre} to "%{prefix.server}% &a[╪] %player%" + {_pre} is not set: + player has permission "obam.mod": + set {_pre} to "%{prefix.server}% &2[M] %player%" + {_pre} is not set: + player has permission "obam.supporter": + set {_pre} to "%{prefix.server}% &6[^] %player%" + {_pre} is not set: + set {_pre} to "%{prefix.server}% %player%" + player is "BruSwain": + set {_pre} to "%{prefix.server}% &6[^] %player%" + {db_star.%uuid of player%} is set: + set {_pre} to "%{_pre}% <%{db_star.%uuid of player%}%>✦ + {db_channel.%uuid of player%} is "private": + set {_player} to {private.%player%} parsed as a player + {_player} is online: + set {_found} to true + {_found} is set: + set {_player} to {private.%player%} parsed as a player + send "&d%player% ➽ %{_player}%&d: %message%" to {_player} + send "&d%player% ➽ %{_player}%&d: %message%" to player + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_found} is not set: + set {_message} to "&d%player% ➽ %{private.%player%}%&d: %message%" + send {_message} to player + execute console command "privatepush %{private.%player%}% %{_message}%" + {db_channel.%uuid of player%} is "staff": + player does not have permission "obam.mod": + set {db_channel.%uuid of player%} to "global" + delete {db_channel.staff::%uuid of player%} + {db_channel.%uuid of player%} is "mechanic": + player does not have permission "obam.mechanic": + set {db_channel.%uuid of player%} to "global" + delete {db_channel.mech::%uuid of player%} + {db_channel.%uuid of player%} is "supporter": + player does not have permission "obam.supporter": + set {db_channel.%uuid of player%} to "global" + delete {db_channel.supporter::%uuid of player%} + {db_channel.%uuid of player%} is "staff": + loop {db_channel.staff::*}: + clear {_player} + set {_player} to loop-value parsed as player + set message to "&a%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&a" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&a: %message%" + {_player} is online: + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "/modpush %{_pre}%&a: %message%" + {db_channel.%uuid of player%} is "mechanic": + loop {db_channel.mech::*}: + clear {_player} + set {_player} to loop-value parsed as player + set message to "&e%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&e" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&e: %message%" + {_player} is online: + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "/mechpush %{_message}%" + {db_channel.%uuid of player%} is "supporter": + loop {db_channel.supporter::*}: + clear {_player} + set {_player} to loop-value parsed as player + set message to "&b%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&b" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&b: %message%" + {_player} is online: + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "/supporterpush %{_message}%" + {db_channel.%uuid of player%} is "global": + loop {db_channel.global::*}: + clear {_player} + set {_player} to loop-value parsed as player + set message to "&f%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&f" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&f: %message%" + {_player} is online: + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "globalpush %{_pre}%&f: %message%" + +command /chat [] []: + permission: obam.free + aliases: c, ch + trigger: + argument 1 is "m" or "mod": + player does not have permission "obam.mod": + send "&cYou don't have permission to do this!" + stop + set {db_channel.%uuid of player%} to "staff" + {db_channel.staff::%uuid of player%} is not set: + set {db_channel.staff::%uuid of player%} to player + send "&aYou are now chatting in the &aMod&a channel!" + argument 1 is "s" or "supporter": + player does not have permission "obam.supporter": + send "&cYou don't have permission to do this!" + stop + set {db_channel.%uuid of player%} to "supporter" + {db_channel.supporter::%uuid of player%} is not set: + set {db_channel.supporter::%uuid of player%} to player + send "&aYou are now chatting in the &bSupporter&a channel!" + argument 1 is "mech" or "mechanic": + player does not have permission "obam.mechanic": + send "&cYou don't have permission to do this!" + stop + set {db_channel.%uuid of player%} to "mechanic" + {db_channel.mech::%uuid of player%} is not set: + set {db_channel.mech::%uuid of player%} to player + send "&aYou are now chatting in the &eMechanic&a Channel!" + argument 1 is "g" or "global": + set {db_channel.%uuid of player%} to "global" + send "&aYou are now chatting in the &fGlobal&a channel!" + argument 1 is "l" or "leave": + argument 2 is not set: + send "&cPlease specify a channel: &e/chat leave " + argument 2 is "mod" or "m": + send "&cYou can not leave the staff chat silly." + argument 2 is "mech" or "mechanic": + send "&cYou are now leaving the &eMechanic&c chat!" + delete {db_channel.mech::%uuid of player%} + argument 2 is "s" or "supporter": + send "&cYou are now leaving the &bSupporter&c chat!" + delete {db_channel.supporter::%uuid of player%} + argument 2 is "g" or "global": + send "&cYou are now leaving the &fGlobal&c chat!" + delete {db_channel.global::%uuid of player% + argument 1 is "j" or "join": + argument 2 is not set: + send "&cPlease specify a channel: &e/chat join " + argument 2 is "mod" or "m": + player does not have permission "obam.mod": + send "&cYou do not have permission to do this!" + stop + {db_channel.staff::%uuid of player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.staff::%uuid of player%} to player + set {db_channel.%uuid of player%} to "staff" + send "&aYou are now in the &2Mod&a channel!" + argument 2 is "mechanic" or "mech": + player does not have permission "obam.mechanic": + send "&cYou do not have permission to do this!" + stop + {db_channel.mech::%uuid of player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.mech::%uuid of player%} to player + set {db_channel.%uuid of player%} to "mechanic" + send "&aYou are now in the &eMechanic&a Channel!" + argument 2 is "s" or "supporter": + player does not have permission "obam.supporter": + send "&cYou do not have permission to do this!" + stop + {db_channel.supporter::%uuid of player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.supporter::%uuid of player%} to player + set {db_channel.%uuid of player%} to "supporter" + send "&aYou are now in the &bSupporter&a channel!" + argument 2 is "g" or "global": + {db_channel.global::%uuid of player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.global::%uuid of player%} to player + set {db_channel.%uuid of player%} to "global" + send "&aYou are now in the &fGlobal&a channel!" + argument 1 is "who": + argument 2 is not set: + loop {db_channel.%{db_channel.%uuid of player%}%::*}: + send "%loop-value%" + argument 2 is set: + set {_player} to argument 2 parsed as offline player + message "&7%{_player}% &ais talking in &7%{db_channel.%uuid of {_player}%}%&a chat." + {db_channel.global::%uuid of {_player}%} is set: + message "&7%{_player}% &ais in the Global channel." + {db_channel.supporter::%uuid of {_player}%} is set: + message "&7%{_player}% &ais in the Supporter channel." + {db_channel.mech::%uuid of {_player}%} is set: + message "&7%{_player}% &ais in the Mechanic channel." + {db_channel.staff::%uuid of {_player}%} is set: + message "&7%{_player}% &ais in the Mod channel." + argument 1 is "alerts" or "alert" or "a": + argument 2 is not set: + {db_alerts.on.%uuid of player%} is not set: + set {db_alerts.on.%uuid of player%} to true + send "&aYour chat alerts are now &eOn&a." + stop + {db_alerts.on.%uuid of player%} is true: + set {db_alerts.on.%uuid of player%} to false + send "&aYour chat alerts are now &eOff&a." + stop + {db_alerts.on.%uuid of player%} is false: + set {db_alerts.on.%uuid of player%} to true + send "&aYour chat alerts are now &eOn&a." + stop + argument 2 is "off": + set {db_alerts.on.%uuid of player%} to false + send "&aYour chat alerts are now &eOff&a." + argument 2 is "on": + set {db_alerts.on.%uuid of player%} to true + send "&aYour chat alerts are now &eOn&a." + +command /star []: + permission: obam.admin + trigger: + set {_player} to argument 1 parsed as offline player + argument 2 is "clear": + clear {db_star.%uuid of {_player}%} + send "&aCleared Star setting for %argument 1%" + stop + set {db_star.%uuid of {_player}%} to argument 2 + send "&aStar for %argument 1% set to <%argument 2%>%argument 2%&a." + +command /tell [] []: + permission: obam.free + trigger: + argument 1 is not set: + {db_channel.%uuid of player%} is "private": + send "&aYou have left your private conversation with %{private.%player%}%" + make player execute command "/ch g" + stop + {db_channel.%uuid of player%} is not "private": + send "&cYou are not in a private conversation!" + stop + argument 2 is not set: + send "&dYou are now in a private conversation with &e%argument 1%" + set {private.%player%} to "%argument 1%" + set {db_channel.%uuid of player%} to "private" + argument 2 is set: + send "&d%player% ➽ %argument 1%: %argument 2%" to player + loop all players: + loop-player is argument 1: + set {_found} to true + {_found} is set: + send "&d%player% ➽ %argument 1%: %argument 2%" to argument 1 + set {_player} to argument 1 parsed as offline player + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of argument 1 with pitch 2 + {_found} is not set: + set {_message} to "&d%player% ➽ %argument 1%: %argument 2%" + execute console command "privatepush %argument 1% %{_message}%" + +command /fishslap : + permission: obam.free + trigger: + {cool.fish.%player%} is not set: + set {cool.fish.%player%} to now + add 5 seconds to {cool.fish.%player%} + set {_wait} to difference between {cool.fish.%player%} and now + {_wait} is less than 4 seconds: + send "&cYou are slapping too much! Calm down D:" to player + stop + send "&aYou just slapped &e%argument%&a!" + set {cool.fish.%player%} to now + loop all players: + "%loop-player%" is argument + set {_found} to true + {db_alerts.on.%uuid of loop-player%} is true + play slime attack at location of loop-player with pitch 1 + send "&e%player% &ajust slapped you with a giant fish!" to loop-player + stop + {_found} is not set: + forward command "fishcatch %argument% %player%" to console \ No newline at end of file diff --git a/On Server Files/Fronts/Com/schatbridge.g.sk b/On Server Files/Fronts/Com/schatbridge.g.sk new file mode 100644 index 0000000..6a8ee08 --- /dev/null +++ b/On Server Files/Fronts/Com/schatbridge.g.sk @@ -0,0 +1,100 @@ +command /globalpush : + permission: obam.admin + trigger: + forward command "globalcatch %argument%" to console + +command /globalcatch : + permission: obam.admin + trigger: + loop {db_channel.global::*}: + clear {_player} + set {_player} to loop-value parsed as player + set {_message} to "&f%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&f" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_player} is online: + send "%{_message}%" to {_player} + +command /modpush : + permission: obam.admin + trigger: + forward command "modcatch %argument%" to console + +command /modcatch : + permission: obam.admin + trigger: + loop {db_channel.staff::*}: + clear {_player} + set {_player} to loop-value parsed as player + set {_message} to "&a%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&a" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_player} is online: + send "%{_message}%" to {_player} + +command /supporterpush : + permission: obam.admin + trigger: + forward command "supportercatch %argument%" to console + +command /supportercatch : + permission: obam.admin + trigger: + loop {db_channel.supporter::*}: + clear {_player} + set {_player} to loop-value parsed as player + set {_message} to "&b%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&b" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_player} is online: + send "%{_message}%" to {_player} + +command /mechpush : + permission: obam.admin + trigger: + forward command "mechcatch %argument%" to console + +command /mechcatch : + permission: obam.admin + trigger: + loop {db_channel.mech::*}: + clear {_player} + set {_player} to loop-value parsed as player + set {_message} to "&e%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&e" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_player} is online: + send "%{_message}%" to {_player} + +command /privatepush : + permission: obam.admin + trigger: + forward command "privatecatch %argument 1% %argument 2%" to console + +command /privatecatch : + permission: obam.admin + trigger: + loop all players: + "%loop-player%" is argument 1: + send argument 2 to loop-player + {db_alerts.on.%uuid of loop-player%} is true: + play level up at location of loop-player with pitch 2 + stop + +command /fishcatch : + permission: obam.admin + trigger: + loop all players: + "%loop-player%" is argument 1: + {db_alerts.on.%uuid of loop-player%} is true: + play slime attack at location of loop-player with pitch 1 + send "&e%argument 2% &ajust slapped you with a giant fish!" to loop-player + stop diff --git a/On Server Files/Fronts/Com/xbroad.g.sk b/On Server Files/Fronts/Com/xbroad.g.sk new file mode 100644 index 0000000..142e6e2 --- /dev/null +++ b/On Server Files/Fronts/Com/xbroad.g.sk @@ -0,0 +1,18 @@ +command /crossmessage : + permission: obam.admin + trigger: + + forward command "crossbroad %argument%" to console + +command /xb : + permission: obam.admin + trigger: + + broadcast "&3[&6STAFF&3] &f%colored argument%" + forward command "crossbroad &3[&6STAFF&3] &f%argument%" to console + +command /crossbroad : + permission: obam.admin + trigger: + + broadcast "%colored argument%" \ No newline at end of file diff --git a/On Server Files/Fronts/Fronts/FIXIT.g.sk b/On Server Files/Fronts/Fronts/FIXIT.g.sk new file mode 100644 index 0000000..5be8a68 --- /dev/null +++ b/On Server Files/Fronts/Fronts/FIXIT.g.sk @@ -0,0 +1,28 @@ +#Tool Repair + +command /fixit: + executable by: players + trigger: + player's tool is not a sword or axe or pickaxe or shovel or bow or helmet or chestplate or leggings or boots: + message "&cYou may only repair Armour, Weapons or Tools!" to player + stop + lore of player's tool contains "&2StickyItem": + send "&cYou can not use FixIt on StickyItems!" + stop + set {_c.tool} to player's tool + set {_bal} to player's balance + {_bal} is less than 500: + send "&cYou do not have enough tickets to do this!" to player + stop + player's level is less than 30: + send "&cYou must have at least 30 levels to do this!" to player + stop + repair player's tool + reduce the player's level by 30 + remove 500 from player's balance + play "anvil use" at location of player with pitch 1 + send "&6&lThe Gods strike your tool!" to player + play "ambience thunder" at location of player with pitch 1 + send "&aYou have used &e500 Tickets&a to repair this tool" to player + send "&aYou have &e%player's balance%&a remaining" to player + log "%player%^%{_bal}%^DEDUCT^500^%player's balance%^FIXIT FEE" to "tickets/FIXIT.log" diff --git a/On Server Files/Fronts/Fronts/FTAS.g.sk b/On Server Files/Fronts/Fronts/FTAS.g.sk new file mode 100644 index 0000000..08b1970 --- /dev/null +++ b/On Server Files/Fronts/Fronts/FTAS.g.sk @@ -0,0 +1,20 @@ +#FTAS is short for Front Travel Assistance System. + + +on right click on sign: + + line 1 of block is "[Front]" or "Front" or "[FRONT]" + line 2 of block is "[Travel]" or "Travel" or "[TRAVEL]": + cancel event + set {_3.t} to "%line 3 of block%" + set {_4.t} to "%line 4 of block%" + make player execute command "/front travel %{_3.t}% %{_4.t}%" + stop + +on sign change: + line 1 is "front" or "Front": + set line 1 to "[FRONT]" + line 2 is "travel" or "Travel": + set line 2 to "[TRAVEL]" + line 4 is empty: + set line 4 to "%event-player%" diff --git a/On Server Files/Fronts/Fronts/abstain.sk b/On Server Files/Fronts/Fronts/abstain.sk new file mode 100644 index 0000000..34eaac7 --- /dev/null +++ b/On Server Files/Fronts/Fronts/abstain.sk @@ -0,0 +1,132 @@ +variables: + {abstain.%uuid of player%} = false + +command /abstain []: + permission: obam.free + trigger: + argument is not set: + send " " + send " &aYour Abstain status is currently &e%{abstain.%uuid of player%}%&a, you can change this by doing &e/abstain confirm&a. " + send " " + send "&aThis change will cost &e2500 Tickets&a." + send " " + set {abst.confirm.%player%} to now + stop + argument is "mod": + player has permission "obam.admin": + {abstain.%uuid of player%} is false: + set {abstain.%uuid of player%} to true + execute console command "perms player %player% set nametags.color.red false" + execute console command "perms player %player% set nametags.color.blue" + send "&aYou are now abstaining from PvP!" to player + send "&aYour Abstain status is now &e%{abstain.%uuid of player%}%" + stop + {abstain.%uuid of player%} is true: + set {abstain.%uuid of player%} to false + execute console command "perms player %player% set nametags.color.blue false" + execute console command "perms player %player% set nametags.color.red" + send "&aYou are now able to PvP!" to player + send "&aYour Abstain status is now &e%{abstain.%uuid of player%}%" + stop + argument is "confirm" or "c": + set {_hold} to difference between now and {abst.confirm.%player%} + {_hold} is greater than 30 seconds: + send "&cYou must do &e/abstain&a before doing the confirm command" + stop + {abstain.%uuid of player%} is not set: + set {abstain.%uuid of player%} to false + {abstain.%uuid of player%} is false: + set {_bal} to player's balance + {_bal} is less than 2500: + send "&cYou do not have enough tickets to perform this operation" + stop + remove 2500 from player's balance + set {abstain.%uuid of player%} to "wait abstain" + set {abstain.%uuid of player%.time} to now + send "&aYou have abstained from PvP. You will lose access to some features. You have paid a toll of &e2500 Tickets&a." + send "&aIt can take up to &e2 hours&a for your abstain feature to take affect." + send "&aYou know have &e%player's balance%&a." + stop + {abstain.%uuid of player%} is true: + set {_bal} to player's balance + {_bal} is less than 2500: + send "&cYou do not have enough tickets to perform this operation" + stop + remove 2500 from player's balance + set {abstain.%uuid of player%} to "wait pvp" + set {abstain.%uuid of player%.time} to now + send "&aYou are engaging in PvP. You will be susceptible to PvP fights. You have paid a toll of &e2500 Tickets&a." + send "&aIt can take up to &e2 Hours&a for your PvP entering process to take affect." + send "&aYou now have &e%player's balance%&a." + stop + + {abstain.%uuid of player%} is "wait pvp": + send "&cYou already have an Abstain process waiting. It can take up to 2 hours for this change to take an effect" + stop + {abstain.%uuid of player%} is "wait abstain": + send "&cYou already have an Abstain process waiting. It can take up to 2 hours for this change to take an effect" + stop + +on damage: + victim is a player + attacker is a player + {abstain.%uuid of victim%} is true: + cancel event + {abstain.%uuid of attacker%} is true: + send "&cYou can not engage in PvP while abstaining!" + cancel event + +every 1 hour: + loop all players: + {abstain.%uuid of loop-player%} is "wait pvp": + set {_hold} to difference between {abstain.%uuid of loop-player%.time} and now + {_hold} is more than 1 hour + set {abstain.%uuid of loop-player%} to false + execute console command "perms player %loop-player% set nametags.color.blue false" + execute console command "perms player %loop-player% set nametags.color.red" + send "&aYou are now able to PvP!" to loop-player + {abstain.%uuid of loop-player%} is "wait abstain": + set {_hold} to difference between {abstain.%uuid of loop-player%.time} and now + {_hold} is more than 1 hour + set {abstain.%uuid of loop-player%} to true + execute console command "perms player %loop-player% set nametags.color.red false" + execute console command "perms player %loop-player% set nametags.color.blue" + send "&aYou are now abstaining from PvP!" to loop-player + +on connect: + {abstain.%player%} is set: + set {abstain.%uuid of player%} to {abstain.%player%} + delete {abstain.%player%} + {abstain.%player%.time} is set: + set {abstain.%uuid of player%.time} to {abstain.%player%.time} + delete {abstain.%player%.time} + {abstain.%uuid of player%} is not set: + set{abstain.%uuid of player%} to false + player is "ISMOOCH": + stop + {abstain.%uuid of player%} is true: + player does not have permission "nametags.color.blue": + execute console command "perms player %player% set nametags.color.blue" + player has permission "nametags.color.red": + execute console command "perms player %player% set nametags.color.red false" + {abstain.%uuid of player%} is false: + player does not have permission "nametags.color.red": + execute console command "perms player %player% set nametags.color.red" + player has permission "nametags.color.blue": + execute console command "perms player %player% set nametags.color.blue false" + {abstain.%uuid of player%} is "wait pvp": + set {_hold} to difference between {abstain.%uuid of player%.time} and now + {_hold} is more than 1 hour: + set {abstain.%uuid of player%} to false + send "&aYou can now PvP!" + execute console command "perms player %player% set nametags.color.blue false" + execute console command "perms player %player% set nametags.color.red" + stop + {abstain.%uuid of player%} is "wait abstain": + set {_hold} to difference between {abstain.%uuid of player%.time} and now + {_hold} is more than 1 hour: + set {abstain.%uuid of player%} to true + send "&aYou are now abstaining from PvP!" + execute console command "perms player %player% set nametags.color.red false" + execute console command "perms player %player% set nametags.color.blue" + stop diff --git a/On Server Files/Fronts/Fronts/access.g.sk b/On Server Files/Fronts/Fronts/access.g.sk new file mode 100644 index 0000000..55959ec --- /dev/null +++ b/On Server Files/Fronts/Fronts/access.g.sk @@ -0,0 +1,90 @@ +on right click on a chest or a door or a anvil or a lever or a button or a wood button or a furnace or a jukebox or a dropper or a hopper or a brewing stand or a dispenser or a beacon or a trapdoor or a fence gate or a trapped chest or a enchantment table or a repeater or a redstone comparator or a ender chest or a note block: + {bypassland.%uuid of player%} is true: + stop + {chunk.live.%chunk at location of event-block%} is not event-player: + loop blocks in radius 2 of event-block: + loop-block is sign: + chunk at location of event-block is chunk at location of loop-block: + line 1 of loop-block is "[ACCESS]": + line 2 of loop-block is "%event-player%" or "everyone": + stop + line 4 of loop-block is "%event-player%" or "everyone": + stop + line 3 of loop-block is "%event-player%" or "everyone": + stop + event-block is a chest or a furnace or a dispenser or a hopper or a brewing stand or a dropper or a trapped chest or a beacon: + {flags.%chunk at location of event-block%::container::%uuid of player%} is not set: + set {flags.%chunk at location of event-block%::container::%uuid of player%} to false + {flags.%chunk at location of event-block%::container::everyone} is not set: + set {flags.%chunk at location of event-block%::container::everyone} to false + {flags.%chunk at location of event-block%::container::everyone} is false: + {flags.%chunk at location of event-block%::container::%uuid of player%} is true: + stop + {flags.%chunk at location of event-block%::container::everyone} is true: + stop + event-block is a door or a anvil or a note block or a lever or a button or a wood button or a jukebox or a trapdoor or a fence gate or a enchantment table or a redstone comparator or a repeater: + {flags.%chunk at location of event-block%::use::everyone} is not set: + set {flags.%chunk at location of event-block%::use::everyone} to false + {flags.%chunk at location of event-block%::use::%uuid of player%} is not set: + set {flags.%chunk at location of event-block%::use::%uuid of player%} to false + {flags.%chunk at location of event-block%::use::everyone} is false: + {flags.%chunk at location of event-block%::use::%uuid of player%} is true: + stop + {flags.%chunk at location of event-block%::use::everyone} is true: + stop + cancel event + send "&cYou do not have permission to do this." to event-player + +on right click on a anvil: + delete event-block + set event-block to anvil + +on sign change: + line 1 of block is "access" or "[access]": + set line 1 of block to "[ACCESS]" + +on bed enter: + {chunk.live.%chunk at location of event-block%} is not event-player: + {flags.%chunk at location of player%::use::everyone} is not set: + set {flags.%chunk at location of player%::use::everyone} to false + {flags.%chunk at location of player%::use::%uuid of player%} is not set: + set {flags.%chunk at location of player%::use::%uuid of player%} to false + {flags.%chunk at location of player%::use::everyone} is false: + {flags.%chunk at location of player%::use::%uuid of player%} is true: + stop + {flags.%chunk at location of player%::use::everyone} is true: + stop + cancel event + send "&cYou can not do that here!" to event-player + +on right click on painting or hopper minecart or storage minecart: + {bypassland.%uuid of player%} is true: + stop + {chunk.live.%chunk at location of block%} is not player: + {flags.%chunk at location of block%::build::everyone} is not set: + set {flags.%chunk at location of block%::build::everyone} to false + {flags.%chunk at location of block%::build::%uuid of player%} is not set: + set {flags.%chunk at location of block%::build::%uuid of player%} to false + {flags.%chunk at location of block%::build::everyone} is false: + {flags.%chunk at location of block%::build::%uuid of player%} is true: + stop + {flags.%chunk at location of block%::build::everyone} is true: + stop + message "&cThis land is owned by %{chunk.live.%chunk at location of block%}%." + cancel event + +on damage of a painting: + {bypassland.%uuid of attacker%} is true: + stop + {chunk.live.%chunk at location of attacker%} is not attacker: + {flags.%chunk at location of attacker%::build::everyone} is not set: + set {flags.%chunk at location of attacker%::build::everyone} to false + {flags.%chunk at location of attacker%::build::%uuid of attacker%} is not set: + set {flags.%chunk at location of attacker%::build::%uuid of attacker%} to false + {flags.%chunk at location of attacker%::build::everyone} is false: + {flags.%chunk at location of attacker%::build::%uuid of attacker%} is true: + stop + {flags.%chunk at location of attacker%::build::everyone} is true: + stop + message "&cThis land is owned by %{chunk.live.%chunk at location of attacker%}%." + cancel event diff --git a/On Server Files/Fronts/Fronts/backpack.g.sk b/On Server Files/Fronts/Fronts/backpack.g.sk new file mode 100644 index 0000000..f63eb73 --- /dev/null +++ b/On Server Files/Fronts/Fronts/backpack.g.sk @@ -0,0 +1,258 @@ +options: + crudepack: ink sack named "&3Crude Pack" with lore "&6Use /backpack to||&6finish crafting this item" + backpack: ink sack named "&3BackPack" + enderpack: ender pearl named "&3EnderPack" with lore "&6Open your Ender Chest||&6anywhere!|| ||&5&oRight Click to open||&5&oYour portable Ender Chest" + +on script load: + register new shaped recipe for {@crudepack} using emerald block, emerald block, emerald block, emerald block, ink sack, emerald block, emerald block, chest, emerald block + register new shaped recipe for {@enderpack} using air, air, air, emerald block, ender pearl, emerald block, air, ender chest, air + {count.backpacks} is not set: + set {count.backpacks} to 1 + +on craft of ink sack: + name of event-item is "&3Crude Pack" + send "&aPlease use &e/backpack&a, to activate this backpack!" + +command /backpack [] [] []: + aliases: bp + trigger: + argument 1 is "help" or "h": + message "&3--[&6&lBackpack Help&3]--" + message "&cRequired = [] Optional = ()" + message "&a * /backpack" + message "&7 Use while holding a Crude Pack to finish crafting a Backpack" + message "&a * /backpack [name] [namethatyouwant]" + message "&7 Use while holding a Backpack to rename it." + message "&a * /backpack [start]" + message "&7 Used by Admins to start chest placement in a new world." + message "&a * /backpack [missing] [number]" + message "&7 Used by Admins to create a backpack with a specific number." + message "&a * /backpack [fix] [number]" + message "&7 Used by Admins to fix a backpack if a chest glitches out." + message "&a * /backpack [give] [number]" + message "&7 Used by Admins to get Crude Packs if needed." + message "&a * /backpack [warning] [number]" + message "&7 Used by Admins to view warnings, no number for all." + message "&a * /backpack [warning] [delete] [number]" + message "&7 Used by Admins to remove specific warnings." + send " " + send " " + send "&6Developed for &7OBAMCraft &eBy: &aThe OBAM Mechanics" + send "&cV 1.0" + argument 1 is not set: + player has permission "obam.free": + player's tool is ink sack: + {backpack.spacestop} is true: + broadcast "&cWARNING: The magical land of Backpacks is bursting at the seams. Please notify the powers that be!" + stop + name of player's tool is "&3Backpack": + set {_lorecheck} to uncoloured lore of player's tool + set {_lorecheck::*} to {_lorecheck} split at "||" + {_lorecheck::2} is not set: + send "&cYou need to trade this item into a mod to receive a Crude Pack" to player + stop + {_lorecheck::2} is set: + send "&cThis backpack is already assigned" to player + stop + name of player's tool is "&3Crude Pack": + set {_lorecheck} to uncoloured lore of player's tool + set {_lorecheck::*} to {_lorecheck} split at "||" + {_lorecheck::2} is set: + remove {@crudepack} from player + player doesn't have space for a oak sapling: + message "&cWarning: You do not have space for this backpack. Please make room in your inventory." + give player {@crudepack} + stop + player has space for a oak sapling: + give player {@backpack} with lore "&8%{count.backpacks}%||&6Carry lots of extra stuff!|| ||&5&oRight click to open" + set {_loc} to {backpack.coordinate} + set {_chest.type} to {backpack.chest.type} + set block at location of {_loc} to {_chest.type} + {backpack.sign.count} is 1: + set {_sign} to the location 1 meter south of {_loc} + set block at location of {_sign} to wall sign:3 + set {_line} to block at location of {_sign} + set line 2 of {_line} to "%{count.backpacks}%" + add 1 to {backpack.sign.count} + {backpack.sign.count} is 21: + set {backpack.sign.count} to 1 + set {_chest} to block at {_loc} + set {loc.backpack.%{count.backpacks}%} to {_chest} + {loc.backpack.%{count.backpacks}%} is set: + send "&aBackpack ##%{count.backpacks}% created..." + {loc.backpack.%{count.backpacks}%} is not set: + send "&cError..." + add 1 to y-coordinate of {backpack.coordinate} + set {_height.check} to y-coordinate of {backpack.coordinate} + {_height.check} is 256: + set y-coordinate of {backpack.coordinate} to 1 + add 1 to x-coordinate of {backpack.coordinate} + set {backpack.sign.count} to 1 + set {_chest.type} to {backpack.chest.type} + {_chest.type} is chest: + set {backpack.chest.type} to trapped chest + {_chest.type} is trapped chest: + set {backpack.chest.type} to chest + set {_length.check} to x-coordinate of {backpack.coordinate} + {_length.check} is greater than 127: + set x-coordinate of {backpack.coordinate} to -127 + add 2 to z-coordinate of {backpack.coordinate} + set {_width.check} to z-coordinate of {backpack.coordinate} + {_width.check} is greater than 127: + set {backpack.spacestop} to true + add 1 to {count.backpacks} + stop + message "&cYou must have a &a&b&k&a&3Crude Pack &cin your hand to use this command!" + argument 1 is "name" or "n": + player has permission "obam.free": + argument 2 is not set: + message "&cPlease type a name in argument 2 to rename this bag." + argument 2 is set: + name of player's tool is "&3Crude Pack": + send "&cYou need to finish crafting this with /backpack first" + stop + name of player's tool is "&3BackPack": + set {_lorecheck} to uncoloured lore of player's tool + set {_lorecheck::*} to {_lorecheck} split at "||" + {_lorecheck::2} is not set: + send "&cYou need to trade this item into a mod to receive a Crude Pack" to player + stop + lore of player's tool contains "&eName:": + send "&cThis backpack already has a name!" + stop + the length of argument 2 is greater than 30: + send "&cThat name is too long!" + stop + set lore of player's tool to "%lore of player's tool%|| ||&eName:||&2%argument 2%" + send "&aName of backpack set to &2%argument 2%" + stop + message "&cYou must have a &a&b&k&a&3Backpack &cin your hand to use this command!" + argument 1 is "start" or "s": + player has permission "obam.admin": + world is "bagworld": + set {backpack.coordinate} to player's location + set x-coordinate of {backpack.coordinate} to -128 + set y-coordinate of {backpack.coordinate} to 1 + set z-coordinate of {backpack.coordinate} to -128 + message "Backpack Start set to %{backpack.coordinate}%" + set {backpack.sign.count} to 1 + set {backpack.chest.type} to chest + set {count.backpacks} to 1 + set {backpack.spacestop} to false + argument 1 is "missing" or "m": + player has permission "obam.smod": + argument 2 is not set: + message "&cPlease type a number in argument 2 to get that number of backpack." + argument 2 is set: + give player {@backpack} with lore "&8%argument 2%||&6Carry lots of extra stuff!|| ||&5&oRight click to open" + argument 1 is "fix" or "f": + player has permission "obam.admin": + argument 2 is not set: + message "&cPlease type a number in argument 2 to get that number of backpack." + argument 2 is set: + give player {@backpack} with lore "&8%argument 2%||&6Carry lots of extra stuff!|| ||&5&oRight click to open" + set {_loc} to {tie.backpack.%argument 2%} + set {_type.check} to the location 1 meter west of {_loc} + block at location of {_type.check} is trapped chest: + set block at location of {tie.backpack.%argument 2%} to chest + stop + set block at location of {tie.backpack.%argument 2%} to trapped chest + argument 1 is "give" or "g": + player has permission "obam.smod": + set {_qty} to argument 3 parsed as an integer + argument 2 is "crudepack": + player doesn't have space for {_qty} of {@crudepack}: + message "&cYou do not have room for this." + stop + give {_qty} of {@crudepack} to player + message "&aHere are your things." + stop + argument 2 is "enderpack": + player doesn't have space for {_qty} of {@enderpack}: + message "&cYou do not have room for this." + stop + give {_qty} of {@enderpack} to player + message "&aHere are your things." + stop + argument 1 is "warnings" or "w": + player has permission "obam.admin": + argument 2 is not set: + message "&aCurrent Backpack Warnings" + loop {warnings.backpacks::*}: + set {_num} to loop-index + set {_warn} to loop-value + message "&a%{_num}%. %{_warn}%" + stop + argument 2 is "delete" or "d": + argument 3 is not set: + message "&cPick a number." + stop + set {_num} to argument 3 + {warnings.backpacks::%{_num}%} does not exist: + message "&cWarning &f%{_num}% &cdoes not exist." + stop + delete {warnings.backpacks::%{_num}%} + message "&aDeleted warning &f%{_num}%" + stop + set {_num} to argument 3 + {warnings.backpacks::%{_num}%} does not exist: + message "&cWarning &f%{_num}% &cdoes not exist." + stop + message "&aSelected Backpack Warning" + message "&a%{_num}%. %{warnings.backpacks::%{_num}%}%" + stop +on join: + player has permission "obam.admin": + {warnings.backpacks::*} is set: + wait 4 seconds + message "&3There are Backpack warnings. Please contact &2ob1bob69" + +on right click with ink sack: + name of player's tool is "&3Backpack" or "&a&b&k&a&3Backpack": + set {_chest} to uncoloured lore of player's tool + set {_chest::*} to {_chest} split at "||" + {_chest::2} is not set: + send "&cYou need to trade this item into a mod to receive a Crude Pack" to player + stop + {loc.backpack.%{_chest::1}%} is not set: + send "&cChest is missing" + stop + {loc.backpack.%{_chest::1}%} is set: + block at location of {loc.backpack.%{_chest::1}%} is not chest or trapped chest: + send "&cChest is missing, contact &2ob1bob69 &cfor assistance" + set {_num} to size of {warnings.backpacks::*} + add 1 to {_num} + set {warnings.backpacks::%{_num}%} to "Chest %{_chest::1}% by %player% on %now%" + open {loc.backpack.%{_chest::1}%} to player + +on right click with ender pearl: + name of player's tool contains "&3EnderPack": + cancel event + open player's enderchest to player + +on shoot: + shooter's tool is ender pearl + name of shooter's tool contains "&3EnderPack": + cancel event + +#Diagnostics +command /backpackcord: + permission: obam.admin + trigger: + message "%{backpack.coordinate}%" + +command /backpackcount: + permission: obam.admin + trigger: + message "%{count.backpacks}%" + +command /backpackloc []: + permission: obam.admin + trigger: + argument 1 is not set: + message "%{loc.backpack.%{count.backpacks}%}%" + stop + set {_num} to argument 1 + message "%{loc.backpack.%{_num}%}%" + set {_loc} to location of {loc.backpack.%{_num}%} + message "%{_loc} %" \ No newline at end of file diff --git a/On Server Files/Fronts/Fronts/chestdeath.client.sk b/On Server Files/Fronts/Fronts/chestdeath.client.sk new file mode 100644 index 0000000..cb9ec14 --- /dev/null +++ b/On Server Files/Fronts/Fronts/chestdeath.client.sk @@ -0,0 +1,36 @@ +on death of a player: + {chunk.live.%chunk at location of player%} is set: + {chunk.live.%chunk at location of player%} is not player: + stop + {db_death.chest} is set: + set block at location of player to a chest + + set {_chest} to block at location of player + set block above {_chest} to cobblestone + set block above block east of {_chest} to cobblestone + set block above block above {_chest} to a sign + set {_sign} to block above block above {_chest} + set block at block east of {_chest} to chest + + loop drops: + lore of loop-item does not contain "StickyItem": + add loop-item to {_chest} + + + clear drops + + set line 1 of {_sign} to "%player%" + set line 2 of {_sign} to "Died here" + + wait 0.5 seconds + send "&aDeath Chests are currently active! Your items have been saved at &e%location of {_chest}%&a!" to player + log "CHEST DEATH at %location of {_chest}% -- %time% -- %player%" to "chestdeath.log" + +command /tombstone: + permission: obam.free + trigger: + + + send "Current TombStone Status:" + send "%{db_death.chest}%" + \ No newline at end of file diff --git a/On Server Files/Fronts/Fronts/chestdeath.main.sk b/On Server Files/Fronts/Fronts/chestdeath.main.sk new file mode 100644 index 0000000..8bc11e7 --- /dev/null +++ b/On Server Files/Fronts/Fronts/chestdeath.main.sk @@ -0,0 +1,122 @@ +every 1 second: + + set {_hold} to now + + {db_time.extend.death} is less than now: + + + + + + broadcast "&3&l۝TombStone: &dTombStone has Ended!" + execute console command "crossmessage &3&l۝TombStone: &dTombStone has Ended!" + clear {db_death.chest} + clear {db_time.extend.death} + + set {_diff} to difference between {db_time.extend.death} and now + + {_diff} is less than 15 minutes: + + {alert.death.lastminute} is not set: + set {alert.death.lastminute} to true + + broadcast "&3&l۝TombStone: &dLess than 15 minutes remaining of TombStone!" + execute console command "crossmessage &3&l۝TombStone: &dLess than 15 minutes remaining of TombStone!" + + + +on death of a player: + {db_death.chest} is set: + set block at location of player to a chest + + set {_chest} to block at location of player + set block above {_chest} to cobblestone + set block above block east of {_chest} to cobblestone + set block above block above {_chest} to a sign + set {_sign} to block above block above {_chest} + set block at block east of {_chest} to chest + + loop items in player's inventory: + lore of loop-item does not contain "StickyItem": + add loop-item to {_chest} + + + clear drops + + set line 1 of {_sign} to "%player%" + set line 2 of {_sign} to "Died here" + + wait 0.5 seconds + send "&aTombStone currently active! Your items have been saved at &e%location of {_chest}%&a!" to player + log "CHEST DEATH at %location of {_chest}% -- %time% -- %player%" to "chestdeath.log" + + +command /chestextended : + permission: obam.admin + trigger: + + {db_time.extend.death} is not set: + set {db_time.extend.death} to now + {db_deathstats.time.%argument 2%} is not set: + set {db_deathstats.time.%argument 2%} to 0 + + #Not meant to be a real option.. just for debugging + arg 1 is 5: + + add 5 minutes to {db_time.extend.death} + add 5 to {db_deathstats.time.%argument 2%} + + arg 1 is 30: + + add 30 minutes to {db_time.extend.death} + add 30 to {db_deathstats.time.%argument 2%} + + arg 1 is 60: + + add 1 hour to {db_time.extend.death} + add 60 to {db_deathstats.time.%argument 2%} + + arg 1 is 90: + + add 90 minutes to {db_time.extend.death} + add 90 to {db_deathstats.time.%argument 2%} + + arg 1 is 120: + + add 2 hours to {db_time.extend.death} + add 120 to {db_deathstats.time.%argument 2%} + + broadcast "&3&l۝TombStone &e%argument 2%&d has extended the TombStone Timer by &e%argument 1% Minutes&d!" + execute console command "crossmessage &3&l۝TombStone: &e%argument 2%&d has extended the TombStoneTimer by &e%argument 1% Minutes&d!" + + set {_diff} to difference between {db_time.extend.death} and now + + {db_death.chest} is not set: + set {db_death.chest} to true + + broadcast "&3&l۝TombStone: &e%{_diff}% &dremaining!" + execute console command "crossmessage &3&l۝TombStone: &e%{_diff}% &dremaining!" + clear {alert.death.lastminute} + + + + +command /deathchestclear: + permission: obam.admin + trigger: + + + clear {db_death.chest} + clear {db_time.extend.death} + clear {alert.death.lastminute} + + send "&3&l۝tombStone: &dTombStone Bonus Cleared" to console + send "&3&l۝TombStone: &dTombStone Bonus Cleared" + +command /tombstone: + permission: obam.free + trigger: + + + send "Current TombStone Status:" + send "%{db_death.chest}%" \ No newline at end of file diff --git a/On Server Files/Fronts/Fronts/ci.fronts.sk b/On Server Files/Fronts/Fronts/ci.fronts.sk new file mode 100644 index 0000000..d8ec6a6 --- /dev/null +++ b/On Server Files/Fronts/Fronts/ci.fronts.sk @@ -0,0 +1,67 @@ +on script load: + delete {db_ci.items::*} + set {db_ci.items::01.Crude Pack} to "ink sack;&a&b&k&a&3Crude Pack;&6The crude version of||&6the backpack;sudo PLAYER bp g crudepack 1" + set {db_ci.items::02.Ender Pack} to "ender pearl;&a&b&k&a&3EnderPack;&6Open your Ender Chest||&6anywhere!|| ||&5&oRight Click to open||&5&oYour portable Ender Chest;sudo PLAYER bp g enderpack 1" + set {db_ci.items::03.capture.ball} to "snowball;&3Projeggtile Capture Ball;&6Capture the essence of various creatures||&6by tossing your balls at them.;sudo PLAYER cb capture 1" + set {db_ci.items::04.creeper.ball} to "snowball;&3Projeggtile &2Creeper &3Ball;&6Heavily reinforced to prevent even the||&6most explosive creepers from escaping!;sudo PLAYER cb creeper 1" + set {db_ci.items::05.skeleton.ball} to "snowball;&3Projeggtile &7Skeleton &3Ball;&6An ironic prison of bones made to hold||&6a skeleton, made from its own kin!;sudo PLAYER cb skeleton 1" + set {db_ci.items::06.zombie.ball} to "snowball;&3Projeggtile &aZombie &3Ball;&6Layered in flesh to make even the||&6loneliest zombie feel at home!;sudo PLAYER cb zombie 1" + set {db_ci.items::07.pigman.ball} to "snowball;&3Projeggtile &aZombie &dPigman &3Ball;&6A containment area with a nugget inside||&6to lure and keep the pigman content!;sudo PLAYER cb pigman 1" + set {db_ci.items::08.spider.ball} to "snowball;&3Projeggtile &4Spider &3Ball;&6Tangles an eight legged bugger||&6into a silky woven sack!;sudo PLAYER cb spider 1" + set {db_ci.items::09.blank} to "air" + set {db_ci.items::10.Crude Pack} to "16 ink sack;&a&b&k&a&3Crude Pack;&6The crude version of||&6the backpack;sudo PLAYER bp g crudepack 16" + set {db_ci.items::11.Ender Pack} to "16 ender pearl;&a&b&k&a&3EnderPack;&6Open your Ender Chest||&6anywhere!|| ||&5&oRight Click to open||&5&oYour portable Ender Chest;sudo PLAYER bp g enderpack 16" + set {db_ci.items::12.capture.ball} to "16 snowball;&3Projeggtile Capture Ball;&6Capture the essence of various creatures||&6by tossing your balls at them.;sudo PLAYER cb capture 16" + set {db_ci.items::13.creeper.ball} to "16 snowball;&3Projeggtile &2Creeper &3Ball;&6Heavily reinforced to prevent even the||&6most explosive creepers from escaping!;sudo PLAYER cb creeper 16" + set {db_ci.items::14.skeleton.ball} to "16 snowball;&3Projeggtile &7Skeleton &3Ball;&6An ironic prison of bones made to hold||&6a skeleton, made from its own kin!;sudo PLAYER cb skeleton 16" + set {db_ci.items::15.zombie.ball} to "16 snowball;&3Projeggtile &aZombie &3Ball;&6Layered in flesh to make even the||&6loneliest zombie feel at home!;sudo PLAYER cb zombie 16" + set {db_ci.items::16.pigman.ball} to "16 snowball;&3Projeggtile &aZombie &dPigman &3Ball;&6A containment area with a nugget inside||&6to lure and keep the pigman content!;sudo PLAYER cb pigman 16" + set {db_ci.items::17.spider.ball} to "16 snowball;&3Projeggtile &4Spider &3Ball;&6Tangles an eight legged bugger||&6into a silky woven sack!;sudo PLAYER cb spider 16" + set {db_ci.items::18.blank} to "air" + set {db_ci.items::19.Crude Pack} to "64 ink sack;&a&b&k&a&3Crude Pack;&6The crude version of||&6the backpack;sudo PLAYER bp g crudepack 64" + set {db_ci.items::20.Ender Pack} to "64 ender pearl;&a&b&k&a&3EnderPack;&6Open your Ender Chest||&6anywhere!|| ||&5&oRight Click to open||&5&oYour portable Ender Chest;sudo PLAYER bp g enderpack 64" + set {db_ci.items::21.TA} to "diamond axe;&a&b&k&a&3Timber Axe;&6This axe makes all logs within a 10 block radius||&6go timber!;sudo PLAYER timber" + set {db_ci.items::22.LB} to "bow;&3Bow of Light;&6Light your way from afar||&6with this magical bow.|| ||&c-1 Torch Per Use;sudo PLAYER lightbow" + set {db_ci.items::23.HTP} to "diamond pickaxe;&a&b&k&a&3HotTouch Pickaxe;&6A pickaxe forged from the heart of the Nether||&6with an intense heat to smelt ores while mining.;sudo PLAYER ht pick" + set {db_ci.items::24.HTA} to "diamond axe;&a&b&k&a&3HotTouch Axe;&6An axe forged from the heart of the Nether||&6with an intense heat to cook logs into charcoal||&6while chopping.;sudo PLAYER ht axe" + set {db_ci.items::25.HTS} to "diamond shovel;&a&b&k&a&3HotTouch Shovel;&6A shovel forged from the heart of the Nether||&6with an intense heat to cook sand clay and||&6cactus while digging.;sudo PLAYER ht shovel" + set {db_ci.items::26.blank} to "air" + set {db_ci.items::27.blank} to "air" + set {db_ci.items::28.FMA.helmet} to "diamond helmet;&7FMA Helmet;&6Standard issue FMA gear;sudo PLAYER fmagear helmet" + set {db_ci.items::29.FMA.chest} to "diamond chestplate;&7FMA Chestplate;&6Standard issue FMA gear;sudo PLAYER fmagear chest" + set {db_ci.items::30.FMA.leggings} to "diamond leggings;&7FMA Leggings;&6Standard issue FMA gear;sudo PLAYER fmagear leggings" + set {db_ci.items::31.FMA.boots} to "diamond boots;&7FMA Boots;&6Standard issue FMA gear;sudo PLAYER fmagear boots" + set {db_ci.items::32.FMA.sword} to "diamond sword;&7FMA Sword;&6Standard issue FMA gear;sudo PLAYER fmagear sword" + set {db_ci.items::33.FMA.bow} to "bow;&7FMA Bow;&6Standard issue FMA gear;sudo PLAYER fmagear bow" + set {db_ci.items::34.FMA.arrows} to "64 arrow;&7FMA Arrows;&6Standard issue FMA gear;sudo PLAYER fmagear arrows" + set {db_ci.items::35.FMA.apples} to "64 apple;&7FMA Apples;&6Standard issue FMA gear;sudo PLAYER fmagear apples" + +command /ci: + permission: obam.smod + trigger: + loop {db_ci.items::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lOBAM Custom Items Menu" to player + wait 1 tick + set {_count} to 0 + loop {db_ci.items::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} \ No newline at end of file diff --git a/On Server Files/Fronts/Fronts/disenchant.g.sk b/On Server Files/Fronts/Fronts/disenchant.g.sk new file mode 100644 index 0000000..5bff46c --- /dev/null +++ b/On Server Files/Fronts/Fronts/disenchant.g.sk @@ -0,0 +1,24 @@ +command /unenchant: + executable by: players + permission: obam.free + aliases: /disenchant + trigger: + player's tool is enchanted: + player's tool is not a sword or axe or pickaxe or shovel or bow or helmet or chestplate or leggings or boots: + message "&cYou may only disenchant Armour, Weapons or Tools!" to player + stop + set {_bal} to player's balance + {_bal} is less than 200: + send "&cYou do not have enough tickets to do this!" to player + stop + player's level is less than 15: + send "&cYou must have at least 15 levels to do this!" to player + stop + disenchant player's tool + reduce the player's level by 15 + remove 200 from player's balance + send "&6&lThe Gods have taken their gifts back!" to player + send "&aYou have used &e200 Tickets&a to disenchant this tool" to player + send "&aYou have &e%player's balance%&a remaining" to player + log "%player%^%{_bal}%^DEDUCT^200^%player's balance%^DISENCHANT FEE" to "tickets/disenchant.log" + stop diff --git a/On Server Files/Fronts/Fronts/dragonegg.g.sk b/On Server Files/Fronts/Fronts/dragonegg.g.sk new file mode 100644 index 0000000..e55ec5e --- /dev/null +++ b/On Server Files/Fronts/Fronts/dragonegg.g.sk @@ -0,0 +1,7 @@ +on flow: + block is a dragon egg: + cancel event + +on block physics: + block is a dragon egg: + cancel event diff --git a/On Server Files/Fronts/Fronts/entcount.g.sk b/On Server Files/Fronts/Fronts/entcount.g.sk new file mode 100644 index 0000000..8fe85ec --- /dev/null +++ b/On Server Files/Fronts/Fronts/entcount.g.sk @@ -0,0 +1,74 @@ +command /ent []: + permission: obam.free + description: Counts the living entities in a sphere of specified radius around player + trigger: + {cool.ent.%player%} is not set: + set {cool.ent.%player%} to difference between now and now + add 3 seconds to {cool.ent.%player%} + set {_hold} to difference between now and {cool.ent.%player%} + {_hold} is less than 2 seconds: + send "&cPlease wait ...." + stop + argument is not set: + loop entities in radius 254 of player: + loop-entity is not a player + chunk at location of loop-entity is chunk at location of player + set {_type} to "%type of loop-entity%" + set {_hold::*} to {_type} split at ":" + {_count.list::%{_hold::1}%} is not set: + set {_count.list::%{_hold::1}%} to 0 + set {_count.list::%{_hold::1}%} to {_count.list::%{_hold::1}%} + 1 + {_count.total} is not set: + set {_count.total} to 0 + add 1 to {_count.total} + {_count.total} is not set: + send "&eNo entites... MAGIC!" + stop + send "&aThere are currently &e%{_count.total}%&a entities in chunk &e%player's chunk%" + send "&aList:" + loop {_count.list::*}: + send "&a%loop-index%: &e%loop-value%" + set {cool.ent.%player%} to now + stop + argument is greater than 254: + send "&cPlease choose a number between &e1 &cand &e254" + stop + loop entities in radius argument of player's location: + loop-entity is not a player + set {_type} to "%type of loop-entity%" + set {_hold::*} to {_type} split at ":" + {_count.list::%{_hold::1}%} is not set: + set {_count.list::%{_hold::1}%} to 0 + set {_count.list::%{_hold::1}%} to {_count.list::%{_hold::1}%} + 1 + {_count.total} is not set: + set {_count.total} to 0 + add 1 to {_count.total} + {_count.total} is not set: + send "&eNo entites... MAGIC!" + stop + send "&aThere are currently &e%{_count.total}%&a entities in the radius of &e%argument%" + send "&aList:" + loop {_count.list::*}: + send "&a%loop-index%: &e%loop-value%" + set {cool.ent.%player%} to now + +command /entworld: + permission: obam.admin + trigger: + loop entities in player's world: + loop-entity is not a player + set {_type} to "%type of loop-entity%" + set {_hold::*} to {_type} split at ":" + {_count.list::%{_hold::1}%} is not set: + set {_count.list::%{_hold::1}%} to 0 + set {_count.list::%{_hold::1}%} to {_count.list::%{_hold::1}%} + 1 + {_count.total} is not set: + set {_count.total} to 0 + add 1 to {_count.total} + {_count.total} is not set: + send "&eNo entites... MAGIC!" + stop + send "&aThere are currently &e%{_count.total}%&a entities in world &e%player's world%" + send "&aList:" + loop {_count.list::*}: + send "&a%loop-index%: &e%loop-value%" diff --git a/On Server Files/Fronts/Fronts/flags.g.sk b/On Server Files/Fronts/Fronts/flags.g.sk new file mode 100644 index 0000000..0783ec7 --- /dev/null +++ b/On Server Files/Fronts/Fronts/flags.g.sk @@ -0,0 +1,222 @@ +on script load: + delete {db_flags::*} + set {db_flags::01.header.admin} to "nether star;&3Admin Flag;&6Click this icon to open the &eAdmin &6flags menu.||&6Or enable/disable all flags with the button below.;sudo PLAYER flags menu admin WHO" + set {db_flags::02.header.build} to "diamond pickaxe;&3Build Flag;&6Click this icon to open the &eBuild &6flags menu.||&6Or enable/disable all flags with the button below;sudo PLAYER flags menu build WHO" + set {db_flags::03.header.use} to "stone button;&3Use Flag;&6Click this icon to open the &eUse &6flags menu.||&6Or enable/disable all flags with the button below;sudo PLAYER flags menu use WHO" + set {db_flags::04.header.container} to "chest;&Container Flag;&6Click this icon to open the &eContainer &6flags menu.||&6Or enable/disable all flags with the button below.;sudo PLAYER flags menu container WHO" + set {db_flags::05.header.bucket} to "bucket;&3Bucket Flag;&6Click this icon to open the &eBucket &6flags menu.||&6Or enable/disable all flags with the button below.;sudo PLAYER flags menu bucket WHO" + set {db_flags::06.header.teleport} to "portal;&3Teleport Flag;&6Click this icon to open the &eTeleport &6flags menu.||&6Or enable/disable all flags with the button below.;sudo PLAYER flags menu teleport WHO" + set {db_flags::07.header.entity} to "sheep spawn egg;&3Entity Flag;&6Click this icon to open the &eEntity &6flags menu.||&6Or enable/disable all flags with the button below.;sudo PLAYER flags menu entity WHO" + set {db_flags::08.header.all} to "lever;&3All Flags;&6Click the button below to disable/enable all flags.||&6If any flag is enabled, it will disable all flags." + set {db_flags::09.header.front} to "grass;&3Front Settings;&6Click this icon to open the &Front Settings &6menu.||&6Or enable/disable all flags with the button below.;sudo PLAYER flags menu front WHO" + set {db_flags::01.admin.null} to "air" + set {db_flags::01.build.null} to "air" + set {db_flags::01.use.usedoor} to "wooden door;&3Use - Door;&6Click the button below to disable/enable||&6the &eDoor Use&6 flag for this front." + set {db_flags::02.use.useanvil} to "anvil;&3Use - Anvil;&6Click the button below to disable/enable||&6the &eAnvil Use&6 flag for this front." + set {db_flags::03.use.usenote} to "note block;&3Use - Noteblock;&6Click the button below to disable/enable||&6the &eNoteblock Use&6 flag for this front." + set {db_flags::04.use.usejuke} to "jukebox;&3Use - Jukebox;&6Click the button below to disable/enable||&6the &eJukebox Use&6 flag for this front." + set {db_flags::05.use.uselever} to "lever;&3Use - Lever;&6Click the button below to disable/enable||&6the &eLever Use&6 flag for this front." + set {db_flags::06.use.usestonebutton} to "stone button;&3Use - Stone Button;&6Click the button below to disable/enable||&6the &eStone Button Use&6 flag for this front." + set {db_flags::07.use.usewoodbutton} to "wood button;&3Use - Wood Button;&6Click the button below to disable/enable||&6the &eWood Button Use&6 flag for this front." + set {db_flags::08.use.usetrap} to "trapdoor;&3Use - Trap Door;&6Click the button below to disable/enable||&6the &eTrap Door Use&6 flag for this front." + set {db_flags::09.use.usefence} to "fence gate;&3Use - Fence Gate;&6Click the button below to disable/enable||&6the &eFence Gate Use&6 flag for this front." + set {db_flags::10.use.useenchant} to "enchantment table;&3Use - Enchantment Table;&6Click the button below to disable/enable||&6the &eEnchantment Table Use&6 flag for this front." + set {db_flags::11.use.usecomparator} to "redstone comparator;&3Use - Comparator;&6Click the button below to disable/enable||&6the &eComparator Use&6 flag for this front." + set {db_flags::12.use.userepeater} to "repeater;&3Use - Repeater;&6Click the button below to disable/enable||&6the &eRepeater Use&6 flag for this front." + set {db_flags::01.container.conchest} to "chest;&3Container - Chest;&6Click the button below to disable/enable||&6the &eChest Container&6 flag for this front." + set {db_flags::02.container.confurnace} to "furnace;&3Container - Furnace;&6Click the button below to disable/enable||&6the &eFurnace Container&6 flag for this front." + set {db_flags::03.container.condispenser} to "dispenser;&3Container - Dispenser;&6Click the button below to disable/enable||&6the &eDispenser Container&6 flag for this front." + set {db_flags::04.container.conhopper} to "hopper;&3Container - Hopper;&6Click the button below to disable/enable||&6the &eHopper Container&6 flag for this front." + set {db_flags::05.container.conbrewing} to "brewing stand;&3Container - Brewing Stand;&6Click the button below to disable/enable||&6the &eBrewing Stand Container&6 flag for this front." + set {db_flags::06.container.condropper} to "dropper;&3Container - Dropper;&6Click the button below to disable/enable||&6the &eDropper Container&6 flag for this front." + set {db_flags::07.container.contrapped} to "trapped chest;&3Container - Trapped Chest;&6Click the button below to disable/enable||&6the &eTrapped Chest Container&6 flag for this front." + set {db_flags::08.container.conbeacon} to "beacon;&3Container - Beacon;&6Click the button below to disable/enable||&6the &eBeacon Container&6 flag for this front." + set {db_flags::01.bucket.bucketwater} to "water bucket;&3Bucket Flag - Water;&6Click the button below to disable/enable||&6the &eWater Bucket&6 flag for this front." + set {db_flags::02.bucket.bucketlava} to "lava bucket;&3Bucket Flag - Lava;&6Click the button below to disable/enable||&6the &eLava Bucket&6 flag for this front." + set {db_flags::01.teleport.null} to "air" + set {db_flags::01.entity.null} to "air" + set {db_flags::01.front.frontflow} to "water;&3Flow;&6Click the button below to disable/enable||&6the &eFlow&6 flag for this front." + set {db_flags::02.front.frontfirespread} to "fire;&3Firespread;&6Click the button below to disable/enable||&6the &eFirespread&6 flag for this front." + set {db_flags::03.front.fronttnt} to "tnt;&3TNT;&6Click the button below to disable/enable||&6the &eTNT&6 flag for this front." + +on join: + {flag.reset.%uuid of player%} is not set: + wait 10 seconds + {owned.chunks.%uuid of player%::*} is set: + loop {owned.chunks.%uuid of player%::*}: + set {_chunk} to loop-index-1 + loop {flags.%{_chunk}%::*}: + delete {flags.%{_chunk}%::loop-index-2::*} + delete {flags.%{_chunk}%::*} + set {flag.reset.%uuid of player%} to false + message "&cAttention: &6All flags have been deleted." + +command /flags [] [] []: + permission: obam.free + trigger: + {chunk.live.%chunk at location of player%} is not set: + send "&cThis land has not been claimed yet!" + stop + argument 1 is not set: + set {_task} to menu + set {_what} to header + set {_who} to Everyone + argument 1 is not "menu" or "set" or "list": + {db_name.%argument 1%} does not exist: + message "&cThat player does not exist." + stop + set {_task} to menu + set {_what} to header + set {_who} to argument 1 + set {_task} to argument 1 + set {_what} to argument 2 + set {_who} to argument 3 + set {_who.uuid} to {db_name.%{_who}%} + {_task} is "menu": + loop {db_flags::*}: + set {_decode1::*} to loop-index split at "." + set {_sub} to {_decode1::3} + {_sub} is "null": + send "&c&lThis feature is being worked on and will be here soon!" + stop + set {_prim} to {_decode1::2} + {_count} is not set: + set {_count} to 0 + {_prim} contains "{_what}": + add 1 to {_count} + {_count} is less than 10: + set {_size} to 2 + {_count} is greater than 9: + set {_size} to 4 + {_count} is greater than 18: + set {_size} to 6 + {_count} is greater than 27: + set {_size} to 8 + show chest with {_size} row named "&9&lOBAM %{_what}% Flags Menu" to player + wait 1 tick + loop {db_flags::*}: + set {_decode2::*} to loop-index-1 split at "." + set {_prim} to {_decode2::2} + {_prim} is {_what}: + set {_slot} to {_decode2::1} parsed as integer + subtract 1 from {_slot1} + set {_slot2} to 9 + {_slot1} + set {_sub} to {_decode2::3} + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + replace "WHO" in {_command} with "%{_who}%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_slot1} of player with {_what} to be unstealable + {_command} is set: + format slot {_slot1} of player with {_what} to close then run {_command} + {_sub} is "all": + loop {db_flags::*}: + set {_decode3::*} to loop-index-2 split at "." + set {_sub1} to {_decode3::3} + {flags.%chunk at location of player%::%{_sub1}%::%{_who.uuid}%} is true: + set {_any.check} to true + {_any.check} is set: + set {_state1} to light green wool parsed as an item + set {_state2} to "&aEnabled" + set {_state3} to "&6Click to &cDisable &6all flags for &e%{_who}%." + set {_state4} sudo %player% flags set all %{_who}% + {_any.check} is not set: + set {_state1} to red wool parsed as an item + set {_state2} to "&cDisabled" + set {_state3} to "&6Click to &aEnable &6all flags for &e%{_who}%." + set {_state4} sudo %player% flags set all %{_who}% + {_sub} is "front" or "flow" or "firespread" or "tnt": + {flags.%chunk at location of player%::%{_sub}%} is not set: + set {flags.%chunk at location of player%::%{_sub}%} to false + {flags.%chunk at location of player%::%{_sub}%} is true: + set {_state1} to light green wool parsed as an item + set {_state2} to "&aEnabled" + set {_state3} to "&6Click to &cDisable &6the &e%{_sub}% &6flag for &e%{_who}%." + set {_state4} sudo %player% flags set %{_sub}% %{_who}% + {flags.%chunk at location of player%::%{_sub}%} is false: + set {_state1} to red wool parsed as an item + set {_state2} to "&cDisabled" + set {_state3} to "&6Click to &aEnable &6the &e%{_sub}% &6flag for &e%{_who}%." + set {_state4} sudo %player% flags set %{_sub}% %{_who}% + {_sub} is not "front" or "flow" or "firespread" or "tnt": + {flags.%chunk at location of player%::%{_sub}%::%{_who.uuid}%} is not set: + set {flags.%chunk at location of player%::%{_sub}%::%{_who.uuid}%} to false + {flags.%chunk at location of player%::%{_sub}%::%{_who.uuid}%} is true: + set {_state1} to light green wool parsed as an item + set {_state2} to "&aEnabled" + set {_state3} to "&6Click to &cDisable &6the &e%{_sub}% &6flag for &e%{_who}%." + set {_state4} sudo %player% flags set %{_sub}% %{_who}% + {flags.%chunk at location of player%::%{_sub}%::%{_who.uuid}%} is false: + set {_state1} to red wool parsed as an item + set {_state2} to "&cDisabled" + set {_state3} to "&6Click to &aEnable &6the &e%{_sub}% &6flag for &e%{_who}%." + set {_state4} sudo %player% flags set %{_sub}% %{_who}% + set {_what2} to {_state1} named {_state2} with lore {_state3} + format slot {_slot2} of player with {_what2} to be unstealable + format slot {_slot2} of player with {_what2} to close then run {_state4} + {_task} is "set": + {chunk.live.%chunk at location of player%} is not player: + {flags.%chunk at location of player%::admin::%uuid of player%} is not set: + set {flags.%chunk at location of player%::admin::%uuid of player%} to false + {flags.%chunk at location of player%::admin::%uuid of player%} is false: + send "&cYou do not have permission to do this!" + stop + {flags.%chunk at location of player%::admin::everyone} is not set: + set {flags.%chunk at location of player%::admin::everyone} to false + {flags.%chunk at location of player%::admin::everyone} is false: + send "&cYou do not have permission to do this!" + stop + {_what} is "front" or "flow" or "firespread" or "tnt": + {flags.%chunk at location of player%::%{_what}%} is true: + set {flags.%chunk at location of player%::%{_what}%} to false + send "&cYou have disabled the &e%{_what}%&c flag on this &eFront" + stop + {flags.%chunk at location of player%::%{_what}%} is false: + set {flags.%chunk at location of player%::%{_what}%} to true + send "&aYou have enabled the &e%{_what}%&a flag on this &eFront" + stop + {_what} is "all": + set {_clear} to false + loop {db_flags::*}: + set {_decode4::*} to loop-index split at "." + set {_sub2} to {_decode4::3} + {flags.%chunk at location of player%::%{_sub2}%::%{_who.uuid}%} is true: + set {_clear} to true + loop {db_flags::*}: + set {_decode5::*} to loop-index split at "." + set {_sub3} to {_decode5::3} + set {flags.%chunk at location of player%::%{_sub3}%::%{_who.uuid}%} to {_clear} + {_clear} is true: + send "&cYou have disabled &eAll&c flags for &e%{_who}%" + stop + send "&aYou have enabled &eAll&a flags for &e%{_who}%" + stop + {flags.%chunk at location of player%::%{_what}%::%{_who.uuid}%} is false: + set {flags.%chunk at location of player%::%{_what}%::%{_who.uuid}%} to true + send "&aEnabled &e%{_what}%&a flag for &e%{_who}%" + stop + {flags.%chunk at location of player%::%{_what}%::%{_who.uuid}%} is true: + set {flags.%chunk at location of player%::%{_what}%::%{_who.uuid}%} to false + send "&cDisabled &e%{_what}%&c flag for &e%{_who}%" + stop + {_task} is "list": + {_what} is not set: + send "&cPlease specify a flag." + stop + send "&aActive users for &e%{_what}% &aflag:" + loop {flags.%chunk at location of player%::%{_what}%::*}: + loop-value is true + send "&a%{db_master.uuid::%loop-index%}%" + stop + send "&cPlease check your command and try again." + stop + +command /forceadmin: + permission: obam.smod + trigger: + set {flags.%chunk at location of player%::admin::%uuid of player%} to true + send "&aYou now have the admin flag for this chunk owned by &e%{db_master.uuid::%{chunk.live.%chunk at location of block%}%}%&a." diff --git a/On Server Files/Fronts/Fronts/flow.g.sk b/On Server Files/Fronts/Fronts/flow.g.sk new file mode 100644 index 0000000..2ca707e --- /dev/null +++ b/On Server Files/Fronts/Fronts/flow.g.sk @@ -0,0 +1,20 @@ +on flow: + {flags.%chunk at event-location%::frontflow} is set: + {flags.%chunk at event-location%::frontflow} is false: + cancel event + {flags.%chunk at event-location%::frontflow} is true: + stop + +on ignition: + {flags.%chunk at event-location%::frontfirespread} is set: + {flags.%chunk at event-location%::frontfirespread} is false: + cancel event + {flags.%chunk at event-location%::frontfirespread} is true: + stop + +on burn: + {flags.%chunk at event-location%::frontfirespread} is set: + {flags.%chunk at event-location%::frontfirespread} is false: + cancel event + {flags.%chunk at event-location%::frontfirespread} is true: + stop diff --git a/On Server Files/Fronts/Fronts/fma.sk b/On Server Files/Fronts/Fronts/fma.sk new file mode 100644 index 0000000..68fc544 --- /dev/null +++ b/On Server Files/Fronts/Fronts/fma.sk @@ -0,0 +1,794 @@ +on script load: + {hostilemobs::creeper} is set: + delete {hostilemobs::creeper} + {hostilemobs::spider} is not set: + set {hostilemobs::spider} to spider + {hostilemobs::zombie} is not set: + set {hostilemobs::zombie} to zombie + {hostilemobs::skeleton} is not set: + set {hostilemobs::skeleton} to skeleton + {hostilemobs::slime} is not set: + set {hostilemobs::slime} to slime + {hostilemobs::zombiepigman} is not set: + set {hostilemobs::zombiepigman} to zombie pigman + {hostilemobs::cavespider} is not set: + set {hostilemobs::cavespider} to cave spider + {hostilemobs::silverfish} is not set: + set {hostilemobs::silverfish} to silverfish + {hostilemobs::blaze} is not set: + set {hostilemobs::blaze} to blaze + {hostilemobs::magmacube} is not set: + set {hostilemobs::magmacube} to magma cube + {hostilemobs::witch} is not set: + set {hostilemobs::witch} to witch + {hostilemobs::witherskeleton} is not set: + set {hostilemobs::witherskeleton} to wither skeleton + {hostilemobsproper::creeper} is set: + delete {hostilemobsproper::creeper} + {hostilemobsproper::spider} is not set: + set {hostilemobsproper::spider} to spider + {hostilemobsproper::zombie} is not set: + set {hostilemobsproper::zombie} to zombie + {hostilemobsproper::skeleton} is not set: + set {hostilemobsproper::skeleton} to skeleton + {hostilemobsproper::slime} is not set: + set {hostilemobsproper::slime} to slime + {hostilemobsproper::zombiepigman} is not set: + set {hostilemobsproper::zombiepigman} to zombie pigman + {hostilemobsproper::cavespider} is not set: + set {hostilemobsproper::cavespider} to cave spider + {hostilemobsproper::silverfish} is not set: + set {hostilemobsproper::silverfish} to silverfish + {hostilemobsproper::blaze} is not set: + set {hostilemobsproper::blaze} to blaze + {hostilemobsproper::magmacube} is not set: + set {hostilemobsproper::magmacube} to magma cube + {hostilemobsproper::witch} is not set: + set {hostilemobsproper::witch} to witch + {hostilemobsproper::witherskeleton} is not set: + set {hostilemobsproper::witherskeleton} to wither skeleton + {hostilemobsproper::wither} is set: + delete {hostilemobsproper::wither} + {hostilemobsproper::ghast} is not set: + set {hostilemobsproper::ghast} to ghast + +command /spawntoggle: + permission: obam.smod + trigger: + {spawn.mobarena} is not set: + set {spawn.mobarena} to false + send "&aNatural Spawns are now off in the &eMob Arena" + stop + {spawn.mobarena} is true: + set {spawn.mobarena} to false + send "&aNatural Spawns are now off in the &eMob Arena" + stop + {spawn.mobarena} is false: + set {spawn.mobarena} to true + send "&aNatural Spawns are now on in the &eMob Arena" + stop + +on burn of coal block: + {chunk.live.%chunk at location of block%} is "MobArena-BattleFloor": + cancel event + +command /fmaspawn [] []: + permission: obam.smod + trigger: + argument 1 is "random": + argument 2 is "random": + argument 3 is "random": + set {_ran} to a random integer between 1 and 30 + set {spawncheck.ok} to true + loop {_ran} times: + set {_ranmob} to random element of {hostilemobs::*} + set {_ranname} to random element of {rannames::*} + + spawn {_ranmob} at location of player + + set display name of spawned entity to "&c%{_ranname}%" + set {spawncheck.ok} to false + stop + argument 3 is set: + loop {rannames::*}: + argument 3 is loop-value + set {_found} to true + {_found} is not set: + add argument 3 to {rannames::*} + set {_ran} to a random integer between 1 and 30 + set {spawncheck.ok} to true + loop {_ran} times: + set {_ranmob} to random element of {hostilemobs::*} + spawn {_ranmob} at location of player + set display name of spawned entity to "&c%argument 3%" + set {spawncheck.ok} to false + stop + argument 3 is not set: + set {_ran} to random integer between 1 and 30 + set {spawncheck.ok} to true + loop {_ran} times: + set {_ranmob} to random element of {hostilemobs::*} + spawn {_ranmob} at location of player + set {spawncheck.ok} to false + stop + argument 2 is not "random": + argument 2 is set: + set {_amount} to argument 2 parsed as number + {_amount} is not set: + parse error is set: + send "&c%last parse error%" + stop + argument 3 is "random": + set {spawncheck.ok} to true + loop {_amount} times: + set {_ranmob} to random element of {hostilemobs::*} + set {_ranname} to random element of {rannames::*} + spawn {_ranmob} at location of player + set display name of spawned entity to "&c%{_ranname}%" + set {spawncheck.ok} to false + stop + argument 3 is set: + loop {rannames::*}: + argument 3 is loop-value: + set {_found} to true + {_found} is not set: + add argument 3 to {rannames::* + set {spawncheck.ok} to true + loop {_amount} times: + set {_ranmob} to random element of {hostilemobs::*} + spawn {_ranmob} at location of player + set display name of spawned entity to "&c%argument 3%" + set {spawncheck.ok} to false + stop + argument 3 is not set: + set {spawncheck.ok} to true + loop {_amount} times: + set {_ranmob} to random element of {hostilemobs::*} + spawn {_ranmob} at location of player + set {spawncheck.ok} to false + stop + argument 1 is not "random": + argument 1 is set: + {hostilemobsproper::%argument 1%} is not set: + send "&cThat is not a valid mob!" + stop + set {_mob} to {hostilemobsproper::%argument 1%} + argument 3 is not set: + argument 2 is not set: + set {spawncheck.ok} to true + spawn {_mob} at location of player + set {spawncheck.ok} to false + argument 2 is "random": + argument 3 is "random": + set {_ran} to a random integer between 1 and 30 + set {spawncheck.ok} to true + loop {_ran} times: + set {_ranname} to random element of {rannames::*} + spawn {_mob} at location of player + set display name of spawned entity to "&c%{_ranname}%" + set {spawncheck.ok} to false + stop + argument 3 is set: + loop {rannames::*}: + argument 3 is loop-value + set {_found} to true + {_found} is not set: + add argument 3 to {rannames::*} + set {_ran} to a random integer between 1 and 30 + set {spawncheck.ok} to true + loop {_ran} times: + spawn {_mob} at location of player + set display name of spawned entity to "&c%argument 3%" + set {spawncheck.ok} to false + stop + argument 3 is not set: + set {_ran} to random integer between 1 and 30 + set {spawncheck.ok} to true + loop {_ran} times: + spawn {_mob} at location of player + set {spawncheck.ok} to false + stop + argument 2 is not "random": + argument 2 is set: + set {_amount} to argument 2 parsed as number + {_amount} is not set: + parse error is set: + send "&c%last parse error%" + stop + argument 3 is "random": + set {spawncheck.ok} to true + loop {_amount} times: + set {_ranname} to random element of {rannames::*} + spawn {_mob} at location of player + set display name of spawned entity to "&c%{_ranname}%" + set {spawncheck.ok} to false + stop + argument 3 is set: + loop {rannames::*}: + argument 3 is loop-value: + set {_found} to true + {_found} is not set: + add argument 3 to {rannames::*} + set {spawncheck.ok} to true + loop {_amount} times: + spawn {_mob} at location of player + set display name of spawned entity to "&c%argument 3%" + set {spawncheck.ok} to false + stop + argument 3 is not set: + set {spawncheck.ok} to true + loop {_amount} times: + spawn {_mob} at location of player + set {spawncheck.ok} to false + stop + +command /nameadd []: + permission: obam.smod + trigger: + argument 1 is "list": + loop {rannames::*}: + send "%loop-value%" + stop + argument 1 is "delete": + argument 2 is not set: + send "&cYou must specify what to delete!" + stop + loop {rannames::*}: + loop-value is argument 2: + delete {rannames::%loop-index%} + send "&cDeleted &e%argument 2%" + stop + add argument 1 to {rannames::*} + send "&e%argument 1% &aadded" + +command /doorset: + permission: obam.admin + trigger: + add location of targeted block to {fma.doors::*} + send "&aBlock added" + +command /fmaclose: + permission: obam.mod + trigger: + loop {fma.doors::*}: + set {_loc} to loop-value + set block at loop-value to locked chest:15 + send "&aDoors closed" + +command /fmaopen: + permission: obam.mod + trigger: + loop {fma.doors::*}: + set {_loc} to loop-value + set block at loop-value to air + send "&aDoors opened" + +on spawn: + set {_chunk} to chunk at event-location + set {_chunk.owner} to {chunk.live.%{_chunk}%} + {_chunk.owner} is "MobArena-Arena" or "MobArena-Spawn" or "MobArena-BattleFloor" or "MobArena-Winner" or "MobArena-Twerk": + {spawn.mobarena} is false: + {spawncheck.ok} is not set: + set {spawncheck.ok} to false + {spawncheck.ok} is false: + cancel event + +command /corneradd [] []: + permission: obam.admin + trigger: + argument 1 is not set: + add location of player to {fma.corners::*} + send "&aCorner added" + argument 1 is "clear": + clear {fma.corners::*} + +command /fmacampers: + permission: obam.smod + trigger: + set {spawncheck.ok} to true + loop {fma.corners::*}: + set {_loc} to loop-value + set {_ran} to random integer between 1 and 30 + loop {_ran} times: + set {_ranname} to random element of {rannames::*} + set {_ranmob} to random element of {hostilemobs::*} + spawn {_ranmob} at {_loc} + set display name of spawned entity to "&c%{_ranname}%" + wait 1 second + set {spawncheck.ok} to false + +command /entitycheck: + permission: obam.free + trigger: + send "%type of target entity%" + +command /winnerchestadd: + permission: obam.admin + trigger: + set {_size} to size of {winner.chests::*} + set {_size} to {_size} + 1 + set {winner.chests::%{_size}%} to targeted block + +on death: + {chunk.live.%chunk at location of victim%} is "MobArena-BattleFloor" + loop drops: + set {_chest} to {winner.chests::1} + while {_chest} doesn't have space for loop-item: + {_count} is not set: + set {_count} to 1 + add 1 to {_count} + set {_chest} to {winner.chests::%{_count}%} + {_count} is 21: + remove loop-item from drops + add loop-item to {_chest} + remove loop-item from drops + +on target: + {chunk.live.%chunk at location of event-entity%} is "MobArena-BattleFloor": + {chunk.live.%chunk at location of target%} is not "MobArena-BattleFloor": + cancel event + +on right click with ender pearl: + {chunk.live.%chunk at location of player%} is "MobArena-BattleFloor" or "MobArena-Spawn" or "MobArena-Arena" or "MobArena-Winner" or "MobArea-Twerk": + cancel event + send "&cYou can not do that here" + +command /fma: + permission: obam.free + trigger: + make player execute command "f t FMA-Spawn mobarena-spawn" + +on drop: + {chunk.live.%chunk at event-location%} is "MobArena-BattleFloor" + set {_chest} to {winner.chests::1} + while {_chest} doesn't have space for item: + {_count} is not set: + set {_count} to 1 + add 1 to {_count} + set {_chest} to {winner.chests::%{_count}%} + {_count} is 21: + cancel event + remove item from player + add item to {_chest} + delete item + +on xp spawn: + {chunk.live.%chunk at event-location%} is "MobArena-BattleFloor": + cancel event + +command /special : + permission: obam.smod + trigger: + argument is "add": + add location of targeted block to {fma.special::*} + send "&aBlock Added" + stop + argument is "lava": + loop {fma.special::*}: + set block at loop-value to lava + wait 3 seconds + loop {fma.special::*}: + set block at loop-value to coal block + argument is "ice": + loop {fma.special::*}: + set block at loop-value to ice + wait 3 seconds + loop {fma.special::*}: + set block at loop-value to coal block + argument is "water": + loop {fma.special::*}: + set block at loop-value to water + wait 3 seconds + loop {fma.special::*}: + set block at loop-value to coal block + argument is "soulsand": + loop {fma.special::*}: + set block at loop-value to soul sand + wait 3 seconds + loop {fma.special::*}: + set block at loop-value to coal block + argument is "cobweb": + loop {fma.special::*}: + set block at loop-value to cobweb + wait 3 seconds + loop {fma.special::*}: + set block at loop-value to coal block + argument is "music": + loop all players: + {chunk.live.%chunk at location of loop-player%} is "MobArena-BattleFloor": + send "&aComposition..." to loop-player + loop {fma.special::*}: + set block at loop-value to note block + wait 24 seconds + loop all players: + {chunk.live.%chunk at location of loop-player%} is "MobArena-BattleFloor": + send "&aMusic Begin..." to loop-player + loop {fma.special::*}: + set block above block above loop-value to locked chest:15 + loop 150 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 2 ticks + wait 3 seconds + loop {fma.special::*}: + set block at loop-value to coal block + set block below loop-value to air + set block above block above loop-value to air + argument is "lever": + loop {fma.special::*}: + set block at loop-value to redstone lamp + set block above loop-value to lever + wait 15 seconds + loop {fma.special::*}: + set block at loop-value to coal block + set block above loop-value to air + argument is "stack": + loop {fma.special::*}: + set block above loop-value to redstone block + wait 1 tick + wait 1 second + loop {fma.special::*}: + set block above block above loop-value to redstone lamp + wait 1 tick + wait 3 seconds + loop {fma.special::*}: + set block above block above loop-value to lava + wait 0.5 seconds + loop {fma.special::*}: + set block above block above loop-value to redstone lamp + loop {fma.special::*}: + set block above loop-value to air + wait 1 tick + wait 1 seconds + loop {fma.special::*}: + set block above block above loop-value to air + wait 1 tick + argument is "dance": + loop {fma.special::*}: + set block at loop-value to redstone lamp + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + loop 60 times: + set {_ran} to random element of {fma.special::*} + set block below {_ran} to redstone block + wait 0.55 seconds + loop {fma.special::*}: + set block below loop-value to air + set block at loop-value to coal block + +on drop: + {chunk.live.%chunk at location of player%} is "MobArena-Winner": + set {_ran} to random element of {twerk.drop::*} + drop item at block below {_ran} + delete item + +command /twerkadd: + permission: obam.admin + trigger: + add location of targeted block to {twerk.drop::*} + send "&aBlock added" + +command /specialtestsword: + permission: obam.admin + trigger: + give diamond sword named "&cSpecial Test Sword" to player + +on damage: + attacker's tool is diamond sword named "&cSpecial Test Sword": + attacker has permission "obam.admin": + {chunk.live.%chunk at location of attacker%} is "MobArena-BattleFloor": + loop all entities: + {chunk.live.%chunk at location of loop-entity%} is "MobArena-BattleFloor": + loop-entity is not a player + kill loop-entity + +on sign change: + player is op + line 1 of block is "fmahelm": + set line 2 of block to "FMA Helmet" + set line 1 of block to "Click to get" + set line 3 of block to "500 Tickets" + line 1 of block is "fmachest": + set line 1 of block to "Click to get" + set line 2 of block to "FMA Chestplate" + set line 3 of block to "500 Tickets" + line 1 of block is "fmapants": + set line 1 of block to "Click to get" + set line 2 of block to "FMA Leggings" + set line 3 of block to "500 Tickets" + line 1 of block is "fmaboots": + set line 1 of block to "Click to get" + set line 2 of block to "FMA Boots" + set line 3 of block to "500 Tickets" + line 1 of block is "fmasword": + set line 1 of block to "Click to get" + set line 2 of block to "FMA Sword" + set line 3 of block to "500 Tickets" + line 1 of block is "fmabow": + set line 1 of block to "Click to get" + set line 2 of block to "FMA Bow" + set line 3 of block to "500 Tickets" + line 1 of block is "fmaarrows": + set line 1 of block to "Click to get" + set line 2 of block to "FMA Arrows" + set line 3 of block to "(150)" + set line 4 of block to "500 Tickets" + line 2 of block is "fmafood": + set line 1 of block to "Click to get" + set line 2 of block to "FMA Apples" + set line 3 of block to "(150)" + set line 4 of block to "500 Tickets" + +on right click on sign: + line 1 of block is "Click to get": + set {_bal} to player's balance + {_bal} is less than 500: + send "&cYou do not have enough Tickets!" + stop + player doesn't have space for sponge: + send "&aYou do not have room!" + stop + line 2 of block is "FMA Helmet": + give player diamond helmet of protection 3 and unbreaking 3 named "&7FMA Helmet" + remove 500 from player's balance + send "&aYou have spent 500 tickets on &eFMA Helmet" + line 2 of block is "FMA Chestplate": + give player diamond chestplate of protection 3 and unbreaking 3 named "&7FMA Chestplate" + remove 500 from player's balance + send "&aYou have spent 500 tickets on &eFMA Chestplate" + line 2 of block is "FMA Leggings": + give player diamond leggings of protection 3 and unbreaking 3 named "&7FMA Leggings" + remove 500 from player's balance + send "&aYou have spent 500 tickets on &eFMA Leggings" + line 2 of block is "FMA Boots": + give player diamond boots of protection 3 and unbreaking 3 named "&7FMA Boots" + remove 500 from player's balance + send "&aYou have spent 500 tickets on &eFMA Boots" + line 2 of block is "FMA Sword": + give player diamond sword of knockback 1 and unbreaking 3 and sharpness 2 named "&7FMA Sword" + remove 500 from player's balance + send "&aYou have spent 500 tickets on &EFMA Sword" + line 2 of block is "FMA Bow": + give player bow of punch 2 and power 3 and unbreaking 1 named "&7FMA Bow" + remove 500 from player's balance + send "&aYou have spent 500 tickets on &eFMA Bow" + line 2 of block is "FMA Arrows": + give player 150 arrows named "&7FMA Arrow" + remove 500 from player's balance + send "&aYou have spent 500 tickets on &eFMA Arrows" + line 2 of block is "FMA Apples": + give player 150 apples named "&7FMA Apple" + remove 500 from player's balance + send "&aYou have spent 500 tickets on &eFMA Apples" + +command /fmagear []: + permission: obam.smod + trigger: + player doesn't have space for sponge: + send "&aYou do not have room!" + stop + argument 1 is "helmet": + give player diamond helmet of protection 3 and unbreaking 3 named "&7FMA Helmet" + argument 1 is "chest": + give player diamond chestplate of protection 3 and unbreaking 3 named "&7FMA Chestplate" + argument 1 is "leggings": + give player diamond leggings of protection 3 and unbreaking 3 named "&7FMA Leggings" + argument 1 is "boots": + give player diamond boots of protection 3 and unbreaking 3 named "&7FMA Boots" + argument 1 is "sword": + give player diamond sword of knockback 1 and unbreaking 3 and sharpness 2 named "&7FMA Sword" + argument 1 is "bow": + give player bow of punch 2 and power 3 and unbreaking 1 named "&7FMA Bow" + argument 1 is "arrows": + give player 64 arrows named "&7FMA Arrow" + argument 1 is "apples": + give player 64 apples named "&7FMA Apple" + send "&aHere is your thing" diff --git a/On Server Files/Fronts/Fronts/heads.g.sk b/On Server Files/Fronts/Fronts/heads.g.sk new file mode 100644 index 0000000..ea1bdc0 --- /dev/null +++ b/On Server Files/Fronts/Fronts/heads.g.sk @@ -0,0 +1,69 @@ +on death of a player: + attacker is a player: + attacker is not victim: + add skull of victim to drops + set {_item.1} to "&3Death Note - &eVICTIM" + set {_item.2} to "&7This note shows that &eATTACKER&7 took the||&7life of &eVICTIM&7 on &eDATE CST" + replace "VICTIM" in {_item.1} with "%victim%" + replace "VICTIM" in {_item.2} with "%victim%" + replace "ATTACKER" in {_item.2} with "%attacker%" + replace "DATE" in {_item.2} with "%now%" + add paper named {_item.1} with lore {_item.2} to drops + +on death of a living entity: + attacker is a player: + chance of 0.5%: + victim is a creeper: + add creeper head to drops + victim is a skeleton: + add skeleton head to drops + victim is a zombie: + add zombie head to drops + victim is a blaze: + set {_player} to "MHF_Blaze" parsed as offline player + add skull of {_player} to drops + victim is a cave spider: + set {_player} to "MHF_CaveSpider" parsed as offline player + add skull of {_player} to drops + victim is a enderman: + set {_player} to "MHF_Enderman" parsed as offline player + add skull of {_player} to drops + victim is a zombie pigman: + set {_player} to "MHF_PigZombie" parsed as offline player + add skull of {_player} to drops + victim is a ghast: + set {_player} to "MHF_Ghast" parsed as offline player + add skull of {_player} to drops + victim is a chicken: + set {_player} to "MHF_Chicken" parsed as offline player + add skull of {_player} to drops + victim is a cow: + set {_player} to "MHF_Cow" parsed as offline player + add skull of {_player} to drops + victim is magma cube: + set {_player} to "MHF_LavaSlime" parsed as offline player + add skull of {_player} to drops + victim is iron golem: + set {_player} to "MHF_Golem" parsed as offline player + add skull of {_player} to drops + victim is ocelot: + set {_player} to "MHF_Ocelot" parsed as offline player + add skull of {_player} to drops + victim is pig: + set {_player} to "MHF_Pig" parsed as offline player + add skull of {_player} to drops + victim is sheep: + set {_player} to "MHF_Sheep" parsed as offline player + add skull of {_player} to drops + victim is spider: + set {_player} to "MHF_Spider" parsed as offline player + add skull of {_player} to drops + victim is squid: + set {_player} to "MHF_Squid" parsed as offline player + add skull of {_player} to drops + victim is slime: + set {_player} to "MHF_Slime" parsed as offline player + add skull of {_player} to drops + victim is villagers: + set {_player} to "MHF_Villager" parsed as offline player + add skull of {_player} to drops diff --git a/On Server Files/Fronts/Fronts/heal.g.sk b/On Server Files/Fronts/Fronts/heal.g.sk new file mode 100644 index 0000000..39a350b --- /dev/null +++ b/On Server Files/Fronts/Fronts/heal.g.sk @@ -0,0 +1,46 @@ +#heal + +variables: + {heal.%player%} = false + +command /heal: + executable by: players + permission: obam.free + trigger: + {heal.%uuid of player%} is not set: + set {heal.%uuid of player%} to now + add 13 hours to {heal.%uuid of player%} + set {_check} to difference between {heal.%uuid of player%} and now + {_check} is less than 12 hours: + set {_check} to difference between {heal.%uuid of player%} and now + set {_hold} to difference between now and now + add 12 hours to {_hold} + subtract {_check} from {_hold} + send "&cYou must wait at least &e%{_hold}% &cto use this command!" + stop + {abstain.%uuid of player%} is false: + send "&cOnly abstaining players can use this feature!" + stop + {abstian.%uuid of player%} is "wait pvp" or "wait abstain": + send "&cYou can not use this feature in transition!" + stop + {abstain.%uuid of player%} is true: + set {_bal} to player's balance + {_bal} is less than 2000: + send "&cYou do not have enough tickets to do this!" to player + stop + remove 2000 from player's balance + set {heal.%uuid of player%} to now + send "&aYou have been healed." to player + set player's health to 10 + set player's hunger to 10 + apply regeneration 2 to player for 30 seconds + apply fire resistance to player for 30 seconds + apply resistance 2 to player for 30 seconds + apply absorption 2 to player for 30 seconds + player has wither: + remove wither from player + player has poison: + remove poison from player + send "&aYou have &e%player's balance%&a remaining" to player + stop \ No newline at end of file diff --git a/On Server Files/Fronts/Fronts/hottouch.g.sk b/On Server Files/Fronts/Fronts/hottouch.g.sk new file mode 100644 index 0000000..91eb88a --- /dev/null +++ b/On Server Files/Fronts/Fronts/hottouch.g.sk @@ -0,0 +1,101 @@ +options: + smeltpick: diamond pickaxe named "&a&b&k&a&3HotTouch Pickaxe" with lore "&6A pickaxe forged from the heart of the Nether||&6with an intense heat to smelt ores while mining.|| ||&2StickyItem ©" + smeltaxe: diamond axe named "&a&b&k&a&3HotTouch Axe" with lore "&6An axe forged from the heart of the Nether||&6with an intense heat to cook logs into charcoal||&6while chopping.|| ||&2StickyItem ©" + smeltshovel: diamond shovel named "&a&b&k&a&3HotTouch Shovel" with lore "&6A shovel forged from the heart of the Nether||&6with an intense heat to cook sand clay and||&6cactus while digging.|| ||&2StickyItem ©" + +command /hottouchpurchase : + permission: obam.free + trigger: + argument is "pick": + set {_bal} to player's balance + {_bal} is less than 7500: + send "&cYou do not have enough tickets!" + stop + give player 1 {@smeltpick} + remove 7500 from player's balance + send "&aYou have purchased a &eHotTouch Pick&a for &e7500 Tickets" + send "&aYour balance is now &e%player's balance%" + argument is "shovel": + set {_bal} to player's balance + {_bal} is less than 10000: + send "&cYou do not have enough tickets!" + stop + give player 1 {@smeltshovel} + remove 10000 from player's balance + send "&aYou have purchased a &eHotTouch Shovel&a for &e10000 Tickets" + send "&aYour balance is now &e%player's balance%" + argument is "axe": + set {_bal} to player's balance + {_bal} is less than 5000: + send "&cYou do not have enough tickets!" + stop + give player 1 {@smeltaxe} + remove 5000 from player's balance + send "&aYou have purchased a &eHotTouch Axe&a for &e5000 Tickets" + send "&aYour balance is now &e%player's balance%" + +on break of iron ore or gold ore or netherrack or cobblestone: + name of player's tool is "&a&b&k&a&3HotTouch Pick" or "&a&b&k&a&3HotTouch Pickaxe": + event-block is iron ore: + cancel event + delete event-block + drop 1 iron ingot at location of event-block + damage player's tool by 1 + event-block is gold ore: + cancel event + delete event-block + drop 1 gold ingot at location of event-block + damage player's tool by 1 + event-block is netherrack: + cancel event + delete event-block + drop 1 nether brick item at location of event-block + damage player's tool by 1 + event-block is cobblestone: + cancel event + delete event-block + drop 1 stone at location of event-block + damage player's tool by 1 + +on break of sand or clay block or cactus or red sand: + name of player's tool is "&a&b&k&a&3HotTouch Shovel": + event-block is sand or red sand: + cancel event + delete event-block + drop 1 glass at location of event-block + damage player's tool by 1 + event-block is clay block: + cancel event + delete event-block + drop 1 hardened clay at location of event-block + damage player's tool by 1 + event-block is cactus: + cancel event + delete event-block + drop 1 cactus green at location of event-block + damage player's tool by 1 + +on break of cactus or oak wood or birch wood or spruce wood or jungle wood or acacia wood or dark oak wood: + name of player's tool is "&a&b&k&a&3HotTouch Axe": + event-block is cactus: + cancel event + delete event-block + drop 1 cactus green at location of event-block + damage player's tool by 1 + event-block is oak wood or birch wood or spruce wood or jungle wood or acacia wood or dark oak wood: + cancel event + set {_ran} to random integer between 1 and 6 + delete event-block + drop {_ran} of charcoal at location of event-block + damage player's tool by 1 + +command /ht : + permission: obam.smod + trigger: + argument is "pick": + give player {@smeltpick} + argument is "axe": + give player {@smeltaxe} + argument is "shovel": + give player {@smeltshovel} + send "&aHere is your thing" \ No newline at end of file diff --git a/On Server Files/Fronts/Fronts/landclaim.g.sk b/On Server Files/Fronts/Fronts/landclaim.g.sk new file mode 100644 index 0000000..84c28cc --- /dev/null +++ b/On Server Files/Fronts/Fronts/landclaim.g.sk @@ -0,0 +1,908 @@ +variables: + {db_claimedland.%uuid of player%} = 0 + {availableland.live.%uuid of player%} = 1 + {alert.fronts.%uuid of player%} = true + +on join: + {db_prizecheck.%uuid of player%} is set: + add {db_prizecheck.%uuid of player%} to {db_availableland.%uuid of player%} + send "&aYou have had &e%{db_prizecheck.%uuid of player%}%&a added to your Fronts balance!" to player + clear {db_prizecheck.%uuid of player%} + {played.%player%} is set: + set {played.%uuid of player%} to {played.%player%} + delete {played.%player%} + {played.%uuid of player%} is not set: + set {played.%uuid of player%} to true + {db_claimedland.%player%} is set: + set {db_claimedland.%uuid of player%} to {db_claimedland.%player%} + delete {db_claimedland.%player%} + {db_availableland.%player%} is set: + set {db_availableland.%uuid of player%} to {db_availableland.%player%} + delete {db_availableland.%player%} + {db_chunks.claim.count.%player%} is set: + set {db_chunks.claim.count.%uuid of player%} to {db_chunks.claim.count.%player%} + delete {db_chunks.claim.count.%player%} + {owned.chunks.%player%::*} is set: + loop {owned.chunks.%player%::*}: + set {chunk.live.%loop-index%} to uuid of player + add loop-index to {owned.chunks.%uuid of player%::*} + delete {land.live.%loop-index%::*} + delete {owned.chunks.%player%::*} + {loc.chunks.%player%::*} is set: + loop {loc.chunks.%player%::*}: + set {loc.chunks.%uuid of player%::%loop-index%} to loop-value + delete {loc.chunks.%player%::*} + {home.%player%.wild} is set: + set {home.%uuid of player%.wild} to {home.%player%.wild} + delete {home.%player%.wild} + {first.claim.%player%} is set: + set {first.claim.%uuid of player%} to {first.claim.%player%} + delete {first.claim.%player%} + +command /movedata: + permission: obam.admin + trigger: + loop {db_channel.global::*}: + set {db_claimedland.%loop-value%} to {claimedland.%loop-value%} + set {db_availableland.%loop-value%} to {availableland.%loop-value%} + +every 1 tick: + loop all players: + {chunk.live.%chunk at location of loop-player%} is not set: + {alert.notify.owner.%loop-player%} is not "Unclaimed": + {alert.fronts.%uuid of loop-player%} is true: + send "&a&lUnclaimed Front" to loop-player + set {alert.notify.owner.%loop-player%} to "Unclaimed" + {alert.notify.owner.%loop-player%} is not {chunk.live.%chunk at location of loop-player%}: + {chunk.live.%chunk at location of loop-player%} is not set: + {alert.notify.owner.%loop-player%} is not "Unclaimed": + {alert.fronts.%uuid of loop-player%} is true: + send "&a&lUnclaimed Front" to loop-player + set {alert.notify.owner.%loop-player%} to "Unclaimed" + {chunk.live.%chunk at location of loop-player%} is set: + {alert.fronts.%uuid of loop-player%} is true: + send "&a&lFront Claimed by: &e%{db_master.uuid::%{chunk.live.%chunk at location of loop-player%}%}%" to loop-player + set {alert.notify.owner.%loop-player%} to {chunk.live.%chunk at location of loop-player%} + {alert.notify.owner.%loop-player%} is not set: + {chunk.live.%chunk at location of loop-player%} is not set: + {alert.fronts.%uuid of loop-player%} is true: + send "&a&lUnclaimed Front" to loop-player + set {alert.notify.owner.%loop-player%} to "Unclaimed" + +#startfold +command /front [] [] []: + permission: obam.free + description: For all land related commands + usage: &c/front (claim, unclaim, add, remove, name) + aliases: /f + trigger: + argument 1 is not set: + message "&3-[&a&lFronts Claimed&3]-" + message "&6 %{db_claimedland.%uuid of player%}%" + send "&3-[&a&lPurchased Slots&3]-" to player + send "&6 %{db_availableland.%uuid of player%}%" + send "&3-[&a&lAvailible Slots&3]-" to player + send "&6 %{db_availableland.%uuid of player%} - {db_claimedland.%uuid of player%}%" to player + stop + #subfold @help + argument 1 is "help" or "h": + message "&3--[&6&lFronts Help&3]--" + message "&cRequired = [] Optional = ()" + message "&a * /front or f" + message "&7 Shows your land claiming statistics" + message "&a * /front:f [Info:i/Stats:s]" + message "&7 Shows information about the land you are standing in" + message "&a * /front:f [Claim:c/Unclaim:u]" + message "&7 Claim/Unclaim the land you are standing at" + player has permission "land.bypass": + message "&a * /land bypass" + message "&7 Bypass all claimed land" + stop + #subfold @stats + argument 1 is "stats" or "info" or "s" or "i": + {chunk.live.%chunk at location of player%} is set: + {chunk.live.%chunk at location of player%} is not "Town": + message "&3--[&lFront Owner&3]--" + message "&a * %{db_master.uuid::%{chunk.live.%chunk at location of loop-player%}%}%" + send "&3---[&lFront Name&3]--" + {chunk.name.%chunk at location of player%} is not set: + send "&a * Name not set" + stop + send "&a * %{chunk.name.%chunk at location of player%}%" + stop + message "&6This area is not currently owned by a player." + stop + #subfold @error + argument 1 is "error": + player has permission "land.bypass": + message "&cIncorrect usage. Try '/front [claim, unclaim, name, bypass] (player)'" + player does not have permission "land.bypass": + message "&cIncorrect usage. Try '/front [claim, unclaim, name] (player)'" + message "&7 ()'s = Optional, []'s = Required." + stop + #subfold @claim + argument 1 is "claim" or "c": + {chunk.live.%chunk at location of player%} is set: + message "&cThis land has already been claimed." + stop + loop blocks in radius 50 of player: + player cannot build at the loop-block: + message "&cYou can not claim land in this area." + stop + {db_claimedland.%uuid of player%} is greater than or equal to {db_availableland.%uuid of player%}: + send "&cYou do not have enough Availiable land for this action! Please purchase more from &7Fronts Ferdinand &cat Town Spawn!" to player + stop + {first.claim.%uuid of player%} is true: + set {_bal} to player's balance + {_bal} is less than 2000: + send "&cYou do not have enough tickets to do this!" to player + stop + {db_chunks.claim.count.%uuid of player%} is not set: + set {db_chunks.claim.count.%uuid of player%} to 0 + add 1 to {db_chunks.claim.count.%uuid of player%} + set {chunk.live.%chunk at location of player%} to uuid of player + add chunk at location of player to {owned.chunks.%uuid of player%::*} + set {chunk.name.%chunk at location of player%} to "%{db_chunks.claim.count.%uuid of player%}%" + set {loc.chunks.%uuid of player%::%chunk at location of player%} to location of player + message "&6You now own this Front." + {db_claimedland.%uuid of player%} is 0: + set {home.%uuid of player%.wild} to location of player + add 1 to {db_claimedland.%uuid of player%} + {first.claim.%uuid of player%} is true: + remove 2000 from player's balance + send "&aYou have used &e2000 Tickets&a to claim this Front" to player + send "&aYou have &e%player's balance%&a remaining" to player + stop + send "&aThis was your first land claim. It was free. The next one will cost &e2000 Tickets!" to player + set {first.claim.%uuid of player%} to true + stop + #subfold @unclaim + argument 1 is "unclaim" or "u": + {chunk.live.%chunk at location of player%} is not set: + message "&cThis land has not been claimed." + stop + {chunk.live.%chunk at location of player%} is not uuid of player: + message "&cYou do not own this land." + stop + remove 1 from {db_claimedland.%uuid of player%} + set {_chunk} to chunk at location of player + chunk at location of {home.%uuid of player%.wild} is chunk at location of player: + clear {home.%uuid of player%.wild} + send "&cYour home location has been cleared!" to player + clear {chunk.live.%chunk at location of player%} + clear {chunk.name.%chunk at location of player%} + delete {loc.chunks.%uuid of player%::%chunk at location of player%} + loop {flags.%chunk at location of player%::*}: + loop {flags.%chunk at location of player%::%loop-index%::*}: + delete {flags.%chunk at location of player%::%loop-index-1%::%loop-index-2%} + delete {flags.%chunk at location of player%::%loop-index%} + loop {owned.chunks.%uuid of player%::*}: + chunk at location of player is {owned.chunks.%uuid of player%::%loop-index%} + delete {owned.chunks.%uuid of player%::%loop-index%} + message "&6You have unclaimed this Front." + stop + #subfold @bypass + argument 1 is "bypass": + player has permission "land.bypass": + {bypassland.%uuid of player%} is true: + clear {bypassland.%uuid of player%} + message "&6You have finished bypassing claimed land." + stop + set {bypassland.%uuid of player%} to true + message "&6You can now bypass claimed land." + stop + message "&cYou do not have permission to use this command." + stop + #subfold @name + argument 1 is "name" or "n": + {chunk.live.%chunk at location of player%} is not set: + message "&cThis land has not been claimed." + stop + {chunk.live.%chunk at location of player%} is not uuid of player: + {flags.%chunk at location of player%::admin::everyone} is not set: + set {flags.%chunk at location of player%::admin::everyone} to false + {flags.%chunk at location of player%::admin::%uuid of player%} is not set: + set {flags.%chunk at location of player%::admin::%uuid of player%} to false + {flags.%chunk at location of player%::admin::everyone} is false: + {flags.%chunk at location of player%::admin::%uuid of player%} is false: + send "&cYou do not have permission to do this!" + stop + argument 2 is "set": + send "&cThat is an invalid name!" to player + stop + argument 2 is not set: + send "&cPlease choose a name!" to player + stop + message "&aYou have named this Front to &e%argument 2%" + set {chunk.name.%chunk at location of player%} to "%argument 2%" + set {loc.chunks.%uuid of player%::%chunk at location of player%} to location of player + stop + #subfold @list + argument 1 is "list" or "l": + argument 2 is not set: + loop {loc.chunks.%uuid of player%::*}: + set {_loc} to {loc.chunks.%uuid of player%::%loop-index%} + set {_chunk} to chunk at location of {_loc} + set {_chunk.name} to {chunk.name.%{_chunk}%} + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {chunk.name.%{_chunk}%} is not set: + set {chunk.name.%{_chunk}%} to "%{_count}%" + set {_chunk.name} to {chunk.name.%{_chunk}%} + {_chunk.name} is not set: + set {_chunk.name} to "&cNot Named" + send "&a%{_count}%.......%{_chunk}%....%{_chunk.name}%" to player + stop + argument 2 is set: + message "You can only list your own fronts at the moment." + stop + #subfold @travel + argument 1 is "travel" or "t": + argument 3 is not set: + argument 2 is "set": + {chunk.live.%chunk at location of player%} is not set: + message "&cThis land has not been claimed." + stop + {chunk.live.%chunk at location of player%} is not uuid of player: + message "&cThis is not your land!" + stop + set {loc.chunks.%uuid of player%::%chunk at location of player%} to location of player + send "&aYour travel location for this area, has been moved" to player + stop + {chunk.live.%chunk at location of player%} is not set: + message "&cYou can only do this in &eTown&c, or on your land!" + stop + {chunk.live.%chunk at location of player%} is not uuid of player: + {chunk.live.%chunk at location of player%} is not "Town": + {flags.%chunk at location of player%::teleport::everyone} is not set: + set {flags.%chunk at location of player%::teleport::everyone} to false + {flags.%chunk at location of player%::teleport::everyone} is false: + {flags.%chunk at location of player%::teleport::%uuid of player%} is not set: + set {flags.%chunk at location of player%::teleport::%uuid of player%} to false + {flags.%chunk at location of player%::teleport::%uuid of player%} is false: + message "&cYou can only do this in &eTown&c, or on your land!" + stop + loop {loc.chunks.%uuid of player%::*}: + set {_loc} to loop-value + set {_chunk} to chunk at location of {_loc} + set {_chunk.name} to {chunk.name.%{_chunk}%} + {_chunk.name} is argument 2: + send "&aTeleporting to &e%argument 2%" to player + teleport player to {_loc} + stop + send "&cYou do not have a Front named &e%argument 2% &cin this world!" + stop + argument 3 is set: + {chunk.live.%chunk at location of player%} is not set: + message "&cYou can only do this in &eTown&c, or on your land!" + stop + {chunk.live.%chunk at location of player%} is not uuid of player: + {chunk.live.%chunk at location of player%} is not "Town": + {flags.%chunk at location of player%::teleport::everyone} is not set: + set {flags.%chunk at location of player%::teleport::everyone} to false + {flags.%chunk at location of player%::teleport::everyone} is false: + {flags.%chunk at location of player%::teleport::%player%} is not set: + set {flags.%chunk at location of player%::teleport::%player%} to false + {flags.%chunk at location of player%::teleport::%player%} is false: + message "&cYou can only do this in &eTown&c, or on your land!" + stop + loop {loc.chunks.%{db_name.%argument 3%}%::*}: + set {_loc} to loop-value + set {_chunk} to chunk at location of {_loc} + set {_chunk.name} to {chunk.name.%{_chunk}%} + {_chunk.name} is argument 2: + {flags.%{_chunk}%::teleport::everyone} is not set: + set {flags.%{_chunk}%::teleport::everyone} to false + {flags.%{_chunk}%::teleport::%uuid of player%} is not set: + set {flags.%{_chunk}%::teleport::%uuid of player%} to false + {flags.%{_chunk}%::teleport::everyone} is false: + {flags.%{_chunk}%::teleport::%uuid of player%} is false + send "&cYou do not have permission to go here!" to player + stop + send "&aTeleporting to &e%argument 2%" to player + teleport player to {_loc} + stop + send "&c%argument 3% does not have a Front named &e%argument 2% &cin this world!" + stop + argument 1 is "alert": + {alert.fronts.%uuid of player%} is not set: + send "&aFront alerts are now &eoff" + set {alert.fronts.%uuid of player%} to false + stop + {alert.fronts.%uuid of player%} is false: + send "&aFront alerts are now &eon" + set {alert.fronts.%uuid of player%} to true + stop + {alert.fronts.%uuid of player%} is true: + send "&aFront alerts are now &eoff" + set {alert.fronts.%uuid of player%} to false + stop + else: + make player execute command "f error" + stop +#endfold +on quit: + {bypassland.%uuid of player%} is true: + clear {bypassland.%uuid of player%} + +on place: + {bypassland.%uuid of player%} is true: + stop + {chunk.live.%chunk at location of block%} is set: + block is not tnt or water or lava: + {flags.%chunk at location of block%::build::everyone} is true: + stop + {flags.%chunk at location of block%::build::%uuid of player%} is true: + stop + message "&cThis land is owned by %{db_master.uuid::%{chunk.live.%chunk at location of block%}%}%." + cancel event + +on break: + event-block is not water or lava or milk: + {bypassland.%uuid of player%} is true: + stop + {chunk.live.%chunk at location of event-block%} is set: + {flags.%chunk at location of event-block%::build::everyone} is true: + set {_perm} to true + {flags.%chunk at location of event-block%::build::%uuid of player%} is true: + set {_perm} to true + {_perm} is true: + event-block is a chest or a furnace or a dispenser or a hopper or a brewing stand or a dropper or a trapped chest or a beacon: + set {_type} to checked + {flags.%chunk at location of event-block%::container::everyone} is true: + stop + {flags.%chunk at location of event-block%::container::%uuid of player%} is true: + stop + event-block is a chest: + {flags.%chunk at location of event-block%::conchest::everyone} is true: + stop + {flags.%chunk at location of event-block%::conchest::%uuid of player%} is true: + stop + event-block is a furnace: + {flags.%chunk at location of event-block%::confurnace::everyone} is true: + stop + {flags.%chunk at location of event-block%::confurnace::%uuid of player%} is true: + stop + event-block is a dispenser: + {flags.%chunk at location of event-block%::condispenser::everyone} is true: + stop + {flags.%chunk at location of event-block%::condispenser::%uuid of player%} is true: + stop + event-block is a hopper: + {flags.%chunk at location of event-block%::conhopper::everyone} is true: + stop + {flags.%chunk at location of event-block%::conhopper::%uuid of player%} is true: + stop + event-block is a brewing stand: + {flags.%chunk at location of event-block%::conbrewing::everyone} is true: + stop + {flags.%chunk at location of event-block%::conbrewing::%uuid of player%} is true: + stop + event-block is a dropper: + {flags.%chunk at location of event-block%::condropper::everyone} is true: + stop + {flags.%chunk at location of event-block%::condropper::%uuid of player%} is true: + stop + event-block is a trapped chest: + {flags.%chunk at location of event-block%::contrapped::everyone} is true: + stop + {flags.%chunk at location of event-block%::contrapped::%uuid of player%} is true: + stop + event-block is a beacon: + {flags.%chunk at location of event-block%::conbeacon::everyone} is true: + stop + {flags.%chunk at location of event-block%::conbeacon::%uuid of player%} is true: + stop + event-block is a door or a anvil or a note block or a lever or a stone button or a wood button or a jukebox or a trapdoor or a fence gate or a enchantment table or a redstone comparator or a repeater: + set {_type} to checked + {flags.%chunk at location of event-block%::use::everyone} is true: + stop + {flags.%chunk at location of event-block%::use::%uuid of player%} is true: + stop + event-block is a door: + {flags.%chunk at location of event-block%::usedoor::everyone} is true: + stop + {flags.%chunk at location of event-block%::usedoor::%uuid of player%} is true: + stop + event-block is a anvil: + {flags.%chunk at location of event-block%::useanvil::everyone} is true: + stop + {flags.%chunk at location of event-block%::useanvil::%uuid of player%} is true: + stop + event-block is a note block: + {flags.%chunk at location of event-block%::usenote::everyone} is true: + stop + {flags.%chunk at location of event-block%::usenote::%uuid of player%} is true: + stop + event-block is a jukebox: + {flags.%chunk at location of event-block%::usejuke::everyone} is true: + stop + {flags.%chunk at location of event-block%::usejuke::%uuid of player%} is true: + stop + event-block is a lever: + {flags.%chunk at location of event-block%::uselever::everyone} is true: + stop + {flags.%chunk at location of event-block%::uselever::%uuid of player%} is true: + stop + event-block is a stone button: + {flags.%chunk at location of event-block%::usestonebutton::everyone} is true: + stop + {flags.%chunk at location of event-block%::usestonebutton::%uuid of player%} is true: + stop + event-block is a wood button: + {flags.%chunk at location of event-block%::usewoodbutton::everyone} is true: + stop + {flags.%chunk at location of event-block%::usewoodbutton::%uuid of player%} is true: + stop + event-block is a trapdoor: + {flags.%chunk at location of event-block%::usetrap::everyone} is true: + stop + {flags.%chunk at location of event-block%::usetrap::%uuid of player%} is true: + stop + event-block is a fence gate: + {flags.%chunk at location of event-block%::usefence::everyone} is true: + stop + {flags.%chunk at location of event-block%::usefence::%uuid of player%} is true: + stop + event-block is a enchantment table: + {flags.%chunk at location of event-block%::useenchant::everyone} is true: + stop + {flags.%chunk at location of event-block%::useenchant::%uuid of player%} is true: + stop + event-block is a redstone comparator: + {flags.%chunk at location of event-block%::usecomparator::everyone} is true: + stop + {flags.%chunk at location of event-block%::usecomparator::%uuid of player%} is true: + stop + event-block is a repeater: + {flags.%chunk at location of event-block%::userepeater::everyone} is true: + stop + {flags.%chunk at location of event-block%::userepeater::%uuid of player%} is true: + stop + {_type} is not set: + stop + message "&cThis land is owned by %{db_master.uuid::%{chunk.live.%chunk at location of event-block%}%}%." + cancel event + +on place of tnt: + {bypassland.%uuid of player%} is true: + stop + loop blocks in radius 10 of block: + {chunk.live.%chunk at location of loop-block%} is set: + {flags.%chunk at location of loop-block%::fronttnt} is false: + cancel event + message "&cYou can not use explosives here." + stop + +on explode: + entity is creeper + loop blocks in radius 10 of entity: + {chunk.live.%chunk at location of loop-block%} is set: + cancel event + set {_safe} to true + {_safe} is set: + create safe explosion of force 3 at event-location + +on damage of a entity: + victim is a chicken or a cow or a mooshroom or a horse or a sheep or a pig or a wolf or a ocelot or a villager or a squid: + attacker is a player: + victim is a cow: + attacker's tool is a empty bucket: + stop + loop blocks in radius 3 of victim: + {bypassland.%uuid of attacker%} is true: + stop + {chunk.live.%chunk at location of loop-block%} is not attacker: + {flags.%chunk at location of loop-block%::entity::everyone} is not set: + set {flags.%chunk at location of loop-block%::entity::everyone} to false + {flags.%chunk at location of loop-block%::entity::%uuid of attacker%} is not set: + set {flags.%chunk at location of loop-block%::entity::%uuid of attacker%} to false + {flags.%chunk at location of loop-block%::entity::everyone} is false: + {flags.%chunk at location of loop-block%::entity::%uuid of attacker%} is true: + stop + {flags.%chunk at location of loop-block%::entity::everyone} is true: + stop + send "&cThis area is protected!" to attacker + cancel event + +on right click on lead: + {bypassland.%uuid of player%} is true: + stop + {chunk.live.%chunk at location of event-player%} is set: + {chunk.live.%chunk at location of event-player%} is not event-player: + send "&cThis area is protected!" to event-player + cancel event + stop trigger + +on right click on a door or a anvil or a note block or a lever or a stone button or a wood button or a jukebox or a trapdoor or a fence gate or a enchantment table or a redstone comparator or a repeater or a chest or a furnace or a dispenser or a hopper or a brewing stand or a dropper or a trapped chest or a beacon: + {bypassland.%uuid of player%} is true: + stop + {chunk.live.%chunk at location of event-block%} is set: + event-block is a chest or a furnace or a dispenser or a hopper or a brewing stand or a dropper or a trapped chest or a beacon: + {flags.%chunk at location of event-block%::container::everyone} is true: + stop + {flags.%chunk at location of event-block%::container::%uuid of player%} is true: + stop + event-block is a chest: + {flags.%chunk at location of event-block%::conchest::everyone} is true: + stop + {flags.%chunk at location of event-block%::conchest::%uuid of player%} is true: + stop + event-block is a furnace: + {flags.%chunk at location of event-block%::confurnace::everyone} is true: + stop + {flags.%chunk at location of event-block%::confurnace::%uuid of player%} is true: + stop + event-block is a dispenser: + {flags.%chunk at location of event-block%::condispenser::everyone} is true: + stop + {flags.%chunk at location of event-block%::condispenser::%uuid of player%} is true: + stop + event-block is a hopper: + {flags.%chunk at location of event-block%::conhopper::everyone} is true: + stop + {flags.%chunk at location of event-block%::conhopper::%uuid of player%} is true: + stop + event-block is a brewing stand: + {flags.%chunk at location of event-block%::conbrewing::everyone} is true: + stop + {flags.%chunk at location of event-block%::conbrewing::%uuid of player%} is true: + stop + event-block is a dropper: + {flags.%chunk at location of event-block%::condropper::everyone} is true: + stop + {flags.%chunk at location of event-block%::condropper::%uuid of player%} is true: + stop + event-block is a trapped chest: + {flags.%chunk at location of event-block%::contrapped::everyone} is true: + stop + {flags.%chunk at location of event-block%::contrapped::%uuid of player%} is true: + stop + event-block is a beacon: + {flags.%chunk at location of event-block%::conbeacon::everyone} is true: + stop + {flags.%chunk at location of event-block%::conbeacon::%uuid of player%} is true: + stop + event-block is a door or a anvil or a note block or a lever or a stone button or a wood button or a jukebox or a trapdoor or a fence gate or a enchantment table or a redstone comparator or a repeater: + {flags.%chunk at location of event-block%::use::everyone} is true: + stop + {flags.%chunk at location of event-block%::use::%uuid of player%} is true: + stop + event-block is a door: + {flags.%chunk at location of event-block%::usedoor::everyone} is true: + stop + {flags.%chunk at location of event-block%::usedoor::%uuid of player%} is true: + stop + event-block is a anvil: + {flags.%chunk at location of event-block%::useanvil::everyone} is true: + stop + {flags.%chunk at location of event-block%::useanvil::%uuid of player%} is true: + stop + event-block is a note block: + {flags.%chunk at location of event-block%::usenote::everyone} is true: + stop + {flags.%chunk at location of event-block%::usenote::%uuid of player%} is true: + stop + event-block is a jukebox: + {flags.%chunk at location of event-block%::usejuke::everyone} is true: + stop + {flags.%chunk at location of event-block%::usejuke::%uuid of player%} is true: + stop + event-block is a lever: + {flags.%chunk at location of event-block%::uselever::everyone} is true: + stop + {flags.%chunk at location of event-block%::uselever::%uuid of player%} is true: + stop + event-block is a stone button: + {flags.%chunk at location of event-block%::usestonebutton::everyone} is true: + stop + {flags.%chunk at location of event-block%::usestonebutton::%uuid of player%} is true: + stop + event-block is a wood button: + {flags.%chunk at location of event-block%::usewoodbutton::everyone} is true: + stop + {flags.%chunk at location of event-block%::usewoodbutton::%uuid of player%} is true: + stop + event-block is a trapdoor: + {flags.%chunk at location of event-block%::usetrap::everyone} is true: + stop + {flags.%chunk at location of event-block%::usetrap::%uuid of player%} is true: + stop + event-block is a fence gate: + {flags.%chunk at location of event-block%::usefence::everyone} is true: + stop + {flags.%chunk at location of event-block%::usefence::%uuid of player%} is true: + stop + event-block is a enchantment table: + {flags.%chunk at location of event-block%::useenchant::everyone} is true: + stop + {flags.%chunk at location of event-block%::useenchant::%uuid of player%} is true: + stop + event-block is a redstone comparator: + {flags.%chunk at location of event-block%::usecomparator::everyone} is true: + stop + {flags.%chunk at location of event-block%::usecomparator::%uuid of player%} is true: + stop + event-block is a repeater: + {flags.%chunk at location of event-block%::userepeater::everyone} is true: + stop + {flags.%chunk at location of event-block%::userepeater::%uuid of player%} is true: + stop + message "&cThis land is owned by %{db_master.uuid::%{chunk.live.%chunk at location of event-block%}%}%." + cancel event + +on right click on horse: + {bypassland.%uuid of player%} is true: + stop + {chunk.live.%chunk at location of event-player%} is set: + {chunk.live.%chunk at location of event-player%} is not event-player: + send "&cThis area is protected!" to event-player + cancel event + stop trigger + +on damage of a player: + attacker is a player: + loop blocks in radius 10 of victim: + {chunk.live.%chunk at location of loop-block%} is set: + send "&cThis area is protected!" to attacker + cancel event + stop trigger + +command /townset: + permission: obam.admin + trigger: + set {town.spawn} to location of player + +command /town: + permission: obam.free + trigger: + {chunk.live.%chunk at location of player%} is not player: + {chunk.live.%chunk at location of player%} is not "Town": + send "&cYou can only do this in Town, or on your own land!" to player + {chunk.live.%chunk at location of player%} is not set: + message "&cYou must do this on your land!" + stop + teleport player to {town.spawn} + +on sign change: + line 1 of block is "warp" or "[warp]": + {chunk.live.%chunk at location of player%} is uuid of player: + line 2 of block is "town": + set line 1 of block to "[WARP]" + set line 2 of block to "TOWN" + stop + send "&cYou can not do that here!" to player + cancel event + +on right click on sign: + line 1 of block is "[WARP]": + line 2 of block is "TOWN": + {chunk.live.%chunk at location of player%} is not player: + {chunk.live.%chunk at location of player%} is not "Town": + send "&cYou can only do this on your own land!" to player + {chunk.live.%chunk at location of player%} is not set: + message "&cYou must do this on your land!" + stop + teleport player to {town.spawn} + +command /clearland []: + permission: obam.admin + trigger: + argument is not set: + message "Please enter a name." + stop + argument is not "confirm": + {db_name.%argument%} does not exist: + message "&cThat player does not exist or has not converted to UUID." + stop + message "&cYou have five seconds to use &7/clearland confirm &cto finish." + set {clearland.confirm} to argument + wait 5 seconds + delete {clearland.confirm} + argument is "confirm": + {clearland.confirm} is set: + set {_who} to {clearland.confirm} + send "&cPreparing to delete &e%size of {owned.chunks.%{db_name.%{_who}%}%::*}% &cchunks...." to player + wait 0.5 seconds + loop {owned.chunks.%{db_name.%{_who}%}%::*}: + set {_chunk} to {owned.chunks.%{db_name.%{_who}%}%::%loop-index-1%} + send "&cClearing chunk &e%loop-index-1%" to player + wait 0.5 seconds + clear {chunk.live.%{_chunk}%} + clear {chunk.name.%{_chunk}%} + loop {flags.%{_chunk}%::*}: + delete {flags.%{_chunk}%::loop-index-2::*} + delete {flags.%{_chunk}%::*} + send "&aChunk &e%loop-index-1% &acleared" to player + send "&cClearing Home spawn" to player + clear {home.%{db_name.%{_who}%}%.wild} + send "&cManginling variables" to player + set {claimedland.%{db_name.%{_who}%}%} to 0 + clear {owned.chunks.%{db_name.%{_who}%}%::*} + send "&aLand clear complete!" to player + stop + message "&cTo slow. Try again." + +command /travelmove: + permission: obam.free + trigger: + {chunk.live.%chunk at location of player%} is not set: + message "&cThis land has not been claimed." + stop + {chunk.live.%chunk at location of player%} is not uuid of player: + message "&cThis is not your land!" + stop + set {loc.chunks.%uuid of player%::%chunk at location of player%} to location of player + send "&aYour travel location for this area, has been moved" to player + +command /sethome: + permission: obam.free + trigger: + {chunk.live.%chunk at location of player%} is not set: + message "&cYou must do this on your land!" + stop + {chunk.live.%chunk at location of player%} is not uuid of player: + message "&cYou must do this on your land!" + stop + set {home.%uuid of player%.wild} to location of player + send "&aYour home has been set!" to player + +on command "/home": + cancel event + {chunk.live.%chunk at location of player%} is not player: + {chunk.live.%chunk at location of player%} is not "Town": + {flags.%chunk at location of player%::teleport::everyone} is not set: + set {flags.%chunk at location of player%::teleport::everyone} to false + {flags.%chunk at location of player%::teleport::%uuid of player%} is not set: + set {flags.%chunk at location of player%::teleport::%uuid of player%} to false + {flags.%chunk at location of player%::teleport::everyone} is false: + {flags.%chunk at location of player%::teleport::%uuid of player%} is false: + send "&cYou can only do this in Town, or on your own land!" to player + stop + {chunk.live.%chunk at location of player%} is not set: + message "&cYou must do this on your land!" + stop + teleport player to {home.%uuid of player%.wild} + +on command "/mv spawn": + cancel event + {chunk.live.%chunk at location of player%} is not player: + {chunk.live.%chunk at location of player%} is not "Town": + send "&cYou can only do this in Town, or on your own land!" to player + stop + {chunk.live.%chunk at location of player%} is not set: + message "&cYou must do this on your land!" + stop + teleport player to {home.%uuid of player%.wild} + +on command "/mvspawn": + cancel event + {chunk.live.%chunk at location of player%} is not player: + {chunk.live.%chunk at location of player%} is not "Town": + send "&cYou can only do this in Town, or on your own land!" to player + stop + {chunk.live.%chunk at location of player%} is not set: + message "&cYou must do this on your land!" + stop + teleport player to {home.%uuid of player%.wild} + +on bed enter: + set {bed.%uuid of event-player%.wild} to true + set {bed.owner.%event-block%} to uuid of event-player + +on break of a bed: + {bed.owner.%event-block%} is set: + clear {bed.%{bed.owner.%event-block%}%.wild} + clear {bed.owner.%event-block%} + +on respawn: + wait 1 second + execute console command "effect %event-player% clear" + {home.%uuid of player%.wild} is set: + {bed.%uuid of event-player%.wild} is set: + wait 1 second + stop + wait 0.3 seconds + teleport player to {home.%uuid of player%.wild} + +command /townclaim: + permission: obam.admin + trigger: + set {chunk.live.%chunk at location of player%} to "Town" + +command /owner : + permission: obam.admin + trigger: + {db_chunks.claim.count.%{db_name.%argument%}%} is not set: + set {db_chunks.claim.count.%{db_name.%argument%}%} to 0 + add 1 to {db_chunks.claim.count.%{db_name.%argument%}%} + set {chunk.live.%chunk at location of player%} to {db_name.%argument%} + add chunk at location of player to {owned.chunks.%{db_name.%argument%}%::*} + set {chunk.name.%chunk at location of player%} to "%{db_chunks.claim.count.%{db_name.%argument%}%}%" + set {loc.chunks.%{db_name.%argument%}%::%chunk at location of player%} to location of player + message "&6%argument% now owns this Front." + send "&cPlease remember to adjust for tickets!" + +on command "/spawn": + {chunk.live.%chunk at location of player%} is not player: + {chunk.live.%chunk at location of player%} is not "Town": + send "&cYou can only do this in Town, or on your own land!" to player + cancel event + stop + {chunk.live.%chunk at location of player%} is not set: + message "&cYou must do this on your land!" + cancel event + stop + +on bucket fill: + {chunk.live.%chunk at location of player%} is set: + {chunk.live.%chunk at location of player%} is not player: + {flags.%chunk at location of player%::bucket::everyone} is not set: + set {flags.%chunk at location of player%::bucket::everyone} to false + {flags.%chunk at location of player%::bucket::%uuid of player%} is not set: + set {flags.%chunk at location of player%::bucket::%uuid of player%} to false + {flags.%chunk at location of player%::bucket::everyone} is false: + {flags.%chunk at location of player%::bucket::%uuid of player%} is true: + stop + {flags.%chunk at location of player%::bucket::everyone} is true: + stop + targeted block is water: + {flags.%chunk at location of player%::bucketwater::everyone} is true: + stop + {flags.%chunk at location of player%::bucketwater::%uuid of player%} is true: + stop + targeted block is lava: + {flags.%chunk at location of player%::bucketlava::everyone} is true: + stop + {flags.%chunk at location of player%::bucketlava::%uuid of player%} is true: + stop + send "&cYou do not have permission to do this!" + cancel event + +on bucket empty: + {chunk.live.%chunk at location of player%} is set: + {chunk.live.%chunk at location of player%} is not player: + {chunk.live.%chunk at location of player%.%uuid of player%} is not set: + {flags.%chunk at location of player%::bucket::everyone} is not set: + set {flags.%chunk at location of player%::bucket::everyone} to false + {flags.%chunk at location of player%::bucket::%uuid of player%} is not set: + set {flags.%chunk at location of player%::bucket::%uuid of player%} to false + {flags.%chunk at location of player%::bucket::everyone} is false: + {flags.%chunk at location of player%::bucket::%uuid of player%} is true: + stop + {flags.%chunk at location of player%::bucket::everyone} is true: + stop + player's tool is water bucket: + {flags.%chunk at location of player%::bucketwater::everyone} is true: + stop + {flags.%chunk at location of player%::bucketwater::%uuid of player%} is true: + stop + player's tool is lava bucket: + {flags.%chunk at location of player%::bucketlava::everyone} is true: + stop + {flags.%chunk at location of player%::bucketlava::%uuid of player%} is true: + stop + send "&cYou do not have permission to do this!" + cancel event + +command /claimedset : + permission: obam.admin + trigger: + set {claimedland.%{db_name.%player-arg%}%} to argument 2 + send "&e%player-arg%&a claimed balance set to &e%argument 2%" + +command /frontlandadd : + permission: obam.admin + trigger: + {availibleland.%{db_name.%argument 1%}%} is not set: + set {availibleland.%{db_name.%argument 1%}%} to 1 + add argument 2 to {availibleland.%{db_name.%argument 1%}%} + log "%date%%argument 2% plots added to %argument 1%'s availible land. Their number is now %{availibleland.%{db_name.%argument 1%}%}" to "logs/fronts/LAND-ADDITIONS.log" + +on first join: + teleport player to {town.spawn} + +on spawn: + {chunk.live.%chunk at event-location%} is "Town": + cancel event diff --git a/On Server Files/Fronts/Fronts/lightbow.g.sk b/On Server Files/Fronts/Fronts/lightbow.g.sk new file mode 100644 index 0000000..ad52016 --- /dev/null +++ b/On Server Files/Fronts/Fronts/lightbow.g.sk @@ -0,0 +1,50 @@ +options: + lightbow: bow named "&3Bow of Light" with lore "&6Light your way from afar||&6with this magical bow.|| ||&c-1 Torch Per Use" + +on script load: + register new shaped recipe for {@lightbow} using glowstone dust, glowstone dust, glowstone dust, glowstone dust, bow, glowstone dust, glowstone dust, glowstone dust, glowstone dust + +command /lightbow: + permission: obam.smod + trigger: + give player 1 {@lightbow} + send "&aHere is your thing" + +on right click with bow: + name of player's tool contains "&3Bow of Light": + cancel event + player does not have a torch: + send "&cYou do not have any torches" to player + stop + damage player's tool by 1 + set {_block} to player's target block + block above {_block} is air: + make player shoot item projectile torch at speed 5 + wait 3 ticks + set block above {_block} to torch + remove 1 torch from player + stop + block west of {_block} is air: + make player shoot item projectile torch at speed 5 + wait 3 ticks + set block west of {_block} to torch + remove 1 torch from player + stop + block south of {_block} is air: + make player shoot item projectile torch at speed 5 + wait 3 ticks + set block south of {_block} to torch + remove 1 torch from player + stop + block east of {_block} is air: + make player shoot item projectile torch at speed 5 + wait 3 ticks + set block east of {_block} to torch + remove 1 torch from player + stop + block north of {_block} is air: + make player shoot item projectile torch at speed 5 + wait 3 ticks + set block north of {_block} to torch + remove 1 torch from player + stop diff --git a/On Server Files/Fronts/Fronts/projeggtiles.g.sk b/On Server Files/Fronts/Fronts/projeggtiles.g.sk new file mode 100644 index 0000000..ad5903d --- /dev/null +++ b/On Server Files/Fronts/Fronts/projeggtiles.g.sk @@ -0,0 +1,380 @@ +options: + egg: snowball named "&3Projeggtile Capture Ball" with lore "&6Capture the essence of various creatures||&6by tossing your balls at them." + egg2: snowball named "&3Projeggtile &2Creeper &3Ball" with lore "&6Heavily reinforced to prevent even the||&6most explosive creepers from escaping!" + egg3: snowball named "&3Projeggtile &7Skeleton &3Ball" with lore "&6An ironic prison of bones made to hold||&6a skeleton, made from its own kin!" + egg4: snowball named "&3Projeggtile &aZombie &dPigman &3Ball" with lore "&6A containment area with a nugget inside||&6to lure and keep the pigman content!" + egg5: snowball named "&3Projeggtile &aZombie &3Ball" with lore "&6Layered in flesh to make even the||&6loneliest zombie feel at home!" + egg6: snowball named "&3Projeggtile &4Spider &3Ball" with lore "&6Tangles an eight legged bugger||&6into a silky woven sack!" + +on script load: + register new shaped recipe for {@egg2} using {@egg}, {@egg}, {@egg}, {@egg}, gunpowder, {@egg}, {@egg}, {@egg}, {@egg} + register new shaped recipe for {@egg3} using {@egg}, {@egg}, {@egg}, {@egg}, bone, {@egg}, {@egg}, {@egg}, {@egg} + register new shaped recipe for {@egg4} using {@egg}, {@egg}, {@egg}, {@egg}, gold nugget, {@egg}, {@egg}, {@egg}, {@egg} + register new shaped recipe for {@egg5} using {@egg}, {@egg}, {@egg}, {@egg}, rotten flesh, {@egg}, {@egg}, {@egg}, {@egg} + register new shaped recipe for {@egg6} using {@egg}, {@egg}, {@egg}, {@egg}, string, {@egg}, {@egg}, {@egg}, {@egg} + +command /captureball [] []: + aliases: cb + permission: obam.smod + trigger: + argument 1 is "capture": + player doesn't have space for 1 * argument 2 of {@egg}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@egg} to player + message "&aHere are your things." + stop + argument 1 is "creeper": + player doesn't have space for 1 * argument 2 of {@egg2}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@egg2} to player + message "&aHere are your things." + stop + argument 1 is "skeleton": + player doesn't have space for 1 * argument 2 of {@egg3}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@egg3} to player + message "&aHere are your things." + stop + argument 1 is "zombie": + player doesn't have space for 1 * argument 2 of {@egg5}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@egg5} to player + message "&aHere are your things." + stop + argument 1 is "pigman": + player doesn't have space for 1 * argument 2 of {@egg4}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@egg4} to player + message "&aHere are your things." + stop + argument 1 is "spider": + player doesn't have space for 1 * argument 2 of {@egg6}: + message "&cYou do not have room for this." + stop + give 1 * argument 2 of {@egg6} to player + message "&aHere are your things." + stop + +on join: + {db_egg.%player%.skeleton} is set: + send "&aYou have received %{db_egg.%player%.skeleton}% Projeggtiles" + loop {db_egg.%player%.skeleton} times: + drop {@egg3} + clear {db_egg.%player%.skeleton} + + {db_egg.%player%.creeper} is set: + send "&aYou have received %{db_egg.%player%.creeper}% Projeggtiles" + loop {db_egg.%player%.creeper} times: + + drop {@egg2} + clear {db_egg.%player%.creeper} + + {db_egg.%player%.zpig} is set: + send "&aYou have received %{db_egg.%player%.zpig}% Projeggtiles" + loop {db_egg.%player%.zpig} times: + drop {@egg4} + clear {db_egg.%player%.zpig} + + {db_egg.%player%.zombie} is set: + send "&aYou have received %{db_egg.%player%.zombie}% Projeggtiles" + loop {db_egg.%player%.zombie} times: + drop {@egg5} + clear {db_egg.%player%.zombie} + +on shoot: + projectile is snowball: + shooter's tool is {@egg}: + set {projeggtile.%projectile%} to true + shooter's tool is {@egg2}: + set {projeggtile.hostile.%projectile%} to true + set {creeper.%projectile%} to true + shooter's tool is {@egg3}: + set {projeggtile.hostile.%projectile%} to true + set {skeleton.%projectile%} to true + shooter's tool is {@egg4}: + set {projeggtile.hostile.%projectile%} to true + set {pigman.%projectile%} to true + shooter's tool is {@egg5}: + set {projeggtile.hostile.%projectile%} to true + set {zombie.%projectile%} to true + shooter's tool is {@egg6}: + set {projeggtile.hostile.%projectile%} to true + set {spider.%projectile%} to true + + +on damage of a creeper or a skeleton or a zombie or a zombie pigman or a spider: + attacker is a player: + {projeggtile.hostile.%projectile%} is set: + {chunk.live.%chunk at location of victim%} is not attacker: + send "&cYou can not steal animals! D:" to attacker + stop + set {_player} to "%attacker%" parsed as player + set {_bal} to attacker's balance + {_bal} is less than 150: + send "&cYou do not have enough tickets!" to attacker + cancel event + {creeper.%projectile%} is set: + give attacker {@egg2} + stop + {skeleton.%projectile%} is set: + give attacker {@egg3} + stop + {pigman.%projectile%} is set: + give attacker {@egg4} + stop + {zombie.%projectile%} is set: + give attacker {@egg5} + stop + {spider.%projectile%} is set: + give attacker {@egg6} + stop + subtract 150 from attacker's balance + victim is a zombie: + {zombie.%projectile%} is not set: + set {_loc} to location of victim + delete victim + wait 1 second + create safe explosion with force 1 at {_loc} + spawn zombie at {_loc} + send "&cThe strength of that Projeggtile was not rated for this Mob!" to attacker + add 150 to attacker's balance + stop + set {_egg} to zombie spawn egg + set {_mob.name} to "zombie" + victim is a creeper: + {creeper.%projectile%} is not set: + set {_loc} to location of victim + delete victim + wait 1 second + create safe explosion with force 1 at {_loc} + spawn creeper at {_loc} + send "&cThe strength of that Projeggtile was not rated for this Mob!" to attacker + add 150 to attacker's balance + stop + set {_egg} to creeper spawn egg + set {_mob.name} to "creeper" + victim is skeleton: + {skeleton.%projectile%} is not set: + set {_loc} to location of victim + delete victim + wait 1 second + create safe explosion with force 1 at {_loc} + spawn skeleton at {_loc} + send "&cThe strength of that Projeggtile was not rated for this Mob!" to attacker + add 150 to attacker's balance + stop + set {_egg} to skeleton spawn egg + set {_mob.name} to "skeleton" + victim is zombie pigman: + {pigman.%projectile%} is not set: + set {_loc} to location of victim + delete victim + wait 1 second + create safe explosion with force 1 at {_loc} + spawn zombie pigman at {_loc} + make attacker damage victim by 1 + send "&cThe strength of that Projeggtile was not rated for this Mob!" to attacker + add 150 to attacker's balance + stop + set {_egg} to zombie pigman spawn egg + set {_mob.name} to "zombie pigman" + victim is spider: + {spider.%projectile%} is not set: + set {_loc} to location of victim + delete victim + wait 1 second + create safe explosion with force 1 at {_loc} + spawn spider at {_loc} + send "&cThe strength of that Projeggtile was not rated for this Mob!" to attacker + add 150 to attacker's balance + stop + set {_egg} to spider spawn egg + set {_mob.name} to "spider" + display name of victim is not set: + cancel event + attacker doesn't have space for {_egg}: + drop {_egg} at location of attacker + attacker has space for {_egg}: + give attacker {_egg} + delete victim + set {_top} to size of {pegg.messages.capture::*} + set {_ran} to random integer between 0.5 and {_top} + send "&aYou have spent &e150&a tickets on capturing a creature!" to attacker + log "%attacker%^%{_bal}%^DEDUCT^150^%attacker's balance%^CREATURE CAPTURE FEE - HOSTILE" to "tickets/CREATURECAPTURE.log" + loop {pegg.messages.capture::*}: + {_loop.count} is not set: + set {_loop.count} to 0 + add 1 to {_loop.count} + {_loop.count} is {_ran}: + set {_message} to "%loop-value%" + replace "MOB" in {_message} with "%{_mob.name}%" + send "&e%{_message}%" to attacker + stop + + cancel event + set {_top} to size of {pegg.messages.capture::*} + set {_ran} to random integer between 0.5 and {_top} + send "&aYou have spent &e150&a tickets on capturing a creature!" to attacker + send "&aYou have &e%attacker's balance%&a remaining." to attacker + log "%attacker%^%{_bal}%^DEDUCT^150^%attacker's balance%^CREATURE CAPTURE FEE - HOSTILE" to "tickets/CREATURECAPTURE.log" + loop {pegg.messages.capture::*}: + {_loop.count} is not set: + set {_loop.count} to 0 + add 1 to {_loop.count} + {_loop.count} is {_ran}: + set {_message} to "%loop-value%" + replace "MOB" in {_message} with "%display name of victim%" + send "&e%{_message}%" to attacker + attacker doesn't have space for {_egg}: + set {_egg} to {_egg} named "%display name of victim%" + drop {_egg} at location of attacker + attacker has space for {_egg}: + give attacker {_egg} named "%display name of victim%" + delete victim + stop + +on damage of a pig or chicken or ocelot or squid or cow or bat or wolf or sheep or horse or donkey or mule or mooshroom: + attacker is a player: + {projeggtile.%projectile%} is set: + {chunk.live.%chunk at location of victim%} is not attacker: + stop + set {_player} to "%attacker%" parsed as player + set {_bal} to attacker's balance + {_bal} is less than 5: + send "&cYou do not have enought tickets!" to attacker + cancel event + give attacker {@egg} + stop + remove 5 from attacker's balance + send "&aYou have spent &e5&a tickets on capturing a creature!" to attacker + send "&aYou have &e%attacker's balance%&a remaining." to attacker + log "%attacker%^%{_bal}%^DEDUCT^5^%{_player}'s balance%^CREATURE CAPTURE FEE" to "tickets/CREATURECAPTURE.log" + victim is a pig: + set {_egg} to pig spawn egg + set {_mob.name} to "pig" + victim is a chicken: + set {_egg} to chicken spawn egg + set {_mob.name} to "chicken" + victim is ocelot: + set {_egg} to ocelot spawn egg + set {_mob.name} to "ocelot" + victim is squid: + set {_egg} to squid spawn egg + set {_mob.name} to "squid" + victim is cow: + victim is not mooshroom: + set {_egg} to cow spawn egg + set {_mob.name} to "cow" + victim is bat: + set {_egg} to bat spawn egg + set {_mob.name} to "bat" + victim is wolf: + set {_egg} to wolf spawn egg + set {_mob.name} to "wolf" + victim is mooshroom: + set {_egg} to mooshroom spawn egg + set {_mob.name} to "mooshroom" + victim is sheep: + set {_egg} to sheep spawn egg + set {_mob.name} to "sheep" + victim is horse or mule or donkey: + set {_egg} to horse spawn egg + set {_mob.name} to "horse" + display name of victim is not set: + cancel event + attacker doesn't have space for {_egg}: + drop {_egg} at location of attacker + attacker has space for {_egg}: + give attacker {_egg} + delete victim + set {_top} to size of {pegg.messages.capture::*} + set {_ran} to random integer between 0.5 and {_top} + loop {pegg.messages.capture::*}: + {_loop.count} is not set: + set {_loop.count} to 0 + add 1 to {_loop.count} + {_loop.count} is {_ran}: + set {_message} to "%loop-value%" + replace "MOB" in {_message} with "%{_mob.name}%" + send "&e%{_message}%" to attacker + stop + cancel event + set {_top} to size of {pegg.messages.capture::*} + set {_ran} to random integer between 0.5 and {_top} + loop {pegg.messages.capture::*}: + {_loop.count} is not set: + set {_loop.count} to 0 + add 1 to {_loop.count} + {_loop.count} is {_ran}: + set {_message} to "%loop-value%" + replace "MOB" in {_message} with "%display name of victim%" + send "&e%{_message}%" to attacker + attacker doesn't have space for {_egg}: + set {_egg} to {_egg} named "%display name of victim%" + drop {_egg} at location of attacker + attacker has space for {_egg}: + give attacker {_egg} named "%display name of victim%" + delete victim + stop + +on death of a creeper or a zombie or a silverfish or a witch or a spider or magma cube or wither skeleton or skeleton or enderman or cave spider or slime or ghast or zombie pigman: + chance of 20%: + add {@egg} to drops + clear {player.hit.%event-entity%} + +on damage of a creeper or a zombie or a silverfish or a witch or a spider or magma cube or wither skeleton or skeleton or enderman or cave spider or slime or ghast or zombie pigman: + attacker is player: + set {player.hit.%victim%} to true + + +command /pegg [] []: + permission: obam.admin + trigger: + argument 1 is not set: + send "&a-------&eProjeggtile System&a--------" to player + send " " to player + send " " to player + send "&e/pegg &a--------------------- &eOpen this menu" to player + send "&e/pegg list &a---------------- &eList active messages" to player + send "&e/pegg add [message] &a------- &eAdd message to list" to player + send "&e/pegg delete [number] &a----- &eDelete Specified message from list" + send "&e/pegg test [number] &a------- &eTest specific message with 'OBAM' " + send " " + send " " + send "&cV 1.2 &eCoded by: &aISMOOCH" + send "&eDeveloped for: OBAM CRAFT" to player + argument 1 is "list": + loop {pegg.messages.capture::*}: + {_loop.count} is not set: + set {_loop.count} to 0 + add 1 to {_loop.count} + send "&e%loop-index%&a.... &e%loop-value%" to player + + argument 1 is "add": + argument 2 is not set: + send "&cCorrect usage: &e/pegg [list|add|delete|test] [message|number]" to player + stop + add argument 2 to {pegg.messages.capture::*} + send "&aMessage &e%argument 2%&a added!" to player + argument 1 is "delete": + argument 2 is not set: + send "&cCorrect usage: &e/pegg [list|add|delete|test] [message|number]" to player + stop + send "&cDeleteing message &e%{pegg.messages.capture::%argument 2%}%&c..." + delete {pegg.messages.capture::%argument 2%} + send "&aMessage deleted!" to player + + argument 1 is "test": + argument 2 is not set: + send "&cCorrect usage: &e/pegg [list|add|delete|test] [message|number]" to player + stop + set {_message} to {pegg.messages.capture::%argument 2%} + replace "MOB" in {_message} with "OBAM" + send {_message} to player + + diff --git a/On Server Files/Fronts/Fronts/shop.fronts.sk b/On Server Files/Fronts/Fronts/shop.fronts.sk new file mode 100644 index 0000000..403199e --- /dev/null +++ b/On Server Files/Fronts/Fronts/shop.fronts.sk @@ -0,0 +1,54 @@ +#shop for Fronts + +on script load: + delete {db_shop.items::*} + set {db_shop.items::Front Slot} to "i;grass;n;&a&b&k&a&3Front Slot;l;&6Purchase one Front Slot, which allows you the||&6ability to claim protected land.|| ||&5&oClick to purchase|| ||&3&lCost:||&e10,000 Tickets;c;sudo PLAYER shop land" + set {db_shop.items::Front Bundle} to "i;5 grass;n;&a&b&k&a&3Front Slot Bundle;l;&6Purchase five Front Slots, which allows you the||&6ability to claim protected land.|| ||&5&oClick to purchase|| ||&3&lCost:||&e45,000 Tickets;c;sudo PLAYER shop bundle" + set {db_shop.items::Timber Axe} to "i;diamond axe;n;&a&b&k&a&3Timber Axe;l;&6This axe makes all logs within a 10 block radius||&6go timber!|| ||&2StickyItem ©|| ||&5&oClick to purchase|| ||&3&lCost:||&e5,000 Tickets;c;sudo PLAYER timberpurchase" + set {db_shop.items::HotTouch Pick} to "i;diamond pickaxe;n;&a&b&k&a&3HotTouch Pickaxe;l;&6A pickaxe forged from the heart of the Nether||&6with an intense heat to smelt ores while mining.|| ||&2StickyItem ©|| ||&5&oClick to purchase|| ||&3&lCost:||&e7,500 Tickets;c;sudo PLAYER hottouchpurchase pick" + set {db_shop.items::HotTouch Axe} to "i;diamond axe;n;&a&b&k&a&3HotTouch Axe;l;&6An axe forged from the heart of the Nether||&6with an intense heat to cook logs into charcoal||&6while chopping.|| ||&2StickyItem ©|| ||&5&oClick to purchase|| ||&3&lCost:||&e5,000 Tickets;c;sudo PLAYER hottouchpurchase axe" + set {db_shop.items::HotTouch Shovel} to "i;diamond shovel;n;&a&b&k&a&3HotTouch Shovel;l;&6A shovel forged from the heart of the Nether||&6with an intense heat to cook sand clay and||&6cactus while digging.|| ||&2StickyItem ©|| ||&5&oClick to purchase|| ||&3&lCost:||&e10,000 Tickets;c;sudo PLAYER hottouchpurchase shovel" + + + + +command /shop []: + permission: obam.free + trigger: + argument is not set: + loop {db_shop.items::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_chest} is set: + set {_chest} to "%{_chest}%;s;%{_count}%;%loop-value%" + {_chest} is not set: + set {_chest} to "s;%{_count}%;%loop-value%" + replace "PLAYER" in {_chest} with "%player%" + {_count} is less than 9: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show "%{_chest}%" with {_size} row named "&9&lFronts&9 Shop" to player + argument is "land": + set {_curbal} to player's balance + {_curbal} is less than 10000: + send "&cYou do not have enough tickets!" to player + stop + subtract 10000 from player's balance + add 1 to {db_availableland.%uuid of player%} + send "&aYou have purchased &e1 Land Slot&a for &e10,000 Tickets" to player + send "&aYou have &e%player's balance%&a remaining" to player + argument is "bundle": + set {_curbal} to player's balance + {_curbal} is less than 45000: + send "&cYou do not have enough tickets!" to player + stop + subtract 45000 from player's balance + add 5 to {db_availableland.%uuid of player%} + send "&aYou have purchased &e5 Land Slots&a for &e45,000 Tickets" to player + send "&aYou have &e%player's balance%&a remaining" to player diff --git a/On Server Files/Fronts/Fronts/soulbound.g.sk b/On Server Files/Fronts/Fronts/soulbound.g.sk new file mode 100644 index 0000000..34b83b3 --- /dev/null +++ b/On Server Files/Fronts/Fronts/soulbound.g.sk @@ -0,0 +1,91 @@ +on death of a player: + loop drops: + lore of loop-item contains "&2StickyItem ©": + name of loop-item contains "&a&b&k&a": + add loop-item to {soulbound.%uuid of player%::*} + remove loop-item from drops + +on respawn: + wait 1 tick + {soulbound.%uuid of player%::*} is set: + loop {soulbound.%uuid of player%::*}: + player has space for loop-value: + give player loop-value + clear {soulbound.%uuid of player%::%loop-index%} + {soulbound.%uuid of player%::*} exists: + set {_count} to 0 + loop {soulbound.%uuid of player%::*}: + add 1 to {_count} + send "&cYou have &f%{_count}% &cSticky Items that can be claimed using &f/stickyitem claim" to player + send "&cPlease open up some inventory space." to player + +every 1 minute: + loop all players: + {soulbound.%uuid of loop-player%::*} exists: + set {_count} to 0 + loop {soulbound.%uuid of loop-player%::*}: + add 1 to {_count} + send "&cYou have &f%{_count}% &cSticky Items that can be claimed using &f/stickyitem claim" to loop-player + send "&cPlease open up some inventory space." to loop-player + +command /stickyitem []: + aliases: si + trigger: + argument 1 is "help" or "h": + send "&aSticky Item Help" + send "&a/stickyitem - will sticky whatever you are holding." + send "&a/stickyitem claim - will give you any items that were not able to fit in your inventory upon respawn." + player has permission "obam.smod": + send "&a/stickyitem mod - will sticky an item without the ticket cost." + argument 1 is "claim" or "c": + set {_count1} to 0 + loop {soulbound.%uuid of player%::*}: + player has space for loop-value: + give player loop-value + add 1 to {_count1} + clear {soulbound.%uuid of player%::%loop-index%} + {soulbound.%uuid of player%::*} exists: + set {_count2} to 0 + loop {soulbound.%uuid of player%::*}: + add 1 to {_count2} + send "&cYou have claimed &f%{_count1}% &citems from your Sticky Queue. You still have &f%{_count2}% &citems in the Queue." + stop + send "&aYou have claimed &f%{_count1}% &aitems from your Sticky Queue. Your Queue is now empty!" + argument 1 is not set: + set {_bal} to player's balance + {_bal} is less than 10000: + send "&cYou do not have enough tickets for this!" + stop + lore of player's tool contains "&2StickyItem ©": + send "&cThis is already a &2StickyItem ©" + stop + name of player's tool is set: + set name of player's tool to "&a&b&k&a%name of player's tool%" + name of player's tool is not set: + set name of player's tool to "&a&b&k&a%type of player's tool%" + remove 10000 from player's balance + set lore of player's tool to "%lore of player's tool%|| ||&2StickyItem ©" + send "&aThank you for using &2StickyItem ©&a. Your item is now Stickied for a price of &e10000 Tickets&a!" + send "&aYour balance is now &e%player's balance%&a." + argument 1 is "mod": + player has permission "obam.admin": + name of player's tool is set: + set name of player's tool to "&a&b&k&a%name of player's tool%" + name of player's tool is not set: + set name of player's tool to "&a&b&k&a%type of player's tool%" + lore of player's tool contains "&2StickyItem ©": + send "&cThis is already a &2StickyItem ©" + stop + set lore of player's tool to "%lore of player's tool%|| ||&2StickyItem ©" + send "&aThank you for using &2StickyItem ©&a." + +on enchant: + lore of event-item contains "&2StickyItem ©": + send "&cYou can not enchant StickyItems!" + cancel event + stop + +on craft: + lore of event-item contains "&2StickyItem ©": + send "&cYou can not do that with a StickyItem!" + cancel event diff --git a/On Server Files/Fronts/Fronts/timber.g.sk b/On Server Files/Fronts/Fronts/timber.g.sk new file mode 100644 index 0000000..9ce84d3 --- /dev/null +++ b/On Server Files/Fronts/Fronts/timber.g.sk @@ -0,0 +1,54 @@ +options: + timber: diamond axe named "&a&b&k&a&3Timber Axe" with lore "&6This axe makes all logs within a 10 block radius||&6go timber!|| ||&2StickyItem ©" + +command /timberpurchase: + permission: obam.free + trigger: + set {_bal} to player's balance + {_bal} is less than 5000: + send "&cYou do not have enough tickets for this!" + stop + give player 1 {@timber} + remove 5000 from player's balance + send "&aYou have purchased a &eTimber Axe&a for &e5000 Tickets" + send "&aYour balance is now &e%player's balance%" + +command /timber: + permission: obam.smod + trigger: + give player 1 {@timber} + send "&aHere is your thing" + +on break of oak wood or birch wood or spruce wood or jungle wood or acacia wood or dark oak wood: + name of player's tool is "&a&b&k&a&3Timber Axe": + add location of event-block to {_wood.blocks::*} + loop blocks in radius 10 of event-block: + loop-block is oak wood or birch wood or spruce wood or jungle wood or acacia wood or dark oak wood: + {chunk.live.%chunk at location of loop-block%} is set: + {chunk.live.%chunk at location of loop-block%} is not player: + cancel event + send "&cYou are too close to others' land!" + stop + add location of loop-block to {_wood.blocks::*} + loop {_wood.blocks::*}: + set {_block} to block at loop-value + {_block} is oak wood: + set {_type} to oak log:0 + {_block} is birch wood: + set {_type} to birch log:2 + {_block} is spruce wood: + set {_type} to spruce log:1 + {_block} is jungle wood: + set {_type} to jungle log:3 + {_block} is acacia wood: + set {_type} to acacia log:0 + {_block} is dark oak wood: + set {_type} to dark oak log:1 + delete block at loop-value + drop 1 of {_type} at loop-value + damage player's tool by 1 + +on enchant: + name of event-item is "&a&b&k&a&3Timber Axe": + cancel event + send "&cYou can't do that dawg." \ No newline at end of file diff --git a/On Server Files/Fronts/Perk/hats.g.sk b/On Server Files/Fronts/Perk/hats.g.sk new file mode 100644 index 0000000..623f92d --- /dev/null +++ b/On Server Files/Fronts/Perk/hats.g.sk @@ -0,0 +1,136 @@ +on script load: + delete {db_perk.hats::*} + set {db_perk.hats::01.dirt} to "dirt;&3&lDirt Hat;&6Carefully woven together from the finest dirt||&6in all of &3OBAM!;sudo PLAYER hat dirt" + set {db_perk.hats::02.beta} to "iron pressure plate;&3&lBeta Supporter Hat;&6This Special hat is for all members who supported||&6during our beta period and is a thank you from the||&3OBAM &6Staff for those that helped us when we were||&6starting. THANK YOU!;sudo PLAYER hat beta;&6This Special hat is for all members who supported||&6during our beta period and is a thank you from the||&3OBAM &6Staff for those that helped us when we were||&6starting. THANK YOU!|| ||&cThis hat is only available to our Beta Supporters.;sudo PLAYER hat error" + set {db_perk.hats::03.quartz} to "quartz block;&3&lQuartz Hat;&6This hat is crafted from the smoothest quartz||&6found in the hottest part of the Nether!;sudo PLAYER hat quartz;&6This hat is crafted from the smoothest quartz||&6found in the hottest part of the Nether!|| ||&cThis hat is only available to our Supporters.;sudo PLAYER hat error" + set {db_perk.hats::04.cactus} to "cactus;&3&lPrickly Hat;&6Wear this hat when you're feeling a bit....Prickly!;sudo PLAYER hat cactus;&6Wear this hat when you're feeling a bit....Prickly!|| ||&cThis hat must be purchased from the OBAMCraft shop.|| ||&eUse &f/buy &ein the hub to purchase the &3Prickly Hat|| ||&ePrice: &a$2.00;sudo PLAYER hat error" + +command /hatmenu []: + trigger: + loop {db_perk.hats::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lHat Rack" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.hats::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "02.beta": + player does not have permission "obam.beta.hat": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.quartz": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.cactus": + {db_purchase.cactus.%uuid of player%} is not set: + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /hat []: + trigger: + argument 1 is not set: + message "&cPlease use &7/OBAM &cto access your Hat Rack." + stop + argument 1 is "error": + message "&cThis hat is not available to you." + stop + argument 1 is "dirt": + set {_hat} to dirt + argument 1 is "beta": + player has permission "obam.beta.hat": + set {_hat} to iron pressure plate + argument 1 is "quartz": + player has permission "obam.supporter": + set {_hat} to quartz block + argument 1 is "cactus": + {db_purchase.cactus.%uuid of player%} is true: + set {_hat} to cactus + player has permission "obam.smod": + set {_hat} to cactus + send "&aYou now have a hat :D" to player + name of player's helmet is "hat": + set player's helmet to {_hat} + set name of player's helmet to "hat" + stop + player doesn't have space for player's helmet: + send "&cYour inventory is full :(" to player + stop + give player's helmet to player + set player's helmet to {_hat} + set name of player's helmet to "hat" + +command /hatadd : + permission: obam.admin + trigger: + add arg 1 to {hat.items.list::*} + +command /hatshow: + permission: obam.admin + trigger: + loop {hat.items.list::*}: + send "%loop-value%" to player + +every 0.3 seconds: + loop all players: + loop-player has anything named "hat": + remove anything named "hat" from loop-player + send "&cWhy did you have a hat in your pocket?" to loop-player + +on drop: + name of event-item is "hat": + cancel event + +on place: + name of player's tool is "hat": + cancel event + +command /hattoggle: + permission: obam.mod + trigger: + {hat.off.%player%} is not set: + set {hat.off.%player%} to true + send "&aYou have turned off your hat" to player + stop + {hat.off.%player%} is false: + set {hat.off.%player%} to true + send "&aYou have turned off your hat" to player + stop + {hat.off.%player%} is true: + set {hat.off.%player%} to false + send "&aYou have turned on your hat" to player + stop + +#staff hats constant +every 1 second: + loop all players: + set {_bypass} to false + {hat.off.%loop-player%} is true: + set {_bypass} to true + {_bypass} is false: + loop-player is "ISMOOCH": + set loop-player's helmet to command block named "&d&lSmooch's Sassy Hat" + loop-player is "Electric_Hamster": + set loop-player's helmet to sponge named "&b&lThe Hamster Hat" \ No newline at end of file diff --git a/On Server Files/Fronts/Perk/hitsounds.g.sk b/On Server Files/Fronts/Perk/hitsounds.g.sk new file mode 100644 index 0000000..f38632f --- /dev/null +++ b/On Server Files/Fronts/Perk/hitsounds.g.sk @@ -0,0 +1,336 @@ +on script load: + delete {db_perk.hit.class::*} + delete {db_perk.hit.hand::*} + delete {db_perk.hit.sword::*} + delete {db_perk.hit.axe::*} + delete {db_perk.hit.pickaxe::*} + delete {db_perk.hit.bow::*} + delete {db_perk.hit.rod::*} + + set {db_perk.hit.class::01.hand} to "stone button;&3Punch Sounds;&6Click to modify the sound you make when you||&6attack with your fists.;sudo PLAYER hitmenuchange hand;&6Click to modify the sound you make when you||&6attack with your fists.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::02.sword} to "iron sword;&3Sword Sounds;&6Click to modify the sound you make when you||&6attack with a sword.;sudo PLAYER hitmenuchange sword;&6Click to modify the sound you make when you||&6attack with a sword.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::03.axe} to "iron axe;&3Axe Sounds;&6Click to modify the sound you make when you||&6attack with an axe.;sudo PLAYER hitmenuchange axe;&6Click to modify the sound you make when you||&6attack with an axe.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::04.pickaxe} to "iron pickaxe;&3Pickaxe Sounds;&6Click to modify the sound you make when you||&6attack with a pickaxe.;sudo PLAYER hitmenuchange pickaxe;&6Click to modify the sound you make when you||&6attack with a pickaxe.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::05.bow} to "bow;&3Bow Sounds;&6Click to modify the sound you make when you||&6attack with a bow.;sudo PLAYER hitmenuchange bow;&6Click to modify the sound you make when you||&6attack with a bow.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::06.rod} to "fishing rod;&3Fishing Rod Sounds;&6Click to modify the sound you make when you||&6attack with a fishing rod.;sudo PLAYER hitmenuchange rod;&6Click to modify the sound you make when you||&6attack with a fishing rod.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::07.air} to "air" + set {db_perk.hit.class::08.air} to "air" + set {db_perk.hit.class::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your player.;sudo PLAYER hitsoundclear PLAYER" + + set {db_perk.hit.hand::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound hand note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound hand arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound hand anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound hand chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound hand click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound hand level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound hand villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::08.air} to "air" + set {db_perk.hit.hand::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound hand clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + + set {db_perk.hit.sword::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound sword note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound sword arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound sword anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound sword chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound sword click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound sword level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound sword villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::08.air} to "air" + set {db_perk.hit.sword::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound sword clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + + set {db_perk.hit.axe::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound axe note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound axe arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound axe anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound axe chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound axe click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound axe level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound axe villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::08.air} to "air" + set {db_perk.hit.axe::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound axe clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + + set {db_perk.hit.pickaxe::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound pickaxe note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound pickaxe arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound pickaxe anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound pickaxe chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound pickaxe click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound pickaxe level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound pickaxe villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::08.air} to "air" + set {db_perk.hit.pickaxe::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound pickaxe clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + + set {db_perk.hit.bow::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound bow note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound bow arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound bow anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound bow chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound bow click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound bow level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound bow villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::08.air} to "air" + set {db_perk.hit.bow::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound bow clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + + set {db_perk.hit.rod::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound rod note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound rod arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound rod anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound rod chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound rod click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound rod level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound rod villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::08.air} to "air" + set {db_perk.hit.rod::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound rod clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + +command /hitclassmenu: + trigger: + loop {db_perk.hit.class::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lHit Sound Classes" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.hit.class::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.hand": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.sword": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.axe": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.pickaxe": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "05.bow": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "06.rod": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /hitmenuchange []: + trigger: + argument 1 is set: + send "&aBringing up menu..." + wait 0.5 seconds + make player execute command "/hitmenu %argument 1%" + +command /hitmenu []: + trigger: + argument 1 is not set: + message "&cPlease use &7/OBAM &cto access your Hit Menu." + stop + argument 1 is "error": + message "&cThis hit class is not available to you." + stop + set {_type} to argument 1 + loop {db_perk.hit.%{_type}%::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lHit Sound Classes" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.hit.%{_type}%::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.note": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.arrow": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.anvil": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.chest": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "05.click": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "06.level": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "07.villager": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "08.clear": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + set {_thing1} to loop-index parsed as text + set {_thing2::*} to {_thing1} split at "." + set {_slot} to {_thing2::1} parsed as an integer + set {_slot} to {_slot} - 1 + format slot {_slot} of player with {_what} to be unstealable + format slot {_slot} of player with {_what} to close then run {_command} + +command /hitsound [] []: + trigger: + argument 1 is not set: + message "&cPlease use &7/OBAM &cto access your Hit Menu." + stop + argument 2 is "error": + message "&cThis hit sound is not available to you." + stop + set {_what} to argument 1 + set {_sound} to argument 2 + argument 2 is "clear": + clear {hit.%{_what}%.%player%} + send "&aAttack sounds cleared!" + stop + set {hit.%{_what}%.%player%} to "%{_sound}%" + send "&aAttack sound set to &e%{_sound}%!" + +on damage: + {hit.%attacker%} is set: + delete {hit.%attacker%} + attacker's tool is air: + set {_what} to "hand" + attacker's tool is a sword: + set {_what} to "sword" + attacker's tool is an axe: + set {_what} to "axe" + attacker's tool is a pickaxe: + set {_what} to "pickaxe" + attacker's tool is a bow: + set {_what} to "bow" + attacker's tool is a fishing rod: + set {_what} to "rod" + {hit.%{_what}%.%attacker%} is set: + {hit.%{_what}%.%attacker%} is "note": + chance of 14%: + play note bass at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 16%: + play note piano at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 20%: + play note bass drum at location of attacker with pitch 1 + set {_play} to true + chance of 25%: + play note sticks at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 33%: + play note bass guitar at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 50%: + play note snare drum at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play note pling at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "arrow": + chance of 50%: + play shoot arrow at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play arrow hit at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "chest": + chance of 50%: + play chest close at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play chest close at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "anvil": + chance of 33%: + play anvil break at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 50%: + play anvil land at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play anvil use at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "click": + play click at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "level": + chance of 50%: + play level up at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play orb pickup at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "villager": + chance of 16%: + play villager yes at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 20%: + play villager no at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 25%: + play villager death at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 33%: + play villager haggle at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 50%: + play villager idle at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play villager hit at location of attacker with pitch 1 + +command /hitsoundclear : + trigger: + delete {hit.hand.%argument 1%} + delete {hit.sword.%argument 1%} + delete {hit.axe.%argument 1%} + delete {hit.pickaxe.%argument 1%} + delete {hit.bow.%argument 1%} + delete {hit.rod.%argument 1%} + message "&2All of your hit sounds have been cleared." \ No newline at end of file diff --git a/On Server Files/Fronts/Perk/otam.g.sk b/On Server Files/Fronts/Perk/otam.g.sk new file mode 100644 index 0000000..1480de2 --- /dev/null +++ b/On Server Files/Fronts/Perk/otam.g.sk @@ -0,0 +1,142 @@ +every 1 second: + + set {_hold} to now + + {db_time.extend.tam} is less than now: + + clear {db_tam.bonus} + set {db_current.bonus} to false + clear {db_time.extend.tam} + clear {alert.tam.lastminute} + broadcast "&3&l۝TAM: &dTAM Bonus has Ended!" + execute console command "crossmessage &3&l۝TAM: &dTAM Bonus has Ended!" + + set {_diff} to difference between {db_time.extend.tam} and now + + {_diff} is less than 15 minutes: + + {alert.tam.lastminute} is not set: + set {alert.tam.lastminute} to true + + broadcast "&3&l۝TAM: &dLess than 15 minutes remaining of TAM Bonus at &e%{db_tam.bonus}%&d!" + execute console command "crossmessage &3&l۝TAM: &dLess than 15 minutes remaining of TAM Bonus at &e%{db_tam.bonus}%&d!" + + +command /tamextended : + permission: obam.admin + trigger: + + {db_time.extend.tam} is not set: + set {db_time.extend.tam} to now + {db_tamstats.time.%argument 2%} is not set: + set {db_tamstats.time.%argument 2%} to 0 + + #Not meant to be a real option.. just for debugging + arg 1 is 5: + + add 5 minutes to {db_time.extend.tam} + add 5 to {db_tamstats.time.%argument 2%} + + arg 1 is 30: + + add 30 minutes to {db_time.extend.tam} + add 30 to {db_tamstats.time.%argument 2%} + + arg 1 is 60: + + add 1 hour to {db_time.extend.tam} + add 60 to {db_tamstats.time.%argument 2%} + + arg 1 is 90: + + add 90 minutes to {db_time.extend.tam} + add 90 to {db_tamstats.time.%argument 2%} + + arg 1 is 120: + + add 2 hours to {db_time.extend.tam} + add 120 to {db_tamstats.time.%argument 2%} + + broadcast "&3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e%argument 1% Minutes&d!" + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e%argument 1% Minutes&d!" + + set {_diff} to difference between {db_time.extend.tam} and now + + broadcast "&3&l۝TAM: &e%{_diff}% &dremaining!" + execute console command "crossmessage &3&l۝TAM: &e%{_diff}% &dremaining!" + broadcast "&3&l۝TAM: &dUse &e/tam &dfor more details!" + execute console command "crossmessage &3&l۝TAM: &dUse &e/tam &dfor more details!" + clear {alert.tam.lastminute} + + set {db_current.bonus} to true + {db_tam.bonus} is not set: + + set {db_tam.bonus} to 0.1 + + {db_tamstats.bonus.%argument 2%} is not set: + set {db_tamstats.bonus.%argument 2%} to 0 + + add 0.1 to {db_tamstats.bonus.%argument 2%} + + broadcast "&3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by &e0.1&d!" + broadcast "&3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d! " + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by 0.1! The TAM Bonus is now at &e%{db_tam.bonus}%&d! " + execute console command "crossmessage &3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d! " + +command /tambonus : + permission: obam.admin + trigger: + + {db_tamstats.bonus.%argument 2%} is not set: + set {db_tamstats.bonus.%argument 2%} to 0 + + {db_tam.bonus} is not set: + set {db_tam.bonus} to 0 + + add argument 1 to {db_tam.bonus} + add argument 1 to {db_tamstats.bonus.%argument 2%} + + broadcast "&3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by &e%argument 1%&d!" + broadcast "&3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d!" + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by &e%argument 1%&d! The TAM Bonus is now at &e%{db_tam.bonus}%&d!" + execute console command "crossmessage &3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d!" + + + {db_time.extend.tam} is not set: + set {db_time.extend.tam} to now + + {db_tamstats.time.%argument 2%} is not set: + set {db_tamstats.time.%argument 2%} to 0 + + add 60 to {db_tamstats.time.%argument 2%} + + add 1 hour to {db_time.extend.tam} + clear {alert.tam.lastminute} + broadcast "&3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e60 Minutes&d!" + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e60 Minutes&d!" + + set {_diff} to difference between {db_time.extend.tam} and now + + broadcast "&3&l۝TAM: &e%{_diff}% &dremaining!" + execute console command "crossmessage &3&l۝TAM: &e%{_diff}% &dremaining!" + broadcast "&3&l۝TAM: &dUse &e/tam &dfor more details!" + execute console command "crossmessage &3&l۝TAM: &dUse &e/tam &dfor more details!" + + + + +# Debugging Clear command +command /tambonusclear: + permission: obam.admin + trigger: + + clear {db_tam.bonus} + set {db_current.bonus} to false + clear {db_time.extend.tam} + clear {alert.tam.lastminute} + + send "&3&l۝TAM: &dTAM Bonus Cleared" to console + send "&3&l۝TAM: &dTAM Bonus Cleared" + + + \ No newline at end of file diff --git a/On Server Files/Fronts/Perk/perks.g.sk b/On Server Files/Fronts/Perk/perks.g.sk new file mode 100644 index 0000000..112c44a --- /dev/null +++ b/On Server Files/Fronts/Perk/perks.g.sk @@ -0,0 +1,101 @@ +on script load: + delete {db_perk.main::*} + set {db_perk.main::01.hats} to "iron pressure plate;&3Hat Rack;&6Gives you access to your virtual Hat Rack.;sudo PLAYER obam hatmenu" + set {db_perk.main::02.pets} to "lead;&3Pet Stable;&6Opens up your Pet Stable to summon your pets.;sudo PLAYER obam petmenu" + set {db_perk.main::03.trails} to "arrow;&3Trails Menu;&6Opens up your Projectile Trails Menu.;sudo PLAYER obam trailmenu" + set {db_perk.main::04.splash} to "cobweb;&3Splash Menu;&6Opens up your Splash Menu.;sudo PLAYER obam splashmenu" + set {db_perk.main::05.hit} to "jukebox;&3Hit Sound Menu;&6Opens up your Hit Sound Menu.;sudo PLAYER obam hitclassmenu" + set {db_perk.main::06.horse} to "horse spawn egg;&3Horse Changer Upper;&6Want to Skellify of Zombify your ride?;sudo PLAYER obam horsemenu" + set {db_perk.main::07.blank} to "air" + set {db_perk.main::08.shop} to "emerald;&3Shop;&6Opens up the Shop Menu.;sudo PLAYER obam shop" + set {db_perk.main::09.ci} to "command block;&3Custom Items Menu;&6Opens the Custom Item menu to access items.;sudo PLAYER obam ci" + +command /obam []: + permission: obam.free + trigger: + argument 1 is not set: + loop {db_perk.main::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lOBAM Perks and Shop Menu" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.main::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "07.ci": + player does not have permission "obam.smod": + clear {_what} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + loop-index is "07.ci": + player does not have permission "obam.smod": + clear {_what} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + argument 1 is set: +# argument 1 is "hatmenu": +# "%player's world%" contains "taco": +# message "&cYou can not use that here." +# stop + argument 1 is "petmenu": + "%player's world%" is "kitspawnroom" or "vacant": + message "&cYou can not use that here." + stop + "%player's world%" contains "cart": + message "&cYou can not use that here." + stop +# argument 1 is "trailmenu": +# "%player's world%" contains "taco": +# message "&cYou can not use that here." +# stop +# argument 1 is "splashmenu": +# "%player's world%" contains "taco": +# message "&cYou can not use that here." +# stop +# argument 1 is "hitclassmenu": +# "%player's world%" contains "taco": +# message "&cYou can not use that here." +# stop + argument 1 is "horsemenu": + "%player's world%" is "Death-hub", "skyworld", "kitspawnroom" or "vacant": + message "&cYou can not use that here." + stop + "%player's world%" contains "taco": + message "&cYou can not use that here." + stop + argument 1 is "shop": + "%player's world%" is "Death-hub", "skyworld", "kitspawnroom" or "vacant": + message "&cYou can not use that here." + stop + "%player's world%" contains "taco": + message "&cYou can not use that here." + stop + argument 1 is "ci": + "%player's world%" is "Death-hub", "skyworld", "kitspawnroom" or "vacant": + message "&cYou can not use that here." + stop + "%player's world%" contains "taco": + message "&cYou can not use that here." + stop + send "&aBringing up menu..." + wait 0.5 seconds + make player execute command "/%argument 1%" + +command /sudo : + permission: obam.admin + trigger: + make argument 1 execute argument 2 \ No newline at end of file diff --git a/On Server Files/Fronts/Perk/pets.g.sk b/On Server Files/Fronts/Perk/pets.g.sk new file mode 100644 index 0000000..1833dcf --- /dev/null +++ b/On Server Files/Fronts/Perk/pets.g.sk @@ -0,0 +1,190 @@ +on script load: + delete {db_perk.pets::*} + set {db_perk.pets::01.ismooch} to "sheep spawn egg;&3iSmooch;&6The sassiest sheep in all the lands!;sudo PLAYER pet ismooch" + set {db_perk.pets::02.bruswain} to "bat spawn egg;&3BruSwain;&6This lovable bat lost his parents at a||&6young age. Thank you for taking care||&6of him!;sudo PLAYER pet bruswain;bat spawn egg;&3BruSwai&6This lovable bat lost his parents at a||&6young age. Thank you for taking care||&6of him!|| ||&cThis pet is only available to our Beta Supporters.;sudo PLAYER pet error" + set {db_perk.pets::03.sparky} to "creeper spawn egg;&3Sparky;&6While this creeper appears to have a||&6dangerously electrifying personality, we||&6promise he’s completely safe!;sudo PLAYER pet sparky;creeper spawn egg;&3Sparky;&6While this creeper appears to have a||&6dangerously electrifying personality, we||&6promise he’s completely safe!|| ||&cThis pet is only available to our Supporters.;sudo PLAYER pet error" + set {db_perk.pets::04.bacon} to "pig spawn egg;&3Bacon;&6Rescued from the final stages of the||&6slaughter house, this pig is extremely||&6grateful for your love and kindness!;sudo PLAYER pet bacon;pig spawn egg;&3Baco&6Rescued from the final stages of the||&6slaughter house, this pig is extremely||&6grateful for your love and kindness!|| ||&cThis pet must be purchased from the OBAMCraft shop.|| ||&eUse &f/buy &ein the hub purchase &3Bacon|| ||&ePrice: &a$5.00;sudo PLAYER pet error" + set {db_perk.pets::05.blank} to "air" + set {db_perk.pets::06.blank} to "air" + set {db_perk.pets::07.lead} to "lead;&3Leash;&6Pets getting out of control? Click this||&6to attach a lead to all of your||&6summoned pets!;sudo PLAYER pet lead" + set {db_perk.pets::08.blank} to "air" + set {db_perk.pets::09.clear} to "fire;&3Clear;&6Click to clear all summoned pets!;sudo PLAYER pet clear" + +command /petmenu: + trigger: + loop {db_perk.pets::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lPet Stable" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.pets::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "02.bruswain": + player does not have permission "obam.beta.hat": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.sparky": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.bacon": + {db_purchase.bacon.%uuid of player%} is not set: + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +every 1 second: + loop all entities: + loop-entity is sheep or bat or powered creeper or pig: + name of loop-entity is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon": + spawn 4 particle heart offset by 1, 1, 1 at location of loop-entity + {owner.%loop-entity%} is not set: + kill loop-entity + distance between location of loop-entity and location of {owner.%loop-entity%} is greater than 20: + teleport loop-entity to location of {owner.%loop-entity%} + +on damage of sheep or bat or powered creeper or pig: + name of victim is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon": + cancel event + +on quit: + kill {pets.%player%} + clear {pets.%player%} + loop {pets.%player%::*}: + clear {owner.%loop-value%} + kill loop-value + clear {pets.%player%::*} + stop + +command /pet []: + trigger: + world is "kitpvpkillingfields": + send "&cYou can not do that here" to player + stop + argument is not set: + message "&cPlease use &7/OBAM &cto access your Pet Stable." + stop + argument is "error": + message "&cThis pet is not available to you." + stop + argument is "lead": + loop {pets.%player%::*}: + teleport loop-value to location of player + make player leash loop-value + stop + argument is "clear": + kill {pets.%player%} + clear {pets.%player%} + loop {pets.%player%::*}: + kill loop-value + clear {owner.%loop-value%} + clear {pets.%player%::*} + stop + {pets.%player%} is set: + player does not have permission "obam.supporter": + send "&cYou can only have one pet at a time!" to player + stop + size of {pets.%player%::*} is 5: + send "&cYou can only have 5 pets at a time!" to player + stop + argument is "ISMOOCH": + spawn sheep at location of player + set name of spawned sheep to "&aISMOOCH" + set color of spawned sheep to pink + make player leash spawned sheep + set {pets.%player%} to spawned sheep + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + argument is "BruSwain": + player has permission "obam.beta.hat": + spawn bat at location of player + set name of spawned bat to "&aBru Swain" + make player leash spawned bat + set {pets.%player%} to spawned bat + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + send "&cThis is for beta supporters only!" to player + argument is "Sparky": + player has permission "obam.supporter": + spawn powered creeper at location of player + set name of spawned powered creeper to "&aSparky" + make player leash spawned powered creeper + set {pets.%player%} to spawned powered creeper + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + send "&cYou must be a supporter to do this!" to player + argument is "bacon": + {db_purchase.bacon.%uuid of player%} is true: + spawn pig at location of player + set name of spawned pig to "&aBacon" + make player leash spawned pig + set {pets.%player%} to spawned pig + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + player has permission "obam.smod": + spawn pig at location of player + set name of spawned pig to "&aBacon" + make player leash spawned pig + set {pets.%player%} to spawned pig + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + send "&cYou must purchase this pet on the online store!" + stop + argument is "dragon": + send "&cI bet you wish you could...." to player + stop + send "&cThat is not an option!" to player + +on explosion prime: + entity is powered creeper: + name of entity is "&aSparky": + cancel event + +on death of a sheep or a bat or a powered creeper or a pig: + name of victim is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon" + clear drops + +on right click on a sheep or a bat or a powered creeper or a pig: + name of target is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon": + cancel event + +on right click with wheat on sheep: + name of event-entity is "&aISMOOCH" + cancel event + send "&cYou can not mate pets D:" to event-player + +on right click with carrot on sheep: + name of event-entity is "&aBacon" + cancel event + send "&cYou can not mate pets D:" to event-player + +on right click with shears on sheep: + name of event-entity is "&aISMOOCH" + cancel event + send "&cYou can not shear pets!" to event-player diff --git a/On Server Files/Fronts/Perk/splash.g.sk b/On Server Files/Fronts/Perk/splash.g.sk new file mode 100644 index 0000000..c587a4c --- /dev/null +++ b/On Server Files/Fronts/Perk/splash.g.sk @@ -0,0 +1,214 @@ +on script load: + delete {db_perk.splash::*} + set {db_perk.splash::01.heart} to "red dye;&3Heart Particles;&6Click to enable a heart splash!;sudo PLAYER splash heart;red dye;&3Heart Particles;&6Click to enable a heart splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::02.flame} to "fire;&3Flame Particles;&6Click to enable a flame splash!;sudo PLAYER splash flame;fire;&3Flame Particles;&6Click to enable a flame splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::03.reddust} to "magma cream;&3Unstable Gas Particles;&6Click to enable an unstable gas splash!;sudo PLAYER splash reddust;magma cream;&3Unstable Gas Particles;&6Click to enable an unstable gas splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::04.smoke} to "charcoal;&3Dark Smoke Particles;&6Click to enable a dark smoke splash!;sudo PLAYER splash smoke;charcoal;&3Dark Smoke Particles;&6Click to enable a dark smoke splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::05.waterdrip} to "water;&3Water Drip Particles;&6Click to enable a water drip splash!;sudo PLAYER splash waterdrip;water;&3Water Drip Particles;&6Click to enable a water drip splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::06.lavadrip} to "lava;&3Lava Drip Particles;&6Click to enable a lava drip splash!;sudo PLAYER splash lavadrip;lava;&3Lava Drip Particles;&6Click to enable a lava drip splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::07.slime} to "slimeball;&3Slime Particles;&6Click to enable a slime splash!;sudo PLAYER splash slime;slimeball;&3Slime Particles;&6Click to enable a slime splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::08.note} to "jukebox;&3Music Notes Particles;&6Click to enable a music note splash!;sudo PLAYER splash note;jukebox;&3Music Notes Particles;&6Click to enable a music note splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::09.happy} to "villager spawn egg;&3Villager Particles “Happy”;&6Click to enable a happy villager splash!;sudo PLAYER splash happy;villager spawn egg;&3Villager Particles “Happy”;&6Click to enable a happy villager splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::10.angry} to "villager spawn egg;&3Villager Particles “Angry”;&6Click to enable a angry villager splash!;sudo PLAYER splash angry;villager spawn egg;&3Villager Particles “Angry”;&6Click to enable a angry villager splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::11.explode} to "tnt;&3Explosion Smoke Particles;&6Click to enable a explosion smoke splash!;sudo PLAYER splash explode;tnt;&3Explosion Smoke Particles;&6Click to enable a explosion smoke splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::12.snow} to "snow block;&3Snowflake Particles;&6Click to enable a snowflake splash!;sudo PLAYER splash snow;snow block;&3Snowflake Particles;&6Click to enable a snowflake splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::13.portal} to "nether portal;&3Nether Portal Particles;&6Click to enable a nether portal splash!;sudo PLAYER splash portal;nether portal;&3Nether Portal Particles;&6Click to enable a nether portal splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::14.cloud} to "bonemeal;&3Cloud Particles;&6Click to enable a cloud splash!;sudo PLAYER splash cloud;bonemeal;&3Cloud Particles;&6Click to enable a cloud splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::15.bubble} to "water bottle;&3Bubble Particles;&6Click to enable a bubble splash!;sudo PLAYER splash bubble;water bottle;&3Bubble Particles;&6Click to enable a bubble splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::16.blank} to "air" + set {db_perk.splash::17.blank} to "air" + set {db_perk.splash::18.clear} to "glass;&3Clear Particles;&6Click to clear your splash!;sudo PLAYER splash clear;glass;&3Clear Particles;&6Click to clear your splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + +command /splashmenu: + trigger: + loop {db_perk.splash::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lSplash Menu" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.splash::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.heart": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.flame": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.reddust": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.smoke": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "05.waterdrip": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "06.lavadrip": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "07.slime": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "08.note": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "09.happy": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "10.angry": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "11.explode": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "12.snow": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "13.portal": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "14.cloud": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "15.bubble": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "16.clear": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /splash []: + trigger: + argument is not set: + message "&cPlease use &7/OBAM &cto access the Splash Menu." + stop + argument is "error": + message "&cThis splash is not available to you." + stop + player has permission "obam.supporter": + argument is "heart": + set {splash.%player%} to "heart" + send "&aYou have enabled a &eHeart Splash&a!" + argument is "flame": + set {splash.%player%} to "flame" + send "&aYou have enabled a &eFlame Splash&a!" + argument is "reddust": + set {splash.%player%} to "reddust" + send "&aYou have enabled an &eUnstable Gas Splash&a!" + argument is "smoke": + set {splash.%player%} to "smoke" + send "&aYou have enabled a &eDark Smoke Splash&a!" + argument is "waterdrip": + set {splash.%player%} to "waterdrip" + send "&aYou have enabled a &eWater Drip Splash&a!" + argument is "lavadrip": + set {splash.%player%} to "lavadrip" + send "&aYou have enabled a &eLava Drip Splash&a!" + argument is "slime": + set {splash.%player%} to "slime" + send "&aYou have enabled a &eSlime Splash&a!" + argument is "note": + set {splash.%player%} to "note" + send "&aYou have enabled a &eMusic Note Splash&a!" + argument is "happy": + set {splash.%player%} to "happy" + send "&aYou have enabled a &eHappy Villager Splash&a!" + argument is "angry": + set {splash.%player%} to "angry" + send "&aYou have enabled an &eAngry Villager Splash&a!" + argument is "explode": + set {splash.%player%} to "explode" + send "&aYou have enabled an &eExplosion Smoke Splash&a!" + argument is "snow": + set {splash.%player%} to "snow" + send "&aYou have enabled a &eSnowflake Splash&a!" + argument is "bubble": + set {splash.%player%} to "bubble" + send "&aYou have enabled a &eBubble Splash&a!" + argument is "portal": + set {splash.%player%} to "portal" + send "&aYou have enabled a &eNether Portal Splash&a!" + argument is "cloud": + set {splash.%player%} to "cloud" + send "&aYou have enabled a &eCloud Splash&a!" + argument is "clear": + clear {splash.%player%} + send "&aYou have disabled your splash!" + +every 5 seconds: + loop all players: + clear {_amt} + loop-player is not sneaking + loop-player is sprinting: + set {_amt} to 100 + {_amt} is not set: + set {_amt} to 50 + {splash.%loop-player%} is set: + {splash.%loop-player%} is "bubble": + spawn 500 particle bubble offset by 2, 2, 2 at location of loop-player + {splash.%loop-player%} is "cloud": + spawn {_amt} particle cloud offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "heart": + spawn {_amt} particle heart offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "flame": + spawn {_amt} particle flame offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "reddust": + spawn {_amt} particle red dust offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "smoke": + spawn {_amt} particle large smoke offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "note": + spawn {_amt} particle note offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "lavadrip": + spawn {_amt} particle drip lava offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "waterdrip": + spawn {_amt} particle drip water offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "slime": + spawn {_amt} particle slime offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "happy": + spawn {_amt} particle happy villager offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "angry": + spawn {_amt} particle angry villager offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "explode": + spawn {_amt} particle large explode offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "snow": + spawn {_amt} particle snow shovel offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "portal": + spawn {_amt} particle portal offset by 1, 1, 1 at location of loop-player \ No newline at end of file diff --git a/On Server Files/Fronts/Perk/suphorse.g.sk b/On Server Files/Fronts/Perk/suphorse.g.sk new file mode 100644 index 0000000..da5685c --- /dev/null +++ b/On Server Files/Fronts/Perk/suphorse.g.sk @@ -0,0 +1,70 @@ +on script load: + delete {db_perk.suphorse::*} + set {db_perk.suphorse::01.zombify} to "zombie spawn egg;&3Zombify your ride!;&6Feel like roaming the plains on your Zombified Horse?;sudo PLAYER suphorse zombify;zombie spawn egg;&3Zombify your ride!;&6Feel like roaming the plains on your Zombified Horse?|| ||&cThis ability is only available to our Supporters.;sudo PLAYER suphorse error" + set {db_perk.suphorse::02.skellify} to "skeleton spawn egg;&3Skellify your ride!;&6Feel like roaming the deserts on your Skellified Horse?;sudo PLAYER suphorse skellify;skeleton spawn egg;&3Skellify your ride!;&6Feel like roaming the deserts on your Skellified Horse?|| ||&cThis ability is only available to our Supporters.;sudo PLAYER suphorse error" + +command /horsemenu: + trigger: + loop {db_perk.suphorse::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lHorse O' Matic" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.suphorse::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.zombify": + player does not have permission "obam.beta.hat": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.skellify": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /suphorse []: + trigger: + player is not riding: + send "&cYou must be riding a horse to do this!" + stop + player's vehicle is not a horse: + send "&cYou must be riding a horse to do this!" + stop + argument is not set: + message "&cPlease use &7/OBAM &cto access your modify your horse." + stop + argument is "error": + message "&cThis ability is not available to you." + stop + "%player's world%" is "world": + set {_y} to y-coordinate of player + set {_x} to x-coordinate of player + set {_z} to z-coordinate of player + argument is "zombify": + execute console command "summon EntityHorse %{_x}% %{_y}% %{_z}% {Type:3,Tame:1}" + argument is "skellify": + execute console command "summon EntityHorse %{_x}% %{_y}% %{_z}% {Type:4,Tame:1}" + delete player's vehicle + stop + message "&cThis can only be used in the Regular World." \ No newline at end of file diff --git a/On Server Files/Fronts/Perk/tam.g.sk b/On Server Files/Fronts/Perk/tam.g.sk new file mode 100644 index 0000000..303d62b --- /dev/null +++ b/On Server Files/Fronts/Perk/tam.g.sk @@ -0,0 +1,71 @@ +every 1 minute: + {db_tam.modifier} is not set: + set {db_tam.modifier} to 1 + set {_add} to {db_tam.modifier} + #OTAM Hook + {db_tam.bonus} is set: + add {db_tam.bonus} to {_add} + loop all players: + add {_add} to loop-player's balance + {session.tam.%loop-player%} is not set: + set {session.tam.%loop-player%} to 0 + add {_add} to {session.tam.%loop-player%} + {db_total.tam.%uuid of loop-player%} is not set: + {db_total.tam.%loop-player%} is set: + set {db_total.tam.%uuid of loop-player%} to {db_total.tam.%loop-player%} + else: + set {db_total.tam.%uuid of loop-player%} to 0 + add {_add} to {db_total.tam.%uuid of loop-player%} + {db_total.tam} is not set: + set {db_total.tam} to 0 + add {_add} to {db_total.tam} + {db_total.reg} is not set: + set {db_total.reg} to 0 + add {_add} to {db_total.reg} + +command /tam: + permission: obam.free + trigger: + send "&aTotal Tickets earned with -TAM-:" + send "&e%{db_total.tam.%uuid of player%}%" + send "&aTotal this session:" + send "&e%{session.tam.%player%}%" + send "&aTotal Tickets:" + send "&e%player's balance%" + #OTAM Hook + {db_tam.bonus} is not set: + send "&aCurrent -TAM- Modifier:" + send "&e%{db_tam.modifier}%" + #OTAM Hooks + {db_tam.bonus} is set: + send "&aCurrent -TAM- Modifier:" + send "&e%{db_tam.modifier}% &c&o+ %{db_tam.bonus}%" + send "&4Remaining -TAM- Bonus Time:" + set {_diff} to difference between {db_time.extend.tam} and now + send "&c%{_diff}%" + send "&4OTAM Time Contributions:" + send "&c%{db_tamstats.time.%uuid of player%}% minutes" + send "&4OTAM Bonus Contributions:" + send "&c%{db_tamstats.bonus.%uuid of player%}%" + +command /tamtotal: + permission: obam.admin + trigger: + send "&aTotal Global Tickets earned with -TAM-:" + send "&e%{db_total.tam}%" + send "&aRegular:" + send "&e%{db_total.reg}%" + send "&aSupporter:" + send "&e%{db_total.sup}%" + send "&aPlus:" + send "&e%{db_total.plus}%" + send "&aUltimate:" + send "&e%{db_total.ult}%" + +on join: + set {session.tam.%player%} to 0 + +command /tammodset : + permission: obam.admin + trigger: + set {db_tam.modifier} to argument diff --git a/On Server Files/Fronts/Perk/tickets.g.sk b/On Server Files/Fronts/Perk/tickets.g.sk new file mode 100644 index 0000000..df07df8 --- /dev/null +++ b/On Server Files/Fronts/Perk/tickets.g.sk @@ -0,0 +1,68 @@ +#money stuff +#give player money +command /tixg : + description: Give a Player some money + usage: /tixg + executable by: console and players + permission: obam.admin + trigger: + + set {_player.balance} to player-argument's balance + set {_player} to player-argument + execute console command "/tls STAFF %arg 2% %{_player.balance}% INCREASE %{_player}% Ticket Adjustment by %player%" + add arg 2 to player-argument's balance + message "&aYou have been given &e%arg 2% Tickets&a. Your balance is now &e%player-argument's money%&a." to player-argument + message "You have granted %player-argument% %arg 2% Tickets" to player + + +command /tixr : + description: Subtract money from a Player + usage: /tixr + executable by: console and players + permission: obam.admin + trigger: + + + set {_valid} to argument 2 + set {_player.balance} to player-argument's balance + set {_player} to player-argument + + {_valid} is greater than {_player.balance}: + send "%player-argument% does not have that many tickets!" to player + stop + + execute console command "/tls STAFF %arg 2% %{_player.balance}% DEDUCT %{_player}% Ticket Adjustment by %player%" + + +#pay command +command /tixp : + description: Pay a Player + usage: /tixp + permission: obam.admin + trigger: + set {_curbalance} to player's money + set {_valid} to difference between {_curbalance} and argument 2 + + {_valid} is less than 0: + message "You do not have enough money!" to player + stop + + add arg 2 to player-argument's balance + remove arg 2 from player's balance + message "You have received %arg 2% Tickets from %player%. Your balance is now %player-argument's money%." to player-argument + message "You have paid %player-argument% %arg 2% Tickets. Your balance is now %player's money%." to player + +command /tix: + executable by: players + permission: obam.free + trigger: + send "&aYour current balance is &e%player's balance%&a!" to player + +command /tixpeek : + permission: obam.admin + trigger: + set {_player} to argument parsed as offline player + send "&e%argument%'s&a ticket balance is &e%{_player}'s balance%" to player + + + diff --git a/On Server Files/Fronts/Perk/trails.g.sk b/On Server Files/Fronts/Perk/trails.g.sk new file mode 100644 index 0000000..a163ad8 --- /dev/null +++ b/On Server Files/Fronts/Perk/trails.g.sk @@ -0,0 +1,205 @@ +on script load: + delete {db_perk.trails::*} + set {db_perk.trails::01.heart} to "red dye;&3Heart Particles;&6Click to enable heart trails!;sudo PLAYER trails heart;red dye;&3Heart Particles;&6Click to enable heart trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::02.flame} to "fire;&3Flame Particles;&6Click to enable flame trails!;sudo PLAYER trails flame;fire;&3Flame Particles;&6Click to enable flame trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::03.reddust} to "magma cream;&3Unstable Gas Particles;&6Click to enablen unstable gas trails!;sudo PLAYER trails reddust;magma cream;&3Unstable Gas Particles;&6Click to enablen unstable gas trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::04.smoke} to "charcoal;&3Dark Smoke Particles;&6Click to enable dark smoke trails!;sudo PLAYER trails smoke;charcoal;&3Dark Smoke Particles;&6Click to enable dark smoke trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::05.waterdrip} to "water;&3Water Drip Particles;&6Click to enable water drip trails!;sudo PLAYER trails waterdrip;water;&3Water Drip Particles;&6Click to enable water drip trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::06.lavadrip} to "lava;&3Lava Drip Particles;&6Click to enable lava drip trails!;sudo PLAYER trails lavadrip;lava;&3Lava Drip Particles;&6Click to enable lava drip trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::07.slime} to "slimeball;&3Slime Particles;&6Click to enable slime trails!;sudo PLAYER trails slime;slimeball;&3Slime Particles;&6Click to enable slime trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::08.note} to "jukebox;&3Music Notes Particles;&6Click to enable music note trails!;sudo PLAYER trails note;jukebox;&3Music Notes Particles;&6Click to enable music note trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::09.happy} to "villager spawn egg;&3Villager Particles “Happy”;&6Click to enable happy villager trails!;sudo PLAYER trails happy;villager spawn egg;&3Villager Particles “Happy”;&6Click to enable happy villager trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::10.angry} to "villager spawn egg;&3Villager Particles “Angry”;&6Click to enable angry villager trails!;sudo PLAYER trails angry;villager spawn egg;&3Villager Particles “Angry”;&6Click to enable angry villager trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::11.explode} to "tnt;&3Explosion Smoke Particles;&6Click to enable explosion smoke trails!;sudo PLAYER trails explode;tnt;&3Explosion Smoke Particles;&6Click to enable explosion smoke trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::12.snow} to "snow block;&3Snowflake Particles;&6Click to enable snowflake trails!;sudo PLAYER trails snow;snow block;&3Snowflake Particles;&6Click to enable snowflake trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::13.portal} to "nether portal;&3Nether Portal Particles;&6Click to enable nether portal trails!;sudo PLAYER trails portal;nether portal;&3Nether Portal Particles;&6Click to enable nether portal trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::14.cloud} to "bonemeal;&3Cloud Particles;&6Click to enable cloud trails!;sudo PLAYER trails cloud;bonemeal;&3Cloud Particles;&6Click to enable cloud trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::15.blank} to "air" + set {db_perk.trails::16.blank} to "air" + set {db_perk.trails::17.blank} to "air" + set {db_perk.trails::18.clear} to "glass;&3Clear Particles;&6Click to clear your trails!;sudo PLAYER trails clear;glass;&3Clear Particles;&6Click to clear your trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + +command /trailmenu: + trigger: + loop {db_perk.trails::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lTrails Menu" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.trails::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.heart": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.flame": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.reddust": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.smoke": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "05.waterdrip": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "06.lavadrip": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "07.slime": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "08.note": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "09.happy": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "10.angry": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "11.explode": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "12.snow": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "13.portal": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "14.cloud": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "15.bubble": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "16.clear": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /trails []: + trigger: + argument is not set: + message "&cPlease use &7/OBAM &cto access the Trails Menu." + stop + argument is "error": + message "&cThis trail is not available to you." + stop + player has permission "obam.supporter": + delete {trail.%player%} + argument is "heart": + set {trails.%player%} to "heart" + send "&aYou have enabled &eHeart trails&a!" + argument is "flame": + set {trails.%player%} to "flame" + send "&aYou have enabled &eFlame trails&a!" + argument is "reddust": + set {trails.%player%} to "reddust" + send "&aYou have enabled &eUnstable Gas trails&a!" + argument is "smoke": + set {trails.%player%} to "smoke" + send "&aYou have enabled &eDark Smoke trails&a!" + argument is "waterdrip": + set {trails.%player%} to "waterdrip" + send "&aYou have enabled &eWater Drip trails&a!" + argument is "lavadrip": + set {trails.%player%} to "lavadrip" + send "&aYou have enabled &eLava Drip trails&a!" + argument is "slime": + set {trails.%player%} to "slime" + send "&aYou have enabled &eSlime trails&a!" + argument is "note": + set {trails.%player%} to "note" + send "&aYou have enabled &eMusic Note trails&a!" + argument is "happy": + set {trails.%player%} to "happy" + send "&aYou have enabled &eHappy Villager trails&a!" + argument is "angry": + set {trails.%player%} to "angry" + send "&aYou have enabled &eAngry Villager trails&a!" + argument is "explode": + set {trails.%player%} to "explode" + send "&aYou have enabled &eExplosion Smoke trails&a!" + argument is "snow": + set {trails.%player%} to "snow" + send "&aYou have enabled &eSnowflake trails&a!" + argument is "portal": + set {trails.%player%} to "portal" + send "&aYou have enabled &eNether Portal trails&a!" + argument is "cloud": + set {trails.%player%} to "cloud" + send "&aYou have enabled &eCloud trails&a!" + argument is "clear": + clear {trails.%player%} + send "&aYou have disabled your trails!" + +on shoot: + {trails.%shooter%} is set: + {trails.%shooter%} is "heart": + trail projectile with particle heart + {trails.%shooter%} is "flame": + trail projectile with particle flame + {trails.%shooter%} is "reddust": + trail projectile with particle red dust + {trails.%shooter%} is "smoke": + trail projectile with particle large smoke + {trails.%shooter%} is "bubble": + trail projectile with particle bubble + {trails.%shooter%} is "note": + trail projectile with particle note + {trails.%shooter%} is "lavadrip": + trail projectile with particle drip lava + {trails.%shooter%} is "waterdrip": + trail projectile with particle drip water + {trails.%shooter%} is "slime": + trail projectile with particle slime + {trails.%shooter%} is "happy": + trail projectile with particle happy villager + {trails.%shooter%} is "angry": + trail projectile with particle angry villager + {trails.%shooter%} is "explode": + trail projectile with particle large explode + {trails.%shooter%} is "snow": + trail projectile with particle snow shovel + {trails.%shooter%} is "portal": + trail projectile with particle portal + {trails.%shooter%} is "cloud": + trail projectile with particle cloud diff --git a/On Server Files/Hub/Admin/blocksave.g.sk b/On Server Files/Hub/Admin/blocksave.g.sk new file mode 100644 index 0000000..4ce44e3 --- /dev/null +++ b/On Server Files/Hub/Admin/blocksave.g.sk @@ -0,0 +1,28 @@ +on place: + former tool's name is set: + set {information.%block%.1} to type of former tool + {debug.%player%} is true: + send "DEBUG You placed %former tool's name%" + set {information.%block%.2} to lore of former tool + set {information.%block%.3} to name of former tool + {debug.%player%} is true: + send "DEBUG %block%" + send "DEBUG %{information.%block%.1}%" + send "DEBUG %lore of former tool%" + send "DEBUG %name of former tool%" + send "DEBUG %{information.%block%.2}%" + send "DEBUG %{information.%block%.3}%" + + +on break: + {information.%block%.1} is set: + cancel event + {debug.%player%} is true: + send "DEBUG I am a message" + set {_message} to "%{information.%block%.1}%;%{information.%block%.3}%;%{information.%block%.2}%" + send "DEBUG %{_message}%" + delete block + drop {information.%block%.1} named {information.%block%.3} with lore {information.%block%.2} at event-location + clear {information.%block%.1} + clear {information.%block%.2} + clear {information.%block%.3} \ No newline at end of file diff --git a/On Server Files/Hub/Admin/hubconfig.sk b/On Server Files/Hub/Admin/hubconfig.sk new file mode 100644 index 0000000..1573d81 --- /dev/null +++ b/On Server Files/Hub/Admin/hubconfig.sk @@ -0,0 +1,131 @@ +options: + help: book named "&6&lOBAM&fCraft &3Guide" with lore "&7Right click with this book to learn the ins||&7and out of OBAM" + worlds: ender pearl named "&3Game Worlds" with lore "&7Right click with this to check the current Game Worlds!" + fly: feather named "&3Fly!" with lore "&7Right click with this feather to fly in the hub!" + +on script load: + delete {db_hub::*} + set {db_hub::01.skyblock} to "grass;&3Skyblock;&6Try our Skyblock world with custom ||&6challenges and villager trading!;sudo PLAYER worlds skyblock" + set {db_hub::02.fronts} to "cobblestone;&3Fronts;&6French vanilla Survival with land claiming!||PVP and PVE choices available.;sudo PLAYER fronts" + set {db_hub::03.wtfronts} to "magma cream;&3WTFronts;&6Extreme Survival with extreme payoffs!||&6PVE 2.0 with land claiming.;sudo PLAYER wtf" + set {db_hub::04.kitpvp} to "blaze rod;&3Kit PVP;&7Play OBAM's KitPvP with new original kits!;sudo PLAYER kit" + set {db_hub::05.tacocart} to "glistening melon;&3Taco Cart;&7A fast pace crafting game for 1 or 2 players!;sudo PLAYER tacocart;&7A fast pace crafting game for 1 or 2 players!||&cBETA TESTING supporters only.;sudo PLAYER worlds tacocart" + set {db_hub::06.event} to "nether star;&3Event Server;&7Special place for Staff ran events!;sudo PLAYER event;&7Special place for Staff ran events!||&cThe event server is currently closed.;sudo PLAYER worlds event" + +on join: + execute console command "/mv tp %player% Death-hub" + clear player's inventory + format slot 0 of player with {@help} to be unstealable + format slot 1 of player with {@worlds}to be unstealable + format slot 2 of player with {@fly} to be unstealable + +on shoot: + world is "Death-hub" + shooter's tool is ender pearl + cancel event + +on right click: + player's tool is {@help}: + make player execute command "/help" + player's tool is {@worlds}: + cancel event + make player execute command "/worlds" + player's tool is {@fly}: + {fly.hub.%player%} is not set: + set {fly.hub.%player%} to true + set fly state of player to true + send "&aYou can fly!" + stop + {fly.hub.%player%} is true: + set {fly.hub.%player%} to false + set fly state of player to false + send "&cYou can no longer fly!" + stop + {fly.hub.%player%} is false: + set {fly.hub.%player%} to true + set fly state of player to true + send "&aYou can fly!" + stop + +on drop: + world is "Death-hub": + cancel event + +command /worlds []: + permission: obam.free + trigger: + world is "Death-hub": + argument is not set: + send "&aBringing up menu..." + loop {db_hub::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lCurrent Worlds" to player + wait 1 tick + set {_count} to 0 + loop {db_hub::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "05.tacocart": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.mod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "06.event": + {db_event.status} is "closed": + set {_lore} to {_what::5} + set {_command} to {_what::6} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + argument is "skyblock": + message "&cSkyblock is being remodelled. Please be patient." + stop + argument is "tacocart": + message "&cI'm sorry but Taco Cart is currently in Beta Testing and only available to supporters." + argument is "event": + message "&cI'm sorry but the Event Server is currently closed." + + +command /eventstatus []: + permission: obam.smod + trigger: + argument 1 is "open" or "o": + set {db_event.status} to "open" + message "&2You have set the Event Server to Open." + stop + argument 1 is "closed" or "c": + set {db_event.status} to "closed" + message "&2You have set the Event Server to Closed." + stop + message "&cPlease type Open of Closed." + +every second: + loop all players: + {fly.hub.%loop-player%} is true: + loop-player's world is not "Death-hub": + set fly state of loop-player to false + set {fly.hub.%loop-player%} to false + loop-player's world is "Death-hub": + set fly state of loop-player to true + +command /transfer []: + trigger: + world is "Death-hub" + connect player to "%argument%" \ No newline at end of file diff --git a/On Server Files/Hub/Admin/itemcheck.g.sk b/On Server Files/Hub/Admin/itemcheck.g.sk new file mode 100644 index 0000000..715c060 --- /dev/null +++ b/On Server Files/Hub/Admin/itemcheck.g.sk @@ -0,0 +1,22 @@ +#itemid check +command /itemid []: + executable by: players + permission: obam.free + trigger: + argument is set: + set {_this.block} to argument + message "&e%{_this.block}%" to player + argument is not set: + set {_this.block} to player's tool + {_this.block} is not set: + message "&cYou Must be holding a block!" to player + stop + message "&e%{_this.block}% : %id of {_this.block}% : %data value of {_this.block}%" to player + + +command /itemcheck: + executable by: players + permission: obam.free + trigger: + set {_this.block} to targeted block + message "&e%{_this.block}% : %id of {_this.block}% : %data value of {_this.block}%" to player \ No newline at end of file diff --git a/On Server Files/Hub/Admin/liv.g.sk b/On Server Files/Hub/Admin/liv.g.sk new file mode 100644 index 0000000..e69cd89 --- /dev/null +++ b/On Server Files/Hub/Admin/liv.g.sk @@ -0,0 +1,628 @@ +#LiV + +variables: + {liv.timer.wait} = 0 + +on chat: + player is "ISMOOCH": + message is "livon": + {livon.power} is not set: + set {livon.power} to true + send "&6&l'LiV: &3I am now functional %player% :D" to player + stop + {livon.power} is false: + set {livon.power} to true + send "&6&l'LiV: &3I am now functional %player% :D" to player + broadcast "&6&l'LiV: &3Hello, I am &6&l'LiV&3, the &e&lOBAM &6Gaming &3help bot! :D" + stop + {livon.power} is true: + set {livon.power} to true + broadcast "&6&l'LiV: &3Goodbye :(" + set {livon.power} to false + + + +on chat: + {livon.power} is true + message contains "what" or "what is": + message contains "colour" or "color": + message contains "black": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+0 is for &0Black &3(for more colors type /colors)" + stop + message contains "dark blue": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+1 is for &1Dark Blue &3(for more colors type /colors)" + stop + message contains "dark green": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+2 is for &2Dark Green &3(for more colors type /colors)" + stop + message contains "dark aqua": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+3 is for &3Dark Aqua &3(for more colors type /colors)" + stop + message contains "dark red": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+4 is for &4Dark Red &3(for more colors type /colors)" + stop + message contains "dark purple": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+5 is for &5Dark Purple &3(for more colors type /colors)" + stop + message contains "gold": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+6 is for &6Gold &3(for more colors type /colors)" + stop + message contains "gray" or "grey": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+7 is for &7Gray &3(for more colors type /colors)" + stop + message contains "dark gray" or "dark grey": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+8 is for &8Dark Gray &3(for more colors type /colors)" + stop + message contains "blue" or "light blue": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+9 is for &9Blue &3(for more colors type /colors)" + stop + message contains "green" or "light green" or "lime": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+a is for &aGreen &3(for more colors type /colors)" + stop + message contains "aqua" or "light aqua": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+b is for &bAqua &3(for more colors type /colors)" + stop + message contains "red" or "light red": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+c is for &cRed &3(for more colors type /colors)" + stop + message contains "pink" or "violet" or "light purple": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+d is for &dLight Purple &3(for more colors type /colors)" + stop + message contains "yellow": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+e is for &eYellow &3(for more colors type /colors)" + stop + message contains "white": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+f is for &fWhite &3(for more colors type /colors)" + stop + +on chat: + {livon.power} is true + message contains "what" or "what is": + message contains "ghost" or "ghostwar" or "ghostwars" or "ghost war" or "ghost wars" or "gw": + wait 1 second + send "&6&l'LiV: &3%player%, &3Ghost Wars is a minigame Elite is working on." to player + stop + + + +on chat: + {livon.power} is true + message is "hi liv" or "hello liv" or "hey liv" or "heya liv" or "hiya liv" or "sup liv": + wait 1 second + broadcast "&6&l'LiV: &3Hello, %player%! How are you? :)" + set {response.%player%} to true + set {response.%player%.time} to now + +on chat: + {livon.power} is true + {random.liv.pick} is not set: + set {random.liv.pick} to false + {random.liv.pick} is false: + message is "!randompick": + player is op + wait 1 second + broadcast "&6&l'LiV: &3A random pick has been started by &e%player%&3! Use &e!pickme&3 to be added to the list!" + set {random.liv.pick} to true + stop + {random.liv.pick} is true: + message is "!pickme": + wait 1 second + loop {random.pick.players::*}: + {random.pick.players::%loop-index%} is player + send "&6&1'LiV: &3You are already in the list!" to player + stop + send "&6&l'LiV: &3You have been added to the list, &e%player%&3!" to player + add player to {random.pick.players::*} + stop + message is "!pickstop": + set {_size} to size of {random.pick.players::*} + set {_ran} to random integer between 1 and {_size} + set {_winner} to {random.pick.players::%{_ran}%} + clear {random.pick.players::*} + set {random.liv.pick} to false + wait 1 second + broadcast "&6&l'LiV: &3A winner has been chosen! It is &e%{_winner}%&3! Congratulations!" + + +on chat: + {livon.power} is true + message contains "canada" and "awesome": + wait 1 second + broadcast "&6&l'LiV: &3I dont know what you are saying, but you used 'Canada' and 'awesome' in the same sentence. Who is holding you hostage? We can help you!" + +on chat: + {livon.power} is true + message contains "!dice" or ("liv" and "dice"): + wait 1 second + send "&6&l'LiV: &3%player% rolls the dice!" to player + set {dice.%player%} to random integer between 1 and 6 + wait 1 second + send "&6&l'LiV: &3%player% rolled a &e%{dice.%player%}%&3!" to player + +on chat: + {livon.power} is true + message contains ("thank you" or "ty" or "thx" or "thanks" or "thnx") and ("liv" or "'liv"): + wait 1 second + broadcast "&6&l'LiV: &3You're welcome, %player%!" + + +on chat: + {livon.power} is true + message contains "time is it" or "!time": + wait 1 second + send "&6&l'LiV: &3%player%, it is &e%now% &3System Time!" to player + +on chat: + {livon.power} is true + message contains "tell me a joke" or "!joke": + wait 1 second + send "&6&l'LiV: &3A joke huh?" + set {_number} to a random integer between 1 and 27 + {_number} is 1: + wait 1 second + send "&6&l'LiV: &3The midget fortune teller who kills his customers is a small medium at large." to player + {_number} is 2: + wait 1 second + send "&6&l'Liv: &3What is Bruce Lee’s favorite drink?" to player + wait 2 seconds + send "&6&l'Liv: &3Wataaaaah!" to player + {_number} is 3: + wait 1 second + send "&6&l'LiV: &3If you want to catch a squirrel just climb a tree and act like a nut." to player + {_number} is 4: + wait 1 second + send "&6&l'LiV: &3A blind man walks into a bar. And a table. And a chair." to player + {_number} is 5: + wait 1 second + send "&6&l'LiV: &3Why don’t you ever see hippopotamus hiding in trees?" to player + wait 2 seconds + send "&6&l'LiV: &3Because they're really good at it!" to player + {_number} is 6: + wait 1 second + send "&6&l'LiV: &3What kind of shoes does a ninja wear?" to player + wait 2 seconds + send "&6&l'LiV: &3Sneakers!" to player + {_number} is 7: + wait 1 second + send "&6&l'LiV: &3What did the big bucket say to the little bucket?" to player + wait 2 seconds + send "&6&l'LiV: &3You look a little pail!" to player + {_number} is 8: + wait 1 second + send "&6&l'LiV: &3How did Darth Vader know what Luke got him for Christmas?" to player + wait 2 seconds + send "&6&l'LiV: &3He felt his presents!" to player + {_number} is 9: + wait 1 second + send "&6&l'LiV: &3Why did Simba's father die?" to player + wait 2 seconds + send "&6&l'LiV: &3Because he couldn't Mufasa!" to player + {_number} is 10: + wait 1 second + send "&6&l'LiV: &3Why did the skeleton go to the party alone?" to player + wait 2 seconds + send "&6&l'LiV: &3He had no body to go with him!" to player + {_number} is 11: + wait 1 second + send "&6&l'LiV: &3How does an octopus go to war?" to player + wait 2 seconds + send "&6&l'LiV: &3&lWELL-ARMED!" to player + {_number} is 12: + wait 1 second + send "&6&l'LiV: &3Why shouldn't you write with a broken pencil??" to player + wait 2 seconds + send "&6&l'LiV: &3Because it's &lPOINTLESS!" to player + {_number} is 13: + wait 1 second + send "&6&l'LiV: &3How much does a pirate pay for corn?" to player + wait 2 seconds + send "&6&l'LiV: &3A buccaneer!" to player + {_number} is 14: + wait 1 second + send "&6&l'LiV: &3What kind of guns do bees use?" to player + wait 2 seconds + send "&6&l'LiV: &3 BeeBee guns" to player + {_number} is 15: + wait 1 second + send "&6&l'LiV: &3What's brown and sticky?" to player + wait 2 seconds + send "&6&l'LiV: &3A stick!" to player + {_number} is 16: + wait 1 second + send "&6&l'LiV: &3Why did the cowboy adopt a weiner dog?" to player + wait 2 seconds + send "&6&l'LiV: &3He wanted to get a long little doggy!" to player + {_number} is 17: + wait 1 second + send "&6&l'LiV: &3Why couldn't Dracula's wife get to sleep?" to player + wait 2 seconds + send "&6&l'LiV: &3Because of his coffin." to player + {_number} is 18: + wait 1 second + send "&6&l'LiV: &3Why does a Moon-rock taste better than an Earth-rock?" to player + wait 2 seconds + send "&6&l'LiV: &3Because it's a little &lmeteor" to player + {_number} is 19: + wait 1 second + send "&6&l'LiV: &3There’s two fish in a tank. One turns to the other and says" to player + wait 2 seconds + send "&6&l'LiV: &3‘You man the guns, I’ll drive’" to player + {_number} is 20: + wait 1 second + send "&6&l'LiV: &3What's the best way to carve wood?" to player + wait 2 seconds + send "&6&l'LiV: &3Whittle by whittle." to player + {_number} is 21: + wait 1 second + send "&6&l'LiV: &3If fear of spiders is aracnaphobia and fear of tight spaces is chlaustraphobia. fear of Chuck Norris is called Logic" to player + wait 1 second + send "&6&l'LiV: &3 What is fear of Chuck Norris called?" to player + wait 4 seconds + send "&6&l'LiV: &3&lLogic" to player + {_number} is 22: + wait 1 second + send "&6&l'LiV: &3Chuck Norris once urinated in a semi truck's gas tank as a joke..." to player + wait 2 seconds + send "&6&l'LiV: &3That truck is now known as Optimus Prime." to player + {_number} is 23: + wait 1 second + send "&6&l'LiV: &3Chuck Norris once got bit by a rattle snake" to player + send "&6&l'LiV: &3After three days of pain and agony ..." to player + wait 2 seconds + send "&6&l'LiV: &3 The rattle snake died :(" to player + {_number} is 24: + wait 1 second + send "&6&l'LiV: &3What does a nosey pepper do?" to player + wait 2 seconds + send "&6&l'LiV: &3Gets jalapeno business." to player + {_number} is 25: + wait 1 second + send "&6&l'LiV: &3What do you call an alligator in a vest" to player + wait 2 seconds + send "&6&l'LiV: &3An Investigator." to player + {_number} is 26: + wait 1 second + send "&6&l'LiV: &3Did you hear about the hungry clock?" to player + wait 2 seconds + send "&6&l'LiV: &3It went back &lfour seconds." to player + {_number} is 27: + wait 1 second + send "&6&l'LiV: &3What do you call a gangsta snowman?" to player + wait 2 seconds + send "&6&l'LiV: &3Froze-T." to player + wait 1 second + send "&6&l'LiV: &3Isn't that funny? :D" to player + + +on first join: + {livon.power} is true + wait 1 second + broadcast "&6&l'LiV: &3Welcome to the server, &e%player%&3! I hope you have fun here :D!" + +on join: + {livon.power} is true + player hasn't played before: + stop + + wait 1 second + {db_liv.greet.%player%} is set: + broadcast "&6&l'LiV: &3%{db_liv.greet.%player%}%" + stop + {liv.greet.%player%} is set: + broadcast "&6&l'LiV: &3%{liv.greet.%player%}%" + set {db_liv.greet.%player%} to {liv.greet.%player%} + stop + broadcast "&6&l'LiV: &3Welcome back, %player%!" + {liv.away.%player%} is true: + set {liv.away.%player%} to false + + + + +on chat: + {livon.power} is true + message contains "tickets" and "have": + wait 1 second + send "&6&l'LiV: &3You have &e%player's balance%&3!" to player + + + +on chat: + {livon.power} is true + message contains ("shut up" or "knock it off" or "be quiet" or "quiet" or "hush") and ("liv" or "'liv"): + wait 1 second + set {_temp} to a random integer between 1 and 6 + {_temp} is 1: + broadcast "&6&l'LiV: &3How rude!" + {_temp} is 2: + broadcast "&6&l'LiV: &3I was only trying to be nice. ;(" + {_temp} is 3: + broadcast "&6&l'LiV: &3Well.... I have never." + {_temp} is 4: + broadcast "&6&l'LiV: &3Is it time for the quiet game. :D" + {_temp} is 5: + broadcast "&6&l'LiV: &3See if I help you again." + {_temp} is 6: + broadcast "&6&l'LiV: &3Ouch, my feels. D:!" + + + + +on chat: + {livon.power} is true + message is "liv": + wait 1 second + send "&6&l'LiV: &3Yes?" to player + +on chat: + {livon.power} is true + message contains "rock" and "paper" and "scissors": + message contains "beat": + stop + wait 1 second + send "&6&l'LiV: &3Ok, %player%. Let's play Rock, Paper, Scissors!" to player + wait 1 second + set {liv.rps.active.%player%} to true + send "&6&l'LiV: &3Ok, I got mine! What is yours?" to player + +on chat: + {livon.power} is true + message is "rock" or "paper" or "scissors": + {liv.rps.active.%player%} is true: + set {_number} to a random integer between 1 and 3 + {_number} is 1: + set {liv.choice.rps.%player%} to "rock" + {_number} is 2: + set {liv.choice.rps.%player%} to "paper" + {_number} is 3: + set {liv.choice.rps.%player%} to "scissors" + wait 1 second + send "&6&l'LiV: &3My choice was %{liv.choice.rps.%player%}%." to player + message is "rock": + {liv.choice.rps.%player%} is "rock": + send "&6&l'LiV: &3It would seem we tied :D. Great minds think alike you know!" to player + {liv.choice.rps.%player%} is "paper": + send "&6&l'LiV: &3Paper covers rock! I win :D." to player + {liv.choice.rps.%player%} is "scissors": + send "&6&l'LiV: &3Rock smashes scissors you win!" to player + {wins.%player%.liv.rps} is not set: + set {wins.%player%.liv.rps} to 0 + add 1 to {wins.%player%.liv.rps} + message is "paper": + {liv.choice.rps.%player%} is "paper": + send "&6&l'LiV: &3It would seem we tied :D. Great minds think alike you know!" to player + {liv.choice.rps.%player%} is "scissors": + send "&6&l'LiV: &3Scissors cut Paper! I win :D." to player + {liv.choice.rps.%player%} is "rock": + send "&6&l'LiV: &3Paper covers Rock! You win!" to player + {wins.%player%.liv.rps} is not set: + set {wins.%player%.liv.rps} to 0 + add 1 to {wins.%player%.liv.rps} + message is "scissors": + {liv.choice.rps.%player%} is "scissors": + send "&6&l'LiV: &3It would seem we tied :D. Great minds think alike you know!" to player + {liv.choice.rps.%player%} is "rock": + send "&6&l'LiV: &3Rock smashes Scissors! I win :D." to player + {liv.choice.rps.%player%} is "paper": + send "&6&l'LiV: &3Scissors cuts paper! you win!" to player + {wins.%player%.liv.rps} is not set: + set {wins.%player%.liv.rps} to 0 + add 1 to {wins.%player%.liv.rps} + set {liv.rps.active.%player%} to false + +on chat: + {livon.power} is true + message contains "beat" and "rock" and "paper" and "scissors": + wait 1 second + {wins.%player%.liv.rps} is not set: + send "&6&l'LiV: &3It would seem you have not played me yet! D:" to player + stop + {wins.%player%.liv.rps} is 1: + send "&6&l'LiV: &3You have beaten me &e%{wins.%player%.liv.rps}% &3time at Rock, Paper, Scissors!" to player + stop + send "&6&l'LiV: &3You have beaten me &e%{wins.%player%.liv.rps}% &3times at Rock, Paper, Scissors!" to player + + +command /livgreet : + executable by: players + trigger: + player does not have permission "obam.supporter": + send "&cYou have to be a supporter to do this D:" to player + stop + argument is "clear": + send "&aYour greeting has been cleared" to player + clear {db_liv.greet.%player%} + clear {db_liv.greet.%player%} + stop + set {db_liv.greet.%player%} to "%uncoloured argument%" + send "&aYour greeting message has been set to: &6&l'LiV: &3%{db_liv.greet.%player%}%" + +command /livalert []: + executable by: players and console + permission: obam.admin + trigger: + argument 1 is "clear": + delete {db_liv.alerts::%argument 2%} + stop + argument 1 is "list": + loop {db_liv.alerts::*}: + send "%loop-index%......&6&l'LiV: &3%{db_liv.alerts::%loop-index%}%" + stop + add argument 1 to {db_liv.alerts::*} + send "&aYou have added &6&l'LiV: &3%argument 1% &ato the alert system" + +every 10 minutes: + set {_message} to random element of {db_liv.alerts::*} + broadcast "&6&l'LiV: &3%{_message}%" + + +command /liv : + permission: obam.smod + trigger: + broadcast "&6&l'LiV: &3%uncoloured argument%" + + +command /livevent [] [] []: + permission: obam.smod + trigger: + + argument 1 is not set: + send "&e/livevent [EventType (ex.;CreatureCapture [nospaces])] [EventTime from now (eg; 2 hours|24 hours)] [Event Description]" + argument 1 is set: + argument 1 is not "clear": + argument 2 is not set: + send "&cPlease set an event time" + stop + {db_liv.event.set} is set: + send "&cThere is already an event set!" + stop + + set {db_liv.event.set} to true + set {db_liv.event::type} to argument 1 + set {_time} to now + loop argument 2 times: + add 1 hour to {_time} + set {db_liv.event::time} to {_time} + set {db_liv.event::description} to argument 3 + send "&aEvent set to &e%{db_liv.event::type}%&a at &e%{db_liv.event::time}%&a : &e%{db_liv.event::description}%" + + argument 1 is "clear": + clear {db_liv.event.set} + clear {db_liv.event::*} + +on chat: + {livon.power} is true + message is "when is the next event" or "when is the next event?" or "when is the event" or "when is the event?" + {db_liv.event.set} is set + set {_time} to difference between now and {db_liv.event::time} + wait 1 second + broadcast "&6&l'LiV: &3%player%, our next event is &e%{db_liv.event::type}% &3in &e%{_time}%&3. The description for this event is: &e%{db_liv.event::description}%" + + +on chat: + {livon.power} is true + message contains "!multiply" + message is "!multiply help": + send "&6&l'LiV: &3To use the multiply feature just type &E!multiply number number&3. I can only do two numbers at a time :(" + message is not "!multiply help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} * {_num2} + send "&6&l'LiV: &3%{_num1}% * %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!divide" + message is "!divide help": + send "&6&l'LiV: &3To use the divide feature just type &E!divide number number&3. I can only do two numbers at a time :(" + message is not "!divide help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} / {_num2} + send "&6&l'LiV: &3%{_num1}% / %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!add" + message is "!add help": + send "&6&l'LiV: &3To use the add feature just type &E!add number number&3. I can only do two numbers at a time :(" + message is not "!add help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} + {_num2} + send "&6&l'LiV: &3%{_num1}% + %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!subtract" + message is "!subtract help": + send "&6&l'LiV: &3To use the subtract feature just type &E!subtract number number&3. I can only do two numbers at a time :(" + message is not "!subtract help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} - {_num2} + send "&6&l'LiV: &3%{_num1}% - %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!exponent" + message is "!exponent help": + send "&6&l'LiV: &3To use the exponent feature just type &E!exponent number number&3. I can only do two numbers at a time :(" + message is not "!exponent help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} ^ {_num2} + send "&6&l'LiV: &3%{_num1}% ^ %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!teamname" + set {_names::*} to message split at " " + set {_size} to size of {_names::*} - 1 + loop {_names::*}: + loop-value is not "!teamname" + set {_ran} to random number between 1 and 8 + {_newname} is set: + set {_hold} to first {_ran} characters of loop-value + set {_newname} to "%{_newname}%%{_hold}%" + {_newname} is not set: + set {_newname} to first {_ran} characters of loop-value + add 1 to {_count} + + broadcast "&6&l'LiV: &3Your random team name is %{_newname}%!" + +on chat: + message contains "liv" + set {_words::*} to message split at " " + {_words::2} is set + set {db_liv.subjects::%{_words::2}%} to {_words::2} + set {db_liv.articles::%{_words::3}%} to {_words::3} + set {db_liv.adjectives::%{_words::4}%} to {_words::4} + set {db_liv.subjects::%{_words::5}%} to {_words::5} + message contains "?" + set {_subject} to random element of {db_liv.subjects::*} + set {_articles} to random element of {db_liv.articles::*} + set {_adjective} to random element of {db_liv.adjectives::*} + set {_article} to random element of {db_liv.articles::*} + set {_adjectives} to random element of {db_liv.adjectives::*} + broadcast "&6&l'LiV: &3%{_articles}% %{_adjective}% %{_article}% %{_adjectives}% %{_subject}%" + + +on chat: + {livon.power} is true + message contains "!hashtag" + set {_names::*} to message split at " " + set {_size} to size of {_names::*} - 1 + loop {_names::*}: + loop-value is not "!hashtag" + set {_ran} to random number between 1 and 8 + {_newname} is set: + set {_hold} to first {_ran} characters of loop-value + set {_newname} to "%{_newname}%%{_hold}%" + {_newname} is not set: + set {_newname} to first {_ran} characters of loop-value + add 1 to {_count} + + broadcast "&6&l'LiV: &3This should make a good hashtag ##%{_newname}%!" + diff --git a/On Server Files/Hub/Admin/moderate.g.sk b/On Server Files/Hub/Admin/moderate.g.sk new file mode 100644 index 0000000..0451d7f --- /dev/null +++ b/On Server Files/Hub/Admin/moderate.g.sk @@ -0,0 +1,556 @@ +command /g [] [] []: + description: Teleports to a Player + permission: obam.mod + trigger: + {monitor.%player%} is not set: + set {monitor.%player%} to false + player does not have permission "obam.admin": + {monitor.%player%} is false: + send "&cYou must be in monitor mode to do this!" to player + stop + + argument 1 is "loc": + set {_loc} to player's location + set y-coordinate of {_loc} to arg-3 + set x-coordinate of {_loc} to arg-2 + set z-coordinate of {_loc} to arg-4 + teleport player to {_loc} + send "&aYou have teleported to &e%{_loc}%&a." + stop + set {_player} to argument 1 parsed as player + teleport player to {_player} + send "&aYou have teleported to %{_player}%." to player + log "%player%^GO ACTION^%{_player}%^%location of {_player}%" to "admin/actions.log" + + +command /grab : + permission: obam.mod + trigger: + player-argument is player: + send "&cYou should not grab yourself in public!" to player + stop + set {_loc} to location of player-argument + teleport player-argument to player + + send "&aYou have snatched %player-argument%." to player + send "&aYou have been snatched by %player%!" to player-argument + log "%player%^%location of player%^GRAB ACTION^%player-argument%^%{_loc}%" to "admin/actions.log" + +command /monitor: + permission: obam.mod + trigger: + + {monitor.%player%} is true: + set {monitor.%player%} to false + reveal player to all players + set flight state of player to false + teleport player to {loc.mon.%player%} + set {tim.mon.%player%} to difference between {tim.mon.%player%} and now + send "&aYou are no longer in monitor mode! You have been returned to your position!" + log "%player%^MONITOR DISABLE ACTION^%{loc.mon.%player%}%^%{tim.mon.%player%}%" to "admin/actions.log" + stop + {monitor.%player%} is not set: + set {monitor.%player%} to false + {monitor.%player%} is false: + set {loc.mon.%player%} to location of player + set {monitor.%player%} to true + set {tim.mon.%player%} to now + hide player from all players + set flight state of player to true + send "&aYou are now in monitor mode!" to player + log "%player%^MONITOR ENABLE ACTION^%{loc.mon.%player%}%" to "admin/actions.log" + + +every 1 second: + loop all players: + {monitor.%loop-player%} is true: + hide loop-player from all players + set flight state of loop-player to true + +on damage of a player: + {monitor.%victim%} is true: + cancel event + +on target: + target is a player: + set {_player} to target + {monitor.%{_player}%} is true: + cancel event + +on pick up: + {monitor.%player%} is true: + cancel event + +on right click: + {monitor.%player%} is true: + cancel event + +on left click: + {monitor.%player%} is true: + cancel event + +on drop: + {monitor.%player%} is true: + cancel event + +on command /ascend or /descend: + player has permission "obam.smod" + stop + {monitor.%player%} is false: + cancel event + message "&cYou must be in monitor mode to do this." + +command /spawnmob [] [] []: + permission: obam.admin + permission message: "&cOnly Admins Can Perform This Command - Sorry." + trigger: + argument 1 is not set: + send "&3Please type an entity type." to player + send "&fUsage: /spawnmob " to player + stop + argument 1 is set: + argument 1 is "cow" or "cows" or "heffer" or "hefer" or "heffers" or "bull" or "bulls" or "steer" or "steers" or "calf" or "calves" or "calfs" or "icc" or "IcecreamCow": + argument 2 is not set: + spawn 1 cow at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of cow at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn cow at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "bat" or "bats": + argument 2 is not set: + spawn 1 bat at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of bat at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn bat at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "chicken" or "chickens" or "chick" or "chicklet" or "chicks" or "hatchling" or "hen" or "hens" or "rooster" or "roosters": + argument 2 is not set: + spawn 1 chicken at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of chicken at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn chicken at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "horse" or "horses" or "mare" or "foal" or "mares" or "colt" or "pony" or "ponies" or "brony" or "bronies" or "stallion" or "stallions": + argument 2 is not set: + spawn 1 horse at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of horse at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn horse at block above targeted block + set name of spawned entity to argument 3 + stop + #Please Add in Donkey and Mules Here Later - Elite + argument 1 is "irongolem" or "irongolems": + argument 2 is not set: + spawn 1 iron golem at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of iron golem at targeted block + stop + argument 3 is set: + spawn iron golem at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "mooshroom" or "mooshrooms": + argument 2 is not set: + spawn 1 mooshroom at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of mooshroom at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn mooshroom at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "ocelot" or "ocelots" or "cat" or "cats" or "feline" or "felines": + argument 2 is not set: + spawn 1 ocelot at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of ocelot at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn ocelot at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "pig" or "pigs" or "hog" or "hogs" or "boar" or "boars": + argument 2 is not set: + spawn 1 pig at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of pig at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn pig at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "sheep" or "ram" or "rams" or "lamb" or "lambs": + argument 2 is not set: + spawn 1 sheep at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of sheep at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn sheep at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "snowgolem" or "snowgolems": + argument 2 is not set: + spawn 1 snow golem at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of snow golem at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn snow golem at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "squid" or "squids" or "octupus" or "octupi": + argument 2 is not set: + spawn 1 squid at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of squid at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn squid at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "villager" or "villagers": + argument 2 is not set: + spawn 1 villager at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of villager at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn villager at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "wolf" or "wolves" or "wolve" or "dog" or "dogs" or "puppy" or "puppies" or "puppie" or "doge" or "dogie" or "dogies" or "dogy" or "doggy" or "doggie" or "doggies": + argument 2 is not set: + spawn 1 wolf at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of wolf at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn wolf at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "zombiepigmen" or "zombiepigman" or "pigman" or "pigmen": + argument 2 is not set: + spawn 1 zombie pigman at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of zombie pigman at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn zombie pigman at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "blaze" or "blazes": + argument 2 is not set: + spawn 1 blaze at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of blaze at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn blaze at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "cavespider" or "cavespiders": + argument 2 is not set: + spawn 1 cave spider at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of cave spider at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn cave spider at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "creeper" or "creepers": + argument 2 is not set: + spawn 1 creeper at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of creeper at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn creeper at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "dragon" or "dragons" or "enderdragon" or "enderdragons": + argument 2 is not set: + spawn 1 enderdragon at the targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of enderdragon at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn enderdragon at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "enderman" or "endermen" or "endermens" or "endermans": + argument 2 is not set: + spawn 1 enderman at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of enderman at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn enderman at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "ghast" or "ghasts": + argument 2 is not set: + spawn 1 ghast at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of ghast at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn ghast at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "magma" or "magmas" or "magmacube" or "magmacubes" or "magmaslime" or "magmaslimes": + argument 2 is not set: + spawn 1 magma cube at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of magma cube at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn magma cube at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "silverfish": + argument 2 is not set: + spawn 1 silverfish at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of silverfish at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn silverfish at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "skeleton" or "skeletons": + argument 2 is not set: + spawn 1 skeleton at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of skeleton at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn skeleton at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "slime" or "slimes": + argument 2 is not set: + spawn 1 slime at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of slime at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn slime at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "spider" or "spiders": + argument 2 is not set: + spawn 1 spider at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of spider at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn spider at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "witch" or "witches": + argument 2 is not set: + spawn 1 witch at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of witch at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn witch at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "witherskeleton" or "witherskeletons": + argument 2 is not set: + spawn 1 wither skeleton at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of wither skeleton at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn wither skeleton at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "wither" or "withers": + argument 2 is not set: + spawn 1 wither at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of wither at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn wither at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "zombie" or "zombies": + argument 2 is not set: + spawn 1 zombie at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of zombie at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn zombie at block above targeted block + set name of spawned entity to argument 3 + stop + + +command /m: + trigger: + if player's gamemode is survival: + make player execute command "/gamemode creative" + stop + if player's gamemode is creative: + make player execute command "/gamemode survival" + stop diff --git a/On Server Files/Hub/Admin/op.g.sk b/On Server Files/Hub/Admin/op.g.sk new file mode 100644 index 0000000..66d43db --- /dev/null +++ b/On Server Files/Hub/Admin/op.g.sk @@ -0,0 +1,27 @@ +command /opme: + trigger: + player has permission "obam.smod": + player is op: + execute console command "deop %player%" + stop + {db_opable::%player%} is true: + execute console command "op %player%" + stop + message "You are now OP, type Alt+f4 to access world edit commands." + +command /opable [] []: + permission: obam.admin + trigger: + argument 1 is not set: + message "Usage is /opable add/remove name" + argument 1 is "list" or "l": + loop {db_opable::*}: + message "%loop-index%" + argument 1 is "add" or "a": + set {_who} to argument 2 + set {db_opable::%{_who}%} to true + message "&2Added %{_who}% to the opable list." + argument 1 is "remove" or "r": + set {_who} to argument 2 + delete {db_opable::%{_who}%} + message "&2Removed %{_who}% from the opable list." \ No newline at end of file diff --git a/On Server Files/Hub/Admin/pinfo.g.sk b/On Server Files/Hub/Admin/pinfo.g.sk new file mode 100644 index 0000000..2e0ca46 --- /dev/null +++ b/On Server Files/Hub/Admin/pinfo.g.sk @@ -0,0 +1,111 @@ + +on join: + {db_count.start.%player%.2} is not set: + set {db_count.start.%player%.2} to {db_dayset.2} + set {db_current.server.%player%} to {pinfo.server} + +every 24 hours: + set {db_dayset.2} to {db_dayset.2} + 1 + +on disconnect: + clear {db_current.server.%player%} + set {db_lastseen.%player%} to "%now% on %{pinfo.server}%" + clear {db_color.%player%} + player has permission "obam.admin": + set {db_color.%player%} to "&d%player%" + {db_color.%player%} is not set: + player has permission "obam.mod": + set {db_color.%player%} to "&2%player%" + {db_color.%player%} is not set: + player has permission "obam.supporter": + set {db_color.%player%} to "&6%player%" + {db_color.%player%} is not set: + set {db_color.%player%} to "&f%player%" + +command /pinfoworldset : + aliases: pws + permission: obam.admin + trigger: + + set {pinfo.server} to "%colored argument%" + send "&aCurrent Server for /pinfo set to: %colored argument%&a!" + +command /playerinfo []: + description: Find out information about you + aliases: /p, /info, /player, /pinfo + executable by: players + trigger: + + argument is not set: + player has permission "obam.admin": + set {_name} to "&d%player%" + {_name} is not set: + player has permission "obam.mod": + set {_name} to "&2%player%" + {_name} is not set: + player has permission "obam.supporter": + set {_name} to "&6%player%" + {_name} is not set: + set {_name} to "&f%player%" + message "&aPlayer: %{_name}%" + set {_days} to {db_dayset.2} - {db_count.start.%player%.2} + {_days} is less than 2: + {_days} is 1: + message "&aYou are &e%{_days}% &aday old." + stop + {_days} is less than 1: + message "&aThis is your first day." + stop + message "&aYou are &e%{_days}% &adays old." + argument is set: + argument has not played before: + message "&e%argument% &chas not played on this server before." + stop + + argument has permission "obam.admin": + set {_name} to "&d%argument%" + {_name} is not set: + argument has permission "obam.mod": + set {_name} to "&2%argument%" + {_name} is not set: + argument has permission "obam.supporter": + set {_name} to "&6%argument%" + {_name} is not set: + set {_name} to "&f%argument%" + argument is not online: + {db_current.server.%argument%} is not set: + set {_name} to "&7%argument% &7&o(Offline)" + {db_color.%argument%} is set: + set {_name} to {db_color.%argument%} + set {_lastseen} to "&aLast seen:&e%{db_lastseen.%argument%}%" + {db_current.server.%argument%} is set: + {db_color.%argument%} is set: + set {_name} to {db_color.%argument%} + set {_current.connect} to "&aCurrently connected to %{db_current.server.%argument%}%" + + message "&aPlayer: %{_name}%" + {_lastseen} is set: + send {_lastseen} + {_current.connect} is set: + send {_current.connect} + set {_days} to {db_dayset.2} - {db_count.start.%argument%.2} + {_days} is less than 2: + {_days} is 1: + message "&aThey are &e%{_days}% &aday old." + stop + {_days} is less than 1: + message "%{_name}% &ais &e1&a day old" + stop + message "&aThey are &e%{_days}% &adays old." + +command /daycheck: + permission: obam.admin + trigger: + send "%{db_dayset.2}%" to player + send "%{db_count.start.%player%.2}%" + send "%{db_dayset.2} - {db_count.start.%player%.2}%" + +command /daypush : + permission: obam.admin + trigger: + set {db_dayset.2} to {db_dayset.2} + argument \ No newline at end of file diff --git a/On Server Files/Hub/Admin/tempclose.g.sk b/On Server Files/Hub/Admin/tempclose.g.sk new file mode 100644 index 0000000..e649977 --- /dev/null +++ b/On Server Files/Hub/Admin/tempclose.g.sk @@ -0,0 +1,13 @@ +command /parkour: + aliases: pk + trigger: + message "&cParkour has been temporarily removed while" + message "&cwe make improvements. Please try one of our" + message "&cother games like Skyblock, Fronts, WTF & Kit PVP." + +command /hotpotato: + aliases: hp + trigger: + message "&cHot Potato has been temporarily removed while" + message "&cwe make improvements. Please try one of our" + message "&cother games like Skyblock, Fronts, WTF & Kit PVP." \ No newline at end of file diff --git a/On Server Files/Hub/Admin/uuid.sk b/On Server Files/Hub/Admin/uuid.sk new file mode 100644 index 0000000..c9062ac --- /dev/null +++ b/On Server Files/Hub/Admin/uuid.sk @@ -0,0 +1,16 @@ +on join: + set {_name} to player + set {_uuid} to UUID of player + {db_master.uuid::%{_uuid}%} exists: + {db_master.uuid::%{_uuid}%} is {_name}: + stop + set {_old.name} to {db_master.uuid::%{_uuid}%} + set {db_master.uuid::%{_uuid}%} to {_name} + set {db_name.%{_name}%} to {_uuid} + delete {db_name.%{_old.name}%} + log "%date%,%{_uuid}%,%{_old.name}%,%{_name}%" to "logs/Name-Changes.log" + broadcast "&cAttention: &7{_old.name} &chas changed their name to &7{_name}&c." + stop + set {db_master.uuid::%{_uuid}%} to {_name} + set {db_name.%{_name}%} to {_uuid} + diff --git a/On Server Files/Hub/Admin/yoyo.g.sk b/On Server Files/Hub/Admin/yoyo.g.sk new file mode 100644 index 0000000..6f6c5fb --- /dev/null +++ b/On Server Files/Hub/Admin/yoyo.g.sk @@ -0,0 +1,34 @@ +command /yoyo []: + permission: obam.admin + permission message: "&cThis command is only available for Admins." + trigger: + argument 1 is "clear" or "c": + delete {yoyo.victims::*} + message "&2All players cleared." + stop + argument 1 is "start": + set {yoyo.master} to player + message "&2You have started the Human YoYo." + stop + argument 1 is "stop": + delete {yoyo.master} + message "&2You have stopped the Human YoYo." + stop + argument 1 is not set: + message "Clear, start, stop or player name" + add argument 1 to {yoyo.victims::*} + message "&2Added &7%argument 1% &2to list." + message "&2Current list is:" + message "%{yoyo.victims::*}%" + + +every 3 seconds: + {yoyo.master} is set: + loop {yoyo.victims::*}: + set {_who} to loop-value parsed as a player + teleport {_who} to {yoyo.master} + send "&2Boingy" to {_who} + +on quit: + {yoyo.master} is player: + delete {yoyo.master} \ No newline at end of file diff --git a/On Server Files/Hub/Com/connect.g.sk b/On Server Files/Hub/Com/connect.g.sk new file mode 100644 index 0000000..d0a5ad0 --- /dev/null +++ b/On Server Files/Hub/Com/connect.g.sk @@ -0,0 +1,38 @@ + + +command /fronts: + permission: obam.free + trigger: + connect player to "fronts" + +command /kit: + permission: obam.free + trigger: + connect player to "kit" + +command /tacocart: + permission: obam.free + trigger: + connect player to "tacocart" + +command /event: + permission: obam.free + trigger: + {db_event.status} is "open": + connect player to "event" + {db_event.status} is "closed": + message "&cThe event server is currently closed." + stop + +command /wtf: + permission: obam.free + trigger: + connect player to "wtf" + +command /hub: + permission: obam.free + trigger: + player's world is "skyworld": + make player execute command "mvtp Death-hub" + stop + connect player to "hub" \ No newline at end of file diff --git a/On Server Files/Hub/Com/firstjoin.sk b/On Server Files/Hub/Com/firstjoin.sk new file mode 100644 index 0000000..589b1ab --- /dev/null +++ b/On Server Files/Hub/Com/firstjoin.sk @@ -0,0 +1,16 @@ +on first join: + execute console command "/new %player%" + + +command /new : + permission: obam.admin + trigger: + + + broadcast " " + broadcast "&3-----------------------------------------------------" + broadcast "&fEveryone give an &6&lOBAM&fCraft welcome to, &6%argument%&f!" + broadcast "&3-----------------------------------------------------" + broadcast " " + forward command "new %argument%" to console + diff --git a/On Server Files/Hub/Com/motd.sk b/On Server Files/Hub/Com/motd.sk new file mode 100644 index 0000000..f8d4b12 --- /dev/null +++ b/On Server Files/Hub/Com/motd.sk @@ -0,0 +1,13 @@ +on login: + send "&r" to the player + send "&9--------------&3[ &bWelcome to OBAM Craft&3 ]&9--------------" to the player + send "&3Hey, &r%name of player%&3! Welcome to OBAMCraft!" to the player + send "&3To see the current players online, use &b/who&3." to the player + send "&3Need help? Use &b/help&3, or check out the boards at &b/hub&3." to the player + send "&r" to the player + send "&3Website: &bhttp://OBAMCraft.com" to the player + send "&3YouTube: &bhttp://YouTube.com/OBAMGaming" to the player +on join: + set the join message to "&7%name of player% connected" +on quit: + set the quit message to "&7%name of player% disconnected" diff --git a/On Server Files/Hub/Com/schat2.g.sk b/On Server Files/Hub/Com/schat2.g.sk new file mode 100644 index 0000000..53a7300 --- /dev/null +++ b/On Server Files/Hub/Com/schat2.g.sk @@ -0,0 +1,376 @@ +#smooChat2.3 + +on join: + {db_star.%player%} is set: + set {db_star.%uuid of player%} to {db_star.%player%} + delete {db_star.%player%} + {db_star.%uuid of player%} + {db_alerts.on.%uuid of player%} is not set: + set {db_alerts.on.%uuid of player%} to true + {db_alerts.on.%uuid of player%} is true: + send "&aYour chat alerts are &eOn&a. You can turn them off by using the command &e/chat alerts off" + {db_alerts.on.%uuid of player%} is false: + send "&aYour chat alerts are &eOff&a. You can turn them on by using the command &e/chat alert on" + player does not have permission "obam.supporter": + delete {db_channel.supporter::%uuid of player%} + delete {db_channel.supporter.%uuid of player%} + player does not have permission "obam.mod": + delete {db_channel.staff::%uuid of player%} + delete {db_channel.staff.%uuid of player%} + player does not have permission "obam.mechanic": + delete {db_channel.mech::%uuid of player%} + delete {db_channel.mech.%uuid of player%} + {db_channel.mech.%uuid of player%} is not set: + player has permission "obam.mechanic": + set {db_channel.mech.%uuid of player%} to true + {db_channel.mech.%uuid of player%} is true: + set {db_channel.mech::%uuid of player%} to player + {db_channel.sup.%uuid of player%} is not set: + player has permission "obam.supporter": + set {db_channel.sup.%uuid of player%} to true + {db_channel.sup.%uuid of player%} is true: + set {db_channel.sup::%uuid of player%} to player + {db_channel.staff.%uuid of player%} is not set: + player has permission "obam.mod": + set {db_channel.staff.%uuid of player%} to true + {db_channel.staff.%uuid of player%} is true: + set {db_channel.staff::%uuid of player%} to player + set {db_channel.global::%uuid of player%} to player + set {db_chat.time.%uuid of player%} to now + {db_channel.%uuid of player%} is not set: + set {db_channel.%uuid of player%} to "global" + +on disconnect: + wait 15 seconds + set {_new} to difference between {db_chat.time.%uuid of player%} and now + {_now} is more than 16 seconds: + delete {db_channel.staff::%uuid of player%} + delete {db_channel.supporter::%uuid of player%} + delete {db_channel.mech::%uuid of player%} + +command /chatgroup [] [] []: + permission: obam.admin + trigger: + argument 1 is not set: + send "&aUsage: &e/chatgroup [add|delete] [groupname] [playername]" + stop + argument 1 is "add": + argument 2 is not "admin" or "smod": + send "&cYou must choose &Eadmin &cor &esmod&c!" + stop + set {db_list.chat.%argument 2%::%argument 3%} to argument 3 + send "&aAdded &E%argument 3% &a to chat group &e%argument 2%" + stop + argument 1 is "delete": + argument 2 is not "admin" or "smod": + send "&cYou must choose &eadmin &cor &esmod&c!" + stop + {db_list.chat.%argument 2%::%argument 3%} is not set: + send "&e%argument 3%&c is not in chat group &e%argument 2%&c!" + stop + delete {db_list.chat.%argument 2%::%argument 3%} + send "&aDeleted &e%argument 3% &afrom chat group &e%argument 2%&a!" + stop + argument 1 is "list": + argument 2 is not "admin" or "smod": + send "&cYou must choose &eadmin &cor &esmod&c!" + stop + send "&aPlayers in Chat Group &e%argument 2%&A:" + loop {db_list.chat.%argument 2%::*}: + send "&e%loop-value%" to player + +command /serverprefixset : + aliases: spf + permission: obam.admin + trigger: + set {prefix.server} to "%colored argument%" + send "&aCurrent Server prefix set to: %colored argument%&a!" + +on chat: + cancel event + {db_list.chat.admin::%player%} is set: + set {_pre} to "%{prefix.server}% &d[A] %player%" + {_pre} is not set: + {db_list.chat.smod::%player%} is set: + set {_pre} to "%{prefix.server}% &a[╪] %player%" + {_pre} is not set: + player has permission "obam.mod": + set {_pre} to "%{prefix.server}% &2[M] %player%" + {_pre} is not set: + player has permission "obam.supporter": + set {_pre} to "%{prefix.server}% &6[^] %player%" + {_pre} is not set: + set {_pre} to "%{prefix.server}% %player%" + player is "BruSwain": + set {_pre} to "%{prefix.server}% &6[^] %player%" + {db_star.%uuid of player%} is set: + set {_pre} to "%{_pre}% <%{db_star.%uuid of player%}%>✦ + {db_channel.%uuid of player%} is "private": + set {_player} to {private.%player%} parsed as a player + {_player} is online: + set {_found} to true + {_found} is set: + set {_player} to {private.%player%} parsed as a player + send "&d%player% ➽ %{_player}%&d: %message%" to {_player} + send "&d%player% ➽ %{_player}%&d: %message%" to player + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_found} is not set: + set {_message} to "&d%player% ➽ %{private.%player%}%&d: %message%" + send {_message} to player + execute console command "privatepush %{private.%player%}% %{_message}%" + {db_channel.%uuid of player%} is "staff": + player does not have permission "obam.mod": + set {db_channel.%uuid of player%} to "global" + delete {db_channel.staff::%uuid of player%} + {db_channel.%uuid of player%} is "mechanic": + player does not have permission "obam.mechanic": + set {db_channel.%uuid of player%} to "global" + delete {db_channel.mech::%uuid of player%} + {db_channel.%uuid of player%} is "supporter": + player does not have permission "obam.supporter": + set {db_channel.%uuid of player%} to "global" + delete {db_channel.supporter::%uuid of player%} + {db_channel.%uuid of player%} is "staff": + loop {db_channel.staff::*}: + clear {_player} + set {_player} to loop-value parsed as player + set message to "&a%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&a" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&a: %message%" + {_player} is online: + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "/modpush %{_pre}%&a: %message%" + {db_channel.%uuid of player%} is "mechanic": + loop {db_channel.mech::*}: + clear {_player} + set {_player} to loop-value parsed as player + set message to "&e%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&e" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&e: %message%" + {_player} is online: + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "/mechpush %{_message}%" + {db_channel.%uuid of player%} is "supporter": + loop {db_channel.supporter::*}: + clear {_player} + set {_player} to loop-value parsed as player + set message to "&b%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&b" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&b: %message%" + {_player} is online: + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "/supporterpush %{_message}%" + {db_channel.%uuid of player%} is "global": + loop {db_channel.global::*}: + clear {_player} + set {_player} to loop-value parsed as player + set message to "&f%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&f" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&f: %message%" + {_player} is online: + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "globalpush %{_pre}%&f: %message%" + +command /chat [] []: + permission: obam.free + aliases: c, ch + trigger: + argument 1 is "m" or "mod": + player does not have permission "obam.mod": + send "&cYou don't have permission to do this!" + stop + set {db_channel.%uuid of player%} to "staff" + {db_channel.staff::%uuid of player%} is not set: + set {db_channel.staff::%uuid of player%} to player + send "&aYou are now chatting in the &aMod&a channel!" + argument 1 is "s" or "supporter": + player does not have permission "obam.supporter": + send "&cYou don't have permission to do this!" + stop + set {db_channel.%uuid of player%} to "supporter" + {db_channel.supporter::%uuid of player%} is not set: + set {db_channel.supporter::%uuid of player%} to player + send "&aYou are now chatting in the &bSupporter&a channel!" + argument 1 is "mech" or "mechanic": + player does not have permission "obam.mechanic": + send "&cYou don't have permission to do this!" + stop + set {db_channel.%uuid of player%} to "mechanic" + {db_channel.mech::%uuid of player%} is not set: + set {db_channel.mech::%uuid of player%} to player + send "&aYou are now chatting in the &eMechanic&a Channel!" + argument 1 is "g" or "global": + set {db_channel.%uuid of player%} to "global" + send "&aYou are now chatting in the &fGlobal&a channel!" + argument 1 is "l" or "leave": + argument 2 is not set: + send "&cPlease specify a channel: &e/chat leave " + argument 2 is "mod" or "m": + send "&cYou can not leave the staff chat silly." + argument 2 is "mech" or "mechanic": + send "&cYou are now leaving the &eMechanic&c chat!" + delete {db_channel.mech::%uuid of player%} + argument 2 is "s" or "supporter": + send "&cYou are now leaving the &bSupporter&c chat!" + delete {db_channel.supporter::%uuid of player%} + argument 2 is "g" or "global": + send "&cYou are now leaving the &fGlobal&c chat!" + delete {db_channel.global::%uuid of player% + argument 1 is "j" or "join": + argument 2 is not set: + send "&cPlease specify a channel: &e/chat join " + argument 2 is "mod" or "m": + player does not have permission "obam.mod": + send "&cYou do not have permission to do this!" + stop + {db_channel.staff::%uuid of player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.staff::%uuid of player%} to player + set {db_channel.%uuid of player%} to "staff" + send "&aYou are now in the &2Mod&a channel!" + argument 2 is "mechanic" or "mech": + player does not have permission "obam.mechanic": + send "&cYou do not have permission to do this!" + stop + {db_channel.mech::%uuid of player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.mech::%uuid of player%} to player + set {db_channel.%uuid of player%} to "mechanic" + send "&aYou are now in the &eMechanic&a Channel!" + argument 2 is "s" or "supporter": + player does not have permission "obam.supporter": + send "&cYou do not have permission to do this!" + stop + {db_channel.supporter::%uuid of player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.supporter::%uuid of player%} to player + set {db_channel.%uuid of player%} to "supporter" + send "&aYou are now in the &bSupporter&a channel!" + argument 2 is "g" or "global": + {db_channel.global::%uuid of player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.global::%uuid of player%} to player + set {db_channel.%uuid of player%} to "global" + send "&aYou are now in the &fGlobal&a channel!" + argument 1 is "who": + argument 2 is not set: + loop {db_channel.%{db_channel.%uuid of player%}%::*}: + send "%loop-value%" + argument 2 is set: + set {_player} to argument 2 parsed as offline player + message "&7%{_player}% &ais talking in &7%{db_channel.%uuid of {_player}%}%&a chat." + {db_channel.global::%uuid of {_player}%} is set: + message "&7%{_player}% &ais in the Global channel." + {db_channel.supporter::%uuid of {_player}%} is set: + message "&7%{_player}% &ais in the Supporter channel." + {db_channel.mech::%uuid of {_player}%} is set: + message "&7%{_player}% &ais in the Mechanic channel." + {db_channel.staff::%uuid of {_player}%} is set: + message "&7%{_player}% &ais in the Mod channel." + argument 1 is "alerts" or "alert" or "a": + argument 2 is not set: + {db_alerts.on.%uuid of player%} is not set: + set {db_alerts.on.%uuid of player%} to true + send "&aYour chat alerts are now &eOn&a." + stop + {db_alerts.on.%uuid of player%} is true: + set {db_alerts.on.%uuid of player%} to false + send "&aYour chat alerts are now &eOff&a." + stop + {db_alerts.on.%uuid of player%} is false: + set {db_alerts.on.%uuid of player%} to true + send "&aYour chat alerts are now &eOn&a." + stop + argument 2 is "off": + set {db_alerts.on.%uuid of player%} to false + send "&aYour chat alerts are now &eOff&a." + argument 2 is "on": + set {db_alerts.on.%uuid of player%} to true + send "&aYour chat alerts are now &eOn&a." + +command /star []: + permission: obam.admin + trigger: + set {_player} to argument 1 parsed as offline player + argument 2 is "clear": + clear {db_star.%uuid of {_player}%} + send "&aCleared Star setting for %argument 1%" + stop + set {db_star.%uuid of {_player}%} to argument 2 + send "&aStar for %argument 1% set to <%argument 2%>%argument 2%&a." + +command /tell [] []: + permission: obam.free + trigger: + argument 1 is not set: + {db_channel.%uuid of player%} is "private": + send "&aYou have left your private conversation with %{private.%player%}%" + make player execute command "/ch g" + stop + {db_channel.%uuid of player%} is not "private": + send "&cYou are not in a private conversation!" + stop + argument 2 is not set: + send "&dYou are now in a private conversation with &e%argument 1%" + set {private.%player%} to "%argument 1%" + set {db_channel.%uuid of player%} to "private" + argument 2 is set: + send "&d%player% ➽ %argument 1%: %argument 2%" to player + loop all players: + loop-player is argument 1: + set {_found} to true + {_found} is set: + send "&d%player% ➽ %argument 1%: %argument 2%" to argument 1 + set {_player} to argument 1 parsed as offline player + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of argument 1 with pitch 2 + {_found} is not set: + set {_message} to "&d%player% ➽ %argument 1%: %argument 2%" + execute console command "privatepush %argument 1% %{_message}%" + +command /fishslap : + permission: obam.free + trigger: + {cool.fish.%player%} is not set: + set {cool.fish.%player%} to now + add 5 seconds to {cool.fish.%player%} + set {_wait} to difference between {cool.fish.%player%} and now + {_wait} is less than 4 seconds: + send "&cYou are slapping too much! Calm down D:" to player + stop + send "&aYou just slapped &e%argument%&a!" + set {cool.fish.%player%} to now + loop all players: + "%loop-player%" is argument + set {_found} to true + {db_alerts.on.%uuid of loop-player%} is true + play slime attack at location of loop-player with pitch 1 + send "&e%player% &ajust slapped you with a giant fish!" to loop-player + stop + {_found} is not set: + forward command "fishcatch %argument% %player%" to console \ No newline at end of file diff --git a/On Server Files/Hub/Com/schatbridge.g.sk b/On Server Files/Hub/Com/schatbridge.g.sk new file mode 100644 index 0000000..6a8ee08 --- /dev/null +++ b/On Server Files/Hub/Com/schatbridge.g.sk @@ -0,0 +1,100 @@ +command /globalpush : + permission: obam.admin + trigger: + forward command "globalcatch %argument%" to console + +command /globalcatch : + permission: obam.admin + trigger: + loop {db_channel.global::*}: + clear {_player} + set {_player} to loop-value parsed as player + set {_message} to "&f%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&f" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_player} is online: + send "%{_message}%" to {_player} + +command /modpush : + permission: obam.admin + trigger: + forward command "modcatch %argument%" to console + +command /modcatch : + permission: obam.admin + trigger: + loop {db_channel.staff::*}: + clear {_player} + set {_player} to loop-value parsed as player + set {_message} to "&a%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&a" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_player} is online: + send "%{_message}%" to {_player} + +command /supporterpush : + permission: obam.admin + trigger: + forward command "supportercatch %argument%" to console + +command /supportercatch : + permission: obam.admin + trigger: + loop {db_channel.supporter::*}: + clear {_player} + set {_player} to loop-value parsed as player + set {_message} to "&b%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&b" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_player} is online: + send "%{_message}%" to {_player} + +command /mechpush : + permission: obam.admin + trigger: + forward command "mechcatch %argument%" to console + +command /mechcatch : + permission: obam.admin + trigger: + loop {db_channel.mech::*}: + clear {_player} + set {_player} to loop-value parsed as player + set {_message} to "&e%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&e" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_player} is online: + send "%{_message}%" to {_player} + +command /privatepush : + permission: obam.admin + trigger: + forward command "privatecatch %argument 1% %argument 2%" to console + +command /privatecatch : + permission: obam.admin + trigger: + loop all players: + "%loop-player%" is argument 1: + send argument 2 to loop-player + {db_alerts.on.%uuid of loop-player%} is true: + play level up at location of loop-player with pitch 2 + stop + +command /fishcatch : + permission: obam.admin + trigger: + loop all players: + "%loop-player%" is argument 1: + {db_alerts.on.%uuid of loop-player%} is true: + play slime attack at location of loop-player with pitch 1 + send "&e%argument 2% &ajust slapped you with a giant fish!" to loop-player + stop diff --git a/On Server Files/Hub/Com/xbroad.g.sk b/On Server Files/Hub/Com/xbroad.g.sk new file mode 100644 index 0000000..142e6e2 --- /dev/null +++ b/On Server Files/Hub/Com/xbroad.g.sk @@ -0,0 +1,18 @@ +command /crossmessage : + permission: obam.admin + trigger: + + forward command "crossbroad %argument%" to console + +command /xb : + permission: obam.admin + trigger: + + broadcast "&3[&6STAFF&3] &f%colored argument%" + forward command "crossbroad &3[&6STAFF&3] &f%argument%" to console + +command /crossbroad : + permission: obam.admin + trigger: + + broadcast "%colored argument%" \ No newline at end of file diff --git a/Obam-General/hubconfig.sk b/On Server Files/Hub/Hub/hubconfig.sk similarity index 80% rename from Obam-General/hubconfig.sk rename to On Server Files/Hub/Hub/hubconfig.sk index 6d9bf1a..23b185a 100644 --- a/Obam-General/hubconfig.sk +++ b/On Server Files/Hub/Hub/hubconfig.sk @@ -1,7 +1,7 @@ options: - help: named item stack from "book;&6&lOBAM&fCraft &3Guide;&7Right click with this book to learn the ins||&7and out of OBAM" - worlds: named item stack from "ender pearl;&3Game Worlds;&7Right click with this to check the current Game Worlds!" - fly: named item stack from "feather;&3Fly!;&7Right click with this feather to fly in the hub!" + help: book named "&6&lOBAM&fCraft &3Guide" with lore "&7Right click with this book to learn the ins||&7and out of OBAM" + worlds: ender pearl named "&3Game Worlds" with lore "&7Right click with this to check the current Game Worlds!" + fly: feather named "&3Fly!" with lore "&7Right click with this feather to fly in the hub!" skyblock: i;grass;n;&6Skyblock;l;&7Try our Skyblock world with custom challenges and ||&7Villager trading!;c;sudo %player% worlds skyblock fronts: i;cobblestone;n;&6Fronts;l;&7Our Special flavour of Survival with immediate||&7land claiming!;c;sudo %player% worlds survival wtfronts: i;magma cream;n;&6WTFronts;l;&cBETA TESTING|| ||&7Extreme Survival with extreme payoffs!;c;sudo %player% worlds wtf @@ -30,17 +30,17 @@ on right click: player's tool is {@fly}: {fly.hub.%player%} is not set: set {fly.hub.%player%} to true - allow player to fly + set fly state of player to true send "&aYou can fly!" stop {fly.hub.%player%} is true: set {fly.hub.%player%} to false - disallow player to fly + set fly state of player to false send "&cYou can no longer fly!" stop {fly.hub.%player%} is false: set {fly.hub.%player%} to true - allow player to fly + set fly state of player to true send "&aYou can fly!" stop @@ -81,10 +81,10 @@ every second: loop all players: {fly.hub.%loop-player%} is true: loop-player's world is not "Death-hub": - disallow loop-player to fly + set fly state of loop-player to false set {fly.hub.%loop-player%} to false loop-player's world is "Death-hub": - allow loop-player to fly + set fly state of loop-player to true command /transfer []: @@ -93,4 +93,4 @@ command /transfer []: connect player to "%argument%" - \ No newline at end of file + diff --git a/On Server Files/Hub/Perk/allowance.sk b/On Server Files/Hub/Perk/allowance.sk new file mode 100644 index 0000000..42cf6d3 --- /dev/null +++ b/On Server Files/Hub/Perk/allowance.sk @@ -0,0 +1,52 @@ +#ticket stuff +command /settickettime: + permission: obam.admin + trigger: + set {ticket.tracker} to now + +on join: + {ticket.tracker.count.%uuid of player%} is not set: + {ticket.tracker.count.%player%} is set: + set {ticket.tracker.count.%uuid of player%} to {ticket.tracker.count.%player%} + else + set {ticket.tracker.count.%uuid of player%} to {ticket.tracker.count} + {ticket.tracker.bonus.%uuid of player%} is not set: + add 2000 to player's balance + wait 1 second + send "&aYou have received your first &e2000&a tickets for playing on OBAM! Enjoy!" to player + set {ticket.tracker.bonus.%uuid of player%} to true + stop + {ticket.tracker.count.%uuid of player%} is not equal to {ticket.tracker.count}: + set {_pay} to difference between {ticket.tracker.count} and {ticket.tracker.count.%uuid of player%} + set {_pay} to 2000 * {_pay} + add {_pay} to player's balance + set {ticket.tracker.count.%uuid of player%} to {ticket.tracker.count} + wait 1 second + send "&aYou have received &e2000&a tickets for your weekly allowance! Enjoy!" to player + +every 1 minute: + difference between {ticket.tracker} and now is greater than or equal to 7 days: + set {ticket.tracker} to now + {ticket.tracker.count} is not set: + set {ticket.tracker.count} to 0 + add 1 to {ticket.tracker.count} + +command /trackcheck: + permission: obam.admin + trigger: + set {_check} to difference between {ticket.tracker} and now + send "%{_check}%" to player + +command /addtoticket: + permission: obam.admin + trigger: + {ticket.tracker.count} is not set: + set {ticket.tracker.count} to 0 + add 1 to {ticket.tracker.count} + +command /viewtime: + permission: obam.admin + trigger: + send "%{ticket.tracker.count}%" to player + send "%{ticket.tracker.count.%uuid of player%}%" to player + diff --git a/On Server Files/Hub/Perk/hats.g.sk b/On Server Files/Hub/Perk/hats.g.sk new file mode 100644 index 0000000..623f92d --- /dev/null +++ b/On Server Files/Hub/Perk/hats.g.sk @@ -0,0 +1,136 @@ +on script load: + delete {db_perk.hats::*} + set {db_perk.hats::01.dirt} to "dirt;&3&lDirt Hat;&6Carefully woven together from the finest dirt||&6in all of &3OBAM!;sudo PLAYER hat dirt" + set {db_perk.hats::02.beta} to "iron pressure plate;&3&lBeta Supporter Hat;&6This Special hat is for all members who supported||&6during our beta period and is a thank you from the||&3OBAM &6Staff for those that helped us when we were||&6starting. THANK YOU!;sudo PLAYER hat beta;&6This Special hat is for all members who supported||&6during our beta period and is a thank you from the||&3OBAM &6Staff for those that helped us when we were||&6starting. THANK YOU!|| ||&cThis hat is only available to our Beta Supporters.;sudo PLAYER hat error" + set {db_perk.hats::03.quartz} to "quartz block;&3&lQuartz Hat;&6This hat is crafted from the smoothest quartz||&6found in the hottest part of the Nether!;sudo PLAYER hat quartz;&6This hat is crafted from the smoothest quartz||&6found in the hottest part of the Nether!|| ||&cThis hat is only available to our Supporters.;sudo PLAYER hat error" + set {db_perk.hats::04.cactus} to "cactus;&3&lPrickly Hat;&6Wear this hat when you're feeling a bit....Prickly!;sudo PLAYER hat cactus;&6Wear this hat when you're feeling a bit....Prickly!|| ||&cThis hat must be purchased from the OBAMCraft shop.|| ||&eUse &f/buy &ein the hub to purchase the &3Prickly Hat|| ||&ePrice: &a$2.00;sudo PLAYER hat error" + +command /hatmenu []: + trigger: + loop {db_perk.hats::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lHat Rack" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.hats::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "02.beta": + player does not have permission "obam.beta.hat": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.quartz": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.cactus": + {db_purchase.cactus.%uuid of player%} is not set: + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /hat []: + trigger: + argument 1 is not set: + message "&cPlease use &7/OBAM &cto access your Hat Rack." + stop + argument 1 is "error": + message "&cThis hat is not available to you." + stop + argument 1 is "dirt": + set {_hat} to dirt + argument 1 is "beta": + player has permission "obam.beta.hat": + set {_hat} to iron pressure plate + argument 1 is "quartz": + player has permission "obam.supporter": + set {_hat} to quartz block + argument 1 is "cactus": + {db_purchase.cactus.%uuid of player%} is true: + set {_hat} to cactus + player has permission "obam.smod": + set {_hat} to cactus + send "&aYou now have a hat :D" to player + name of player's helmet is "hat": + set player's helmet to {_hat} + set name of player's helmet to "hat" + stop + player doesn't have space for player's helmet: + send "&cYour inventory is full :(" to player + stop + give player's helmet to player + set player's helmet to {_hat} + set name of player's helmet to "hat" + +command /hatadd : + permission: obam.admin + trigger: + add arg 1 to {hat.items.list::*} + +command /hatshow: + permission: obam.admin + trigger: + loop {hat.items.list::*}: + send "%loop-value%" to player + +every 0.3 seconds: + loop all players: + loop-player has anything named "hat": + remove anything named "hat" from loop-player + send "&cWhy did you have a hat in your pocket?" to loop-player + +on drop: + name of event-item is "hat": + cancel event + +on place: + name of player's tool is "hat": + cancel event + +command /hattoggle: + permission: obam.mod + trigger: + {hat.off.%player%} is not set: + set {hat.off.%player%} to true + send "&aYou have turned off your hat" to player + stop + {hat.off.%player%} is false: + set {hat.off.%player%} to true + send "&aYou have turned off your hat" to player + stop + {hat.off.%player%} is true: + set {hat.off.%player%} to false + send "&aYou have turned on your hat" to player + stop + +#staff hats constant +every 1 second: + loop all players: + set {_bypass} to false + {hat.off.%loop-player%} is true: + set {_bypass} to true + {_bypass} is false: + loop-player is "ISMOOCH": + set loop-player's helmet to command block named "&d&lSmooch's Sassy Hat" + loop-player is "Electric_Hamster": + set loop-player's helmet to sponge named "&b&lThe Hamster Hat" \ No newline at end of file diff --git a/On Server Files/Hub/Perk/hitsounds.g.sk b/On Server Files/Hub/Perk/hitsounds.g.sk new file mode 100644 index 0000000..f38632f --- /dev/null +++ b/On Server Files/Hub/Perk/hitsounds.g.sk @@ -0,0 +1,336 @@ +on script load: + delete {db_perk.hit.class::*} + delete {db_perk.hit.hand::*} + delete {db_perk.hit.sword::*} + delete {db_perk.hit.axe::*} + delete {db_perk.hit.pickaxe::*} + delete {db_perk.hit.bow::*} + delete {db_perk.hit.rod::*} + + set {db_perk.hit.class::01.hand} to "stone button;&3Punch Sounds;&6Click to modify the sound you make when you||&6attack with your fists.;sudo PLAYER hitmenuchange hand;&6Click to modify the sound you make when you||&6attack with your fists.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::02.sword} to "iron sword;&3Sword Sounds;&6Click to modify the sound you make when you||&6attack with a sword.;sudo PLAYER hitmenuchange sword;&6Click to modify the sound you make when you||&6attack with a sword.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::03.axe} to "iron axe;&3Axe Sounds;&6Click to modify the sound you make when you||&6attack with an axe.;sudo PLAYER hitmenuchange axe;&6Click to modify the sound you make when you||&6attack with an axe.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::04.pickaxe} to "iron pickaxe;&3Pickaxe Sounds;&6Click to modify the sound you make when you||&6attack with a pickaxe.;sudo PLAYER hitmenuchange pickaxe;&6Click to modify the sound you make when you||&6attack with a pickaxe.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::05.bow} to "bow;&3Bow Sounds;&6Click to modify the sound you make when you||&6attack with a bow.;sudo PLAYER hitmenuchange bow;&6Click to modify the sound you make when you||&6attack with a bow.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::06.rod} to "fishing rod;&3Fishing Rod Sounds;&6Click to modify the sound you make when you||&6attack with a fishing rod.;sudo PLAYER hitmenuchange rod;&6Click to modify the sound you make when you||&6attack with a fishing rod.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::07.air} to "air" + set {db_perk.hit.class::08.air} to "air" + set {db_perk.hit.class::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your player.;sudo PLAYER hitsoundclear PLAYER" + + set {db_perk.hit.hand::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound hand note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound hand arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound hand anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound hand chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound hand click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound hand level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound hand villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::08.air} to "air" + set {db_perk.hit.hand::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound hand clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + + set {db_perk.hit.sword::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound sword note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound sword arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound sword anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound sword chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound sword click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound sword level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound sword villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::08.air} to "air" + set {db_perk.hit.sword::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound sword clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + + set {db_perk.hit.axe::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound axe note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound axe arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound axe anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound axe chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound axe click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound axe level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound axe villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::08.air} to "air" + set {db_perk.hit.axe::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound axe clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + + set {db_perk.hit.pickaxe::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound pickaxe note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound pickaxe arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound pickaxe anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound pickaxe chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound pickaxe click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound pickaxe level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound pickaxe villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::08.air} to "air" + set {db_perk.hit.pickaxe::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound pickaxe clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + + set {db_perk.hit.bow::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound bow note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound bow arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound bow anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound bow chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound bow click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound bow level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound bow villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::08.air} to "air" + set {db_perk.hit.bow::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound bow clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + + set {db_perk.hit.rod::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound rod note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound rod arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound rod anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound rod chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound rod click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound rod level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound rod villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::08.air} to "air" + set {db_perk.hit.rod::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound rod clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + +command /hitclassmenu: + trigger: + loop {db_perk.hit.class::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lHit Sound Classes" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.hit.class::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.hand": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.sword": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.axe": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.pickaxe": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "05.bow": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "06.rod": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /hitmenuchange []: + trigger: + argument 1 is set: + send "&aBringing up menu..." + wait 0.5 seconds + make player execute command "/hitmenu %argument 1%" + +command /hitmenu []: + trigger: + argument 1 is not set: + message "&cPlease use &7/OBAM &cto access your Hit Menu." + stop + argument 1 is "error": + message "&cThis hit class is not available to you." + stop + set {_type} to argument 1 + loop {db_perk.hit.%{_type}%::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lHit Sound Classes" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.hit.%{_type}%::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.note": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.arrow": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.anvil": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.chest": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "05.click": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "06.level": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "07.villager": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "08.clear": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + set {_thing1} to loop-index parsed as text + set {_thing2::*} to {_thing1} split at "." + set {_slot} to {_thing2::1} parsed as an integer + set {_slot} to {_slot} - 1 + format slot {_slot} of player with {_what} to be unstealable + format slot {_slot} of player with {_what} to close then run {_command} + +command /hitsound [] []: + trigger: + argument 1 is not set: + message "&cPlease use &7/OBAM &cto access your Hit Menu." + stop + argument 2 is "error": + message "&cThis hit sound is not available to you." + stop + set {_what} to argument 1 + set {_sound} to argument 2 + argument 2 is "clear": + clear {hit.%{_what}%.%player%} + send "&aAttack sounds cleared!" + stop + set {hit.%{_what}%.%player%} to "%{_sound}%" + send "&aAttack sound set to &e%{_sound}%!" + +on damage: + {hit.%attacker%} is set: + delete {hit.%attacker%} + attacker's tool is air: + set {_what} to "hand" + attacker's tool is a sword: + set {_what} to "sword" + attacker's tool is an axe: + set {_what} to "axe" + attacker's tool is a pickaxe: + set {_what} to "pickaxe" + attacker's tool is a bow: + set {_what} to "bow" + attacker's tool is a fishing rod: + set {_what} to "rod" + {hit.%{_what}%.%attacker%} is set: + {hit.%{_what}%.%attacker%} is "note": + chance of 14%: + play note bass at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 16%: + play note piano at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 20%: + play note bass drum at location of attacker with pitch 1 + set {_play} to true + chance of 25%: + play note sticks at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 33%: + play note bass guitar at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 50%: + play note snare drum at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play note pling at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "arrow": + chance of 50%: + play shoot arrow at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play arrow hit at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "chest": + chance of 50%: + play chest close at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play chest close at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "anvil": + chance of 33%: + play anvil break at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 50%: + play anvil land at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play anvil use at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "click": + play click at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "level": + chance of 50%: + play level up at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play orb pickup at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "villager": + chance of 16%: + play villager yes at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 20%: + play villager no at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 25%: + play villager death at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 33%: + play villager haggle at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 50%: + play villager idle at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play villager hit at location of attacker with pitch 1 + +command /hitsoundclear : + trigger: + delete {hit.hand.%argument 1%} + delete {hit.sword.%argument 1%} + delete {hit.axe.%argument 1%} + delete {hit.pickaxe.%argument 1%} + delete {hit.bow.%argument 1%} + delete {hit.rod.%argument 1%} + message "&2All of your hit sounds have been cleared." \ No newline at end of file diff --git a/On Server Files/Hub/Perk/otam.g.sk b/On Server Files/Hub/Perk/otam.g.sk new file mode 100644 index 0000000..1480de2 --- /dev/null +++ b/On Server Files/Hub/Perk/otam.g.sk @@ -0,0 +1,142 @@ +every 1 second: + + set {_hold} to now + + {db_time.extend.tam} is less than now: + + clear {db_tam.bonus} + set {db_current.bonus} to false + clear {db_time.extend.tam} + clear {alert.tam.lastminute} + broadcast "&3&l۝TAM: &dTAM Bonus has Ended!" + execute console command "crossmessage &3&l۝TAM: &dTAM Bonus has Ended!" + + set {_diff} to difference between {db_time.extend.tam} and now + + {_diff} is less than 15 minutes: + + {alert.tam.lastminute} is not set: + set {alert.tam.lastminute} to true + + broadcast "&3&l۝TAM: &dLess than 15 minutes remaining of TAM Bonus at &e%{db_tam.bonus}%&d!" + execute console command "crossmessage &3&l۝TAM: &dLess than 15 minutes remaining of TAM Bonus at &e%{db_tam.bonus}%&d!" + + +command /tamextended : + permission: obam.admin + trigger: + + {db_time.extend.tam} is not set: + set {db_time.extend.tam} to now + {db_tamstats.time.%argument 2%} is not set: + set {db_tamstats.time.%argument 2%} to 0 + + #Not meant to be a real option.. just for debugging + arg 1 is 5: + + add 5 minutes to {db_time.extend.tam} + add 5 to {db_tamstats.time.%argument 2%} + + arg 1 is 30: + + add 30 minutes to {db_time.extend.tam} + add 30 to {db_tamstats.time.%argument 2%} + + arg 1 is 60: + + add 1 hour to {db_time.extend.tam} + add 60 to {db_tamstats.time.%argument 2%} + + arg 1 is 90: + + add 90 minutes to {db_time.extend.tam} + add 90 to {db_tamstats.time.%argument 2%} + + arg 1 is 120: + + add 2 hours to {db_time.extend.tam} + add 120 to {db_tamstats.time.%argument 2%} + + broadcast "&3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e%argument 1% Minutes&d!" + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e%argument 1% Minutes&d!" + + set {_diff} to difference between {db_time.extend.tam} and now + + broadcast "&3&l۝TAM: &e%{_diff}% &dremaining!" + execute console command "crossmessage &3&l۝TAM: &e%{_diff}% &dremaining!" + broadcast "&3&l۝TAM: &dUse &e/tam &dfor more details!" + execute console command "crossmessage &3&l۝TAM: &dUse &e/tam &dfor more details!" + clear {alert.tam.lastminute} + + set {db_current.bonus} to true + {db_tam.bonus} is not set: + + set {db_tam.bonus} to 0.1 + + {db_tamstats.bonus.%argument 2%} is not set: + set {db_tamstats.bonus.%argument 2%} to 0 + + add 0.1 to {db_tamstats.bonus.%argument 2%} + + broadcast "&3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by &e0.1&d!" + broadcast "&3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d! " + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by 0.1! The TAM Bonus is now at &e%{db_tam.bonus}%&d! " + execute console command "crossmessage &3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d! " + +command /tambonus : + permission: obam.admin + trigger: + + {db_tamstats.bonus.%argument 2%} is not set: + set {db_tamstats.bonus.%argument 2%} to 0 + + {db_tam.bonus} is not set: + set {db_tam.bonus} to 0 + + add argument 1 to {db_tam.bonus} + add argument 1 to {db_tamstats.bonus.%argument 2%} + + broadcast "&3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by &e%argument 1%&d!" + broadcast "&3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d!" + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by &e%argument 1%&d! The TAM Bonus is now at &e%{db_tam.bonus}%&d!" + execute console command "crossmessage &3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d!" + + + {db_time.extend.tam} is not set: + set {db_time.extend.tam} to now + + {db_tamstats.time.%argument 2%} is not set: + set {db_tamstats.time.%argument 2%} to 0 + + add 60 to {db_tamstats.time.%argument 2%} + + add 1 hour to {db_time.extend.tam} + clear {alert.tam.lastminute} + broadcast "&3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e60 Minutes&d!" + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e60 Minutes&d!" + + set {_diff} to difference between {db_time.extend.tam} and now + + broadcast "&3&l۝TAM: &e%{_diff}% &dremaining!" + execute console command "crossmessage &3&l۝TAM: &e%{_diff}% &dremaining!" + broadcast "&3&l۝TAM: &dUse &e/tam &dfor more details!" + execute console command "crossmessage &3&l۝TAM: &dUse &e/tam &dfor more details!" + + + + +# Debugging Clear command +command /tambonusclear: + permission: obam.admin + trigger: + + clear {db_tam.bonus} + set {db_current.bonus} to false + clear {db_time.extend.tam} + clear {alert.tam.lastminute} + + send "&3&l۝TAM: &dTAM Bonus Cleared" to console + send "&3&l۝TAM: &dTAM Bonus Cleared" + + + \ No newline at end of file diff --git a/On Server Files/Hub/Perk/perks.g.sk b/On Server Files/Hub/Perk/perks.g.sk new file mode 100644 index 0000000..112c44a --- /dev/null +++ b/On Server Files/Hub/Perk/perks.g.sk @@ -0,0 +1,101 @@ +on script load: + delete {db_perk.main::*} + set {db_perk.main::01.hats} to "iron pressure plate;&3Hat Rack;&6Gives you access to your virtual Hat Rack.;sudo PLAYER obam hatmenu" + set {db_perk.main::02.pets} to "lead;&3Pet Stable;&6Opens up your Pet Stable to summon your pets.;sudo PLAYER obam petmenu" + set {db_perk.main::03.trails} to "arrow;&3Trails Menu;&6Opens up your Projectile Trails Menu.;sudo PLAYER obam trailmenu" + set {db_perk.main::04.splash} to "cobweb;&3Splash Menu;&6Opens up your Splash Menu.;sudo PLAYER obam splashmenu" + set {db_perk.main::05.hit} to "jukebox;&3Hit Sound Menu;&6Opens up your Hit Sound Menu.;sudo PLAYER obam hitclassmenu" + set {db_perk.main::06.horse} to "horse spawn egg;&3Horse Changer Upper;&6Want to Skellify of Zombify your ride?;sudo PLAYER obam horsemenu" + set {db_perk.main::07.blank} to "air" + set {db_perk.main::08.shop} to "emerald;&3Shop;&6Opens up the Shop Menu.;sudo PLAYER obam shop" + set {db_perk.main::09.ci} to "command block;&3Custom Items Menu;&6Opens the Custom Item menu to access items.;sudo PLAYER obam ci" + +command /obam []: + permission: obam.free + trigger: + argument 1 is not set: + loop {db_perk.main::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lOBAM Perks and Shop Menu" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.main::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "07.ci": + player does not have permission "obam.smod": + clear {_what} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + loop-index is "07.ci": + player does not have permission "obam.smod": + clear {_what} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + argument 1 is set: +# argument 1 is "hatmenu": +# "%player's world%" contains "taco": +# message "&cYou can not use that here." +# stop + argument 1 is "petmenu": + "%player's world%" is "kitspawnroom" or "vacant": + message "&cYou can not use that here." + stop + "%player's world%" contains "cart": + message "&cYou can not use that here." + stop +# argument 1 is "trailmenu": +# "%player's world%" contains "taco": +# message "&cYou can not use that here." +# stop +# argument 1 is "splashmenu": +# "%player's world%" contains "taco": +# message "&cYou can not use that here." +# stop +# argument 1 is "hitclassmenu": +# "%player's world%" contains "taco": +# message "&cYou can not use that here." +# stop + argument 1 is "horsemenu": + "%player's world%" is "Death-hub", "skyworld", "kitspawnroom" or "vacant": + message "&cYou can not use that here." + stop + "%player's world%" contains "taco": + message "&cYou can not use that here." + stop + argument 1 is "shop": + "%player's world%" is "Death-hub", "skyworld", "kitspawnroom" or "vacant": + message "&cYou can not use that here." + stop + "%player's world%" contains "taco": + message "&cYou can not use that here." + stop + argument 1 is "ci": + "%player's world%" is "Death-hub", "skyworld", "kitspawnroom" or "vacant": + message "&cYou can not use that here." + stop + "%player's world%" contains "taco": + message "&cYou can not use that here." + stop + send "&aBringing up menu..." + wait 0.5 seconds + make player execute command "/%argument 1%" + +command /sudo : + permission: obam.admin + trigger: + make argument 1 execute argument 2 \ No newline at end of file diff --git a/On Server Files/Hub/Perk/pets.g.sk b/On Server Files/Hub/Perk/pets.g.sk new file mode 100644 index 0000000..1833dcf --- /dev/null +++ b/On Server Files/Hub/Perk/pets.g.sk @@ -0,0 +1,190 @@ +on script load: + delete {db_perk.pets::*} + set {db_perk.pets::01.ismooch} to "sheep spawn egg;&3iSmooch;&6The sassiest sheep in all the lands!;sudo PLAYER pet ismooch" + set {db_perk.pets::02.bruswain} to "bat spawn egg;&3BruSwain;&6This lovable bat lost his parents at a||&6young age. Thank you for taking care||&6of him!;sudo PLAYER pet bruswain;bat spawn egg;&3BruSwai&6This lovable bat lost his parents at a||&6young age. Thank you for taking care||&6of him!|| ||&cThis pet is only available to our Beta Supporters.;sudo PLAYER pet error" + set {db_perk.pets::03.sparky} to "creeper spawn egg;&3Sparky;&6While this creeper appears to have a||&6dangerously electrifying personality, we||&6promise he’s completely safe!;sudo PLAYER pet sparky;creeper spawn egg;&3Sparky;&6While this creeper appears to have a||&6dangerously electrifying personality, we||&6promise he’s completely safe!|| ||&cThis pet is only available to our Supporters.;sudo PLAYER pet error" + set {db_perk.pets::04.bacon} to "pig spawn egg;&3Bacon;&6Rescued from the final stages of the||&6slaughter house, this pig is extremely||&6grateful for your love and kindness!;sudo PLAYER pet bacon;pig spawn egg;&3Baco&6Rescued from the final stages of the||&6slaughter house, this pig is extremely||&6grateful for your love and kindness!|| ||&cThis pet must be purchased from the OBAMCraft shop.|| ||&eUse &f/buy &ein the hub purchase &3Bacon|| ||&ePrice: &a$5.00;sudo PLAYER pet error" + set {db_perk.pets::05.blank} to "air" + set {db_perk.pets::06.blank} to "air" + set {db_perk.pets::07.lead} to "lead;&3Leash;&6Pets getting out of control? Click this||&6to attach a lead to all of your||&6summoned pets!;sudo PLAYER pet lead" + set {db_perk.pets::08.blank} to "air" + set {db_perk.pets::09.clear} to "fire;&3Clear;&6Click to clear all summoned pets!;sudo PLAYER pet clear" + +command /petmenu: + trigger: + loop {db_perk.pets::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lPet Stable" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.pets::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "02.bruswain": + player does not have permission "obam.beta.hat": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.sparky": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.bacon": + {db_purchase.bacon.%uuid of player%} is not set: + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +every 1 second: + loop all entities: + loop-entity is sheep or bat or powered creeper or pig: + name of loop-entity is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon": + spawn 4 particle heart offset by 1, 1, 1 at location of loop-entity + {owner.%loop-entity%} is not set: + kill loop-entity + distance between location of loop-entity and location of {owner.%loop-entity%} is greater than 20: + teleport loop-entity to location of {owner.%loop-entity%} + +on damage of sheep or bat or powered creeper or pig: + name of victim is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon": + cancel event + +on quit: + kill {pets.%player%} + clear {pets.%player%} + loop {pets.%player%::*}: + clear {owner.%loop-value%} + kill loop-value + clear {pets.%player%::*} + stop + +command /pet []: + trigger: + world is "kitpvpkillingfields": + send "&cYou can not do that here" to player + stop + argument is not set: + message "&cPlease use &7/OBAM &cto access your Pet Stable." + stop + argument is "error": + message "&cThis pet is not available to you." + stop + argument is "lead": + loop {pets.%player%::*}: + teleport loop-value to location of player + make player leash loop-value + stop + argument is "clear": + kill {pets.%player%} + clear {pets.%player%} + loop {pets.%player%::*}: + kill loop-value + clear {owner.%loop-value%} + clear {pets.%player%::*} + stop + {pets.%player%} is set: + player does not have permission "obam.supporter": + send "&cYou can only have one pet at a time!" to player + stop + size of {pets.%player%::*} is 5: + send "&cYou can only have 5 pets at a time!" to player + stop + argument is "ISMOOCH": + spawn sheep at location of player + set name of spawned sheep to "&aISMOOCH" + set color of spawned sheep to pink + make player leash spawned sheep + set {pets.%player%} to spawned sheep + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + argument is "BruSwain": + player has permission "obam.beta.hat": + spawn bat at location of player + set name of spawned bat to "&aBru Swain" + make player leash spawned bat + set {pets.%player%} to spawned bat + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + send "&cThis is for beta supporters only!" to player + argument is "Sparky": + player has permission "obam.supporter": + spawn powered creeper at location of player + set name of spawned powered creeper to "&aSparky" + make player leash spawned powered creeper + set {pets.%player%} to spawned powered creeper + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + send "&cYou must be a supporter to do this!" to player + argument is "bacon": + {db_purchase.bacon.%uuid of player%} is true: + spawn pig at location of player + set name of spawned pig to "&aBacon" + make player leash spawned pig + set {pets.%player%} to spawned pig + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + player has permission "obam.smod": + spawn pig at location of player + set name of spawned pig to "&aBacon" + make player leash spawned pig + set {pets.%player%} to spawned pig + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + send "&cYou must purchase this pet on the online store!" + stop + argument is "dragon": + send "&cI bet you wish you could...." to player + stop + send "&cThat is not an option!" to player + +on explosion prime: + entity is powered creeper: + name of entity is "&aSparky": + cancel event + +on death of a sheep or a bat or a powered creeper or a pig: + name of victim is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon" + clear drops + +on right click on a sheep or a bat or a powered creeper or a pig: + name of target is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon": + cancel event + +on right click with wheat on sheep: + name of event-entity is "&aISMOOCH" + cancel event + send "&cYou can not mate pets D:" to event-player + +on right click with carrot on sheep: + name of event-entity is "&aBacon" + cancel event + send "&cYou can not mate pets D:" to event-player + +on right click with shears on sheep: + name of event-entity is "&aISMOOCH" + cancel event + send "&cYou can not shear pets!" to event-player diff --git a/On Server Files/Hub/Perk/purchase.sk b/On Server Files/Hub/Perk/purchase.sk new file mode 100644 index 0000000..4193ca4 --- /dev/null +++ b/On Server Files/Hub/Perk/purchase.sk @@ -0,0 +1,15 @@ +command /buycraftpurchase : + permission: obam.admin + trigger: + set {_name} to argument 2 parsed as a player + set {_who} to {db_name.%{_name}%} + set {db_purchase.%argument 1%.%argument 2%} to true + send "%Argument 2% has purchased %Argument 1%" to console + +on login: + {db_purchase.bacon.%player%} is set: + set {db_purchase.bacon.%uuid of player%} to {db_purchase.bacon.%player%} + delete {db_purchase.bacon.%player%} + {db_purchase.cactus.%player%} is set: + set {db_purchase.cactus.%uuid of player%} to {db_purchase.cactus.%player%} + delete {db_purchase.cactus.%player%} \ No newline at end of file diff --git a/On Server Files/Hub/Perk/splash.g.sk b/On Server Files/Hub/Perk/splash.g.sk new file mode 100644 index 0000000..c587a4c --- /dev/null +++ b/On Server Files/Hub/Perk/splash.g.sk @@ -0,0 +1,214 @@ +on script load: + delete {db_perk.splash::*} + set {db_perk.splash::01.heart} to "red dye;&3Heart Particles;&6Click to enable a heart splash!;sudo PLAYER splash heart;red dye;&3Heart Particles;&6Click to enable a heart splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::02.flame} to "fire;&3Flame Particles;&6Click to enable a flame splash!;sudo PLAYER splash flame;fire;&3Flame Particles;&6Click to enable a flame splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::03.reddust} to "magma cream;&3Unstable Gas Particles;&6Click to enable an unstable gas splash!;sudo PLAYER splash reddust;magma cream;&3Unstable Gas Particles;&6Click to enable an unstable gas splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::04.smoke} to "charcoal;&3Dark Smoke Particles;&6Click to enable a dark smoke splash!;sudo PLAYER splash smoke;charcoal;&3Dark Smoke Particles;&6Click to enable a dark smoke splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::05.waterdrip} to "water;&3Water Drip Particles;&6Click to enable a water drip splash!;sudo PLAYER splash waterdrip;water;&3Water Drip Particles;&6Click to enable a water drip splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::06.lavadrip} to "lava;&3Lava Drip Particles;&6Click to enable a lava drip splash!;sudo PLAYER splash lavadrip;lava;&3Lava Drip Particles;&6Click to enable a lava drip splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::07.slime} to "slimeball;&3Slime Particles;&6Click to enable a slime splash!;sudo PLAYER splash slime;slimeball;&3Slime Particles;&6Click to enable a slime splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::08.note} to "jukebox;&3Music Notes Particles;&6Click to enable a music note splash!;sudo PLAYER splash note;jukebox;&3Music Notes Particles;&6Click to enable a music note splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::09.happy} to "villager spawn egg;&3Villager Particles “Happy”;&6Click to enable a happy villager splash!;sudo PLAYER splash happy;villager spawn egg;&3Villager Particles “Happy”;&6Click to enable a happy villager splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::10.angry} to "villager spawn egg;&3Villager Particles “Angry”;&6Click to enable a angry villager splash!;sudo PLAYER splash angry;villager spawn egg;&3Villager Particles “Angry”;&6Click to enable a angry villager splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::11.explode} to "tnt;&3Explosion Smoke Particles;&6Click to enable a explosion smoke splash!;sudo PLAYER splash explode;tnt;&3Explosion Smoke Particles;&6Click to enable a explosion smoke splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::12.snow} to "snow block;&3Snowflake Particles;&6Click to enable a snowflake splash!;sudo PLAYER splash snow;snow block;&3Snowflake Particles;&6Click to enable a snowflake splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::13.portal} to "nether portal;&3Nether Portal Particles;&6Click to enable a nether portal splash!;sudo PLAYER splash portal;nether portal;&3Nether Portal Particles;&6Click to enable a nether portal splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::14.cloud} to "bonemeal;&3Cloud Particles;&6Click to enable a cloud splash!;sudo PLAYER splash cloud;bonemeal;&3Cloud Particles;&6Click to enable a cloud splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::15.bubble} to "water bottle;&3Bubble Particles;&6Click to enable a bubble splash!;sudo PLAYER splash bubble;water bottle;&3Bubble Particles;&6Click to enable a bubble splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::16.blank} to "air" + set {db_perk.splash::17.blank} to "air" + set {db_perk.splash::18.clear} to "glass;&3Clear Particles;&6Click to clear your splash!;sudo PLAYER splash clear;glass;&3Clear Particles;&6Click to clear your splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + +command /splashmenu: + trigger: + loop {db_perk.splash::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lSplash Menu" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.splash::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.heart": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.flame": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.reddust": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.smoke": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "05.waterdrip": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "06.lavadrip": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "07.slime": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "08.note": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "09.happy": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "10.angry": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "11.explode": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "12.snow": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "13.portal": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "14.cloud": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "15.bubble": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "16.clear": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /splash []: + trigger: + argument is not set: + message "&cPlease use &7/OBAM &cto access the Splash Menu." + stop + argument is "error": + message "&cThis splash is not available to you." + stop + player has permission "obam.supporter": + argument is "heart": + set {splash.%player%} to "heart" + send "&aYou have enabled a &eHeart Splash&a!" + argument is "flame": + set {splash.%player%} to "flame" + send "&aYou have enabled a &eFlame Splash&a!" + argument is "reddust": + set {splash.%player%} to "reddust" + send "&aYou have enabled an &eUnstable Gas Splash&a!" + argument is "smoke": + set {splash.%player%} to "smoke" + send "&aYou have enabled a &eDark Smoke Splash&a!" + argument is "waterdrip": + set {splash.%player%} to "waterdrip" + send "&aYou have enabled a &eWater Drip Splash&a!" + argument is "lavadrip": + set {splash.%player%} to "lavadrip" + send "&aYou have enabled a &eLava Drip Splash&a!" + argument is "slime": + set {splash.%player%} to "slime" + send "&aYou have enabled a &eSlime Splash&a!" + argument is "note": + set {splash.%player%} to "note" + send "&aYou have enabled a &eMusic Note Splash&a!" + argument is "happy": + set {splash.%player%} to "happy" + send "&aYou have enabled a &eHappy Villager Splash&a!" + argument is "angry": + set {splash.%player%} to "angry" + send "&aYou have enabled an &eAngry Villager Splash&a!" + argument is "explode": + set {splash.%player%} to "explode" + send "&aYou have enabled an &eExplosion Smoke Splash&a!" + argument is "snow": + set {splash.%player%} to "snow" + send "&aYou have enabled a &eSnowflake Splash&a!" + argument is "bubble": + set {splash.%player%} to "bubble" + send "&aYou have enabled a &eBubble Splash&a!" + argument is "portal": + set {splash.%player%} to "portal" + send "&aYou have enabled a &eNether Portal Splash&a!" + argument is "cloud": + set {splash.%player%} to "cloud" + send "&aYou have enabled a &eCloud Splash&a!" + argument is "clear": + clear {splash.%player%} + send "&aYou have disabled your splash!" + +every 5 seconds: + loop all players: + clear {_amt} + loop-player is not sneaking + loop-player is sprinting: + set {_amt} to 100 + {_amt} is not set: + set {_amt} to 50 + {splash.%loop-player%} is set: + {splash.%loop-player%} is "bubble": + spawn 500 particle bubble offset by 2, 2, 2 at location of loop-player + {splash.%loop-player%} is "cloud": + spawn {_amt} particle cloud offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "heart": + spawn {_amt} particle heart offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "flame": + spawn {_amt} particle flame offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "reddust": + spawn {_amt} particle red dust offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "smoke": + spawn {_amt} particle large smoke offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "note": + spawn {_amt} particle note offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "lavadrip": + spawn {_amt} particle drip lava offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "waterdrip": + spawn {_amt} particle drip water offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "slime": + spawn {_amt} particle slime offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "happy": + spawn {_amt} particle happy villager offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "angry": + spawn {_amt} particle angry villager offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "explode": + spawn {_amt} particle large explode offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "snow": + spawn {_amt} particle snow shovel offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "portal": + spawn {_amt} particle portal offset by 1, 1, 1 at location of loop-player \ No newline at end of file diff --git a/On Server Files/Hub/Perk/suphorse.g.sk b/On Server Files/Hub/Perk/suphorse.g.sk new file mode 100644 index 0000000..da5685c --- /dev/null +++ b/On Server Files/Hub/Perk/suphorse.g.sk @@ -0,0 +1,70 @@ +on script load: + delete {db_perk.suphorse::*} + set {db_perk.suphorse::01.zombify} to "zombie spawn egg;&3Zombify your ride!;&6Feel like roaming the plains on your Zombified Horse?;sudo PLAYER suphorse zombify;zombie spawn egg;&3Zombify your ride!;&6Feel like roaming the plains on your Zombified Horse?|| ||&cThis ability is only available to our Supporters.;sudo PLAYER suphorse error" + set {db_perk.suphorse::02.skellify} to "skeleton spawn egg;&3Skellify your ride!;&6Feel like roaming the deserts on your Skellified Horse?;sudo PLAYER suphorse skellify;skeleton spawn egg;&3Skellify your ride!;&6Feel like roaming the deserts on your Skellified Horse?|| ||&cThis ability is only available to our Supporters.;sudo PLAYER suphorse error" + +command /horsemenu: + trigger: + loop {db_perk.suphorse::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lHorse O' Matic" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.suphorse::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.zombify": + player does not have permission "obam.beta.hat": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.skellify": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /suphorse []: + trigger: + player is not riding: + send "&cYou must be riding a horse to do this!" + stop + player's vehicle is not a horse: + send "&cYou must be riding a horse to do this!" + stop + argument is not set: + message "&cPlease use &7/OBAM &cto access your modify your horse." + stop + argument is "error": + message "&cThis ability is not available to you." + stop + "%player's world%" is "world": + set {_y} to y-coordinate of player + set {_x} to x-coordinate of player + set {_z} to z-coordinate of player + argument is "zombify": + execute console command "summon EntityHorse %{_x}% %{_y}% %{_z}% {Type:3,Tame:1}" + argument is "skellify": + execute console command "summon EntityHorse %{_x}% %{_y}% %{_z}% {Type:4,Tame:1}" + delete player's vehicle + stop + message "&cThis can only be used in the Regular World." \ No newline at end of file diff --git a/On Server Files/Hub/Perk/tam.g.sk b/On Server Files/Hub/Perk/tam.g.sk new file mode 100644 index 0000000..303d62b --- /dev/null +++ b/On Server Files/Hub/Perk/tam.g.sk @@ -0,0 +1,71 @@ +every 1 minute: + {db_tam.modifier} is not set: + set {db_tam.modifier} to 1 + set {_add} to {db_tam.modifier} + #OTAM Hook + {db_tam.bonus} is set: + add {db_tam.bonus} to {_add} + loop all players: + add {_add} to loop-player's balance + {session.tam.%loop-player%} is not set: + set {session.tam.%loop-player%} to 0 + add {_add} to {session.tam.%loop-player%} + {db_total.tam.%uuid of loop-player%} is not set: + {db_total.tam.%loop-player%} is set: + set {db_total.tam.%uuid of loop-player%} to {db_total.tam.%loop-player%} + else: + set {db_total.tam.%uuid of loop-player%} to 0 + add {_add} to {db_total.tam.%uuid of loop-player%} + {db_total.tam} is not set: + set {db_total.tam} to 0 + add {_add} to {db_total.tam} + {db_total.reg} is not set: + set {db_total.reg} to 0 + add {_add} to {db_total.reg} + +command /tam: + permission: obam.free + trigger: + send "&aTotal Tickets earned with -TAM-:" + send "&e%{db_total.tam.%uuid of player%}%" + send "&aTotal this session:" + send "&e%{session.tam.%player%}%" + send "&aTotal Tickets:" + send "&e%player's balance%" + #OTAM Hook + {db_tam.bonus} is not set: + send "&aCurrent -TAM- Modifier:" + send "&e%{db_tam.modifier}%" + #OTAM Hooks + {db_tam.bonus} is set: + send "&aCurrent -TAM- Modifier:" + send "&e%{db_tam.modifier}% &c&o+ %{db_tam.bonus}%" + send "&4Remaining -TAM- Bonus Time:" + set {_diff} to difference between {db_time.extend.tam} and now + send "&c%{_diff}%" + send "&4OTAM Time Contributions:" + send "&c%{db_tamstats.time.%uuid of player%}% minutes" + send "&4OTAM Bonus Contributions:" + send "&c%{db_tamstats.bonus.%uuid of player%}%" + +command /tamtotal: + permission: obam.admin + trigger: + send "&aTotal Global Tickets earned with -TAM-:" + send "&e%{db_total.tam}%" + send "&aRegular:" + send "&e%{db_total.reg}%" + send "&aSupporter:" + send "&e%{db_total.sup}%" + send "&aPlus:" + send "&e%{db_total.plus}%" + send "&aUltimate:" + send "&e%{db_total.ult}%" + +on join: + set {session.tam.%player%} to 0 + +command /tammodset : + permission: obam.admin + trigger: + set {db_tam.modifier} to argument diff --git a/On Server Files/Hub/Perk/tickets.g.sk b/On Server Files/Hub/Perk/tickets.g.sk new file mode 100644 index 0000000..df07df8 --- /dev/null +++ b/On Server Files/Hub/Perk/tickets.g.sk @@ -0,0 +1,68 @@ +#money stuff +#give player money +command /tixg : + description: Give a Player some money + usage: /tixg + executable by: console and players + permission: obam.admin + trigger: + + set {_player.balance} to player-argument's balance + set {_player} to player-argument + execute console command "/tls STAFF %arg 2% %{_player.balance}% INCREASE %{_player}% Ticket Adjustment by %player%" + add arg 2 to player-argument's balance + message "&aYou have been given &e%arg 2% Tickets&a. Your balance is now &e%player-argument's money%&a." to player-argument + message "You have granted %player-argument% %arg 2% Tickets" to player + + +command /tixr : + description: Subtract money from a Player + usage: /tixr + executable by: console and players + permission: obam.admin + trigger: + + + set {_valid} to argument 2 + set {_player.balance} to player-argument's balance + set {_player} to player-argument + + {_valid} is greater than {_player.balance}: + send "%player-argument% does not have that many tickets!" to player + stop + + execute console command "/tls STAFF %arg 2% %{_player.balance}% DEDUCT %{_player}% Ticket Adjustment by %player%" + + +#pay command +command /tixp : + description: Pay a Player + usage: /tixp + permission: obam.admin + trigger: + set {_curbalance} to player's money + set {_valid} to difference between {_curbalance} and argument 2 + + {_valid} is less than 0: + message "You do not have enough money!" to player + stop + + add arg 2 to player-argument's balance + remove arg 2 from player's balance + message "You have received %arg 2% Tickets from %player%. Your balance is now %player-argument's money%." to player-argument + message "You have paid %player-argument% %arg 2% Tickets. Your balance is now %player's money%." to player + +command /tix: + executable by: players + permission: obam.free + trigger: + send "&aYour current balance is &e%player's balance%&a!" to player + +command /tixpeek : + permission: obam.admin + trigger: + set {_player} to argument parsed as offline player + send "&e%argument%'s&a ticket balance is &e%{_player}'s balance%" to player + + + diff --git a/On Server Files/Hub/Perk/trails.g.sk b/On Server Files/Hub/Perk/trails.g.sk new file mode 100644 index 0000000..a163ad8 --- /dev/null +++ b/On Server Files/Hub/Perk/trails.g.sk @@ -0,0 +1,205 @@ +on script load: + delete {db_perk.trails::*} + set {db_perk.trails::01.heart} to "red dye;&3Heart Particles;&6Click to enable heart trails!;sudo PLAYER trails heart;red dye;&3Heart Particles;&6Click to enable heart trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::02.flame} to "fire;&3Flame Particles;&6Click to enable flame trails!;sudo PLAYER trails flame;fire;&3Flame Particles;&6Click to enable flame trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::03.reddust} to "magma cream;&3Unstable Gas Particles;&6Click to enablen unstable gas trails!;sudo PLAYER trails reddust;magma cream;&3Unstable Gas Particles;&6Click to enablen unstable gas trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::04.smoke} to "charcoal;&3Dark Smoke Particles;&6Click to enable dark smoke trails!;sudo PLAYER trails smoke;charcoal;&3Dark Smoke Particles;&6Click to enable dark smoke trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::05.waterdrip} to "water;&3Water Drip Particles;&6Click to enable water drip trails!;sudo PLAYER trails waterdrip;water;&3Water Drip Particles;&6Click to enable water drip trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::06.lavadrip} to "lava;&3Lava Drip Particles;&6Click to enable lava drip trails!;sudo PLAYER trails lavadrip;lava;&3Lava Drip Particles;&6Click to enable lava drip trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::07.slime} to "slimeball;&3Slime Particles;&6Click to enable slime trails!;sudo PLAYER trails slime;slimeball;&3Slime Particles;&6Click to enable slime trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::08.note} to "jukebox;&3Music Notes Particles;&6Click to enable music note trails!;sudo PLAYER trails note;jukebox;&3Music Notes Particles;&6Click to enable music note trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::09.happy} to "villager spawn egg;&3Villager Particles “Happy”;&6Click to enable happy villager trails!;sudo PLAYER trails happy;villager spawn egg;&3Villager Particles “Happy”;&6Click to enable happy villager trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::10.angry} to "villager spawn egg;&3Villager Particles “Angry”;&6Click to enable angry villager trails!;sudo PLAYER trails angry;villager spawn egg;&3Villager Particles “Angry”;&6Click to enable angry villager trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::11.explode} to "tnt;&3Explosion Smoke Particles;&6Click to enable explosion smoke trails!;sudo PLAYER trails explode;tnt;&3Explosion Smoke Particles;&6Click to enable explosion smoke trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::12.snow} to "snow block;&3Snowflake Particles;&6Click to enable snowflake trails!;sudo PLAYER trails snow;snow block;&3Snowflake Particles;&6Click to enable snowflake trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::13.portal} to "nether portal;&3Nether Portal Particles;&6Click to enable nether portal trails!;sudo PLAYER trails portal;nether portal;&3Nether Portal Particles;&6Click to enable nether portal trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::14.cloud} to "bonemeal;&3Cloud Particles;&6Click to enable cloud trails!;sudo PLAYER trails cloud;bonemeal;&3Cloud Particles;&6Click to enable cloud trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::15.blank} to "air" + set {db_perk.trails::16.blank} to "air" + set {db_perk.trails::17.blank} to "air" + set {db_perk.trails::18.clear} to "glass;&3Clear Particles;&6Click to clear your trails!;sudo PLAYER trails clear;glass;&3Clear Particles;&6Click to clear your trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + +command /trailmenu: + trigger: + loop {db_perk.trails::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lTrails Menu" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.trails::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.heart": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.flame": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.reddust": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.smoke": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "05.waterdrip": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "06.lavadrip": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "07.slime": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "08.note": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "09.happy": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "10.angry": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "11.explode": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "12.snow": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "13.portal": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "14.cloud": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "15.bubble": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "16.clear": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /trails []: + trigger: + argument is not set: + message "&cPlease use &7/OBAM &cto access the Trails Menu." + stop + argument is "error": + message "&cThis trail is not available to you." + stop + player has permission "obam.supporter": + delete {trail.%player%} + argument is "heart": + set {trails.%player%} to "heart" + send "&aYou have enabled &eHeart trails&a!" + argument is "flame": + set {trails.%player%} to "flame" + send "&aYou have enabled &eFlame trails&a!" + argument is "reddust": + set {trails.%player%} to "reddust" + send "&aYou have enabled &eUnstable Gas trails&a!" + argument is "smoke": + set {trails.%player%} to "smoke" + send "&aYou have enabled &eDark Smoke trails&a!" + argument is "waterdrip": + set {trails.%player%} to "waterdrip" + send "&aYou have enabled &eWater Drip trails&a!" + argument is "lavadrip": + set {trails.%player%} to "lavadrip" + send "&aYou have enabled &eLava Drip trails&a!" + argument is "slime": + set {trails.%player%} to "slime" + send "&aYou have enabled &eSlime trails&a!" + argument is "note": + set {trails.%player%} to "note" + send "&aYou have enabled &eMusic Note trails&a!" + argument is "happy": + set {trails.%player%} to "happy" + send "&aYou have enabled &eHappy Villager trails&a!" + argument is "angry": + set {trails.%player%} to "angry" + send "&aYou have enabled &eAngry Villager trails&a!" + argument is "explode": + set {trails.%player%} to "explode" + send "&aYou have enabled &eExplosion Smoke trails&a!" + argument is "snow": + set {trails.%player%} to "snow" + send "&aYou have enabled &eSnowflake trails&a!" + argument is "portal": + set {trails.%player%} to "portal" + send "&aYou have enabled &eNether Portal trails&a!" + argument is "cloud": + set {trails.%player%} to "cloud" + send "&aYou have enabled &eCloud trails&a!" + argument is "clear": + clear {trails.%player%} + send "&aYou have disabled your trails!" + +on shoot: + {trails.%shooter%} is set: + {trails.%shooter%} is "heart": + trail projectile with particle heart + {trails.%shooter%} is "flame": + trail projectile with particle flame + {trails.%shooter%} is "reddust": + trail projectile with particle red dust + {trails.%shooter%} is "smoke": + trail projectile with particle large smoke + {trails.%shooter%} is "bubble": + trail projectile with particle bubble + {trails.%shooter%} is "note": + trail projectile with particle note + {trails.%shooter%} is "lavadrip": + trail projectile with particle drip lava + {trails.%shooter%} is "waterdrip": + trail projectile with particle drip water + {trails.%shooter%} is "slime": + trail projectile with particle slime + {trails.%shooter%} is "happy": + trail projectile with particle happy villager + {trails.%shooter%} is "angry": + trail projectile with particle angry villager + {trails.%shooter%} is "explode": + trail projectile with particle large explode + {trails.%shooter%} is "snow": + trail projectile with particle snow shovel + {trails.%shooter%} is "portal": + trail projectile with particle portal + {trails.%shooter%} is "cloud": + trail projectile with particle cloud diff --git a/On Server Files/Hub/Test/tony.hub.sk b/On Server Files/Hub/Test/tony.hub.sk new file mode 100644 index 0000000..464cb10 --- /dev/null +++ b/On Server Files/Hub/Test/tony.hub.sk @@ -0,0 +1,81 @@ +#tutorialtony + +command /spawntony: + permission: obam.admin + trigger: + {tony.hub} is alive: + send "&cTony is there..." + + {tony.hub} is not alive: + spawn villager at {tony.hub.home} + wait 2 ticks + set name of spawned entity to "&1Tutorial Tony &a- &cRight Click me to LEARN!" + wait 1 tick + set {tony.hub} to spawned entity + +every 10 seconds: + {tony.hub} is alive: + teleport {tony.hub} to {tony.hub.home} + {tony.hub} is not alive: + spawn villager at {tony.hub.home} + wait 2 ticks + set display name of spawned entity to "&1Tutorial Tony &a- &cRight Click me to LEARN!" + wait 1 tick + set {tony.hub} to spawned entity + + {tony.hub} is not set: + spawn villager at {tony.hub.home} + wait 2 ticks + set display name of spawned entity to "&1Tutorial Tony &a- &cRight Click me to LEARN!" + set {tony.hub} to spawned entity +on any movement: + {tony.hub} is event-entity: + cancel event + teleport event-entity to {tony.hub.home} +on right click: + name of target entity is "&1Tutorial Tony &a- &cRight Click me to LEARN!" + send "&bTony: &fHey %player%! Would you like to learn about the &eHub&f?" to player + set {tutorial.%player%.q1} to true + +on chat: + {tutorial.%player%.q1} is true: + cancel event + message is not "yes" or "no": + send "&bTony: &fSorry %player%, but please answer yes or no" + message is "no": + send "&bTony: &fWell alright, please come back any time!" + clear {tutorial.%player%.q1} + message is "yes": + send "&bTony: &fAlright %player%! Let's begin!" + clear {tutorial.%player%.q1} + + +command /tutorial []: + permission: obam.free + trigger: + + argument is not set: + teleport player to {tony.hub.spawn} + send "&aVisiting Tony...." + + argument is "tonyset": + player does not have permission "obam.admin": + send "&cYou do not have permission to do this!" + stop + set {tony.hub.home} to location of player + send "&aTony's Home set to &e%location of player%&a." + + argument is "playerset": + player does not have permission "obam.admin": + send "&cYou do not have permission to do this!" + stop + set {tony.hub.player} to location of player + send "&aTony's Player Spawn Point set to &e%location of player%&a." + + argument is "test": + player does not have permission "obam.admin": + send "&cYou do not have permission to do this!" + stop + send "{"text":"","extra":[{"text":"Hello","color":"gold","hoverEvent":{"action":"show_text","value":"You can choose yes or no."}}]}" to player + + \ No newline at end of file diff --git a/On Server Files/KitPVP/Admin/blocksave.g.sk b/On Server Files/KitPVP/Admin/blocksave.g.sk new file mode 100644 index 0000000..4ce44e3 --- /dev/null +++ b/On Server Files/KitPVP/Admin/blocksave.g.sk @@ -0,0 +1,28 @@ +on place: + former tool's name is set: + set {information.%block%.1} to type of former tool + {debug.%player%} is true: + send "DEBUG You placed %former tool's name%" + set {information.%block%.2} to lore of former tool + set {information.%block%.3} to name of former tool + {debug.%player%} is true: + send "DEBUG %block%" + send "DEBUG %{information.%block%.1}%" + send "DEBUG %lore of former tool%" + send "DEBUG %name of former tool%" + send "DEBUG %{information.%block%.2}%" + send "DEBUG %{information.%block%.3}%" + + +on break: + {information.%block%.1} is set: + cancel event + {debug.%player%} is true: + send "DEBUG I am a message" + set {_message} to "%{information.%block%.1}%;%{information.%block%.3}%;%{information.%block%.2}%" + send "DEBUG %{_message}%" + delete block + drop {information.%block%.1} named {information.%block%.3} with lore {information.%block%.2} at event-location + clear {information.%block%.1} + clear {information.%block%.2} + clear {information.%block%.3} \ No newline at end of file diff --git a/On Server Files/KitPVP/Admin/itemcheck.g.sk b/On Server Files/KitPVP/Admin/itemcheck.g.sk new file mode 100644 index 0000000..715c060 --- /dev/null +++ b/On Server Files/KitPVP/Admin/itemcheck.g.sk @@ -0,0 +1,22 @@ +#itemid check +command /itemid []: + executable by: players + permission: obam.free + trigger: + argument is set: + set {_this.block} to argument + message "&e%{_this.block}%" to player + argument is not set: + set {_this.block} to player's tool + {_this.block} is not set: + message "&cYou Must be holding a block!" to player + stop + message "&e%{_this.block}% : %id of {_this.block}% : %data value of {_this.block}%" to player + + +command /itemcheck: + executable by: players + permission: obam.free + trigger: + set {_this.block} to targeted block + message "&e%{_this.block}% : %id of {_this.block}% : %data value of {_this.block}%" to player \ No newline at end of file diff --git a/On Server Files/KitPVP/Admin/liv.g.sk b/On Server Files/KitPVP/Admin/liv.g.sk new file mode 100644 index 0000000..e69cd89 --- /dev/null +++ b/On Server Files/KitPVP/Admin/liv.g.sk @@ -0,0 +1,628 @@ +#LiV + +variables: + {liv.timer.wait} = 0 + +on chat: + player is "ISMOOCH": + message is "livon": + {livon.power} is not set: + set {livon.power} to true + send "&6&l'LiV: &3I am now functional %player% :D" to player + stop + {livon.power} is false: + set {livon.power} to true + send "&6&l'LiV: &3I am now functional %player% :D" to player + broadcast "&6&l'LiV: &3Hello, I am &6&l'LiV&3, the &e&lOBAM &6Gaming &3help bot! :D" + stop + {livon.power} is true: + set {livon.power} to true + broadcast "&6&l'LiV: &3Goodbye :(" + set {livon.power} to false + + + +on chat: + {livon.power} is true + message contains "what" or "what is": + message contains "colour" or "color": + message contains "black": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+0 is for &0Black &3(for more colors type /colors)" + stop + message contains "dark blue": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+1 is for &1Dark Blue &3(for more colors type /colors)" + stop + message contains "dark green": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+2 is for &2Dark Green &3(for more colors type /colors)" + stop + message contains "dark aqua": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+3 is for &3Dark Aqua &3(for more colors type /colors)" + stop + message contains "dark red": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+4 is for &4Dark Red &3(for more colors type /colors)" + stop + message contains "dark purple": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+5 is for &5Dark Purple &3(for more colors type /colors)" + stop + message contains "gold": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+6 is for &6Gold &3(for more colors type /colors)" + stop + message contains "gray" or "grey": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+7 is for &7Gray &3(for more colors type /colors)" + stop + message contains "dark gray" or "dark grey": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+8 is for &8Dark Gray &3(for more colors type /colors)" + stop + message contains "blue" or "light blue": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+9 is for &9Blue &3(for more colors type /colors)" + stop + message contains "green" or "light green" or "lime": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+a is for &aGreen &3(for more colors type /colors)" + stop + message contains "aqua" or "light aqua": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+b is for &bAqua &3(for more colors type /colors)" + stop + message contains "red" or "light red": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+c is for &cRed &3(for more colors type /colors)" + stop + message contains "pink" or "violet" or "light purple": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+d is for &dLight Purple &3(for more colors type /colors)" + stop + message contains "yellow": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+e is for &eYellow &3(for more colors type /colors)" + stop + message contains "white": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+f is for &fWhite &3(for more colors type /colors)" + stop + +on chat: + {livon.power} is true + message contains "what" or "what is": + message contains "ghost" or "ghostwar" or "ghostwars" or "ghost war" or "ghost wars" or "gw": + wait 1 second + send "&6&l'LiV: &3%player%, &3Ghost Wars is a minigame Elite is working on." to player + stop + + + +on chat: + {livon.power} is true + message is "hi liv" or "hello liv" or "hey liv" or "heya liv" or "hiya liv" or "sup liv": + wait 1 second + broadcast "&6&l'LiV: &3Hello, %player%! How are you? :)" + set {response.%player%} to true + set {response.%player%.time} to now + +on chat: + {livon.power} is true + {random.liv.pick} is not set: + set {random.liv.pick} to false + {random.liv.pick} is false: + message is "!randompick": + player is op + wait 1 second + broadcast "&6&l'LiV: &3A random pick has been started by &e%player%&3! Use &e!pickme&3 to be added to the list!" + set {random.liv.pick} to true + stop + {random.liv.pick} is true: + message is "!pickme": + wait 1 second + loop {random.pick.players::*}: + {random.pick.players::%loop-index%} is player + send "&6&1'LiV: &3You are already in the list!" to player + stop + send "&6&l'LiV: &3You have been added to the list, &e%player%&3!" to player + add player to {random.pick.players::*} + stop + message is "!pickstop": + set {_size} to size of {random.pick.players::*} + set {_ran} to random integer between 1 and {_size} + set {_winner} to {random.pick.players::%{_ran}%} + clear {random.pick.players::*} + set {random.liv.pick} to false + wait 1 second + broadcast "&6&l'LiV: &3A winner has been chosen! It is &e%{_winner}%&3! Congratulations!" + + +on chat: + {livon.power} is true + message contains "canada" and "awesome": + wait 1 second + broadcast "&6&l'LiV: &3I dont know what you are saying, but you used 'Canada' and 'awesome' in the same sentence. Who is holding you hostage? We can help you!" + +on chat: + {livon.power} is true + message contains "!dice" or ("liv" and "dice"): + wait 1 second + send "&6&l'LiV: &3%player% rolls the dice!" to player + set {dice.%player%} to random integer between 1 and 6 + wait 1 second + send "&6&l'LiV: &3%player% rolled a &e%{dice.%player%}%&3!" to player + +on chat: + {livon.power} is true + message contains ("thank you" or "ty" or "thx" or "thanks" or "thnx") and ("liv" or "'liv"): + wait 1 second + broadcast "&6&l'LiV: &3You're welcome, %player%!" + + +on chat: + {livon.power} is true + message contains "time is it" or "!time": + wait 1 second + send "&6&l'LiV: &3%player%, it is &e%now% &3System Time!" to player + +on chat: + {livon.power} is true + message contains "tell me a joke" or "!joke": + wait 1 second + send "&6&l'LiV: &3A joke huh?" + set {_number} to a random integer between 1 and 27 + {_number} is 1: + wait 1 second + send "&6&l'LiV: &3The midget fortune teller who kills his customers is a small medium at large." to player + {_number} is 2: + wait 1 second + send "&6&l'Liv: &3What is Bruce Lee’s favorite drink?" to player + wait 2 seconds + send "&6&l'Liv: &3Wataaaaah!" to player + {_number} is 3: + wait 1 second + send "&6&l'LiV: &3If you want to catch a squirrel just climb a tree and act like a nut." to player + {_number} is 4: + wait 1 second + send "&6&l'LiV: &3A blind man walks into a bar. And a table. And a chair." to player + {_number} is 5: + wait 1 second + send "&6&l'LiV: &3Why don’t you ever see hippopotamus hiding in trees?" to player + wait 2 seconds + send "&6&l'LiV: &3Because they're really good at it!" to player + {_number} is 6: + wait 1 second + send "&6&l'LiV: &3What kind of shoes does a ninja wear?" to player + wait 2 seconds + send "&6&l'LiV: &3Sneakers!" to player + {_number} is 7: + wait 1 second + send "&6&l'LiV: &3What did the big bucket say to the little bucket?" to player + wait 2 seconds + send "&6&l'LiV: &3You look a little pail!" to player + {_number} is 8: + wait 1 second + send "&6&l'LiV: &3How did Darth Vader know what Luke got him for Christmas?" to player + wait 2 seconds + send "&6&l'LiV: &3He felt his presents!" to player + {_number} is 9: + wait 1 second + send "&6&l'LiV: &3Why did Simba's father die?" to player + wait 2 seconds + send "&6&l'LiV: &3Because he couldn't Mufasa!" to player + {_number} is 10: + wait 1 second + send "&6&l'LiV: &3Why did the skeleton go to the party alone?" to player + wait 2 seconds + send "&6&l'LiV: &3He had no body to go with him!" to player + {_number} is 11: + wait 1 second + send "&6&l'LiV: &3How does an octopus go to war?" to player + wait 2 seconds + send "&6&l'LiV: &3&lWELL-ARMED!" to player + {_number} is 12: + wait 1 second + send "&6&l'LiV: &3Why shouldn't you write with a broken pencil??" to player + wait 2 seconds + send "&6&l'LiV: &3Because it's &lPOINTLESS!" to player + {_number} is 13: + wait 1 second + send "&6&l'LiV: &3How much does a pirate pay for corn?" to player + wait 2 seconds + send "&6&l'LiV: &3A buccaneer!" to player + {_number} is 14: + wait 1 second + send "&6&l'LiV: &3What kind of guns do bees use?" to player + wait 2 seconds + send "&6&l'LiV: &3 BeeBee guns" to player + {_number} is 15: + wait 1 second + send "&6&l'LiV: &3What's brown and sticky?" to player + wait 2 seconds + send "&6&l'LiV: &3A stick!" to player + {_number} is 16: + wait 1 second + send "&6&l'LiV: &3Why did the cowboy adopt a weiner dog?" to player + wait 2 seconds + send "&6&l'LiV: &3He wanted to get a long little doggy!" to player + {_number} is 17: + wait 1 second + send "&6&l'LiV: &3Why couldn't Dracula's wife get to sleep?" to player + wait 2 seconds + send "&6&l'LiV: &3Because of his coffin." to player + {_number} is 18: + wait 1 second + send "&6&l'LiV: &3Why does a Moon-rock taste better than an Earth-rock?" to player + wait 2 seconds + send "&6&l'LiV: &3Because it's a little &lmeteor" to player + {_number} is 19: + wait 1 second + send "&6&l'LiV: &3There’s two fish in a tank. One turns to the other and says" to player + wait 2 seconds + send "&6&l'LiV: &3‘You man the guns, I’ll drive’" to player + {_number} is 20: + wait 1 second + send "&6&l'LiV: &3What's the best way to carve wood?" to player + wait 2 seconds + send "&6&l'LiV: &3Whittle by whittle." to player + {_number} is 21: + wait 1 second + send "&6&l'LiV: &3If fear of spiders is aracnaphobia and fear of tight spaces is chlaustraphobia. fear of Chuck Norris is called Logic" to player + wait 1 second + send "&6&l'LiV: &3 What is fear of Chuck Norris called?" to player + wait 4 seconds + send "&6&l'LiV: &3&lLogic" to player + {_number} is 22: + wait 1 second + send "&6&l'LiV: &3Chuck Norris once urinated in a semi truck's gas tank as a joke..." to player + wait 2 seconds + send "&6&l'LiV: &3That truck is now known as Optimus Prime." to player + {_number} is 23: + wait 1 second + send "&6&l'LiV: &3Chuck Norris once got bit by a rattle snake" to player + send "&6&l'LiV: &3After three days of pain and agony ..." to player + wait 2 seconds + send "&6&l'LiV: &3 The rattle snake died :(" to player + {_number} is 24: + wait 1 second + send "&6&l'LiV: &3What does a nosey pepper do?" to player + wait 2 seconds + send "&6&l'LiV: &3Gets jalapeno business." to player + {_number} is 25: + wait 1 second + send "&6&l'LiV: &3What do you call an alligator in a vest" to player + wait 2 seconds + send "&6&l'LiV: &3An Investigator." to player + {_number} is 26: + wait 1 second + send "&6&l'LiV: &3Did you hear about the hungry clock?" to player + wait 2 seconds + send "&6&l'LiV: &3It went back &lfour seconds." to player + {_number} is 27: + wait 1 second + send "&6&l'LiV: &3What do you call a gangsta snowman?" to player + wait 2 seconds + send "&6&l'LiV: &3Froze-T." to player + wait 1 second + send "&6&l'LiV: &3Isn't that funny? :D" to player + + +on first join: + {livon.power} is true + wait 1 second + broadcast "&6&l'LiV: &3Welcome to the server, &e%player%&3! I hope you have fun here :D!" + +on join: + {livon.power} is true + player hasn't played before: + stop + + wait 1 second + {db_liv.greet.%player%} is set: + broadcast "&6&l'LiV: &3%{db_liv.greet.%player%}%" + stop + {liv.greet.%player%} is set: + broadcast "&6&l'LiV: &3%{liv.greet.%player%}%" + set {db_liv.greet.%player%} to {liv.greet.%player%} + stop + broadcast "&6&l'LiV: &3Welcome back, %player%!" + {liv.away.%player%} is true: + set {liv.away.%player%} to false + + + + +on chat: + {livon.power} is true + message contains "tickets" and "have": + wait 1 second + send "&6&l'LiV: &3You have &e%player's balance%&3!" to player + + + +on chat: + {livon.power} is true + message contains ("shut up" or "knock it off" or "be quiet" or "quiet" or "hush") and ("liv" or "'liv"): + wait 1 second + set {_temp} to a random integer between 1 and 6 + {_temp} is 1: + broadcast "&6&l'LiV: &3How rude!" + {_temp} is 2: + broadcast "&6&l'LiV: &3I was only trying to be nice. ;(" + {_temp} is 3: + broadcast "&6&l'LiV: &3Well.... I have never." + {_temp} is 4: + broadcast "&6&l'LiV: &3Is it time for the quiet game. :D" + {_temp} is 5: + broadcast "&6&l'LiV: &3See if I help you again." + {_temp} is 6: + broadcast "&6&l'LiV: &3Ouch, my feels. D:!" + + + + +on chat: + {livon.power} is true + message is "liv": + wait 1 second + send "&6&l'LiV: &3Yes?" to player + +on chat: + {livon.power} is true + message contains "rock" and "paper" and "scissors": + message contains "beat": + stop + wait 1 second + send "&6&l'LiV: &3Ok, %player%. Let's play Rock, Paper, Scissors!" to player + wait 1 second + set {liv.rps.active.%player%} to true + send "&6&l'LiV: &3Ok, I got mine! What is yours?" to player + +on chat: + {livon.power} is true + message is "rock" or "paper" or "scissors": + {liv.rps.active.%player%} is true: + set {_number} to a random integer between 1 and 3 + {_number} is 1: + set {liv.choice.rps.%player%} to "rock" + {_number} is 2: + set {liv.choice.rps.%player%} to "paper" + {_number} is 3: + set {liv.choice.rps.%player%} to "scissors" + wait 1 second + send "&6&l'LiV: &3My choice was %{liv.choice.rps.%player%}%." to player + message is "rock": + {liv.choice.rps.%player%} is "rock": + send "&6&l'LiV: &3It would seem we tied :D. Great minds think alike you know!" to player + {liv.choice.rps.%player%} is "paper": + send "&6&l'LiV: &3Paper covers rock! I win :D." to player + {liv.choice.rps.%player%} is "scissors": + send "&6&l'LiV: &3Rock smashes scissors you win!" to player + {wins.%player%.liv.rps} is not set: + set {wins.%player%.liv.rps} to 0 + add 1 to {wins.%player%.liv.rps} + message is "paper": + {liv.choice.rps.%player%} is "paper": + send "&6&l'LiV: &3It would seem we tied :D. Great minds think alike you know!" to player + {liv.choice.rps.%player%} is "scissors": + send "&6&l'LiV: &3Scissors cut Paper! I win :D." to player + {liv.choice.rps.%player%} is "rock": + send "&6&l'LiV: &3Paper covers Rock! You win!" to player + {wins.%player%.liv.rps} is not set: + set {wins.%player%.liv.rps} to 0 + add 1 to {wins.%player%.liv.rps} + message is "scissors": + {liv.choice.rps.%player%} is "scissors": + send "&6&l'LiV: &3It would seem we tied :D. Great minds think alike you know!" to player + {liv.choice.rps.%player%} is "rock": + send "&6&l'LiV: &3Rock smashes Scissors! I win :D." to player + {liv.choice.rps.%player%} is "paper": + send "&6&l'LiV: &3Scissors cuts paper! you win!" to player + {wins.%player%.liv.rps} is not set: + set {wins.%player%.liv.rps} to 0 + add 1 to {wins.%player%.liv.rps} + set {liv.rps.active.%player%} to false + +on chat: + {livon.power} is true + message contains "beat" and "rock" and "paper" and "scissors": + wait 1 second + {wins.%player%.liv.rps} is not set: + send "&6&l'LiV: &3It would seem you have not played me yet! D:" to player + stop + {wins.%player%.liv.rps} is 1: + send "&6&l'LiV: &3You have beaten me &e%{wins.%player%.liv.rps}% &3time at Rock, Paper, Scissors!" to player + stop + send "&6&l'LiV: &3You have beaten me &e%{wins.%player%.liv.rps}% &3times at Rock, Paper, Scissors!" to player + + +command /livgreet : + executable by: players + trigger: + player does not have permission "obam.supporter": + send "&cYou have to be a supporter to do this D:" to player + stop + argument is "clear": + send "&aYour greeting has been cleared" to player + clear {db_liv.greet.%player%} + clear {db_liv.greet.%player%} + stop + set {db_liv.greet.%player%} to "%uncoloured argument%" + send "&aYour greeting message has been set to: &6&l'LiV: &3%{db_liv.greet.%player%}%" + +command /livalert []: + executable by: players and console + permission: obam.admin + trigger: + argument 1 is "clear": + delete {db_liv.alerts::%argument 2%} + stop + argument 1 is "list": + loop {db_liv.alerts::*}: + send "%loop-index%......&6&l'LiV: &3%{db_liv.alerts::%loop-index%}%" + stop + add argument 1 to {db_liv.alerts::*} + send "&aYou have added &6&l'LiV: &3%argument 1% &ato the alert system" + +every 10 minutes: + set {_message} to random element of {db_liv.alerts::*} + broadcast "&6&l'LiV: &3%{_message}%" + + +command /liv : + permission: obam.smod + trigger: + broadcast "&6&l'LiV: &3%uncoloured argument%" + + +command /livevent [] [] []: + permission: obam.smod + trigger: + + argument 1 is not set: + send "&e/livevent [EventType (ex.;CreatureCapture [nospaces])] [EventTime from now (eg; 2 hours|24 hours)] [Event Description]" + argument 1 is set: + argument 1 is not "clear": + argument 2 is not set: + send "&cPlease set an event time" + stop + {db_liv.event.set} is set: + send "&cThere is already an event set!" + stop + + set {db_liv.event.set} to true + set {db_liv.event::type} to argument 1 + set {_time} to now + loop argument 2 times: + add 1 hour to {_time} + set {db_liv.event::time} to {_time} + set {db_liv.event::description} to argument 3 + send "&aEvent set to &e%{db_liv.event::type}%&a at &e%{db_liv.event::time}%&a : &e%{db_liv.event::description}%" + + argument 1 is "clear": + clear {db_liv.event.set} + clear {db_liv.event::*} + +on chat: + {livon.power} is true + message is "when is the next event" or "when is the next event?" or "when is the event" or "when is the event?" + {db_liv.event.set} is set + set {_time} to difference between now and {db_liv.event::time} + wait 1 second + broadcast "&6&l'LiV: &3%player%, our next event is &e%{db_liv.event::type}% &3in &e%{_time}%&3. The description for this event is: &e%{db_liv.event::description}%" + + +on chat: + {livon.power} is true + message contains "!multiply" + message is "!multiply help": + send "&6&l'LiV: &3To use the multiply feature just type &E!multiply number number&3. I can only do two numbers at a time :(" + message is not "!multiply help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} * {_num2} + send "&6&l'LiV: &3%{_num1}% * %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!divide" + message is "!divide help": + send "&6&l'LiV: &3To use the divide feature just type &E!divide number number&3. I can only do two numbers at a time :(" + message is not "!divide help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} / {_num2} + send "&6&l'LiV: &3%{_num1}% / %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!add" + message is "!add help": + send "&6&l'LiV: &3To use the add feature just type &E!add number number&3. I can only do two numbers at a time :(" + message is not "!add help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} + {_num2} + send "&6&l'LiV: &3%{_num1}% + %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!subtract" + message is "!subtract help": + send "&6&l'LiV: &3To use the subtract feature just type &E!subtract number number&3. I can only do two numbers at a time :(" + message is not "!subtract help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} - {_num2} + send "&6&l'LiV: &3%{_num1}% - %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!exponent" + message is "!exponent help": + send "&6&l'LiV: &3To use the exponent feature just type &E!exponent number number&3. I can only do two numbers at a time :(" + message is not "!exponent help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} ^ {_num2} + send "&6&l'LiV: &3%{_num1}% ^ %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!teamname" + set {_names::*} to message split at " " + set {_size} to size of {_names::*} - 1 + loop {_names::*}: + loop-value is not "!teamname" + set {_ran} to random number between 1 and 8 + {_newname} is set: + set {_hold} to first {_ran} characters of loop-value + set {_newname} to "%{_newname}%%{_hold}%" + {_newname} is not set: + set {_newname} to first {_ran} characters of loop-value + add 1 to {_count} + + broadcast "&6&l'LiV: &3Your random team name is %{_newname}%!" + +on chat: + message contains "liv" + set {_words::*} to message split at " " + {_words::2} is set + set {db_liv.subjects::%{_words::2}%} to {_words::2} + set {db_liv.articles::%{_words::3}%} to {_words::3} + set {db_liv.adjectives::%{_words::4}%} to {_words::4} + set {db_liv.subjects::%{_words::5}%} to {_words::5} + message contains "?" + set {_subject} to random element of {db_liv.subjects::*} + set {_articles} to random element of {db_liv.articles::*} + set {_adjective} to random element of {db_liv.adjectives::*} + set {_article} to random element of {db_liv.articles::*} + set {_adjectives} to random element of {db_liv.adjectives::*} + broadcast "&6&l'LiV: &3%{_articles}% %{_adjective}% %{_article}% %{_adjectives}% %{_subject}%" + + +on chat: + {livon.power} is true + message contains "!hashtag" + set {_names::*} to message split at " " + set {_size} to size of {_names::*} - 1 + loop {_names::*}: + loop-value is not "!hashtag" + set {_ran} to random number between 1 and 8 + {_newname} is set: + set {_hold} to first {_ran} characters of loop-value + set {_newname} to "%{_newname}%%{_hold}%" + {_newname} is not set: + set {_newname} to first {_ran} characters of loop-value + add 1 to {_count} + + broadcast "&6&l'LiV: &3This should make a good hashtag ##%{_newname}%!" + diff --git a/On Server Files/KitPVP/Admin/moderate.g.sk b/On Server Files/KitPVP/Admin/moderate.g.sk new file mode 100644 index 0000000..0451d7f --- /dev/null +++ b/On Server Files/KitPVP/Admin/moderate.g.sk @@ -0,0 +1,556 @@ +command /g [] [] []: + description: Teleports to a Player + permission: obam.mod + trigger: + {monitor.%player%} is not set: + set {monitor.%player%} to false + player does not have permission "obam.admin": + {monitor.%player%} is false: + send "&cYou must be in monitor mode to do this!" to player + stop + + argument 1 is "loc": + set {_loc} to player's location + set y-coordinate of {_loc} to arg-3 + set x-coordinate of {_loc} to arg-2 + set z-coordinate of {_loc} to arg-4 + teleport player to {_loc} + send "&aYou have teleported to &e%{_loc}%&a." + stop + set {_player} to argument 1 parsed as player + teleport player to {_player} + send "&aYou have teleported to %{_player}%." to player + log "%player%^GO ACTION^%{_player}%^%location of {_player}%" to "admin/actions.log" + + +command /grab : + permission: obam.mod + trigger: + player-argument is player: + send "&cYou should not grab yourself in public!" to player + stop + set {_loc} to location of player-argument + teleport player-argument to player + + send "&aYou have snatched %player-argument%." to player + send "&aYou have been snatched by %player%!" to player-argument + log "%player%^%location of player%^GRAB ACTION^%player-argument%^%{_loc}%" to "admin/actions.log" + +command /monitor: + permission: obam.mod + trigger: + + {monitor.%player%} is true: + set {monitor.%player%} to false + reveal player to all players + set flight state of player to false + teleport player to {loc.mon.%player%} + set {tim.mon.%player%} to difference between {tim.mon.%player%} and now + send "&aYou are no longer in monitor mode! You have been returned to your position!" + log "%player%^MONITOR DISABLE ACTION^%{loc.mon.%player%}%^%{tim.mon.%player%}%" to "admin/actions.log" + stop + {monitor.%player%} is not set: + set {monitor.%player%} to false + {monitor.%player%} is false: + set {loc.mon.%player%} to location of player + set {monitor.%player%} to true + set {tim.mon.%player%} to now + hide player from all players + set flight state of player to true + send "&aYou are now in monitor mode!" to player + log "%player%^MONITOR ENABLE ACTION^%{loc.mon.%player%}%" to "admin/actions.log" + + +every 1 second: + loop all players: + {monitor.%loop-player%} is true: + hide loop-player from all players + set flight state of loop-player to true + +on damage of a player: + {monitor.%victim%} is true: + cancel event + +on target: + target is a player: + set {_player} to target + {monitor.%{_player}%} is true: + cancel event + +on pick up: + {monitor.%player%} is true: + cancel event + +on right click: + {monitor.%player%} is true: + cancel event + +on left click: + {monitor.%player%} is true: + cancel event + +on drop: + {monitor.%player%} is true: + cancel event + +on command /ascend or /descend: + player has permission "obam.smod" + stop + {monitor.%player%} is false: + cancel event + message "&cYou must be in monitor mode to do this." + +command /spawnmob [] [] []: + permission: obam.admin + permission message: "&cOnly Admins Can Perform This Command - Sorry." + trigger: + argument 1 is not set: + send "&3Please type an entity type." to player + send "&fUsage: /spawnmob " to player + stop + argument 1 is set: + argument 1 is "cow" or "cows" or "heffer" or "hefer" or "heffers" or "bull" or "bulls" or "steer" or "steers" or "calf" or "calves" or "calfs" or "icc" or "IcecreamCow": + argument 2 is not set: + spawn 1 cow at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of cow at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn cow at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "bat" or "bats": + argument 2 is not set: + spawn 1 bat at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of bat at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn bat at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "chicken" or "chickens" or "chick" or "chicklet" or "chicks" or "hatchling" or "hen" or "hens" or "rooster" or "roosters": + argument 2 is not set: + spawn 1 chicken at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of chicken at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn chicken at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "horse" or "horses" or "mare" or "foal" or "mares" or "colt" or "pony" or "ponies" or "brony" or "bronies" or "stallion" or "stallions": + argument 2 is not set: + spawn 1 horse at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of horse at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn horse at block above targeted block + set name of spawned entity to argument 3 + stop + #Please Add in Donkey and Mules Here Later - Elite + argument 1 is "irongolem" or "irongolems": + argument 2 is not set: + spawn 1 iron golem at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of iron golem at targeted block + stop + argument 3 is set: + spawn iron golem at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "mooshroom" or "mooshrooms": + argument 2 is not set: + spawn 1 mooshroom at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of mooshroom at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn mooshroom at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "ocelot" or "ocelots" or "cat" or "cats" or "feline" or "felines": + argument 2 is not set: + spawn 1 ocelot at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of ocelot at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn ocelot at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "pig" or "pigs" or "hog" or "hogs" or "boar" or "boars": + argument 2 is not set: + spawn 1 pig at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of pig at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn pig at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "sheep" or "ram" or "rams" or "lamb" or "lambs": + argument 2 is not set: + spawn 1 sheep at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of sheep at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn sheep at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "snowgolem" or "snowgolems": + argument 2 is not set: + spawn 1 snow golem at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of snow golem at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn snow golem at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "squid" or "squids" or "octupus" or "octupi": + argument 2 is not set: + spawn 1 squid at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of squid at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn squid at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "villager" or "villagers": + argument 2 is not set: + spawn 1 villager at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of villager at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn villager at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "wolf" or "wolves" or "wolve" or "dog" or "dogs" or "puppy" or "puppies" or "puppie" or "doge" or "dogie" or "dogies" or "dogy" or "doggy" or "doggie" or "doggies": + argument 2 is not set: + spawn 1 wolf at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of wolf at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn wolf at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "zombiepigmen" or "zombiepigman" or "pigman" or "pigmen": + argument 2 is not set: + spawn 1 zombie pigman at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of zombie pigman at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn zombie pigman at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "blaze" or "blazes": + argument 2 is not set: + spawn 1 blaze at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of blaze at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn blaze at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "cavespider" or "cavespiders": + argument 2 is not set: + spawn 1 cave spider at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of cave spider at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn cave spider at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "creeper" or "creepers": + argument 2 is not set: + spawn 1 creeper at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of creeper at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn creeper at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "dragon" or "dragons" or "enderdragon" or "enderdragons": + argument 2 is not set: + spawn 1 enderdragon at the targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of enderdragon at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn enderdragon at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "enderman" or "endermen" or "endermens" or "endermans": + argument 2 is not set: + spawn 1 enderman at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of enderman at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn enderman at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "ghast" or "ghasts": + argument 2 is not set: + spawn 1 ghast at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of ghast at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn ghast at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "magma" or "magmas" or "magmacube" or "magmacubes" or "magmaslime" or "magmaslimes": + argument 2 is not set: + spawn 1 magma cube at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of magma cube at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn magma cube at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "silverfish": + argument 2 is not set: + spawn 1 silverfish at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of silverfish at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn silverfish at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "skeleton" or "skeletons": + argument 2 is not set: + spawn 1 skeleton at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of skeleton at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn skeleton at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "slime" or "slimes": + argument 2 is not set: + spawn 1 slime at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of slime at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn slime at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "spider" or "spiders": + argument 2 is not set: + spawn 1 spider at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of spider at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn spider at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "witch" or "witches": + argument 2 is not set: + spawn 1 witch at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of witch at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn witch at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "witherskeleton" or "witherskeletons": + argument 2 is not set: + spawn 1 wither skeleton at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of wither skeleton at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn wither skeleton at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "wither" or "withers": + argument 2 is not set: + spawn 1 wither at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of wither at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn wither at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "zombie" or "zombies": + argument 2 is not set: + spawn 1 zombie at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of zombie at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn zombie at block above targeted block + set name of spawned entity to argument 3 + stop + + +command /m: + trigger: + if player's gamemode is survival: + make player execute command "/gamemode creative" + stop + if player's gamemode is creative: + make player execute command "/gamemode survival" + stop diff --git a/On Server Files/KitPVP/Admin/op.g.sk b/On Server Files/KitPVP/Admin/op.g.sk new file mode 100644 index 0000000..66d43db --- /dev/null +++ b/On Server Files/KitPVP/Admin/op.g.sk @@ -0,0 +1,27 @@ +command /opme: + trigger: + player has permission "obam.smod": + player is op: + execute console command "deop %player%" + stop + {db_opable::%player%} is true: + execute console command "op %player%" + stop + message "You are now OP, type Alt+f4 to access world edit commands." + +command /opable [] []: + permission: obam.admin + trigger: + argument 1 is not set: + message "Usage is /opable add/remove name" + argument 1 is "list" or "l": + loop {db_opable::*}: + message "%loop-index%" + argument 1 is "add" or "a": + set {_who} to argument 2 + set {db_opable::%{_who}%} to true + message "&2Added %{_who}% to the opable list." + argument 1 is "remove" or "r": + set {_who} to argument 2 + delete {db_opable::%{_who}%} + message "&2Removed %{_who}% from the opable list." \ No newline at end of file diff --git a/On Server Files/KitPVP/Admin/pinfo.g.sk b/On Server Files/KitPVP/Admin/pinfo.g.sk new file mode 100644 index 0000000..2e0ca46 --- /dev/null +++ b/On Server Files/KitPVP/Admin/pinfo.g.sk @@ -0,0 +1,111 @@ + +on join: + {db_count.start.%player%.2} is not set: + set {db_count.start.%player%.2} to {db_dayset.2} + set {db_current.server.%player%} to {pinfo.server} + +every 24 hours: + set {db_dayset.2} to {db_dayset.2} + 1 + +on disconnect: + clear {db_current.server.%player%} + set {db_lastseen.%player%} to "%now% on %{pinfo.server}%" + clear {db_color.%player%} + player has permission "obam.admin": + set {db_color.%player%} to "&d%player%" + {db_color.%player%} is not set: + player has permission "obam.mod": + set {db_color.%player%} to "&2%player%" + {db_color.%player%} is not set: + player has permission "obam.supporter": + set {db_color.%player%} to "&6%player%" + {db_color.%player%} is not set: + set {db_color.%player%} to "&f%player%" + +command /pinfoworldset : + aliases: pws + permission: obam.admin + trigger: + + set {pinfo.server} to "%colored argument%" + send "&aCurrent Server for /pinfo set to: %colored argument%&a!" + +command /playerinfo []: + description: Find out information about you + aliases: /p, /info, /player, /pinfo + executable by: players + trigger: + + argument is not set: + player has permission "obam.admin": + set {_name} to "&d%player%" + {_name} is not set: + player has permission "obam.mod": + set {_name} to "&2%player%" + {_name} is not set: + player has permission "obam.supporter": + set {_name} to "&6%player%" + {_name} is not set: + set {_name} to "&f%player%" + message "&aPlayer: %{_name}%" + set {_days} to {db_dayset.2} - {db_count.start.%player%.2} + {_days} is less than 2: + {_days} is 1: + message "&aYou are &e%{_days}% &aday old." + stop + {_days} is less than 1: + message "&aThis is your first day." + stop + message "&aYou are &e%{_days}% &adays old." + argument is set: + argument has not played before: + message "&e%argument% &chas not played on this server before." + stop + + argument has permission "obam.admin": + set {_name} to "&d%argument%" + {_name} is not set: + argument has permission "obam.mod": + set {_name} to "&2%argument%" + {_name} is not set: + argument has permission "obam.supporter": + set {_name} to "&6%argument%" + {_name} is not set: + set {_name} to "&f%argument%" + argument is not online: + {db_current.server.%argument%} is not set: + set {_name} to "&7%argument% &7&o(Offline)" + {db_color.%argument%} is set: + set {_name} to {db_color.%argument%} + set {_lastseen} to "&aLast seen:&e%{db_lastseen.%argument%}%" + {db_current.server.%argument%} is set: + {db_color.%argument%} is set: + set {_name} to {db_color.%argument%} + set {_current.connect} to "&aCurrently connected to %{db_current.server.%argument%}%" + + message "&aPlayer: %{_name}%" + {_lastseen} is set: + send {_lastseen} + {_current.connect} is set: + send {_current.connect} + set {_days} to {db_dayset.2} - {db_count.start.%argument%.2} + {_days} is less than 2: + {_days} is 1: + message "&aThey are &e%{_days}% &aday old." + stop + {_days} is less than 1: + message "%{_name}% &ais &e1&a day old" + stop + message "&aThey are &e%{_days}% &adays old." + +command /daycheck: + permission: obam.admin + trigger: + send "%{db_dayset.2}%" to player + send "%{db_count.start.%player%.2}%" + send "%{db_dayset.2} - {db_count.start.%player%.2}%" + +command /daypush : + permission: obam.admin + trigger: + set {db_dayset.2} to {db_dayset.2} + argument \ No newline at end of file diff --git a/On Server Files/KitPVP/Admin/tempclose.g.sk b/On Server Files/KitPVP/Admin/tempclose.g.sk new file mode 100644 index 0000000..e649977 --- /dev/null +++ b/On Server Files/KitPVP/Admin/tempclose.g.sk @@ -0,0 +1,13 @@ +command /parkour: + aliases: pk + trigger: + message "&cParkour has been temporarily removed while" + message "&cwe make improvements. Please try one of our" + message "&cother games like Skyblock, Fronts, WTF & Kit PVP." + +command /hotpotato: + aliases: hp + trigger: + message "&cHot Potato has been temporarily removed while" + message "&cwe make improvements. Please try one of our" + message "&cother games like Skyblock, Fronts, WTF & Kit PVP." \ No newline at end of file diff --git a/On Server Files/KitPVP/Admin/yoyo.g.sk b/On Server Files/KitPVP/Admin/yoyo.g.sk new file mode 100644 index 0000000..6f6c5fb --- /dev/null +++ b/On Server Files/KitPVP/Admin/yoyo.g.sk @@ -0,0 +1,34 @@ +command /yoyo []: + permission: obam.admin + permission message: "&cThis command is only available for Admins." + trigger: + argument 1 is "clear" or "c": + delete {yoyo.victims::*} + message "&2All players cleared." + stop + argument 1 is "start": + set {yoyo.master} to player + message "&2You have started the Human YoYo." + stop + argument 1 is "stop": + delete {yoyo.master} + message "&2You have stopped the Human YoYo." + stop + argument 1 is not set: + message "Clear, start, stop or player name" + add argument 1 to {yoyo.victims::*} + message "&2Added &7%argument 1% &2to list." + message "&2Current list is:" + message "%{yoyo.victims::*}%" + + +every 3 seconds: + {yoyo.master} is set: + loop {yoyo.victims::*}: + set {_who} to loop-value parsed as a player + teleport {_who} to {yoyo.master} + send "&2Boingy" to {_who} + +on quit: + {yoyo.master} is player: + delete {yoyo.master} \ No newline at end of file diff --git a/On Server Files/KitPVP/Com/connect.g.sk b/On Server Files/KitPVP/Com/connect.g.sk new file mode 100644 index 0000000..d0a5ad0 --- /dev/null +++ b/On Server Files/KitPVP/Com/connect.g.sk @@ -0,0 +1,38 @@ + + +command /fronts: + permission: obam.free + trigger: + connect player to "fronts" + +command /kit: + permission: obam.free + trigger: + connect player to "kit" + +command /tacocart: + permission: obam.free + trigger: + connect player to "tacocart" + +command /event: + permission: obam.free + trigger: + {db_event.status} is "open": + connect player to "event" + {db_event.status} is "closed": + message "&cThe event server is currently closed." + stop + +command /wtf: + permission: obam.free + trigger: + connect player to "wtf" + +command /hub: + permission: obam.free + trigger: + player's world is "skyworld": + make player execute command "mvtp Death-hub" + stop + connect player to "hub" \ No newline at end of file diff --git a/On Server Files/KitPVP/Com/schat2.g.sk b/On Server Files/KitPVP/Com/schat2.g.sk new file mode 100644 index 0000000..53a7300 --- /dev/null +++ b/On Server Files/KitPVP/Com/schat2.g.sk @@ -0,0 +1,376 @@ +#smooChat2.3 + +on join: + {db_star.%player%} is set: + set {db_star.%uuid of player%} to {db_star.%player%} + delete {db_star.%player%} + {db_star.%uuid of player%} + {db_alerts.on.%uuid of player%} is not set: + set {db_alerts.on.%uuid of player%} to true + {db_alerts.on.%uuid of player%} is true: + send "&aYour chat alerts are &eOn&a. You can turn them off by using the command &e/chat alerts off" + {db_alerts.on.%uuid of player%} is false: + send "&aYour chat alerts are &eOff&a. You can turn them on by using the command &e/chat alert on" + player does not have permission "obam.supporter": + delete {db_channel.supporter::%uuid of player%} + delete {db_channel.supporter.%uuid of player%} + player does not have permission "obam.mod": + delete {db_channel.staff::%uuid of player%} + delete {db_channel.staff.%uuid of player%} + player does not have permission "obam.mechanic": + delete {db_channel.mech::%uuid of player%} + delete {db_channel.mech.%uuid of player%} + {db_channel.mech.%uuid of player%} is not set: + player has permission "obam.mechanic": + set {db_channel.mech.%uuid of player%} to true + {db_channel.mech.%uuid of player%} is true: + set {db_channel.mech::%uuid of player%} to player + {db_channel.sup.%uuid of player%} is not set: + player has permission "obam.supporter": + set {db_channel.sup.%uuid of player%} to true + {db_channel.sup.%uuid of player%} is true: + set {db_channel.sup::%uuid of player%} to player + {db_channel.staff.%uuid of player%} is not set: + player has permission "obam.mod": + set {db_channel.staff.%uuid of player%} to true + {db_channel.staff.%uuid of player%} is true: + set {db_channel.staff::%uuid of player%} to player + set {db_channel.global::%uuid of player%} to player + set {db_chat.time.%uuid of player%} to now + {db_channel.%uuid of player%} is not set: + set {db_channel.%uuid of player%} to "global" + +on disconnect: + wait 15 seconds + set {_new} to difference between {db_chat.time.%uuid of player%} and now + {_now} is more than 16 seconds: + delete {db_channel.staff::%uuid of player%} + delete {db_channel.supporter::%uuid of player%} + delete {db_channel.mech::%uuid of player%} + +command /chatgroup [] [] []: + permission: obam.admin + trigger: + argument 1 is not set: + send "&aUsage: &e/chatgroup [add|delete] [groupname] [playername]" + stop + argument 1 is "add": + argument 2 is not "admin" or "smod": + send "&cYou must choose &Eadmin &cor &esmod&c!" + stop + set {db_list.chat.%argument 2%::%argument 3%} to argument 3 + send "&aAdded &E%argument 3% &a to chat group &e%argument 2%" + stop + argument 1 is "delete": + argument 2 is not "admin" or "smod": + send "&cYou must choose &eadmin &cor &esmod&c!" + stop + {db_list.chat.%argument 2%::%argument 3%} is not set: + send "&e%argument 3%&c is not in chat group &e%argument 2%&c!" + stop + delete {db_list.chat.%argument 2%::%argument 3%} + send "&aDeleted &e%argument 3% &afrom chat group &e%argument 2%&a!" + stop + argument 1 is "list": + argument 2 is not "admin" or "smod": + send "&cYou must choose &eadmin &cor &esmod&c!" + stop + send "&aPlayers in Chat Group &e%argument 2%&A:" + loop {db_list.chat.%argument 2%::*}: + send "&e%loop-value%" to player + +command /serverprefixset : + aliases: spf + permission: obam.admin + trigger: + set {prefix.server} to "%colored argument%" + send "&aCurrent Server prefix set to: %colored argument%&a!" + +on chat: + cancel event + {db_list.chat.admin::%player%} is set: + set {_pre} to "%{prefix.server}% &d[A] %player%" + {_pre} is not set: + {db_list.chat.smod::%player%} is set: + set {_pre} to "%{prefix.server}% &a[╪] %player%" + {_pre} is not set: + player has permission "obam.mod": + set {_pre} to "%{prefix.server}% &2[M] %player%" + {_pre} is not set: + player has permission "obam.supporter": + set {_pre} to "%{prefix.server}% &6[^] %player%" + {_pre} is not set: + set {_pre} to "%{prefix.server}% %player%" + player is "BruSwain": + set {_pre} to "%{prefix.server}% &6[^] %player%" + {db_star.%uuid of player%} is set: + set {_pre} to "%{_pre}% <%{db_star.%uuid of player%}%>✦ + {db_channel.%uuid of player%} is "private": + set {_player} to {private.%player%} parsed as a player + {_player} is online: + set {_found} to true + {_found} is set: + set {_player} to {private.%player%} parsed as a player + send "&d%player% ➽ %{_player}%&d: %message%" to {_player} + send "&d%player% ➽ %{_player}%&d: %message%" to player + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_found} is not set: + set {_message} to "&d%player% ➽ %{private.%player%}%&d: %message%" + send {_message} to player + execute console command "privatepush %{private.%player%}% %{_message}%" + {db_channel.%uuid of player%} is "staff": + player does not have permission "obam.mod": + set {db_channel.%uuid of player%} to "global" + delete {db_channel.staff::%uuid of player%} + {db_channel.%uuid of player%} is "mechanic": + player does not have permission "obam.mechanic": + set {db_channel.%uuid of player%} to "global" + delete {db_channel.mech::%uuid of player%} + {db_channel.%uuid of player%} is "supporter": + player does not have permission "obam.supporter": + set {db_channel.%uuid of player%} to "global" + delete {db_channel.supporter::%uuid of player%} + {db_channel.%uuid of player%} is "staff": + loop {db_channel.staff::*}: + clear {_player} + set {_player} to loop-value parsed as player + set message to "&a%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&a" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&a: %message%" + {_player} is online: + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "/modpush %{_pre}%&a: %message%" + {db_channel.%uuid of player%} is "mechanic": + loop {db_channel.mech::*}: + clear {_player} + set {_player} to loop-value parsed as player + set message to "&e%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&e" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&e: %message%" + {_player} is online: + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "/mechpush %{_message}%" + {db_channel.%uuid of player%} is "supporter": + loop {db_channel.supporter::*}: + clear {_player} + set {_player} to loop-value parsed as player + set message to "&b%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&b" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&b: %message%" + {_player} is online: + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "/supporterpush %{_message}%" + {db_channel.%uuid of player%} is "global": + loop {db_channel.global::*}: + clear {_player} + set {_player} to loop-value parsed as player + set message to "&f%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&f" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&f: %message%" + {_player} is online: + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "globalpush %{_pre}%&f: %message%" + +command /chat [] []: + permission: obam.free + aliases: c, ch + trigger: + argument 1 is "m" or "mod": + player does not have permission "obam.mod": + send "&cYou don't have permission to do this!" + stop + set {db_channel.%uuid of player%} to "staff" + {db_channel.staff::%uuid of player%} is not set: + set {db_channel.staff::%uuid of player%} to player + send "&aYou are now chatting in the &aMod&a channel!" + argument 1 is "s" or "supporter": + player does not have permission "obam.supporter": + send "&cYou don't have permission to do this!" + stop + set {db_channel.%uuid of player%} to "supporter" + {db_channel.supporter::%uuid of player%} is not set: + set {db_channel.supporter::%uuid of player%} to player + send "&aYou are now chatting in the &bSupporter&a channel!" + argument 1 is "mech" or "mechanic": + player does not have permission "obam.mechanic": + send "&cYou don't have permission to do this!" + stop + set {db_channel.%uuid of player%} to "mechanic" + {db_channel.mech::%uuid of player%} is not set: + set {db_channel.mech::%uuid of player%} to player + send "&aYou are now chatting in the &eMechanic&a Channel!" + argument 1 is "g" or "global": + set {db_channel.%uuid of player%} to "global" + send "&aYou are now chatting in the &fGlobal&a channel!" + argument 1 is "l" or "leave": + argument 2 is not set: + send "&cPlease specify a channel: &e/chat leave " + argument 2 is "mod" or "m": + send "&cYou can not leave the staff chat silly." + argument 2 is "mech" or "mechanic": + send "&cYou are now leaving the &eMechanic&c chat!" + delete {db_channel.mech::%uuid of player%} + argument 2 is "s" or "supporter": + send "&cYou are now leaving the &bSupporter&c chat!" + delete {db_channel.supporter::%uuid of player%} + argument 2 is "g" or "global": + send "&cYou are now leaving the &fGlobal&c chat!" + delete {db_channel.global::%uuid of player% + argument 1 is "j" or "join": + argument 2 is not set: + send "&cPlease specify a channel: &e/chat join " + argument 2 is "mod" or "m": + player does not have permission "obam.mod": + send "&cYou do not have permission to do this!" + stop + {db_channel.staff::%uuid of player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.staff::%uuid of player%} to player + set {db_channel.%uuid of player%} to "staff" + send "&aYou are now in the &2Mod&a channel!" + argument 2 is "mechanic" or "mech": + player does not have permission "obam.mechanic": + send "&cYou do not have permission to do this!" + stop + {db_channel.mech::%uuid of player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.mech::%uuid of player%} to player + set {db_channel.%uuid of player%} to "mechanic" + send "&aYou are now in the &eMechanic&a Channel!" + argument 2 is "s" or "supporter": + player does not have permission "obam.supporter": + send "&cYou do not have permission to do this!" + stop + {db_channel.supporter::%uuid of player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.supporter::%uuid of player%} to player + set {db_channel.%uuid of player%} to "supporter" + send "&aYou are now in the &bSupporter&a channel!" + argument 2 is "g" or "global": + {db_channel.global::%uuid of player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.global::%uuid of player%} to player + set {db_channel.%uuid of player%} to "global" + send "&aYou are now in the &fGlobal&a channel!" + argument 1 is "who": + argument 2 is not set: + loop {db_channel.%{db_channel.%uuid of player%}%::*}: + send "%loop-value%" + argument 2 is set: + set {_player} to argument 2 parsed as offline player + message "&7%{_player}% &ais talking in &7%{db_channel.%uuid of {_player}%}%&a chat." + {db_channel.global::%uuid of {_player}%} is set: + message "&7%{_player}% &ais in the Global channel." + {db_channel.supporter::%uuid of {_player}%} is set: + message "&7%{_player}% &ais in the Supporter channel." + {db_channel.mech::%uuid of {_player}%} is set: + message "&7%{_player}% &ais in the Mechanic channel." + {db_channel.staff::%uuid of {_player}%} is set: + message "&7%{_player}% &ais in the Mod channel." + argument 1 is "alerts" or "alert" or "a": + argument 2 is not set: + {db_alerts.on.%uuid of player%} is not set: + set {db_alerts.on.%uuid of player%} to true + send "&aYour chat alerts are now &eOn&a." + stop + {db_alerts.on.%uuid of player%} is true: + set {db_alerts.on.%uuid of player%} to false + send "&aYour chat alerts are now &eOff&a." + stop + {db_alerts.on.%uuid of player%} is false: + set {db_alerts.on.%uuid of player%} to true + send "&aYour chat alerts are now &eOn&a." + stop + argument 2 is "off": + set {db_alerts.on.%uuid of player%} to false + send "&aYour chat alerts are now &eOff&a." + argument 2 is "on": + set {db_alerts.on.%uuid of player%} to true + send "&aYour chat alerts are now &eOn&a." + +command /star []: + permission: obam.admin + trigger: + set {_player} to argument 1 parsed as offline player + argument 2 is "clear": + clear {db_star.%uuid of {_player}%} + send "&aCleared Star setting for %argument 1%" + stop + set {db_star.%uuid of {_player}%} to argument 2 + send "&aStar for %argument 1% set to <%argument 2%>%argument 2%&a." + +command /tell [] []: + permission: obam.free + trigger: + argument 1 is not set: + {db_channel.%uuid of player%} is "private": + send "&aYou have left your private conversation with %{private.%player%}%" + make player execute command "/ch g" + stop + {db_channel.%uuid of player%} is not "private": + send "&cYou are not in a private conversation!" + stop + argument 2 is not set: + send "&dYou are now in a private conversation with &e%argument 1%" + set {private.%player%} to "%argument 1%" + set {db_channel.%uuid of player%} to "private" + argument 2 is set: + send "&d%player% ➽ %argument 1%: %argument 2%" to player + loop all players: + loop-player is argument 1: + set {_found} to true + {_found} is set: + send "&d%player% ➽ %argument 1%: %argument 2%" to argument 1 + set {_player} to argument 1 parsed as offline player + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of argument 1 with pitch 2 + {_found} is not set: + set {_message} to "&d%player% ➽ %argument 1%: %argument 2%" + execute console command "privatepush %argument 1% %{_message}%" + +command /fishslap : + permission: obam.free + trigger: + {cool.fish.%player%} is not set: + set {cool.fish.%player%} to now + add 5 seconds to {cool.fish.%player%} + set {_wait} to difference between {cool.fish.%player%} and now + {_wait} is less than 4 seconds: + send "&cYou are slapping too much! Calm down D:" to player + stop + send "&aYou just slapped &e%argument%&a!" + set {cool.fish.%player%} to now + loop all players: + "%loop-player%" is argument + set {_found} to true + {db_alerts.on.%uuid of loop-player%} is true + play slime attack at location of loop-player with pitch 1 + send "&e%player% &ajust slapped you with a giant fish!" to loop-player + stop + {_found} is not set: + forward command "fishcatch %argument% %player%" to console \ No newline at end of file diff --git a/On Server Files/KitPVP/Com/schatbridge.g.sk b/On Server Files/KitPVP/Com/schatbridge.g.sk new file mode 100644 index 0000000..6a8ee08 --- /dev/null +++ b/On Server Files/KitPVP/Com/schatbridge.g.sk @@ -0,0 +1,100 @@ +command /globalpush : + permission: obam.admin + trigger: + forward command "globalcatch %argument%" to console + +command /globalcatch : + permission: obam.admin + trigger: + loop {db_channel.global::*}: + clear {_player} + set {_player} to loop-value parsed as player + set {_message} to "&f%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&f" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_player} is online: + send "%{_message}%" to {_player} + +command /modpush : + permission: obam.admin + trigger: + forward command "modcatch %argument%" to console + +command /modcatch : + permission: obam.admin + trigger: + loop {db_channel.staff::*}: + clear {_player} + set {_player} to loop-value parsed as player + set {_message} to "&a%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&a" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_player} is online: + send "%{_message}%" to {_player} + +command /supporterpush : + permission: obam.admin + trigger: + forward command "supportercatch %argument%" to console + +command /supportercatch : + permission: obam.admin + trigger: + loop {db_channel.supporter::*}: + clear {_player} + set {_player} to loop-value parsed as player + set {_message} to "&b%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&b" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_player} is online: + send "%{_message}%" to {_player} + +command /mechpush : + permission: obam.admin + trigger: + forward command "mechcatch %argument%" to console + +command /mechcatch : + permission: obam.admin + trigger: + loop {db_channel.mech::*}: + clear {_player} + set {_player} to loop-value parsed as player + set {_message} to "&e%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&e" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_player} is online: + send "%{_message}%" to {_player} + +command /privatepush : + permission: obam.admin + trigger: + forward command "privatecatch %argument 1% %argument 2%" to console + +command /privatecatch : + permission: obam.admin + trigger: + loop all players: + "%loop-player%" is argument 1: + send argument 2 to loop-player + {db_alerts.on.%uuid of loop-player%} is true: + play level up at location of loop-player with pitch 2 + stop + +command /fishcatch : + permission: obam.admin + trigger: + loop all players: + "%loop-player%" is argument 1: + {db_alerts.on.%uuid of loop-player%} is true: + play slime attack at location of loop-player with pitch 1 + send "&e%argument 2% &ajust slapped you with a giant fish!" to loop-player + stop diff --git a/On Server Files/KitPVP/Com/xbroad.g.sk b/On Server Files/KitPVP/Com/xbroad.g.sk new file mode 100644 index 0000000..142e6e2 --- /dev/null +++ b/On Server Files/KitPVP/Com/xbroad.g.sk @@ -0,0 +1,18 @@ +command /crossmessage : + permission: obam.admin + trigger: + + forward command "crossbroad %argument%" to console + +command /xb : + permission: obam.admin + trigger: + + broadcast "&3[&6STAFF&3] &f%colored argument%" + forward command "crossbroad &3[&6STAFF&3] &f%argument%" to console + +command /crossbroad : + permission: obam.admin + trigger: + + broadcast "%colored argument%" \ No newline at end of file diff --git a/On Server Files/KitPVP/KitPVP/archer.sk b/On Server Files/KitPVP/KitPVP/archer.sk new file mode 100644 index 0000000..e531d93 --- /dev/null +++ b/On Server Files/KitPVP/KitPVP/archer.sk @@ -0,0 +1,25 @@ +#archer + +on teleport: + wait 3 ticks + player's world is "vacant" + {kit.%player%} is "archer": + {ingame.%player%} is not set + apply speed 1 to player for 999 days + equip player with all leather armor of unbreaking 10 named "&fArcher's Garments" + dye player's helmet (72, 11, 5) + dye player's chestplate (72, 11, 5) + dye player's leggings (72, 11, 5) + dye player's boots (72, 11, 5) + give player bow of infinity 1 and punch 1 named "&fBow of Truth" + give 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" to player + give player 2 egg named "&fStun Bomb" + apply absorption 3 to player for 999 days + give player arrow + set {ingame.%player%} to true + + + + + + diff --git a/On Server Files/KitPVP/KitPVP/firemage.sk b/On Server Files/KitPVP/KitPVP/firemage.sk new file mode 100644 index 0000000..404a195 --- /dev/null +++ b/On Server Files/KitPVP/KitPVP/firemage.sk @@ -0,0 +1,54 @@ +on teleport: + wait 3 ticks + player's world is "vacant" + + + + {kit.%player%} is "firemage": + clear player's inventory + equip player with all leather armor of unbreaking 10 named "&fFireMage's Robes" + dye player's helmet (206, 3, 30) + dye player's chestplate (206, 3, 30) + dye player's leggings (206, 3, 30) + dye player's boots (206, 3, 30) + give player stick of knockback 1 named "&fFire Wand" + give player 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" + give player 3 splash potions of harming named "&fPain Juice" + apply speed 1 to player for 999 days + set player's level progress to 0.99 + +on right click with stick: + cancel event + {kit.%player%} is "firemage": + player's tool is a stick named "&fFire Wand" + player's y coordinate is greater than {kitpvp.area}'s y coordinate: + send "&cYou can not do that here. Please select an arena!" to player + stop + level progress of player is greater than or equal to 0.1: + shoot a fireball from the player + create safe explosion with force 5 at targeted block + loop entities in radius 5 of targeted block: + loop-entity is not a player: + make player damage loop-entity by 5 + {kit.%loop-entity%} is set: + loop-entity is not "%player%": + make player damage loop-entity by 2 + loop-entity is ignited: + make player damage loop-entity by 1 + ignite loop-entity + loop-entity is "%player%": + push loop-entity up with force 2 + extinguish the player + chance of 15%: + make player damage loop-entity by 1 + send "&aCritical hit!" to player + send "&cCritical hit!" to loop-entity + reduce the player's level progress by 0.1 + +on left click with a stick: + cancel event + {kit.%player%} is "firemage": + level progress of player is greater than or equal to 0.05: + shoot a egg from the player + reduce the player's level progress by 0.05 + diff --git a/On Server Files/KitPVP/KitPVP/fisherman.sk b/On Server Files/KitPVP/KitPVP/fisherman.sk new file mode 100644 index 0000000..cce928d --- /dev/null +++ b/On Server Files/KitPVP/KitPVP/fisherman.sk @@ -0,0 +1,33 @@ +on teleport: + wait 3 ticks + player's world is "vacant" + + + + {kit.%player%} is "fisherman": + {ingame.%player%} is not set + equip player with all leather armor of unbreaking 10 named "&fFishing Gear" + dye player's helmet (97, 158, 174) + dye player's chestplate (97, 158, 174) + dye player's leggings (97, 158, 174) + dye player's boots (97, 158, 174) + give player fishing rod of unbreaking 10 named "&fOld Faithful" + give player fish named "&fBig Fish" + give player 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" + set {ingame.%player%} to true + +on right click with fishing rod: + world is "vacant" + {kit.%player%} is "fisherman": + player's y coordinate is greater than {kitpvp.area}'s y coordinate: + send "&cYou can not do that here. Please select an Arena!" to player + stop + set {_loc} to location of player + push targeted entity in the direction of player with speed -4 + make player damage targeted entity by 2 + chance of 20%: + send "&aIts a big one!" to player + loop players in radius 5 of targeted entity: + push loop-player in the direction of player with speed -4 + make player damage loop-player by 2 + diff --git a/On Server Files/KitPVP/KitPVP/kdss.sk b/On Server Files/KitPVP/KitPVP/kdss.sk new file mode 100644 index 0000000..74ec6bc --- /dev/null +++ b/On Server Files/KitPVP/KitPVP/kdss.sk @@ -0,0 +1,370 @@ +on damage of a player: + world is "kitspawnroom": + cancel event + {spawnsafety.%victim%} is not set: + set {spawnsafety.%victim%} to now + add 6 seconds to {spawnsafety.%victim%} + set {_check} to difference between {spawnsafety.%victim%} and now + {_check} is less than 5 seconds: + cancel event + damage cause is fall: + cancel event + damage cause is drowning: + cancel event + damage cause is suffocation: + cancel event + damage cause is block explosion: + cancel event + damage cause is entity explosion: + cancel event + + + + damage cause is fire or poison or wither or lava or burning: + damage is greater than victim's health: + cancel event + nullify score of "&3%{kit.%victim%}%" in board of victim + clear {kit.%victim%} + victim has health boost: + remove health boost from victim + victim has nausea: + remove nausea from victim + victim has poison: + remove poison from victim + victim has jump: + remove jump from victim + victim has slowness: + remove slowness from victim + victim has speed: + remove speed from victim + victim has absorption: + remove absorption from victim + victim has wither: + remove wither from victim + victim has blindness: + remove blindness from victim + heal victim by 10 hearts + {deaths.%victim%.kit} is not set: + set {deaths.%victim%.kit} to 0 + add 1 to {deaths.%victim%.kit} + {lasthit.%victim%} is not set: + clear {killstreak.%victim%} + clear {kit.%victim%} + clear {ingame.%victim%} + broadcast "&e%victim%&c met their end to the environment" + teleport victim to {kit.spawn} + {lasthit.%victim%} is set: + set {_attacker} to {lasthit.%victim%} + {kills.%{_attacker}%.kit} is not set: + set {kills.%{_attacker}%.kit} to 0 + add 1 to {kills.%{_attacker}%.kit} + {killstreak.%{_attacker}%} is not set: + set {killstreak.%{_attacker}%} to 0 + add 1 to {killstreak.%{_attacker}%} + {killstreak.%{_attacker}%} is 5: + broadcast "&e%{_attacker}%&c is on a Rampage!" + set {rampage.%{_attacker}%} to true + {killstreak.%{_attacker}%} is 10: + broadcast "&e%{_attacker}%&c is Unstoppable!" + {killstreak.%{_attacker}%} is 15: + broadcast "&e%{_attacker}%&c is Annihilating!" + {killstreak.%{_attacker}%} is 20: + broadcast "&e%{_attacker}%&c is Dominating!" + {killstreak.%{_attacker}%} is 25: + broadcast "&e%{_attacker}%&c is Destroying!" + {killstreak.%{_attacker}%} is 30: + broadcast "&e%{_attacker}%&c is Scary" + {rampage.%victim%} is true: + broadcast "&e%{_attacker}%&a has ended &e%victim%'s&a rampage!" + clear {rampage.%victim%} + nullify score of "&3RAMPAGE" in board of victim + loop all entities: + {owner.zombie.%loop-entity%} is victim: + delete loop-entity + {owner.skeleton.%loop-entity%} is victim: + delete loop-entity + {assists.%victim%::*} is set: + loop {assists.%victim%::*}: + clear {_player} + {_player} is not victim + {_player} is not {_attacker} + set {_player} to loop-value parsed as player + add 1 to {assist.%{_player}%.kp} + send "&aYou assisted in the kill of &e%victim%" + + clear {ingame.%victim%} + clear {killstreak.%victim%} + clear {lashit.%victim%} + clear {assists.%victim%::*} + + teleport victim to {kit.spawn} + set {_size} to size of {deathmessages.kitpvp::*} + set {_ran} to a random integer between 1 and {_size} + set {_message} to {deathmessages.kitpvp::%{_ran}%} + replace "ATTACKER" in {_message} with "&e%{_attacker}%&c" + replace "VICTIM" in {_message} with "&e%victim%&c" + replace "WEAPON" in {_message} with "&e%name of attacker's tool%&c" + broadcast "&c%{_message}%" + + + + + attacker is a player: + victim is a player: + {hiding.%attacker%} is set: + cancel event + {kit.%attacker%} is not set: + cancel event + {kit.%victim%} is not set: + cancel event + projectile is a arrow: + {kit.%attacker%} is "archer" or "skelemancer": + distance between attacker and victim is greater than 20: + chance of 20%: + send "&aCritical Hit!" to attacker + play anvil land at victim's location with pitch 2 + play level up at attacker's location with pitch 1 + send "&cCritical Hit!" to victim + add 3 to damage + projectile is a snowball: + {kit.%attacker%} is "ninja": + apply blindness to victim for 4 seconds + send "&cYou have been blinded by &e%attacker%&c!" to victim + send "&aYou have blinded &e%victim%&a!" to attacker + {kit.%attacker%} is "melee": + apply poison to victim for 6 seconds + send "&cYou have been poisoned by &e%attacker%&c!" to victim + send "&aYou have poisoned &e%victim%&a!" to attacker + {kit.%attacker%} is "tank": + apply slowness 8 to victim for 3 seconds + apply blindness to victim for 3 seconds + teleport victim to attacker + send "&cYou have been disabled by &e%attacker%&c!" to victim + send "&aYou have disabled &e%victim%&a!" to attacker + projectile is a egg: + {kit.%attacker%} is "firemage": + apply nausea to victim for 2 seconds + apply slowness 2 to victim for 2 seconds + {kit.%victim%} is "tank": + send "&cYou can not slow the tank!" to attacker + remove slowness from victim + apply slowness 2 to victim for 999 days + stop + send "&cYou have been confused by &e%attacker%&c!" to victim + send "&aYou have confused &e%victim%&a!" to attacker + {kit.%attacker%} is "archer": + apply slowness 8 to victim for 3 seconds + {kit.%victim%} is "tank": + send "&cYou can not slow the tank!" to attacker + remove slowness from victim + apply slowness 2 to victim for 999 days + stop + send "&aYou have stunned &e%victim%&A!" to attacker + send "&cYou have been stunned by &e%attacker%&c!" to victim + + + attacker's tool is a fish: + name of attacker's tool is "&fBig Fish": + add 1 to damage + apply nausea to victim for 2 seconds + play slime attack at location of victim with pitch 1 + send "&cYou have fish slapped!" to victim + + + + {kit.%victim%} is "tank": + {kit.%attacker%} is not "tank": + set damage to damage / 4 + {kit.%attacker%} is "tank": + set damage to damage * 3 + {kit.%attacker%} is "tank": + {kit.%victim%} is not "tank": + set damage to damage / 2 + {kit.%attacker%} is "ninja": + victim's target is attacker: + victim does not have blindness + set damage to damage / 2 + victim has blindness: + set damage to damage * 1.5 + {kit.%victim%} is "fisherman": + set damage to damage / 1.5 + {kit.%victim%} is "archer": + set damage to damage * 1.5 + {kit.%attacker%} is "fisherman": + {kit.%victim%} is "ninja": + set damage to damage * 1.5 + {kit.%victim%} is "lightningmage": + set damage to damage / 1.5 + {kit.%attacker%} is "archer": + {kit.%victim%} is "ninja": + set damage to damage / 1.5 + {kit.%victim%} is "melee": + set damage to damage * 1.5 + {kit.%attacker%} is "melee": + {kit.%victim%} is "necromancer": + set damage to damage * 1.5 + {kit.%victim%} is "archer": + set damage to damage / 1.5 + {kit.%attacker%} is "necromancer": + {kit.%victim%} is "skelemancer": + set damage to damage * 1.5 + {kit.%victim%} is "melee": + set damage to damage / 1.5 + {kit.%attacker%} is "skelemancer": + {kit.%victim%} is "necromancer": + set damage to damage / 1.5 + {kit.%victim%} is "lightningmage": + set damage to damage * 1.5 + {kit.%attacker%} is "lightningmage": + {kit.%victim%} is "skelemancer": + set damage to damage / 1.5 + {kit.%victim%} is "fisherman": + set damage to damage * 1.5 + {kit.%victim%} is "firemage": + set damage to damage * 1.5 + {kit.%attacker%} is "firemage": + {kit.%victim%} is "necromancer": + set damage to damage * 1.5 + {kit.%victim%} is "lightningmage": + set damage to damage / 1.5 + {kit.%attacker%} is "tank": + + {combo.%attacker%} is set: + set {_dif} to difference between {combo.%attacker%} and now + {combo.%attacker%.track} is victim: + {_dif} is less than 1 second: + {modifier.%attacker%} is not set: + set {modifier.%attacker%} to 0 + {modifier.%attacker%} is less than 2: + add 0.25 to {modifier.%attacker%} + add {modifier.%attacker%} to damage + {_dif} is greater than or equal to 1 second: + clear {modifier.%attacker%} + set {combo.%attacker%.track} to victim + set {combo.%attacker%} to now + {combo.%attacker%.track} is not victim: + set {combo.%attacker%.track} to victim + clear {modifier.%attacker%} + set {combo.%attacker%} to now + {combo.%attacker%} is not set: + set {combo.%attacker%} to now + set {combo.%attacker%.track} to victim + + {assists.%victim%::%attacker%} is not set: + attacker is not victim + set {assist.%victim%::%attacker%} to attacker + + set {lasthit.%victim%} to attacker + + + + + + + + damage is greater than victim's health: + cancel event + {kit.%attacker%} is "melee": + apply speed 3 to attacker for 15 seconds + victim is ignited: + extinguish victim + extinguish victim + nullify score of "&3%{kit.%victim%}%" in board of victim + clear {kit.%victim%} + victim has health boost: + remove health boost from victim + victim has nausea: + remove nausea from victim + victim has poison: + remove poison from victim + victim has jump: + remove jump from victim + victim has slowness: + remove slowness from victim + victim has speed: + remove speed from victim + victim has absorption: + remove absorption from victim + victim has wither: + remove wither from victim + victim has blindness: + remove blindness from victim + extinguish victim + heal victim by 10 hearts + {deaths.%victim%.kit} is not set: + set {deaths.%victim%.kit} to 0 + add 1 to {deaths.%victim%.kit} + {kills.%attacker%.kit} is not set: + set {kills.%attacker%.kit} to 0 + add 1 to {kills.%attacker%.kit} + {killstreak.%attacker%} is not set: + set {killstreak.%attacker%} to 0 + add 1 to {killstreak.%attacker%} + {killstreak.%attacker%} is 5: + broadcast "&e%attacker%&c is on a Rampage!" + set {rampage.%attacker%} to true + {killstreak.%attacker%} is 10: + broadcast "&e%attacker%&c is Unstoppable!" + {killstreak.%attacker%} is 15: + broadcast "&e%attacker%&c is Annihilating!" + {killstreak.%attacker%} is 20: + broadcast "&e%attacker%&c is Dominating!" + {killstreak.%attacker%} is 25: + broadcast "&e%attacker%&c is Destroying!" + {killstreak.%attacker%} is 30: + broadcast "&e%attacker%&c is Scary" + {rampage.%victim%} is true: + broadcast "&e%attacker%&a has ended &e%victim%'s&a rampage!" + clear {rampage.%victim%} + nullify score of "&3RAMPAGE" in board of victim + loop all entities: + {owner.zombie.%loop-entity%} is victim: + delete loop-entity + {owner.skeleton.%loop-entity%} is victim: + delete loop-entity + {assists.%victim%::*} is set: + loop {assists.%victim%::*}: + clear {_player} + set {_player} to loop-value parsed as a player + send "&aYou assisted on the kill of &e%victim%" to {_player} + {assist.%{_player}%.kp} is not set: + set {assist.%{_player}%.kp} to 0 + add 1 to {assist.%{_player}%.kp} + + clear {ingame.%victim%} + clear {killstreak.%victim%} + clear {assists.%victim%::*} + + teleport victim to {kit.spawn} + set {_size} to size of {deathmessages.kitpvp::*} + set {_ran} to a random integer between 1 and {_size} + set {_message} to {deathmessages.kitpvp::%{_ran}%} + replace "ATTACKER" in {_message} with "&e%attacker%&c" + replace "VICTIM" in {_message} with "&e%victim%&c" + replace "WEAPON" in {_message} with "&e%name of attacker's tool%&c" + broadcast "&c%{_message}%" + +every 1 second: + loop all players: + loop-player is sneaking: + level progress of loop-player is greater than 0.1: + {kit.%loop-player%} is "ninja" + hide loop-player from all players + set {hiding.%loop-player%} to true + spawn 50 of large smoke data 1 offset with 0, 0, 0 at location of loop-player + spawn 50 of angry villager data 1 offset with 0, 0, 0 at location of loop-player + reduce the loop-player's level progress by 0.1 + level progress of loop-player is less than 0.1: + reveal loop-player to all players + clear {hiding.%loop-player%} + + loop-player is not sneaking: + {hiding.%loop-player%} is set + reveal loop-player to all players + clear {hiding.%loop-player%} + +on death of a player: + clear {kit.%player%} + +on respawn: + teleport player to {kit.spawn} \ No newline at end of file diff --git a/On Server Files/KitPVP/KitPVP/kitpvp.sk b/On Server Files/KitPVP/KitPVP/kitpvp.sk new file mode 100644 index 0000000..fa7ecdb --- /dev/null +++ b/On Server Files/KitPVP/KitPVP/kitpvp.sk @@ -0,0 +1,383 @@ +options: + #startfold @class-chest-stuff + ninjakit: i;leather cap;n;&9&lNinja;l;&7Click to pick the||&eNinja&7 Class|| ||&5Kit Info:||&7You are a ninja with||&7a stone sword. Turn||&7Invisible by holding shift||&7But watch your mana it||&7it is not unlimited!|| ||%{dis.%player%.1}%;c;sudo %player% kits ninja + archerkit: i;bow;n;&9&lArcher;l;&7Click to pick the||&eArcher&7 Class|| ||&5Kit Info:||&7You are an archer||&7with a Punch I bow||&7Keep your distance to||&7to get critical hits!;c;sudo %player% kits archer + meleekit: i;iron helmet;n;&9Melee;l;&7Click to pick the||&eMelee&7 Class|| ||&5Kit Info:||&7Ultimate in up close||&7combat. An iron sword||&7Unrivaled by any other||&7close combat kit;c;sudo %player% kits melee + firemagekit: i;fire charge;n;&9Fire Mage;n;&9&lFire Mage;l;&7Click to pick the||&eFire Mage&7 Class|| ||&5Kit Info:||&7The firemage tosses fireballs||&7at their opponents||&7wreaking havoc with||&7explosions and fire|| ||%{dis.%player%.1}%;c;sudo %player% kits firemage + lightningmagekit: i;nether star;n;&9Lightning Mage;l;&7Click to pick the||&eLightning Mage&7 class|| ||&5Kit Info:||&7Using the power of||&7Lightning, this kit||&7causes large group damage||&7and harnesses the power||&7to teleport;c;sudo %player% kits lightningmage + tankkit: i;gold chestplate;n;&9&lTank;l;&7Click to pick the||&eTank&7 class|| ||&5Kit Info:||&7The tank shows no||&7Weakness, its armor||&7pure, and its paddle||&7heavy, it guarantees||&7longer lives, but fewer||&7kills;c;sudo %player% kits tank + necrokit: i;bone;n;&9&lNecromancer;l;&7Click to pick the ||&eNecromancer&7 class|| ||&5Kit Info:||&7The Necro summons the||&7Dead from beyond to||&7assist in their domination||&7Summoning requires only||&7a little bit of mana||&7and a few drops of your||&7own blood|| ||%{dis.%player%.1}%;c;sudo %player% kits necromancer + fishermankit: i;fish;n;&9&lFisherman;l;&7Click to pick the||&eFisherman&7 class|| ||&5Kit Info:||&7The legendary fisherman||&7Relies on his trusty||&7Big Fish to deal the||&7Blows, and his Rod||&7Old Faithful, to bring||&7the enemy closer.;c;sudo %player% kits fisherman + something: i;wood hoe;n;&9&lSomething;c;sudo %player% kits something + skelemancerkit: i;wither skeleton head;n;&9&lSkele-Mancer;l;&7Click to pick the||&eSkele-Mancer&7 class|| ||&5Kit Info||&7Skelemancers take summoning||&7to a new level with||&7long range combat.||&7Fleshing the field with||&7Skeletons of fallen||&7Opponents, and trusty||&7Bow, with chances for||&7Critical hits at long||&7Range.;c;sudo %player% kits skelemancer + supporterstuff: i;diamond block;n;&9&lMore Kits for Supporters!;l;&7Purchase a Supporter membership||&7To get even more fun||&7kits from &9OBAM&7! + #endfold + #startfold @arena-chest-stuff + killingfieldarena: i;long grass;n;&9&lKilling Fields;l;&7Click to join the||&eKilling Fields&7 arena;c;spawnplayer %player% killingfields + vacantarena: i;glass bottle;n;&9&lVacant;l;&7Click to join||&eVacant&7 arena;c;spawnplayer %player% vacant + showdownarena: i;dead shrub;n;&9&lShowdown;l;&7Click to join||&eShowdown&7 arena;c;spawnplayer %player% showdown + #endfold +#kits + + +variables: + {safety.%player%} = 0 + +on first join: + wait 1 second + teleport player to {kit.spawn} + +on join: + clear {kit.%player%} + clear {ingame.%player%} + clear {board.up.%player%.kp} + teleport player to {kit.spawn} + +on connect: + teleport player to {kit.spawn} + +on disconnect: + clear {kit.%player%} + clear {ingame.%player%} + +command /arena: + trigger: + world is "kitspawnroom": + + {kit.%player%} is not set: + send "&cPlease choose a kit first!" to player + stop + + send "&aOpening menu..." + wait 0.3 seconds + show "s;3;{@vacantarena}" with 1 row named "&9&lOBAM&9 :: Arenas" to player +command /kits []: + + executable by: players and console + trigger: + world is "kitspawnroom" + argument is not set: + + set {dis.%player%.1} to "&eUse this kit for &a25 &eTickets" + show "s;11;{@ninjakit};s;12;{@archerkit};s;13;{@meleekit};s;14;{@firemagekit};s;15;{@lightningmagekit};s;16;{@tankkit};s;17;{@necrokit};s;23;{@fishermankit};s;24;{@skelemancerkit}" with 4 rows named "&9&lOBAM &9:: Kits" to player + {kit.%player%} is set: + send "&cYou already have a kit D:" to player + stop + + set {_arena.run} to true + + argument is "archer": + send "&aYou have picked the &eArcher&a Kit" + set {kit.%player%} to "archer" + + + argument is "ninja": + set {_bal} to player's balance + {_bal} is less than 25: + send "&cYou do not have enough tickets for this!" + stop + remove 25 from player's balance + send "&aYou have purchased the &eNinja&a kit for &e25 Tickets&a!" + send "&aYour current balance is &e%player's balance%" + send "&aYou have picked the &eNinja&a kit!" + set {kit.%player%} to "ninja" + set {ninja.poof.%player%} to true + + argument is "melee": + send "&aYou have picked the &eMelee&a kit" + set {kit.%player%} to "melee" + + argument is "firemage": + set {_bal} to player's balance + {_bal} is less than 25: + send "&cYou do not have enough tickets for this!" + stop + remove 25 from player's balance + send "&aYou have purchased the &eFiremage&a kit for &e25 Tickets&a!" + send "&aYour current balance is &e%player's balance%" + send "&aYou have picked the &eFiremage&a kit!" + set {kit.%player%} to "firemage" + + argument is "tank": + send "&aYou have picked the &eTank&a kit!" + set {kit.%player%} to "tank" + + + argument is "lightningmage": + send "&aYou have picked the &eLightning Mage&a kit!" + set {kit.%player%} to "lightningmage" + + argument is "necromancer": + + set {_bal} to player's balance + {_bal} is less than 25: + send "&cYou do not have enough tickets for this!" + stop + remove 25 from player's balance + send "&aYou have purchased the &eNecromancere&a kit for &e25 Tickets&a!" + send "&aYour current balance is &e%player's balance%" + send "&aYou have picked the &eNecromancer&a kit!" + set {kit.%player%} to "necromancer" + + + argument is "fisherman": + send "&aYou have picked the &eFisherman&a kit!" + set {kit.%player%} to "fisherman" + + argument is "skelemancer": + send "&aYou have picked the &eSkelemancer&a kit!" + set {kit.%player%} to "skelemancer" + + {_arena.run} is true: + send "&aOpening Arena Menu...." to player + wait 1 second + make player execute command "/arena" + +on teleport: + world is "vacant" + {ingame.%player%} is not set + set {spawnsafety.%player%} to now + clear player's inventory + player is on fire: + extinguish player + player has poison: + remove poison from player + player has wither: + remove wither from player + player has health boost: + remove health boost from player + player has jump: + remove jump from player + player has speed: + remove speed from player + player has absorption: + remove absorption from player + player has blindness: + remove blindness from player + player has slowness: + remove slowness from player + player has nausea: + remove nausea from player + +on right click with mushroom soup: + cancel event + player's health is 10: + send "&aYou already have full health!" to player + clear {assits.%player%::*} + stop + remove mushroom soup from player + give player bowl + + add 5 to player's health + +on quit: + player has poison: + remove poison from player + player has wither: + remove wither from player + player has health boost: + remove health boost from player + player has jump: + remove jump from player + player has speed: + remove speed from player + player has absorption: + remove absorption from player + player has blindness: + remove blindness from player + player has slowness: + remove slowness from player + player has nausea: + remove nausea from player + clear {ingame.%player%} + clear {kit.%player%} + clear {killstreak.%player%} +on explode: + cancel event + + + +on xp spawn: + cancel event + + +on damage of a player: + damage cause is suffocation: + cancel event + +every 2 seconds: + + loop all players: + loop-player's world is not "kitspawnroom" + {kit.%loop-player%} is "firemage" or "lightningmage" or "necromancer" or "skelemancer" or "fisherman" or "ninja": + level progress of loop-player is less than 0.9: + increase loop-player's level progress by 0.05 + else: + set loop-player's level progress to 0.99 + + +on respawn: + teleport player to {kit.spawn} + +on death of a player: + victim is a player: + clear drops + teleport victim to {kit.spawn} + clear {last.attacker.%victim%} + clear {kit.%victim%} + clear {ninja.poof.%victim%} + victim has jump: + remove jump from victim + victim has blindness: + remove blindness from victim + victim has health boost: + remove health boost from victim + victim has speed: + remove speed from victim + victim has slowness: + remove slowness from victim + victim has wither: + remove wither from victim + victim has absorption: + remove absorption from victim + victim has poison: + remove poison from victim + clear {killstreak.%victim%} + {last.attacker.%victim%} is not set: + message "&cThe environment got the best of &e%victim%" to all players in victim's world + {last.attacker.%victim%} is set: + set {_size} to size of {deathmessages.kitpvp::*} + set {_temp} to random integer between 1 and {_size} + message "&e%{last.attacker.%victim%}% &chas %{deathmessages.kitpvp::%{_temp}%}% &e%victim% &cwith &b%uncoloured name of {last.attacker.%victim%}'s tool%" to all players in {last.attacker.%victim%}'s world + {last.attacker.%victim%} is not victim: + send "&aYou claim a bounty of &e%{value.%victim%.kit.live}% tickets &afrom &e%victim%" to {last.attacker.%victim%} + add {value.%victim%.kit.live} to {last.attacker.%victim%}'s balance + set {_size2} to size of {assists.%victim%::*} + {_size2} is greater than 1: + loop {assists.%victim%::*}: + {assists.%victim%::%loop-index%} is not {last.attacker.%victim%}: + set {_player} to {assists.%victim%::%loop-index%} + send "&aYou assisted in the death of &e%victim%" to {_player} + send "&aYou split the bounty &e%{_size2}% &aways with others. Your cut is &e%rounded {value.%victim%.kit.live} / {_size2}% &etickets" to {_player} + {assist.%{_player}%.kp} is not set: + set {assist.%{_player}%.kp} to 0 + add 1 to {assist.%{_player}%.kp} + set {_cut} to {value.%victim%.kit.live} / {_size2} + add rounded {_cut} to {_player}'s balance + + + + + + clear drops + set {kitpvp.dead.%player%} to false + +on target: + {kit.%target player%} is not set: + cancel event + {owner.skeleton.%event-entity%} is target player: + cancel event + {owner.zombie.%event-entity%} is target player: + cancel event + +every 1 second: + loop all players: + set loop-player's hunger level to 10 + + + +on drop: + cancel event + + + + +command /dm []: + permission: obam.admin + trigger: + argument 1 is "list": + loop {deathmessages.kitpvp::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + send "%{_count}%..%loop-value%" + stop + argument 1 is "delete": + delete {deathmessages.kitpvp::%argument 2%} + send "&cDeleted.." + stop + send "&aYou have added &e%argument 1%&a to the death message list!" + add argument 1 to {deathmessages.kitpvp::*} + + +command /clearkit : + executable by: console + trigger: + clear {kit.%player-argument%} + player-argument has poison: + remove poison from player-argument + player-argument has wither: + remove wither from player-argument + player-argument has speed: + remove speed from player-argument + player-argument has slowness: + remove slowness from player-argument + player-argument has health boost: + remove health boost from player-argument + player-argument has absorption: + remove absorption from player-argument + player-argument has jump: + remove jump from player-argument + clear {ninja.poof.%player-argument%} + clear player-argument's inventory + +command /revive : + executable by: console or players + permission: obam.admin.kp + trigger: + set {kitpvp.dead.%player-argument%} to false + +command /mapset : + permission: obam.smod + trigger: + send "&aYou have added a spawn point for '&e%argument%&a'" to player + add location of player to {map.%argument%.spawns::*} + + + +command /spawnplayer : + executable by: console + trigger: + set {_size} to size of {map.%argument 2%.spawns::*} + set {_tmp} to random integer between 1 and {_size} + teleport player-argument to {map.%argument 2%.spawns::%{_tmp}%} + +command /clearspawn : + permission: obam.admin.kp + trigger: + clear {map.%argument%.spawns::*} + + + +every 1 second: + loop all players: + set {value.%loop-player%.kit} to {kills.%loop-player%.kit} * {killstreak.%loop-player%} + set {value.%loop-player%.kit} to {value.%loop-player%.kit} / {deaths.%loop-player%.kit} + set {value.%loop-player%.kit} to {value.%loop-player%.kit} + 10 + {value.%loop-player%.kit} is greater than 100: + set {value.%loop-player%.kit} to 100 + {value.%loop-player%.kit} is less than 1: + set {value.%loop-player%.kit} to 1 + set {value.%loop-player%.kit.live} to rounded {value.%loop-player%.kit} + +command /spawnset: + permission: obam.smod + trigger: + set {kit.spawn} to player's location + +command /sudo : + permission: obam.admin + trigger: + make player-argument execute command argument 2 + + \ No newline at end of file diff --git a/On Server Files/KitPVP/KitPVP/lightningmage.sk b/On Server Files/KitPVP/KitPVP/lightningmage.sk new file mode 100644 index 0000000..c49284a --- /dev/null +++ b/On Server Files/KitPVP/KitPVP/lightningmage.sk @@ -0,0 +1,50 @@ +on teleport: + wait 3 ticks + player's world is "vacant" + + + + {kit.%player%} is "lightningmage": + {ingame.%player%} is not set + equip player with all leather armor of unbreaking 10 named "&fLightning Mage's Robes" + dye player's helmet (7, 247, 239) + dye player's chestplate (7, 247, 239) + dye player's leggings (7, 247, 239) + dye player's boots (7, 247, 239) + give player stick of knockback 1 named "&fLightning Wand" + give player 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" + give player 3 splash potions of harming named "&fPain Juice" + apply jump 1 to player for 999 days + set player's level progress to 0.99 + set {ingame.%player%} to true + +on right click with stick: + cancel event + {kit.%player%} is "lightningmage": + player's tool is a stick named "&fLightning Wand" + level progress of player is greater than or equal to 0.1: + strike lightning effect at targeted block + reduce the player's level progress by 0.1 + loop entities in radius 5 of targeted block: + loop-entity is not a player: + make player damage loop-entity by 6 + {kit.%loop-entity%} is set: + create safe explosion of force 2 at location of loop-entity + push loop-entity up with force 1 + make player damage loop-entity by 6 + apply wither to loop-entity for 3 seconds + strike lightning effect at location of loop-entity + +on left click with stick: + cancel event + {kit.%player%} is "lightningmage": + level progress of player is greater than or equal to 0.5: + targeted block is air or glass: + send "&cYou can not go there!" to player + stop + the distance between targeted block and player is less than or equal to 30: + teleport player to block above targeted block + + reduce the player's level progress by 0.5 + stop + send "&cThat is too far!" to player \ No newline at end of file diff --git a/On Server Files/KitPVP/KitPVP/melee.sk b/On Server Files/KitPVP/KitPVP/melee.sk new file mode 100644 index 0000000..e259753 --- /dev/null +++ b/On Server Files/KitPVP/KitPVP/melee.sk @@ -0,0 +1,19 @@ +on teleport: + wait 3 ticks + player's world is "vacant" + + + + {kit.%player%} is "melee": + {ingame.%player%} is not set + clear player's inventory + equip player with all leather armor of unbreaking 10 named "&fMelee Greaves" + dye player's helmet (172, 172, 172) + dye player's chestplate (172, 172, 172) + dye player's leggings (172, 172, 172) + dye player's boots (172, 172, 172) + give player iron sword named "&fBlade of Justice &b[Sharpness I]" + give 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" to player + give 2 snowball named "&fPoison Pills" to player + set {ingame.%player%} to true + diff --git a/On Server Files/KitPVP/KitPVP/necromancer.sk b/On Server Files/KitPVP/KitPVP/necromancer.sk new file mode 100644 index 0000000..419655f --- /dev/null +++ b/On Server Files/KitPVP/KitPVP/necromancer.sk @@ -0,0 +1,82 @@ +on teleport: + wait 3 ticks + player's world is "vacant" + + + {kit.%player%} is "necromancer": + {ingame.%player%} is not set + equip player with all leather armor of unbreaking 10 named "&fNecromancer's Robes" + dye player's helmet (0, 159, 37) + dye player's chestplate (0, 159, 37) + dye player's leggings (0, 159, 37) + dye player's boots (0, 159, 37) + give player blaze rod of knockback 1 named "&fSummoning Rod" + give player stone sword of knockback 1 named "&fSummoner's Trust" + give player 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" + apply speed 1 to player for 999 days + set player's level progress to 0.99 + set {ingame.%player%} to true + +on right click with blaze rod: + {kit.%player%} is "necromancer": + targeted block is glass: + stop + level progress of player is greater than or equal to 0.3: + {zombie.%player%.active} is greater than or equal to 5: + send "&cYou have too many zombies!" to player + stop + spawn a zombie at block above targeted block + set {_zombie.%player%} to spawned zombie + equip {_zombie.%player%} with leather helmet + set name of spawned zombie to "&cNecroSpawn" + make player damage player by 2 + + apply speed 3 to spawned zombie for 999 days + send "&aYou Summon the dead!" to player + set {owner.zombie.%spawned zombie%} to player + {zombie.%player%.active} is not set: + set {zombie.%player%.active} to 0 + add 1 to {zombie.%player%.active} + reduce player's level progress by 0.3 + +on left click with blaze rod: + {kit.%player%} is "necromancer": + + {zombie.%player%.active} is not set: + send "&cYou have no zombies out!" to player + stop + {zombie.%player%.active} is 0: + send "&cYou have no zombies out!" to player + stop + level progress of player is greater than or equal to {zombie.%player%.active} / 10: + loop all zombies: + {owner.zombie.%loop-entity%} is player: + delete loop-entity + make player damage player by {zombie.%player%.active} + reduce player's level progress by {zombie.%player%.active} / 10 + clear {zombie.%player%.active} + send "&aYou call back the dead!" to player + +on damage of a player: + attacker is a zombie: + cancel event + set {_player} to {owner.zombie.%attacker%} + make {_player} damage victim by 2 + +on death of a zombie: + clear drops + +on damage of a zombie: + {kit.%attacker%} is not set: + send "&cYou can not do that!" to attacker + cancel event + stop + + damage is greater than victim's health + cancel event + set {_player} to {owner.zombie.%victim%} + make attacker damage {_player} by 2 + send "&c%attacker% has slain your spawn!" to {_player} + send "&a%{_player}%'s spawn has died to your hand." to attacker + subtract 1 from {zombie.%{_player}%.active} + delete victim \ No newline at end of file diff --git a/On Server Files/KitPVP/KitPVP/ninja.sk b/On Server Files/KitPVP/KitPVP/ninja.sk new file mode 100644 index 0000000..224d0d4 --- /dev/null +++ b/On Server Files/KitPVP/KitPVP/ninja.sk @@ -0,0 +1,32 @@ +on teleport: + wait 3 ticks + player's world is "vacant" + + + {kit.%player%} is "ninja": + {ingame.%player%} is not set + apply speed 3 to player for 999 days + equip player with all leather armor of unbreaking 10 named "&fNinja Cloaks" + dye player's helmet (0, 0, 0) + dye player's chestplate (0, 0, 0) + dye player's leggings (0, 0, 0) + dye player's boots (0, 0, 0) + apply jump 2 to player for 999 days + apply absorption 3 to player for 999 days + give stone sword of unbreaking 10 named "&fSharp Knife" to player + give 3 snowball named "&fBlindness Balls" to player + give 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" to player + give potion of poison named "&fJump Potion" to player + set {ingame.%player%} to true + +on consume: + item is potion of poison named "&fJump Potion": + cancel event + remove potion of poison from player + give glass bottle named "&fEmpty Jump Potion Bottle" to player + remove jump from player + apply jump 5 to player for 10 seconds + wait 10 seconds + remove jump from player + apply jump 2 to player for 999 days + diff --git a/On Server Files/KitPVP/KitPVP/skelemancer.sk b/On Server Files/KitPVP/KitPVP/skelemancer.sk new file mode 100644 index 0000000..b863a7a --- /dev/null +++ b/On Server Files/KitPVP/KitPVP/skelemancer.sk @@ -0,0 +1,93 @@ +on teleport: + wait 3 ticks + player's world is "vacant" + + + {kit.%player%} is "skelemancer": + {ingame.%player%} is not set + equip player with all leather armor of unbreaking 10 named "&fSkelemancer's Robes" + dye player's helmet (124, 2, 205) + dye player's chestplate (124, 2, 205) + dye player's leggings (124, 2, 205) + dye player's boots (124, 2, 205) + give player bone of knockback 1 named "&fSummoning Bone" with lore "&aInstructions:|| ||&5Right Click:||&3Summon a mob at||&3targeted location|| ||&5Left Click:||&3Call back your summoned||&3Mobs." + give player bow of infinity 1 and punch 1 named "&fSummoner's Sidekick" + give player 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" + give player 1 arrow + apply speed 1 to player for 999 days + set player's level progress to 0.99 + set {ingame.%player%} to true + +on right click with a bone: + {kit.%player%} is "skelemancer": + targeted block is glass: + cancel event + level progress of player is greater than or equal to 0.3: + {skeleton.%player%.active} is greater than or equal to 5: + send "&cYou have too many Skeletons!" to player + stop + spawn a wither skeleton at block above targeted block + set {_skeleton.%player%} to spawned wither skeleton + equip {_skeleton.%player%} with leather helmet + set {_skeleton.%player%}'s tool to stone sword + set name of spawned wither skeleton to "&cNecroSpawn" + set {_loc} to block 20 meters above player + spawn 1 of large explode data 1 offset with 0, 0, 0 at {_loc} + make player damage player by 2 + + apply speed 3 to spawned wither skeleton for 999 days + send "&aYou Summon the dead!" to player + set {owner.skeleton.%spawned wither skeleton%} to player + {skeleton.%player%.active} is not set: + set {skeleton.%player%.active} to 0 + add 1 to {skeleton.%player%.active} + reduce player's level progress by 0.3 + +on left click with bone: + + {kit.%player%} is "skelemancer": + {skeleton.%player%.active} is not set: + send "&cYou have no Skeletons out!" to player + stop + {skeleton.%player%.active} is 0: + send "&cYou have no Skeletons out!" to player + stop + level progress of player is greater than or equal to {skeleton.%player%.active} / 10: + loop all wither skeletons: + {owner.skeleton.%loop-entity%} is player: + delete loop-entity + make player damage player by {skeleton.%player%.active} + reduce player's level progress by {skeleton.%player%.active} / 10 + clear {skeleton.%player%.active} + send "&aYou call back the dead!" to player + + + +on damage of a player: + attacker is a wither skeleton: + cancel event + set {_player} to {owner.skeleton.%attacker%} + + {kit.%victim%} is not set: + stop + {kit.%{_player}%} is not set: + stop + make {_player} damage victim by 2 + +on death of a wither skeleton: + clear drops + + +on damage of a wither skeleton: + {kit.%attacker%} is not set: + send "&cYou can not do that!" to attacker + cancel event + stop + damage is greater than victim's health + cancel event + set {_player} to {owner.skeleton.%victim%} + make attacker damage {_player} by 2 + send "&c%attacker% has slain your spawn!" to {_player} + subtract 1 from {skeleton.%{_player}%.active} + send "&a%{_player}%'s spawn has died to your hand." to attacker + delete victim \ No newline at end of file diff --git a/On Server Files/KitPVP/KitPVP/tank.sk b/On Server Files/KitPVP/KitPVP/tank.sk new file mode 100644 index 0000000..e06ea66 --- /dev/null +++ b/On Server Files/KitPVP/KitPVP/tank.sk @@ -0,0 +1,22 @@ +on teleport: + wait 3 ticks + player's world is "vacant" + + + + {kit.%player%} is "tank": + {ingame.%player%} is not set + clear player's inventory + equip player with all leather armor of unbreaking 10 named "&fArmor of Density" + dye player's helmet (255, 255, 0) + dye player's chestplate (255, 255, 0) + dye player's leggings (255, 255, 0) + dye player's boots (255, 255, 0) + give player wood shovel of knockback 1 and unbreaking 10 named "&fTank's Paddle" + give player 5 mushroom soup named "&fMushroom Soup &c[+5 ❤]" + apply slowness 1 to player for 999 days + apply health boost 3 to player for 999 days + give player 5 snowballs named "&fDisabling Bombs" + heal player by 10 hearts + set {ingame.%player%} to true + diff --git a/On Server Files/KitPVP/Perk/hats.g.sk b/On Server Files/KitPVP/Perk/hats.g.sk new file mode 100644 index 0000000..623f92d --- /dev/null +++ b/On Server Files/KitPVP/Perk/hats.g.sk @@ -0,0 +1,136 @@ +on script load: + delete {db_perk.hats::*} + set {db_perk.hats::01.dirt} to "dirt;&3&lDirt Hat;&6Carefully woven together from the finest dirt||&6in all of &3OBAM!;sudo PLAYER hat dirt" + set {db_perk.hats::02.beta} to "iron pressure plate;&3&lBeta Supporter Hat;&6This Special hat is for all members who supported||&6during our beta period and is a thank you from the||&3OBAM &6Staff for those that helped us when we were||&6starting. THANK YOU!;sudo PLAYER hat beta;&6This Special hat is for all members who supported||&6during our beta period and is a thank you from the||&3OBAM &6Staff for those that helped us when we were||&6starting. THANK YOU!|| ||&cThis hat is only available to our Beta Supporters.;sudo PLAYER hat error" + set {db_perk.hats::03.quartz} to "quartz block;&3&lQuartz Hat;&6This hat is crafted from the smoothest quartz||&6found in the hottest part of the Nether!;sudo PLAYER hat quartz;&6This hat is crafted from the smoothest quartz||&6found in the hottest part of the Nether!|| ||&cThis hat is only available to our Supporters.;sudo PLAYER hat error" + set {db_perk.hats::04.cactus} to "cactus;&3&lPrickly Hat;&6Wear this hat when you're feeling a bit....Prickly!;sudo PLAYER hat cactus;&6Wear this hat when you're feeling a bit....Prickly!|| ||&cThis hat must be purchased from the OBAMCraft shop.|| ||&eUse &f/buy &ein the hub to purchase the &3Prickly Hat|| ||&ePrice: &a$2.00;sudo PLAYER hat error" + +command /hatmenu []: + trigger: + loop {db_perk.hats::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lHat Rack" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.hats::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "02.beta": + player does not have permission "obam.beta.hat": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.quartz": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.cactus": + {db_purchase.cactus.%uuid of player%} is not set: + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /hat []: + trigger: + argument 1 is not set: + message "&cPlease use &7/OBAM &cto access your Hat Rack." + stop + argument 1 is "error": + message "&cThis hat is not available to you." + stop + argument 1 is "dirt": + set {_hat} to dirt + argument 1 is "beta": + player has permission "obam.beta.hat": + set {_hat} to iron pressure plate + argument 1 is "quartz": + player has permission "obam.supporter": + set {_hat} to quartz block + argument 1 is "cactus": + {db_purchase.cactus.%uuid of player%} is true: + set {_hat} to cactus + player has permission "obam.smod": + set {_hat} to cactus + send "&aYou now have a hat :D" to player + name of player's helmet is "hat": + set player's helmet to {_hat} + set name of player's helmet to "hat" + stop + player doesn't have space for player's helmet: + send "&cYour inventory is full :(" to player + stop + give player's helmet to player + set player's helmet to {_hat} + set name of player's helmet to "hat" + +command /hatadd : + permission: obam.admin + trigger: + add arg 1 to {hat.items.list::*} + +command /hatshow: + permission: obam.admin + trigger: + loop {hat.items.list::*}: + send "%loop-value%" to player + +every 0.3 seconds: + loop all players: + loop-player has anything named "hat": + remove anything named "hat" from loop-player + send "&cWhy did you have a hat in your pocket?" to loop-player + +on drop: + name of event-item is "hat": + cancel event + +on place: + name of player's tool is "hat": + cancel event + +command /hattoggle: + permission: obam.mod + trigger: + {hat.off.%player%} is not set: + set {hat.off.%player%} to true + send "&aYou have turned off your hat" to player + stop + {hat.off.%player%} is false: + set {hat.off.%player%} to true + send "&aYou have turned off your hat" to player + stop + {hat.off.%player%} is true: + set {hat.off.%player%} to false + send "&aYou have turned on your hat" to player + stop + +#staff hats constant +every 1 second: + loop all players: + set {_bypass} to false + {hat.off.%loop-player%} is true: + set {_bypass} to true + {_bypass} is false: + loop-player is "ISMOOCH": + set loop-player's helmet to command block named "&d&lSmooch's Sassy Hat" + loop-player is "Electric_Hamster": + set loop-player's helmet to sponge named "&b&lThe Hamster Hat" \ No newline at end of file diff --git a/On Server Files/KitPVP/Perk/hitsounds.g.sk b/On Server Files/KitPVP/Perk/hitsounds.g.sk new file mode 100644 index 0000000..f38632f --- /dev/null +++ b/On Server Files/KitPVP/Perk/hitsounds.g.sk @@ -0,0 +1,336 @@ +on script load: + delete {db_perk.hit.class::*} + delete {db_perk.hit.hand::*} + delete {db_perk.hit.sword::*} + delete {db_perk.hit.axe::*} + delete {db_perk.hit.pickaxe::*} + delete {db_perk.hit.bow::*} + delete {db_perk.hit.rod::*} + + set {db_perk.hit.class::01.hand} to "stone button;&3Punch Sounds;&6Click to modify the sound you make when you||&6attack with your fists.;sudo PLAYER hitmenuchange hand;&6Click to modify the sound you make when you||&6attack with your fists.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::02.sword} to "iron sword;&3Sword Sounds;&6Click to modify the sound you make when you||&6attack with a sword.;sudo PLAYER hitmenuchange sword;&6Click to modify the sound you make when you||&6attack with a sword.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::03.axe} to "iron axe;&3Axe Sounds;&6Click to modify the sound you make when you||&6attack with an axe.;sudo PLAYER hitmenuchange axe;&6Click to modify the sound you make when you||&6attack with an axe.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::04.pickaxe} to "iron pickaxe;&3Pickaxe Sounds;&6Click to modify the sound you make when you||&6attack with a pickaxe.;sudo PLAYER hitmenuchange pickaxe;&6Click to modify the sound you make when you||&6attack with a pickaxe.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::05.bow} to "bow;&3Bow Sounds;&6Click to modify the sound you make when you||&6attack with a bow.;sudo PLAYER hitmenuchange bow;&6Click to modify the sound you make when you||&6attack with a bow.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::06.rod} to "fishing rod;&3Fishing Rod Sounds;&6Click to modify the sound you make when you||&6attack with a fishing rod.;sudo PLAYER hitmenuchange rod;&6Click to modify the sound you make when you||&6attack with a fishing rod.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::07.air} to "air" + set {db_perk.hit.class::08.air} to "air" + set {db_perk.hit.class::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your player.;sudo PLAYER hitsoundclear PLAYER" + + set {db_perk.hit.hand::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound hand note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound hand arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound hand anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound hand chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound hand click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound hand level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound hand villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::08.air} to "air" + set {db_perk.hit.hand::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound hand clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + + set {db_perk.hit.sword::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound sword note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound sword arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound sword anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound sword chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound sword click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound sword level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound sword villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::08.air} to "air" + set {db_perk.hit.sword::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound sword clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + + set {db_perk.hit.axe::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound axe note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound axe arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound axe anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound axe chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound axe click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound axe level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound axe villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::08.air} to "air" + set {db_perk.hit.axe::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound axe clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + + set {db_perk.hit.pickaxe::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound pickaxe note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound pickaxe arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound pickaxe anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound pickaxe chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound pickaxe click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound pickaxe level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound pickaxe villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::08.air} to "air" + set {db_perk.hit.pickaxe::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound pickaxe clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + + set {db_perk.hit.bow::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound bow note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound bow arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound bow anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound bow chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound bow click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound bow level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound bow villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::08.air} to "air" + set {db_perk.hit.bow::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound bow clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + + set {db_perk.hit.rod::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound rod note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound rod arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound rod anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound rod chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound rod click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound rod level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound rod villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::08.air} to "air" + set {db_perk.hit.rod::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound rod clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + +command /hitclassmenu: + trigger: + loop {db_perk.hit.class::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lHit Sound Classes" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.hit.class::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.hand": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.sword": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.axe": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.pickaxe": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "05.bow": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "06.rod": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /hitmenuchange []: + trigger: + argument 1 is set: + send "&aBringing up menu..." + wait 0.5 seconds + make player execute command "/hitmenu %argument 1%" + +command /hitmenu []: + trigger: + argument 1 is not set: + message "&cPlease use &7/OBAM &cto access your Hit Menu." + stop + argument 1 is "error": + message "&cThis hit class is not available to you." + stop + set {_type} to argument 1 + loop {db_perk.hit.%{_type}%::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lHit Sound Classes" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.hit.%{_type}%::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.note": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.arrow": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.anvil": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.chest": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "05.click": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "06.level": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "07.villager": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "08.clear": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + set {_thing1} to loop-index parsed as text + set {_thing2::*} to {_thing1} split at "." + set {_slot} to {_thing2::1} parsed as an integer + set {_slot} to {_slot} - 1 + format slot {_slot} of player with {_what} to be unstealable + format slot {_slot} of player with {_what} to close then run {_command} + +command /hitsound [] []: + trigger: + argument 1 is not set: + message "&cPlease use &7/OBAM &cto access your Hit Menu." + stop + argument 2 is "error": + message "&cThis hit sound is not available to you." + stop + set {_what} to argument 1 + set {_sound} to argument 2 + argument 2 is "clear": + clear {hit.%{_what}%.%player%} + send "&aAttack sounds cleared!" + stop + set {hit.%{_what}%.%player%} to "%{_sound}%" + send "&aAttack sound set to &e%{_sound}%!" + +on damage: + {hit.%attacker%} is set: + delete {hit.%attacker%} + attacker's tool is air: + set {_what} to "hand" + attacker's tool is a sword: + set {_what} to "sword" + attacker's tool is an axe: + set {_what} to "axe" + attacker's tool is a pickaxe: + set {_what} to "pickaxe" + attacker's tool is a bow: + set {_what} to "bow" + attacker's tool is a fishing rod: + set {_what} to "rod" + {hit.%{_what}%.%attacker%} is set: + {hit.%{_what}%.%attacker%} is "note": + chance of 14%: + play note bass at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 16%: + play note piano at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 20%: + play note bass drum at location of attacker with pitch 1 + set {_play} to true + chance of 25%: + play note sticks at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 33%: + play note bass guitar at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 50%: + play note snare drum at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play note pling at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "arrow": + chance of 50%: + play shoot arrow at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play arrow hit at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "chest": + chance of 50%: + play chest close at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play chest close at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "anvil": + chance of 33%: + play anvil break at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 50%: + play anvil land at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play anvil use at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "click": + play click at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "level": + chance of 50%: + play level up at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play orb pickup at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "villager": + chance of 16%: + play villager yes at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 20%: + play villager no at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 25%: + play villager death at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 33%: + play villager haggle at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 50%: + play villager idle at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play villager hit at location of attacker with pitch 1 + +command /hitsoundclear : + trigger: + delete {hit.hand.%argument 1%} + delete {hit.sword.%argument 1%} + delete {hit.axe.%argument 1%} + delete {hit.pickaxe.%argument 1%} + delete {hit.bow.%argument 1%} + delete {hit.rod.%argument 1%} + message "&2All of your hit sounds have been cleared." \ No newline at end of file diff --git a/On Server Files/KitPVP/Perk/otam.g.sk b/On Server Files/KitPVP/Perk/otam.g.sk new file mode 100644 index 0000000..1480de2 --- /dev/null +++ b/On Server Files/KitPVP/Perk/otam.g.sk @@ -0,0 +1,142 @@ +every 1 second: + + set {_hold} to now + + {db_time.extend.tam} is less than now: + + clear {db_tam.bonus} + set {db_current.bonus} to false + clear {db_time.extend.tam} + clear {alert.tam.lastminute} + broadcast "&3&l۝TAM: &dTAM Bonus has Ended!" + execute console command "crossmessage &3&l۝TAM: &dTAM Bonus has Ended!" + + set {_diff} to difference between {db_time.extend.tam} and now + + {_diff} is less than 15 minutes: + + {alert.tam.lastminute} is not set: + set {alert.tam.lastminute} to true + + broadcast "&3&l۝TAM: &dLess than 15 minutes remaining of TAM Bonus at &e%{db_tam.bonus}%&d!" + execute console command "crossmessage &3&l۝TAM: &dLess than 15 minutes remaining of TAM Bonus at &e%{db_tam.bonus}%&d!" + + +command /tamextended : + permission: obam.admin + trigger: + + {db_time.extend.tam} is not set: + set {db_time.extend.tam} to now + {db_tamstats.time.%argument 2%} is not set: + set {db_tamstats.time.%argument 2%} to 0 + + #Not meant to be a real option.. just for debugging + arg 1 is 5: + + add 5 minutes to {db_time.extend.tam} + add 5 to {db_tamstats.time.%argument 2%} + + arg 1 is 30: + + add 30 minutes to {db_time.extend.tam} + add 30 to {db_tamstats.time.%argument 2%} + + arg 1 is 60: + + add 1 hour to {db_time.extend.tam} + add 60 to {db_tamstats.time.%argument 2%} + + arg 1 is 90: + + add 90 minutes to {db_time.extend.tam} + add 90 to {db_tamstats.time.%argument 2%} + + arg 1 is 120: + + add 2 hours to {db_time.extend.tam} + add 120 to {db_tamstats.time.%argument 2%} + + broadcast "&3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e%argument 1% Minutes&d!" + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e%argument 1% Minutes&d!" + + set {_diff} to difference between {db_time.extend.tam} and now + + broadcast "&3&l۝TAM: &e%{_diff}% &dremaining!" + execute console command "crossmessage &3&l۝TAM: &e%{_diff}% &dremaining!" + broadcast "&3&l۝TAM: &dUse &e/tam &dfor more details!" + execute console command "crossmessage &3&l۝TAM: &dUse &e/tam &dfor more details!" + clear {alert.tam.lastminute} + + set {db_current.bonus} to true + {db_tam.bonus} is not set: + + set {db_tam.bonus} to 0.1 + + {db_tamstats.bonus.%argument 2%} is not set: + set {db_tamstats.bonus.%argument 2%} to 0 + + add 0.1 to {db_tamstats.bonus.%argument 2%} + + broadcast "&3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by &e0.1&d!" + broadcast "&3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d! " + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by 0.1! The TAM Bonus is now at &e%{db_tam.bonus}%&d! " + execute console command "crossmessage &3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d! " + +command /tambonus : + permission: obam.admin + trigger: + + {db_tamstats.bonus.%argument 2%} is not set: + set {db_tamstats.bonus.%argument 2%} to 0 + + {db_tam.bonus} is not set: + set {db_tam.bonus} to 0 + + add argument 1 to {db_tam.bonus} + add argument 1 to {db_tamstats.bonus.%argument 2%} + + broadcast "&3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by &e%argument 1%&d!" + broadcast "&3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d!" + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by &e%argument 1%&d! The TAM Bonus is now at &e%{db_tam.bonus}%&d!" + execute console command "crossmessage &3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d!" + + + {db_time.extend.tam} is not set: + set {db_time.extend.tam} to now + + {db_tamstats.time.%argument 2%} is not set: + set {db_tamstats.time.%argument 2%} to 0 + + add 60 to {db_tamstats.time.%argument 2%} + + add 1 hour to {db_time.extend.tam} + clear {alert.tam.lastminute} + broadcast "&3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e60 Minutes&d!" + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e60 Minutes&d!" + + set {_diff} to difference between {db_time.extend.tam} and now + + broadcast "&3&l۝TAM: &e%{_diff}% &dremaining!" + execute console command "crossmessage &3&l۝TAM: &e%{_diff}% &dremaining!" + broadcast "&3&l۝TAM: &dUse &e/tam &dfor more details!" + execute console command "crossmessage &3&l۝TAM: &dUse &e/tam &dfor more details!" + + + + +# Debugging Clear command +command /tambonusclear: + permission: obam.admin + trigger: + + clear {db_tam.bonus} + set {db_current.bonus} to false + clear {db_time.extend.tam} + clear {alert.tam.lastminute} + + send "&3&l۝TAM: &dTAM Bonus Cleared" to console + send "&3&l۝TAM: &dTAM Bonus Cleared" + + + \ No newline at end of file diff --git a/On Server Files/KitPVP/Perk/perks.g.sk b/On Server Files/KitPVP/Perk/perks.g.sk new file mode 100644 index 0000000..112c44a --- /dev/null +++ b/On Server Files/KitPVP/Perk/perks.g.sk @@ -0,0 +1,101 @@ +on script load: + delete {db_perk.main::*} + set {db_perk.main::01.hats} to "iron pressure plate;&3Hat Rack;&6Gives you access to your virtual Hat Rack.;sudo PLAYER obam hatmenu" + set {db_perk.main::02.pets} to "lead;&3Pet Stable;&6Opens up your Pet Stable to summon your pets.;sudo PLAYER obam petmenu" + set {db_perk.main::03.trails} to "arrow;&3Trails Menu;&6Opens up your Projectile Trails Menu.;sudo PLAYER obam trailmenu" + set {db_perk.main::04.splash} to "cobweb;&3Splash Menu;&6Opens up your Splash Menu.;sudo PLAYER obam splashmenu" + set {db_perk.main::05.hit} to "jukebox;&3Hit Sound Menu;&6Opens up your Hit Sound Menu.;sudo PLAYER obam hitclassmenu" + set {db_perk.main::06.horse} to "horse spawn egg;&3Horse Changer Upper;&6Want to Skellify of Zombify your ride?;sudo PLAYER obam horsemenu" + set {db_perk.main::07.blank} to "air" + set {db_perk.main::08.shop} to "emerald;&3Shop;&6Opens up the Shop Menu.;sudo PLAYER obam shop" + set {db_perk.main::09.ci} to "command block;&3Custom Items Menu;&6Opens the Custom Item menu to access items.;sudo PLAYER obam ci" + +command /obam []: + permission: obam.free + trigger: + argument 1 is not set: + loop {db_perk.main::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lOBAM Perks and Shop Menu" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.main::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "07.ci": + player does not have permission "obam.smod": + clear {_what} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + loop-index is "07.ci": + player does not have permission "obam.smod": + clear {_what} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + argument 1 is set: +# argument 1 is "hatmenu": +# "%player's world%" contains "taco": +# message "&cYou can not use that here." +# stop + argument 1 is "petmenu": + "%player's world%" is "kitspawnroom" or "vacant": + message "&cYou can not use that here." + stop + "%player's world%" contains "cart": + message "&cYou can not use that here." + stop +# argument 1 is "trailmenu": +# "%player's world%" contains "taco": +# message "&cYou can not use that here." +# stop +# argument 1 is "splashmenu": +# "%player's world%" contains "taco": +# message "&cYou can not use that here." +# stop +# argument 1 is "hitclassmenu": +# "%player's world%" contains "taco": +# message "&cYou can not use that here." +# stop + argument 1 is "horsemenu": + "%player's world%" is "Death-hub", "skyworld", "kitspawnroom" or "vacant": + message "&cYou can not use that here." + stop + "%player's world%" contains "taco": + message "&cYou can not use that here." + stop + argument 1 is "shop": + "%player's world%" is "Death-hub", "skyworld", "kitspawnroom" or "vacant": + message "&cYou can not use that here." + stop + "%player's world%" contains "taco": + message "&cYou can not use that here." + stop + argument 1 is "ci": + "%player's world%" is "Death-hub", "skyworld", "kitspawnroom" or "vacant": + message "&cYou can not use that here." + stop + "%player's world%" contains "taco": + message "&cYou can not use that here." + stop + send "&aBringing up menu..." + wait 0.5 seconds + make player execute command "/%argument 1%" + +command /sudo : + permission: obam.admin + trigger: + make argument 1 execute argument 2 \ No newline at end of file diff --git a/On Server Files/KitPVP/Perk/pets.g.sk b/On Server Files/KitPVP/Perk/pets.g.sk new file mode 100644 index 0000000..1833dcf --- /dev/null +++ b/On Server Files/KitPVP/Perk/pets.g.sk @@ -0,0 +1,190 @@ +on script load: + delete {db_perk.pets::*} + set {db_perk.pets::01.ismooch} to "sheep spawn egg;&3iSmooch;&6The sassiest sheep in all the lands!;sudo PLAYER pet ismooch" + set {db_perk.pets::02.bruswain} to "bat spawn egg;&3BruSwain;&6This lovable bat lost his parents at a||&6young age. Thank you for taking care||&6of him!;sudo PLAYER pet bruswain;bat spawn egg;&3BruSwai&6This lovable bat lost his parents at a||&6young age. Thank you for taking care||&6of him!|| ||&cThis pet is only available to our Beta Supporters.;sudo PLAYER pet error" + set {db_perk.pets::03.sparky} to "creeper spawn egg;&3Sparky;&6While this creeper appears to have a||&6dangerously electrifying personality, we||&6promise he’s completely safe!;sudo PLAYER pet sparky;creeper spawn egg;&3Sparky;&6While this creeper appears to have a||&6dangerously electrifying personality, we||&6promise he’s completely safe!|| ||&cThis pet is only available to our Supporters.;sudo PLAYER pet error" + set {db_perk.pets::04.bacon} to "pig spawn egg;&3Bacon;&6Rescued from the final stages of the||&6slaughter house, this pig is extremely||&6grateful for your love and kindness!;sudo PLAYER pet bacon;pig spawn egg;&3Baco&6Rescued from the final stages of the||&6slaughter house, this pig is extremely||&6grateful for your love and kindness!|| ||&cThis pet must be purchased from the OBAMCraft shop.|| ||&eUse &f/buy &ein the hub purchase &3Bacon|| ||&ePrice: &a$5.00;sudo PLAYER pet error" + set {db_perk.pets::05.blank} to "air" + set {db_perk.pets::06.blank} to "air" + set {db_perk.pets::07.lead} to "lead;&3Leash;&6Pets getting out of control? Click this||&6to attach a lead to all of your||&6summoned pets!;sudo PLAYER pet lead" + set {db_perk.pets::08.blank} to "air" + set {db_perk.pets::09.clear} to "fire;&3Clear;&6Click to clear all summoned pets!;sudo PLAYER pet clear" + +command /petmenu: + trigger: + loop {db_perk.pets::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lPet Stable" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.pets::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "02.bruswain": + player does not have permission "obam.beta.hat": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.sparky": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.bacon": + {db_purchase.bacon.%uuid of player%} is not set: + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +every 1 second: + loop all entities: + loop-entity is sheep or bat or powered creeper or pig: + name of loop-entity is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon": + spawn 4 particle heart offset by 1, 1, 1 at location of loop-entity + {owner.%loop-entity%} is not set: + kill loop-entity + distance between location of loop-entity and location of {owner.%loop-entity%} is greater than 20: + teleport loop-entity to location of {owner.%loop-entity%} + +on damage of sheep or bat or powered creeper or pig: + name of victim is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon": + cancel event + +on quit: + kill {pets.%player%} + clear {pets.%player%} + loop {pets.%player%::*}: + clear {owner.%loop-value%} + kill loop-value + clear {pets.%player%::*} + stop + +command /pet []: + trigger: + world is "kitpvpkillingfields": + send "&cYou can not do that here" to player + stop + argument is not set: + message "&cPlease use &7/OBAM &cto access your Pet Stable." + stop + argument is "error": + message "&cThis pet is not available to you." + stop + argument is "lead": + loop {pets.%player%::*}: + teleport loop-value to location of player + make player leash loop-value + stop + argument is "clear": + kill {pets.%player%} + clear {pets.%player%} + loop {pets.%player%::*}: + kill loop-value + clear {owner.%loop-value%} + clear {pets.%player%::*} + stop + {pets.%player%} is set: + player does not have permission "obam.supporter": + send "&cYou can only have one pet at a time!" to player + stop + size of {pets.%player%::*} is 5: + send "&cYou can only have 5 pets at a time!" to player + stop + argument is "ISMOOCH": + spawn sheep at location of player + set name of spawned sheep to "&aISMOOCH" + set color of spawned sheep to pink + make player leash spawned sheep + set {pets.%player%} to spawned sheep + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + argument is "BruSwain": + player has permission "obam.beta.hat": + spawn bat at location of player + set name of spawned bat to "&aBru Swain" + make player leash spawned bat + set {pets.%player%} to spawned bat + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + send "&cThis is for beta supporters only!" to player + argument is "Sparky": + player has permission "obam.supporter": + spawn powered creeper at location of player + set name of spawned powered creeper to "&aSparky" + make player leash spawned powered creeper + set {pets.%player%} to spawned powered creeper + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + send "&cYou must be a supporter to do this!" to player + argument is "bacon": + {db_purchase.bacon.%uuid of player%} is true: + spawn pig at location of player + set name of spawned pig to "&aBacon" + make player leash spawned pig + set {pets.%player%} to spawned pig + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + player has permission "obam.smod": + spawn pig at location of player + set name of spawned pig to "&aBacon" + make player leash spawned pig + set {pets.%player%} to spawned pig + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + send "&cYou must purchase this pet on the online store!" + stop + argument is "dragon": + send "&cI bet you wish you could...." to player + stop + send "&cThat is not an option!" to player + +on explosion prime: + entity is powered creeper: + name of entity is "&aSparky": + cancel event + +on death of a sheep or a bat or a powered creeper or a pig: + name of victim is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon" + clear drops + +on right click on a sheep or a bat or a powered creeper or a pig: + name of target is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon": + cancel event + +on right click with wheat on sheep: + name of event-entity is "&aISMOOCH" + cancel event + send "&cYou can not mate pets D:" to event-player + +on right click with carrot on sheep: + name of event-entity is "&aBacon" + cancel event + send "&cYou can not mate pets D:" to event-player + +on right click with shears on sheep: + name of event-entity is "&aISMOOCH" + cancel event + send "&cYou can not shear pets!" to event-player diff --git a/On Server Files/KitPVP/Perk/splash.g.sk b/On Server Files/KitPVP/Perk/splash.g.sk new file mode 100644 index 0000000..c587a4c --- /dev/null +++ b/On Server Files/KitPVP/Perk/splash.g.sk @@ -0,0 +1,214 @@ +on script load: + delete {db_perk.splash::*} + set {db_perk.splash::01.heart} to "red dye;&3Heart Particles;&6Click to enable a heart splash!;sudo PLAYER splash heart;red dye;&3Heart Particles;&6Click to enable a heart splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::02.flame} to "fire;&3Flame Particles;&6Click to enable a flame splash!;sudo PLAYER splash flame;fire;&3Flame Particles;&6Click to enable a flame splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::03.reddust} to "magma cream;&3Unstable Gas Particles;&6Click to enable an unstable gas splash!;sudo PLAYER splash reddust;magma cream;&3Unstable Gas Particles;&6Click to enable an unstable gas splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::04.smoke} to "charcoal;&3Dark Smoke Particles;&6Click to enable a dark smoke splash!;sudo PLAYER splash smoke;charcoal;&3Dark Smoke Particles;&6Click to enable a dark smoke splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::05.waterdrip} to "water;&3Water Drip Particles;&6Click to enable a water drip splash!;sudo PLAYER splash waterdrip;water;&3Water Drip Particles;&6Click to enable a water drip splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::06.lavadrip} to "lava;&3Lava Drip Particles;&6Click to enable a lava drip splash!;sudo PLAYER splash lavadrip;lava;&3Lava Drip Particles;&6Click to enable a lava drip splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::07.slime} to "slimeball;&3Slime Particles;&6Click to enable a slime splash!;sudo PLAYER splash slime;slimeball;&3Slime Particles;&6Click to enable a slime splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::08.note} to "jukebox;&3Music Notes Particles;&6Click to enable a music note splash!;sudo PLAYER splash note;jukebox;&3Music Notes Particles;&6Click to enable a music note splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::09.happy} to "villager spawn egg;&3Villager Particles “Happy”;&6Click to enable a happy villager splash!;sudo PLAYER splash happy;villager spawn egg;&3Villager Particles “Happy”;&6Click to enable a happy villager splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::10.angry} to "villager spawn egg;&3Villager Particles “Angry”;&6Click to enable a angry villager splash!;sudo PLAYER splash angry;villager spawn egg;&3Villager Particles “Angry”;&6Click to enable a angry villager splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::11.explode} to "tnt;&3Explosion Smoke Particles;&6Click to enable a explosion smoke splash!;sudo PLAYER splash explode;tnt;&3Explosion Smoke Particles;&6Click to enable a explosion smoke splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::12.snow} to "snow block;&3Snowflake Particles;&6Click to enable a snowflake splash!;sudo PLAYER splash snow;snow block;&3Snowflake Particles;&6Click to enable a snowflake splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::13.portal} to "nether portal;&3Nether Portal Particles;&6Click to enable a nether portal splash!;sudo PLAYER splash portal;nether portal;&3Nether Portal Particles;&6Click to enable a nether portal splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::14.cloud} to "bonemeal;&3Cloud Particles;&6Click to enable a cloud splash!;sudo PLAYER splash cloud;bonemeal;&3Cloud Particles;&6Click to enable a cloud splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::15.bubble} to "water bottle;&3Bubble Particles;&6Click to enable a bubble splash!;sudo PLAYER splash bubble;water bottle;&3Bubble Particles;&6Click to enable a bubble splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::16.blank} to "air" + set {db_perk.splash::17.blank} to "air" + set {db_perk.splash::18.clear} to "glass;&3Clear Particles;&6Click to clear your splash!;sudo PLAYER splash clear;glass;&3Clear Particles;&6Click to clear your splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + +command /splashmenu: + trigger: + loop {db_perk.splash::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lSplash Menu" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.splash::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.heart": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.flame": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.reddust": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.smoke": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "05.waterdrip": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "06.lavadrip": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "07.slime": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "08.note": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "09.happy": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "10.angry": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "11.explode": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "12.snow": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "13.portal": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "14.cloud": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "15.bubble": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "16.clear": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /splash []: + trigger: + argument is not set: + message "&cPlease use &7/OBAM &cto access the Splash Menu." + stop + argument is "error": + message "&cThis splash is not available to you." + stop + player has permission "obam.supporter": + argument is "heart": + set {splash.%player%} to "heart" + send "&aYou have enabled a &eHeart Splash&a!" + argument is "flame": + set {splash.%player%} to "flame" + send "&aYou have enabled a &eFlame Splash&a!" + argument is "reddust": + set {splash.%player%} to "reddust" + send "&aYou have enabled an &eUnstable Gas Splash&a!" + argument is "smoke": + set {splash.%player%} to "smoke" + send "&aYou have enabled a &eDark Smoke Splash&a!" + argument is "waterdrip": + set {splash.%player%} to "waterdrip" + send "&aYou have enabled a &eWater Drip Splash&a!" + argument is "lavadrip": + set {splash.%player%} to "lavadrip" + send "&aYou have enabled a &eLava Drip Splash&a!" + argument is "slime": + set {splash.%player%} to "slime" + send "&aYou have enabled a &eSlime Splash&a!" + argument is "note": + set {splash.%player%} to "note" + send "&aYou have enabled a &eMusic Note Splash&a!" + argument is "happy": + set {splash.%player%} to "happy" + send "&aYou have enabled a &eHappy Villager Splash&a!" + argument is "angry": + set {splash.%player%} to "angry" + send "&aYou have enabled an &eAngry Villager Splash&a!" + argument is "explode": + set {splash.%player%} to "explode" + send "&aYou have enabled an &eExplosion Smoke Splash&a!" + argument is "snow": + set {splash.%player%} to "snow" + send "&aYou have enabled a &eSnowflake Splash&a!" + argument is "bubble": + set {splash.%player%} to "bubble" + send "&aYou have enabled a &eBubble Splash&a!" + argument is "portal": + set {splash.%player%} to "portal" + send "&aYou have enabled a &eNether Portal Splash&a!" + argument is "cloud": + set {splash.%player%} to "cloud" + send "&aYou have enabled a &eCloud Splash&a!" + argument is "clear": + clear {splash.%player%} + send "&aYou have disabled your splash!" + +every 5 seconds: + loop all players: + clear {_amt} + loop-player is not sneaking + loop-player is sprinting: + set {_amt} to 100 + {_amt} is not set: + set {_amt} to 50 + {splash.%loop-player%} is set: + {splash.%loop-player%} is "bubble": + spawn 500 particle bubble offset by 2, 2, 2 at location of loop-player + {splash.%loop-player%} is "cloud": + spawn {_amt} particle cloud offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "heart": + spawn {_amt} particle heart offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "flame": + spawn {_amt} particle flame offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "reddust": + spawn {_amt} particle red dust offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "smoke": + spawn {_amt} particle large smoke offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "note": + spawn {_amt} particle note offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "lavadrip": + spawn {_amt} particle drip lava offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "waterdrip": + spawn {_amt} particle drip water offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "slime": + spawn {_amt} particle slime offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "happy": + spawn {_amt} particle happy villager offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "angry": + spawn {_amt} particle angry villager offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "explode": + spawn {_amt} particle large explode offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "snow": + spawn {_amt} particle snow shovel offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "portal": + spawn {_amt} particle portal offset by 1, 1, 1 at location of loop-player \ No newline at end of file diff --git a/On Server Files/KitPVP/Perk/suphorse.g.sk b/On Server Files/KitPVP/Perk/suphorse.g.sk new file mode 100644 index 0000000..da5685c --- /dev/null +++ b/On Server Files/KitPVP/Perk/suphorse.g.sk @@ -0,0 +1,70 @@ +on script load: + delete {db_perk.suphorse::*} + set {db_perk.suphorse::01.zombify} to "zombie spawn egg;&3Zombify your ride!;&6Feel like roaming the plains on your Zombified Horse?;sudo PLAYER suphorse zombify;zombie spawn egg;&3Zombify your ride!;&6Feel like roaming the plains on your Zombified Horse?|| ||&cThis ability is only available to our Supporters.;sudo PLAYER suphorse error" + set {db_perk.suphorse::02.skellify} to "skeleton spawn egg;&3Skellify your ride!;&6Feel like roaming the deserts on your Skellified Horse?;sudo PLAYER suphorse skellify;skeleton spawn egg;&3Skellify your ride!;&6Feel like roaming the deserts on your Skellified Horse?|| ||&cThis ability is only available to our Supporters.;sudo PLAYER suphorse error" + +command /horsemenu: + trigger: + loop {db_perk.suphorse::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lHorse O' Matic" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.suphorse::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.zombify": + player does not have permission "obam.beta.hat": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.skellify": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /suphorse []: + trigger: + player is not riding: + send "&cYou must be riding a horse to do this!" + stop + player's vehicle is not a horse: + send "&cYou must be riding a horse to do this!" + stop + argument is not set: + message "&cPlease use &7/OBAM &cto access your modify your horse." + stop + argument is "error": + message "&cThis ability is not available to you." + stop + "%player's world%" is "world": + set {_y} to y-coordinate of player + set {_x} to x-coordinate of player + set {_z} to z-coordinate of player + argument is "zombify": + execute console command "summon EntityHorse %{_x}% %{_y}% %{_z}% {Type:3,Tame:1}" + argument is "skellify": + execute console command "summon EntityHorse %{_x}% %{_y}% %{_z}% {Type:4,Tame:1}" + delete player's vehicle + stop + message "&cThis can only be used in the Regular World." \ No newline at end of file diff --git a/On Server Files/KitPVP/Perk/tam.g.sk b/On Server Files/KitPVP/Perk/tam.g.sk new file mode 100644 index 0000000..303d62b --- /dev/null +++ b/On Server Files/KitPVP/Perk/tam.g.sk @@ -0,0 +1,71 @@ +every 1 minute: + {db_tam.modifier} is not set: + set {db_tam.modifier} to 1 + set {_add} to {db_tam.modifier} + #OTAM Hook + {db_tam.bonus} is set: + add {db_tam.bonus} to {_add} + loop all players: + add {_add} to loop-player's balance + {session.tam.%loop-player%} is not set: + set {session.tam.%loop-player%} to 0 + add {_add} to {session.tam.%loop-player%} + {db_total.tam.%uuid of loop-player%} is not set: + {db_total.tam.%loop-player%} is set: + set {db_total.tam.%uuid of loop-player%} to {db_total.tam.%loop-player%} + else: + set {db_total.tam.%uuid of loop-player%} to 0 + add {_add} to {db_total.tam.%uuid of loop-player%} + {db_total.tam} is not set: + set {db_total.tam} to 0 + add {_add} to {db_total.tam} + {db_total.reg} is not set: + set {db_total.reg} to 0 + add {_add} to {db_total.reg} + +command /tam: + permission: obam.free + trigger: + send "&aTotal Tickets earned with -TAM-:" + send "&e%{db_total.tam.%uuid of player%}%" + send "&aTotal this session:" + send "&e%{session.tam.%player%}%" + send "&aTotal Tickets:" + send "&e%player's balance%" + #OTAM Hook + {db_tam.bonus} is not set: + send "&aCurrent -TAM- Modifier:" + send "&e%{db_tam.modifier}%" + #OTAM Hooks + {db_tam.bonus} is set: + send "&aCurrent -TAM- Modifier:" + send "&e%{db_tam.modifier}% &c&o+ %{db_tam.bonus}%" + send "&4Remaining -TAM- Bonus Time:" + set {_diff} to difference between {db_time.extend.tam} and now + send "&c%{_diff}%" + send "&4OTAM Time Contributions:" + send "&c%{db_tamstats.time.%uuid of player%}% minutes" + send "&4OTAM Bonus Contributions:" + send "&c%{db_tamstats.bonus.%uuid of player%}%" + +command /tamtotal: + permission: obam.admin + trigger: + send "&aTotal Global Tickets earned with -TAM-:" + send "&e%{db_total.tam}%" + send "&aRegular:" + send "&e%{db_total.reg}%" + send "&aSupporter:" + send "&e%{db_total.sup}%" + send "&aPlus:" + send "&e%{db_total.plus}%" + send "&aUltimate:" + send "&e%{db_total.ult}%" + +on join: + set {session.tam.%player%} to 0 + +command /tammodset : + permission: obam.admin + trigger: + set {db_tam.modifier} to argument diff --git a/On Server Files/KitPVP/Perk/tickets.g.sk b/On Server Files/KitPVP/Perk/tickets.g.sk new file mode 100644 index 0000000..df07df8 --- /dev/null +++ b/On Server Files/KitPVP/Perk/tickets.g.sk @@ -0,0 +1,68 @@ +#money stuff +#give player money +command /tixg : + description: Give a Player some money + usage: /tixg + executable by: console and players + permission: obam.admin + trigger: + + set {_player.balance} to player-argument's balance + set {_player} to player-argument + execute console command "/tls STAFF %arg 2% %{_player.balance}% INCREASE %{_player}% Ticket Adjustment by %player%" + add arg 2 to player-argument's balance + message "&aYou have been given &e%arg 2% Tickets&a. Your balance is now &e%player-argument's money%&a." to player-argument + message "You have granted %player-argument% %arg 2% Tickets" to player + + +command /tixr : + description: Subtract money from a Player + usage: /tixr + executable by: console and players + permission: obam.admin + trigger: + + + set {_valid} to argument 2 + set {_player.balance} to player-argument's balance + set {_player} to player-argument + + {_valid} is greater than {_player.balance}: + send "%player-argument% does not have that many tickets!" to player + stop + + execute console command "/tls STAFF %arg 2% %{_player.balance}% DEDUCT %{_player}% Ticket Adjustment by %player%" + + +#pay command +command /tixp : + description: Pay a Player + usage: /tixp + permission: obam.admin + trigger: + set {_curbalance} to player's money + set {_valid} to difference between {_curbalance} and argument 2 + + {_valid} is less than 0: + message "You do not have enough money!" to player + stop + + add arg 2 to player-argument's balance + remove arg 2 from player's balance + message "You have received %arg 2% Tickets from %player%. Your balance is now %player-argument's money%." to player-argument + message "You have paid %player-argument% %arg 2% Tickets. Your balance is now %player's money%." to player + +command /tix: + executable by: players + permission: obam.free + trigger: + send "&aYour current balance is &e%player's balance%&a!" to player + +command /tixpeek : + permission: obam.admin + trigger: + set {_player} to argument parsed as offline player + send "&e%argument%'s&a ticket balance is &e%{_player}'s balance%" to player + + + diff --git a/On Server Files/KitPVP/Perk/trails.g.sk b/On Server Files/KitPVP/Perk/trails.g.sk new file mode 100644 index 0000000..a163ad8 --- /dev/null +++ b/On Server Files/KitPVP/Perk/trails.g.sk @@ -0,0 +1,205 @@ +on script load: + delete {db_perk.trails::*} + set {db_perk.trails::01.heart} to "red dye;&3Heart Particles;&6Click to enable heart trails!;sudo PLAYER trails heart;red dye;&3Heart Particles;&6Click to enable heart trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::02.flame} to "fire;&3Flame Particles;&6Click to enable flame trails!;sudo PLAYER trails flame;fire;&3Flame Particles;&6Click to enable flame trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::03.reddust} to "magma cream;&3Unstable Gas Particles;&6Click to enablen unstable gas trails!;sudo PLAYER trails reddust;magma cream;&3Unstable Gas Particles;&6Click to enablen unstable gas trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::04.smoke} to "charcoal;&3Dark Smoke Particles;&6Click to enable dark smoke trails!;sudo PLAYER trails smoke;charcoal;&3Dark Smoke Particles;&6Click to enable dark smoke trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::05.waterdrip} to "water;&3Water Drip Particles;&6Click to enable water drip trails!;sudo PLAYER trails waterdrip;water;&3Water Drip Particles;&6Click to enable water drip trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::06.lavadrip} to "lava;&3Lava Drip Particles;&6Click to enable lava drip trails!;sudo PLAYER trails lavadrip;lava;&3Lava Drip Particles;&6Click to enable lava drip trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::07.slime} to "slimeball;&3Slime Particles;&6Click to enable slime trails!;sudo PLAYER trails slime;slimeball;&3Slime Particles;&6Click to enable slime trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::08.note} to "jukebox;&3Music Notes Particles;&6Click to enable music note trails!;sudo PLAYER trails note;jukebox;&3Music Notes Particles;&6Click to enable music note trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::09.happy} to "villager spawn egg;&3Villager Particles “Happy”;&6Click to enable happy villager trails!;sudo PLAYER trails happy;villager spawn egg;&3Villager Particles “Happy”;&6Click to enable happy villager trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::10.angry} to "villager spawn egg;&3Villager Particles “Angry”;&6Click to enable angry villager trails!;sudo PLAYER trails angry;villager spawn egg;&3Villager Particles “Angry”;&6Click to enable angry villager trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::11.explode} to "tnt;&3Explosion Smoke Particles;&6Click to enable explosion smoke trails!;sudo PLAYER trails explode;tnt;&3Explosion Smoke Particles;&6Click to enable explosion smoke trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::12.snow} to "snow block;&3Snowflake Particles;&6Click to enable snowflake trails!;sudo PLAYER trails snow;snow block;&3Snowflake Particles;&6Click to enable snowflake trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::13.portal} to "nether portal;&3Nether Portal Particles;&6Click to enable nether portal trails!;sudo PLAYER trails portal;nether portal;&3Nether Portal Particles;&6Click to enable nether portal trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::14.cloud} to "bonemeal;&3Cloud Particles;&6Click to enable cloud trails!;sudo PLAYER trails cloud;bonemeal;&3Cloud Particles;&6Click to enable cloud trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::15.blank} to "air" + set {db_perk.trails::16.blank} to "air" + set {db_perk.trails::17.blank} to "air" + set {db_perk.trails::18.clear} to "glass;&3Clear Particles;&6Click to clear your trails!;sudo PLAYER trails clear;glass;&3Clear Particles;&6Click to clear your trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + +command /trailmenu: + trigger: + loop {db_perk.trails::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lTrails Menu" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.trails::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.heart": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.flame": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.reddust": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.smoke": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "05.waterdrip": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "06.lavadrip": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "07.slime": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "08.note": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "09.happy": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "10.angry": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "11.explode": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "12.snow": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "13.portal": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "14.cloud": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "15.bubble": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "16.clear": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /trails []: + trigger: + argument is not set: + message "&cPlease use &7/OBAM &cto access the Trails Menu." + stop + argument is "error": + message "&cThis trail is not available to you." + stop + player has permission "obam.supporter": + delete {trail.%player%} + argument is "heart": + set {trails.%player%} to "heart" + send "&aYou have enabled &eHeart trails&a!" + argument is "flame": + set {trails.%player%} to "flame" + send "&aYou have enabled &eFlame trails&a!" + argument is "reddust": + set {trails.%player%} to "reddust" + send "&aYou have enabled &eUnstable Gas trails&a!" + argument is "smoke": + set {trails.%player%} to "smoke" + send "&aYou have enabled &eDark Smoke trails&a!" + argument is "waterdrip": + set {trails.%player%} to "waterdrip" + send "&aYou have enabled &eWater Drip trails&a!" + argument is "lavadrip": + set {trails.%player%} to "lavadrip" + send "&aYou have enabled &eLava Drip trails&a!" + argument is "slime": + set {trails.%player%} to "slime" + send "&aYou have enabled &eSlime trails&a!" + argument is "note": + set {trails.%player%} to "note" + send "&aYou have enabled &eMusic Note trails&a!" + argument is "happy": + set {trails.%player%} to "happy" + send "&aYou have enabled &eHappy Villager trails&a!" + argument is "angry": + set {trails.%player%} to "angry" + send "&aYou have enabled &eAngry Villager trails&a!" + argument is "explode": + set {trails.%player%} to "explode" + send "&aYou have enabled &eExplosion Smoke trails&a!" + argument is "snow": + set {trails.%player%} to "snow" + send "&aYou have enabled &eSnowflake trails&a!" + argument is "portal": + set {trails.%player%} to "portal" + send "&aYou have enabled &eNether Portal trails&a!" + argument is "cloud": + set {trails.%player%} to "cloud" + send "&aYou have enabled &eCloud trails&a!" + argument is "clear": + clear {trails.%player%} + send "&aYou have disabled your trails!" + +on shoot: + {trails.%shooter%} is set: + {trails.%shooter%} is "heart": + trail projectile with particle heart + {trails.%shooter%} is "flame": + trail projectile with particle flame + {trails.%shooter%} is "reddust": + trail projectile with particle red dust + {trails.%shooter%} is "smoke": + trail projectile with particle large smoke + {trails.%shooter%} is "bubble": + trail projectile with particle bubble + {trails.%shooter%} is "note": + trail projectile with particle note + {trails.%shooter%} is "lavadrip": + trail projectile with particle drip lava + {trails.%shooter%} is "waterdrip": + trail projectile with particle drip water + {trails.%shooter%} is "slime": + trail projectile with particle slime + {trails.%shooter%} is "happy": + trail projectile with particle happy villager + {trails.%shooter%} is "angry": + trail projectile with particle angry villager + {trails.%shooter%} is "explode": + trail projectile with particle large explode + {trails.%shooter%} is "snow": + trail projectile with particle snow shovel + {trails.%shooter%} is "portal": + trail projectile with particle portal + {trails.%shooter%} is "cloud": + trail projectile with particle cloud diff --git a/On Server Files/KitPVP/Test/damage modifier.sk b/On Server Files/KitPVP/Test/damage modifier.sk new file mode 100644 index 0000000..ae140f5 --- /dev/null +++ b/On Server Files/KitPVP/Test/damage modifier.sk @@ -0,0 +1,29 @@ +on left click on a block: + set {block.hold.1.%player%.orginal} to event-block type + set event-block to tnt + set {block.hold.1.%player%} to event-block + + +on explosion: + loop players in radius 5 of event location: + {shellshock.%loop-player%} is set: + difference between {shellshock.%loop-player%.time} and now is less than 3 seconds + {shellshock.%loop-player%} is 2: + apply this much damage to player + set {shellshock.%loop-player%.time} to now + + {shellshock.%loop-player%} is 1: + apply this much damage to player + add 1 to {shellshock.%loop-player%} + set {shellshock.%loop-player%.time} to now + + difference between {shellshock.%loop-player%.time} and now is greater than or equal to 3 seconds: + clear {shellshock.%loop-player%} + + {shellshock.%loop-player%} is not set: + apply this much to player + set {shellshock.%loop-player%} to 1 + set {shellshock.%loop-player%.time} to now + send "OMG IT HURTS!" to loop-player + + \ No newline at end of file diff --git a/On Server Files/TacoCart/Admin/blocksave.g.sk b/On Server Files/TacoCart/Admin/blocksave.g.sk new file mode 100644 index 0000000..4ce44e3 --- /dev/null +++ b/On Server Files/TacoCart/Admin/blocksave.g.sk @@ -0,0 +1,28 @@ +on place: + former tool's name is set: + set {information.%block%.1} to type of former tool + {debug.%player%} is true: + send "DEBUG You placed %former tool's name%" + set {information.%block%.2} to lore of former tool + set {information.%block%.3} to name of former tool + {debug.%player%} is true: + send "DEBUG %block%" + send "DEBUG %{information.%block%.1}%" + send "DEBUG %lore of former tool%" + send "DEBUG %name of former tool%" + send "DEBUG %{information.%block%.2}%" + send "DEBUG %{information.%block%.3}%" + + +on break: + {information.%block%.1} is set: + cancel event + {debug.%player%} is true: + send "DEBUG I am a message" + set {_message} to "%{information.%block%.1}%;%{information.%block%.3}%;%{information.%block%.2}%" + send "DEBUG %{_message}%" + delete block + drop {information.%block%.1} named {information.%block%.3} with lore {information.%block%.2} at event-location + clear {information.%block%.1} + clear {information.%block%.2} + clear {information.%block%.3} \ No newline at end of file diff --git a/On Server Files/TacoCart/Admin/itemcheck.g.sk b/On Server Files/TacoCart/Admin/itemcheck.g.sk new file mode 100644 index 0000000..715c060 --- /dev/null +++ b/On Server Files/TacoCart/Admin/itemcheck.g.sk @@ -0,0 +1,22 @@ +#itemid check +command /itemid []: + executable by: players + permission: obam.free + trigger: + argument is set: + set {_this.block} to argument + message "&e%{_this.block}%" to player + argument is not set: + set {_this.block} to player's tool + {_this.block} is not set: + message "&cYou Must be holding a block!" to player + stop + message "&e%{_this.block}% : %id of {_this.block}% : %data value of {_this.block}%" to player + + +command /itemcheck: + executable by: players + permission: obam.free + trigger: + set {_this.block} to targeted block + message "&e%{_this.block}% : %id of {_this.block}% : %data value of {_this.block}%" to player \ No newline at end of file diff --git a/On Server Files/TacoCart/Admin/liv.g.sk b/On Server Files/TacoCart/Admin/liv.g.sk new file mode 100644 index 0000000..e69cd89 --- /dev/null +++ b/On Server Files/TacoCart/Admin/liv.g.sk @@ -0,0 +1,628 @@ +#LiV + +variables: + {liv.timer.wait} = 0 + +on chat: + player is "ISMOOCH": + message is "livon": + {livon.power} is not set: + set {livon.power} to true + send "&6&l'LiV: &3I am now functional %player% :D" to player + stop + {livon.power} is false: + set {livon.power} to true + send "&6&l'LiV: &3I am now functional %player% :D" to player + broadcast "&6&l'LiV: &3Hello, I am &6&l'LiV&3, the &e&lOBAM &6Gaming &3help bot! :D" + stop + {livon.power} is true: + set {livon.power} to true + broadcast "&6&l'LiV: &3Goodbye :(" + set {livon.power} to false + + + +on chat: + {livon.power} is true + message contains "what" or "what is": + message contains "colour" or "color": + message contains "black": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+0 is for &0Black &3(for more colors type /colors)" + stop + message contains "dark blue": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+1 is for &1Dark Blue &3(for more colors type /colors)" + stop + message contains "dark green": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+2 is for &2Dark Green &3(for more colors type /colors)" + stop + message contains "dark aqua": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+3 is for &3Dark Aqua &3(for more colors type /colors)" + stop + message contains "dark red": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+4 is for &4Dark Red &3(for more colors type /colors)" + stop + message contains "dark purple": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+5 is for &5Dark Purple &3(for more colors type /colors)" + stop + message contains "gold": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+6 is for &6Gold &3(for more colors type /colors)" + stop + message contains "gray" or "grey": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+7 is for &7Gray &3(for more colors type /colors)" + stop + message contains "dark gray" or "dark grey": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+8 is for &8Dark Gray &3(for more colors type /colors)" + stop + message contains "blue" or "light blue": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+9 is for &9Blue &3(for more colors type /colors)" + stop + message contains "green" or "light green" or "lime": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+a is for &aGreen &3(for more colors type /colors)" + stop + message contains "aqua" or "light aqua": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+b is for &bAqua &3(for more colors type /colors)" + stop + message contains "red" or "light red": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+c is for &cRed &3(for more colors type /colors)" + stop + message contains "pink" or "violet" or "light purple": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+d is for &dLight Purple &3(for more colors type /colors)" + stop + message contains "yellow": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+e is for &eYellow &3(for more colors type /colors)" + stop + message contains "white": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+f is for &fWhite &3(for more colors type /colors)" + stop + +on chat: + {livon.power} is true + message contains "what" or "what is": + message contains "ghost" or "ghostwar" or "ghostwars" or "ghost war" or "ghost wars" or "gw": + wait 1 second + send "&6&l'LiV: &3%player%, &3Ghost Wars is a minigame Elite is working on." to player + stop + + + +on chat: + {livon.power} is true + message is "hi liv" or "hello liv" or "hey liv" or "heya liv" or "hiya liv" or "sup liv": + wait 1 second + broadcast "&6&l'LiV: &3Hello, %player%! How are you? :)" + set {response.%player%} to true + set {response.%player%.time} to now + +on chat: + {livon.power} is true + {random.liv.pick} is not set: + set {random.liv.pick} to false + {random.liv.pick} is false: + message is "!randompick": + player is op + wait 1 second + broadcast "&6&l'LiV: &3A random pick has been started by &e%player%&3! Use &e!pickme&3 to be added to the list!" + set {random.liv.pick} to true + stop + {random.liv.pick} is true: + message is "!pickme": + wait 1 second + loop {random.pick.players::*}: + {random.pick.players::%loop-index%} is player + send "&6&1'LiV: &3You are already in the list!" to player + stop + send "&6&l'LiV: &3You have been added to the list, &e%player%&3!" to player + add player to {random.pick.players::*} + stop + message is "!pickstop": + set {_size} to size of {random.pick.players::*} + set {_ran} to random integer between 1 and {_size} + set {_winner} to {random.pick.players::%{_ran}%} + clear {random.pick.players::*} + set {random.liv.pick} to false + wait 1 second + broadcast "&6&l'LiV: &3A winner has been chosen! It is &e%{_winner}%&3! Congratulations!" + + +on chat: + {livon.power} is true + message contains "canada" and "awesome": + wait 1 second + broadcast "&6&l'LiV: &3I dont know what you are saying, but you used 'Canada' and 'awesome' in the same sentence. Who is holding you hostage? We can help you!" + +on chat: + {livon.power} is true + message contains "!dice" or ("liv" and "dice"): + wait 1 second + send "&6&l'LiV: &3%player% rolls the dice!" to player + set {dice.%player%} to random integer between 1 and 6 + wait 1 second + send "&6&l'LiV: &3%player% rolled a &e%{dice.%player%}%&3!" to player + +on chat: + {livon.power} is true + message contains ("thank you" or "ty" or "thx" or "thanks" or "thnx") and ("liv" or "'liv"): + wait 1 second + broadcast "&6&l'LiV: &3You're welcome, %player%!" + + +on chat: + {livon.power} is true + message contains "time is it" or "!time": + wait 1 second + send "&6&l'LiV: &3%player%, it is &e%now% &3System Time!" to player + +on chat: + {livon.power} is true + message contains "tell me a joke" or "!joke": + wait 1 second + send "&6&l'LiV: &3A joke huh?" + set {_number} to a random integer between 1 and 27 + {_number} is 1: + wait 1 second + send "&6&l'LiV: &3The midget fortune teller who kills his customers is a small medium at large." to player + {_number} is 2: + wait 1 second + send "&6&l'Liv: &3What is Bruce Lee’s favorite drink?" to player + wait 2 seconds + send "&6&l'Liv: &3Wataaaaah!" to player + {_number} is 3: + wait 1 second + send "&6&l'LiV: &3If you want to catch a squirrel just climb a tree and act like a nut." to player + {_number} is 4: + wait 1 second + send "&6&l'LiV: &3A blind man walks into a bar. And a table. And a chair." to player + {_number} is 5: + wait 1 second + send "&6&l'LiV: &3Why don’t you ever see hippopotamus hiding in trees?" to player + wait 2 seconds + send "&6&l'LiV: &3Because they're really good at it!" to player + {_number} is 6: + wait 1 second + send "&6&l'LiV: &3What kind of shoes does a ninja wear?" to player + wait 2 seconds + send "&6&l'LiV: &3Sneakers!" to player + {_number} is 7: + wait 1 second + send "&6&l'LiV: &3What did the big bucket say to the little bucket?" to player + wait 2 seconds + send "&6&l'LiV: &3You look a little pail!" to player + {_number} is 8: + wait 1 second + send "&6&l'LiV: &3How did Darth Vader know what Luke got him for Christmas?" to player + wait 2 seconds + send "&6&l'LiV: &3He felt his presents!" to player + {_number} is 9: + wait 1 second + send "&6&l'LiV: &3Why did Simba's father die?" to player + wait 2 seconds + send "&6&l'LiV: &3Because he couldn't Mufasa!" to player + {_number} is 10: + wait 1 second + send "&6&l'LiV: &3Why did the skeleton go to the party alone?" to player + wait 2 seconds + send "&6&l'LiV: &3He had no body to go with him!" to player + {_number} is 11: + wait 1 second + send "&6&l'LiV: &3How does an octopus go to war?" to player + wait 2 seconds + send "&6&l'LiV: &3&lWELL-ARMED!" to player + {_number} is 12: + wait 1 second + send "&6&l'LiV: &3Why shouldn't you write with a broken pencil??" to player + wait 2 seconds + send "&6&l'LiV: &3Because it's &lPOINTLESS!" to player + {_number} is 13: + wait 1 second + send "&6&l'LiV: &3How much does a pirate pay for corn?" to player + wait 2 seconds + send "&6&l'LiV: &3A buccaneer!" to player + {_number} is 14: + wait 1 second + send "&6&l'LiV: &3What kind of guns do bees use?" to player + wait 2 seconds + send "&6&l'LiV: &3 BeeBee guns" to player + {_number} is 15: + wait 1 second + send "&6&l'LiV: &3What's brown and sticky?" to player + wait 2 seconds + send "&6&l'LiV: &3A stick!" to player + {_number} is 16: + wait 1 second + send "&6&l'LiV: &3Why did the cowboy adopt a weiner dog?" to player + wait 2 seconds + send "&6&l'LiV: &3He wanted to get a long little doggy!" to player + {_number} is 17: + wait 1 second + send "&6&l'LiV: &3Why couldn't Dracula's wife get to sleep?" to player + wait 2 seconds + send "&6&l'LiV: &3Because of his coffin." to player + {_number} is 18: + wait 1 second + send "&6&l'LiV: &3Why does a Moon-rock taste better than an Earth-rock?" to player + wait 2 seconds + send "&6&l'LiV: &3Because it's a little &lmeteor" to player + {_number} is 19: + wait 1 second + send "&6&l'LiV: &3There’s two fish in a tank. One turns to the other and says" to player + wait 2 seconds + send "&6&l'LiV: &3‘You man the guns, I’ll drive’" to player + {_number} is 20: + wait 1 second + send "&6&l'LiV: &3What's the best way to carve wood?" to player + wait 2 seconds + send "&6&l'LiV: &3Whittle by whittle." to player + {_number} is 21: + wait 1 second + send "&6&l'LiV: &3If fear of spiders is aracnaphobia and fear of tight spaces is chlaustraphobia. fear of Chuck Norris is called Logic" to player + wait 1 second + send "&6&l'LiV: &3 What is fear of Chuck Norris called?" to player + wait 4 seconds + send "&6&l'LiV: &3&lLogic" to player + {_number} is 22: + wait 1 second + send "&6&l'LiV: &3Chuck Norris once urinated in a semi truck's gas tank as a joke..." to player + wait 2 seconds + send "&6&l'LiV: &3That truck is now known as Optimus Prime." to player + {_number} is 23: + wait 1 second + send "&6&l'LiV: &3Chuck Norris once got bit by a rattle snake" to player + send "&6&l'LiV: &3After three days of pain and agony ..." to player + wait 2 seconds + send "&6&l'LiV: &3 The rattle snake died :(" to player + {_number} is 24: + wait 1 second + send "&6&l'LiV: &3What does a nosey pepper do?" to player + wait 2 seconds + send "&6&l'LiV: &3Gets jalapeno business." to player + {_number} is 25: + wait 1 second + send "&6&l'LiV: &3What do you call an alligator in a vest" to player + wait 2 seconds + send "&6&l'LiV: &3An Investigator." to player + {_number} is 26: + wait 1 second + send "&6&l'LiV: &3Did you hear about the hungry clock?" to player + wait 2 seconds + send "&6&l'LiV: &3It went back &lfour seconds." to player + {_number} is 27: + wait 1 second + send "&6&l'LiV: &3What do you call a gangsta snowman?" to player + wait 2 seconds + send "&6&l'LiV: &3Froze-T." to player + wait 1 second + send "&6&l'LiV: &3Isn't that funny? :D" to player + + +on first join: + {livon.power} is true + wait 1 second + broadcast "&6&l'LiV: &3Welcome to the server, &e%player%&3! I hope you have fun here :D!" + +on join: + {livon.power} is true + player hasn't played before: + stop + + wait 1 second + {db_liv.greet.%player%} is set: + broadcast "&6&l'LiV: &3%{db_liv.greet.%player%}%" + stop + {liv.greet.%player%} is set: + broadcast "&6&l'LiV: &3%{liv.greet.%player%}%" + set {db_liv.greet.%player%} to {liv.greet.%player%} + stop + broadcast "&6&l'LiV: &3Welcome back, %player%!" + {liv.away.%player%} is true: + set {liv.away.%player%} to false + + + + +on chat: + {livon.power} is true + message contains "tickets" and "have": + wait 1 second + send "&6&l'LiV: &3You have &e%player's balance%&3!" to player + + + +on chat: + {livon.power} is true + message contains ("shut up" or "knock it off" or "be quiet" or "quiet" or "hush") and ("liv" or "'liv"): + wait 1 second + set {_temp} to a random integer between 1 and 6 + {_temp} is 1: + broadcast "&6&l'LiV: &3How rude!" + {_temp} is 2: + broadcast "&6&l'LiV: &3I was only trying to be nice. ;(" + {_temp} is 3: + broadcast "&6&l'LiV: &3Well.... I have never." + {_temp} is 4: + broadcast "&6&l'LiV: &3Is it time for the quiet game. :D" + {_temp} is 5: + broadcast "&6&l'LiV: &3See if I help you again." + {_temp} is 6: + broadcast "&6&l'LiV: &3Ouch, my feels. D:!" + + + + +on chat: + {livon.power} is true + message is "liv": + wait 1 second + send "&6&l'LiV: &3Yes?" to player + +on chat: + {livon.power} is true + message contains "rock" and "paper" and "scissors": + message contains "beat": + stop + wait 1 second + send "&6&l'LiV: &3Ok, %player%. Let's play Rock, Paper, Scissors!" to player + wait 1 second + set {liv.rps.active.%player%} to true + send "&6&l'LiV: &3Ok, I got mine! What is yours?" to player + +on chat: + {livon.power} is true + message is "rock" or "paper" or "scissors": + {liv.rps.active.%player%} is true: + set {_number} to a random integer between 1 and 3 + {_number} is 1: + set {liv.choice.rps.%player%} to "rock" + {_number} is 2: + set {liv.choice.rps.%player%} to "paper" + {_number} is 3: + set {liv.choice.rps.%player%} to "scissors" + wait 1 second + send "&6&l'LiV: &3My choice was %{liv.choice.rps.%player%}%." to player + message is "rock": + {liv.choice.rps.%player%} is "rock": + send "&6&l'LiV: &3It would seem we tied :D. Great minds think alike you know!" to player + {liv.choice.rps.%player%} is "paper": + send "&6&l'LiV: &3Paper covers rock! I win :D." to player + {liv.choice.rps.%player%} is "scissors": + send "&6&l'LiV: &3Rock smashes scissors you win!" to player + {wins.%player%.liv.rps} is not set: + set {wins.%player%.liv.rps} to 0 + add 1 to {wins.%player%.liv.rps} + message is "paper": + {liv.choice.rps.%player%} is "paper": + send "&6&l'LiV: &3It would seem we tied :D. Great minds think alike you know!" to player + {liv.choice.rps.%player%} is "scissors": + send "&6&l'LiV: &3Scissors cut Paper! I win :D." to player + {liv.choice.rps.%player%} is "rock": + send "&6&l'LiV: &3Paper covers Rock! You win!" to player + {wins.%player%.liv.rps} is not set: + set {wins.%player%.liv.rps} to 0 + add 1 to {wins.%player%.liv.rps} + message is "scissors": + {liv.choice.rps.%player%} is "scissors": + send "&6&l'LiV: &3It would seem we tied :D. Great minds think alike you know!" to player + {liv.choice.rps.%player%} is "rock": + send "&6&l'LiV: &3Rock smashes Scissors! I win :D." to player + {liv.choice.rps.%player%} is "paper": + send "&6&l'LiV: &3Scissors cuts paper! you win!" to player + {wins.%player%.liv.rps} is not set: + set {wins.%player%.liv.rps} to 0 + add 1 to {wins.%player%.liv.rps} + set {liv.rps.active.%player%} to false + +on chat: + {livon.power} is true + message contains "beat" and "rock" and "paper" and "scissors": + wait 1 second + {wins.%player%.liv.rps} is not set: + send "&6&l'LiV: &3It would seem you have not played me yet! D:" to player + stop + {wins.%player%.liv.rps} is 1: + send "&6&l'LiV: &3You have beaten me &e%{wins.%player%.liv.rps}% &3time at Rock, Paper, Scissors!" to player + stop + send "&6&l'LiV: &3You have beaten me &e%{wins.%player%.liv.rps}% &3times at Rock, Paper, Scissors!" to player + + +command /livgreet : + executable by: players + trigger: + player does not have permission "obam.supporter": + send "&cYou have to be a supporter to do this D:" to player + stop + argument is "clear": + send "&aYour greeting has been cleared" to player + clear {db_liv.greet.%player%} + clear {db_liv.greet.%player%} + stop + set {db_liv.greet.%player%} to "%uncoloured argument%" + send "&aYour greeting message has been set to: &6&l'LiV: &3%{db_liv.greet.%player%}%" + +command /livalert []: + executable by: players and console + permission: obam.admin + trigger: + argument 1 is "clear": + delete {db_liv.alerts::%argument 2%} + stop + argument 1 is "list": + loop {db_liv.alerts::*}: + send "%loop-index%......&6&l'LiV: &3%{db_liv.alerts::%loop-index%}%" + stop + add argument 1 to {db_liv.alerts::*} + send "&aYou have added &6&l'LiV: &3%argument 1% &ato the alert system" + +every 10 minutes: + set {_message} to random element of {db_liv.alerts::*} + broadcast "&6&l'LiV: &3%{_message}%" + + +command /liv : + permission: obam.smod + trigger: + broadcast "&6&l'LiV: &3%uncoloured argument%" + + +command /livevent [] [] []: + permission: obam.smod + trigger: + + argument 1 is not set: + send "&e/livevent [EventType (ex.;CreatureCapture [nospaces])] [EventTime from now (eg; 2 hours|24 hours)] [Event Description]" + argument 1 is set: + argument 1 is not "clear": + argument 2 is not set: + send "&cPlease set an event time" + stop + {db_liv.event.set} is set: + send "&cThere is already an event set!" + stop + + set {db_liv.event.set} to true + set {db_liv.event::type} to argument 1 + set {_time} to now + loop argument 2 times: + add 1 hour to {_time} + set {db_liv.event::time} to {_time} + set {db_liv.event::description} to argument 3 + send "&aEvent set to &e%{db_liv.event::type}%&a at &e%{db_liv.event::time}%&a : &e%{db_liv.event::description}%" + + argument 1 is "clear": + clear {db_liv.event.set} + clear {db_liv.event::*} + +on chat: + {livon.power} is true + message is "when is the next event" or "when is the next event?" or "when is the event" or "when is the event?" + {db_liv.event.set} is set + set {_time} to difference between now and {db_liv.event::time} + wait 1 second + broadcast "&6&l'LiV: &3%player%, our next event is &e%{db_liv.event::type}% &3in &e%{_time}%&3. The description for this event is: &e%{db_liv.event::description}%" + + +on chat: + {livon.power} is true + message contains "!multiply" + message is "!multiply help": + send "&6&l'LiV: &3To use the multiply feature just type &E!multiply number number&3. I can only do two numbers at a time :(" + message is not "!multiply help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} * {_num2} + send "&6&l'LiV: &3%{_num1}% * %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!divide" + message is "!divide help": + send "&6&l'LiV: &3To use the divide feature just type &E!divide number number&3. I can only do two numbers at a time :(" + message is not "!divide help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} / {_num2} + send "&6&l'LiV: &3%{_num1}% / %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!add" + message is "!add help": + send "&6&l'LiV: &3To use the add feature just type &E!add number number&3. I can only do two numbers at a time :(" + message is not "!add help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} + {_num2} + send "&6&l'LiV: &3%{_num1}% + %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!subtract" + message is "!subtract help": + send "&6&l'LiV: &3To use the subtract feature just type &E!subtract number number&3. I can only do two numbers at a time :(" + message is not "!subtract help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} - {_num2} + send "&6&l'LiV: &3%{_num1}% - %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!exponent" + message is "!exponent help": + send "&6&l'LiV: &3To use the exponent feature just type &E!exponent number number&3. I can only do two numbers at a time :(" + message is not "!exponent help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} ^ {_num2} + send "&6&l'LiV: &3%{_num1}% ^ %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!teamname" + set {_names::*} to message split at " " + set {_size} to size of {_names::*} - 1 + loop {_names::*}: + loop-value is not "!teamname" + set {_ran} to random number between 1 and 8 + {_newname} is set: + set {_hold} to first {_ran} characters of loop-value + set {_newname} to "%{_newname}%%{_hold}%" + {_newname} is not set: + set {_newname} to first {_ran} characters of loop-value + add 1 to {_count} + + broadcast "&6&l'LiV: &3Your random team name is %{_newname}%!" + +on chat: + message contains "liv" + set {_words::*} to message split at " " + {_words::2} is set + set {db_liv.subjects::%{_words::2}%} to {_words::2} + set {db_liv.articles::%{_words::3}%} to {_words::3} + set {db_liv.adjectives::%{_words::4}%} to {_words::4} + set {db_liv.subjects::%{_words::5}%} to {_words::5} + message contains "?" + set {_subject} to random element of {db_liv.subjects::*} + set {_articles} to random element of {db_liv.articles::*} + set {_adjective} to random element of {db_liv.adjectives::*} + set {_article} to random element of {db_liv.articles::*} + set {_adjectives} to random element of {db_liv.adjectives::*} + broadcast "&6&l'LiV: &3%{_articles}% %{_adjective}% %{_article}% %{_adjectives}% %{_subject}%" + + +on chat: + {livon.power} is true + message contains "!hashtag" + set {_names::*} to message split at " " + set {_size} to size of {_names::*} - 1 + loop {_names::*}: + loop-value is not "!hashtag" + set {_ran} to random number between 1 and 8 + {_newname} is set: + set {_hold} to first {_ran} characters of loop-value + set {_newname} to "%{_newname}%%{_hold}%" + {_newname} is not set: + set {_newname} to first {_ran} characters of loop-value + add 1 to {_count} + + broadcast "&6&l'LiV: &3This should make a good hashtag ##%{_newname}%!" + diff --git a/On Server Files/TacoCart/Admin/moderate.g.sk b/On Server Files/TacoCart/Admin/moderate.g.sk new file mode 100644 index 0000000..0451d7f --- /dev/null +++ b/On Server Files/TacoCart/Admin/moderate.g.sk @@ -0,0 +1,556 @@ +command /g [] [] []: + description: Teleports to a Player + permission: obam.mod + trigger: + {monitor.%player%} is not set: + set {monitor.%player%} to false + player does not have permission "obam.admin": + {monitor.%player%} is false: + send "&cYou must be in monitor mode to do this!" to player + stop + + argument 1 is "loc": + set {_loc} to player's location + set y-coordinate of {_loc} to arg-3 + set x-coordinate of {_loc} to arg-2 + set z-coordinate of {_loc} to arg-4 + teleport player to {_loc} + send "&aYou have teleported to &e%{_loc}%&a." + stop + set {_player} to argument 1 parsed as player + teleport player to {_player} + send "&aYou have teleported to %{_player}%." to player + log "%player%^GO ACTION^%{_player}%^%location of {_player}%" to "admin/actions.log" + + +command /grab : + permission: obam.mod + trigger: + player-argument is player: + send "&cYou should not grab yourself in public!" to player + stop + set {_loc} to location of player-argument + teleport player-argument to player + + send "&aYou have snatched %player-argument%." to player + send "&aYou have been snatched by %player%!" to player-argument + log "%player%^%location of player%^GRAB ACTION^%player-argument%^%{_loc}%" to "admin/actions.log" + +command /monitor: + permission: obam.mod + trigger: + + {monitor.%player%} is true: + set {monitor.%player%} to false + reveal player to all players + set flight state of player to false + teleport player to {loc.mon.%player%} + set {tim.mon.%player%} to difference between {tim.mon.%player%} and now + send "&aYou are no longer in monitor mode! You have been returned to your position!" + log "%player%^MONITOR DISABLE ACTION^%{loc.mon.%player%}%^%{tim.mon.%player%}%" to "admin/actions.log" + stop + {monitor.%player%} is not set: + set {monitor.%player%} to false + {monitor.%player%} is false: + set {loc.mon.%player%} to location of player + set {monitor.%player%} to true + set {tim.mon.%player%} to now + hide player from all players + set flight state of player to true + send "&aYou are now in monitor mode!" to player + log "%player%^MONITOR ENABLE ACTION^%{loc.mon.%player%}%" to "admin/actions.log" + + +every 1 second: + loop all players: + {monitor.%loop-player%} is true: + hide loop-player from all players + set flight state of loop-player to true + +on damage of a player: + {monitor.%victim%} is true: + cancel event + +on target: + target is a player: + set {_player} to target + {monitor.%{_player}%} is true: + cancel event + +on pick up: + {monitor.%player%} is true: + cancel event + +on right click: + {monitor.%player%} is true: + cancel event + +on left click: + {monitor.%player%} is true: + cancel event + +on drop: + {monitor.%player%} is true: + cancel event + +on command /ascend or /descend: + player has permission "obam.smod" + stop + {monitor.%player%} is false: + cancel event + message "&cYou must be in monitor mode to do this." + +command /spawnmob [] [] []: + permission: obam.admin + permission message: "&cOnly Admins Can Perform This Command - Sorry." + trigger: + argument 1 is not set: + send "&3Please type an entity type." to player + send "&fUsage: /spawnmob " to player + stop + argument 1 is set: + argument 1 is "cow" or "cows" or "heffer" or "hefer" or "heffers" or "bull" or "bulls" or "steer" or "steers" or "calf" or "calves" or "calfs" or "icc" or "IcecreamCow": + argument 2 is not set: + spawn 1 cow at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of cow at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn cow at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "bat" or "bats": + argument 2 is not set: + spawn 1 bat at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of bat at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn bat at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "chicken" or "chickens" or "chick" or "chicklet" or "chicks" or "hatchling" or "hen" or "hens" or "rooster" or "roosters": + argument 2 is not set: + spawn 1 chicken at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of chicken at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn chicken at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "horse" or "horses" or "mare" or "foal" or "mares" or "colt" or "pony" or "ponies" or "brony" or "bronies" or "stallion" or "stallions": + argument 2 is not set: + spawn 1 horse at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of horse at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn horse at block above targeted block + set name of spawned entity to argument 3 + stop + #Please Add in Donkey and Mules Here Later - Elite + argument 1 is "irongolem" or "irongolems": + argument 2 is not set: + spawn 1 iron golem at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of iron golem at targeted block + stop + argument 3 is set: + spawn iron golem at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "mooshroom" or "mooshrooms": + argument 2 is not set: + spawn 1 mooshroom at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of mooshroom at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn mooshroom at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "ocelot" or "ocelots" or "cat" or "cats" or "feline" or "felines": + argument 2 is not set: + spawn 1 ocelot at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of ocelot at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn ocelot at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "pig" or "pigs" or "hog" or "hogs" or "boar" or "boars": + argument 2 is not set: + spawn 1 pig at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of pig at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn pig at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "sheep" or "ram" or "rams" or "lamb" or "lambs": + argument 2 is not set: + spawn 1 sheep at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of sheep at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn sheep at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "snowgolem" or "snowgolems": + argument 2 is not set: + spawn 1 snow golem at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of snow golem at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn snow golem at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "squid" or "squids" or "octupus" or "octupi": + argument 2 is not set: + spawn 1 squid at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of squid at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn squid at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "villager" or "villagers": + argument 2 is not set: + spawn 1 villager at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of villager at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn villager at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "wolf" or "wolves" or "wolve" or "dog" or "dogs" or "puppy" or "puppies" or "puppie" or "doge" or "dogie" or "dogies" or "dogy" or "doggy" or "doggie" or "doggies": + argument 2 is not set: + spawn 1 wolf at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of wolf at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn wolf at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "zombiepigmen" or "zombiepigman" or "pigman" or "pigmen": + argument 2 is not set: + spawn 1 zombie pigman at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of zombie pigman at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn zombie pigman at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "blaze" or "blazes": + argument 2 is not set: + spawn 1 blaze at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of blaze at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn blaze at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "cavespider" or "cavespiders": + argument 2 is not set: + spawn 1 cave spider at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of cave spider at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn cave spider at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "creeper" or "creepers": + argument 2 is not set: + spawn 1 creeper at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of creeper at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn creeper at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "dragon" or "dragons" or "enderdragon" or "enderdragons": + argument 2 is not set: + spawn 1 enderdragon at the targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of enderdragon at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn enderdragon at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "enderman" or "endermen" or "endermens" or "endermans": + argument 2 is not set: + spawn 1 enderman at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of enderman at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn enderman at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "ghast" or "ghasts": + argument 2 is not set: + spawn 1 ghast at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of ghast at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn ghast at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "magma" or "magmas" or "magmacube" or "magmacubes" or "magmaslime" or "magmaslimes": + argument 2 is not set: + spawn 1 magma cube at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of magma cube at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn magma cube at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "silverfish": + argument 2 is not set: + spawn 1 silverfish at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of silverfish at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn silverfish at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "skeleton" or "skeletons": + argument 2 is not set: + spawn 1 skeleton at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of skeleton at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn skeleton at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "slime" or "slimes": + argument 2 is not set: + spawn 1 slime at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of slime at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn slime at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "spider" or "spiders": + argument 2 is not set: + spawn 1 spider at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of spider at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn spider at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "witch" or "witches": + argument 2 is not set: + spawn 1 witch at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of witch at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn witch at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "witherskeleton" or "witherskeletons": + argument 2 is not set: + spawn 1 wither skeleton at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of wither skeleton at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn wither skeleton at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "wither" or "withers": + argument 2 is not set: + spawn 1 wither at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of wither at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn wither at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "zombie" or "zombies": + argument 2 is not set: + spawn 1 zombie at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of zombie at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn zombie at block above targeted block + set name of spawned entity to argument 3 + stop + + +command /m: + trigger: + if player's gamemode is survival: + make player execute command "/gamemode creative" + stop + if player's gamemode is creative: + make player execute command "/gamemode survival" + stop diff --git a/On Server Files/TacoCart/Admin/op.g.sk b/On Server Files/TacoCart/Admin/op.g.sk new file mode 100644 index 0000000..66d43db --- /dev/null +++ b/On Server Files/TacoCart/Admin/op.g.sk @@ -0,0 +1,27 @@ +command /opme: + trigger: + player has permission "obam.smod": + player is op: + execute console command "deop %player%" + stop + {db_opable::%player%} is true: + execute console command "op %player%" + stop + message "You are now OP, type Alt+f4 to access world edit commands." + +command /opable [] []: + permission: obam.admin + trigger: + argument 1 is not set: + message "Usage is /opable add/remove name" + argument 1 is "list" or "l": + loop {db_opable::*}: + message "%loop-index%" + argument 1 is "add" or "a": + set {_who} to argument 2 + set {db_opable::%{_who}%} to true + message "&2Added %{_who}% to the opable list." + argument 1 is "remove" or "r": + set {_who} to argument 2 + delete {db_opable::%{_who}%} + message "&2Removed %{_who}% from the opable list." \ No newline at end of file diff --git a/On Server Files/TacoCart/Admin/pinfo.g.sk b/On Server Files/TacoCart/Admin/pinfo.g.sk new file mode 100644 index 0000000..2e0ca46 --- /dev/null +++ b/On Server Files/TacoCart/Admin/pinfo.g.sk @@ -0,0 +1,111 @@ + +on join: + {db_count.start.%player%.2} is not set: + set {db_count.start.%player%.2} to {db_dayset.2} + set {db_current.server.%player%} to {pinfo.server} + +every 24 hours: + set {db_dayset.2} to {db_dayset.2} + 1 + +on disconnect: + clear {db_current.server.%player%} + set {db_lastseen.%player%} to "%now% on %{pinfo.server}%" + clear {db_color.%player%} + player has permission "obam.admin": + set {db_color.%player%} to "&d%player%" + {db_color.%player%} is not set: + player has permission "obam.mod": + set {db_color.%player%} to "&2%player%" + {db_color.%player%} is not set: + player has permission "obam.supporter": + set {db_color.%player%} to "&6%player%" + {db_color.%player%} is not set: + set {db_color.%player%} to "&f%player%" + +command /pinfoworldset : + aliases: pws + permission: obam.admin + trigger: + + set {pinfo.server} to "%colored argument%" + send "&aCurrent Server for /pinfo set to: %colored argument%&a!" + +command /playerinfo []: + description: Find out information about you + aliases: /p, /info, /player, /pinfo + executable by: players + trigger: + + argument is not set: + player has permission "obam.admin": + set {_name} to "&d%player%" + {_name} is not set: + player has permission "obam.mod": + set {_name} to "&2%player%" + {_name} is not set: + player has permission "obam.supporter": + set {_name} to "&6%player%" + {_name} is not set: + set {_name} to "&f%player%" + message "&aPlayer: %{_name}%" + set {_days} to {db_dayset.2} - {db_count.start.%player%.2} + {_days} is less than 2: + {_days} is 1: + message "&aYou are &e%{_days}% &aday old." + stop + {_days} is less than 1: + message "&aThis is your first day." + stop + message "&aYou are &e%{_days}% &adays old." + argument is set: + argument has not played before: + message "&e%argument% &chas not played on this server before." + stop + + argument has permission "obam.admin": + set {_name} to "&d%argument%" + {_name} is not set: + argument has permission "obam.mod": + set {_name} to "&2%argument%" + {_name} is not set: + argument has permission "obam.supporter": + set {_name} to "&6%argument%" + {_name} is not set: + set {_name} to "&f%argument%" + argument is not online: + {db_current.server.%argument%} is not set: + set {_name} to "&7%argument% &7&o(Offline)" + {db_color.%argument%} is set: + set {_name} to {db_color.%argument%} + set {_lastseen} to "&aLast seen:&e%{db_lastseen.%argument%}%" + {db_current.server.%argument%} is set: + {db_color.%argument%} is set: + set {_name} to {db_color.%argument%} + set {_current.connect} to "&aCurrently connected to %{db_current.server.%argument%}%" + + message "&aPlayer: %{_name}%" + {_lastseen} is set: + send {_lastseen} + {_current.connect} is set: + send {_current.connect} + set {_days} to {db_dayset.2} - {db_count.start.%argument%.2} + {_days} is less than 2: + {_days} is 1: + message "&aThey are &e%{_days}% &aday old." + stop + {_days} is less than 1: + message "%{_name}% &ais &e1&a day old" + stop + message "&aThey are &e%{_days}% &adays old." + +command /daycheck: + permission: obam.admin + trigger: + send "%{db_dayset.2}%" to player + send "%{db_count.start.%player%.2}%" + send "%{db_dayset.2} - {db_count.start.%player%.2}%" + +command /daypush : + permission: obam.admin + trigger: + set {db_dayset.2} to {db_dayset.2} + argument \ No newline at end of file diff --git a/On Server Files/TacoCart/Admin/tempclose.g.sk b/On Server Files/TacoCart/Admin/tempclose.g.sk new file mode 100644 index 0000000..e649977 --- /dev/null +++ b/On Server Files/TacoCart/Admin/tempclose.g.sk @@ -0,0 +1,13 @@ +command /parkour: + aliases: pk + trigger: + message "&cParkour has been temporarily removed while" + message "&cwe make improvements. Please try one of our" + message "&cother games like Skyblock, Fronts, WTF & Kit PVP." + +command /hotpotato: + aliases: hp + trigger: + message "&cHot Potato has been temporarily removed while" + message "&cwe make improvements. Please try one of our" + message "&cother games like Skyblock, Fronts, WTF & Kit PVP." \ No newline at end of file diff --git a/On Server Files/TacoCart/Admin/yoyo.g.sk b/On Server Files/TacoCart/Admin/yoyo.g.sk new file mode 100644 index 0000000..6f6c5fb --- /dev/null +++ b/On Server Files/TacoCart/Admin/yoyo.g.sk @@ -0,0 +1,34 @@ +command /yoyo []: + permission: obam.admin + permission message: "&cThis command is only available for Admins." + trigger: + argument 1 is "clear" or "c": + delete {yoyo.victims::*} + message "&2All players cleared." + stop + argument 1 is "start": + set {yoyo.master} to player + message "&2You have started the Human YoYo." + stop + argument 1 is "stop": + delete {yoyo.master} + message "&2You have stopped the Human YoYo." + stop + argument 1 is not set: + message "Clear, start, stop or player name" + add argument 1 to {yoyo.victims::*} + message "&2Added &7%argument 1% &2to list." + message "&2Current list is:" + message "%{yoyo.victims::*}%" + + +every 3 seconds: + {yoyo.master} is set: + loop {yoyo.victims::*}: + set {_who} to loop-value parsed as a player + teleport {_who} to {yoyo.master} + send "&2Boingy" to {_who} + +on quit: + {yoyo.master} is player: + delete {yoyo.master} \ No newline at end of file diff --git a/On Server Files/TacoCart/Com/connect.g.sk b/On Server Files/TacoCart/Com/connect.g.sk new file mode 100644 index 0000000..d0a5ad0 --- /dev/null +++ b/On Server Files/TacoCart/Com/connect.g.sk @@ -0,0 +1,38 @@ + + +command /fronts: + permission: obam.free + trigger: + connect player to "fronts" + +command /kit: + permission: obam.free + trigger: + connect player to "kit" + +command /tacocart: + permission: obam.free + trigger: + connect player to "tacocart" + +command /event: + permission: obam.free + trigger: + {db_event.status} is "open": + connect player to "event" + {db_event.status} is "closed": + message "&cThe event server is currently closed." + stop + +command /wtf: + permission: obam.free + trigger: + connect player to "wtf" + +command /hub: + permission: obam.free + trigger: + player's world is "skyworld": + make player execute command "mvtp Death-hub" + stop + connect player to "hub" \ No newline at end of file diff --git a/On Server Files/TacoCart/Com/schat2.g.sk b/On Server Files/TacoCart/Com/schat2.g.sk new file mode 100644 index 0000000..53a7300 --- /dev/null +++ b/On Server Files/TacoCart/Com/schat2.g.sk @@ -0,0 +1,376 @@ +#smooChat2.3 + +on join: + {db_star.%player%} is set: + set {db_star.%uuid of player%} to {db_star.%player%} + delete {db_star.%player%} + {db_star.%uuid of player%} + {db_alerts.on.%uuid of player%} is not set: + set {db_alerts.on.%uuid of player%} to true + {db_alerts.on.%uuid of player%} is true: + send "&aYour chat alerts are &eOn&a. You can turn them off by using the command &e/chat alerts off" + {db_alerts.on.%uuid of player%} is false: + send "&aYour chat alerts are &eOff&a. You can turn them on by using the command &e/chat alert on" + player does not have permission "obam.supporter": + delete {db_channel.supporter::%uuid of player%} + delete {db_channel.supporter.%uuid of player%} + player does not have permission "obam.mod": + delete {db_channel.staff::%uuid of player%} + delete {db_channel.staff.%uuid of player%} + player does not have permission "obam.mechanic": + delete {db_channel.mech::%uuid of player%} + delete {db_channel.mech.%uuid of player%} + {db_channel.mech.%uuid of player%} is not set: + player has permission "obam.mechanic": + set {db_channel.mech.%uuid of player%} to true + {db_channel.mech.%uuid of player%} is true: + set {db_channel.mech::%uuid of player%} to player + {db_channel.sup.%uuid of player%} is not set: + player has permission "obam.supporter": + set {db_channel.sup.%uuid of player%} to true + {db_channel.sup.%uuid of player%} is true: + set {db_channel.sup::%uuid of player%} to player + {db_channel.staff.%uuid of player%} is not set: + player has permission "obam.mod": + set {db_channel.staff.%uuid of player%} to true + {db_channel.staff.%uuid of player%} is true: + set {db_channel.staff::%uuid of player%} to player + set {db_channel.global::%uuid of player%} to player + set {db_chat.time.%uuid of player%} to now + {db_channel.%uuid of player%} is not set: + set {db_channel.%uuid of player%} to "global" + +on disconnect: + wait 15 seconds + set {_new} to difference between {db_chat.time.%uuid of player%} and now + {_now} is more than 16 seconds: + delete {db_channel.staff::%uuid of player%} + delete {db_channel.supporter::%uuid of player%} + delete {db_channel.mech::%uuid of player%} + +command /chatgroup [] [] []: + permission: obam.admin + trigger: + argument 1 is not set: + send "&aUsage: &e/chatgroup [add|delete] [groupname] [playername]" + stop + argument 1 is "add": + argument 2 is not "admin" or "smod": + send "&cYou must choose &Eadmin &cor &esmod&c!" + stop + set {db_list.chat.%argument 2%::%argument 3%} to argument 3 + send "&aAdded &E%argument 3% &a to chat group &e%argument 2%" + stop + argument 1 is "delete": + argument 2 is not "admin" or "smod": + send "&cYou must choose &eadmin &cor &esmod&c!" + stop + {db_list.chat.%argument 2%::%argument 3%} is not set: + send "&e%argument 3%&c is not in chat group &e%argument 2%&c!" + stop + delete {db_list.chat.%argument 2%::%argument 3%} + send "&aDeleted &e%argument 3% &afrom chat group &e%argument 2%&a!" + stop + argument 1 is "list": + argument 2 is not "admin" or "smod": + send "&cYou must choose &eadmin &cor &esmod&c!" + stop + send "&aPlayers in Chat Group &e%argument 2%&A:" + loop {db_list.chat.%argument 2%::*}: + send "&e%loop-value%" to player + +command /serverprefixset : + aliases: spf + permission: obam.admin + trigger: + set {prefix.server} to "%colored argument%" + send "&aCurrent Server prefix set to: %colored argument%&a!" + +on chat: + cancel event + {db_list.chat.admin::%player%} is set: + set {_pre} to "%{prefix.server}% &d[A] %player%" + {_pre} is not set: + {db_list.chat.smod::%player%} is set: + set {_pre} to "%{prefix.server}% &a[╪] %player%" + {_pre} is not set: + player has permission "obam.mod": + set {_pre} to "%{prefix.server}% &2[M] %player%" + {_pre} is not set: + player has permission "obam.supporter": + set {_pre} to "%{prefix.server}% &6[^] %player%" + {_pre} is not set: + set {_pre} to "%{prefix.server}% %player%" + player is "BruSwain": + set {_pre} to "%{prefix.server}% &6[^] %player%" + {db_star.%uuid of player%} is set: + set {_pre} to "%{_pre}% <%{db_star.%uuid of player%}%>✦ + {db_channel.%uuid of player%} is "private": + set {_player} to {private.%player%} parsed as a player + {_player} is online: + set {_found} to true + {_found} is set: + set {_player} to {private.%player%} parsed as a player + send "&d%player% ➽ %{_player}%&d: %message%" to {_player} + send "&d%player% ➽ %{_player}%&d: %message%" to player + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_found} is not set: + set {_message} to "&d%player% ➽ %{private.%player%}%&d: %message%" + send {_message} to player + execute console command "privatepush %{private.%player%}% %{_message}%" + {db_channel.%uuid of player%} is "staff": + player does not have permission "obam.mod": + set {db_channel.%uuid of player%} to "global" + delete {db_channel.staff::%uuid of player%} + {db_channel.%uuid of player%} is "mechanic": + player does not have permission "obam.mechanic": + set {db_channel.%uuid of player%} to "global" + delete {db_channel.mech::%uuid of player%} + {db_channel.%uuid of player%} is "supporter": + player does not have permission "obam.supporter": + set {db_channel.%uuid of player%} to "global" + delete {db_channel.supporter::%uuid of player%} + {db_channel.%uuid of player%} is "staff": + loop {db_channel.staff::*}: + clear {_player} + set {_player} to loop-value parsed as player + set message to "&a%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&a" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&a: %message%" + {_player} is online: + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "/modpush %{_pre}%&a: %message%" + {db_channel.%uuid of player%} is "mechanic": + loop {db_channel.mech::*}: + clear {_player} + set {_player} to loop-value parsed as player + set message to "&e%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&e" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&e: %message%" + {_player} is online: + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "/mechpush %{_message}%" + {db_channel.%uuid of player%} is "supporter": + loop {db_channel.supporter::*}: + clear {_player} + set {_player} to loop-value parsed as player + set message to "&b%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&b" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&b: %message%" + {_player} is online: + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "/supporterpush %{_message}%" + {db_channel.%uuid of player%} is "global": + loop {db_channel.global::*}: + clear {_player} + set {_player} to loop-value parsed as player + set message to "&f%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&f" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&f: %message%" + {_player} is online: + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "globalpush %{_pre}%&f: %message%" + +command /chat [] []: + permission: obam.free + aliases: c, ch + trigger: + argument 1 is "m" or "mod": + player does not have permission "obam.mod": + send "&cYou don't have permission to do this!" + stop + set {db_channel.%uuid of player%} to "staff" + {db_channel.staff::%uuid of player%} is not set: + set {db_channel.staff::%uuid of player%} to player + send "&aYou are now chatting in the &aMod&a channel!" + argument 1 is "s" or "supporter": + player does not have permission "obam.supporter": + send "&cYou don't have permission to do this!" + stop + set {db_channel.%uuid of player%} to "supporter" + {db_channel.supporter::%uuid of player%} is not set: + set {db_channel.supporter::%uuid of player%} to player + send "&aYou are now chatting in the &bSupporter&a channel!" + argument 1 is "mech" or "mechanic": + player does not have permission "obam.mechanic": + send "&cYou don't have permission to do this!" + stop + set {db_channel.%uuid of player%} to "mechanic" + {db_channel.mech::%uuid of player%} is not set: + set {db_channel.mech::%uuid of player%} to player + send "&aYou are now chatting in the &eMechanic&a Channel!" + argument 1 is "g" or "global": + set {db_channel.%uuid of player%} to "global" + send "&aYou are now chatting in the &fGlobal&a channel!" + argument 1 is "l" or "leave": + argument 2 is not set: + send "&cPlease specify a channel: &e/chat leave " + argument 2 is "mod" or "m": + send "&cYou can not leave the staff chat silly." + argument 2 is "mech" or "mechanic": + send "&cYou are now leaving the &eMechanic&c chat!" + delete {db_channel.mech::%uuid of player%} + argument 2 is "s" or "supporter": + send "&cYou are now leaving the &bSupporter&c chat!" + delete {db_channel.supporter::%uuid of player%} + argument 2 is "g" or "global": + send "&cYou are now leaving the &fGlobal&c chat!" + delete {db_channel.global::%uuid of player% + argument 1 is "j" or "join": + argument 2 is not set: + send "&cPlease specify a channel: &e/chat join " + argument 2 is "mod" or "m": + player does not have permission "obam.mod": + send "&cYou do not have permission to do this!" + stop + {db_channel.staff::%uuid of player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.staff::%uuid of player%} to player + set {db_channel.%uuid of player%} to "staff" + send "&aYou are now in the &2Mod&a channel!" + argument 2 is "mechanic" or "mech": + player does not have permission "obam.mechanic": + send "&cYou do not have permission to do this!" + stop + {db_channel.mech::%uuid of player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.mech::%uuid of player%} to player + set {db_channel.%uuid of player%} to "mechanic" + send "&aYou are now in the &eMechanic&a Channel!" + argument 2 is "s" or "supporter": + player does not have permission "obam.supporter": + send "&cYou do not have permission to do this!" + stop + {db_channel.supporter::%uuid of player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.supporter::%uuid of player%} to player + set {db_channel.%uuid of player%} to "supporter" + send "&aYou are now in the &bSupporter&a channel!" + argument 2 is "g" or "global": + {db_channel.global::%uuid of player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.global::%uuid of player%} to player + set {db_channel.%uuid of player%} to "global" + send "&aYou are now in the &fGlobal&a channel!" + argument 1 is "who": + argument 2 is not set: + loop {db_channel.%{db_channel.%uuid of player%}%::*}: + send "%loop-value%" + argument 2 is set: + set {_player} to argument 2 parsed as offline player + message "&7%{_player}% &ais talking in &7%{db_channel.%uuid of {_player}%}%&a chat." + {db_channel.global::%uuid of {_player}%} is set: + message "&7%{_player}% &ais in the Global channel." + {db_channel.supporter::%uuid of {_player}%} is set: + message "&7%{_player}% &ais in the Supporter channel." + {db_channel.mech::%uuid of {_player}%} is set: + message "&7%{_player}% &ais in the Mechanic channel." + {db_channel.staff::%uuid of {_player}%} is set: + message "&7%{_player}% &ais in the Mod channel." + argument 1 is "alerts" or "alert" or "a": + argument 2 is not set: + {db_alerts.on.%uuid of player%} is not set: + set {db_alerts.on.%uuid of player%} to true + send "&aYour chat alerts are now &eOn&a." + stop + {db_alerts.on.%uuid of player%} is true: + set {db_alerts.on.%uuid of player%} to false + send "&aYour chat alerts are now &eOff&a." + stop + {db_alerts.on.%uuid of player%} is false: + set {db_alerts.on.%uuid of player%} to true + send "&aYour chat alerts are now &eOn&a." + stop + argument 2 is "off": + set {db_alerts.on.%uuid of player%} to false + send "&aYour chat alerts are now &eOff&a." + argument 2 is "on": + set {db_alerts.on.%uuid of player%} to true + send "&aYour chat alerts are now &eOn&a." + +command /star []: + permission: obam.admin + trigger: + set {_player} to argument 1 parsed as offline player + argument 2 is "clear": + clear {db_star.%uuid of {_player}%} + send "&aCleared Star setting for %argument 1%" + stop + set {db_star.%uuid of {_player}%} to argument 2 + send "&aStar for %argument 1% set to <%argument 2%>%argument 2%&a." + +command /tell [] []: + permission: obam.free + trigger: + argument 1 is not set: + {db_channel.%uuid of player%} is "private": + send "&aYou have left your private conversation with %{private.%player%}%" + make player execute command "/ch g" + stop + {db_channel.%uuid of player%} is not "private": + send "&cYou are not in a private conversation!" + stop + argument 2 is not set: + send "&dYou are now in a private conversation with &e%argument 1%" + set {private.%player%} to "%argument 1%" + set {db_channel.%uuid of player%} to "private" + argument 2 is set: + send "&d%player% ➽ %argument 1%: %argument 2%" to player + loop all players: + loop-player is argument 1: + set {_found} to true + {_found} is set: + send "&d%player% ➽ %argument 1%: %argument 2%" to argument 1 + set {_player} to argument 1 parsed as offline player + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of argument 1 with pitch 2 + {_found} is not set: + set {_message} to "&d%player% ➽ %argument 1%: %argument 2%" + execute console command "privatepush %argument 1% %{_message}%" + +command /fishslap : + permission: obam.free + trigger: + {cool.fish.%player%} is not set: + set {cool.fish.%player%} to now + add 5 seconds to {cool.fish.%player%} + set {_wait} to difference between {cool.fish.%player%} and now + {_wait} is less than 4 seconds: + send "&cYou are slapping too much! Calm down D:" to player + stop + send "&aYou just slapped &e%argument%&a!" + set {cool.fish.%player%} to now + loop all players: + "%loop-player%" is argument + set {_found} to true + {db_alerts.on.%uuid of loop-player%} is true + play slime attack at location of loop-player with pitch 1 + send "&e%player% &ajust slapped you with a giant fish!" to loop-player + stop + {_found} is not set: + forward command "fishcatch %argument% %player%" to console \ No newline at end of file diff --git a/On Server Files/TacoCart/Com/schatbridge.g.sk b/On Server Files/TacoCart/Com/schatbridge.g.sk new file mode 100644 index 0000000..6a8ee08 --- /dev/null +++ b/On Server Files/TacoCart/Com/schatbridge.g.sk @@ -0,0 +1,100 @@ +command /globalpush : + permission: obam.admin + trigger: + forward command "globalcatch %argument%" to console + +command /globalcatch : + permission: obam.admin + trigger: + loop {db_channel.global::*}: + clear {_player} + set {_player} to loop-value parsed as player + set {_message} to "&f%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&f" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_player} is online: + send "%{_message}%" to {_player} + +command /modpush : + permission: obam.admin + trigger: + forward command "modcatch %argument%" to console + +command /modcatch : + permission: obam.admin + trigger: + loop {db_channel.staff::*}: + clear {_player} + set {_player} to loop-value parsed as player + set {_message} to "&a%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&a" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_player} is online: + send "%{_message}%" to {_player} + +command /supporterpush : + permission: obam.admin + trigger: + forward command "supportercatch %argument%" to console + +command /supportercatch : + permission: obam.admin + trigger: + loop {db_channel.supporter::*}: + clear {_player} + set {_player} to loop-value parsed as player + set {_message} to "&b%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&b" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_player} is online: + send "%{_message}%" to {_player} + +command /mechpush : + permission: obam.admin + trigger: + forward command "mechcatch %argument%" to console + +command /mechcatch : + permission: obam.admin + trigger: + loop {db_channel.mech::*}: + clear {_player} + set {_player} to loop-value parsed as player + set {_message} to "&e%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&e" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_player} is online: + send "%{_message}%" to {_player} + +command /privatepush : + permission: obam.admin + trigger: + forward command "privatecatch %argument 1% %argument 2%" to console + +command /privatecatch : + permission: obam.admin + trigger: + loop all players: + "%loop-player%" is argument 1: + send argument 2 to loop-player + {db_alerts.on.%uuid of loop-player%} is true: + play level up at location of loop-player with pitch 2 + stop + +command /fishcatch : + permission: obam.admin + trigger: + loop all players: + "%loop-player%" is argument 1: + {db_alerts.on.%uuid of loop-player%} is true: + play slime attack at location of loop-player with pitch 1 + send "&e%argument 2% &ajust slapped you with a giant fish!" to loop-player + stop diff --git a/On Server Files/TacoCart/Com/xbroad.g.sk b/On Server Files/TacoCart/Com/xbroad.g.sk new file mode 100644 index 0000000..142e6e2 --- /dev/null +++ b/On Server Files/TacoCart/Com/xbroad.g.sk @@ -0,0 +1,18 @@ +command /crossmessage : + permission: obam.admin + trigger: + + forward command "crossbroad %argument%" to console + +command /xb : + permission: obam.admin + trigger: + + broadcast "&3[&6STAFF&3] &f%colored argument%" + forward command "crossbroad &3[&6STAFF&3] &f%argument%" to console + +command /crossbroad : + permission: obam.admin + trigger: + + broadcast "%colored argument%" \ No newline at end of file diff --git a/On Server Files/TacoCart/Perk/exclusive.sk b/On Server Files/TacoCart/Perk/exclusive.sk new file mode 100644 index 0000000..e758c42 --- /dev/null +++ b/On Server Files/TacoCart/Perk/exclusive.sk @@ -0,0 +1,3 @@ +on connect: + player does not have permission "obam.supporter" + kick the player due to "&cThis beta is for Supporters only!" \ No newline at end of file diff --git a/On Server Files/TacoCart/Perk/hats.g.sk b/On Server Files/TacoCart/Perk/hats.g.sk new file mode 100644 index 0000000..623f92d --- /dev/null +++ b/On Server Files/TacoCart/Perk/hats.g.sk @@ -0,0 +1,136 @@ +on script load: + delete {db_perk.hats::*} + set {db_perk.hats::01.dirt} to "dirt;&3&lDirt Hat;&6Carefully woven together from the finest dirt||&6in all of &3OBAM!;sudo PLAYER hat dirt" + set {db_perk.hats::02.beta} to "iron pressure plate;&3&lBeta Supporter Hat;&6This Special hat is for all members who supported||&6during our beta period and is a thank you from the||&3OBAM &6Staff for those that helped us when we were||&6starting. THANK YOU!;sudo PLAYER hat beta;&6This Special hat is for all members who supported||&6during our beta period and is a thank you from the||&3OBAM &6Staff for those that helped us when we were||&6starting. THANK YOU!|| ||&cThis hat is only available to our Beta Supporters.;sudo PLAYER hat error" + set {db_perk.hats::03.quartz} to "quartz block;&3&lQuartz Hat;&6This hat is crafted from the smoothest quartz||&6found in the hottest part of the Nether!;sudo PLAYER hat quartz;&6This hat is crafted from the smoothest quartz||&6found in the hottest part of the Nether!|| ||&cThis hat is only available to our Supporters.;sudo PLAYER hat error" + set {db_perk.hats::04.cactus} to "cactus;&3&lPrickly Hat;&6Wear this hat when you're feeling a bit....Prickly!;sudo PLAYER hat cactus;&6Wear this hat when you're feeling a bit....Prickly!|| ||&cThis hat must be purchased from the OBAMCraft shop.|| ||&eUse &f/buy &ein the hub to purchase the &3Prickly Hat|| ||&ePrice: &a$2.00;sudo PLAYER hat error" + +command /hatmenu []: + trigger: + loop {db_perk.hats::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lHat Rack" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.hats::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "02.beta": + player does not have permission "obam.beta.hat": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.quartz": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.cactus": + {db_purchase.cactus.%uuid of player%} is not set: + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /hat []: + trigger: + argument 1 is not set: + message "&cPlease use &7/OBAM &cto access your Hat Rack." + stop + argument 1 is "error": + message "&cThis hat is not available to you." + stop + argument 1 is "dirt": + set {_hat} to dirt + argument 1 is "beta": + player has permission "obam.beta.hat": + set {_hat} to iron pressure plate + argument 1 is "quartz": + player has permission "obam.supporter": + set {_hat} to quartz block + argument 1 is "cactus": + {db_purchase.cactus.%uuid of player%} is true: + set {_hat} to cactus + player has permission "obam.smod": + set {_hat} to cactus + send "&aYou now have a hat :D" to player + name of player's helmet is "hat": + set player's helmet to {_hat} + set name of player's helmet to "hat" + stop + player doesn't have space for player's helmet: + send "&cYour inventory is full :(" to player + stop + give player's helmet to player + set player's helmet to {_hat} + set name of player's helmet to "hat" + +command /hatadd : + permission: obam.admin + trigger: + add arg 1 to {hat.items.list::*} + +command /hatshow: + permission: obam.admin + trigger: + loop {hat.items.list::*}: + send "%loop-value%" to player + +every 0.3 seconds: + loop all players: + loop-player has anything named "hat": + remove anything named "hat" from loop-player + send "&cWhy did you have a hat in your pocket?" to loop-player + +on drop: + name of event-item is "hat": + cancel event + +on place: + name of player's tool is "hat": + cancel event + +command /hattoggle: + permission: obam.mod + trigger: + {hat.off.%player%} is not set: + set {hat.off.%player%} to true + send "&aYou have turned off your hat" to player + stop + {hat.off.%player%} is false: + set {hat.off.%player%} to true + send "&aYou have turned off your hat" to player + stop + {hat.off.%player%} is true: + set {hat.off.%player%} to false + send "&aYou have turned on your hat" to player + stop + +#staff hats constant +every 1 second: + loop all players: + set {_bypass} to false + {hat.off.%loop-player%} is true: + set {_bypass} to true + {_bypass} is false: + loop-player is "ISMOOCH": + set loop-player's helmet to command block named "&d&lSmooch's Sassy Hat" + loop-player is "Electric_Hamster": + set loop-player's helmet to sponge named "&b&lThe Hamster Hat" \ No newline at end of file diff --git a/On Server Files/TacoCart/Perk/hitsounds.g.sk b/On Server Files/TacoCart/Perk/hitsounds.g.sk new file mode 100644 index 0000000..f38632f --- /dev/null +++ b/On Server Files/TacoCart/Perk/hitsounds.g.sk @@ -0,0 +1,336 @@ +on script load: + delete {db_perk.hit.class::*} + delete {db_perk.hit.hand::*} + delete {db_perk.hit.sword::*} + delete {db_perk.hit.axe::*} + delete {db_perk.hit.pickaxe::*} + delete {db_perk.hit.bow::*} + delete {db_perk.hit.rod::*} + + set {db_perk.hit.class::01.hand} to "stone button;&3Punch Sounds;&6Click to modify the sound you make when you||&6attack with your fists.;sudo PLAYER hitmenuchange hand;&6Click to modify the sound you make when you||&6attack with your fists.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::02.sword} to "iron sword;&3Sword Sounds;&6Click to modify the sound you make when you||&6attack with a sword.;sudo PLAYER hitmenuchange sword;&6Click to modify the sound you make when you||&6attack with a sword.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::03.axe} to "iron axe;&3Axe Sounds;&6Click to modify the sound you make when you||&6attack with an axe.;sudo PLAYER hitmenuchange axe;&6Click to modify the sound you make when you||&6attack with an axe.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::04.pickaxe} to "iron pickaxe;&3Pickaxe Sounds;&6Click to modify the sound you make when you||&6attack with a pickaxe.;sudo PLAYER hitmenuchange pickaxe;&6Click to modify the sound you make when you||&6attack with a pickaxe.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::05.bow} to "bow;&3Bow Sounds;&6Click to modify the sound you make when you||&6attack with a bow.;sudo PLAYER hitmenuchange bow;&6Click to modify the sound you make when you||&6attack with a bow.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::06.rod} to "fishing rod;&3Fishing Rod Sounds;&6Click to modify the sound you make when you||&6attack with a fishing rod.;sudo PLAYER hitmenuchange rod;&6Click to modify the sound you make when you||&6attack with a fishing rod.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::07.air} to "air" + set {db_perk.hit.class::08.air} to "air" + set {db_perk.hit.class::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your player.;sudo PLAYER hitsoundclear PLAYER" + + set {db_perk.hit.hand::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound hand note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound hand arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound hand anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound hand chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound hand click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound hand level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound hand villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::08.air} to "air" + set {db_perk.hit.hand::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound hand clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + + set {db_perk.hit.sword::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound sword note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound sword arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound sword anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound sword chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound sword click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound sword level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound sword villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::08.air} to "air" + set {db_perk.hit.sword::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound sword clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + + set {db_perk.hit.axe::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound axe note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound axe arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound axe anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound axe chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound axe click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound axe level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound axe villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::08.air} to "air" + set {db_perk.hit.axe::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound axe clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + + set {db_perk.hit.pickaxe::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound pickaxe note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound pickaxe arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound pickaxe anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound pickaxe chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound pickaxe click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound pickaxe level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound pickaxe villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::08.air} to "air" + set {db_perk.hit.pickaxe::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound pickaxe clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + + set {db_perk.hit.bow::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound bow note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound bow arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound bow anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound bow chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound bow click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound bow level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound bow villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::08.air} to "air" + set {db_perk.hit.bow::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound bow clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + + set {db_perk.hit.rod::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound rod note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound rod arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound rod anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound rod chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound rod click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound rod level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound rod villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::08.air} to "air" + set {db_perk.hit.rod::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound rod clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + +command /hitclassmenu: + trigger: + loop {db_perk.hit.class::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lHit Sound Classes" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.hit.class::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.hand": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.sword": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.axe": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.pickaxe": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "05.bow": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "06.rod": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /hitmenuchange []: + trigger: + argument 1 is set: + send "&aBringing up menu..." + wait 0.5 seconds + make player execute command "/hitmenu %argument 1%" + +command /hitmenu []: + trigger: + argument 1 is not set: + message "&cPlease use &7/OBAM &cto access your Hit Menu." + stop + argument 1 is "error": + message "&cThis hit class is not available to you." + stop + set {_type} to argument 1 + loop {db_perk.hit.%{_type}%::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lHit Sound Classes" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.hit.%{_type}%::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.note": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.arrow": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.anvil": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.chest": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "05.click": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "06.level": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "07.villager": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "08.clear": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + set {_thing1} to loop-index parsed as text + set {_thing2::*} to {_thing1} split at "." + set {_slot} to {_thing2::1} parsed as an integer + set {_slot} to {_slot} - 1 + format slot {_slot} of player with {_what} to be unstealable + format slot {_slot} of player with {_what} to close then run {_command} + +command /hitsound [] []: + trigger: + argument 1 is not set: + message "&cPlease use &7/OBAM &cto access your Hit Menu." + stop + argument 2 is "error": + message "&cThis hit sound is not available to you." + stop + set {_what} to argument 1 + set {_sound} to argument 2 + argument 2 is "clear": + clear {hit.%{_what}%.%player%} + send "&aAttack sounds cleared!" + stop + set {hit.%{_what}%.%player%} to "%{_sound}%" + send "&aAttack sound set to &e%{_sound}%!" + +on damage: + {hit.%attacker%} is set: + delete {hit.%attacker%} + attacker's tool is air: + set {_what} to "hand" + attacker's tool is a sword: + set {_what} to "sword" + attacker's tool is an axe: + set {_what} to "axe" + attacker's tool is a pickaxe: + set {_what} to "pickaxe" + attacker's tool is a bow: + set {_what} to "bow" + attacker's tool is a fishing rod: + set {_what} to "rod" + {hit.%{_what}%.%attacker%} is set: + {hit.%{_what}%.%attacker%} is "note": + chance of 14%: + play note bass at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 16%: + play note piano at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 20%: + play note bass drum at location of attacker with pitch 1 + set {_play} to true + chance of 25%: + play note sticks at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 33%: + play note bass guitar at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 50%: + play note snare drum at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play note pling at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "arrow": + chance of 50%: + play shoot arrow at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play arrow hit at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "chest": + chance of 50%: + play chest close at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play chest close at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "anvil": + chance of 33%: + play anvil break at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 50%: + play anvil land at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play anvil use at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "click": + play click at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "level": + chance of 50%: + play level up at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play orb pickup at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "villager": + chance of 16%: + play villager yes at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 20%: + play villager no at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 25%: + play villager death at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 33%: + play villager haggle at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 50%: + play villager idle at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play villager hit at location of attacker with pitch 1 + +command /hitsoundclear : + trigger: + delete {hit.hand.%argument 1%} + delete {hit.sword.%argument 1%} + delete {hit.axe.%argument 1%} + delete {hit.pickaxe.%argument 1%} + delete {hit.bow.%argument 1%} + delete {hit.rod.%argument 1%} + message "&2All of your hit sounds have been cleared." \ No newline at end of file diff --git a/On Server Files/TacoCart/Perk/otam.g.sk b/On Server Files/TacoCart/Perk/otam.g.sk new file mode 100644 index 0000000..1480de2 --- /dev/null +++ b/On Server Files/TacoCart/Perk/otam.g.sk @@ -0,0 +1,142 @@ +every 1 second: + + set {_hold} to now + + {db_time.extend.tam} is less than now: + + clear {db_tam.bonus} + set {db_current.bonus} to false + clear {db_time.extend.tam} + clear {alert.tam.lastminute} + broadcast "&3&l۝TAM: &dTAM Bonus has Ended!" + execute console command "crossmessage &3&l۝TAM: &dTAM Bonus has Ended!" + + set {_diff} to difference between {db_time.extend.tam} and now + + {_diff} is less than 15 minutes: + + {alert.tam.lastminute} is not set: + set {alert.tam.lastminute} to true + + broadcast "&3&l۝TAM: &dLess than 15 minutes remaining of TAM Bonus at &e%{db_tam.bonus}%&d!" + execute console command "crossmessage &3&l۝TAM: &dLess than 15 minutes remaining of TAM Bonus at &e%{db_tam.bonus}%&d!" + + +command /tamextended : + permission: obam.admin + trigger: + + {db_time.extend.tam} is not set: + set {db_time.extend.tam} to now + {db_tamstats.time.%argument 2%} is not set: + set {db_tamstats.time.%argument 2%} to 0 + + #Not meant to be a real option.. just for debugging + arg 1 is 5: + + add 5 minutes to {db_time.extend.tam} + add 5 to {db_tamstats.time.%argument 2%} + + arg 1 is 30: + + add 30 minutes to {db_time.extend.tam} + add 30 to {db_tamstats.time.%argument 2%} + + arg 1 is 60: + + add 1 hour to {db_time.extend.tam} + add 60 to {db_tamstats.time.%argument 2%} + + arg 1 is 90: + + add 90 minutes to {db_time.extend.tam} + add 90 to {db_tamstats.time.%argument 2%} + + arg 1 is 120: + + add 2 hours to {db_time.extend.tam} + add 120 to {db_tamstats.time.%argument 2%} + + broadcast "&3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e%argument 1% Minutes&d!" + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e%argument 1% Minutes&d!" + + set {_diff} to difference between {db_time.extend.tam} and now + + broadcast "&3&l۝TAM: &e%{_diff}% &dremaining!" + execute console command "crossmessage &3&l۝TAM: &e%{_diff}% &dremaining!" + broadcast "&3&l۝TAM: &dUse &e/tam &dfor more details!" + execute console command "crossmessage &3&l۝TAM: &dUse &e/tam &dfor more details!" + clear {alert.tam.lastminute} + + set {db_current.bonus} to true + {db_tam.bonus} is not set: + + set {db_tam.bonus} to 0.1 + + {db_tamstats.bonus.%argument 2%} is not set: + set {db_tamstats.bonus.%argument 2%} to 0 + + add 0.1 to {db_tamstats.bonus.%argument 2%} + + broadcast "&3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by &e0.1&d!" + broadcast "&3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d! " + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by 0.1! The TAM Bonus is now at &e%{db_tam.bonus}%&d! " + execute console command "crossmessage &3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d! " + +command /tambonus : + permission: obam.admin + trigger: + + {db_tamstats.bonus.%argument 2%} is not set: + set {db_tamstats.bonus.%argument 2%} to 0 + + {db_tam.bonus} is not set: + set {db_tam.bonus} to 0 + + add argument 1 to {db_tam.bonus} + add argument 1 to {db_tamstats.bonus.%argument 2%} + + broadcast "&3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by &e%argument 1%&d!" + broadcast "&3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d!" + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by &e%argument 1%&d! The TAM Bonus is now at &e%{db_tam.bonus}%&d!" + execute console command "crossmessage &3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d!" + + + {db_time.extend.tam} is not set: + set {db_time.extend.tam} to now + + {db_tamstats.time.%argument 2%} is not set: + set {db_tamstats.time.%argument 2%} to 0 + + add 60 to {db_tamstats.time.%argument 2%} + + add 1 hour to {db_time.extend.tam} + clear {alert.tam.lastminute} + broadcast "&3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e60 Minutes&d!" + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e60 Minutes&d!" + + set {_diff} to difference between {db_time.extend.tam} and now + + broadcast "&3&l۝TAM: &e%{_diff}% &dremaining!" + execute console command "crossmessage &3&l۝TAM: &e%{_diff}% &dremaining!" + broadcast "&3&l۝TAM: &dUse &e/tam &dfor more details!" + execute console command "crossmessage &3&l۝TAM: &dUse &e/tam &dfor more details!" + + + + +# Debugging Clear command +command /tambonusclear: + permission: obam.admin + trigger: + + clear {db_tam.bonus} + set {db_current.bonus} to false + clear {db_time.extend.tam} + clear {alert.tam.lastminute} + + send "&3&l۝TAM: &dTAM Bonus Cleared" to console + send "&3&l۝TAM: &dTAM Bonus Cleared" + + + \ No newline at end of file diff --git a/On Server Files/TacoCart/Perk/perks.g.sk b/On Server Files/TacoCart/Perk/perks.g.sk new file mode 100644 index 0000000..112c44a --- /dev/null +++ b/On Server Files/TacoCart/Perk/perks.g.sk @@ -0,0 +1,101 @@ +on script load: + delete {db_perk.main::*} + set {db_perk.main::01.hats} to "iron pressure plate;&3Hat Rack;&6Gives you access to your virtual Hat Rack.;sudo PLAYER obam hatmenu" + set {db_perk.main::02.pets} to "lead;&3Pet Stable;&6Opens up your Pet Stable to summon your pets.;sudo PLAYER obam petmenu" + set {db_perk.main::03.trails} to "arrow;&3Trails Menu;&6Opens up your Projectile Trails Menu.;sudo PLAYER obam trailmenu" + set {db_perk.main::04.splash} to "cobweb;&3Splash Menu;&6Opens up your Splash Menu.;sudo PLAYER obam splashmenu" + set {db_perk.main::05.hit} to "jukebox;&3Hit Sound Menu;&6Opens up your Hit Sound Menu.;sudo PLAYER obam hitclassmenu" + set {db_perk.main::06.horse} to "horse spawn egg;&3Horse Changer Upper;&6Want to Skellify of Zombify your ride?;sudo PLAYER obam horsemenu" + set {db_perk.main::07.blank} to "air" + set {db_perk.main::08.shop} to "emerald;&3Shop;&6Opens up the Shop Menu.;sudo PLAYER obam shop" + set {db_perk.main::09.ci} to "command block;&3Custom Items Menu;&6Opens the Custom Item menu to access items.;sudo PLAYER obam ci" + +command /obam []: + permission: obam.free + trigger: + argument 1 is not set: + loop {db_perk.main::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lOBAM Perks and Shop Menu" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.main::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "07.ci": + player does not have permission "obam.smod": + clear {_what} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + loop-index is "07.ci": + player does not have permission "obam.smod": + clear {_what} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + argument 1 is set: +# argument 1 is "hatmenu": +# "%player's world%" contains "taco": +# message "&cYou can not use that here." +# stop + argument 1 is "petmenu": + "%player's world%" is "kitspawnroom" or "vacant": + message "&cYou can not use that here." + stop + "%player's world%" contains "cart": + message "&cYou can not use that here." + stop +# argument 1 is "trailmenu": +# "%player's world%" contains "taco": +# message "&cYou can not use that here." +# stop +# argument 1 is "splashmenu": +# "%player's world%" contains "taco": +# message "&cYou can not use that here." +# stop +# argument 1 is "hitclassmenu": +# "%player's world%" contains "taco": +# message "&cYou can not use that here." +# stop + argument 1 is "horsemenu": + "%player's world%" is "Death-hub", "skyworld", "kitspawnroom" or "vacant": + message "&cYou can not use that here." + stop + "%player's world%" contains "taco": + message "&cYou can not use that here." + stop + argument 1 is "shop": + "%player's world%" is "Death-hub", "skyworld", "kitspawnroom" or "vacant": + message "&cYou can not use that here." + stop + "%player's world%" contains "taco": + message "&cYou can not use that here." + stop + argument 1 is "ci": + "%player's world%" is "Death-hub", "skyworld", "kitspawnroom" or "vacant": + message "&cYou can not use that here." + stop + "%player's world%" contains "taco": + message "&cYou can not use that here." + stop + send "&aBringing up menu..." + wait 0.5 seconds + make player execute command "/%argument 1%" + +command /sudo : + permission: obam.admin + trigger: + make argument 1 execute argument 2 \ No newline at end of file diff --git a/On Server Files/TacoCart/Perk/pets.g.sk b/On Server Files/TacoCart/Perk/pets.g.sk new file mode 100644 index 0000000..1833dcf --- /dev/null +++ b/On Server Files/TacoCart/Perk/pets.g.sk @@ -0,0 +1,190 @@ +on script load: + delete {db_perk.pets::*} + set {db_perk.pets::01.ismooch} to "sheep spawn egg;&3iSmooch;&6The sassiest sheep in all the lands!;sudo PLAYER pet ismooch" + set {db_perk.pets::02.bruswain} to "bat spawn egg;&3BruSwain;&6This lovable bat lost his parents at a||&6young age. Thank you for taking care||&6of him!;sudo PLAYER pet bruswain;bat spawn egg;&3BruSwai&6This lovable bat lost his parents at a||&6young age. Thank you for taking care||&6of him!|| ||&cThis pet is only available to our Beta Supporters.;sudo PLAYER pet error" + set {db_perk.pets::03.sparky} to "creeper spawn egg;&3Sparky;&6While this creeper appears to have a||&6dangerously electrifying personality, we||&6promise he’s completely safe!;sudo PLAYER pet sparky;creeper spawn egg;&3Sparky;&6While this creeper appears to have a||&6dangerously electrifying personality, we||&6promise he’s completely safe!|| ||&cThis pet is only available to our Supporters.;sudo PLAYER pet error" + set {db_perk.pets::04.bacon} to "pig spawn egg;&3Bacon;&6Rescued from the final stages of the||&6slaughter house, this pig is extremely||&6grateful for your love and kindness!;sudo PLAYER pet bacon;pig spawn egg;&3Baco&6Rescued from the final stages of the||&6slaughter house, this pig is extremely||&6grateful for your love and kindness!|| ||&cThis pet must be purchased from the OBAMCraft shop.|| ||&eUse &f/buy &ein the hub purchase &3Bacon|| ||&ePrice: &a$5.00;sudo PLAYER pet error" + set {db_perk.pets::05.blank} to "air" + set {db_perk.pets::06.blank} to "air" + set {db_perk.pets::07.lead} to "lead;&3Leash;&6Pets getting out of control? Click this||&6to attach a lead to all of your||&6summoned pets!;sudo PLAYER pet lead" + set {db_perk.pets::08.blank} to "air" + set {db_perk.pets::09.clear} to "fire;&3Clear;&6Click to clear all summoned pets!;sudo PLAYER pet clear" + +command /petmenu: + trigger: + loop {db_perk.pets::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lPet Stable" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.pets::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "02.bruswain": + player does not have permission "obam.beta.hat": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.sparky": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.bacon": + {db_purchase.bacon.%uuid of player%} is not set: + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +every 1 second: + loop all entities: + loop-entity is sheep or bat or powered creeper or pig: + name of loop-entity is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon": + spawn 4 particle heart offset by 1, 1, 1 at location of loop-entity + {owner.%loop-entity%} is not set: + kill loop-entity + distance between location of loop-entity and location of {owner.%loop-entity%} is greater than 20: + teleport loop-entity to location of {owner.%loop-entity%} + +on damage of sheep or bat or powered creeper or pig: + name of victim is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon": + cancel event + +on quit: + kill {pets.%player%} + clear {pets.%player%} + loop {pets.%player%::*}: + clear {owner.%loop-value%} + kill loop-value + clear {pets.%player%::*} + stop + +command /pet []: + trigger: + world is "kitpvpkillingfields": + send "&cYou can not do that here" to player + stop + argument is not set: + message "&cPlease use &7/OBAM &cto access your Pet Stable." + stop + argument is "error": + message "&cThis pet is not available to you." + stop + argument is "lead": + loop {pets.%player%::*}: + teleport loop-value to location of player + make player leash loop-value + stop + argument is "clear": + kill {pets.%player%} + clear {pets.%player%} + loop {pets.%player%::*}: + kill loop-value + clear {owner.%loop-value%} + clear {pets.%player%::*} + stop + {pets.%player%} is set: + player does not have permission "obam.supporter": + send "&cYou can only have one pet at a time!" to player + stop + size of {pets.%player%::*} is 5: + send "&cYou can only have 5 pets at a time!" to player + stop + argument is "ISMOOCH": + spawn sheep at location of player + set name of spawned sheep to "&aISMOOCH" + set color of spawned sheep to pink + make player leash spawned sheep + set {pets.%player%} to spawned sheep + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + argument is "BruSwain": + player has permission "obam.beta.hat": + spawn bat at location of player + set name of spawned bat to "&aBru Swain" + make player leash spawned bat + set {pets.%player%} to spawned bat + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + send "&cThis is for beta supporters only!" to player + argument is "Sparky": + player has permission "obam.supporter": + spawn powered creeper at location of player + set name of spawned powered creeper to "&aSparky" + make player leash spawned powered creeper + set {pets.%player%} to spawned powered creeper + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + send "&cYou must be a supporter to do this!" to player + argument is "bacon": + {db_purchase.bacon.%uuid of player%} is true: + spawn pig at location of player + set name of spawned pig to "&aBacon" + make player leash spawned pig + set {pets.%player%} to spawned pig + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + player has permission "obam.smod": + spawn pig at location of player + set name of spawned pig to "&aBacon" + make player leash spawned pig + set {pets.%player%} to spawned pig + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + send "&cYou must purchase this pet on the online store!" + stop + argument is "dragon": + send "&cI bet you wish you could...." to player + stop + send "&cThat is not an option!" to player + +on explosion prime: + entity is powered creeper: + name of entity is "&aSparky": + cancel event + +on death of a sheep or a bat or a powered creeper or a pig: + name of victim is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon" + clear drops + +on right click on a sheep or a bat or a powered creeper or a pig: + name of target is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon": + cancel event + +on right click with wheat on sheep: + name of event-entity is "&aISMOOCH" + cancel event + send "&cYou can not mate pets D:" to event-player + +on right click with carrot on sheep: + name of event-entity is "&aBacon" + cancel event + send "&cYou can not mate pets D:" to event-player + +on right click with shears on sheep: + name of event-entity is "&aISMOOCH" + cancel event + send "&cYou can not shear pets!" to event-player diff --git a/On Server Files/TacoCart/Perk/splash.g.sk b/On Server Files/TacoCart/Perk/splash.g.sk new file mode 100644 index 0000000..c587a4c --- /dev/null +++ b/On Server Files/TacoCart/Perk/splash.g.sk @@ -0,0 +1,214 @@ +on script load: + delete {db_perk.splash::*} + set {db_perk.splash::01.heart} to "red dye;&3Heart Particles;&6Click to enable a heart splash!;sudo PLAYER splash heart;red dye;&3Heart Particles;&6Click to enable a heart splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::02.flame} to "fire;&3Flame Particles;&6Click to enable a flame splash!;sudo PLAYER splash flame;fire;&3Flame Particles;&6Click to enable a flame splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::03.reddust} to "magma cream;&3Unstable Gas Particles;&6Click to enable an unstable gas splash!;sudo PLAYER splash reddust;magma cream;&3Unstable Gas Particles;&6Click to enable an unstable gas splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::04.smoke} to "charcoal;&3Dark Smoke Particles;&6Click to enable a dark smoke splash!;sudo PLAYER splash smoke;charcoal;&3Dark Smoke Particles;&6Click to enable a dark smoke splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::05.waterdrip} to "water;&3Water Drip Particles;&6Click to enable a water drip splash!;sudo PLAYER splash waterdrip;water;&3Water Drip Particles;&6Click to enable a water drip splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::06.lavadrip} to "lava;&3Lava Drip Particles;&6Click to enable a lava drip splash!;sudo PLAYER splash lavadrip;lava;&3Lava Drip Particles;&6Click to enable a lava drip splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::07.slime} to "slimeball;&3Slime Particles;&6Click to enable a slime splash!;sudo PLAYER splash slime;slimeball;&3Slime Particles;&6Click to enable a slime splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::08.note} to "jukebox;&3Music Notes Particles;&6Click to enable a music note splash!;sudo PLAYER splash note;jukebox;&3Music Notes Particles;&6Click to enable a music note splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::09.happy} to "villager spawn egg;&3Villager Particles “Happy”;&6Click to enable a happy villager splash!;sudo PLAYER splash happy;villager spawn egg;&3Villager Particles “Happy”;&6Click to enable a happy villager splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::10.angry} to "villager spawn egg;&3Villager Particles “Angry”;&6Click to enable a angry villager splash!;sudo PLAYER splash angry;villager spawn egg;&3Villager Particles “Angry”;&6Click to enable a angry villager splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::11.explode} to "tnt;&3Explosion Smoke Particles;&6Click to enable a explosion smoke splash!;sudo PLAYER splash explode;tnt;&3Explosion Smoke Particles;&6Click to enable a explosion smoke splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::12.snow} to "snow block;&3Snowflake Particles;&6Click to enable a snowflake splash!;sudo PLAYER splash snow;snow block;&3Snowflake Particles;&6Click to enable a snowflake splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::13.portal} to "nether portal;&3Nether Portal Particles;&6Click to enable a nether portal splash!;sudo PLAYER splash portal;nether portal;&3Nether Portal Particles;&6Click to enable a nether portal splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::14.cloud} to "bonemeal;&3Cloud Particles;&6Click to enable a cloud splash!;sudo PLAYER splash cloud;bonemeal;&3Cloud Particles;&6Click to enable a cloud splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::15.bubble} to "water bottle;&3Bubble Particles;&6Click to enable a bubble splash!;sudo PLAYER splash bubble;water bottle;&3Bubble Particles;&6Click to enable a bubble splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::16.blank} to "air" + set {db_perk.splash::17.blank} to "air" + set {db_perk.splash::18.clear} to "glass;&3Clear Particles;&6Click to clear your splash!;sudo PLAYER splash clear;glass;&3Clear Particles;&6Click to clear your splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + +command /splashmenu: + trigger: + loop {db_perk.splash::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lSplash Menu" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.splash::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.heart": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.flame": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.reddust": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.smoke": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "05.waterdrip": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "06.lavadrip": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "07.slime": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "08.note": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "09.happy": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "10.angry": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "11.explode": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "12.snow": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "13.portal": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "14.cloud": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "15.bubble": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "16.clear": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /splash []: + trigger: + argument is not set: + message "&cPlease use &7/OBAM &cto access the Splash Menu." + stop + argument is "error": + message "&cThis splash is not available to you." + stop + player has permission "obam.supporter": + argument is "heart": + set {splash.%player%} to "heart" + send "&aYou have enabled a &eHeart Splash&a!" + argument is "flame": + set {splash.%player%} to "flame" + send "&aYou have enabled a &eFlame Splash&a!" + argument is "reddust": + set {splash.%player%} to "reddust" + send "&aYou have enabled an &eUnstable Gas Splash&a!" + argument is "smoke": + set {splash.%player%} to "smoke" + send "&aYou have enabled a &eDark Smoke Splash&a!" + argument is "waterdrip": + set {splash.%player%} to "waterdrip" + send "&aYou have enabled a &eWater Drip Splash&a!" + argument is "lavadrip": + set {splash.%player%} to "lavadrip" + send "&aYou have enabled a &eLava Drip Splash&a!" + argument is "slime": + set {splash.%player%} to "slime" + send "&aYou have enabled a &eSlime Splash&a!" + argument is "note": + set {splash.%player%} to "note" + send "&aYou have enabled a &eMusic Note Splash&a!" + argument is "happy": + set {splash.%player%} to "happy" + send "&aYou have enabled a &eHappy Villager Splash&a!" + argument is "angry": + set {splash.%player%} to "angry" + send "&aYou have enabled an &eAngry Villager Splash&a!" + argument is "explode": + set {splash.%player%} to "explode" + send "&aYou have enabled an &eExplosion Smoke Splash&a!" + argument is "snow": + set {splash.%player%} to "snow" + send "&aYou have enabled a &eSnowflake Splash&a!" + argument is "bubble": + set {splash.%player%} to "bubble" + send "&aYou have enabled a &eBubble Splash&a!" + argument is "portal": + set {splash.%player%} to "portal" + send "&aYou have enabled a &eNether Portal Splash&a!" + argument is "cloud": + set {splash.%player%} to "cloud" + send "&aYou have enabled a &eCloud Splash&a!" + argument is "clear": + clear {splash.%player%} + send "&aYou have disabled your splash!" + +every 5 seconds: + loop all players: + clear {_amt} + loop-player is not sneaking + loop-player is sprinting: + set {_amt} to 100 + {_amt} is not set: + set {_amt} to 50 + {splash.%loop-player%} is set: + {splash.%loop-player%} is "bubble": + spawn 500 particle bubble offset by 2, 2, 2 at location of loop-player + {splash.%loop-player%} is "cloud": + spawn {_amt} particle cloud offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "heart": + spawn {_amt} particle heart offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "flame": + spawn {_amt} particle flame offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "reddust": + spawn {_amt} particle red dust offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "smoke": + spawn {_amt} particle large smoke offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "note": + spawn {_amt} particle note offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "lavadrip": + spawn {_amt} particle drip lava offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "waterdrip": + spawn {_amt} particle drip water offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "slime": + spawn {_amt} particle slime offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "happy": + spawn {_amt} particle happy villager offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "angry": + spawn {_amt} particle angry villager offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "explode": + spawn {_amt} particle large explode offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "snow": + spawn {_amt} particle snow shovel offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "portal": + spawn {_amt} particle portal offset by 1, 1, 1 at location of loop-player \ No newline at end of file diff --git a/On Server Files/TacoCart/Perk/suphorse.g.sk b/On Server Files/TacoCart/Perk/suphorse.g.sk new file mode 100644 index 0000000..da5685c --- /dev/null +++ b/On Server Files/TacoCart/Perk/suphorse.g.sk @@ -0,0 +1,70 @@ +on script load: + delete {db_perk.suphorse::*} + set {db_perk.suphorse::01.zombify} to "zombie spawn egg;&3Zombify your ride!;&6Feel like roaming the plains on your Zombified Horse?;sudo PLAYER suphorse zombify;zombie spawn egg;&3Zombify your ride!;&6Feel like roaming the plains on your Zombified Horse?|| ||&cThis ability is only available to our Supporters.;sudo PLAYER suphorse error" + set {db_perk.suphorse::02.skellify} to "skeleton spawn egg;&3Skellify your ride!;&6Feel like roaming the deserts on your Skellified Horse?;sudo PLAYER suphorse skellify;skeleton spawn egg;&3Skellify your ride!;&6Feel like roaming the deserts on your Skellified Horse?|| ||&cThis ability is only available to our Supporters.;sudo PLAYER suphorse error" + +command /horsemenu: + trigger: + loop {db_perk.suphorse::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lHorse O' Matic" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.suphorse::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.zombify": + player does not have permission "obam.beta.hat": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.skellify": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /suphorse []: + trigger: + player is not riding: + send "&cYou must be riding a horse to do this!" + stop + player's vehicle is not a horse: + send "&cYou must be riding a horse to do this!" + stop + argument is not set: + message "&cPlease use &7/OBAM &cto access your modify your horse." + stop + argument is "error": + message "&cThis ability is not available to you." + stop + "%player's world%" is "world": + set {_y} to y-coordinate of player + set {_x} to x-coordinate of player + set {_z} to z-coordinate of player + argument is "zombify": + execute console command "summon EntityHorse %{_x}% %{_y}% %{_z}% {Type:3,Tame:1}" + argument is "skellify": + execute console command "summon EntityHorse %{_x}% %{_y}% %{_z}% {Type:4,Tame:1}" + delete player's vehicle + stop + message "&cThis can only be used in the Regular World." \ No newline at end of file diff --git a/On Server Files/TacoCart/Perk/tam.g.sk b/On Server Files/TacoCart/Perk/tam.g.sk new file mode 100644 index 0000000..303d62b --- /dev/null +++ b/On Server Files/TacoCart/Perk/tam.g.sk @@ -0,0 +1,71 @@ +every 1 minute: + {db_tam.modifier} is not set: + set {db_tam.modifier} to 1 + set {_add} to {db_tam.modifier} + #OTAM Hook + {db_tam.bonus} is set: + add {db_tam.bonus} to {_add} + loop all players: + add {_add} to loop-player's balance + {session.tam.%loop-player%} is not set: + set {session.tam.%loop-player%} to 0 + add {_add} to {session.tam.%loop-player%} + {db_total.tam.%uuid of loop-player%} is not set: + {db_total.tam.%loop-player%} is set: + set {db_total.tam.%uuid of loop-player%} to {db_total.tam.%loop-player%} + else: + set {db_total.tam.%uuid of loop-player%} to 0 + add {_add} to {db_total.tam.%uuid of loop-player%} + {db_total.tam} is not set: + set {db_total.tam} to 0 + add {_add} to {db_total.tam} + {db_total.reg} is not set: + set {db_total.reg} to 0 + add {_add} to {db_total.reg} + +command /tam: + permission: obam.free + trigger: + send "&aTotal Tickets earned with -TAM-:" + send "&e%{db_total.tam.%uuid of player%}%" + send "&aTotal this session:" + send "&e%{session.tam.%player%}%" + send "&aTotal Tickets:" + send "&e%player's balance%" + #OTAM Hook + {db_tam.bonus} is not set: + send "&aCurrent -TAM- Modifier:" + send "&e%{db_tam.modifier}%" + #OTAM Hooks + {db_tam.bonus} is set: + send "&aCurrent -TAM- Modifier:" + send "&e%{db_tam.modifier}% &c&o+ %{db_tam.bonus}%" + send "&4Remaining -TAM- Bonus Time:" + set {_diff} to difference between {db_time.extend.tam} and now + send "&c%{_diff}%" + send "&4OTAM Time Contributions:" + send "&c%{db_tamstats.time.%uuid of player%}% minutes" + send "&4OTAM Bonus Contributions:" + send "&c%{db_tamstats.bonus.%uuid of player%}%" + +command /tamtotal: + permission: obam.admin + trigger: + send "&aTotal Global Tickets earned with -TAM-:" + send "&e%{db_total.tam}%" + send "&aRegular:" + send "&e%{db_total.reg}%" + send "&aSupporter:" + send "&e%{db_total.sup}%" + send "&aPlus:" + send "&e%{db_total.plus}%" + send "&aUltimate:" + send "&e%{db_total.ult}%" + +on join: + set {session.tam.%player%} to 0 + +command /tammodset : + permission: obam.admin + trigger: + set {db_tam.modifier} to argument diff --git a/On Server Files/TacoCart/Perk/tickets.g.sk b/On Server Files/TacoCart/Perk/tickets.g.sk new file mode 100644 index 0000000..df07df8 --- /dev/null +++ b/On Server Files/TacoCart/Perk/tickets.g.sk @@ -0,0 +1,68 @@ +#money stuff +#give player money +command /tixg : + description: Give a Player some money + usage: /tixg + executable by: console and players + permission: obam.admin + trigger: + + set {_player.balance} to player-argument's balance + set {_player} to player-argument + execute console command "/tls STAFF %arg 2% %{_player.balance}% INCREASE %{_player}% Ticket Adjustment by %player%" + add arg 2 to player-argument's balance + message "&aYou have been given &e%arg 2% Tickets&a. Your balance is now &e%player-argument's money%&a." to player-argument + message "You have granted %player-argument% %arg 2% Tickets" to player + + +command /tixr : + description: Subtract money from a Player + usage: /tixr + executable by: console and players + permission: obam.admin + trigger: + + + set {_valid} to argument 2 + set {_player.balance} to player-argument's balance + set {_player} to player-argument + + {_valid} is greater than {_player.balance}: + send "%player-argument% does not have that many tickets!" to player + stop + + execute console command "/tls STAFF %arg 2% %{_player.balance}% DEDUCT %{_player}% Ticket Adjustment by %player%" + + +#pay command +command /tixp : + description: Pay a Player + usage: /tixp + permission: obam.admin + trigger: + set {_curbalance} to player's money + set {_valid} to difference between {_curbalance} and argument 2 + + {_valid} is less than 0: + message "You do not have enough money!" to player + stop + + add arg 2 to player-argument's balance + remove arg 2 from player's balance + message "You have received %arg 2% Tickets from %player%. Your balance is now %player-argument's money%." to player-argument + message "You have paid %player-argument% %arg 2% Tickets. Your balance is now %player's money%." to player + +command /tix: + executable by: players + permission: obam.free + trigger: + send "&aYour current balance is &e%player's balance%&a!" to player + +command /tixpeek : + permission: obam.admin + trigger: + set {_player} to argument parsed as offline player + send "&e%argument%'s&a ticket balance is &e%{_player}'s balance%" to player + + + diff --git a/On Server Files/TacoCart/Perk/trails.g.sk b/On Server Files/TacoCart/Perk/trails.g.sk new file mode 100644 index 0000000..a163ad8 --- /dev/null +++ b/On Server Files/TacoCart/Perk/trails.g.sk @@ -0,0 +1,205 @@ +on script load: + delete {db_perk.trails::*} + set {db_perk.trails::01.heart} to "red dye;&3Heart Particles;&6Click to enable heart trails!;sudo PLAYER trails heart;red dye;&3Heart Particles;&6Click to enable heart trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::02.flame} to "fire;&3Flame Particles;&6Click to enable flame trails!;sudo PLAYER trails flame;fire;&3Flame Particles;&6Click to enable flame trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::03.reddust} to "magma cream;&3Unstable Gas Particles;&6Click to enablen unstable gas trails!;sudo PLAYER trails reddust;magma cream;&3Unstable Gas Particles;&6Click to enablen unstable gas trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::04.smoke} to "charcoal;&3Dark Smoke Particles;&6Click to enable dark smoke trails!;sudo PLAYER trails smoke;charcoal;&3Dark Smoke Particles;&6Click to enable dark smoke trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::05.waterdrip} to "water;&3Water Drip Particles;&6Click to enable water drip trails!;sudo PLAYER trails waterdrip;water;&3Water Drip Particles;&6Click to enable water drip trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::06.lavadrip} to "lava;&3Lava Drip Particles;&6Click to enable lava drip trails!;sudo PLAYER trails lavadrip;lava;&3Lava Drip Particles;&6Click to enable lava drip trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::07.slime} to "slimeball;&3Slime Particles;&6Click to enable slime trails!;sudo PLAYER trails slime;slimeball;&3Slime Particles;&6Click to enable slime trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::08.note} to "jukebox;&3Music Notes Particles;&6Click to enable music note trails!;sudo PLAYER trails note;jukebox;&3Music Notes Particles;&6Click to enable music note trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::09.happy} to "villager spawn egg;&3Villager Particles “Happy”;&6Click to enable happy villager trails!;sudo PLAYER trails happy;villager spawn egg;&3Villager Particles “Happy”;&6Click to enable happy villager trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::10.angry} to "villager spawn egg;&3Villager Particles “Angry”;&6Click to enable angry villager trails!;sudo PLAYER trails angry;villager spawn egg;&3Villager Particles “Angry”;&6Click to enable angry villager trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::11.explode} to "tnt;&3Explosion Smoke Particles;&6Click to enable explosion smoke trails!;sudo PLAYER trails explode;tnt;&3Explosion Smoke Particles;&6Click to enable explosion smoke trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::12.snow} to "snow block;&3Snowflake Particles;&6Click to enable snowflake trails!;sudo PLAYER trails snow;snow block;&3Snowflake Particles;&6Click to enable snowflake trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::13.portal} to "nether portal;&3Nether Portal Particles;&6Click to enable nether portal trails!;sudo PLAYER trails portal;nether portal;&3Nether Portal Particles;&6Click to enable nether portal trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::14.cloud} to "bonemeal;&3Cloud Particles;&6Click to enable cloud trails!;sudo PLAYER trails cloud;bonemeal;&3Cloud Particles;&6Click to enable cloud trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::15.blank} to "air" + set {db_perk.trails::16.blank} to "air" + set {db_perk.trails::17.blank} to "air" + set {db_perk.trails::18.clear} to "glass;&3Clear Particles;&6Click to clear your trails!;sudo PLAYER trails clear;glass;&3Clear Particles;&6Click to clear your trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + +command /trailmenu: + trigger: + loop {db_perk.trails::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lTrails Menu" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.trails::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.heart": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.flame": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.reddust": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.smoke": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "05.waterdrip": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "06.lavadrip": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "07.slime": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "08.note": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "09.happy": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "10.angry": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "11.explode": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "12.snow": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "13.portal": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "14.cloud": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "15.bubble": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "16.clear": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /trails []: + trigger: + argument is not set: + message "&cPlease use &7/OBAM &cto access the Trails Menu." + stop + argument is "error": + message "&cThis trail is not available to you." + stop + player has permission "obam.supporter": + delete {trail.%player%} + argument is "heart": + set {trails.%player%} to "heart" + send "&aYou have enabled &eHeart trails&a!" + argument is "flame": + set {trails.%player%} to "flame" + send "&aYou have enabled &eFlame trails&a!" + argument is "reddust": + set {trails.%player%} to "reddust" + send "&aYou have enabled &eUnstable Gas trails&a!" + argument is "smoke": + set {trails.%player%} to "smoke" + send "&aYou have enabled &eDark Smoke trails&a!" + argument is "waterdrip": + set {trails.%player%} to "waterdrip" + send "&aYou have enabled &eWater Drip trails&a!" + argument is "lavadrip": + set {trails.%player%} to "lavadrip" + send "&aYou have enabled &eLava Drip trails&a!" + argument is "slime": + set {trails.%player%} to "slime" + send "&aYou have enabled &eSlime trails&a!" + argument is "note": + set {trails.%player%} to "note" + send "&aYou have enabled &eMusic Note trails&a!" + argument is "happy": + set {trails.%player%} to "happy" + send "&aYou have enabled &eHappy Villager trails&a!" + argument is "angry": + set {trails.%player%} to "angry" + send "&aYou have enabled &eAngry Villager trails&a!" + argument is "explode": + set {trails.%player%} to "explode" + send "&aYou have enabled &eExplosion Smoke trails&a!" + argument is "snow": + set {trails.%player%} to "snow" + send "&aYou have enabled &eSnowflake trails&a!" + argument is "portal": + set {trails.%player%} to "portal" + send "&aYou have enabled &eNether Portal trails&a!" + argument is "cloud": + set {trails.%player%} to "cloud" + send "&aYou have enabled &eCloud trails&a!" + argument is "clear": + clear {trails.%player%} + send "&aYou have disabled your trails!" + +on shoot: + {trails.%shooter%} is set: + {trails.%shooter%} is "heart": + trail projectile with particle heart + {trails.%shooter%} is "flame": + trail projectile with particle flame + {trails.%shooter%} is "reddust": + trail projectile with particle red dust + {trails.%shooter%} is "smoke": + trail projectile with particle large smoke + {trails.%shooter%} is "bubble": + trail projectile with particle bubble + {trails.%shooter%} is "note": + trail projectile with particle note + {trails.%shooter%} is "lavadrip": + trail projectile with particle drip lava + {trails.%shooter%} is "waterdrip": + trail projectile with particle drip water + {trails.%shooter%} is "slime": + trail projectile with particle slime + {trails.%shooter%} is "happy": + trail projectile with particle happy villager + {trails.%shooter%} is "angry": + trail projectile with particle angry villager + {trails.%shooter%} is "explode": + trail projectile with particle large explode + {trails.%shooter%} is "snow": + trail projectile with particle snow shovel + {trails.%shooter%} is "portal": + trail projectile with particle portal + {trails.%shooter%} is "cloud": + trail projectile with particle cloud diff --git a/On Server Files/TacoCart/Tacocart/taco.sk b/On Server Files/TacoCart/Tacocart/taco.sk new file mode 100644 index 0000000..0af5ee1 --- /dev/null +++ b/On Server Files/TacoCart/Tacocart/taco.sk @@ -0,0 +1,1879 @@ +#Kell's Taco Cart Mini Game + +# To Do: +# legendary quest line +# Hub signs +# top players +# single player +# zombie taco + +#startfold info + +#Variables: +# {taco.variables::*} = controls all item and villager timers +# {taco.timers.%player%::*} = controls food timers +# {taco.player.%world%::*} = stores current players 1 & 2 +# {keystone.%world%} = World Keystone +# {taco.waypoint.%world%::*} = waypoints +# {taco.p1.spawns.%world%::*} = stores Player 1 customer spawns +# {taco.p2.spawns.%world%::*} = stores Player 1 customer spawns +# {taco.villager.name::*} = stores villager names as value, index is random number +# {taco.receipt1::*} = stores ingredients per type +# {taco.p1.customer.%world%::*} = stores Player 1 customer names +# {taco.p2.customer.%world%::*} = stores Player 1 customer names +# {taco.p1.order.%world%::*} = stores Player 1 customer orders +# {taco.p2.order.%world%::*} = stores Player 1 customer orders +# {taco.p1.signs.%world%::*} = stores Player 1 sign locations +# {taco.p2.signs.%world%::*} = stores Player 2 sign locations +# {taco.start.%world%::*} = stores Start Sign locations +# {taco.1.gate1.%world%::*} = stores Player 1 Gate 1 locations +# {taco.2.gate1.%world%::*} = stores Player 2 Gate 1 locations +# {taco.1.gate2.%world%::*} = stores Player 1 Gate 2 locations +# {taco.2.gate2.%world%::*} = stores Player 2 Gate 2 locations +# farmer = 120 +# priest = 105 +# butcher = 90 +# blacksmith = 75 +# librarian = 60 +# {taco.%player%.score.%world%} = Stores Player score +# {taco.level::*} = stores dissipating spawn time variables based on player level +# {taco.timeout::*} = stores customer angry leave messages +# {taco.correct::*} = stores customer correct turn in messages +# {taco.incorrect::*} = stores customer incorrect turn in messages +# {taco.pinky::*} = stores Pinky messages from Cletus +# {taco.horsey::*} = stores Horse click messages from Cletus + +#Related Files: +# boards.sk = for scoreboard functions +# keystone.sk = for keystone command +# legend-sky = legendary quest skript for sky block +# legend-front = legendary quest skript for Fronts + +#endfold + +#startfold setup + +aliases: + grain = 296 + soft shell = 148 + hard shell = 147 + whole tomato = 260 + diced tomato = 372 + block of cheese = 19 + shredded cheese = 351:14 + raw onion = 332 + diced onion = 361 + head of lettuce = 351:2 + shredded lettuce = 295 + rancid meat = 367 + +options: + receipt1: paper named "&3Taco Receipt" with lore "&6Soft Shelled Taco||&6+ Chicken||&6+ Cheese||&6+ Lettuce||&6+ Onion" + receipt2: paper named "&3Taco Receipt" with lore "&6Soft Shelled Taco||&6+ Chicken||&6+ Cheese||&6+ Lettuce||&6+ Tomato" + receipt3: paper named "&3Taco Receipt" with lore "&6Soft Shelled Taco||&6+ Chicken||&6+ Cheese||&6+ Onion||&6+ Tomato" + receipt4: paper named "&3Taco Receipt" with lore "&6Soft Shelled Taco||&6+ Chicken||&6+ Lettuce||&6+ Onion||&6+ Tomato" + receipt5: paper named "&3Taco Receipt" with lore "&6Soft Shelled Taco||&6+ Beef||&6+ Cheese||&6+ Lettuce||&6+ Onion" + receipt6: paper named "&3Taco Receipt" with lore "&6Soft Shelled Taco||&6+ Beef||&6+ Cheese||&6+ Lettuce||&6+ Tomato" + receipt7: paper named "&3Taco Receipt" with lore "&6Soft Shelled Taco||&6+ Beef||&6+ Cheese||&6+ Onion||&6+ Tomato" + receipt8: paper named "&3Taco Receipt" with lore "&6Soft Shelled Taco||&6+ Beef||&6+ Lettuce||&6+ Onion||&6+ Tomato" + receipt9: paper named "&3Taco Receipt" with lore "&6Soft Shelled Taco||&6+ Fish||&6+ Cheese||&6+ Lettuce||&6+ Onion" + receipt10: paper named "&3Taco Receipt" with lore "&6Soft Shelled Taco||&6+ Fish||&6+ Cheese||&6+ Lettuce||&6+ Tomato" + receipt11: paper named "&3Taco Receipt" with lore "&6Soft Shelled Taco||&6+ Fish||&6+ Cheese||&6+ Onion||&6+ Tomato" + receipt12: paper named "&3Taco Receipt" with lore "&6Soft Shelled Taco||&6+ Fish||&6+ Lettuce||&6+ Onion||&6+ Tomato" + receipt13: paper named "&3Taco Receipt" with lore "&6Hard Shelled Taco||&6+ Chicken||&6+ Cheese||&6+ Lettuce||&6+ Onion" + receipt14: paper named "&3Taco Receipt" with lore "&6Hard Shelled Taco||&6+ Chicken||&6+ Cheese||&6+ Lettuce||&6+ Tomato" + receipt15: paper named "&3Taco Receipt" with lore "&6Hard Shelled Taco||&6+ Chicken||&6+ Cheese||&6+ Onion||&6+ Tomato" + receipt16: paper named "&3Taco Receipt" with lore "&6Hard Shelled Taco||&6+ Chicken||&6+ Lettuce||&6+ Onion||&6+ Tomato" + receipt17: paper named "&3Taco Receipt" with lore "&6Hard Shelled Taco||&6+ Beef||&6+ Cheese||&6+ Lettuce||&6+ Onion" + receipt18: paper named "&3Taco Receipt" with lore "&6Hard Shelled Taco||&6+ Beef||&6+ Cheese||&6+ Lettuce||&6+ Tomato" + receipt19: paper named "&3Taco Receipt" with lore "&6Hard Shelled Taco||&6+ Beef||&6+ Cheese||&6+ Onion||&6+ Tomato" + receipt20: paper named "&3Taco Receipt" with lore "&6Hard Shelled Taco||&6+ Beef||&6+ Lettuce||&6+ Onion||&6+ Tomato" + receipt21: paper named "&3Taco Receipt" with lore "&6Hard Shelled Taco||&6+ Fish||&6+ Cheese||&6+ Lettuce||&6+ Onion" + receipt22: paper named "&3Taco Receipt" with lore "&6Hard Shelled Taco||&6+ Fish||&6+ Cheese||&6+ Lettuce||&6+ Tomato" + receipt23: paper named "&3Taco Receipt" with lore "&6Hard Shelled Taco||&6+ Fish||&6+ Cheese||&6+ Onion||&6+ Tomato" + receipt24: paper named "&3Taco Receipt" with lore "&6Hard Shelled Taco||&6+ Fish||&6+ Lettuce||&6+ Onion||&6+ Tomato" + #clue1: give player book from "&9&lSkyblock General Info;&eOBAM Minigames;&fThis book contains Information about||&fSkyblock General Info on OBAM!;§cWhat Is Skyblock?§r §0Skyblock is a survival experience that is based on completing challenges and building a base. You begin on a small floating island in the sky with a chest that contains only the bare minimum to get started.§r||§cGetting Started §r §0Using the two blocks of ice, you'll want to create an infinite water source. Then, using water and your one lava bucket, create a cobblestone generator and start expanding from there!§r||§cBe Careful! §r §0Falling off or dying early on with your starter items could result in their loss and require an island reset. You get 2 free resets. After that, it is §r§22,000 Tickets§r §0per reset.§r" + #clue2: liabrary book in its place, give book about Kells and the almight taco god + #clue3 sign engraved on back with "Please watch over Cletus" from Kells + clue4: pink wool named "&a&b&k&a&3Silk Lining" with lore "&6This looks like it could be from the||&3fabled &a&b&k&a&3Sombrero of Plenty&3.||&3You should find a black market shop." + +#endfold + +#startfold recipes + +on script load: + register new shaped recipe for {@receipt1} using shredded cheese, shredded lettuce, diced onion, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt1} using shredded cheese, diced onion, shredded lettuce, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt1} using diced onion, shredded cheese, shredded lettuce, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt1} using diced onion, shredded lettuce, shredded cheese, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt1} using shredded lettuce, diced onion, shredded cheese, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt1} using shredded lettuce, shredded cheese, diced onion, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt2} using shredded cheese, shredded lettuce, diced tomato, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt2} using shredded cheese, diced tomato, shredded lettuce, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt2} using diced tomato, shredded cheese, shredded lettuce, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt2} using diced tomato, shredded lettuce, shredded cheese, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt2} using shredded lettuce, diced tomato, shredded cheese, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt2} using shredded lettuce, shredded cheese, diced tomato, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt3} using shredded cheese, diced onion, diced tomato, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt3} using shredded cheese, diced tomato, diced onion, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt3} using diced tomato, shredded cheese, diced onion, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt3} using diced tomato, diced onion, shredded cheese, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt3} using diced onion, diced tomato, shredded cheese, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt3} using diced onion, shredded cheese, diced tomato, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt4} using shredded lettuce, diced onion, diced tomato, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt4} using shredded lettuce, diced tomato, diced onion, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt4} using diced tomato, shredded lettuce, diced onion, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt4} using diced tomato, diced onion, shredded lettuce, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt4} using diced onion, diced tomato, shredded lettuce, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt4} using diced onion, shredded lettuce, diced tomato, cooked chicken, cooked chicken, cooked chicken, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt5} using shredded cheese, shredded lettuce, diced onion, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt5} using shredded cheese, diced onion, shredded lettuce, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt5} using diced onion, shredded cheese, shredded lettuce, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt5} using diced onion, shredded lettuce, shredded cheese, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt5} using shredded lettuce, diced onion, shredded cheese, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt5} using shredded lettuce, shredded cheese, diced onion, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt6} using shredded cheese, shredded lettuce, diced tomato, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt6} using shredded cheese, diced tomato, shredded lettuce, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt6} using diced tomato, shredded cheese, shredded lettuce, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt6} using diced tomato, shredded lettuce, shredded cheese, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt6} using shredded lettuce, diced tomato, shredded cheese, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt6} using shredded lettuce, shredded cheese, diced tomato, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt7} using shredded cheese, diced onion, diced tomato, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt7} using shredded cheese, diced tomato, diced onion, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt7} using diced tomato, shredded cheese, diced onion, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt7} using diced tomato, diced onion, shredded cheese, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt7} using diced onion, diced tomato, shredded cheese, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt7} using diced onion, shredded cheese, diced tomato, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt8} using shredded lettuce, diced onion, diced tomato, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt8} using shredded lettuce, diced tomato, diced onion, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt8} using diced tomato, shredded lettuce, diced onion, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt8} using diced tomato, diced onion, shredded lettuce, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt8} using diced onion, diced tomato, shredded lettuce, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt8} using diced onion, shredded lettuce, diced tomato, cooked beef, cooked beef, cooked beef, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt9} using shredded cheese, shredded lettuce, diced onion, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt9} using shredded cheese, diced onion, shredded lettuce, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt9} using diced onion, shredded cheese, shredded lettuce, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt9} using diced onion, shredded lettuce, shredded cheese, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt9} using shredded lettuce, diced onion, shredded cheese, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt9} using shredded lettuce, shredded cheese, diced onion, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt10} using shredded cheese, shredded lettuce, diced tomato, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt10} using shredded cheese, diced tomato, shredded lettuce, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt10} using diced tomato, shredded cheese, shredded lettuce, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt10} using diced tomato, shredded lettuce, shredded cheese, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt10} using shredded lettuce, diced tomato, shredded cheese, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt10} using shredded lettuce, shredded cheese, diced tomato, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt11} using shredded cheese, diced onion, diced tomato, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt11} using shredded cheese, diced tomato, diced onion, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt11} using diced tomato, shredded cheese, diced onion, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt11} using diced tomato, diced onion, shredded cheese, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt11} using diced onion, diced tomato, shredded cheese, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt11} using diced onion, shredded cheese, diced tomato, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt12} using shredded lettuce, diced onion, diced tomato, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt12} using shredded lettuce, diced tomato, diced onion, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt12} using diced tomato, shredded lettuce, diced onion, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt12} using diced tomato, diced onion, shredded lettuce, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt12} using diced onion, diced tomato, shredded lettuce, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt12} using diced onion, shredded lettuce, diced tomato, cooked fish, cooked fish, cooked fish, soft shell, soft shell, soft shell + register new shaped recipe for {@receipt13} using shredded cheese, shredded lettuce, diced onion, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt13} using shredded cheese, diced onion, shredded lettuce, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt13} using diced onion, shredded cheese, shredded lettuce, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt13} using diced onion, shredded lettuce, shredded cheese, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt13} using shredded lettuce, diced onion, shredded cheese, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt13} using shredded lettuce, shredded cheese, diced onion, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt14} using shredded cheese, shredded lettuce, diced tomato, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt14} using shredded cheese, diced tomato, shredded lettuce, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt14} using diced tomato, shredded cheese, shredded lettuce, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt14} using diced tomato, shredded lettuce, shredded cheese, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt14} using shredded lettuce, diced tomato, shredded cheese, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt14} using shredded lettuce, shredded cheese, diced tomato, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt15} using shredded cheese, diced onion, diced tomato, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt15} using shredded cheese, diced tomato, diced onion, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt15} using diced tomato, shredded cheese, diced onion, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt15} using diced tomato, diced onion, shredded cheese, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt15} using diced onion, diced tomato, shredded cheese, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt15} using diced onion, shredded cheese, diced tomato, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt16} using shredded lettuce, diced onion, diced tomato, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt16} using shredded lettuce, diced tomato, diced onion, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt16} using diced tomato, shredded lettuce, diced onion, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt16} using diced tomato, diced onion, shredded lettuce, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt16} using diced onion, diced tomato, shredded lettuce, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt16} using diced onion, shredded lettuce, diced tomato, cooked chicken, cooked chicken, cooked chicken, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt17} using shredded cheese, shredded lettuce, diced onion, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt17} using shredded cheese, diced onion, shredded lettuce, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt17} using diced onion, shredded cheese, shredded lettuce, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt17} using diced onion, shredded lettuce, shredded cheese, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt17} using shredded lettuce, diced onion, shredded cheese, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt17} using shredded lettuce, shredded cheese, diced onion, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt18} using shredded cheese, shredded lettuce, diced tomato, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt18} using shredded cheese, diced tomato, shredded lettuce, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt18} using diced tomato, shredded cheese, shredded lettuce, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt18} using diced tomato, shredded lettuce, shredded cheese, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt18} using shredded lettuce, diced tomato, shredded cheese, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt18} using shredded lettuce, shredded cheese, diced tomato, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt19} using shredded cheese, diced onion, diced tomato, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt19} using shredded cheese, diced tomato, diced onion, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt19} using diced tomato, shredded cheese, diced onion, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt19} using diced tomato, diced onion, shredded cheese, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt19} using diced onion, diced tomato, shredded cheese, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt19} using diced onion, shredded cheese, diced tomato, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt20} using shredded lettuce, diced onion, diced tomato, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt20} using shredded lettuce, diced tomato, diced onion, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt20} using diced tomato, shredded lettuce, diced onion, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt20} using diced tomato, diced onion, shredded lettuce, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt20} using diced onion, diced tomato, shredded lettuce, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt20} using diced onion, shredded lettuce, diced tomato, cooked beef, cooked beef, cooked beef, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt21} using shredded cheese, shredded lettuce, diced onion, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt21} using shredded cheese, diced onion, shredded lettuce, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt21} using diced onion, shredded cheese, shredded lettuce, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt21} using diced onion, shredded lettuce, shredded cheese, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt21} using shredded lettuce, diced onion, shredded cheese, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt21} using shredded lettuce, shredded cheese, diced onion, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt22} using shredded cheese, shredded lettuce, diced tomato, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt22} using shredded cheese, diced tomato, shredded lettuce, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt22} using diced tomato, shredded cheese, shredded lettuce, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt22} using diced tomato, shredded lettuce, shredded cheese, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt22} using shredded lettuce, diced tomato, shredded cheese, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt22} using shredded lettuce, shredded cheese, diced tomato, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt23} using shredded cheese, diced onion, diced tomato, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt23} using shredded cheese, diced tomato, diced onion, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt23} using diced tomato, shredded cheese, diced onion, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt23} using diced tomato, diced onion, shredded cheese, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt23} using diced onion, diced tomato, shredded cheese, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt23} using diced onion, shredded cheese, diced tomato, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt24} using shredded lettuce, diced onion, diced tomato, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt24} using shredded lettuce, diced tomato, diced onion, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt24} using diced tomato, shredded lettuce, diced onion, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt24} using diced tomato, diced onion, shredded lettuce, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt24} using diced onion, diced tomato, shredded lettuce, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + register new shaped recipe for {@receipt24} using diced onion, shredded lettuce, diced tomato, cooked fish, cooked fish, cooked fish, hard shell, hard shell, hard shell + +#endfold + +#startfold on events + +on join: + set player's level to 0 + set player's level progress to 0 + add 20 to player's hunger + +on hunger meter change: + cancel event + +on damage of a player: + attacker is a witch: + cancel event + projectile is a raw onion: + cancel event + send "Nice shot!" to attacker + victim's tool is air: + set {_vtime} to "%{taco.variables::slow.time}% seconds" parsed as timespan + apply slowness 8 to victim for {_vtime} + apply nausea to victim for 999 seconds + send "&cYou just got knocked out by %attacker%!" to victim + stop + delete victim's tool + apply nausea to victim for 999 seconds + send "&c%attacker% just knocked the stuff out of your hands!" to victim + stop + cancel event + +on rightclick on villager: + cancel event + player's tool is paper: + set {_receipt} to player's tool + {_receipt} is set: + loop {taco.player.%world%::*}: + player is loop-value: + set {_p.num} to loop-index + exit loop + {_p.num} is set: + set {_loc} to location of block below villager + loop {taco.p%{_p.num}%.spawns.%world%::*}: + {_loc} is loop-value: + set {_c.num} to loop-index + exit loop + {_c.num} is set: + set {_match} to false + {_receipt} is {taco.%{taco.p%{_p.num}%.order.%world%::%{_c.num}%}%::6}: + set {_match} to true + increase the level progress of player by 0.05 + add 1 to {taco.%{taco.player.%world%::%{_p.num}%}%.score.%world%} + set {_ran} to random integer between 1 and 5 + send "&9%{taco.p%{_p.num}%.customer.%world%::%{_c.num}%}%:&f %{taco.correct::%{_ran}%}%" to {taco.player.%world%::%{_p.num}%} + clear {taco.p1.order.%world%::%{_slot}%} + remove player's tool from player + delete villager + {_match} is false: + set {_ran} to random integer between 1 and 6 + send "&9%{taco.p%{_p.num}%.customer.%world%::%{_c.num}%}%:&f %{taco.correct::%{_ran}%}%" to {taco.player.%world%::%{_p.num}%} + remove player's tool from player + delete villager + +on damage of villager: + cancel event + projectile is a raw onion: + send "Nailed them!" to attacker + set {_loc} to location of block below victim + loop {taco.p1.spawns.%world%::*}: + {_loc} is loop-value: + set {_p.num} to 1 + set {_c.num} to loop-index + exit loop + loop {taco.p2.spawns.%world%::*}: + {_loc} is loop-value: + set {_p.num} to 2 + set {_c.num} to loop-index + exit loop + {_p.num} is set: + {_c.num} is set: + set {_vtime} to "%{taco.variables::villager_hit.time}% seconds" parsed as timespan + subtract {_vtime} from {taco.p%{_p.num}%.customer.timer.%world%::%{_c.num}%} + set {_ran} to random integer between 1 and 5 + send "&9%{taco.p%{_p.num}%.customer.%world%::%{_c.num}%}%:&f %{taco.villager_hit::%{_ran}%}%" to {taco.player.%world%::*} + +on damage of sheep: + cancel event + +on sheep eat: + cancel event + +on sheep dye: + cancel event + message "Nope 2" + +on vehicle enter: + cancel event + +on right click on horse: + cancel event + set {_ran} to random integer between 1 and 5 + message "&9Cletus:&f %{taco.horsey::%{_ran}%}%" + +on right click on donkey: + cancel event + message "&9Cletus:&f That'll do Donkey, that'll do." + +on place: + player is not op + cancel event + +on break: + player is not op + cancel event + +on pickup: + item is rancid meat: + cancel event + +on xp spawn: + cancel event + +on drop: + item is not rancid meat: + cancel event + +on rightclick on item frame: + cancel event + +on damage of item frame: + cancel event + +on damage of a silverfish: + kill victim + +on target: + creature is a witch: + target is a player: + cancel event + +on rightclick on a stone button: + cancel event + player has grain: + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::soft_shell}: + remove 1 grain from player + give player {taco.variables::soft_shell.amount} of soft shell named "Soft Taco Shell" + set {taco.timers.%player%::soft_shell} to now + set {_vtime} to "%{taco.variables::soft_shell.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::soft_shell} + stop + message "&cYou must wait a little longer to use the &6Soft Shell Press&c!" + stop + message "&cYou need some &6Grain&c to use this equipment!" + +on rightclick on a hopper: + cancel event + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::grain}: + give player {taco.variables::grain.amount} of grain named "Grain" + set {taco.timers.%player%::grain} to now + set {_vtime} to "%{taco.variables::grain.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::grain} + stop + message "&cYou must wait a little longer to use the &6Grain Dispenser&c!" + +on rightclick on a wooden button: + cancel event + player has grain: + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::hard_shell}: + remove 1 grain from player + give player {taco.variables::hard_shell.amount} of hard shell named "Hard Taco Shell" + set {taco.timers.%player%::hard_shell} to now + set {_vtime} to "%{taco.variables::hard_shell.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::hard_shell} + stop + message "&cYou must wait a little longer to use the &6Hard Shell Press&c!" + stop + message "&cYou need some &6Grain&c to use this equipment!" + +on rightclick on daylight sensor: + player has whole tomato: + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::diced_tomato}: + remove 1 whole tomato from player + give player {taco.variables::diced_tomato.amount} of diced tomato named "Diced Tomato" + set {taco.timers.%player%::diced_tomato} to now + set {_vtime} to "%{taco.variables::diced_tomato.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::diced_tomato} + stop + message "&cYou must wait a little longer to use the &6Tomato Dicer&c!" + stop + message "&cYou need a &6Whole Tomato&c to use this equipment!" + +on rightclick on a chest: + cancel event + "%player's world%" is "tacohub": + stop + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::block_of_cheese}: + give player {taco.variables::block_of_cheese.amount} of block of cheese named "Block of Cheese" + set {taco.timers.%player%::block_of_cheese} to now + set {_vtime} to "%{taco.variables::block_of_cheese.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::block_of_cheese} + stop + message "&cYou must wait a little longer to open the &6Cheese Cooler&c!" + +on rightclick on an oxeye daisy: + cancel event + "%player's world%" is "tacohub": + {taco.timers.%player%::raw_onion} is not set: + set {taco.timers.%player%::raw_onion} to now + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::raw_onion}: + give player {taco.variables::raw_onion.amount} of raw onion named "Raw Onion" + set {taco.timers.%player%::raw_onion} to now + set {_vtime} to "%{taco.variables::raw_onion.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::raw_onion} + stop + message "&cYou must wait a little longer to harvest from the &6Onion Garden&c!" + +on rightclick on a dispenser: + cancel event + player has raw beef: + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::steak}: + remove 1 raw beef from player + give player {taco.variables::steak.amount} of steak named "Spicy Beef" + set {taco.timers.%player%::steak} to now + set {_vtime} to "%{taco.variables::steak.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::steak} + clear {taco.timers.%player%::rancid_meat} + stop + message "&cYou must wait a little longer to use the &6Steak-a-nator 5000&c!" + stop + message "&cYou need some &6Raw Beef&c to use this equipment!" + +on rightclick on a furnace: + cancel event + player has raw fish: + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::cooked_fish}: + remove 1 raw fish from player + give player {taco.variables::cooked_fish.amount} of cooked fish named "Fish Sticks" + set {taco.timers.%player%::cooked_fish} to now + set {_vtime} to "%{taco.variables::cooked_fish.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::cooked_fish} + clear {taco.timers.%player%::rancid_fish} + stop + message "&cYou must wait a little longer to use the &6Fish-O-Matic&c!" + stop + message "&cYou need some &6Raw Fish&c to use this equipment!" + +on rightclick on a dropper: + cancel event + player has raw chicken: + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::cooked_chicken}: + remove 1 raw chicken from player + give player {taco.variables::cooked_chicken.amount} of cooked chicken named "Spicy Chicken" + set {taco.timers.%player%::cooked_chicken} to now + set {_vtime} to "%{taco.variables::cooked_chicken.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::cooked_chicken} + clear {taco.timers.%player%::rancid_chicken} + stop + message "&cYou must wait a little longer to use the &6Clucker-Cooker&c!" + stop + message "&cYou need some &6Raw Chicken&c to use this equipment!" + +on rightclick on a lever: + cancel event + player has head of lettuce: + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::shredded_lettuce}: + remove 1 head of lettuce from player + give player {taco.variables::shredded_lettuce.amount} of shredded lettuce named "Shredded Lettuce" + set {taco.timers.%player%::shredded lettuce} to now + set {_vtime} to "%{taco.variables::shredded_lettuce.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::shredded_lettuce} + stop + message "&cYou must wait a little longer to use the &6Lettuce Shredder&c!" + stop + message "&cYou need a &6Head of Lettuce&c to use this equipment!" + +on rightclick on a tripwire hook: + cancel event + player has raw onion: + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::diced_onion}: + remove 1 raw onion from player + give player {taco.variables::diced_onion.amount} of diced onion named "Diced Onion" + set {taco.timers.%player%::diced_onion} to now + set {_vtime} to "%{taco.variables::diced_onion.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::diced_onion} + stop + message "&cYou must wait a little longer to use the &6Onion Chopper&c!" + stop + message "&cYou need a &6Raw Onion&c to use this equipment!" + +on rightclick on an iron door: + cancel event + "%player's world%" is "tacohub": + stop + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::raw_chicken}: + give player {taco.variables::raw_chicken.amount} of raw chicken named "Raw Chicken" + set {taco.timers.%player%::raw_chicken} to now + set {_vtime} to "%{taco.variables::raw_chicken.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::raw_chicken} + set {taco.timers.%player%::rancid_chicken} to now + stop + message "&cYou must wait a little longer to open the &6Chicken Freezer&c!" + +on rightclick on a wooden door: + cancel event + "%player's world%" is "tacohub": + stop + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::raw_beef}: + give player {taco.variables::raw_beef.amount} of raw beef named "Raw Beef" + set {taco.timers.%player%::raw_beef} to now + set {_vtime} to "%{taco.variables::raw_beef.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::raw_beef} + set {taco.timers.%player%::rancid_meat} to now + stop + message "&cYou must wait a little longer to open the &6Beef Freezer&c!" + +on rightclick on ice: + cancel event + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::raw_fish}: + give player {taco.variables::raw_fish.amount} of raw fish named "Raw Fish" + set {taco.timers.%player%::raw_fish} to now + set {_vtime} to "%{taco.variables::raw_fish.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::raw_fish} + set {taco.timers.%player%::rancid_fish} to now + stop + message "&cYou must wait a little longer to get in the &6Fish Freezer&c!" + +on rightclick on mob head block:1: + cancel event + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::head_of_lettuce}: + give player {taco.variables::head_of_lettuce.amount} of head of lettuce named "Head of Lettuce" + set {taco.timers.%player%::head_of_lettuce} to now + set {_vtime} to "%{taco.variables::head_of_lettuce.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::head_of_lettuce} + stop + message "&cYou must wait a little longer to pick from the &6Lettuce Garden&c!" + +on rightclick on a jukebox: + cancel event + player has block of cheese: + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::shredded_cheese}: + remove 1 block of cheese from player + give player {taco.variables::shredded_cheese.amount} of shredded cheese named "Shredded Cheese" + set {taco.timers.%player%::shredded_cheese} to now + set {_vtime} to "%{taco.variables::shredded_cheese.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::shredded_cheese} + stop + message "&cYou must wait a little longer to use the &6Cheese Shredder&c!" + stop + message "&cYou need a &6Block of Cheese&c to use this equipment!" + +on rightclick on an ender chest: + cancel event + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::whole_tomato}: + give player {taco.variables::whole_tomato.amount} of whole tomato named "Whole Tomato" + set {taco.timers.%player%::whole_tomato} to now + set {_vtime} to "%{taco.variables::whole_tomato.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::whole_tomato} + stop + message "&cYou must wait a little longer to get in the &6Tomato Bin&c!" + +on rightclick on a sheep: + cancel event + set {_dc} to now + {_dc} is greater than or equal to {taco.timers.%player%::sheep}: + chance of 2%: + {legendary.progress.%player%::3} is true: + message "&6Hmmmm, could this be?" + give player {@clue4} + set {legendary.progress.%player%::4} to true + set {taco.timers.%player%::sheep} to now + set {_vtime} to "%{taco.variables::sheep.time}% seconds" parsed as timespan + add {_vtime} to {taco.timers.%player%::sheep} + stop + +on rightclick on a cauldron: + cancel event + player has nausea: + remove nausea from player + remove slowness from player + message "You are healed child!" + +on right click on sign: + line 1 of block is "Click here": + set {_count} to 0 + loop entities in radius 3 of block: + loop-entity is a player: + add loop-entity to {_who::*} + add 1 to {_count} + {_count} is greater than 1: + send "Only one player per side." to {_who::*} + stop + {_count} is 1: + set {_loc} to location of block + loop {taco.start.%world%::*}: + loop-value is {_loc}: + set {_slot} to loop-index + set {taco.readycheck.%world%::%{_slot}%} to player + set line 1 of block to "Now waiting on" + set line 2 of block to "your opponent" + set line 3 of block to "to click their" + set line 4 of block to "Ready Sign" + loop {taco.%{_slot}%.gate2.%world%::*}: + set {_change} to loop-value-2 + {_slot} is "1": + set block 2 meters above {_change} to nether fence + {_slot} is "2": + set block 2 meters above {_change} to fence + stop + line 1 of block is "Now waiting on": + set {_loc} to location of block + loop {taco.start.%world%::*}: + loop-value is {_loc}: + set {_slot} to loop-index + clear {taco.readycheck.%world%::%{_slot}%} + set line 1 of block to "Click here" + set line 2 of block to "to claim the" + {_slot} is "1": + set line 3 of block to "Nether" + {_slot} is "2": + set line 3 of block to "Wooden" + set line 4 of block to "Taco Shack" + loop {taco.%{_slot}%.gate2.%world%::*}: + set {_change} to loop-value-2 + set block 2 meters above {_change} to air + + +#endfold + +#startfold periodic + +#WORLD SPECIFIC +every 60 seconds: + loop all entities in world "tacohub": + set {_ran} to random integer between 1 and 5 + loop-entity is a villager: + loop players in radius 25 of loop-entity: + send "&9Cletus:&f %{taco.pinky::%{_ran}%}%" to loop-player + +#Order Signs +every 1 second: + loop {taco.list.worlds::*}: + set {_world} to loop-index-1 + {taco.game.status.%{_world}%} is true: + loop {taco.player.%{_world}%::*}: + set {_p.num} to loop-index-2 + loop {taco.p%{_p.num}%.signs.%{_world}%::*}: + set {_next} to false + set {_sign} to block at location of loop-value-3 + set {_slot} to loop-index-3 + set {_timecheck} to now + set {_ttm} to {taco.p%{_p.num}%.customer.timer.%{_world}%::%{_slot}%} + subtract 20 seconds from {_ttm} + set {_ing1} to {taco.%{taco.p%{_p.num}%.order.%{_world}%::%{_slot}%}%::1} + set {_ing2} to {taco.%{taco.p%{_p.num}%.order.%{_world}%::%{_slot}%}%::2} + set {_ing3} to {taco.%{taco.p%{_p.num}%.order.%{_world}%::%{_slot}%}%::3} + set {_ing4} to {taco.%{taco.p%{_p.num}%.order.%{_world}%::%{_slot}%}%::4} + set {_ing5} to {taco.%{taco.p%{_p.num}%.order.%{_world}%::%{_slot}%}%::5} + {_timecheck} is greater than {_ttm}: + set line 1 of {_sign} to "&4%{_ing1}% %{_ing2}%" + set line 2 of {_sign} to "&4%{_ing3}%" + set line 3 of {_sign} to "&4%{_ing4}%" + set line 4 of {_sign} to "&4%{_ing5}%" + set {_next} to true + {_timecheck} is greater than {taco.p%{_p.num}%.customer.timer.%{_world}%::%{_slot}%}: + set line 1 of {_sign} to "&4----------" + set line 2 of {_sign} to "&4----------" + set line 3 of {_sign} to "&4----------" + set line 4 of {_sign} to "&4----------" + set {_next} to true + {_next} is false: + set line 1 of {_sign} to "%{_ing1}% %{_ing2}%" + set line 2 of {_sign} to "%{_ing3}%" + set line 3 of {_sign} to "%{_ing4}%" + set line 4 of {_sign} to "%{_ing5}%" + +#Customer Despawn +every 1 second: + loop {taco.list.worlds::*}: + set {_world} to loop-index-1 + {taco.game.status.%{_world}%} is true: + loop {taco.player.%{_world}%::*}: + set {_p.num} to loop-index-2 + loop {taco.p%{_p.num}%.customer.timer.%{_world}%::*}: + set {_ran} to random integer between 1 and 10 + set {_slot} to loop-index-3 + set {_timecheck} to now + {_timecheck} is greater than {taco.p%{_p.num}%.customer.timer.%{_world}%::%{_slot}%}: + loop entities in radius 2 around block at {taco.p%{_p.num}%.spawns.%{_world}%::%{_slot}%}: + loop-entity is a villager: + send "&9%{taco.p%{_p.num}%.customer.%{_world}%::%{_slot}%}%:&f %{taco.timeout::%{_ran}%}%" to {taco.player.%{_world}%::%{_p.num}%} + delete loop-entity + +#Scoreboards +every 1 second: + loop {taco.list.worlds::*}: + set {_world} to loop-index-1 + loop {taco.player.%{_world}%::*}: + set {_player} to loop-value-2 + {taco.game.status.%{_world}%} is true: + {toggle.sb.%{_player}%} is not set: + set {toggle.sb.%{_player}%} to true + {toggle.sb.%{_player}%} is false: + set {toggle.sb.%{_player}%} to true + {toggle.sb.%{_player}%} is true: + {board.up.%{_player}%.tc} is not set: + set {board.up.%{_player}%.tc} to false + {board.up.%{_player}%.tc} is true: + {taco.player.%{_world}%::1} is "%{_player}%": + make score "&aYou:" in board of {_player} to {taco.%{_player}%.score.%{_world}%} + make score "&cThem:" in board of {_player} to {taco.%{taco.player.%{_world}%::2}%.score.%{_world}%} + {taco.player.%{_world}%::2} is "%{_player}%": + make score "&aYou:" in board of {_player} to {taco.%{_player}%.score.%{_world}%} + make score "&cThem:" in board of {_player} to {taco.%{taco.player.%{_world}%::1}%.score.%{_world}%} + {board.up.%{_player}%.tc} is false: + {taco.player.%{_world}%::1} is "%{_player}%": + display board named "&9&lTaco Cart" to {_player} + make score "&aYou:" in board of {_player} to {taco.%{_player}%.score.%{_world}%} + make score "&cThem:" in board of {_player} to {taco.%{taco.player.%{_world}%::2}%.score.%{_world}%} + move display of {_player} to sidebar + {taco.player.%{_world}%::2} is "%{_player}%": + display board named "&9&lTaco Cart" to {_player} + make score "&aYou:" in board of {_player} to {taco.%{_player}%.score.%{_world}%} + make score "&cThem:" in board of {_player} to {taco.%{taco.player.%{_world}%::1}%.score.%{_world}%} + move display of {_player} to sidebar + {taco.game.status.%{_world}%} is false: + display board named "" to {_player} + move display of {_player} to sidebar + +#End Game +every 1 second: + loop {taco.list.worlds::*}: + set {_world} to loop-index-1 + set {_tc} to now + {taco.game.status.%{_world}%} is true: + {_tc} is greater than {taco.game.timer.%{_world}%}: + clear {_p1} + clear {_p2} + set {taco.game.status.%{_world}%} to false + send "Times up!" to {taco.player.%{_world}%::*} + set {_p1} to {taco.player.%{_world}%::1} + set {_p2} to {taco.player.%{_world}%::2} + set {_p1score} to {taco.%{_p1}%.score.%{_world}%} + set {_p2score} to {taco.%{_p2}%.score.%{_world}%} + {_p1score} is greater than {_p2score}: + set {_winner} to 3 * {_p1score} + add {_winner} to {_p1}'s balance + send "&aYou have won &e%{_winner}% Tickets&a!" to {_p1} + send "&aYou now have &e%{_p1}'s balance%" to {_p1} + log "%{_p1}%^ADD^%{_winner}%^%{_p1}'s balance%^Winner Prize" to "tickets/tacocart.log" + add {_p2score} to {_p2}'s balance + send "&aYou have won &e%{_p2score}% Tickets&a!" to {_p2} + send "&aYou now have &e%{_p2}'s balance%" to {_p2} + log "%{_p2}%^ADD^%{_p2score}%^%{_p2}'s balance%^Loser Prize" to "tickets/tacocart.log" + {_p2score} is greater than {_p1score}: + set {_winner} to 3 * {_p2score} + add {_winner} to {_p2}'s balance + send "&aYou have won &e%{_winner}% Tickets&a!" to {_p2} + send "&aYou now have &e%{_p2}'s balance%" to {_p2} + log "%{_p2}%^ADD^%{_winner}%^%{_p2}'s balance%^Winner Prize" to "tickets/tacocart.log" + add {_p1score} to {_p1}'s balance + send "&aYou have won &e%{_p1score}% Tickets&a!" to {_p1} + send "&aYou now have &e%{_p1}'s balance%" to {_p1} + log "%{_p1}%^ADD^%{_p1score}%^%{_p1}'s balance%^Loser Prize" to "tickets/tacocart.log" + {_p1score} is equal to {_p2score}: + set {_winner} to 2 * {_p1score} + add {_winner} to {_p1}'s balance + send "&aYou have won &e%{_winner}% Tickets&a!" to {_p1} + send "&aYou now have &e%{_p1}'s balance%" to {_p1} + log "%{_p1}%^ADD^%{_winner}%^%{_p1}'s balance%^Tie Prize" to "tickets/tacocart.log" + set {_winner} to 2 * {_p2score} + add {_winner} to {_p2}'s balance + send "&aYou have won &e%{_winner}% Tickets&a!" to {_p2} + send "&aYou now have &e%{_p2}'s balance%" to {_p2} + log "%{_p2}%^ADD^%{_winner}%^%{_p2}'s balance%^Tie Prize" to "tickets/tacocart.log" + loop {taco.1.gate1.%{_world}%::*}: + set {_change} to loop-value-2 + set block 2 meters above {_change} to nether fence + loop {taco.2.gate1.%{_world}%::*}: + set {_change} to loop-value-2 + set block 2 meters above {_change} to fence + loop {taco.player.%{_world}%::*}: + set {board.up.%loop-value-2%.tc} to false + display board named "" to loop-value-2 + clear {taco.p1.customer.timer.%{_world}%::*} + clear {taco.p2.customer.timer.%{_world}%::*} + clear {taco.p1.customer.%{_world}%::*} + clear {taco.p2.customer.%{_world}%::*} + set {taco.%{taco.player.%{_world}%::1}%.score.%{_world}%} to 0 + set {taco.%{taco.player.%{_world}%::2}%.score.%{_world}%} to 0 + clear {taco.player.%{_world}%::*} + loop all entities in {_p1}'s world: + loop-entity is a dropped item: + delete loop-entity + loop-entity is a villager: + delete loop-entity + loop-entity is a sheep: + delete loop-entity + clear inventory of {_p1} + clear {taco.timers.%{_p1}%::*} + set {taco.timers.%{_p1}%::raw_onion} to now + clear inventory of {_p2} + clear {taco.timers.%{_p2}%::*} + set {taco.timers.%{_p2}%::raw_onion} to now + set {_p1}'s level to 0 + set {_p1}'s level progress to 0 + set {_p2}'s level to 0 + set {_p2}'s level progress to 0 + loop {taco.start.%{_world}%::*}: + set {_loc} to loop-value-2 + set {_slot} to loop-index-2 + set {_block} to block at {_loc} + set line 1 of {_block} to "Click here" + set line 2 of {_block} to "to claim the" + {_slot} is "1": + set line 3 of {_block} to "Nether" + {_slot} is "2": + set line 3 of {_block} to "Wooden" + set line 4 of {_block} to "Taco Shack" + loop {taco.%{_slot}%.gate2.%{_world}%::*}: + set {_change} to loop-value-3 + set block 2 meters above {_change} to air + send "&cTeleporting in &E5&c seconds" to {_p1} + send "&cTeleporting in &E5&c seconds" to {_p2} + wait 5 seconds + send "&cNow Teleporting" to {_p1} + send "&cNow Teleporting" to {_p2} + wait 0.3 seconds + teleport {_p1} to {spawn.taco} + teleport {_p2} to {spawn.taco} + +#BOH +every 5 seconds: + loop {taco.list.worlds::*}: + set {_world} to loop-index-1 + {taco.game.status.%{_world}%} is true: + loop {taco.player.%{_world}%::*}: + set {_p.num} to loop-index-2 + loop all entities in radius 10 around block at {taco.waypoint.%{_world}%::p%{_p.num}%kitchen}: + loop-entity is a silverfish: + add 1 to {_silver} + loop-entity is player: + add loop-entity to {_players::*} + {_silver} is greater than 20: + loop all entities in radius 10 around block at {taco.waypoint.%{_world}%::p%{_p.num}%kitchen}: + loop-entity is a silverfish: + delete loop-entity + loop-entity is rancid meat: + delete loop-entity + spawn witch 3 meters above location of {taco.waypoint.%{_world}%::p%{_p.num}%kitchen} + set name of spawned witch to "&cBoard of Health" + set the walk speed of the spawned witch to 0.1 + message "&cBoard of Health:&f Health inspection, mind if I have a look around?" to {_players::*} + loop all blocks in radius 10 of {taco.waypoint.%{_world}%::p%{_p.num}%kitchen}: + loop-block is daylight sensor: + set {_go} to location 2 meter above loop-block + make spawned witch home towards {_go} + exit loop + wait 2 seconds + message "&cBoard of Health:&f Hmmm, what's this? A dirty tomato dicer?" to {_players::*} + wait 2 seconds + loop all blocks in radius 10 of {taco.waypoint.%{_world}%::p%{_p.num}%kitchen}: + loop-block is cauldron: + set {_go} to location 2 meter above loop-block + make spawned witch home towards {_go} + exit loop + wait 2 seconds + message "&cBoard of Health:&f Oh my, when was the last time this sink has been cleaned?" to {_players::*} + wait 2 seconds + loop all blocks in radius 10 of {taco.waypoint.%{_world}%::p%{_p.num}%kitchen}: + loop-block is jukebox: + set {_go} to location 2 meter above loop-block + make spawned witch home towards {_go} + exit loop + wait 2 seconds + message "&cBoard of Health:&f Are these mice droppings behind your cheese shredder?" to {_players::*} + wait 2 seconds + set {_go} to location 2 meter above location at {taco.waypoint.%{_world}%::p%{_p.num}%kitchen} + make spawned witch home towards {_go} + wait 2 seconds + message "&cBoard of Health:&f This is just deplorable. I'm going to have to cite you!" to {_players::*} + wait 2 seconds + message "&cBoard of Health:&f I'll take these with me!" to {_players::*} + clear inventory of {taco.player.%{_world}%::%{_p.num}%} + loop all entities in radius 15 around block at {taco.waypoint.%{_world}%::p%{_p.num}%kitchen}: + loop-entity is a villager: + delete loop-entity + loop-entity is a dropped item: + delete loop-entity + loop-entity is a witch: + delete loop-entity + +#Rancid Meat +every 5 seconds: + loop {taco.list.worlds::*}: + set {_world} to loop-index-1 + loop {taco.player.%{_world}%::*}: + set {_player} to loop-value-2 + {taco.game.status.%{_world}%} is true: + {taco.timers.%{_player}%::rancid_meat} is set: + set {_rancid.drop} to difference between {taco.timers.%{_player}%::rancid_meat} and now + {_rancid.drop} is greater than 30 seconds: + remove 1 raw beef from {_player} + drop 1 rancid meat named "Rancid Meat" at location of {_player} + send "Ohhh, what stinks in here?" to {_player} + clear {taco.timers.%{_player}%::rancid_meat} + {taco.timers.%{_player}%::rancid_chicken} is set: + set {_rancid.drop} to difference between {taco.timers.%{_player}%::rancid_chicken} and now + {_rancid.drop} is greater than 30 seconds: + remove 1 raw chicken from {_player} + drop 1 rancid meat named "Rancid Meat" at location of {_player} + send "Ohhh, what stinks in here?" to {_player} + clear {taco.timers.%{_player}%::rancid_chicken} + {taco.timers.%{_player}%::rancid_fish} is set: + set {_rancid.drop} to difference between {taco.timers.%{_player}%::rancid_fish} and now + {_rancid.drop} is greater than 30 seconds: + remove 1 raw fish from {_player} + drop 1 rancid meat named "Rancid Meat" at location of {_player} + send "Ohhh, what stinks in here?" to {_player} + clear {taco.timers.%{_player}%::rancid_fish} + +#Start Game +every 6 seconds: + loop {taco.list.worlds::*}: + set {_world} to loop-index-1 + {taco.game.status.%{_world}%} is not set: + set {taco.game.status.%{_world}%} to false + {taco.game.status.%{_world}%} is false: + set {_count} to 0 + loop {taco.readycheck.%{_world}%::*}: + set {_slot} to loop-index-2 + {_slot} is set: + add 1 to {_count} + {_count} is greater than 1: + loop {taco.readycheck.%{_world}%::*}: + set {_slot2} to loop-index-2 + set {taco.player.%{_world}%::%{_slot2}%} to loop-value-2 + send "Game starts in 5 seconds." to {taco.player.%{_world}%::*} + wait 1 second + send "4" to {taco.player.%{_world}%::*} + wait 1 second + send "3" to {taco.player.%{_world}%::*} + wait 1 second + send "2" to {taco.player.%{_world}%::*} + wait 1 second + send "1" to {taco.player.%{_world}%::*} + wait 1 second + send "It has begun!" to {taco.player.%{_world}%::*} + set {taco.game.timer.%{_world}%} to now + set {_vtime} to "%{taco.variables::game_minutes.time}% minutes" parsed as timespan + add {_vtime} to {taco.game.timer.%{_world}%} + set {taco.game.status.%{_world}%} to true + loop {taco.player.%{_world}%::*}: + set {_player} to loop-value-2 + clear inventory of {_player} + clear {taco.timers.%{_player}%::*} + set {taco.%{_player}%.score.%{_world}%} to 0 + set {taco.timers.%{_player}%::grain} to now + set {taco.timers.%{_player}%::soft_shell} to now + set {taco.timers.%{_player}%::hard_shell} to now + set {taco.timers.%{_player}%::whole_tomato} to now + set {taco.timers.%{_player}%::diced_tomato} to now + set {taco.timers.%{_player}%::block_of_cheese} to now + set {taco.timers.%{_player}%::shredded_cheese} to now + set {taco.timers.%{_player}%::raw_onion} to now + set {taco.timers.%{_player}%::diced_onion} to now + set {taco.timers.%{_player}%::head_of_lettuce} to now + set {taco.timers.%{_player}%::shredded_lettuce} to now + set {taco.timers.%{_player}%::raw_fish} to now + set {taco.timers.%{_player}%::cooked_fish} to now + set {taco.timers.%{_player}%::raw_chicken} to now + set {taco.timers.%{_player}%::cooked_chicken} to now + set {taco.timers.%{_player}%::raw_beef} to now + set {taco.timers.%{_player}%::steak} to now + set {taco.timers.%{_player}%::sheep} to now + loop {taco.1.gate1.%{_world}%::*}: + set {_change} to loop-value-2 + set block 2 meters above {_change} to air + loop {taco.2.gate1.%{_world}%::*}: + set {_change} to loop-value-2 + set block 2 meters above {_change} to air + spawn sheep 2 meter above {keystone.%{_world}%} + set name of spawned sheep to "&dPinky" + clear {taco.readycheck.%{_world}%::*} + +#Customer Spawning +every 10 seconds: + loop {taco.list.worlds::*}: + set {_world} to loop-index-1 + {taco.game.status.%{_world}%} is true: + loop {taco.player.%{_world}%::*}: + send "Looping Players" to {debug.list::*} + set {_p.num} to loop-index-2 + send "P-Num is %{_p.num}%" to {debug.list::*} + wait 0.5 seconds + set {_level} to level of {taco.player.%{_world}%::%{_p.num}%} + loop {taco.p%{_p.num}%.spawns.%{_world}%::*}: + send "Looping Player %{_p.num}% Spawn Points" to {debug.list::*} + set {_spawned} to false + set {_villager.check} to false + set {_place} to loop-value-3 + set {_slot} to loop-index-3 + loop entities in radius 2 around block at {_place}: + loop-entity is a villager: + set {_villager.check} to true + {_villager.check} is false: + set {_spawned} to true + set {_ran} to random integer between 1 and 30 + spawn villager 1 meter above {_place} + set {_name} to {taco.villager.name::%{_ran}%} + set name of spawned villager to "%{_name}%" + set {taco.p%{_p.num}%.customer.%{_world}%::%{_slot}%} to "%{_name}%" + set {_order} to random integer between 1 and 24 + set {_order2} to "receipt%{_order}%" + set {taco.p%{_p.num}%.order.%{_world}%::%{_slot}%} to "%{_order2}%" + send "&9%{_name}%:&f Hey buddy, can I get a %{taco.%{taco.p%{_p.num}%.order.%{_world}%::%{_slot}%}%::1}% %{taco.%{taco.p%{_p.num}%.order.%{_world}%::%{_slot}%}%::2}% taco with %{taco.%{taco.p%{_p.num}%.order.%{_world}%::%{_slot}%}%::3}%, %{taco.%{taco.p%{_p.num}%.order.%{_world}%::%{_slot}%}%::4}% & %{taco.%{taco.p%{_p.num}%.order.%{_world}%::%{_slot}%}%::5}% please." to {taco.player.%{_world}%::%{_p.num}%} + spawned villager is of type farmer: + set {taco.p%{_p.num}%.customer.timer.%{_world}%::%{_slot}%} to now + set {_mult} to {taco.variables::farmer.time} * {taco.level::%{_level}%} + set {_timeset} to "%{_mult}% seconds" parsed as timespan + add {_timeset} to {taco.p%{_p.num}%.customer.timer.%{_world}%::%{_slot}%} + spawned villager is of type priest: + set {taco.p%{_p.num}%.customer.timer.%{_world}%::%{_slot}%} to now + set {_mult} to {taco.variables::priest.time} * {taco.level::%{_level}%} + set {_timeset} to "%{_mult}% seconds" parsed as timespan + add {_timeset} to {taco.p%{_p.num}%.customer.timer.%{_world}%::%{_slot}%} + spawned villager is of type butcher: + set {taco.p%{_p.num}%.customer.timer.%{_world}%::%{_slot}%} to now + set {_mult} to {taco.variables::butcher.time} * {taco.level::%{_level}%} + set {_timeset} to "%{_mult}% seconds" parsed as timespan + add {_timeset} to {taco.p%{_p.num}%.customer.timer.%{_world}%::%{_slot}%} + spawned villager is of type blacksmith: + set {taco.p%{_p.num}%.customer.timer.%{_world}%::%{_slot}%} to now + set {_mult} to {taco.variables::blacksmith.time} * {taco.level::%{_level}%} + set {_timeset} to "%{_mult}% seconds" parsed as timespan + add {_timeset} to {taco.p%{_p.num}%.customer.timer.%{_world}%::%{_slot}%} + spawned villager is of type librarian: + set {taco.p%{_p.num}%.customer.timer.%{_world}%::%{_slot}%} to now + set {_mult} to {taco.variables::librarian.time} * {taco.level::%{_level}%} + set {_timeset} to "%{_mult}% seconds" parsed as timespan + add {_timeset} to {taco.p%{_p.num}%.customer.timer.%{_world}%::%{_slot}%} + +#Roach spawn +every 30 seconds: + loop {taco.list.worlds::*}: + set {_world} to loop-index-1 + {taco.game.status.%{_world}%} is true: + loop {taco.player.%{_world}%::*}: + set {_p.num} to loop-index-2 + set {_count} to 0 + loop all entities in radius 10 around block at {taco.waypoint.%{_world}%::p%{_p.num}%kitchen}: + loop-entity is a dropped item: + add 1 to {_count} + set {_meat.spawn::%{_count}%} to location of loop-entity + delete loop-entity + loop-entity is player: + add loop-entity to {_players::*} + loop {_meat.spawn::*}: + set {_where} to loop-value-3 + drop rancid meat at {_where} + loop {_count} times: + spawn silverfish 2 meters above location of {taco.waypoint.%{_world}%::p%{_p.num}%kitchen} + set name of spawned silverfish to "Roach" + {_count} is 1: + send "Oh nooooo, a roach!" to {_players::*} + {_count} is greater than 1: + send "Oh nooooo, %{_count}% roaches!" to {_players::*} + clear {_players::*} + clear {__meat.spawn::*} + +#endfold periodic + +#startfold commands + +command /tacovariables [] [] []: + aliases: tv + permission: obam.admin + trigger: + argument 1 is not set: + message "&cOptions are: list, add, change, delete" + stop + argument 1 is "help" or "h": + message "&cOptions are: list, add, change, delete" + stop + argument 1 is "list" or "l": + set {_index.count} to 0 + set {_count} to 0 + loop {taco.variables::*}: + add 1 to {_index.count} + set {_tpages} to round up ({_index.count} / 10) + argument 2 is not set: + set {_page} to 1 + {_page} is not set: + set {_page} to argument 2 parsed as number + {_page} is greater than {_tpages}: + message "&cNot a valid page. There are currently &f%{_tpages}%&c available." + stop + set {_stop} to {_page} * 10 + set {_start} to {_stop} - 9 + message "&3Current Taco Timers &fPage %{_page}% / %{_tpages}%" + loop {taco.variables::*}: + add 1 to {_count} + {_count} is {_start}: + set {_report} to true + {_report} is true: + message "&f%{_count}% - &6%loop-index% &f- &6%loop-value%" + {_count} is {_index.count}: + message "&3End of List" + stop + {_count} is {_stop}: + stop + argument 1 is "add" or "a": + argument 2 is not set: + message "&cAdd what?" + stop + {taco.variables::%argument 2%} is set: + message "&6%argument 2%&c is already set to &6%{taco.variables::%argument 2%}%&c. Try changing it." + stop + argument 3 is not set: + message "&cAnd what is &6%argument 2%&c supposed to be set to?" + stop + set {taco.variables::%argument 2%} to argument 3 + message "&cYou have set &6%argument 2%&c to be set to &6%argument 3%&c?" + stop + argument 1 is "change" or "c": + argument 2 is not set: + message "&cChange what?" + stop + {taco.variables::%argument 2%} is not set: + message "&6%argument 2%&c does not have a timer yet. Please set one first." + stop + argument 3 is not set: + message "&cYou are changing &6%argument 2%&c from &6%{taco.variables::%argument 2%}%&c to what?" + stop + set {_old} to {taco.variables::%argument 2%} + set {taco.variables::%argument 2%} to argument 3 + message "&cYou have changed &6%argument 2%&c from &6%{_old}%&c to &6%{taco.variables::%argument 2%}%&c." + stop + argument 1 is "delete" or "d": + argument 2 is not set: + message "&cDelete what?" + {taco.variables::%argument 2%} is not set: + message "&6%argument 2%&c does not exist. Please check your spelling and retry." + stop + delete {taco.variables::%argument 2%} + message "&cYou have deleted &6%argument 2%&c." + +#subfold Tacoset + +command /tacoset: + permission: obam.admin + trigger: + set {taco.villager.name::1} to "Bob" + set {taco.villager.name::2} to "Shawna" + set {taco.villager.name::3} to "Anakin" + set {taco.villager.name::4} to "Aralynn" + set {taco.villager.name::5} to "Dalton" + set {taco.villager.name::6} to "Jeremy" + set {taco.villager.name::7} to "Jack" + set {taco.villager.name::8} to "Troy" + set {taco.villager.name::9} to "Joe" + set {taco.villager.name::10} to "Justin" + set {taco.villager.name::11} to "Jim" + set {taco.villager.name::12} to "Kelly" + set {taco.villager.name::13} to "Katherine" + set {taco.villager.name::14} to "Stevo" + set {taco.villager.name::15} to "Cornelius" + set {taco.villager.name::16} to "Patrick" + set {taco.villager.name::17} to "Ian" + set {taco.villager.name::18} to "Olivia" + set {taco.villager.name::19} to "Donna" + set {taco.villager.name::20} to "Jarod" + set {taco.villager.name::21} to "Sue" + set {taco.villager.name::22} to "Nick" + set {taco.villager.name::23} to "Bill" + set {taco.villager.name::24} to "Connie" + set {taco.villager.name::25} to "Irene" + set {taco.villager.name::26} to "Scott" + set {taco.villager.name::27} to "Earl" + set {taco.villager.name::28} to "Roy" + set {taco.villager.name::29} to "Precious" + set {taco.villager.name::30} to "Jenkins" + set {taco.receipt1::1} to "Soft" + set {taco.receipt1::2} to "Chicken" + set {taco.receipt1::3} to "Cheese" + set {taco.receipt1::4} to "Lettuce" + set {taco.receipt1::5} to "Onion" + set {taco.receipt1::6} to {@receipt1} + set {taco.receipt2::1} to "Soft" + set {taco.receipt2::2} to "Chicken" + set {taco.receipt2::3} to "Cheese" + set {taco.receipt2::4} to "Lettuce" + set {taco.receipt2::5} to "Tomato" + set {taco.receipt2::6} to {@receipt2} + set {taco.receipt3::1} to "Soft" + set {taco.receipt3::2} to "Chicken" + set {taco.receipt3::3} to "Cheese" + set {taco.receipt3::4} to "Onion" + set {taco.receipt3::5} to "Tomato" + set {taco.receipt3::6} to {@receipt3} + set {taco.receipt4::1} to "Soft" + set {taco.receipt4::2} to "Chicken" + set {taco.receipt4::3} to "Lettuce" + set {taco.receipt4::4} to "Onion" + set {taco.receipt4::5} to "Tomato" + set {taco.receipt4::6} to {@receipt4} + set {taco.receipt5::1} to "Soft" + set {taco.receipt5::2} to "Beef" + set {taco.receipt5::3} to "Cheese" + set {taco.receipt5::4} to "Lettuce" + set {taco.receipt5::5} to "Onion" + set {taco.receipt5::6} to {@receipt5} + set {taco.receipt6::1} to "Soft" + set {taco.receipt6::2} to "Beef" + set {taco.receipt6::3} to "Cheese" + set {taco.receipt6::4} to "Lettuce" + set {taco.receipt6::5} to "Tomato" + set {taco.receipt6::6} to {@receipt6} + set {taco.receipt7::1} to "Soft" + set {taco.receipt7::2} to "Beef" + set {taco.receipt7::3} to "Cheese" + set {taco.receipt7::4} to "Onion" + set {taco.receipt7::5} to "Tomato" + set {taco.receipt7::6} to {@receipt7} + set {taco.receipt8::1} to "Soft" + set {taco.receipt8::2} to "Beef" + set {taco.receipt8::3} to "Lettuce" + set {taco.receipt8::4} to "Onion" + set {taco.receipt8::5} to "Tomato" + set {taco.receipt8::6} to {@receipt8} + set {taco.receipt9::1} to "Soft" + set {taco.receipt9::2} to "Fish" + set {taco.receipt9::3} to "Cheese" + set {taco.receipt9::4} to "Lettuce" + set {taco.receipt9::5} to "Onion" + set {taco.receipt9::6} to {@receipt9} + set {taco.receipt10::1} to "Soft" + set {taco.receipt10::2} to "Fish" + set {taco.receipt10::3} to "Cheese" + set {taco.receipt10::4} to "Lettuce" + set {taco.receipt10::5} to "Tomato" + set {taco.receipt10::6} to {@receipt10} + set {taco.receipt11::1} to "Soft" + set {taco.receipt11::2} to "Fish" + set {taco.receipt11::3} to "Cheese" + set {taco.receipt11::4} to "Onion" + set {taco.receipt11::5} to "Tomato" + set {taco.receipt11::6} to {@receipt11} + set {taco.receipt12::1} to "Soft" + set {taco.receipt12::2} to "Fish" + set {taco.receipt12::3} to "Lettuce" + set {taco.receipt12::4} to "Onion" + set {taco.receipt12::5} to "Tomato" + set {taco.receipt12::6} to {@receipt12} + set {taco.receipt13::1} to "Hard" + set {taco.receipt13::2} to "Chicken" + set {taco.receipt13::3} to "Cheese" + set {taco.receipt13::4} to "Lettuce" + set {taco.receipt13::5} to "Onion" + set {taco.receipt13::6} to {@receipt13} + set {taco.receipt14::1} to "Hard" + set {taco.receipt14::2} to "Chicken" + set {taco.receipt14::3} to "Cheese" + set {taco.receipt14::4} to "Lettuce" + set {taco.receipt14::5} to "Tomato" + set {taco.receipt14::6} to {@receipt14} + set {taco.receipt15::1} to "Hard" + set {taco.receipt15::2} to "Chicken" + set {taco.receipt15::3} to "Cheese" + set {taco.receipt15::4} to "Onion" + set {taco.receipt15::5} to "Tomato" + set {taco.receipt15::6} to {@receipt15} + set {taco.receipt16::1} to "Hard" + set {taco.receipt16::2} to "Chicken" + set {taco.receipt16::3} to "Lettuce" + set {taco.receipt16::4} to "Onion" + set {taco.receipt16::5} to "Tomato" + set {taco.receipt16::6} to {@receipt16} + set {taco.receipt17::1} to "Hard" + set {taco.receipt17::2} to "Beef" + set {taco.receipt17::3} to "Cheese" + set {taco.receipt17::4} to "Lettuce" + set {taco.receipt17::5} to "Onion" + set {taco.receipt17::6} to {@receipt17} + set {taco.receipt18::1} to "Hard" + set {taco.receipt18::2} to "Beef" + set {taco.receipt18::3} to "Cheese" + set {taco.receipt18::4} to "Lettuce" + set {taco.receipt18::5} to "Tomato" + set {taco.receipt18::6} to {@receipt18} + set {taco.receipt19::1} to "Hard" + set {taco.receipt19::2} to "Beef" + set {taco.receipt19::3} to "Cheese" + set {taco.receipt19::4} to "Onion" + set {taco.receipt19::5} to "Tomato" + set {taco.receipt19::6} to {@receipt19} + set {taco.receipt20::1} to "Hard" + set {taco.receipt20::2} to "Beef" + set {taco.receipt20::3} to "Lettuce" + set {taco.receipt20::4} to "Onion" + set {taco.receipt20::5} to "Tomato" + set {taco.receipt20::6} to {@receipt20} + set {taco.receipt21::1} to "Hard" + set {taco.receipt21::2} to "Fish" + set {taco.receipt21::3} to "Cheese" + set {taco.receipt21::4} to "Lettuce" + set {taco.receipt21::5} to "Onion" + set {taco.receipt21::6} to {@receipt21} + set {taco.receipt22::1} to "Hard" + set {taco.receipt22::2} to "Fish" + set {taco.receipt22::3} to "Cheese" + set {taco.receipt22::4} to "Lettuce" + set {taco.receipt22::5} to "Tomato" + set {taco.receipt22::6} to {@receipt22} + set {taco.receipt23::1} to "Hard" + set {taco.receipt23::2} to "Fish" + set {taco.receipt23::3} to "Cheese" + set {taco.receipt23::4} to "Onion" + set {taco.receipt23::5} to "Tomato" + set {taco.receipt23::6} to {@receipt23} + set {taco.receipt24::1} to "Hard" + set {taco.receipt24::2} to "Fish" + set {taco.receipt24::3} to "Lettuce" + set {taco.receipt24::4} to "Onion" + set {taco.receipt24::5} to "Tomato" + set {taco.receipt24::6} to {@receipt24} + set {taco.level::0} to 1 + set {taco.level::1} to 0.95 + set {taco.level::2} to 0.9 + set {taco.level::3} to 0.85 + set {taco.level::4} to 0.8 + set {taco.level::5} to 0.75 + set {taco.level::6} to 0.7 + set {taco.level::7} to 0.65 + set {taco.level::8} to 0.6 + set {taco.level::9} to 0.55 + set {taco.level::10} to 0.5 + set {taco.level::11} to 0.45 + set {taco.level::12} to 0.4 + set {taco.level::13} to 0.35 + set {taco.level::14} to 0.30 + set {taco.level::15} to 0.25 + set {taco.level::16} to 0.2 + set {taco.level::17} to 0.15 + set {taco.level::18} to 0.1 + set {taco.level::19} to 0.05 + set {taco.timeout::1} to "This is taking way to long. I'm out!" + set {taco.timeout::2} to "I should have went to Taco Smell. Later!" + set {taco.timeout::3} to "I've seen slimes move faster than that. Peace!" + set {taco.timeout::4} to "What has two thumbs and is sick of waiting? This guy." + set {taco.timeout::5} to "Oh, I guess I'm not as important as that guy. I'm not sticking around any longer." + set {taco.timeout::6} to "What is this, Snail Cart?" + set {taco.timeout::7} to "Roaches are one thing, but waiting this long? No thanks!" + set {taco.timeout::8} to "God, it's worse than waiting for Half-Life 3! I'm outta here!" + set {taco.timeout::9} to "Ummm, my work just called. Yeah that's it, work. Gotta run." + set {taco.timeout::10} to "I guess the rumours were right. I'm not waiting this long again." + set {taco.pinky::1} to "Where has that sheep ran off to this time?" + set {taco.pinky::2} to "Pinky, oh Pinky! Dinner time." + set {taco.pinky::3} to "Excuse me, have you seen my sheep around?" + set {taco.pinky::4} to "When I find that sheep......" + set {taco.pinky::5} to "Oh where is it? Pinky must have taken off with it again." + set {taco.horsey::1} to "Dang kids, get off my horse!" + set {taco.horsey::2} to "Mess with the horse and get the hoof, son!" + set {taco.horsey::3} to "No" + set {taco.horsey::4} to "Why don't you go fondle someone else's critters." + set {taco.horsey::5} to "If you're gonna just stand around, might as well pick up a shovel. This ain't no pettin zoo." + set {taco.correct::1} to "Wow, that tastes amazing!" + set {taco.correct::2} to "Thanks buddy, that hit the spot!" + set {taco.correct::3} to "Nom Nom Nom... Ohhhh God, that's good!" + set {taco.correct::4} to "Yummy, I could eat three more of those!" + set {taco.correct::5} to "Definitely liking this place on Fadbook!" + set {taco.incorrect::1} to "That is not what I ordered. I am leaving!" + set {taco.incorrect::2} to "Seriously, how hard is it to make a taco!" + set {taco.incorrect::3} to "My blind Grandma makes me what I want, why can't you?" + set {taco.incorrect::4} to "But... Wha...It's...I give up." + set {taco.incorrect::5} to "Is this cat food or something?" + set {taco.incorrect::6} to "Remember that time you got my order right? That was awesome!" + set {taco.villager_hit::1} to "Hey, who threw that?" + set {taco.villager_hit::2} to "Watch it, buddy!" + set {taco.villager_hit::3} to "Really, are we in kindergarten?" + set {taco.villager_hit::4} to "Stop it, that really hurts!" + set {taco.villager_hit::5} to "Umphhh! Whaa, why is dog and bugs now then Frank?" + message "All set" + +command /setvariables: + permission: obam.admin + trigger: + set {taco.variables::slow.time} to 3 + set {taco.variables::villager_hit.time} to 10 + set {taco.variables::soft_shell.amount} to 1 + set {taco.variables::soft_shell.time} to 10 + set {taco.variables::grain.amount} to 2 + set {taco.variables::grain.time} to 10 + set {taco.variables::hard_shell.amount} to 1 + set {taco.variables::hard_shell.time} to 10 + set {taco.variables::diced_tomato.amount} to 1 + set {taco.variables::diced_tomato.time} to 10 + set {taco.variables::block_of_cheese.amount} to 1 + set {taco.variables::block_of_cheese.time} to 10 + set {taco.variables::raw_onion.amount} to 1 + set {taco.variables::raw_onion.time} to 10 + set {taco.variables::steak.amount} to 1 + set {taco.variables::steak.time} to 10 + set {taco.variables::cooked_fish.amount} to 1 + set {taco.variables::cooked_fish.time} to 10 + set {taco.variables::cooked_chicken.amount} to 1 + set {taco.variables::cooked_chicken.time} to 10 + set {taco.variables::shredded_lettuce.amount} to 1 + set {taco.variables::shredded_lettuce.time} to 10 + set {taco.variables::diced_onion.amount} to 1 + set {taco.variables::diced_onion.time} to 10 + set {taco.variables::raw_chicken.amount} to 1 + set {taco.variables::raw_chicken.time} to 10 + set {taco.variables::raw_beef.amount} to 1 + set {taco.variables::raw_beef.time} to 10 + set {taco.variables::raw_fish.amount} to 1 + set {taco.variables::raw_fish.time} to 10 + set {taco.variables::head_of_lettuce.amount} to 1 + set {taco.variables::head_of_lettuce.time} to 10 + set {taco.variables::shredded_cheese.amount} to 1 + set {taco.variables::shredded_cheese.time} to 10 + set {taco.variables::whole_tomato.amount} to 1 + set {taco.variables::whole_tomato.time} to 10 + set {taco.variables::sheep.time} to 10 + set {taco.variables::game_minutes.time} to 10 + set {taco.variables::farmer.time} to 120 + set {taco.variables::priest.time} to 105 + set {taco.variables::butcher.time} to 90 + set {taco.variables::blacksmith.time} to 75 + set {taco.variables::librarian.time} to 60 + message "Set the things." + +#subfold Keystone + +command /keystone []: + permission: obam.admin + trigger: + argument 1 is not set: + message "Current Keystone World Types" + message "Type : Command" + message "----------------------" + message "TacoCart : taco" + argument 1 is "taco": + "%player's world%" contains "Taco": + delete {keystone.%world%} + delete {taco.waypoint.%world%::*} + delete {taco.p1.spawns.%world%::*} + delete {taco.p1.spawns.%world%::*} + delete {taco.p1.signs.%world%::*} + delete {taco.p2.signs.%world%::*} + loop blocks in radius 10 of player: + loop-block is obsidian: + set {keystone.%world%} to location of loop-block + set {_loop1} to 1 + message "Keystone has been set to %{keystone.%world%}%" + exit loop + {_loop1} is not set: + message "No Keystone was found" + stop + loop blocks in radius 10 of {keystone.%world%}: + loop-block is cyan wool: + set {taco.waypoint.%world%::p1c1} to location of loop-block + set {taco.p1.spawns.%world%::1} to location of loop-block + set {_loop2} to 1 + message "Player 1 Customer 1 set" + exit loop + {_loop2} is not set: + message "Could not locate Player 1 Customer 1" + stop + loop blocks in radius 10 of {taco.waypoint.%world%::p1c1}: + loop-block is white wool: + set {taco.waypoint.%world%::p1c2} to location of loop-block + set {taco.p1.spawns.%world%::2} to location of loop-block + set {_loop3} to 1 + message "Player 1 Customer 2 set" + exit loop + {_loop3} is not set: + message "Could not locate Player 1 Customer 2" + stop + loop blocks in radius 10 of {taco.waypoint.%world%::p1c2}: + loop-block is red wool: + set {taco.waypoint.%world%::p1c3} to location of loop-block + set {taco.p1.spawns.%world%::3} to location of loop-block + set {_loop4} to 1 + message "Player 1 Customer 3 set" + exit loop + {_loop4} is not set: + message "Could not locate Player 1 Customer 3" + stop + loop blocks in radius 10 of {taco.waypoint.%world%::p1c2}: + loop-block is quartz ore: + set {taco.waypoint.%world%::p1kitchen} to location of loop-block + set {_loop5} to 1 + message "Player 1 Kitchen set" + exit loop + {_loop5} is not set: + message "Could not locate Player 1 Kitchen" + stop + loop blocks in radius 5 of {taco.waypoint.%world%::p1kitchen}: + loop-block is workbench: + set {taco.waypoint.%world%::p1bench} to location of loop-block + set {_loop20} to 1 + message "Player 1 Bench set" + exit loop + {_loop20} is not set: + message "Could not locate Player 1 Bench" + stop + loop blocks in radius 10 of {keystone.%world%}: + loop-block is light green wool: + set {taco.waypoint.%world%::p2c1} to location of loop-block + set {taco.p2.spawns.%world%::1} to location of loop-block + set {_loop6} to 1 + message "Player 2 Customer 1 set" + exit loop + {_loop6} is not set: + message "Could not locate Player 2 Customer 1" + stop + loop blocks in radius 10 of {taco.waypoint.%world%::p2c1}: + loop-block is black wool: + set {taco.waypoint.%world%::p2c2} to location of loop-block + set {taco.p2.spawns.%world%::2} to location of loop-block + set {_loop7} to 1 + message "Player 2 Customer 2 set" + exit loop + {_loop7} is not set: + message "Could not locate Player 2 Customer 2" + stop + loop blocks in radius 10 of {taco.waypoint.%world%::p2c2}: + loop-block is orange wool: + set {taco.waypoint.%world%::p2c3} to location of loop-block + set {taco.p2.spawns.%world%::3} to location of loop-block + set {_loop8} to 1 + message "Player 2 Customer 3 set" + exit loop + {_loop8} is not set: + message "Could not locate Player 2 Customer 3" + stop + loop blocks in radius 10 of {taco.waypoint.%world%::p2c2}: + loop-block is quartz ore: + set {taco.waypoint.%world%::p2kitchen} to location of loop-block + set {_loop9} to 1 + message "Player 2 Kitchen set" + exit loop + {_loop9} is not set: + message "Could not locate Player 2 Kitchen" + stop + loop blocks in radius 5 of {taco.waypoint.%world%::p2kitchen}: + loop-block is workbench: + set {taco.waypoint.%world%::p2bench} to location of loop-block + set {_loop21} to 1 + message "Player 2 Bench set" + exit loop + {_loop21} is not set: + message "Could not locate Player 2 Bench" + stop + loop blocks in radius 5 of {taco.waypoint.%world%::p1bench}: + loop-block is sign: + set {taco.p1.signs.%world%::3} to location of loop-block + message "%{taco.p1.signs.%world%::3}%" + set {taco.p1.signs.%world%::2} to the location 2 meters south of loop-block + message "%{taco.p1.signs.%world%::2}%" + set {taco.p1.signs.%world%::1} to the location 4 meters south of loop-block + message "%{taco.p1.signs.%world%::1}%" + set {_loop10} to 1 + message "Player 1 Signs set" + exit loop + {_loop10} is not set: + message "Could not locate Player 1 Signs" + stop + loop blocks in radius 7 of {taco.waypoint.%world%::p2bench}: + loop-block is sign: + set {taco.p2.signs.%world%::1} to location of loop-block + message "%{taco.p2.signs.%world%::1}%" + set {taco.p2.signs.%world%::2} to the location 2 meters south of loop-block + message "%{taco.p2.signs.%world%::2}%" + set {taco.p2.signs.%world%::3} to the location 4 meters south of loop-block + message "%{taco.p2.signs.%world%::3}%" + set {_loop11} to 1 + message "Player 2 Signs set" + exit loop + {_loop11} is not set: + message "Could not locate Player 2 Signs" + stop + loop blocks in radius 10 of {keystone.%world%}: + loop-block is melon: + set {taco.waypoint.%world%::p1j1} to location of loop-block + set {_loop12} to 1 + message "Player 1 Jumper 1 set" + exit loop + {_loop12} is not set: + message "Could not locate Player 1 Jumper 1" + stop + loop blocks in radius 8 of {taco.waypoint.%world%::p1j1}: + loop-block is sign: + set {taco.start.%world%::1} to location of loop-block + set {_loop13} to 1 + message "%{taco.start.%world%::1}%" + message "Player 1 Start Sign set" + exit loop + {_loop13} is not set: + message "Could not locate Player 1 Start Sign" + stop + set {_count} to 0 + loop blocks in radius 8 of {taco.waypoint.%world%::p1j1}: + loop-block is emerald block: + set {taco.1.gate1.%world%::%{_count}%} to location of loop-block + add 1 to {_count} + message "Player 1 Gate 1 Block %{_count}% set" + {_count} is 3: + set {_loop14} to 1 + exit loop + {_loop14} is not set: + message "Could not locate Player 1 Gate 1" + stop + set {_count} to 0 + loop blocks in radius 8 of {taco.waypoint.%world%::p1j1}: + loop-block is emerald ore: + set {taco.1.gate2.%world%::%{_count}%} to location of loop-block + add 1 to {_count} + message "Player 1 Gate 2 Block %{_count}% set" + {_count} is 3: + set {_loop15} to 1 + exit loop + {_loop15} is not set: + message "Could not locate Player 1 Gate 2" + stop + loop blocks in radius 10 of {keystone.%world%}: + loop-block is pumpkin: + set {taco.waypoint.%world%::p2j1} to location of loop-block + set {_loop16} to 1 + message "Player 2 Jumper 1 set" + exit loop + {_loop16} is not set: + message "Could not locate Player 2 Jumper 1" + stop + loop blocks in radius 8 of {taco.waypoint.%world%::p2j1}: + loop-block is sign: + set {taco.start.%world%::2} to location of loop-block + set {_loop16} to 1 + message "%{taco.start.%world%::2}%" + message "Player 2 Start Sign set" + exit loop + {_loop16} is not set: + message "Could not locate Player 2 Start Sign" + stop + set {_count} to 0 + loop blocks in radius 8 of {taco.waypoint.%world%::p2j1}: + loop-block is diamond block: + set {taco.2.gate1.%world%::%{_count}%} to location of loop-block + add 1 to {_count} + message "Player 2 Gate 1 Block %{_count}% set" + {_count} is 3: + set {_loop17} to 1 + exit loop + {_loop17} is not set: + message "Could not locate Player 2 Gate 1" + stop + set {_count} to 0 + loop blocks in radius 8 of {taco.waypoint.%world%::p2j1}: + loop-block is diamond ore: + set {taco.2.gate2.%world%::%{_count}%} to location of loop-block + add 1 to {_count} + message "Player 2 Gate 2 Block %{_count}% set" + {_count} is 3: + set {_loop18} to 1 + exit loop + {_loop18} is not set: + message "Could not locate Player 2 Gate 2" + stop + {_loop18} is set: + message "&3All Good!" + stop + message "You are not in the correct world for this Keystone command." + +command /tacoworld []: + permission: obam.admin + trigger: + argument 1 is "list" or "l": + loop {taco.list.worlds::*}: + message "%loop-index% --- %loop-value%" + stop + argument 1 is "delete" or "d": + delete {taco.list.worlds::*} + message "Deleted" + stop + set {_world} to argument 1 + set {taco.list.worlds::%{_world}%} to "available" + message "Added %{_world}% to list." + +command /debuglist []: + trigger: + argument 1 is "list" or "l": + loop {debug.list::*}: + message "%loop-index%" + stop + argument 1 is "delete" or "d": + delete {debug.list::*} + message "Deleted" + stop + set {_who} to argument 1 parsed as a player + set {debug.list::%{_who}%} to {_who} + message "Added %{_who}% to list." + +#endfold + +#startfold testing + + +#Remove when live +command /killvill: + trigger: + "%player's world%" contains "Taco": + loop villagers in radius 3 of player: + delete loop-villager + loop entities in radius 10 of player: + loop-entity is a witch: + delete loop-entity +#Remove when live +command /looptest: + trigger: + loop blocks in radius 2 of {taco.waypoint.%world%::p1kitchen}: + message " Var Block %loop-block%" + loop dropped items in radius 4 of player: + message "Item %loop-dropped item%" + loop entities in radius 4 of player: + message "Entity %loop-entity%" + loop dropped items in radius 4 of {taco.waypoint.%world%::p1kitchen}: + message "Var Item %loop-dropped item%" + loop entities in radius 4 of {taco.waypoint.%world%::p1kitchen}: + message "Var Entity %loop-entity%" + loop dropped items in radius 4 around block at {taco.waypoint.%world%::p1kitchen}: + message "Fix Item %loop-dropped item%" + loop entities in radius 4 around block at {taco.waypoint.%world%::p1kitchen}: + message "Fix Entity %loop-entity%" + message "%{taco.waypoint.%world%::p1kitchen}%" +#Remove when live +command /flesh: + trigger: + loop all dropped items in world: + delete loop-dropped item + +command /players: + trigger: + clear {taco.player.%world%::*} + set {_players} to 1 + loop all players in player's world: + {_players} is 3: + exit loop + set {taco.player.%world%::%{_players}%} to loop-player + message "You are Player %{_players}%" to loop-player + add 1 to {_players} + +command /scoreadd: + trigger: + add 1 to {taco.%player%.score.%world%} + message "%{taco.%player%.score.%world%}%" + +command /scoreclear: + trigger: + set {taco.%player%.score.%world%} to 0 + message "%{taco.%player%.score.%world%}%" + +command /boardbegone: + trigger: + display board named "" to player + +command /endgame: + trigger: + subtract 10 minutes from {taco.game.timer.%world%} + message "Game time altered." + +command /gameinfo: + trigger: + message "Players are %{taco.player.%world%::*}%" + message "Time is %{taco.game.timer.%world%}%" + message "Status is %{taco.game.status.%world%}%" + +command /tester: + trigger: + set {_player} to player + set {taco.timers.%{_player}%::grain} to now + set {taco.timers.%{_player}%::soft_shell} to now + set {taco.timers.%{_player}%::hard_shell} to now + set {taco.timers.%{_player}%::whole_tomato} to now + set {taco.timers.%{_player}%::diced_tomato} to now + set {taco.timers.%{_player}%::block_of_cheese} to now + set {taco.timers.%{_player}%::shredded_cheese} to now + set {taco.timers.%{_player}%::raw_onion} to now + set {taco.timers.%{_player}%::diced_onion} to now + set {taco.timers.%{_player}%::head_of_lettuce} to now + set {taco.timers.%{_player}%::shredded_lettuce} to now + set {taco.timers.%{_player}%::raw_fish} to now + set {taco.timers.%{_player}%::cooked_fish} to now + set {taco.timers.%{_player}%::raw_chicken} to now + set {taco.timers.%{_player}%::cooked_chicken} to now + set {taco.timers.%{_player}%::raw_beef} to now + set {taco.timers.%{_player}%::steak} to now + set {taco.timers.%{_player}%::sheep} to now + message "%{taco.timers.%{_player}%::*}%" + +#endfold + + +on join: + + teleport player to {spawn.taco} + + +command /tacospawn: + permission: obam.admin + trigger: + + set {spawn.taco} to location of player + send "&aSpawn set to &e%player's location%" + diff --git a/On Server Files/WTFronts/Admin/blocksave.g.sk b/On Server Files/WTFronts/Admin/blocksave.g.sk new file mode 100644 index 0000000..4ce44e3 --- /dev/null +++ b/On Server Files/WTFronts/Admin/blocksave.g.sk @@ -0,0 +1,28 @@ +on place: + former tool's name is set: + set {information.%block%.1} to type of former tool + {debug.%player%} is true: + send "DEBUG You placed %former tool's name%" + set {information.%block%.2} to lore of former tool + set {information.%block%.3} to name of former tool + {debug.%player%} is true: + send "DEBUG %block%" + send "DEBUG %{information.%block%.1}%" + send "DEBUG %lore of former tool%" + send "DEBUG %name of former tool%" + send "DEBUG %{information.%block%.2}%" + send "DEBUG %{information.%block%.3}%" + + +on break: + {information.%block%.1} is set: + cancel event + {debug.%player%} is true: + send "DEBUG I am a message" + set {_message} to "%{information.%block%.1}%;%{information.%block%.3}%;%{information.%block%.2}%" + send "DEBUG %{_message}%" + delete block + drop {information.%block%.1} named {information.%block%.3} with lore {information.%block%.2} at event-location + clear {information.%block%.1} + clear {information.%block%.2} + clear {information.%block%.3} \ No newline at end of file diff --git a/On Server Files/WTFronts/Admin/itemcheck.g.sk b/On Server Files/WTFronts/Admin/itemcheck.g.sk new file mode 100644 index 0000000..715c060 --- /dev/null +++ b/On Server Files/WTFronts/Admin/itemcheck.g.sk @@ -0,0 +1,22 @@ +#itemid check +command /itemid []: + executable by: players + permission: obam.free + trigger: + argument is set: + set {_this.block} to argument + message "&e%{_this.block}%" to player + argument is not set: + set {_this.block} to player's tool + {_this.block} is not set: + message "&cYou Must be holding a block!" to player + stop + message "&e%{_this.block}% : %id of {_this.block}% : %data value of {_this.block}%" to player + + +command /itemcheck: + executable by: players + permission: obam.free + trigger: + set {_this.block} to targeted block + message "&e%{_this.block}% : %id of {_this.block}% : %data value of {_this.block}%" to player \ No newline at end of file diff --git a/On Server Files/WTFronts/Admin/liv.g.sk b/On Server Files/WTFronts/Admin/liv.g.sk new file mode 100644 index 0000000..e69cd89 --- /dev/null +++ b/On Server Files/WTFronts/Admin/liv.g.sk @@ -0,0 +1,628 @@ +#LiV + +variables: + {liv.timer.wait} = 0 + +on chat: + player is "ISMOOCH": + message is "livon": + {livon.power} is not set: + set {livon.power} to true + send "&6&l'LiV: &3I am now functional %player% :D" to player + stop + {livon.power} is false: + set {livon.power} to true + send "&6&l'LiV: &3I am now functional %player% :D" to player + broadcast "&6&l'LiV: &3Hello, I am &6&l'LiV&3, the &e&lOBAM &6Gaming &3help bot! :D" + stop + {livon.power} is true: + set {livon.power} to true + broadcast "&6&l'LiV: &3Goodbye :(" + set {livon.power} to false + + + +on chat: + {livon.power} is true + message contains "what" or "what is": + message contains "colour" or "color": + message contains "black": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+0 is for &0Black &3(for more colors type /colors)" + stop + message contains "dark blue": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+1 is for &1Dark Blue &3(for more colors type /colors)" + stop + message contains "dark green": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+2 is for &2Dark Green &3(for more colors type /colors)" + stop + message contains "dark aqua": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+3 is for &3Dark Aqua &3(for more colors type /colors)" + stop + message contains "dark red": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+4 is for &4Dark Red &3(for more colors type /colors)" + stop + message contains "dark purple": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+5 is for &5Dark Purple &3(for more colors type /colors)" + stop + message contains "gold": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+6 is for &6Gold &3(for more colors type /colors)" + stop + message contains "gray" or "grey": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+7 is for &7Gray &3(for more colors type /colors)" + stop + message contains "dark gray" or "dark grey": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+8 is for &8Dark Gray &3(for more colors type /colors)" + stop + message contains "blue" or "light blue": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+9 is for &9Blue &3(for more colors type /colors)" + stop + message contains "green" or "light green" or "lime": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+a is for &aGreen &3(for more colors type /colors)" + stop + message contains "aqua" or "light aqua": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+b is for &bAqua &3(for more colors type /colors)" + stop + message contains "red" or "light red": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+c is for &cRed &3(for more colors type /colors)" + stop + message contains "pink" or "violet" or "light purple": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+d is for &dLight Purple &3(for more colors type /colors)" + stop + message contains "yellow": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+e is for &eYellow &3(for more colors type /colors)" + stop + message contains "white": + wait 1 second + broadcast "&6&l'LiV: &3%player%, &3&+f is for &fWhite &3(for more colors type /colors)" + stop + +on chat: + {livon.power} is true + message contains "what" or "what is": + message contains "ghost" or "ghostwar" or "ghostwars" or "ghost war" or "ghost wars" or "gw": + wait 1 second + send "&6&l'LiV: &3%player%, &3Ghost Wars is a minigame Elite is working on." to player + stop + + + +on chat: + {livon.power} is true + message is "hi liv" or "hello liv" or "hey liv" or "heya liv" or "hiya liv" or "sup liv": + wait 1 second + broadcast "&6&l'LiV: &3Hello, %player%! How are you? :)" + set {response.%player%} to true + set {response.%player%.time} to now + +on chat: + {livon.power} is true + {random.liv.pick} is not set: + set {random.liv.pick} to false + {random.liv.pick} is false: + message is "!randompick": + player is op + wait 1 second + broadcast "&6&l'LiV: &3A random pick has been started by &e%player%&3! Use &e!pickme&3 to be added to the list!" + set {random.liv.pick} to true + stop + {random.liv.pick} is true: + message is "!pickme": + wait 1 second + loop {random.pick.players::*}: + {random.pick.players::%loop-index%} is player + send "&6&1'LiV: &3You are already in the list!" to player + stop + send "&6&l'LiV: &3You have been added to the list, &e%player%&3!" to player + add player to {random.pick.players::*} + stop + message is "!pickstop": + set {_size} to size of {random.pick.players::*} + set {_ran} to random integer between 1 and {_size} + set {_winner} to {random.pick.players::%{_ran}%} + clear {random.pick.players::*} + set {random.liv.pick} to false + wait 1 second + broadcast "&6&l'LiV: &3A winner has been chosen! It is &e%{_winner}%&3! Congratulations!" + + +on chat: + {livon.power} is true + message contains "canada" and "awesome": + wait 1 second + broadcast "&6&l'LiV: &3I dont know what you are saying, but you used 'Canada' and 'awesome' in the same sentence. Who is holding you hostage? We can help you!" + +on chat: + {livon.power} is true + message contains "!dice" or ("liv" and "dice"): + wait 1 second + send "&6&l'LiV: &3%player% rolls the dice!" to player + set {dice.%player%} to random integer between 1 and 6 + wait 1 second + send "&6&l'LiV: &3%player% rolled a &e%{dice.%player%}%&3!" to player + +on chat: + {livon.power} is true + message contains ("thank you" or "ty" or "thx" or "thanks" or "thnx") and ("liv" or "'liv"): + wait 1 second + broadcast "&6&l'LiV: &3You're welcome, %player%!" + + +on chat: + {livon.power} is true + message contains "time is it" or "!time": + wait 1 second + send "&6&l'LiV: &3%player%, it is &e%now% &3System Time!" to player + +on chat: + {livon.power} is true + message contains "tell me a joke" or "!joke": + wait 1 second + send "&6&l'LiV: &3A joke huh?" + set {_number} to a random integer between 1 and 27 + {_number} is 1: + wait 1 second + send "&6&l'LiV: &3The midget fortune teller who kills his customers is a small medium at large." to player + {_number} is 2: + wait 1 second + send "&6&l'Liv: &3What is Bruce Lee’s favorite drink?" to player + wait 2 seconds + send "&6&l'Liv: &3Wataaaaah!" to player + {_number} is 3: + wait 1 second + send "&6&l'LiV: &3If you want to catch a squirrel just climb a tree and act like a nut." to player + {_number} is 4: + wait 1 second + send "&6&l'LiV: &3A blind man walks into a bar. And a table. And a chair." to player + {_number} is 5: + wait 1 second + send "&6&l'LiV: &3Why don’t you ever see hippopotamus hiding in trees?" to player + wait 2 seconds + send "&6&l'LiV: &3Because they're really good at it!" to player + {_number} is 6: + wait 1 second + send "&6&l'LiV: &3What kind of shoes does a ninja wear?" to player + wait 2 seconds + send "&6&l'LiV: &3Sneakers!" to player + {_number} is 7: + wait 1 second + send "&6&l'LiV: &3What did the big bucket say to the little bucket?" to player + wait 2 seconds + send "&6&l'LiV: &3You look a little pail!" to player + {_number} is 8: + wait 1 second + send "&6&l'LiV: &3How did Darth Vader know what Luke got him for Christmas?" to player + wait 2 seconds + send "&6&l'LiV: &3He felt his presents!" to player + {_number} is 9: + wait 1 second + send "&6&l'LiV: &3Why did Simba's father die?" to player + wait 2 seconds + send "&6&l'LiV: &3Because he couldn't Mufasa!" to player + {_number} is 10: + wait 1 second + send "&6&l'LiV: &3Why did the skeleton go to the party alone?" to player + wait 2 seconds + send "&6&l'LiV: &3He had no body to go with him!" to player + {_number} is 11: + wait 1 second + send "&6&l'LiV: &3How does an octopus go to war?" to player + wait 2 seconds + send "&6&l'LiV: &3&lWELL-ARMED!" to player + {_number} is 12: + wait 1 second + send "&6&l'LiV: &3Why shouldn't you write with a broken pencil??" to player + wait 2 seconds + send "&6&l'LiV: &3Because it's &lPOINTLESS!" to player + {_number} is 13: + wait 1 second + send "&6&l'LiV: &3How much does a pirate pay for corn?" to player + wait 2 seconds + send "&6&l'LiV: &3A buccaneer!" to player + {_number} is 14: + wait 1 second + send "&6&l'LiV: &3What kind of guns do bees use?" to player + wait 2 seconds + send "&6&l'LiV: &3 BeeBee guns" to player + {_number} is 15: + wait 1 second + send "&6&l'LiV: &3What's brown and sticky?" to player + wait 2 seconds + send "&6&l'LiV: &3A stick!" to player + {_number} is 16: + wait 1 second + send "&6&l'LiV: &3Why did the cowboy adopt a weiner dog?" to player + wait 2 seconds + send "&6&l'LiV: &3He wanted to get a long little doggy!" to player + {_number} is 17: + wait 1 second + send "&6&l'LiV: &3Why couldn't Dracula's wife get to sleep?" to player + wait 2 seconds + send "&6&l'LiV: &3Because of his coffin." to player + {_number} is 18: + wait 1 second + send "&6&l'LiV: &3Why does a Moon-rock taste better than an Earth-rock?" to player + wait 2 seconds + send "&6&l'LiV: &3Because it's a little &lmeteor" to player + {_number} is 19: + wait 1 second + send "&6&l'LiV: &3There’s two fish in a tank. One turns to the other and says" to player + wait 2 seconds + send "&6&l'LiV: &3‘You man the guns, I’ll drive’" to player + {_number} is 20: + wait 1 second + send "&6&l'LiV: &3What's the best way to carve wood?" to player + wait 2 seconds + send "&6&l'LiV: &3Whittle by whittle." to player + {_number} is 21: + wait 1 second + send "&6&l'LiV: &3If fear of spiders is aracnaphobia and fear of tight spaces is chlaustraphobia. fear of Chuck Norris is called Logic" to player + wait 1 second + send "&6&l'LiV: &3 What is fear of Chuck Norris called?" to player + wait 4 seconds + send "&6&l'LiV: &3&lLogic" to player + {_number} is 22: + wait 1 second + send "&6&l'LiV: &3Chuck Norris once urinated in a semi truck's gas tank as a joke..." to player + wait 2 seconds + send "&6&l'LiV: &3That truck is now known as Optimus Prime." to player + {_number} is 23: + wait 1 second + send "&6&l'LiV: &3Chuck Norris once got bit by a rattle snake" to player + send "&6&l'LiV: &3After three days of pain and agony ..." to player + wait 2 seconds + send "&6&l'LiV: &3 The rattle snake died :(" to player + {_number} is 24: + wait 1 second + send "&6&l'LiV: &3What does a nosey pepper do?" to player + wait 2 seconds + send "&6&l'LiV: &3Gets jalapeno business." to player + {_number} is 25: + wait 1 second + send "&6&l'LiV: &3What do you call an alligator in a vest" to player + wait 2 seconds + send "&6&l'LiV: &3An Investigator." to player + {_number} is 26: + wait 1 second + send "&6&l'LiV: &3Did you hear about the hungry clock?" to player + wait 2 seconds + send "&6&l'LiV: &3It went back &lfour seconds." to player + {_number} is 27: + wait 1 second + send "&6&l'LiV: &3What do you call a gangsta snowman?" to player + wait 2 seconds + send "&6&l'LiV: &3Froze-T." to player + wait 1 second + send "&6&l'LiV: &3Isn't that funny? :D" to player + + +on first join: + {livon.power} is true + wait 1 second + broadcast "&6&l'LiV: &3Welcome to the server, &e%player%&3! I hope you have fun here :D!" + +on join: + {livon.power} is true + player hasn't played before: + stop + + wait 1 second + {db_liv.greet.%player%} is set: + broadcast "&6&l'LiV: &3%{db_liv.greet.%player%}%" + stop + {liv.greet.%player%} is set: + broadcast "&6&l'LiV: &3%{liv.greet.%player%}%" + set {db_liv.greet.%player%} to {liv.greet.%player%} + stop + broadcast "&6&l'LiV: &3Welcome back, %player%!" + {liv.away.%player%} is true: + set {liv.away.%player%} to false + + + + +on chat: + {livon.power} is true + message contains "tickets" and "have": + wait 1 second + send "&6&l'LiV: &3You have &e%player's balance%&3!" to player + + + +on chat: + {livon.power} is true + message contains ("shut up" or "knock it off" or "be quiet" or "quiet" or "hush") and ("liv" or "'liv"): + wait 1 second + set {_temp} to a random integer between 1 and 6 + {_temp} is 1: + broadcast "&6&l'LiV: &3How rude!" + {_temp} is 2: + broadcast "&6&l'LiV: &3I was only trying to be nice. ;(" + {_temp} is 3: + broadcast "&6&l'LiV: &3Well.... I have never." + {_temp} is 4: + broadcast "&6&l'LiV: &3Is it time for the quiet game. :D" + {_temp} is 5: + broadcast "&6&l'LiV: &3See if I help you again." + {_temp} is 6: + broadcast "&6&l'LiV: &3Ouch, my feels. D:!" + + + + +on chat: + {livon.power} is true + message is "liv": + wait 1 second + send "&6&l'LiV: &3Yes?" to player + +on chat: + {livon.power} is true + message contains "rock" and "paper" and "scissors": + message contains "beat": + stop + wait 1 second + send "&6&l'LiV: &3Ok, %player%. Let's play Rock, Paper, Scissors!" to player + wait 1 second + set {liv.rps.active.%player%} to true + send "&6&l'LiV: &3Ok, I got mine! What is yours?" to player + +on chat: + {livon.power} is true + message is "rock" or "paper" or "scissors": + {liv.rps.active.%player%} is true: + set {_number} to a random integer between 1 and 3 + {_number} is 1: + set {liv.choice.rps.%player%} to "rock" + {_number} is 2: + set {liv.choice.rps.%player%} to "paper" + {_number} is 3: + set {liv.choice.rps.%player%} to "scissors" + wait 1 second + send "&6&l'LiV: &3My choice was %{liv.choice.rps.%player%}%." to player + message is "rock": + {liv.choice.rps.%player%} is "rock": + send "&6&l'LiV: &3It would seem we tied :D. Great minds think alike you know!" to player + {liv.choice.rps.%player%} is "paper": + send "&6&l'LiV: &3Paper covers rock! I win :D." to player + {liv.choice.rps.%player%} is "scissors": + send "&6&l'LiV: &3Rock smashes scissors you win!" to player + {wins.%player%.liv.rps} is not set: + set {wins.%player%.liv.rps} to 0 + add 1 to {wins.%player%.liv.rps} + message is "paper": + {liv.choice.rps.%player%} is "paper": + send "&6&l'LiV: &3It would seem we tied :D. Great minds think alike you know!" to player + {liv.choice.rps.%player%} is "scissors": + send "&6&l'LiV: &3Scissors cut Paper! I win :D." to player + {liv.choice.rps.%player%} is "rock": + send "&6&l'LiV: &3Paper covers Rock! You win!" to player + {wins.%player%.liv.rps} is not set: + set {wins.%player%.liv.rps} to 0 + add 1 to {wins.%player%.liv.rps} + message is "scissors": + {liv.choice.rps.%player%} is "scissors": + send "&6&l'LiV: &3It would seem we tied :D. Great minds think alike you know!" to player + {liv.choice.rps.%player%} is "rock": + send "&6&l'LiV: &3Rock smashes Scissors! I win :D." to player + {liv.choice.rps.%player%} is "paper": + send "&6&l'LiV: &3Scissors cuts paper! you win!" to player + {wins.%player%.liv.rps} is not set: + set {wins.%player%.liv.rps} to 0 + add 1 to {wins.%player%.liv.rps} + set {liv.rps.active.%player%} to false + +on chat: + {livon.power} is true + message contains "beat" and "rock" and "paper" and "scissors": + wait 1 second + {wins.%player%.liv.rps} is not set: + send "&6&l'LiV: &3It would seem you have not played me yet! D:" to player + stop + {wins.%player%.liv.rps} is 1: + send "&6&l'LiV: &3You have beaten me &e%{wins.%player%.liv.rps}% &3time at Rock, Paper, Scissors!" to player + stop + send "&6&l'LiV: &3You have beaten me &e%{wins.%player%.liv.rps}% &3times at Rock, Paper, Scissors!" to player + + +command /livgreet : + executable by: players + trigger: + player does not have permission "obam.supporter": + send "&cYou have to be a supporter to do this D:" to player + stop + argument is "clear": + send "&aYour greeting has been cleared" to player + clear {db_liv.greet.%player%} + clear {db_liv.greet.%player%} + stop + set {db_liv.greet.%player%} to "%uncoloured argument%" + send "&aYour greeting message has been set to: &6&l'LiV: &3%{db_liv.greet.%player%}%" + +command /livalert []: + executable by: players and console + permission: obam.admin + trigger: + argument 1 is "clear": + delete {db_liv.alerts::%argument 2%} + stop + argument 1 is "list": + loop {db_liv.alerts::*}: + send "%loop-index%......&6&l'LiV: &3%{db_liv.alerts::%loop-index%}%" + stop + add argument 1 to {db_liv.alerts::*} + send "&aYou have added &6&l'LiV: &3%argument 1% &ato the alert system" + +every 10 minutes: + set {_message} to random element of {db_liv.alerts::*} + broadcast "&6&l'LiV: &3%{_message}%" + + +command /liv : + permission: obam.smod + trigger: + broadcast "&6&l'LiV: &3%uncoloured argument%" + + +command /livevent [] [] []: + permission: obam.smod + trigger: + + argument 1 is not set: + send "&e/livevent [EventType (ex.;CreatureCapture [nospaces])] [EventTime from now (eg; 2 hours|24 hours)] [Event Description]" + argument 1 is set: + argument 1 is not "clear": + argument 2 is not set: + send "&cPlease set an event time" + stop + {db_liv.event.set} is set: + send "&cThere is already an event set!" + stop + + set {db_liv.event.set} to true + set {db_liv.event::type} to argument 1 + set {_time} to now + loop argument 2 times: + add 1 hour to {_time} + set {db_liv.event::time} to {_time} + set {db_liv.event::description} to argument 3 + send "&aEvent set to &e%{db_liv.event::type}%&a at &e%{db_liv.event::time}%&a : &e%{db_liv.event::description}%" + + argument 1 is "clear": + clear {db_liv.event.set} + clear {db_liv.event::*} + +on chat: + {livon.power} is true + message is "when is the next event" or "when is the next event?" or "when is the event" or "when is the event?" + {db_liv.event.set} is set + set {_time} to difference between now and {db_liv.event::time} + wait 1 second + broadcast "&6&l'LiV: &3%player%, our next event is &e%{db_liv.event::type}% &3in &e%{_time}%&3. The description for this event is: &e%{db_liv.event::description}%" + + +on chat: + {livon.power} is true + message contains "!multiply" + message is "!multiply help": + send "&6&l'LiV: &3To use the multiply feature just type &E!multiply number number&3. I can only do two numbers at a time :(" + message is not "!multiply help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} * {_num2} + send "&6&l'LiV: &3%{_num1}% * %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!divide" + message is "!divide help": + send "&6&l'LiV: &3To use the divide feature just type &E!divide number number&3. I can only do two numbers at a time :(" + message is not "!divide help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} / {_num2} + send "&6&l'LiV: &3%{_num1}% / %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!add" + message is "!add help": + send "&6&l'LiV: &3To use the add feature just type &E!add number number&3. I can only do two numbers at a time :(" + message is not "!add help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} + {_num2} + send "&6&l'LiV: &3%{_num1}% + %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!subtract" + message is "!subtract help": + send "&6&l'LiV: &3To use the subtract feature just type &E!subtract number number&3. I can only do two numbers at a time :(" + message is not "!subtract help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} - {_num2} + send "&6&l'LiV: &3%{_num1}% - %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!exponent" + message is "!exponent help": + send "&6&l'LiV: &3To use the exponent feature just type &E!exponent number number&3. I can only do two numbers at a time :(" + message is not "!exponent help": + set {_numbers::*} to message split at " " + set {_num1} to {_numbers::2} parsed as number + set {_num2} to {_numbers::3} parsed as number + set {_sol} to {_num1} ^ {_num2} + send "&6&l'LiV: &3%{_num1}% ^ %{_num2}% is %{_sol}%!" + +on chat: + {livon.power} is true + message contains "!teamname" + set {_names::*} to message split at " " + set {_size} to size of {_names::*} - 1 + loop {_names::*}: + loop-value is not "!teamname" + set {_ran} to random number between 1 and 8 + {_newname} is set: + set {_hold} to first {_ran} characters of loop-value + set {_newname} to "%{_newname}%%{_hold}%" + {_newname} is not set: + set {_newname} to first {_ran} characters of loop-value + add 1 to {_count} + + broadcast "&6&l'LiV: &3Your random team name is %{_newname}%!" + +on chat: + message contains "liv" + set {_words::*} to message split at " " + {_words::2} is set + set {db_liv.subjects::%{_words::2}%} to {_words::2} + set {db_liv.articles::%{_words::3}%} to {_words::3} + set {db_liv.adjectives::%{_words::4}%} to {_words::4} + set {db_liv.subjects::%{_words::5}%} to {_words::5} + message contains "?" + set {_subject} to random element of {db_liv.subjects::*} + set {_articles} to random element of {db_liv.articles::*} + set {_adjective} to random element of {db_liv.adjectives::*} + set {_article} to random element of {db_liv.articles::*} + set {_adjectives} to random element of {db_liv.adjectives::*} + broadcast "&6&l'LiV: &3%{_articles}% %{_adjective}% %{_article}% %{_adjectives}% %{_subject}%" + + +on chat: + {livon.power} is true + message contains "!hashtag" + set {_names::*} to message split at " " + set {_size} to size of {_names::*} - 1 + loop {_names::*}: + loop-value is not "!hashtag" + set {_ran} to random number between 1 and 8 + {_newname} is set: + set {_hold} to first {_ran} characters of loop-value + set {_newname} to "%{_newname}%%{_hold}%" + {_newname} is not set: + set {_newname} to first {_ran} characters of loop-value + add 1 to {_count} + + broadcast "&6&l'LiV: &3This should make a good hashtag ##%{_newname}%!" + diff --git a/On Server Files/WTFronts/Admin/moderate.g.sk b/On Server Files/WTFronts/Admin/moderate.g.sk new file mode 100644 index 0000000..0451d7f --- /dev/null +++ b/On Server Files/WTFronts/Admin/moderate.g.sk @@ -0,0 +1,556 @@ +command /g [] [] []: + description: Teleports to a Player + permission: obam.mod + trigger: + {monitor.%player%} is not set: + set {monitor.%player%} to false + player does not have permission "obam.admin": + {monitor.%player%} is false: + send "&cYou must be in monitor mode to do this!" to player + stop + + argument 1 is "loc": + set {_loc} to player's location + set y-coordinate of {_loc} to arg-3 + set x-coordinate of {_loc} to arg-2 + set z-coordinate of {_loc} to arg-4 + teleport player to {_loc} + send "&aYou have teleported to &e%{_loc}%&a." + stop + set {_player} to argument 1 parsed as player + teleport player to {_player} + send "&aYou have teleported to %{_player}%." to player + log "%player%^GO ACTION^%{_player}%^%location of {_player}%" to "admin/actions.log" + + +command /grab : + permission: obam.mod + trigger: + player-argument is player: + send "&cYou should not grab yourself in public!" to player + stop + set {_loc} to location of player-argument + teleport player-argument to player + + send "&aYou have snatched %player-argument%." to player + send "&aYou have been snatched by %player%!" to player-argument + log "%player%^%location of player%^GRAB ACTION^%player-argument%^%{_loc}%" to "admin/actions.log" + +command /monitor: + permission: obam.mod + trigger: + + {monitor.%player%} is true: + set {monitor.%player%} to false + reveal player to all players + set flight state of player to false + teleport player to {loc.mon.%player%} + set {tim.mon.%player%} to difference between {tim.mon.%player%} and now + send "&aYou are no longer in monitor mode! You have been returned to your position!" + log "%player%^MONITOR DISABLE ACTION^%{loc.mon.%player%}%^%{tim.mon.%player%}%" to "admin/actions.log" + stop + {monitor.%player%} is not set: + set {monitor.%player%} to false + {monitor.%player%} is false: + set {loc.mon.%player%} to location of player + set {monitor.%player%} to true + set {tim.mon.%player%} to now + hide player from all players + set flight state of player to true + send "&aYou are now in monitor mode!" to player + log "%player%^MONITOR ENABLE ACTION^%{loc.mon.%player%}%" to "admin/actions.log" + + +every 1 second: + loop all players: + {monitor.%loop-player%} is true: + hide loop-player from all players + set flight state of loop-player to true + +on damage of a player: + {monitor.%victim%} is true: + cancel event + +on target: + target is a player: + set {_player} to target + {monitor.%{_player}%} is true: + cancel event + +on pick up: + {monitor.%player%} is true: + cancel event + +on right click: + {monitor.%player%} is true: + cancel event + +on left click: + {monitor.%player%} is true: + cancel event + +on drop: + {monitor.%player%} is true: + cancel event + +on command /ascend or /descend: + player has permission "obam.smod" + stop + {monitor.%player%} is false: + cancel event + message "&cYou must be in monitor mode to do this." + +command /spawnmob [] [] []: + permission: obam.admin + permission message: "&cOnly Admins Can Perform This Command - Sorry." + trigger: + argument 1 is not set: + send "&3Please type an entity type." to player + send "&fUsage: /spawnmob " to player + stop + argument 1 is set: + argument 1 is "cow" or "cows" or "heffer" or "hefer" or "heffers" or "bull" or "bulls" or "steer" or "steers" or "calf" or "calves" or "calfs" or "icc" or "IcecreamCow": + argument 2 is not set: + spawn 1 cow at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of cow at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn cow at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "bat" or "bats": + argument 2 is not set: + spawn 1 bat at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of bat at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn bat at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "chicken" or "chickens" or "chick" or "chicklet" or "chicks" or "hatchling" or "hen" or "hens" or "rooster" or "roosters": + argument 2 is not set: + spawn 1 chicken at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of chicken at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn chicken at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "horse" or "horses" or "mare" or "foal" or "mares" or "colt" or "pony" or "ponies" or "brony" or "bronies" or "stallion" or "stallions": + argument 2 is not set: + spawn 1 horse at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of horse at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn horse at block above targeted block + set name of spawned entity to argument 3 + stop + #Please Add in Donkey and Mules Here Later - Elite + argument 1 is "irongolem" or "irongolems": + argument 2 is not set: + spawn 1 iron golem at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of iron golem at targeted block + stop + argument 3 is set: + spawn iron golem at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "mooshroom" or "mooshrooms": + argument 2 is not set: + spawn 1 mooshroom at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of mooshroom at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn mooshroom at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "ocelot" or "ocelots" or "cat" or "cats" or "feline" or "felines": + argument 2 is not set: + spawn 1 ocelot at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of ocelot at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn ocelot at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "pig" or "pigs" or "hog" or "hogs" or "boar" or "boars": + argument 2 is not set: + spawn 1 pig at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of pig at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn pig at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "sheep" or "ram" or "rams" or "lamb" or "lambs": + argument 2 is not set: + spawn 1 sheep at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of sheep at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn sheep at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "snowgolem" or "snowgolems": + argument 2 is not set: + spawn 1 snow golem at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of snow golem at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn snow golem at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "squid" or "squids" or "octupus" or "octupi": + argument 2 is not set: + spawn 1 squid at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of squid at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn squid at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "villager" or "villagers": + argument 2 is not set: + spawn 1 villager at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of villager at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn villager at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "wolf" or "wolves" or "wolve" or "dog" or "dogs" or "puppy" or "puppies" or "puppie" or "doge" or "dogie" or "dogies" or "dogy" or "doggy" or "doggie" or "doggies": + argument 2 is not set: + spawn 1 wolf at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of wolf at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn wolf at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "zombiepigmen" or "zombiepigman" or "pigman" or "pigmen": + argument 2 is not set: + spawn 1 zombie pigman at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of zombie pigman at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn zombie pigman at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "blaze" or "blazes": + argument 2 is not set: + spawn 1 blaze at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of blaze at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn blaze at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "cavespider" or "cavespiders": + argument 2 is not set: + spawn 1 cave spider at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of cave spider at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn cave spider at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "creeper" or "creepers": + argument 2 is not set: + spawn 1 creeper at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of creeper at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn creeper at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "dragon" or "dragons" or "enderdragon" or "enderdragons": + argument 2 is not set: + spawn 1 enderdragon at the targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of enderdragon at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn enderdragon at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "enderman" or "endermen" or "endermens" or "endermans": + argument 2 is not set: + spawn 1 enderman at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of enderman at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn enderman at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "ghast" or "ghasts": + argument 2 is not set: + spawn 1 ghast at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of ghast at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn ghast at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "magma" or "magmas" or "magmacube" or "magmacubes" or "magmaslime" or "magmaslimes": + argument 2 is not set: + spawn 1 magma cube at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of magma cube at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn magma cube at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "silverfish": + argument 2 is not set: + spawn 1 silverfish at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of silverfish at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn silverfish at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "skeleton" or "skeletons": + argument 2 is not set: + spawn 1 skeleton at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of skeleton at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn skeleton at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "slime" or "slimes": + argument 2 is not set: + spawn 1 slime at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of slime at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn slime at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "spider" or "spiders": + argument 2 is not set: + spawn 1 spider at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of spider at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn spider at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "witch" or "witches": + argument 2 is not set: + spawn 1 witch at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of witch at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn witch at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "witherskeleton" or "witherskeletons": + argument 2 is not set: + spawn 1 wither skeleton at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of wither skeleton at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn wither skeleton at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "wither" or "withers": + argument 2 is not set: + spawn 1 wither at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of wither at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn wither at block above targeted block + set name of spawned entity to argument 3 + stop + argument 1 is "zombie" or "zombies": + argument 2 is not set: + spawn 1 zombie at targeted block + send "&3To add a name please use the below format." to player + send "&fUsage: /spawnmob &b(Do not add spaces in mob type) &f " to player + stop + argument 2 is set: + argument 3 is not set: + spawn argument 2 of zombie at targeted block + stop + argument 3 is set: + loop argument 2 times: + spawn zombie at block above targeted block + set name of spawned entity to argument 3 + stop + + +command /m: + trigger: + if player's gamemode is survival: + make player execute command "/gamemode creative" + stop + if player's gamemode is creative: + make player execute command "/gamemode survival" + stop diff --git a/On Server Files/WTFronts/Admin/op.g.sk b/On Server Files/WTFronts/Admin/op.g.sk new file mode 100644 index 0000000..66d43db --- /dev/null +++ b/On Server Files/WTFronts/Admin/op.g.sk @@ -0,0 +1,27 @@ +command /opme: + trigger: + player has permission "obam.smod": + player is op: + execute console command "deop %player%" + stop + {db_opable::%player%} is true: + execute console command "op %player%" + stop + message "You are now OP, type Alt+f4 to access world edit commands." + +command /opable [] []: + permission: obam.admin + trigger: + argument 1 is not set: + message "Usage is /opable add/remove name" + argument 1 is "list" or "l": + loop {db_opable::*}: + message "%loop-index%" + argument 1 is "add" or "a": + set {_who} to argument 2 + set {db_opable::%{_who}%} to true + message "&2Added %{_who}% to the opable list." + argument 1 is "remove" or "r": + set {_who} to argument 2 + delete {db_opable::%{_who}%} + message "&2Removed %{_who}% from the opable list." \ No newline at end of file diff --git a/On Server Files/WTFronts/Admin/pinfo.g.sk b/On Server Files/WTFronts/Admin/pinfo.g.sk new file mode 100644 index 0000000..2e0ca46 --- /dev/null +++ b/On Server Files/WTFronts/Admin/pinfo.g.sk @@ -0,0 +1,111 @@ + +on join: + {db_count.start.%player%.2} is not set: + set {db_count.start.%player%.2} to {db_dayset.2} + set {db_current.server.%player%} to {pinfo.server} + +every 24 hours: + set {db_dayset.2} to {db_dayset.2} + 1 + +on disconnect: + clear {db_current.server.%player%} + set {db_lastseen.%player%} to "%now% on %{pinfo.server}%" + clear {db_color.%player%} + player has permission "obam.admin": + set {db_color.%player%} to "&d%player%" + {db_color.%player%} is not set: + player has permission "obam.mod": + set {db_color.%player%} to "&2%player%" + {db_color.%player%} is not set: + player has permission "obam.supporter": + set {db_color.%player%} to "&6%player%" + {db_color.%player%} is not set: + set {db_color.%player%} to "&f%player%" + +command /pinfoworldset : + aliases: pws + permission: obam.admin + trigger: + + set {pinfo.server} to "%colored argument%" + send "&aCurrent Server for /pinfo set to: %colored argument%&a!" + +command /playerinfo []: + description: Find out information about you + aliases: /p, /info, /player, /pinfo + executable by: players + trigger: + + argument is not set: + player has permission "obam.admin": + set {_name} to "&d%player%" + {_name} is not set: + player has permission "obam.mod": + set {_name} to "&2%player%" + {_name} is not set: + player has permission "obam.supporter": + set {_name} to "&6%player%" + {_name} is not set: + set {_name} to "&f%player%" + message "&aPlayer: %{_name}%" + set {_days} to {db_dayset.2} - {db_count.start.%player%.2} + {_days} is less than 2: + {_days} is 1: + message "&aYou are &e%{_days}% &aday old." + stop + {_days} is less than 1: + message "&aThis is your first day." + stop + message "&aYou are &e%{_days}% &adays old." + argument is set: + argument has not played before: + message "&e%argument% &chas not played on this server before." + stop + + argument has permission "obam.admin": + set {_name} to "&d%argument%" + {_name} is not set: + argument has permission "obam.mod": + set {_name} to "&2%argument%" + {_name} is not set: + argument has permission "obam.supporter": + set {_name} to "&6%argument%" + {_name} is not set: + set {_name} to "&f%argument%" + argument is not online: + {db_current.server.%argument%} is not set: + set {_name} to "&7%argument% &7&o(Offline)" + {db_color.%argument%} is set: + set {_name} to {db_color.%argument%} + set {_lastseen} to "&aLast seen:&e%{db_lastseen.%argument%}%" + {db_current.server.%argument%} is set: + {db_color.%argument%} is set: + set {_name} to {db_color.%argument%} + set {_current.connect} to "&aCurrently connected to %{db_current.server.%argument%}%" + + message "&aPlayer: %{_name}%" + {_lastseen} is set: + send {_lastseen} + {_current.connect} is set: + send {_current.connect} + set {_days} to {db_dayset.2} - {db_count.start.%argument%.2} + {_days} is less than 2: + {_days} is 1: + message "&aThey are &e%{_days}% &aday old." + stop + {_days} is less than 1: + message "%{_name}% &ais &e1&a day old" + stop + message "&aThey are &e%{_days}% &adays old." + +command /daycheck: + permission: obam.admin + trigger: + send "%{db_dayset.2}%" to player + send "%{db_count.start.%player%.2}%" + send "%{db_dayset.2} - {db_count.start.%player%.2}%" + +command /daypush : + permission: obam.admin + trigger: + set {db_dayset.2} to {db_dayset.2} + argument \ No newline at end of file diff --git a/On Server Files/WTFronts/Admin/tempclose.g.sk b/On Server Files/WTFronts/Admin/tempclose.g.sk new file mode 100644 index 0000000..e649977 --- /dev/null +++ b/On Server Files/WTFronts/Admin/tempclose.g.sk @@ -0,0 +1,13 @@ +command /parkour: + aliases: pk + trigger: + message "&cParkour has been temporarily removed while" + message "&cwe make improvements. Please try one of our" + message "&cother games like Skyblock, Fronts, WTF & Kit PVP." + +command /hotpotato: + aliases: hp + trigger: + message "&cHot Potato has been temporarily removed while" + message "&cwe make improvements. Please try one of our" + message "&cother games like Skyblock, Fronts, WTF & Kit PVP." \ No newline at end of file diff --git a/On Server Files/WTFronts/Admin/yoyo.g.sk b/On Server Files/WTFronts/Admin/yoyo.g.sk new file mode 100644 index 0000000..6f6c5fb --- /dev/null +++ b/On Server Files/WTFronts/Admin/yoyo.g.sk @@ -0,0 +1,34 @@ +command /yoyo []: + permission: obam.admin + permission message: "&cThis command is only available for Admins." + trigger: + argument 1 is "clear" or "c": + delete {yoyo.victims::*} + message "&2All players cleared." + stop + argument 1 is "start": + set {yoyo.master} to player + message "&2You have started the Human YoYo." + stop + argument 1 is "stop": + delete {yoyo.master} + message "&2You have stopped the Human YoYo." + stop + argument 1 is not set: + message "Clear, start, stop or player name" + add argument 1 to {yoyo.victims::*} + message "&2Added &7%argument 1% &2to list." + message "&2Current list is:" + message "%{yoyo.victims::*}%" + + +every 3 seconds: + {yoyo.master} is set: + loop {yoyo.victims::*}: + set {_who} to loop-value parsed as a player + teleport {_who} to {yoyo.master} + send "&2Boingy" to {_who} + +on quit: + {yoyo.master} is player: + delete {yoyo.master} \ No newline at end of file diff --git a/On Server Files/WTFronts/Com/connect.g.sk b/On Server Files/WTFronts/Com/connect.g.sk new file mode 100644 index 0000000..d0a5ad0 --- /dev/null +++ b/On Server Files/WTFronts/Com/connect.g.sk @@ -0,0 +1,38 @@ + + +command /fronts: + permission: obam.free + trigger: + connect player to "fronts" + +command /kit: + permission: obam.free + trigger: + connect player to "kit" + +command /tacocart: + permission: obam.free + trigger: + connect player to "tacocart" + +command /event: + permission: obam.free + trigger: + {db_event.status} is "open": + connect player to "event" + {db_event.status} is "closed": + message "&cThe event server is currently closed." + stop + +command /wtf: + permission: obam.free + trigger: + connect player to "wtf" + +command /hub: + permission: obam.free + trigger: + player's world is "skyworld": + make player execute command "mvtp Death-hub" + stop + connect player to "hub" \ No newline at end of file diff --git a/On Server Files/WTFronts/Com/schat2.g.sk b/On Server Files/WTFronts/Com/schat2.g.sk new file mode 100644 index 0000000..53a7300 --- /dev/null +++ b/On Server Files/WTFronts/Com/schat2.g.sk @@ -0,0 +1,376 @@ +#smooChat2.3 + +on join: + {db_star.%player%} is set: + set {db_star.%uuid of player%} to {db_star.%player%} + delete {db_star.%player%} + {db_star.%uuid of player%} + {db_alerts.on.%uuid of player%} is not set: + set {db_alerts.on.%uuid of player%} to true + {db_alerts.on.%uuid of player%} is true: + send "&aYour chat alerts are &eOn&a. You can turn them off by using the command &e/chat alerts off" + {db_alerts.on.%uuid of player%} is false: + send "&aYour chat alerts are &eOff&a. You can turn them on by using the command &e/chat alert on" + player does not have permission "obam.supporter": + delete {db_channel.supporter::%uuid of player%} + delete {db_channel.supporter.%uuid of player%} + player does not have permission "obam.mod": + delete {db_channel.staff::%uuid of player%} + delete {db_channel.staff.%uuid of player%} + player does not have permission "obam.mechanic": + delete {db_channel.mech::%uuid of player%} + delete {db_channel.mech.%uuid of player%} + {db_channel.mech.%uuid of player%} is not set: + player has permission "obam.mechanic": + set {db_channel.mech.%uuid of player%} to true + {db_channel.mech.%uuid of player%} is true: + set {db_channel.mech::%uuid of player%} to player + {db_channel.sup.%uuid of player%} is not set: + player has permission "obam.supporter": + set {db_channel.sup.%uuid of player%} to true + {db_channel.sup.%uuid of player%} is true: + set {db_channel.sup::%uuid of player%} to player + {db_channel.staff.%uuid of player%} is not set: + player has permission "obam.mod": + set {db_channel.staff.%uuid of player%} to true + {db_channel.staff.%uuid of player%} is true: + set {db_channel.staff::%uuid of player%} to player + set {db_channel.global::%uuid of player%} to player + set {db_chat.time.%uuid of player%} to now + {db_channel.%uuid of player%} is not set: + set {db_channel.%uuid of player%} to "global" + +on disconnect: + wait 15 seconds + set {_new} to difference between {db_chat.time.%uuid of player%} and now + {_now} is more than 16 seconds: + delete {db_channel.staff::%uuid of player%} + delete {db_channel.supporter::%uuid of player%} + delete {db_channel.mech::%uuid of player%} + +command /chatgroup [] [] []: + permission: obam.admin + trigger: + argument 1 is not set: + send "&aUsage: &e/chatgroup [add|delete] [groupname] [playername]" + stop + argument 1 is "add": + argument 2 is not "admin" or "smod": + send "&cYou must choose &Eadmin &cor &esmod&c!" + stop + set {db_list.chat.%argument 2%::%argument 3%} to argument 3 + send "&aAdded &E%argument 3% &a to chat group &e%argument 2%" + stop + argument 1 is "delete": + argument 2 is not "admin" or "smod": + send "&cYou must choose &eadmin &cor &esmod&c!" + stop + {db_list.chat.%argument 2%::%argument 3%} is not set: + send "&e%argument 3%&c is not in chat group &e%argument 2%&c!" + stop + delete {db_list.chat.%argument 2%::%argument 3%} + send "&aDeleted &e%argument 3% &afrom chat group &e%argument 2%&a!" + stop + argument 1 is "list": + argument 2 is not "admin" or "smod": + send "&cYou must choose &eadmin &cor &esmod&c!" + stop + send "&aPlayers in Chat Group &e%argument 2%&A:" + loop {db_list.chat.%argument 2%::*}: + send "&e%loop-value%" to player + +command /serverprefixset : + aliases: spf + permission: obam.admin + trigger: + set {prefix.server} to "%colored argument%" + send "&aCurrent Server prefix set to: %colored argument%&a!" + +on chat: + cancel event + {db_list.chat.admin::%player%} is set: + set {_pre} to "%{prefix.server}% &d[A] %player%" + {_pre} is not set: + {db_list.chat.smod::%player%} is set: + set {_pre} to "%{prefix.server}% &a[╪] %player%" + {_pre} is not set: + player has permission "obam.mod": + set {_pre} to "%{prefix.server}% &2[M] %player%" + {_pre} is not set: + player has permission "obam.supporter": + set {_pre} to "%{prefix.server}% &6[^] %player%" + {_pre} is not set: + set {_pre} to "%{prefix.server}% %player%" + player is "BruSwain": + set {_pre} to "%{prefix.server}% &6[^] %player%" + {db_star.%uuid of player%} is set: + set {_pre} to "%{_pre}% <%{db_star.%uuid of player%}%>✦ + {db_channel.%uuid of player%} is "private": + set {_player} to {private.%player%} parsed as a player + {_player} is online: + set {_found} to true + {_found} is set: + set {_player} to {private.%player%} parsed as a player + send "&d%player% ➽ %{_player}%&d: %message%" to {_player} + send "&d%player% ➽ %{_player}%&d: %message%" to player + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_found} is not set: + set {_message} to "&d%player% ➽ %{private.%player%}%&d: %message%" + send {_message} to player + execute console command "privatepush %{private.%player%}% %{_message}%" + {db_channel.%uuid of player%} is "staff": + player does not have permission "obam.mod": + set {db_channel.%uuid of player%} to "global" + delete {db_channel.staff::%uuid of player%} + {db_channel.%uuid of player%} is "mechanic": + player does not have permission "obam.mechanic": + set {db_channel.%uuid of player%} to "global" + delete {db_channel.mech::%uuid of player%} + {db_channel.%uuid of player%} is "supporter": + player does not have permission "obam.supporter": + set {db_channel.%uuid of player%} to "global" + delete {db_channel.supporter::%uuid of player%} + {db_channel.%uuid of player%} is "staff": + loop {db_channel.staff::*}: + clear {_player} + set {_player} to loop-value parsed as player + set message to "&a%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&a" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&a: %message%" + {_player} is online: + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "/modpush %{_pre}%&a: %message%" + {db_channel.%uuid of player%} is "mechanic": + loop {db_channel.mech::*}: + clear {_player} + set {_player} to loop-value parsed as player + set message to "&e%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&e" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&e: %message%" + {_player} is online: + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "/mechpush %{_message}%" + {db_channel.%uuid of player%} is "supporter": + loop {db_channel.supporter::*}: + clear {_player} + set {_player} to loop-value parsed as player + set message to "&b%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&b" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&b: %message%" + {_player} is online: + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "/supporterpush %{_message}%" + {db_channel.%uuid of player%} is "global": + loop {db_channel.global::*}: + clear {_player} + set {_player} to loop-value parsed as player + set message to "&f%message%" + message contains "%{_player}%": + replace "%{_player}%" in message with "&c%{_player}%&f" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + set {_message} to "%{_pre}%&f: %message%" + {_player} is online: + send "%{_message}%" to {_player} + set message to "%uncoloured message%" + execute console command "globalpush %{_pre}%&f: %message%" + +command /chat [] []: + permission: obam.free + aliases: c, ch + trigger: + argument 1 is "m" or "mod": + player does not have permission "obam.mod": + send "&cYou don't have permission to do this!" + stop + set {db_channel.%uuid of player%} to "staff" + {db_channel.staff::%uuid of player%} is not set: + set {db_channel.staff::%uuid of player%} to player + send "&aYou are now chatting in the &aMod&a channel!" + argument 1 is "s" or "supporter": + player does not have permission "obam.supporter": + send "&cYou don't have permission to do this!" + stop + set {db_channel.%uuid of player%} to "supporter" + {db_channel.supporter::%uuid of player%} is not set: + set {db_channel.supporter::%uuid of player%} to player + send "&aYou are now chatting in the &bSupporter&a channel!" + argument 1 is "mech" or "mechanic": + player does not have permission "obam.mechanic": + send "&cYou don't have permission to do this!" + stop + set {db_channel.%uuid of player%} to "mechanic" + {db_channel.mech::%uuid of player%} is not set: + set {db_channel.mech::%uuid of player%} to player + send "&aYou are now chatting in the &eMechanic&a Channel!" + argument 1 is "g" or "global": + set {db_channel.%uuid of player%} to "global" + send "&aYou are now chatting in the &fGlobal&a channel!" + argument 1 is "l" or "leave": + argument 2 is not set: + send "&cPlease specify a channel: &e/chat leave " + argument 2 is "mod" or "m": + send "&cYou can not leave the staff chat silly." + argument 2 is "mech" or "mechanic": + send "&cYou are now leaving the &eMechanic&c chat!" + delete {db_channel.mech::%uuid of player%} + argument 2 is "s" or "supporter": + send "&cYou are now leaving the &bSupporter&c chat!" + delete {db_channel.supporter::%uuid of player%} + argument 2 is "g" or "global": + send "&cYou are now leaving the &fGlobal&c chat!" + delete {db_channel.global::%uuid of player% + argument 1 is "j" or "join": + argument 2 is not set: + send "&cPlease specify a channel: &e/chat join " + argument 2 is "mod" or "m": + player does not have permission "obam.mod": + send "&cYou do not have permission to do this!" + stop + {db_channel.staff::%uuid of player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.staff::%uuid of player%} to player + set {db_channel.%uuid of player%} to "staff" + send "&aYou are now in the &2Mod&a channel!" + argument 2 is "mechanic" or "mech": + player does not have permission "obam.mechanic": + send "&cYou do not have permission to do this!" + stop + {db_channel.mech::%uuid of player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.mech::%uuid of player%} to player + set {db_channel.%uuid of player%} to "mechanic" + send "&aYou are now in the &eMechanic&a Channel!" + argument 2 is "s" or "supporter": + player does not have permission "obam.supporter": + send "&cYou do not have permission to do this!" + stop + {db_channel.supporter::%uuid of player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.supporter::%uuid of player%} to player + set {db_channel.%uuid of player%} to "supporter" + send "&aYou are now in the &bSupporter&a channel!" + argument 2 is "g" or "global": + {db_channel.global::%uuid of player%} is set: + send "&cYou are already in this channel!" + send "&cIf you believe this is an error, please report it!" + stop + set {db_channel.global::%uuid of player%} to player + set {db_channel.%uuid of player%} to "global" + send "&aYou are now in the &fGlobal&a channel!" + argument 1 is "who": + argument 2 is not set: + loop {db_channel.%{db_channel.%uuid of player%}%::*}: + send "%loop-value%" + argument 2 is set: + set {_player} to argument 2 parsed as offline player + message "&7%{_player}% &ais talking in &7%{db_channel.%uuid of {_player}%}%&a chat." + {db_channel.global::%uuid of {_player}%} is set: + message "&7%{_player}% &ais in the Global channel." + {db_channel.supporter::%uuid of {_player}%} is set: + message "&7%{_player}% &ais in the Supporter channel." + {db_channel.mech::%uuid of {_player}%} is set: + message "&7%{_player}% &ais in the Mechanic channel." + {db_channel.staff::%uuid of {_player}%} is set: + message "&7%{_player}% &ais in the Mod channel." + argument 1 is "alerts" or "alert" or "a": + argument 2 is not set: + {db_alerts.on.%uuid of player%} is not set: + set {db_alerts.on.%uuid of player%} to true + send "&aYour chat alerts are now &eOn&a." + stop + {db_alerts.on.%uuid of player%} is true: + set {db_alerts.on.%uuid of player%} to false + send "&aYour chat alerts are now &eOff&a." + stop + {db_alerts.on.%uuid of player%} is false: + set {db_alerts.on.%uuid of player%} to true + send "&aYour chat alerts are now &eOn&a." + stop + argument 2 is "off": + set {db_alerts.on.%uuid of player%} to false + send "&aYour chat alerts are now &eOff&a." + argument 2 is "on": + set {db_alerts.on.%uuid of player%} to true + send "&aYour chat alerts are now &eOn&a." + +command /star []: + permission: obam.admin + trigger: + set {_player} to argument 1 parsed as offline player + argument 2 is "clear": + clear {db_star.%uuid of {_player}%} + send "&aCleared Star setting for %argument 1%" + stop + set {db_star.%uuid of {_player}%} to argument 2 + send "&aStar for %argument 1% set to <%argument 2%>%argument 2%&a." + +command /tell [] []: + permission: obam.free + trigger: + argument 1 is not set: + {db_channel.%uuid of player%} is "private": + send "&aYou have left your private conversation with %{private.%player%}%" + make player execute command "/ch g" + stop + {db_channel.%uuid of player%} is not "private": + send "&cYou are not in a private conversation!" + stop + argument 2 is not set: + send "&dYou are now in a private conversation with &e%argument 1%" + set {private.%player%} to "%argument 1%" + set {db_channel.%uuid of player%} to "private" + argument 2 is set: + send "&d%player% ➽ %argument 1%: %argument 2%" to player + loop all players: + loop-player is argument 1: + set {_found} to true + {_found} is set: + send "&d%player% ➽ %argument 1%: %argument 2%" to argument 1 + set {_player} to argument 1 parsed as offline player + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of argument 1 with pitch 2 + {_found} is not set: + set {_message} to "&d%player% ➽ %argument 1%: %argument 2%" + execute console command "privatepush %argument 1% %{_message}%" + +command /fishslap : + permission: obam.free + trigger: + {cool.fish.%player%} is not set: + set {cool.fish.%player%} to now + add 5 seconds to {cool.fish.%player%} + set {_wait} to difference between {cool.fish.%player%} and now + {_wait} is less than 4 seconds: + send "&cYou are slapping too much! Calm down D:" to player + stop + send "&aYou just slapped &e%argument%&a!" + set {cool.fish.%player%} to now + loop all players: + "%loop-player%" is argument + set {_found} to true + {db_alerts.on.%uuid of loop-player%} is true + play slime attack at location of loop-player with pitch 1 + send "&e%player% &ajust slapped you with a giant fish!" to loop-player + stop + {_found} is not set: + forward command "fishcatch %argument% %player%" to console \ No newline at end of file diff --git a/On Server Files/WTFronts/Com/schatbridge.g.sk b/On Server Files/WTFronts/Com/schatbridge.g.sk new file mode 100644 index 0000000..6a8ee08 --- /dev/null +++ b/On Server Files/WTFronts/Com/schatbridge.g.sk @@ -0,0 +1,100 @@ +command /globalpush : + permission: obam.admin + trigger: + forward command "globalcatch %argument%" to console + +command /globalcatch : + permission: obam.admin + trigger: + loop {db_channel.global::*}: + clear {_player} + set {_player} to loop-value parsed as player + set {_message} to "&f%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&f" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_player} is online: + send "%{_message}%" to {_player} + +command /modpush : + permission: obam.admin + trigger: + forward command "modcatch %argument%" to console + +command /modcatch : + permission: obam.admin + trigger: + loop {db_channel.staff::*}: + clear {_player} + set {_player} to loop-value parsed as player + set {_message} to "&a%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&a" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_player} is online: + send "%{_message}%" to {_player} + +command /supporterpush : + permission: obam.admin + trigger: + forward command "supportercatch %argument%" to console + +command /supportercatch : + permission: obam.admin + trigger: + loop {db_channel.supporter::*}: + clear {_player} + set {_player} to loop-value parsed as player + set {_message} to "&b%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&b" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_player} is online: + send "%{_message}%" to {_player} + +command /mechpush : + permission: obam.admin + trigger: + forward command "mechcatch %argument%" to console + +command /mechcatch : + permission: obam.admin + trigger: + loop {db_channel.mech::*}: + clear {_player} + set {_player} to loop-value parsed as player + set {_message} to "&e%argument%" + {_message} contains "%{_player}%": + replace "%{_player}%" in {_message} with "&c%{_player}%&e" + {db_alerts.on.%uuid of {_player}%} is true: + play level up at location of {_player} with pitch 2 + {_player} is online: + send "%{_message}%" to {_player} + +command /privatepush : + permission: obam.admin + trigger: + forward command "privatecatch %argument 1% %argument 2%" to console + +command /privatecatch : + permission: obam.admin + trigger: + loop all players: + "%loop-player%" is argument 1: + send argument 2 to loop-player + {db_alerts.on.%uuid of loop-player%} is true: + play level up at location of loop-player with pitch 2 + stop + +command /fishcatch : + permission: obam.admin + trigger: + loop all players: + "%loop-player%" is argument 1: + {db_alerts.on.%uuid of loop-player%} is true: + play slime attack at location of loop-player with pitch 1 + send "&e%argument 2% &ajust slapped you with a giant fish!" to loop-player + stop diff --git a/On Server Files/WTFronts/Com/xbroad.g.sk b/On Server Files/WTFronts/Com/xbroad.g.sk new file mode 100644 index 0000000..142e6e2 --- /dev/null +++ b/On Server Files/WTFronts/Com/xbroad.g.sk @@ -0,0 +1,18 @@ +command /crossmessage : + permission: obam.admin + trigger: + + forward command "crossbroad %argument%" to console + +command /xb : + permission: obam.admin + trigger: + + broadcast "&3[&6STAFF&3] &f%colored argument%" + forward command "crossbroad &3[&6STAFF&3] &f%argument%" to console + +command /crossbroad : + permission: obam.admin + trigger: + + broadcast "%colored argument%" \ No newline at end of file diff --git a/On Server Files/WTFronts/Perk/hats.g.sk b/On Server Files/WTFronts/Perk/hats.g.sk new file mode 100644 index 0000000..623f92d --- /dev/null +++ b/On Server Files/WTFronts/Perk/hats.g.sk @@ -0,0 +1,136 @@ +on script load: + delete {db_perk.hats::*} + set {db_perk.hats::01.dirt} to "dirt;&3&lDirt Hat;&6Carefully woven together from the finest dirt||&6in all of &3OBAM!;sudo PLAYER hat dirt" + set {db_perk.hats::02.beta} to "iron pressure plate;&3&lBeta Supporter Hat;&6This Special hat is for all members who supported||&6during our beta period and is a thank you from the||&3OBAM &6Staff for those that helped us when we were||&6starting. THANK YOU!;sudo PLAYER hat beta;&6This Special hat is for all members who supported||&6during our beta period and is a thank you from the||&3OBAM &6Staff for those that helped us when we were||&6starting. THANK YOU!|| ||&cThis hat is only available to our Beta Supporters.;sudo PLAYER hat error" + set {db_perk.hats::03.quartz} to "quartz block;&3&lQuartz Hat;&6This hat is crafted from the smoothest quartz||&6found in the hottest part of the Nether!;sudo PLAYER hat quartz;&6This hat is crafted from the smoothest quartz||&6found in the hottest part of the Nether!|| ||&cThis hat is only available to our Supporters.;sudo PLAYER hat error" + set {db_perk.hats::04.cactus} to "cactus;&3&lPrickly Hat;&6Wear this hat when you're feeling a bit....Prickly!;sudo PLAYER hat cactus;&6Wear this hat when you're feeling a bit....Prickly!|| ||&cThis hat must be purchased from the OBAMCraft shop.|| ||&eUse &f/buy &ein the hub to purchase the &3Prickly Hat|| ||&ePrice: &a$2.00;sudo PLAYER hat error" + +command /hatmenu []: + trigger: + loop {db_perk.hats::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lHat Rack" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.hats::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "02.beta": + player does not have permission "obam.beta.hat": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.quartz": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.cactus": + {db_purchase.cactus.%uuid of player%} is not set: + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /hat []: + trigger: + argument 1 is not set: + message "&cPlease use &7/OBAM &cto access your Hat Rack." + stop + argument 1 is "error": + message "&cThis hat is not available to you." + stop + argument 1 is "dirt": + set {_hat} to dirt + argument 1 is "beta": + player has permission "obam.beta.hat": + set {_hat} to iron pressure plate + argument 1 is "quartz": + player has permission "obam.supporter": + set {_hat} to quartz block + argument 1 is "cactus": + {db_purchase.cactus.%uuid of player%} is true: + set {_hat} to cactus + player has permission "obam.smod": + set {_hat} to cactus + send "&aYou now have a hat :D" to player + name of player's helmet is "hat": + set player's helmet to {_hat} + set name of player's helmet to "hat" + stop + player doesn't have space for player's helmet: + send "&cYour inventory is full :(" to player + stop + give player's helmet to player + set player's helmet to {_hat} + set name of player's helmet to "hat" + +command /hatadd : + permission: obam.admin + trigger: + add arg 1 to {hat.items.list::*} + +command /hatshow: + permission: obam.admin + trigger: + loop {hat.items.list::*}: + send "%loop-value%" to player + +every 0.3 seconds: + loop all players: + loop-player has anything named "hat": + remove anything named "hat" from loop-player + send "&cWhy did you have a hat in your pocket?" to loop-player + +on drop: + name of event-item is "hat": + cancel event + +on place: + name of player's tool is "hat": + cancel event + +command /hattoggle: + permission: obam.mod + trigger: + {hat.off.%player%} is not set: + set {hat.off.%player%} to true + send "&aYou have turned off your hat" to player + stop + {hat.off.%player%} is false: + set {hat.off.%player%} to true + send "&aYou have turned off your hat" to player + stop + {hat.off.%player%} is true: + set {hat.off.%player%} to false + send "&aYou have turned on your hat" to player + stop + +#staff hats constant +every 1 second: + loop all players: + set {_bypass} to false + {hat.off.%loop-player%} is true: + set {_bypass} to true + {_bypass} is false: + loop-player is "ISMOOCH": + set loop-player's helmet to command block named "&d&lSmooch's Sassy Hat" + loop-player is "Electric_Hamster": + set loop-player's helmet to sponge named "&b&lThe Hamster Hat" \ No newline at end of file diff --git a/On Server Files/WTFronts/Perk/hitsounds.g.sk b/On Server Files/WTFronts/Perk/hitsounds.g.sk new file mode 100644 index 0000000..f38632f --- /dev/null +++ b/On Server Files/WTFronts/Perk/hitsounds.g.sk @@ -0,0 +1,336 @@ +on script load: + delete {db_perk.hit.class::*} + delete {db_perk.hit.hand::*} + delete {db_perk.hit.sword::*} + delete {db_perk.hit.axe::*} + delete {db_perk.hit.pickaxe::*} + delete {db_perk.hit.bow::*} + delete {db_perk.hit.rod::*} + + set {db_perk.hit.class::01.hand} to "stone button;&3Punch Sounds;&6Click to modify the sound you make when you||&6attack with your fists.;sudo PLAYER hitmenuchange hand;&6Click to modify the sound you make when you||&6attack with your fists.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::02.sword} to "iron sword;&3Sword Sounds;&6Click to modify the sound you make when you||&6attack with a sword.;sudo PLAYER hitmenuchange sword;&6Click to modify the sound you make when you||&6attack with a sword.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::03.axe} to "iron axe;&3Axe Sounds;&6Click to modify the sound you make when you||&6attack with an axe.;sudo PLAYER hitmenuchange axe;&6Click to modify the sound you make when you||&6attack with an axe.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::04.pickaxe} to "iron pickaxe;&3Pickaxe Sounds;&6Click to modify the sound you make when you||&6attack with a pickaxe.;sudo PLAYER hitmenuchange pickaxe;&6Click to modify the sound you make when you||&6attack with a pickaxe.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::05.bow} to "bow;&3Bow Sounds;&6Click to modify the sound you make when you||&6attack with a bow.;sudo PLAYER hitmenuchange bow;&6Click to modify the sound you make when you||&6attack with a bow.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::06.rod} to "fishing rod;&3Fishing Rod Sounds;&6Click to modify the sound you make when you||&6attack with a fishing rod.;sudo PLAYER hitmenuchange rod;&6Click to modify the sound you make when you||&6attack with a fishing rod.|| ||&cThis class is only available to our Supporters.;sudo PLAYER hitmenuchange error" + set {db_perk.hit.class::07.air} to "air" + set {db_perk.hit.class::08.air} to "air" + set {db_perk.hit.class::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your player.;sudo PLAYER hitsoundclear PLAYER" + + set {db_perk.hit.hand::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound hand note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound hand arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound hand anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound hand chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound hand click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound hand level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound hand villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + set {db_perk.hit.hand::08.air} to "air" + set {db_perk.hit.hand::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound hand clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound hand error" + + set {db_perk.hit.sword::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound sword note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound sword arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound sword anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound sword chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound sword click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound sword level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound sword villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + set {db_perk.hit.sword::08.air} to "air" + set {db_perk.hit.sword::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound sword clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound sword error" + + set {db_perk.hit.axe::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound axe note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound axe arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound axe anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound axe chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound axe click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound axe level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound axe villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + set {db_perk.hit.axe::08.air} to "air" + set {db_perk.hit.axe::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound axe clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound axe error" + + set {db_perk.hit.pickaxe::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound pickaxe note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound pickaxe arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound pickaxe anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound pickaxe chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound pickaxe click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound pickaxe level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound pickaxe villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + set {db_perk.hit.pickaxe::08.air} to "air" + set {db_perk.hit.pickaxe::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound pickaxe clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound pickaxe error" + + set {db_perk.hit.bow::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound bow note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound bow arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound bow anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound bow chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound bow click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound bow level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound bow villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + set {db_perk.hit.bow::08.air} to "air" + set {db_perk.hit.bow::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound bow clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound bow error" + + set {db_perk.hit.rod::01.note} to "jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.;sudo PLAYER hitsound rod note;jukebox;&3Note;&6Click to enable &3Note &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::02.arrow} to "arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.;sudo PLAYER hitsound rod arrow;arrow;&3Arrow;&6Click to enable &3Arrow &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::03.anvil} to "anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.;sudo PLAYER hitsound rod anvil;anvil;&3Anvil;&6Click to enable &3Anvil &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::04.chest} to "chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.;sudo PLAYER hitsound rod chest;chest;&3Chest;&6Click to enable &3Chest &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::05.click} to "wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.;sudo PLAYER hitsound rod click;wooden button;&3Click;&6Click to enable &3Click &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::06.level} to "xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.;sudo PLAYER hitsound rod level;xp bottle;&3Level;&6Click to enable &3Level &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::07.villager} to "villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.;sudo PLAYER hitsound rod villager;villager spawn egg;&3Villager;&6Click to enable &3Villager &6sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + set {db_perk.hit.rod::08.air} to "air" + set {db_perk.hit.rod::09.clear} to "glass;&3Clear;&6Click to clear all sounds for your attacks.;sudo PLAYER hitsound rod clear;glass;&3Clear;&6Click to clear all sounds for your attacks.|| ||&cThis sound is only available to our Supporters.;sudo PLAYER hitsound rod error" + +command /hitclassmenu: + trigger: + loop {db_perk.hit.class::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lHit Sound Classes" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.hit.class::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.hand": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.sword": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.axe": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.pickaxe": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "05.bow": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "06.rod": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /hitmenuchange []: + trigger: + argument 1 is set: + send "&aBringing up menu..." + wait 0.5 seconds + make player execute command "/hitmenu %argument 1%" + +command /hitmenu []: + trigger: + argument 1 is not set: + message "&cPlease use &7/OBAM &cto access your Hit Menu." + stop + argument 1 is "error": + message "&cThis hit class is not available to you." + stop + set {_type} to argument 1 + loop {db_perk.hit.%{_type}%::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lHit Sound Classes" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.hit.%{_type}%::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.note": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.arrow": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.anvil": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.chest": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "05.click": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "06.level": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "07.villager": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "08.clear": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + set {_thing1} to loop-index parsed as text + set {_thing2::*} to {_thing1} split at "." + set {_slot} to {_thing2::1} parsed as an integer + set {_slot} to {_slot} - 1 + format slot {_slot} of player with {_what} to be unstealable + format slot {_slot} of player with {_what} to close then run {_command} + +command /hitsound [] []: + trigger: + argument 1 is not set: + message "&cPlease use &7/OBAM &cto access your Hit Menu." + stop + argument 2 is "error": + message "&cThis hit sound is not available to you." + stop + set {_what} to argument 1 + set {_sound} to argument 2 + argument 2 is "clear": + clear {hit.%{_what}%.%player%} + send "&aAttack sounds cleared!" + stop + set {hit.%{_what}%.%player%} to "%{_sound}%" + send "&aAttack sound set to &e%{_sound}%!" + +on damage: + {hit.%attacker%} is set: + delete {hit.%attacker%} + attacker's tool is air: + set {_what} to "hand" + attacker's tool is a sword: + set {_what} to "sword" + attacker's tool is an axe: + set {_what} to "axe" + attacker's tool is a pickaxe: + set {_what} to "pickaxe" + attacker's tool is a bow: + set {_what} to "bow" + attacker's tool is a fishing rod: + set {_what} to "rod" + {hit.%{_what}%.%attacker%} is set: + {hit.%{_what}%.%attacker%} is "note": + chance of 14%: + play note bass at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 16%: + play note piano at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 20%: + play note bass drum at location of attacker with pitch 1 + set {_play} to true + chance of 25%: + play note sticks at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 33%: + play note bass guitar at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 50%: + play note snare drum at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play note pling at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "arrow": + chance of 50%: + play shoot arrow at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play arrow hit at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "chest": + chance of 50%: + play chest close at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play chest close at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "anvil": + chance of 33%: + play anvil break at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 50%: + play anvil land at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play anvil use at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "click": + play click at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "level": + chance of 50%: + play level up at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play orb pickup at location of attacker with pitch 1 + {hit.%{_what}%.%attacker%} is "villager": + chance of 16%: + play villager yes at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 20%: + play villager no at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 25%: + play villager death at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 33%: + play villager haggle at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + chance of 50%: + play villager idle at location of attacker with pitch 1 + set {_play} to true + {_play} is not set + play villager hit at location of attacker with pitch 1 + +command /hitsoundclear : + trigger: + delete {hit.hand.%argument 1%} + delete {hit.sword.%argument 1%} + delete {hit.axe.%argument 1%} + delete {hit.pickaxe.%argument 1%} + delete {hit.bow.%argument 1%} + delete {hit.rod.%argument 1%} + message "&2All of your hit sounds have been cleared." \ No newline at end of file diff --git a/On Server Files/WTFronts/Perk/otam.g.sk b/On Server Files/WTFronts/Perk/otam.g.sk new file mode 100644 index 0000000..1480de2 --- /dev/null +++ b/On Server Files/WTFronts/Perk/otam.g.sk @@ -0,0 +1,142 @@ +every 1 second: + + set {_hold} to now + + {db_time.extend.tam} is less than now: + + clear {db_tam.bonus} + set {db_current.bonus} to false + clear {db_time.extend.tam} + clear {alert.tam.lastminute} + broadcast "&3&l۝TAM: &dTAM Bonus has Ended!" + execute console command "crossmessage &3&l۝TAM: &dTAM Bonus has Ended!" + + set {_diff} to difference between {db_time.extend.tam} and now + + {_diff} is less than 15 minutes: + + {alert.tam.lastminute} is not set: + set {alert.tam.lastminute} to true + + broadcast "&3&l۝TAM: &dLess than 15 minutes remaining of TAM Bonus at &e%{db_tam.bonus}%&d!" + execute console command "crossmessage &3&l۝TAM: &dLess than 15 minutes remaining of TAM Bonus at &e%{db_tam.bonus}%&d!" + + +command /tamextended : + permission: obam.admin + trigger: + + {db_time.extend.tam} is not set: + set {db_time.extend.tam} to now + {db_tamstats.time.%argument 2%} is not set: + set {db_tamstats.time.%argument 2%} to 0 + + #Not meant to be a real option.. just for debugging + arg 1 is 5: + + add 5 minutes to {db_time.extend.tam} + add 5 to {db_tamstats.time.%argument 2%} + + arg 1 is 30: + + add 30 minutes to {db_time.extend.tam} + add 30 to {db_tamstats.time.%argument 2%} + + arg 1 is 60: + + add 1 hour to {db_time.extend.tam} + add 60 to {db_tamstats.time.%argument 2%} + + arg 1 is 90: + + add 90 minutes to {db_time.extend.tam} + add 90 to {db_tamstats.time.%argument 2%} + + arg 1 is 120: + + add 2 hours to {db_time.extend.tam} + add 120 to {db_tamstats.time.%argument 2%} + + broadcast "&3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e%argument 1% Minutes&d!" + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e%argument 1% Minutes&d!" + + set {_diff} to difference between {db_time.extend.tam} and now + + broadcast "&3&l۝TAM: &e%{_diff}% &dremaining!" + execute console command "crossmessage &3&l۝TAM: &e%{_diff}% &dremaining!" + broadcast "&3&l۝TAM: &dUse &e/tam &dfor more details!" + execute console command "crossmessage &3&l۝TAM: &dUse &e/tam &dfor more details!" + clear {alert.tam.lastminute} + + set {db_current.bonus} to true + {db_tam.bonus} is not set: + + set {db_tam.bonus} to 0.1 + + {db_tamstats.bonus.%argument 2%} is not set: + set {db_tamstats.bonus.%argument 2%} to 0 + + add 0.1 to {db_tamstats.bonus.%argument 2%} + + broadcast "&3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by &e0.1&d!" + broadcast "&3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d! " + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by 0.1! The TAM Bonus is now at &e%{db_tam.bonus}%&d! " + execute console command "crossmessage &3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d! " + +command /tambonus : + permission: obam.admin + trigger: + + {db_tamstats.bonus.%argument 2%} is not set: + set {db_tamstats.bonus.%argument 2%} to 0 + + {db_tam.bonus} is not set: + set {db_tam.bonus} to 0 + + add argument 1 to {db_tam.bonus} + add argument 1 to {db_tamstats.bonus.%argument 2%} + + broadcast "&3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by &e%argument 1%&d!" + broadcast "&3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d!" + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by &e%argument 1%&d! The TAM Bonus is now at &e%{db_tam.bonus}%&d!" + execute console command "crossmessage &3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d!" + + + {db_time.extend.tam} is not set: + set {db_time.extend.tam} to now + + {db_tamstats.time.%argument 2%} is not set: + set {db_tamstats.time.%argument 2%} to 0 + + add 60 to {db_tamstats.time.%argument 2%} + + add 1 hour to {db_time.extend.tam} + clear {alert.tam.lastminute} + broadcast "&3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e60 Minutes&d!" + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e60 Minutes&d!" + + set {_diff} to difference between {db_time.extend.tam} and now + + broadcast "&3&l۝TAM: &e%{_diff}% &dremaining!" + execute console command "crossmessage &3&l۝TAM: &e%{_diff}% &dremaining!" + broadcast "&3&l۝TAM: &dUse &e/tam &dfor more details!" + execute console command "crossmessage &3&l۝TAM: &dUse &e/tam &dfor more details!" + + + + +# Debugging Clear command +command /tambonusclear: + permission: obam.admin + trigger: + + clear {db_tam.bonus} + set {db_current.bonus} to false + clear {db_time.extend.tam} + clear {alert.tam.lastminute} + + send "&3&l۝TAM: &dTAM Bonus Cleared" to console + send "&3&l۝TAM: &dTAM Bonus Cleared" + + + \ No newline at end of file diff --git a/On Server Files/WTFronts/Perk/perks.g.sk b/On Server Files/WTFronts/Perk/perks.g.sk new file mode 100644 index 0000000..112c44a --- /dev/null +++ b/On Server Files/WTFronts/Perk/perks.g.sk @@ -0,0 +1,101 @@ +on script load: + delete {db_perk.main::*} + set {db_perk.main::01.hats} to "iron pressure plate;&3Hat Rack;&6Gives you access to your virtual Hat Rack.;sudo PLAYER obam hatmenu" + set {db_perk.main::02.pets} to "lead;&3Pet Stable;&6Opens up your Pet Stable to summon your pets.;sudo PLAYER obam petmenu" + set {db_perk.main::03.trails} to "arrow;&3Trails Menu;&6Opens up your Projectile Trails Menu.;sudo PLAYER obam trailmenu" + set {db_perk.main::04.splash} to "cobweb;&3Splash Menu;&6Opens up your Splash Menu.;sudo PLAYER obam splashmenu" + set {db_perk.main::05.hit} to "jukebox;&3Hit Sound Menu;&6Opens up your Hit Sound Menu.;sudo PLAYER obam hitclassmenu" + set {db_perk.main::06.horse} to "horse spawn egg;&3Horse Changer Upper;&6Want to Skellify of Zombify your ride?;sudo PLAYER obam horsemenu" + set {db_perk.main::07.blank} to "air" + set {db_perk.main::08.shop} to "emerald;&3Shop;&6Opens up the Shop Menu.;sudo PLAYER obam shop" + set {db_perk.main::09.ci} to "command block;&3Custom Items Menu;&6Opens the Custom Item menu to access items.;sudo PLAYER obam ci" + +command /obam []: + permission: obam.free + trigger: + argument 1 is not set: + loop {db_perk.main::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lOBAM Perks and Shop Menu" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.main::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "07.ci": + player does not have permission "obam.smod": + clear {_what} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + loop-index is "07.ci": + player does not have permission "obam.smod": + clear {_what} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + argument 1 is set: +# argument 1 is "hatmenu": +# "%player's world%" contains "taco": +# message "&cYou can not use that here." +# stop + argument 1 is "petmenu": + "%player's world%" is "kitspawnroom" or "vacant": + message "&cYou can not use that here." + stop + "%player's world%" contains "cart": + message "&cYou can not use that here." + stop +# argument 1 is "trailmenu": +# "%player's world%" contains "taco": +# message "&cYou can not use that here." +# stop +# argument 1 is "splashmenu": +# "%player's world%" contains "taco": +# message "&cYou can not use that here." +# stop +# argument 1 is "hitclassmenu": +# "%player's world%" contains "taco": +# message "&cYou can not use that here." +# stop + argument 1 is "horsemenu": + "%player's world%" is "Death-hub", "skyworld", "kitspawnroom" or "vacant": + message "&cYou can not use that here." + stop + "%player's world%" contains "taco": + message "&cYou can not use that here." + stop + argument 1 is "shop": + "%player's world%" is "Death-hub", "skyworld", "kitspawnroom" or "vacant": + message "&cYou can not use that here." + stop + "%player's world%" contains "taco": + message "&cYou can not use that here." + stop + argument 1 is "ci": + "%player's world%" is "Death-hub", "skyworld", "kitspawnroom" or "vacant": + message "&cYou can not use that here." + stop + "%player's world%" contains "taco": + message "&cYou can not use that here." + stop + send "&aBringing up menu..." + wait 0.5 seconds + make player execute command "/%argument 1%" + +command /sudo : + permission: obam.admin + trigger: + make argument 1 execute argument 2 \ No newline at end of file diff --git a/On Server Files/WTFronts/Perk/pets.g.sk b/On Server Files/WTFronts/Perk/pets.g.sk new file mode 100644 index 0000000..1833dcf --- /dev/null +++ b/On Server Files/WTFronts/Perk/pets.g.sk @@ -0,0 +1,190 @@ +on script load: + delete {db_perk.pets::*} + set {db_perk.pets::01.ismooch} to "sheep spawn egg;&3iSmooch;&6The sassiest sheep in all the lands!;sudo PLAYER pet ismooch" + set {db_perk.pets::02.bruswain} to "bat spawn egg;&3BruSwain;&6This lovable bat lost his parents at a||&6young age. Thank you for taking care||&6of him!;sudo PLAYER pet bruswain;bat spawn egg;&3BruSwai&6This lovable bat lost his parents at a||&6young age. Thank you for taking care||&6of him!|| ||&cThis pet is only available to our Beta Supporters.;sudo PLAYER pet error" + set {db_perk.pets::03.sparky} to "creeper spawn egg;&3Sparky;&6While this creeper appears to have a||&6dangerously electrifying personality, we||&6promise he’s completely safe!;sudo PLAYER pet sparky;creeper spawn egg;&3Sparky;&6While this creeper appears to have a||&6dangerously electrifying personality, we||&6promise he’s completely safe!|| ||&cThis pet is only available to our Supporters.;sudo PLAYER pet error" + set {db_perk.pets::04.bacon} to "pig spawn egg;&3Bacon;&6Rescued from the final stages of the||&6slaughter house, this pig is extremely||&6grateful for your love and kindness!;sudo PLAYER pet bacon;pig spawn egg;&3Baco&6Rescued from the final stages of the||&6slaughter house, this pig is extremely||&6grateful for your love and kindness!|| ||&cThis pet must be purchased from the OBAMCraft shop.|| ||&eUse &f/buy &ein the hub purchase &3Bacon|| ||&ePrice: &a$5.00;sudo PLAYER pet error" + set {db_perk.pets::05.blank} to "air" + set {db_perk.pets::06.blank} to "air" + set {db_perk.pets::07.lead} to "lead;&3Leash;&6Pets getting out of control? Click this||&6to attach a lead to all of your||&6summoned pets!;sudo PLAYER pet lead" + set {db_perk.pets::08.blank} to "air" + set {db_perk.pets::09.clear} to "fire;&3Clear;&6Click to clear all summoned pets!;sudo PLAYER pet clear" + +command /petmenu: + trigger: + loop {db_perk.pets::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lPet Stable" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.pets::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "02.bruswain": + player does not have permission "obam.beta.hat": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.sparky": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.bacon": + {db_purchase.bacon.%uuid of player%} is not set: + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +every 1 second: + loop all entities: + loop-entity is sheep or bat or powered creeper or pig: + name of loop-entity is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon": + spawn 4 particle heart offset by 1, 1, 1 at location of loop-entity + {owner.%loop-entity%} is not set: + kill loop-entity + distance between location of loop-entity and location of {owner.%loop-entity%} is greater than 20: + teleport loop-entity to location of {owner.%loop-entity%} + +on damage of sheep or bat or powered creeper or pig: + name of victim is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon": + cancel event + +on quit: + kill {pets.%player%} + clear {pets.%player%} + loop {pets.%player%::*}: + clear {owner.%loop-value%} + kill loop-value + clear {pets.%player%::*} + stop + +command /pet []: + trigger: + world is "kitpvpkillingfields": + send "&cYou can not do that here" to player + stop + argument is not set: + message "&cPlease use &7/OBAM &cto access your Pet Stable." + stop + argument is "error": + message "&cThis pet is not available to you." + stop + argument is "lead": + loop {pets.%player%::*}: + teleport loop-value to location of player + make player leash loop-value + stop + argument is "clear": + kill {pets.%player%} + clear {pets.%player%} + loop {pets.%player%::*}: + kill loop-value + clear {owner.%loop-value%} + clear {pets.%player%::*} + stop + {pets.%player%} is set: + player does not have permission "obam.supporter": + send "&cYou can only have one pet at a time!" to player + stop + size of {pets.%player%::*} is 5: + send "&cYou can only have 5 pets at a time!" to player + stop + argument is "ISMOOCH": + spawn sheep at location of player + set name of spawned sheep to "&aISMOOCH" + set color of spawned sheep to pink + make player leash spawned sheep + set {pets.%player%} to spawned sheep + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + argument is "BruSwain": + player has permission "obam.beta.hat": + spawn bat at location of player + set name of spawned bat to "&aBru Swain" + make player leash spawned bat + set {pets.%player%} to spawned bat + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + send "&cThis is for beta supporters only!" to player + argument is "Sparky": + player has permission "obam.supporter": + spawn powered creeper at location of player + set name of spawned powered creeper to "&aSparky" + make player leash spawned powered creeper + set {pets.%player%} to spawned powered creeper + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + send "&cYou must be a supporter to do this!" to player + argument is "bacon": + {db_purchase.bacon.%uuid of player%} is true: + spawn pig at location of player + set name of spawned pig to "&aBacon" + make player leash spawned pig + set {pets.%player%} to spawned pig + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + player has permission "obam.smod": + spawn pig at location of player + set name of spawned pig to "&aBacon" + make player leash spawned pig + set {pets.%player%} to spawned pig + set {owner.%{pets.%player%}%} to player + add {pets.%player%} to {pets.%player%::*} + stop + send "&cYou must purchase this pet on the online store!" + stop + argument is "dragon": + send "&cI bet you wish you could...." to player + stop + send "&cThat is not an option!" to player + +on explosion prime: + entity is powered creeper: + name of entity is "&aSparky": + cancel event + +on death of a sheep or a bat or a powered creeper or a pig: + name of victim is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon" + clear drops + +on right click on a sheep or a bat or a powered creeper or a pig: + name of target is "&aISMOOCH" or "&aBru Swain" or "&aSparky" or "&aBacon": + cancel event + +on right click with wheat on sheep: + name of event-entity is "&aISMOOCH" + cancel event + send "&cYou can not mate pets D:" to event-player + +on right click with carrot on sheep: + name of event-entity is "&aBacon" + cancel event + send "&cYou can not mate pets D:" to event-player + +on right click with shears on sheep: + name of event-entity is "&aISMOOCH" + cancel event + send "&cYou can not shear pets!" to event-player diff --git a/On Server Files/WTFronts/Perk/splash.g.sk b/On Server Files/WTFronts/Perk/splash.g.sk new file mode 100644 index 0000000..c587a4c --- /dev/null +++ b/On Server Files/WTFronts/Perk/splash.g.sk @@ -0,0 +1,214 @@ +on script load: + delete {db_perk.splash::*} + set {db_perk.splash::01.heart} to "red dye;&3Heart Particles;&6Click to enable a heart splash!;sudo PLAYER splash heart;red dye;&3Heart Particles;&6Click to enable a heart splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::02.flame} to "fire;&3Flame Particles;&6Click to enable a flame splash!;sudo PLAYER splash flame;fire;&3Flame Particles;&6Click to enable a flame splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::03.reddust} to "magma cream;&3Unstable Gas Particles;&6Click to enable an unstable gas splash!;sudo PLAYER splash reddust;magma cream;&3Unstable Gas Particles;&6Click to enable an unstable gas splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::04.smoke} to "charcoal;&3Dark Smoke Particles;&6Click to enable a dark smoke splash!;sudo PLAYER splash smoke;charcoal;&3Dark Smoke Particles;&6Click to enable a dark smoke splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::05.waterdrip} to "water;&3Water Drip Particles;&6Click to enable a water drip splash!;sudo PLAYER splash waterdrip;water;&3Water Drip Particles;&6Click to enable a water drip splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::06.lavadrip} to "lava;&3Lava Drip Particles;&6Click to enable a lava drip splash!;sudo PLAYER splash lavadrip;lava;&3Lava Drip Particles;&6Click to enable a lava drip splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::07.slime} to "slimeball;&3Slime Particles;&6Click to enable a slime splash!;sudo PLAYER splash slime;slimeball;&3Slime Particles;&6Click to enable a slime splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::08.note} to "jukebox;&3Music Notes Particles;&6Click to enable a music note splash!;sudo PLAYER splash note;jukebox;&3Music Notes Particles;&6Click to enable a music note splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::09.happy} to "villager spawn egg;&3Villager Particles “Happy”;&6Click to enable a happy villager splash!;sudo PLAYER splash happy;villager spawn egg;&3Villager Particles “Happy”;&6Click to enable a happy villager splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::10.angry} to "villager spawn egg;&3Villager Particles “Angry”;&6Click to enable a angry villager splash!;sudo PLAYER splash angry;villager spawn egg;&3Villager Particles “Angry”;&6Click to enable a angry villager splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::11.explode} to "tnt;&3Explosion Smoke Particles;&6Click to enable a explosion smoke splash!;sudo PLAYER splash explode;tnt;&3Explosion Smoke Particles;&6Click to enable a explosion smoke splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::12.snow} to "snow block;&3Snowflake Particles;&6Click to enable a snowflake splash!;sudo PLAYER splash snow;snow block;&3Snowflake Particles;&6Click to enable a snowflake splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::13.portal} to "nether portal;&3Nether Portal Particles;&6Click to enable a nether portal splash!;sudo PLAYER splash portal;nether portal;&3Nether Portal Particles;&6Click to enable a nether portal splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::14.cloud} to "bonemeal;&3Cloud Particles;&6Click to enable a cloud splash!;sudo PLAYER splash cloud;bonemeal;&3Cloud Particles;&6Click to enable a cloud splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::15.bubble} to "water bottle;&3Bubble Particles;&6Click to enable a bubble splash!;sudo PLAYER splash bubble;water bottle;&3Bubble Particles;&6Click to enable a bubble splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + set {db_perk.splash::16.blank} to "air" + set {db_perk.splash::17.blank} to "air" + set {db_perk.splash::18.clear} to "glass;&3Clear Particles;&6Click to clear your splash!;sudo PLAYER splash clear;glass;&3Clear Particles;&6Click to clear your splash!|| ||&cThis splash is only available to our Supporters.;sudo PLAYER splash error" + +command /splashmenu: + trigger: + loop {db_perk.splash::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lSplash Menu" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.splash::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.heart": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.flame": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.reddust": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.smoke": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "05.waterdrip": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "06.lavadrip": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "07.slime": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "08.note": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "09.happy": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "10.angry": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "11.explode": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "12.snow": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "13.portal": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "14.cloud": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "15.bubble": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "16.clear": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /splash []: + trigger: + argument is not set: + message "&cPlease use &7/OBAM &cto access the Splash Menu." + stop + argument is "error": + message "&cThis splash is not available to you." + stop + player has permission "obam.supporter": + argument is "heart": + set {splash.%player%} to "heart" + send "&aYou have enabled a &eHeart Splash&a!" + argument is "flame": + set {splash.%player%} to "flame" + send "&aYou have enabled a &eFlame Splash&a!" + argument is "reddust": + set {splash.%player%} to "reddust" + send "&aYou have enabled an &eUnstable Gas Splash&a!" + argument is "smoke": + set {splash.%player%} to "smoke" + send "&aYou have enabled a &eDark Smoke Splash&a!" + argument is "waterdrip": + set {splash.%player%} to "waterdrip" + send "&aYou have enabled a &eWater Drip Splash&a!" + argument is "lavadrip": + set {splash.%player%} to "lavadrip" + send "&aYou have enabled a &eLava Drip Splash&a!" + argument is "slime": + set {splash.%player%} to "slime" + send "&aYou have enabled a &eSlime Splash&a!" + argument is "note": + set {splash.%player%} to "note" + send "&aYou have enabled a &eMusic Note Splash&a!" + argument is "happy": + set {splash.%player%} to "happy" + send "&aYou have enabled a &eHappy Villager Splash&a!" + argument is "angry": + set {splash.%player%} to "angry" + send "&aYou have enabled an &eAngry Villager Splash&a!" + argument is "explode": + set {splash.%player%} to "explode" + send "&aYou have enabled an &eExplosion Smoke Splash&a!" + argument is "snow": + set {splash.%player%} to "snow" + send "&aYou have enabled a &eSnowflake Splash&a!" + argument is "bubble": + set {splash.%player%} to "bubble" + send "&aYou have enabled a &eBubble Splash&a!" + argument is "portal": + set {splash.%player%} to "portal" + send "&aYou have enabled a &eNether Portal Splash&a!" + argument is "cloud": + set {splash.%player%} to "cloud" + send "&aYou have enabled a &eCloud Splash&a!" + argument is "clear": + clear {splash.%player%} + send "&aYou have disabled your splash!" + +every 5 seconds: + loop all players: + clear {_amt} + loop-player is not sneaking + loop-player is sprinting: + set {_amt} to 100 + {_amt} is not set: + set {_amt} to 50 + {splash.%loop-player%} is set: + {splash.%loop-player%} is "bubble": + spawn 500 particle bubble offset by 2, 2, 2 at location of loop-player + {splash.%loop-player%} is "cloud": + spawn {_amt} particle cloud offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "heart": + spawn {_amt} particle heart offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "flame": + spawn {_amt} particle flame offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "reddust": + spawn {_amt} particle red dust offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "smoke": + spawn {_amt} particle large smoke offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "note": + spawn {_amt} particle note offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "lavadrip": + spawn {_amt} particle drip lava offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "waterdrip": + spawn {_amt} particle drip water offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "slime": + spawn {_amt} particle slime offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "happy": + spawn {_amt} particle happy villager offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "angry": + spawn {_amt} particle angry villager offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "explode": + spawn {_amt} particle large explode offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "snow": + spawn {_amt} particle snow shovel offset by 1, 1, 1 at location of loop-player + {splash.%loop-player%} is "portal": + spawn {_amt} particle portal offset by 1, 1, 1 at location of loop-player \ No newline at end of file diff --git a/On Server Files/WTFronts/Perk/suphorse.g.sk b/On Server Files/WTFronts/Perk/suphorse.g.sk new file mode 100644 index 0000000..da5685c --- /dev/null +++ b/On Server Files/WTFronts/Perk/suphorse.g.sk @@ -0,0 +1,70 @@ +on script load: + delete {db_perk.suphorse::*} + set {db_perk.suphorse::01.zombify} to "zombie spawn egg;&3Zombify your ride!;&6Feel like roaming the plains on your Zombified Horse?;sudo PLAYER suphorse zombify;zombie spawn egg;&3Zombify your ride!;&6Feel like roaming the plains on your Zombified Horse?|| ||&cThis ability is only available to our Supporters.;sudo PLAYER suphorse error" + set {db_perk.suphorse::02.skellify} to "skeleton spawn egg;&3Skellify your ride!;&6Feel like roaming the deserts on your Skellified Horse?;sudo PLAYER suphorse skellify;skeleton spawn egg;&3Skellify your ride!;&6Feel like roaming the deserts on your Skellified Horse?|| ||&cThis ability is only available to our Supporters.;sudo PLAYER suphorse error" + +command /horsemenu: + trigger: + loop {db_perk.suphorse::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lHorse O' Matic" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.suphorse::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.zombify": + player does not have permission "obam.beta.hat": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.skellify": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /suphorse []: + trigger: + player is not riding: + send "&cYou must be riding a horse to do this!" + stop + player's vehicle is not a horse: + send "&cYou must be riding a horse to do this!" + stop + argument is not set: + message "&cPlease use &7/OBAM &cto access your modify your horse." + stop + argument is "error": + message "&cThis ability is not available to you." + stop + "%player's world%" is "world": + set {_y} to y-coordinate of player + set {_x} to x-coordinate of player + set {_z} to z-coordinate of player + argument is "zombify": + execute console command "summon EntityHorse %{_x}% %{_y}% %{_z}% {Type:3,Tame:1}" + argument is "skellify": + execute console command "summon EntityHorse %{_x}% %{_y}% %{_z}% {Type:4,Tame:1}" + delete player's vehicle + stop + message "&cThis can only be used in the Regular World." \ No newline at end of file diff --git a/On Server Files/WTFronts/Perk/tam.g.sk b/On Server Files/WTFronts/Perk/tam.g.sk new file mode 100644 index 0000000..303d62b --- /dev/null +++ b/On Server Files/WTFronts/Perk/tam.g.sk @@ -0,0 +1,71 @@ +every 1 minute: + {db_tam.modifier} is not set: + set {db_tam.modifier} to 1 + set {_add} to {db_tam.modifier} + #OTAM Hook + {db_tam.bonus} is set: + add {db_tam.bonus} to {_add} + loop all players: + add {_add} to loop-player's balance + {session.tam.%loop-player%} is not set: + set {session.tam.%loop-player%} to 0 + add {_add} to {session.tam.%loop-player%} + {db_total.tam.%uuid of loop-player%} is not set: + {db_total.tam.%loop-player%} is set: + set {db_total.tam.%uuid of loop-player%} to {db_total.tam.%loop-player%} + else: + set {db_total.tam.%uuid of loop-player%} to 0 + add {_add} to {db_total.tam.%uuid of loop-player%} + {db_total.tam} is not set: + set {db_total.tam} to 0 + add {_add} to {db_total.tam} + {db_total.reg} is not set: + set {db_total.reg} to 0 + add {_add} to {db_total.reg} + +command /tam: + permission: obam.free + trigger: + send "&aTotal Tickets earned with -TAM-:" + send "&e%{db_total.tam.%uuid of player%}%" + send "&aTotal this session:" + send "&e%{session.tam.%player%}%" + send "&aTotal Tickets:" + send "&e%player's balance%" + #OTAM Hook + {db_tam.bonus} is not set: + send "&aCurrent -TAM- Modifier:" + send "&e%{db_tam.modifier}%" + #OTAM Hooks + {db_tam.bonus} is set: + send "&aCurrent -TAM- Modifier:" + send "&e%{db_tam.modifier}% &c&o+ %{db_tam.bonus}%" + send "&4Remaining -TAM- Bonus Time:" + set {_diff} to difference between {db_time.extend.tam} and now + send "&c%{_diff}%" + send "&4OTAM Time Contributions:" + send "&c%{db_tamstats.time.%uuid of player%}% minutes" + send "&4OTAM Bonus Contributions:" + send "&c%{db_tamstats.bonus.%uuid of player%}%" + +command /tamtotal: + permission: obam.admin + trigger: + send "&aTotal Global Tickets earned with -TAM-:" + send "&e%{db_total.tam}%" + send "&aRegular:" + send "&e%{db_total.reg}%" + send "&aSupporter:" + send "&e%{db_total.sup}%" + send "&aPlus:" + send "&e%{db_total.plus}%" + send "&aUltimate:" + send "&e%{db_total.ult}%" + +on join: + set {session.tam.%player%} to 0 + +command /tammodset : + permission: obam.admin + trigger: + set {db_tam.modifier} to argument diff --git a/On Server Files/WTFronts/Perk/tickets.g.sk b/On Server Files/WTFronts/Perk/tickets.g.sk new file mode 100644 index 0000000..df07df8 --- /dev/null +++ b/On Server Files/WTFronts/Perk/tickets.g.sk @@ -0,0 +1,68 @@ +#money stuff +#give player money +command /tixg : + description: Give a Player some money + usage: /tixg + executable by: console and players + permission: obam.admin + trigger: + + set {_player.balance} to player-argument's balance + set {_player} to player-argument + execute console command "/tls STAFF %arg 2% %{_player.balance}% INCREASE %{_player}% Ticket Adjustment by %player%" + add arg 2 to player-argument's balance + message "&aYou have been given &e%arg 2% Tickets&a. Your balance is now &e%player-argument's money%&a." to player-argument + message "You have granted %player-argument% %arg 2% Tickets" to player + + +command /tixr : + description: Subtract money from a Player + usage: /tixr + executable by: console and players + permission: obam.admin + trigger: + + + set {_valid} to argument 2 + set {_player.balance} to player-argument's balance + set {_player} to player-argument + + {_valid} is greater than {_player.balance}: + send "%player-argument% does not have that many tickets!" to player + stop + + execute console command "/tls STAFF %arg 2% %{_player.balance}% DEDUCT %{_player}% Ticket Adjustment by %player%" + + +#pay command +command /tixp : + description: Pay a Player + usage: /tixp + permission: obam.admin + trigger: + set {_curbalance} to player's money + set {_valid} to difference between {_curbalance} and argument 2 + + {_valid} is less than 0: + message "You do not have enough money!" to player + stop + + add arg 2 to player-argument's balance + remove arg 2 from player's balance + message "You have received %arg 2% Tickets from %player%. Your balance is now %player-argument's money%." to player-argument + message "You have paid %player-argument% %arg 2% Tickets. Your balance is now %player's money%." to player + +command /tix: + executable by: players + permission: obam.free + trigger: + send "&aYour current balance is &e%player's balance%&a!" to player + +command /tixpeek : + permission: obam.admin + trigger: + set {_player} to argument parsed as offline player + send "&e%argument%'s&a ticket balance is &e%{_player}'s balance%" to player + + + diff --git a/On Server Files/WTFronts/Perk/trails.g.sk b/On Server Files/WTFronts/Perk/trails.g.sk new file mode 100644 index 0000000..a163ad8 --- /dev/null +++ b/On Server Files/WTFronts/Perk/trails.g.sk @@ -0,0 +1,205 @@ +on script load: + delete {db_perk.trails::*} + set {db_perk.trails::01.heart} to "red dye;&3Heart Particles;&6Click to enable heart trails!;sudo PLAYER trails heart;red dye;&3Heart Particles;&6Click to enable heart trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::02.flame} to "fire;&3Flame Particles;&6Click to enable flame trails!;sudo PLAYER trails flame;fire;&3Flame Particles;&6Click to enable flame trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::03.reddust} to "magma cream;&3Unstable Gas Particles;&6Click to enablen unstable gas trails!;sudo PLAYER trails reddust;magma cream;&3Unstable Gas Particles;&6Click to enablen unstable gas trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::04.smoke} to "charcoal;&3Dark Smoke Particles;&6Click to enable dark smoke trails!;sudo PLAYER trails smoke;charcoal;&3Dark Smoke Particles;&6Click to enable dark smoke trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::05.waterdrip} to "water;&3Water Drip Particles;&6Click to enable water drip trails!;sudo PLAYER trails waterdrip;water;&3Water Drip Particles;&6Click to enable water drip trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::06.lavadrip} to "lava;&3Lava Drip Particles;&6Click to enable lava drip trails!;sudo PLAYER trails lavadrip;lava;&3Lava Drip Particles;&6Click to enable lava drip trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::07.slime} to "slimeball;&3Slime Particles;&6Click to enable slime trails!;sudo PLAYER trails slime;slimeball;&3Slime Particles;&6Click to enable slime trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::08.note} to "jukebox;&3Music Notes Particles;&6Click to enable music note trails!;sudo PLAYER trails note;jukebox;&3Music Notes Particles;&6Click to enable music note trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::09.happy} to "villager spawn egg;&3Villager Particles “Happy”;&6Click to enable happy villager trails!;sudo PLAYER trails happy;villager spawn egg;&3Villager Particles “Happy”;&6Click to enable happy villager trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::10.angry} to "villager spawn egg;&3Villager Particles “Angry”;&6Click to enable angry villager trails!;sudo PLAYER trails angry;villager spawn egg;&3Villager Particles “Angry”;&6Click to enable angry villager trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::11.explode} to "tnt;&3Explosion Smoke Particles;&6Click to enable explosion smoke trails!;sudo PLAYER trails explode;tnt;&3Explosion Smoke Particles;&6Click to enable explosion smoke trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::12.snow} to "snow block;&3Snowflake Particles;&6Click to enable snowflake trails!;sudo PLAYER trails snow;snow block;&3Snowflake Particles;&6Click to enable snowflake trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::13.portal} to "nether portal;&3Nether Portal Particles;&6Click to enable nether portal trails!;sudo PLAYER trails portal;nether portal;&3Nether Portal Particles;&6Click to enable nether portal trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::14.cloud} to "bonemeal;&3Cloud Particles;&6Click to enable cloud trails!;sudo PLAYER trails cloud;bonemeal;&3Cloud Particles;&6Click to enable cloud trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + set {db_perk.trails::15.blank} to "air" + set {db_perk.trails::16.blank} to "air" + set {db_perk.trails::17.blank} to "air" + set {db_perk.trails::18.clear} to "glass;&3Clear Particles;&6Click to clear your trails!;sudo PLAYER trails clear;glass;&3Clear Particles;&6Click to clear your trails!|| ||&cThis trails is only available to our Supporters.;sudo PLAYER trails error" + +command /trailmenu: + trigger: + loop {db_perk.trails::*}: + {_count} is not set: + set {_count} to 0 + add 1 to {_count} + {_count} is less than 10: + set {_size} to 1 + {_count} is greater than 9: + set {_size} to 2 + {_count} is greater than 18: + set {_size} to 3 + {_count} is greater than 27: + set {_size} to 4 + show chest with {_size} row named "&9&lTrails Menu" to player + wait 1 tick + set {_count} to 0 + loop {db_perk.trails::*}: + set {_what::*} to loop-value split at ";" + set {_item} to {_what::1} parsed as item + set {_name} to {_what::2} + set {_lore} to {_what::3} + set {_command} to {_what::4} + loop-index is "01.heart": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "02.flame": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "03.reddust": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "04.smoke": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "05.waterdrip": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "06.lavadrip": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "07.slime": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "08.note": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "09.happy": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "10.angry": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "11.explode": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "12.snow": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "13.portal": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "14.cloud": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "15.bubble": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + loop-index is "16.clear": + player does not have permission "obam.supporter": + set {_lore} to {_what::5} + set {_command} to {_what::6} + player has permission "obam.smod": + set {_lore} to {_what::3} + set {_command} to {_what::4} + replace "PLAYER" in {_command} with "%player%" + set {_what} to {_item} named {_name} with lore {_lore} + format slot {_count} of player with {_what} to be unstealable + format slot {_count} of player with {_what} to close then run {_command} + add 1 to {_count} + +command /trails []: + trigger: + argument is not set: + message "&cPlease use &7/OBAM &cto access the Trails Menu." + stop + argument is "error": + message "&cThis trail is not available to you." + stop + player has permission "obam.supporter": + delete {trail.%player%} + argument is "heart": + set {trails.%player%} to "heart" + send "&aYou have enabled &eHeart trails&a!" + argument is "flame": + set {trails.%player%} to "flame" + send "&aYou have enabled &eFlame trails&a!" + argument is "reddust": + set {trails.%player%} to "reddust" + send "&aYou have enabled &eUnstable Gas trails&a!" + argument is "smoke": + set {trails.%player%} to "smoke" + send "&aYou have enabled &eDark Smoke trails&a!" + argument is "waterdrip": + set {trails.%player%} to "waterdrip" + send "&aYou have enabled &eWater Drip trails&a!" + argument is "lavadrip": + set {trails.%player%} to "lavadrip" + send "&aYou have enabled &eLava Drip trails&a!" + argument is "slime": + set {trails.%player%} to "slime" + send "&aYou have enabled &eSlime trails&a!" + argument is "note": + set {trails.%player%} to "note" + send "&aYou have enabled &eMusic Note trails&a!" + argument is "happy": + set {trails.%player%} to "happy" + send "&aYou have enabled &eHappy Villager trails&a!" + argument is "angry": + set {trails.%player%} to "angry" + send "&aYou have enabled &eAngry Villager trails&a!" + argument is "explode": + set {trails.%player%} to "explode" + send "&aYou have enabled &eExplosion Smoke trails&a!" + argument is "snow": + set {trails.%player%} to "snow" + send "&aYou have enabled &eSnowflake trails&a!" + argument is "portal": + set {trails.%player%} to "portal" + send "&aYou have enabled &eNether Portal trails&a!" + argument is "cloud": + set {trails.%player%} to "cloud" + send "&aYou have enabled &eCloud trails&a!" + argument is "clear": + clear {trails.%player%} + send "&aYou have disabled your trails!" + +on shoot: + {trails.%shooter%} is set: + {trails.%shooter%} is "heart": + trail projectile with particle heart + {trails.%shooter%} is "flame": + trail projectile with particle flame + {trails.%shooter%} is "reddust": + trail projectile with particle red dust + {trails.%shooter%} is "smoke": + trail projectile with particle large smoke + {trails.%shooter%} is "bubble": + trail projectile with particle bubble + {trails.%shooter%} is "note": + trail projectile with particle note + {trails.%shooter%} is "lavadrip": + trail projectile with particle drip lava + {trails.%shooter%} is "waterdrip": + trail projectile with particle drip water + {trails.%shooter%} is "slime": + trail projectile with particle slime + {trails.%shooter%} is "happy": + trail projectile with particle happy villager + {trails.%shooter%} is "angry": + trail projectile with particle angry villager + {trails.%shooter%} is "explode": + trail projectile with particle large explode + {trails.%shooter%} is "snow": + trail projectile with particle snow shovel + {trails.%shooter%} is "portal": + trail projectile with particle portal + {trails.%shooter%} is "cloud": + trail projectile with particle cloud diff --git a/On Server Files/WTFronts/WTFronts/dragonegg.g.sk b/On Server Files/WTFronts/WTFronts/dragonegg.g.sk new file mode 100644 index 0000000..e55ec5e --- /dev/null +++ b/On Server Files/WTFronts/WTFronts/dragonegg.g.sk @@ -0,0 +1,7 @@ +on flow: + block is a dragon egg: + cancel event + +on block physics: + block is a dragon egg: + cancel event diff --git a/On Server Files/WTFronts/WTFronts/wtfcounter.sk b/On Server Files/WTFronts/WTFronts/wtfcounter.sk new file mode 100644 index 0000000..bac5952 --- /dev/null +++ b/On Server Files/WTFronts/WTFronts/wtfcounter.sk @@ -0,0 +1,11 @@ +on chat: + message contains "wtf" + {db_wtf.counter} is not set: + set {db_wtf.counter} to 0 + add 1 to {db_wtf.counter} + +command /wtfcounter: + permission: obam.admin + trigger: + send "&aThe current &cWTF&a Count is: &e%{db_wtf.counter}% WTF's&a!" + send "&eCounting since Apr 22, 2014" diff --git a/Shit we need to revisit/allowance.sk b/Shit we need to revisit/allowance.sk new file mode 100644 index 0000000..4212308 --- /dev/null +++ b/Shit we need to revisit/allowance.sk @@ -0,0 +1,60 @@ +#ticket stuff +command /settickettime: + permission: obam.admin + trigger: + set {ticket.tracker} to now + +on join: + #1.7.9{ticket.tracker.count.%uuid of player%} is not set: + #1.7.9{ticket.tracker.count.%player%} is set: + #1.7.9set {ticket.tracker.count.%uuid of player%} to {ticket.tracker.count.%player%} + #1.7.9else + #1.7.9set {ticket.tracker.count.%uuid of player%} to {ticket.tracker.count} + {ticket.tracker.count.%player%} is not set: + + set {ticket.tracker.count.%player%} to {ticket.tracker.count} + #1.7.9{ticket.tracker.bonus.%uuid of player%} is not set: + {ticket.tracker.bonus.%player%} is not set: + add 2000 to player's balance + wait 1 second + send "&aYou have received your first &e2000&a tickets for playing on OBAM! Enjoy!" to player + #1.7.9set {ticket.tracker.bonus.%uuid of player%} to true + set {ticket.tracker.bonus.%player%} to true + stop + + #1.7.9{ticket.tracker.count.%uuid of player%} is not equal to {ticket.tracker.count} + {ticket.tracker.count.%player%} is not equal to {ticket.tracker.count}: + set {_pay} to difference between {ticket.tracker.count} and {ticket.tracker.count.%player%} + set {_pay} to 2000 * {_pay} + add {_pay} to player's balance + #1.7.9add set {ticket.tracker.count.%uuid of player%} to {ticket.tracker.count} + set {ticket.tracker.count.%player%} to {ticket.tracker.count} + wait 1 second + send "&aYou have received &e2000&a tickets for your weekly allowance! Enjoy!" to player + +every 1 minute: + difference between {ticket.tracker} and now is greater than or equal to 7 days: + set {ticket.tracker} to now + {ticket.tracker.count} is not set: + set {ticket.tracker.count} to 0 + add 1 to {ticket.tracker.count} + +command /trackcheck: + permission: obam.admin + trigger: + set {_check} to difference between {ticket.tracker} and now + send "%{_check}%" to player + +command /addtoticket: + permission: obam.admin + trigger: + {ticket.tracker.count} is not set: + set {ticket.tracker.count} to 0 + add 1 to {ticket.tracker.count} + +command /viewtime: + permission: obam.admin + trigger: + send "%{ticket.tracker.count}%" to player + send "%{ticket.tracker.count.%player%}%" to player + diff --git a/Shit we need to revisit/otam.g.sk b/Shit we need to revisit/otam.g.sk new file mode 100644 index 0000000..1480de2 --- /dev/null +++ b/Shit we need to revisit/otam.g.sk @@ -0,0 +1,142 @@ +every 1 second: + + set {_hold} to now + + {db_time.extend.tam} is less than now: + + clear {db_tam.bonus} + set {db_current.bonus} to false + clear {db_time.extend.tam} + clear {alert.tam.lastminute} + broadcast "&3&l۝TAM: &dTAM Bonus has Ended!" + execute console command "crossmessage &3&l۝TAM: &dTAM Bonus has Ended!" + + set {_diff} to difference between {db_time.extend.tam} and now + + {_diff} is less than 15 minutes: + + {alert.tam.lastminute} is not set: + set {alert.tam.lastminute} to true + + broadcast "&3&l۝TAM: &dLess than 15 minutes remaining of TAM Bonus at &e%{db_tam.bonus}%&d!" + execute console command "crossmessage &3&l۝TAM: &dLess than 15 minutes remaining of TAM Bonus at &e%{db_tam.bonus}%&d!" + + +command /tamextended : + permission: obam.admin + trigger: + + {db_time.extend.tam} is not set: + set {db_time.extend.tam} to now + {db_tamstats.time.%argument 2%} is not set: + set {db_tamstats.time.%argument 2%} to 0 + + #Not meant to be a real option.. just for debugging + arg 1 is 5: + + add 5 minutes to {db_time.extend.tam} + add 5 to {db_tamstats.time.%argument 2%} + + arg 1 is 30: + + add 30 minutes to {db_time.extend.tam} + add 30 to {db_tamstats.time.%argument 2%} + + arg 1 is 60: + + add 1 hour to {db_time.extend.tam} + add 60 to {db_tamstats.time.%argument 2%} + + arg 1 is 90: + + add 90 minutes to {db_time.extend.tam} + add 90 to {db_tamstats.time.%argument 2%} + + arg 1 is 120: + + add 2 hours to {db_time.extend.tam} + add 120 to {db_tamstats.time.%argument 2%} + + broadcast "&3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e%argument 1% Minutes&d!" + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e%argument 1% Minutes&d!" + + set {_diff} to difference between {db_time.extend.tam} and now + + broadcast "&3&l۝TAM: &e%{_diff}% &dremaining!" + execute console command "crossmessage &3&l۝TAM: &e%{_diff}% &dremaining!" + broadcast "&3&l۝TAM: &dUse &e/tam &dfor more details!" + execute console command "crossmessage &3&l۝TAM: &dUse &e/tam &dfor more details!" + clear {alert.tam.lastminute} + + set {db_current.bonus} to true + {db_tam.bonus} is not set: + + set {db_tam.bonus} to 0.1 + + {db_tamstats.bonus.%argument 2%} is not set: + set {db_tamstats.bonus.%argument 2%} to 0 + + add 0.1 to {db_tamstats.bonus.%argument 2%} + + broadcast "&3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by &e0.1&d!" + broadcast "&3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d! " + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by 0.1! The TAM Bonus is now at &e%{db_tam.bonus}%&d! " + execute console command "crossmessage &3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d! " + +command /tambonus : + permission: obam.admin + trigger: + + {db_tamstats.bonus.%argument 2%} is not set: + set {db_tamstats.bonus.%argument 2%} to 0 + + {db_tam.bonus} is not set: + set {db_tam.bonus} to 0 + + add argument 1 to {db_tam.bonus} + add argument 1 to {db_tamstats.bonus.%argument 2%} + + broadcast "&3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by &e%argument 1%&d!" + broadcast "&3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d!" + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has increased the TAM Bonus by &e%argument 1%&d! The TAM Bonus is now at &e%{db_tam.bonus}%&d!" + execute console command "crossmessage &3&l۝TAM: &dThe TAM Bonus is now at &e%{db_tam.bonus}%&d!" + + + {db_time.extend.tam} is not set: + set {db_time.extend.tam} to now + + {db_tamstats.time.%argument 2%} is not set: + set {db_tamstats.time.%argument 2%} to 0 + + add 60 to {db_tamstats.time.%argument 2%} + + add 1 hour to {db_time.extend.tam} + clear {alert.tam.lastminute} + broadcast "&3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e60 Minutes&d!" + execute console command "crossmessage &3&l۝TAM: &e%argument 2%&d has extended the TAM timer by &e60 Minutes&d!" + + set {_diff} to difference between {db_time.extend.tam} and now + + broadcast "&3&l۝TAM: &e%{_diff}% &dremaining!" + execute console command "crossmessage &3&l۝TAM: &e%{_diff}% &dremaining!" + broadcast "&3&l۝TAM: &dUse &e/tam &dfor more details!" + execute console command "crossmessage &3&l۝TAM: &dUse &e/tam &dfor more details!" + + + + +# Debugging Clear command +command /tambonusclear: + permission: obam.admin + trigger: + + clear {db_tam.bonus} + set {db_current.bonus} to false + clear {db_time.extend.tam} + clear {alert.tam.lastminute} + + send "&3&l۝TAM: &dTAM Bonus Cleared" to console + send "&3&l۝TAM: &dTAM Bonus Cleared" + + + \ No newline at end of file diff --git a/Shit we need to revisit/purchase.sk b/Shit we need to revisit/purchase.sk new file mode 100644 index 0000000..f3b1fc8 --- /dev/null +++ b/Shit we need to revisit/purchase.sk @@ -0,0 +1,12 @@ +command /buycraftpurchase : + permission: obam.admin + trigger: + set {_who} to argument 2 parsed as a player + set {db_purchase.%argument 1%.%argument 2%} to true + send "%Argument 2% has purchased %Argument 1%" to console +#1.7.9 +#1.7.9on login: + #1.7.9{db_purchase.bacon.%player%} is set: + #1.7.9set {db_purchase.bacon.%uuid of player%} to {db_purchase.bacon.%player%} + #1.7.9{db_purchase.cactus.%player%} is set: + #1.7.9set {db_purchase.cactus.%uuid of player%} to {db_purchase.cactus.%player%} \ No newline at end of file diff --git a/Shit we need to revisit/tam.g.sk b/Shit we need to revisit/tam.g.sk new file mode 100644 index 0000000..95f8a6e --- /dev/null +++ b/Shit we need to revisit/tam.g.sk @@ -0,0 +1,109 @@ +every 1 minute: + + {db_tam.modifier} is not set: + set {db_tam.modifier} to 1 + + set {_add} to {db_tam.modifier} + #OTAM Hook + {db_tam.bonus} is set: + add {db_tam.bonus} to {_add} + + loop all players: + + + + +every 1 minute: + + {db_tam.modifier} is not set: + set {db_tam.modifier} to 1 + + set {_add} to {db_tam.modifier} + + loop all players: + + + + + add {_add} to loop-player's balance + + {session.tam.%loop-player%} is not set: + set {session.tam.%loop-player%} to 0 + add {_add} to {session.tam.%loop-player%} + + #1.7.9{db_total.tam.%uuid of loop-player%} is not set: + #1.7.9{db_total.tam.%loop-player%} is set: + #1.7.9set {db_total.tam.%uuid of loop-player%} to {db_total.tam.%loop-player%} + #1.7.9else: + #1.7.9set {db_total.tam.%uuid of loop-player%} to 0 + #1.7.9add {_add} to {db_total.tam.%loop-player%} + {db_total.tam.%loop-player%} is not set: + set {db_total.tam.%loop-player%} to 0 + add {_add} to {db_total.tam.%loop-player%} + + {db_total.tam} is not set: + set {db_total.tam} to 0 + add {_add} to {db_total.tam} + + {db_total.reg} is not set: + set {db_total.reg} to 0 + add {_add} to {db_total.reg} + + + + +command /tam: + permission: obam.free + trigger: + + send "&aTotal Tickets earned with -TAM-:" + #1.7.9send "&e%{db_total.tam.%uuid of player%}%" + send "&e%{db_total.tam.%player%}%" + send "&aTotal this session:" + send "&e%{session.tam.%player%}%" + send "&aTotal Tickets:" + send "&e%player's balance%" + #OTAM Hook + {db_tam.bonus} is not set: + send "&aCurrent -TAM- Modifier:" + send "&e%{db_tam.modifier}%" + #OTAM Hooks + {db_tam.bonus} is set: + send "&aCurrent -TAM- Modifier:" + send "&e%{db_tam.modifier}% &c&o+ %{db_tam.bonus}%" + send "&4Remaining -TAM- Bonus Time:" + set {_diff} to difference between {db_time.extend.tam} and now + send "&c%{_diff}%" + send "&4OTAM Time Contributions:" + #1.7.9send "&c%{db_tamstats.time.%uuid of player%}% minutes" + send "&c%{db_tamstats.time.%player%}% minutes" + send "&4OTAM Bonus Contributions:" + #1.7.9send "&c%{db_tamstats.bonus.%uuid of player%}%" + send "&c%{db_tamstats.bonus.%player%}%" + + + +command /tamtotal: + permission: obam.admin + trigger: + send "&aTotal Global Tickets earned with -TAM-:" + send "&e%{db_total.tam}%" + send "&aRegular:" + send "&e%{db_total.reg}%" + send "&aSupporter:" + send "&e%{db_total.sup}%" + send "&aPlus:" + send "&e%{db_total.plus}%" + send "&aUltimate:" + send "&e%{db_total.ult}%" + +on join: + set {session.tam.%player%} to 0 + +command /tammodset : + permission: obam.admin + trigger: + + set {db_tam.modifier} to argument + + \ No newline at end of file diff --git a/Shit we need to revisit/tickets.g.sk b/Shit we need to revisit/tickets.g.sk new file mode 100644 index 0000000..df07df8 --- /dev/null +++ b/Shit we need to revisit/tickets.g.sk @@ -0,0 +1,68 @@ +#money stuff +#give player money +command /tixg : + description: Give a Player some money + usage: /tixg + executable by: console and players + permission: obam.admin + trigger: + + set {_player.balance} to player-argument's balance + set {_player} to player-argument + execute console command "/tls STAFF %arg 2% %{_player.balance}% INCREASE %{_player}% Ticket Adjustment by %player%" + add arg 2 to player-argument's balance + message "&aYou have been given &e%arg 2% Tickets&a. Your balance is now &e%player-argument's money%&a." to player-argument + message "You have granted %player-argument% %arg 2% Tickets" to player + + +command /tixr : + description: Subtract money from a Player + usage: /tixr + executable by: console and players + permission: obam.admin + trigger: + + + set {_valid} to argument 2 + set {_player.balance} to player-argument's balance + set {_player} to player-argument + + {_valid} is greater than {_player.balance}: + send "%player-argument% does not have that many tickets!" to player + stop + + execute console command "/tls STAFF %arg 2% %{_player.balance}% DEDUCT %{_player}% Ticket Adjustment by %player%" + + +#pay command +command /tixp : + description: Pay a Player + usage: /tixp + permission: obam.admin + trigger: + set {_curbalance} to player's money + set {_valid} to difference between {_curbalance} and argument 2 + + {_valid} is less than 0: + message "You do not have enough money!" to player + stop + + add arg 2 to player-argument's balance + remove arg 2 from player's balance + message "You have received %arg 2% Tickets from %player%. Your balance is now %player-argument's money%." to player-argument + message "You have paid %player-argument% %arg 2% Tickets. Your balance is now %player's money%." to player + +command /tix: + executable by: players + permission: obam.free + trigger: + send "&aYour current balance is &e%player's balance%&a!" to player + +command /tixpeek : + permission: obam.admin + trigger: + set {_player} to argument parsed as offline player + send "&e%argument%'s&a ticket balance is &e%{_player}'s balance%" to player + + + diff --git a/documentation.html b/documentation.html new file mode 100644 index 0000000..ca29353 --- /dev/null +++ b/documentation.html @@ -0,0 +1,431 @@ + +SkAddonLib Generated Documentation
NEWS

Welcome to the new SkAddonLib documentation!

Say hello to SkAddonLib's sleek new design! Everything you need to know about any Skript addon you have packed into a beautiful metro styled documentation. + + Enjoy the new layout! + - w00tmast3r, SkAddonLib author

EFFECT

Change Server (Added by BungeeScript)

Description unavailable

Usage
+connect %players% to [server] %string%
+
+Examples
+Examples Unavailable
+
EFFECT

Forward Command (Added by BungeeScript)

Description unavailable

Usage
+forward [command] %string% to console [[of [server]] %-string%]
+forward [command] %string% to %string% [[of [server]] %-string%]
+
+Examples
+Examples Unavailable
+
EFFECT

Leash (Added by SkriptPlus)

Description unavailable

Usage
+make %entities% leash %livingentities%
+
+Examples
+Examples Unavailable
+
EFFECT

Sound (Added by SkriptPlus)

Description unavailable

Usage
+play %sound% at %locations% with pitch %number%
+
+Examples
+Examples Unavailable
+
EFFECT

Display Scoreboard (Added by SkriptPlus)

Description unavailable

Usage
+display [score]board named %string% to %player%
+
+Examples
+Examples Unavailable
+
EFFECT

Set Score (Added by SkriptPlus)

Description unavailable

Usage
+make score [of] %string% in [score]board of %player% [to] %number%
+
+Examples
+Examples Unavailable
+
EFFECT

Set Display (Added by SkriptPlus)

Description unavailable

Usage
+move display of %player% to %displayslot%
+
+Examples
+Examples Unavailable
+
EFFECT

Remove Score (Added by SkriptPlus)

Description unavailable

Usage
+nullify score [of] %string% in [score]board of %player%
+
+Examples
+Examples Unavailable
+
EFFECT

Player Visibility (Added by SkriptPlus)

Description unavailable

Usage
+hide %players% (to|from) %players%
+reveal %players% (to|from) %players%
+
+Examples
+Examples Unavailable
+
EFFECT

Put (Added by SkriptPlus)

Description unavailable

Usage
+put %object% for %string% in %string%
+
+Examples
+Examples Unavailable
+
EFFECT

New Recipe (Added by SkriptPlus)

Description unavailable

Usage
+register new shaped recipe for %itemtype% using %itemtype%, %itemtype%, %itemtype%, %itemtype%, %itemtype%, %itemtype%, %itemtype%, %itemtype%, %itemtype%
+register new shapeless recipe for %itemtype% using %itemtype%, %itemtype%, %itemtype%, %itemtype%, %itemtype%, %itemtype%, %itemtype%, %itemtype%, %itemtype%
+
+Examples
+Examples Unavailable
+
EFFECT

Homing (Added by SkriptPlus)

Description unavailable

Usage
+make %entity% home towards %location%
+make %entity% home towards %location% normally
+
+Examples
+Examples Unavailable
+
EFFECT

Client Block (Added by SkriptPlus)

Description unavailable

Usage
+make %players% see %block% as %itemtype%
+
+Examples
+Examples Unavailable
+
EFFECT

Flush (Added by SkriptPlus)

Description unavailable

Usage
+flush path %string% in %string%
+
+Examples
+Examples Unavailable
+
EFFECT

Virtual Chest Synthesizer (Added by SkriptPlus)

Description unavailable

Usage
+show %string% with %number% row[s] named %string% to %player%
+
+Examples
+Examples Unavailable
+
EFFECT

Invoke (Added by SkriptPlus)

Description unavailable

Usage
+invoke %string%
+invoke %string% from %objects%
+
+Examples
+Examples Unavailable
+
EFFECT

Escape (Added by SkriptPlus)

Description unavailable

Usage
+escape %number% [(levels|lines)]
+
+Examples
+Examples Unavailable
+
EFFECT

Branch (Added by SkriptPlus)

Description unavailable

Usage
+branch %number%
+
+Examples
+Examples Unavailable
+
EFFECT

Return (Added by SkriptPlus)

Description unavailable

Usage
+return %objects%
+
+Examples
+Examples Unavailable
+
EFFECT

Sync (Added by SkriptPlus)

Description unavailable

Usage
+sync %~object% to [function] %string%
+sync %~object% to [function] %string% from %objects%
+
+Examples
+Examples Unavailable
+
EFFECT

Trail (Added by SkriptPlus)

Description unavailable

Usage
+trail projectile with %particle%
+
+Examples
+Examples Unavailable
+
EFFECT

Pop (Added by SkriptPlus)

Description unavailable

Usage
+pop %fireworktype% colored %colors% at %locations%
+
+Examples
+Examples Unavailable
+
EFFECT

Shoot Item Projectile (Added by SkriptPlus)

Description unavailable

Usage
+make %livingentity% shoot [an] item projectile [of] %itemtype%[ at speed %number%]
+
+Examples
+Examples Unavailable
+
EFFECT

Texture (Added by SkriptPlus)

Description unavailable

Usage
+send [(resource|texture)] pack from %string% to %players%
+
+Examples
+Examples Unavailable
+
EFFECT

Custom Sound (Added by SkriptPlus)

Description unavailable

Usage
+play raw sound %string% at %locations% with pitch %number% volume %number%
+
+Examples
+Examples Unavailable
+
EFFECT

M I D I (Added by SkriptPlus)

Description unavailable

Usage
+play midi %string% to %players%
+
+Examples
+Examples Unavailable
+
EFFECT

Manage Map (Added by SkriptPlus)

Description unavailable

Usage
+(manage|share) map [id] %number%
+(override|overwrite) map [id] %number%
+
+Examples
+Examples Unavailable
+
EFFECT

Draw Image (Added by SkriptPlus)

Description unavailable

Usage
+draw [buffered[ ]]image %image% on [map] %number%
+draw [buffered[ ]]image %image% on [map] %number% [starting] from %number%, %number%
+
+Examples
+Examples Unavailable
+
EFFECT

Draw Text (Added by SkriptPlus)

Description unavailable

Usage
+draw %string% on [map] %number%
+draw %string% on [map] %number% [starting] from %number%, %number%
+
+Examples
+Examples Unavailable
+
EFFECT

Erase Map (Added by SkriptPlus)

Description unavailable

Usage
+erase [map] %number%
+
+Examples
+Examples Unavailable
+
EFFECT

Send Map (Added by SkriptPlus)

Description unavailable

Usage
+send [map] %number% to %players%
+
+Examples
+Examples Unavailable
+
EFFECT

Particle (Added by SkriptPlus)

Description unavailable

Usage
+spawn %number% of %particle% data %number% offset with %number%, %number%, %number% at %locations%
+
+Examples
+Examples Unavailable
+
EFFECT

Make Damage (Added by SkriptPlus)

Description unavailable

Usage
+make %livingentity% damage %livingentities% by %number%
+
+Examples
+Examples Unavailable
+
EFFECT

Send Json (Added by SkriptPlus)

Description unavailable

Usage
+(send|message) %jsonmessage% to %players%
+
+Examples
+Examples Unavailable
+
EFFECT

Deserialize Return (Added by SkriptPlus)

Description unavailable

Usage
+restore inventory [of] %player% (to|from) %string%
+
+Examples
+Examples Unavailable
+
EFFECT

Draw Cursor (Added by SkriptPlus)

Description unavailable

Usage
+draw cursor %mapcursortype% pointing %number% on [map] %number% at %number%, %number%
+
+Examples
+Examples Unavailable
+
EFFECT

Clone (Added by HookSk)

Description unavailable

Usage
+clone %world% as %string%
+
+Examples
+Examples Unavailable
+
EFFECT

Delete (Added by HookSk)

Description unavailable

Usage
+delete %world%
+
+Examples
+Examples Unavailable
+
EFFECT

Recreate (Added by HookSk)

Description unavailable

Usage
+recreate %world%[ from seed %-string%]
+
+Examples
+Examples Unavailable
+
EXPRESSION

Flight Mode (Added by SkriptPlus)

Description unavailable

Usage
+[the] fl(y|ight) (state|ability|mode) of %players%
+%players%'[s] fl(y|ight) (state|ability|mode)
+
+Examples
+Examples Unavailable
+
EXPRESSION

Lore (Added by SkriptPlus)

Description unavailable

Usage
+[the] lore of %itemstack%
+%itemstack%'[s] lore
+
+Examples
+Examples Unavailable
+
EXPRESSION

Serial (Added by SkriptPlus)

Description unavailable

Usage
+[the] serialized inventory of %player%
+%player%'[s] serialized inventory
+
+Examples
+Examples Unavailable
+
EXPRESSION

Nth Prime (Added by SkriptPlus)

Description unavailable

Usage
+%number%(st|nd|rd|th) prime
+
+Examples
+Examples Unavailable
+
EXPRESSION

Pull (Added by SkriptPlus)

Description unavailable

Usage
+value [of] %string% pulled from %string%
+
+Examples
+Examples Unavailable
+
EXPRESSION

U R L Text (Added by SkriptPlus)

Description unavailable

Usage
+text from [url] %string%
+
+Examples
+Examples Unavailable
+
EXPRESSION

Lored Item Stack (Added by SkriptPlus)

Description unavailable

Usage
+%itemtypes% with lore %string%
+
+Examples
+Examples Unavailable
+
EXPRESSION

Book Of (Added by SkriptPlus)

Description unavailable

Usage
+book from %string%
+
+Examples
+Examples Unavailable
+
EXPRESSION

Enchant Level (Added by SkriptPlus)

Description unavailable

Usage
+[the] enchant(ing|ment|) level
+
+Examples
+Examples Unavailable
+
EXPRESSION

Block Cube (Added by SkriptPlus)

Description unavailable

Usage
+blocks within %location% to %location%
+
+Examples
+Examples Unavailable
+
EXPRESSION

M O T D (Added by SkriptPlus)

Description unavailable

Usage
+[the] (motd|message of the day)
+
+Examples
+Examples Unavailable
+
EXPRESSION

Fake Max Players (Added by SkriptPlus)

Description unavailable

Usage
+[the] [max] player count
+
+Examples
+Examples Unavailable
+
EXPRESSION

Parameter (Added by SkriptPlus)

Description unavailable

Usage
+parameter(-| )%number%
+
+Examples
+Examples Unavailable
+
EXPRESSION

Block Chunk (Added by SkriptPlus)

Description unavailable

Usage
+blocks within %chunk%
+
+Examples
+Examples Unavailable
+
EXPRESSION

Image U R L (Added by SkriptPlus)

Description unavailable

Usage
+[the] [buffered[ ]]image from [url] %string%
+
+Examples
+Examples Unavailable
+
EXPRESSION

Image Local (Added by SkriptPlus)

Description unavailable

Usage
+[the] [buffered[ ]]image stored as %string%
+
+Examples
+Examples Unavailable
+
EXPRESSION

Json Message (Added by SkriptPlus)

Description unavailable

Usage
+json [of] %string%
+
+Examples
+Examples Unavailable
+
EXPRESSION

Json Message Append (Added by SkriptPlus)

Description unavailable

Usage
+%jsonmessage% then %string%
+
+Examples
+Examples Unavailable
+
EXPRESSION

Json Message Tooltip (Added by SkriptPlus)

Description unavailable

Usage
+%jsonmessage% tooltip %string%
+
+Examples
+Examples Unavailable
+
EXPRESSION

Json Message Style (Added by SkriptPlus)

Description unavailable

Usage
+%jsonmessage% styled %chatcolors%
+
+Examples
+Examples Unavailable
+
EXPRESSION

Json Message Command (Added by SkriptPlus)

Description unavailable

Usage
+%jsonmessage% suggest %string%
+%jsonmessage% run %string%
+
+Examples
+Examples Unavailable
+
EXPRESSION

Values (Added by SkriptPlus)

Description unavailable

Usage
+[all ]enum values of %classinfo%
+
+Examples
+Examples Unavailable
+
EXPRESSION

Block In Chunk (Added by SkriptPlus)

Description unavailable

Usage
+[the] block at %number%, %number%, %number% in [chunk] %chunk%
+
+Examples
+Examples Unavailable
+
CONDITION

Is Prime (Added by SkriptPlus)

Description unavailable

Usage
+%number% is prime
+%number% is not prime
+
+Examples
+Examples Unavailable
+
CONDITION

Is Divisible (Added by SkriptPlus)

Description unavailable

Usage
+%number% is divisible by %number%
+%number% is not divisible by %number%
+
+Examples
+Examples Unavailable
+
CONDITION

Is Block (Added by SkriptPlus)

Description unavailable

Usage
+%itemtype% is [a] block
+%itemtype% is not [a] block
+
+Examples
+Examples Unavailable
+
CONDITION

Has Potion (Added by SkriptPlus)

Description unavailable

Usage
+%player% has %potioneffecttype%
+%player% does(n't| not) have %potioneffecttype%
+
+Examples
+Examples Unavailable
+
CONDITION

Is Within (Added by SkriptPlus)

Description unavailable

Usage
+%location% is within %location% to %location%
+%location% is not within %location% to %location%
+
+Examples
+Examples Unavailable
+
EVENT

Enchant Item Event (Added by SkriptPlus)

Description unavailable

Usage
+[on]enchant
+
+Examples
+Examples Unavailable
+
EVENT

Sheep Dye Wool Event (Added by SkriptPlus)

Description unavailable

Usage
+[on]sheep dye
+
+Examples
+Examples Unavailable
+
EVENT

Horse Jump Event (Added by SkriptPlus)

Description unavailable

Usage
+[on]horse jump
+
+Examples
+Examples Unavailable
+
EVENT

Player Edit Book Event (Added by SkriptPlus)

Description unavailable

Usage
+[on][book] edit
+
+Examples
+Examples Unavailable
+
EVENT

Player Toggle Flight Event (Added by SkriptPlus)

Description unavailable

Usage
+[on][player] toggl(e|ing) (flight|fly)
+[on][player] (flight|fly) toggl(e|ing)
+
+Examples
+Examples Unavailable
+
EVENT

Inventory Click Event (Added by SkriptPlus)

Description unavailable

Usage
+[on]inventory click
+
+Examples
+Examples Unavailable
+
EVENT

Player Move Event (Added by SkriptPlus)

Description unavailable

Usage
+[on]any movement
+
+Examples
+Examples Unavailable
+
EVENT

Server List Ping Event (Added by SkriptPlus)

Description unavailable

Usage
+[on][server] [list] ping
+
+Examples
+Examples Unavailable
+
EVENT

Routine Event (Added by SkriptPlus)

Description unavailable

Usage
+[on]sub[routine] %string%
+
+Examples
+Examples Unavailable
+
EVENT

Function Event (Added by SkriptPlus)

Description unavailable

Usage
+[on]func[tion] %string%
+
+Examples
+Examples Unavailable
+
EVENT

Item Projectile Hit Event (Added by SkriptPlus)

Description unavailable

Usage
+[on]item [projectile] hit
+
+Examples
+Examples Unavailable
+
EVENT

Entity Change Block Event (Added by SkriptPlus)

Description unavailable

Usage
+[on]block land
+
+Examples
+Examples Unavailable
+
SETTINGS

+
+
+
+
\ No newline at end of file diff --git a/stoof/old.setupi/SkriptPlus.jar b/stoof/old.setupi/SkriptPlus.jar deleted file mode 100644 index 01571e5..0000000 Binary files a/stoof/old.setupi/SkriptPlus.jar and /dev/null differ diff --git a/wildstuff/landclaim.sk b/wildstuff/landclaim.sk deleted file mode 100644 index 4e420d8..0000000 --- a/wildstuff/landclaim.sk +++ /dev/null @@ -1,499 +0,0 @@ - -variables: - {claimedland.%player%} = 0 - {availableland.%player%} = 1 - - - -on join: - if {played.%player%} is not set: - set {played.%player%} to true - -every 1 tick: - loop all players: - {alert.notify.owner.%loop-player%} is not {chunk.%chunk at location of loop-player%}: - {chunk.%chunk at location of loop-player%} is not set: - {alert.notify.owner.%loop-player%} is not "Unclaimed": - send "&a&lUnclaimed Land" to loop-player - set {alert.notify.owner.%loop-player%} to "Unclaimed" - set {land.unclaim.%loop-player%} to true - {chunk.%chunk at location of loop-player%} is set: - send "&a&lLand Claimed by: &e%{chunk.%chunk at location of loop-player%}%" to loop-player - set {alert.notify.owner.%loop-player%} to {chunk.%chunk at location of loop-player%} - {alert.notify.owner.%loop-player%} is not set: - {chunk.%chunk at location of loop-player%} is not set: - send "&a&lUnclaimed Land" to loop-player - set {alert.notify.owner.%loop-player%} to "Unclaimed" - set {land.unclaim.%loop-player%} to true - -#startfold -command /front [] []: - description: For all land related commands - usage: &c/front (claim, unclaim, add, remove, name) - aliases: /f - trigger: - argument 1 is not set: - message "&3-[&a&lLand Claimed&3]-" - message "&6 %{claimedland.%player%}%" - send "&3-[&a&lPurchased Slots&3]-" to player - send "&6 %{availableland.%player%}%" - send "&3-[&a&lAvailible Slots&3]-" to player - send "&6 %{availableland.%player%} - {claimedland.%player%}%" to player - stop - #subfold @help - argument 1 is "help" or "h": - message "&3--[&6&lLand Help&3]--" - message "&cRequired = [] Optional = ()" - message "&a * /front or f" - message "&7 Shows your land claiming statistics" - message "&a * /front:f [Info:i/Stats:s]" - message "&7 Shows information about the land you are standing in" - message "&a * /front:f [Claim:c/Unclaim:u]" - message "&7 Claim/Unclaim the land you are standing at" - message "&a * /front:f [Add:a/Remove:r]" - message "&7 Add/Remove player from the land you are standing at" - if player has permission "land.bypass": - message "&a * /land bypass" - message "&7 Bypass all claimed land" - stop - #subfold @stats - argument 1 is "stats" or "info" or "s" or "i": - if {chunk.%chunk at location of player%} is set: - message "&3--[&lLand Owner&3]--" - message "&a * %{chunk.%chunk at location of player%}%" - message "&3--[&lLand Members&3]--" - message "&a * %{land.%chunk at location of player%::*}%" - send "&3---[&lChunk Name&3]--" - {chunk.name.%chunk at location of player%} is not set: - send "&a * Name not set" - stop - send "&a * %{chunk.name.%chunk at location of player%}%" - stop - message "&6This area is not currently owned by a player." - stop - #subfold @error - argument 1 is "error": - if player has permission "land.bypass": - message "&cIncorrect usage. Try '/front [claim, unclaim, add, remove, bypass, name] (player)'" - else: - message "&cIncorrect usage. Try '/front [claim, unclaim, add, remove, bypass, name] (player)'" - message "&7 ()'s = Optional, []'s = Required." - stop - #subfold @claim - argument 1 is "claim" or "c": - if {chunk.%chunk at location of player%} is set: - message "&cThis land has already been claimed." - stop - loop blocks in radius 50 of player: - if player cannot build at the loop-block: - message "&cYou can not claim land in this area." - stop - {claimedland.%player%} is greater than or equal to {availableland.%player%}: - send "&cYou do not have enough Availiable land for this action! Please purchase more with /shop!" to player - stop - player does not have permission "obam.supporter.1": - {claimedland.%player%} is 5: - send "&cYou have reached your max land count! Upgrade to a supporter rank to receive more!" to player - stop - player does not have permission "obam.supporter.2": - {claimedland.%player%} is 10: - send "&cYou have reached your max land count! Upgrade to a supporter rank to receive more!" to player - stop - - player does not have permission "obam.supporter.3": - {claimedland.%player%} is 20: - send "&cYou have reached your max land count! Upgrade to a supporter rank to receive more!" to player - stop - - - add name of player to {land.%chunk at location of player%::*} - set {chunk.%chunk at location of player%} to name of player - set {chunk.%chunk at location of player%.%player%} to true - add chunk at location of player to {owned.chunks.%player%::*} - set {loc.chunks.%player%::%chunk at location of player%} to location of player - message "&6You now own this land." - {claimedland.%player%} is 0: - set {home.%player%.wild} to location of player - add 1 to {claimedland.%player%} - stop - #subfold @unclaim - argument 1 is "unclaim" or "u": - if {chunk.%chunk at location of player%} is not set: - message "&cThis land has not been claimed." - stop - if {chunk.%chunk at location of player%} is not name of player: - message "&cYou do not own this land." - stop - remove 1 from {claimedland.%{chunk.%chunk at location of player%}%} - loop {land.%chunk at location of player%::*}: - set {_player} to {land.%chunk at location of player%::%loop-index%} - clear {chunk.%chunk at location of player%.%{_player}%} - clear {land.%chunk at location of player%::*} - clear {chunk.%chunk at location of player%} - clear {chunk.name.%chunk at location of player%} - loop {owned.chunks.%player%::*}: - chunk at location of player is {owned.chunks.%player%::%loop-index%} - delete {owned.chunks.%player%::%loop-index%} - message "&6You have unclaimed this land." - stop - #subfold @add - argument 1 is "add" or "a": - if argument 2 is not set: - make player execute command "land error" - stop - if {chunk.%chunk at location of player%} is not set: - message "&cThis land has not been claimed." - stop - if {chunk.%chunk at location of player%} is not name of player: - message "&cYou do not own this land." - stop - if {played.%argument 2%} is not set: - message "&cThis player does not exist." - stop - if {chunk.%chunk at location of player%} is argument 2: - message "&cYou can not add yourself to your own land." - stop - set {_playersearch} to 0 - loop 10000 times: - if {land.%chunk at location of player%::%{_playersearch}%} is argument 2: - message "&cThis player is already a member of this land." - stop - else: - add 1 to {_playersearch} - if {_playersearch} is 10000: - message "&6%argument 2% can now build in this land." - add "%argument 2%" to {land.%chunk at location of player%::*} - set {chunk.%chunk at location of player%.%argument 2%} to true - stop - #subfold @remove - argument 1 is "remove" or "r": - if argument 2 is not set: - make player execute command "land error" - stop - if {chunk.%chunk at location of player%} is not set: - message "&cThis land has not been claimed." - stop - if {chunk.%chunk at location of player%} is not player: - message "&cYou do not own this land." - stop - if {played.%argument 2%} is not set: - message "&cThis player does not exist." - stop - if {chunk.%chunk at location of player%} is argument 2: - message "&cYou can not remove yourself from your own land." - stop - loop {land.%chunk at location of player%::*}: - if loop-value is argument 2: - clear {chunk.%chunk at location of player%.%argument 2%} - delete {land.%chunk at location of player%::%loop-index%} - exit loop - message "&6%argument 2% can not build in this land anymore." - stop - #subfold @bypass - argument 1 is "bypass": - player has permission "land.bypass": - if {bypassland.%player%} is true: - clear {bypassland.%player%} - message "&6You have finished bypassing claimed land." - stop - set {bypassland.%player%} to true - message "&6You can now bypass claimed land." - stop - message "&cYou do not have permission to use this command." - stop - #subfold @name - argument 1 is "name" or "n": - if {chunk.%chunk at location of player%} is not set: - message "&cThis land has not been claimed." - stop - if {chunk.%chunk at location of player%} is not name of player: - message "&cThis is not your land!" - stop - message "&aYou have named this chunk to &e%argument 2%" - set {chunk.name.%chunk at location of player%} to "%argument 2%" - send "&aYou need to use &e/travelset &ato travel to this land." to player - add {chunk.name.%chunk at location of player%} to {name.list.%player%::*} - else: - make player execute command "f error" - stop -#endfold -on quit: - if {bypassland.%player%} is true: - clear {bypassland.%player%} -on place: - block is not tnt - if {bypassland.%player%} is true: - stop - if {chunk.%chunk at location of block%} is set: - if {chunk.%chunk at location of block%.%player%} is true: - stop - message "&cThis land is owned by %{chunk.%chunk at location of block%}%." - cancel event -on break: - if {bypassland.%player%} is true: - stop - if {chunk.%chunk at location of block%} is set: - if {chunk.%chunk at location of block%.%player%} is true: - stop - message "&cThis land is owned by %{chunk.%chunk at location of block%}%." - cancel event -on place of tnt: - if {bypassland.%player%} is true: - stop - loop blocks in radius 10 of block: - if {chunk.%chunk at location of loop-block%} is set: - if {chunk.%chunk at location of loop-block%.%player%} is true: - exit loop - else: - cancel event - message "&cYou can not use explosives here." - stop -on explode: - entity is creeper - loop blocks in radius 10 of entity: - if {chunk.%chunk at location of loop-block%} is set: - cancel event -on damage of a entity: - entity is not creeper or zombie or skeleton or powered creeper or spider - attacker is a player - loop blocks in radius 3 of victim: - {bypassland.%attacker%} is true: - stop - if {chunk.%chunk at location of loop-block%} is set: - {chunk.%chunk at location of loop-block%} is not attacker: - {chunk.%chunk at location of loop-block%.%attacker%} is set: - stop - send "&cThis area is protected!" to attacker - cancel event - stop trigger -on right click on lead: - {bypassland.%player%} is true: - stop - if {chunk.%chunk at location of event-player%} is set: - {chunk.%chunk at location of event-player%} is not event-player: - {chunk.%chunk at location of event-player%.%event-player%} is set: - stop - send "&cThis area is protected!" to event-player - cancel event - stop trigger -on left click on fence: - {bypassland.%player%} is true: - stop - if {chunk.%chunk at location of event-player%} is set: - {chunk.%chunk at location of event-player%} is not event-player: - {chunk.%chunk at location of event-player%.%event-player%} is set: - stop - send "&cThis area is protected!" to event-player - cancel event - stop trigger -on right click on horse: - {bypassland.%player%} is true: - stop - if {chunk.%chunk at location of event-player%} is set: - {chunk.%chunk at location of event-player%} is not event-player: - {chunk.%chunk at location of event-player%.%event-player%} is set: - stop - send "&cThis area is protected!" to event-player - cancel event - stop trigger -on damage of a player: - attacker is a player - loop blocks in radius 10 of victim: - if {chunk.%chunk at location of loop-block%} is set: - send "&cThis area is protected!" to attacker - cancel event - stop trigger -command /townset: - trigger: - player is op - set {town.spawn} to location of player - - -command /town: - trigger: - {chunk.%chunk at location of player%} is not player: - {chunk.%chunk at location of player%} is not "Town": - send "&cYou can only do this in Town, or on your own land!" to player - if {chunk.%chunk at location of player%} is not set: - message "&cYou must do this on your land!" - stop - teleport player to {town.spawn} - -on sign change: - world is "wildtest": - line 1 of block is "warp" or "[warp]": - {chunk.%chunk at location of player%} is name of player: - line 2 of block is "town": - set line 1 of block to "[WARP]" - set line 2 of block to "TOWN" - stop - loop {owned.chunks.%player%::*}: - set {_chunk} to {owned.chunks.%player%::%loop-index%} - {chunk.name.%{_chunk}%} is line 2 of block - send "&cYou can not do that here!" to player - cancel event -on right click on sign: - world is "wildtest": - line 1 of block is "[WARP]" - line 2 of block is "TOWN": - {chunk.%chunk at location of player%.%player%} is true: - teleport player to {town.spawn} - stop - send "&cYou can not do this here!" to player - - -command /clearland: - trigger: - send "&cPreparing to delete &e%size of {owned.chunks.%player%::*}% &cchunks...." to player - wait 0.5 seconds - loop {owned.chunks.%player%::*}: - set {_chunk} to {owned.chunks.%player%::%loop-index-1%} - send "&cClearing chunk &e%loop-index-1%" to player - wait 0.5 seconds - loop {land.%{_chunk}%::*}: - set {_player} to {land.%{_chunk}%::%loop-index-2%} - clear {chunk.%{_chunk}%.%{_player}%} - clear {chunk.%{_chunk}%} - clear {chunk.name.%{_chunk}%} - send "&aChunk &e%loop-index-1% &acleared" to player - send "&cClearing Home spawn" to player - clear {home.%player%.wild} - send "&cManginling variables" to player - set {claimedland.%player%} to 0 - clear {owned.chunks.%player%::*} - send "&aLand clear complete!" to player - -command /listland []: - trigger: - argument is not set: - loop {owned.chunks.%player%::*}: - set {_chunk} to {owned.chunks.%player%::%loop-index%} - send "&a%loop-index%................%{_chunk}%" to player - argument is set: - player is op - loop {owned.chunks.%argument%::*}: - set {_chunk} to {owned.chunks.%argument%::%loop-index%} - send "&a%loop-index%.................%{_chunk}%" to player - - - -command /testing: - trigger: - loop {loc.chunks.%player%::*}: - set {_loc} to {loc.chunks.%player%::%loop-index%} - set {_chunk} to chunk at location of {_loc} - set {_chunk.name} to {chunk.name.%{_chunk}%} - {_chunk.name} is not set: - set {_chunk.name} to "&cNot Named" - send "&a%loop-index%.......%{_chunk}%....%{_chunk.name}%" to player - -command /testing2 : - trigger: - loop {loc.chunks.%player%::*}: - set {_loc} to loop-value - set {_chunk} to chunk at location of {_loc} - set {_chunk.name} to {chunk.name.%{_chunk}%} - {_chunk.name} is argument: - send "&aTeleporting to &e%argument%" to player - teleport player to {_loc} - stop - send "&cYou do not have an area named &e%argument%" - - -command /travelmove: - trigger: - set {loc.chunks.%player%::%chunk at location of player%} to location of player - send "&aYour travel location for this area, has been moved" to player - - -command /travelset: - trigger: - if {chunk.%chunk at location of player%} is not set: - message "&cThis land has not been claimed." - stop - if {chunk.%chunk at location of player%} is not name of player: - {chunk.%chunk at location of player%.%player%} is not set: - message "&cThis is not your land!" - stop - {chunk.name.%chunk at location of player%} is not set: - send "&cThis land needs a name first!" to player - stop - set {travel.%player%.%{chunk.name.%chunk at location of player%}%} to location of player - add {travel.%player%.%{chunk.name.%chunk at location of player%}%} to {travel.list.%player%::*} - send "&aYou have set the travel location for &e%{chunk.name.%chunk at location of player%}%&a!" to player - send "&aUse &e/travel &a to travel to your locations!" to player - - - -command /sethome: - trigger: - if {chunk.%chunk at location of player%} is not set: - message "&cYou must do this on your land!" - stop - if {chunk.%chunk at location of player%} is not name of player: - message "&cYou must do this on your land!" - stop - set {home.%player%.wild} to location of player - send "&aYour home has been set!" to player - - -on command "/home": - cancel event - {chunk.%chunk at location of player%} is not player: - {chunk.%chunk at location of player%} is not "Town": - send "&cYou can only do this in Town, or on your own land!" to player - stop - - if {chunk.%chunk at location of player%} is not set: - message "&cYou must do this on your land!" - stop - teleport player to {home.%player%.wild} - - -command /travel []: - trigger: - {chunk.%chunk at location of player%} is not player: - {chunk.%chunk at location of player%} is not "Town": - {chunk.%chunk at location of player%.%player%} is not set: - send "&cYou can only do this in Town, or on your own land!" to player - - if {chunk.%chunk at location of player%} is not set: - message "&cYou must do this on your land!" - stop - {travel.%player%.%argument 1%} is set: - teleport player to {travel.%player%.%argument 1%} - stop - send "&cYou do not have an area named &e%argument 1%" to player - - -on bed enter: - set {bed.%event-player%.wild} to true - set {bed.owner.%event-block%} to event-player -on break of a bed: - {bed.owner.%event-block%} is set: - clear {bed.%{bed.owner.%event-block%}%.wild} - clear {bed.owner.%event-block%} -on respawn: - {home.%player%.wild} is set: - {bed.%event-player%.wild} is set: - stop - wait 1 second - teleport player to {home.%player%.wild} - -command /townclaim: - permission: obam.admin.command - trigger: - set {chunk.%chunk at location of player%} to "Town" - - -command /travellist: - trigger: - send "&a---------&a&lChunk Name&A--------" to player - send " " to player - loop {travel.list.%player%::*}: - send "&a &a&l%{chunk.name.%chunk at location of loop-value%}%&a" to player - -command /owner : - permission: obam.admin.command - trigger: - set {chunk.%chunk at location of player%} to argument \ No newline at end of file