From 5824bb1f1e450caa832cdb26e27b57ead1bd6c43 Mon Sep 17 00:00:00 2001 From: ismooch Date: Mon, 24 Mar 2014 09:31:38 -0500 Subject: [PATCH 1/5] added abstain.sk -added abstain.sk -hooked fortune.sk into abstain -hooked pvp into abstain -some more wtfronts.sk modificaiton/tweaking --- Obam-Survival/fortune.sk | 16 +++++ Obam-Survival/landclaim.sk | 21 ++++++ Obam-Testing/abstain.sk | 127 +++++++++++++++++++++++++++++++++++++ Obam-Testing/wtfronts.sk | 112 ++++++++++++++++---------------- 4 files changed, 219 insertions(+), 57 deletions(-) create mode 100644 Obam-Testing/abstain.sk diff --git a/Obam-Survival/fortune.sk b/Obam-Survival/fortune.sk index 392369f..97970b4 100644 --- a/Obam-Survival/fortune.sk +++ b/Obam-Survival/fortune.sk @@ -11,6 +11,15 @@ 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" @@ -76,6 +85,9 @@ every 15 minutes: {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 @@ -100,6 +112,10 @@ on break: {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 diff --git a/Obam-Survival/landclaim.sk b/Obam-Survival/landclaim.sk index 0f22ab1..0e1e54d 100644 --- a/Obam-Survival/landclaim.sk +++ b/Obam-Survival/landclaim.sk @@ -41,14 +41,20 @@ every 1 tick: {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 false: + stop 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 false: + stop 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 false: + stop send "&a&lUnclaimed Front" to loop-player set {alert.notify.owner.%loop-player%} to "Unclaimed" set {land.unclaim.%loop-player%} to true @@ -343,6 +349,21 @@ command /front [] [] []: 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 + + diff --git a/Obam-Testing/abstain.sk b/Obam-Testing/abstain.sk new file mode 100644 index 0000000..df5f898 --- /dev/null +++ b/Obam-Testing/abstain.sk @@ -0,0 +1,127 @@ +variables: + {abstain.%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 " " + 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 "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: + 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 + 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: + 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 + 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": + 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": + 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: + cancel event + {abstain.%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 + {_hold} is more than 1 hour + set {abstain.%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 + {_hold} is more than 1 hour + set {abstain.%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: + player is "ISMOOCH": + stop + {abstain.%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: + 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 + {_hold} is more than 1 hour: + set {abstain.%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 + {_hold} is more than 1 hour: + set {abstain.%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 diff --git a/Obam-Testing/wtfronts.sk b/Obam-Testing/wtfronts.sk index 3d2e396..e75214d 100644 --- a/Obam-Testing/wtfronts.sk +++ b/Obam-Testing/wtfronts.sk @@ -34,7 +34,7 @@ on join: 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 0 + make score "&cINJURED" in board of player to 1 move display of player to "sidebar" on chunk load: @@ -62,6 +62,7 @@ on chunk load: 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 @@ -115,10 +116,10 @@ on mine: 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}%: + 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}%: + 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}%: @@ -128,7 +129,8 @@ on mine: {_found.water} is true: send "&3Flood!" to player loop blocks in radius 3 of event-location: - set loop-block to water + loop-block is air: + set loop-block to water @@ -208,7 +210,8 @@ every 3 seconds: 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: @@ -264,62 +267,57 @@ every 3 seconds: on spawn of a creeper or a skeleton or a spider or zombie: {unstable.%chunk at event-location%} is true: - cancel event + + set {_loc} to event-location event-entity is a creeper: - spawn creeper at {_loc} - set name of spawned entity to "&cUnstable Spawn" - apply resistance 2 to spawned creeper for 999 days - apply speed to spawned creeper for 999 days - set {unstable.%spawned entity%} to true - spawn creeper at {_loc} - set name of spawned entity to "&cUnstable Spawn" - apply resistance 2 to spawned creeper for 999 days - apply speed to spawned creeper for 999 days - set {unstable.%spawned entity%} to true + 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: - spawn zombie at {_loc} - set name of spawned entity to "&cUnstable Spawn" - apply resistance 2 to spawned entity for 999 days - apply speed to spawned entity for 999 days - equip spawned entity with iron sword of sharpness - set spawned entity's helmet to iron helmet - set {unstable.%spawned entity%} to true - spawn zombie at {_loc} - set name of spawned entity to "&cUnstable Spawn" - apply resistance 2 to spawned entity for 999 days - apply speed to spawned entity for 999 days - equip spawned entity with iron sword of sharpness - set spawned entity's helmet to iron helmet - set {unstable.%spawned entity%} to true + + 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: - spawn skeleton at {_loc} - set name of spawned entity to "&cUnstable Spawn" - apply resistance 2 to spawned entity for 999 days - apply speed to spawned entity for 999 days - equip spawned entity with bow - set spawned entity's helmet to gold helmet - set {unstable.%spawned entity%} to true - spawn skeleton at {_loc} - set name of spawned entity to "&cUnstable Spawn" - apply resistance 2 to spawned entity for 999 days - apply speed to spawned entity for 999 days - equip spawned entity with bow - set spawned entity's helmet to gold helmet - set {unstable.%spawned entity%} to true + 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: - spawn spider at {_loc} - set name of spawned entity to "&cUnstable Spawn" - apply resistance 2 to spawned entity for 999 days - apply speed to spawned entity for 999 days - apply jump to spawned entity for 999 days - set {unstable.%spawned entity%} to true - spawn spider at {_loc} - set name of spawned entity to "&cUnstable Spawn" - apply resistance 2 to spawned entity for 999 days - apply speed to spawned entity for 999 days - apply jump to spawned entity for 999 days - set {unstable.%spawned entity%} to true - + 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%: From 55499c5e7d644eb7562b977b02feb3f8452b117b Mon Sep 17 00:00:00 2001 From: ismooch Date: Mon, 24 Mar 2014 18:11:56 -0500 Subject: [PATCH 2/5] prizewheel work -added some to prizewheel --- OBAM-Voting/prizewheel.sk | 372 ++++++++++++++++++++++++-------------- 1 file changed, 240 insertions(+), 132 deletions(-) diff --git a/OBAM-Voting/prizewheel.sk b/OBAM-Voting/prizewheel.sk index 23c4abc..3c791df 100644 --- a/OBAM-Voting/prizewheel.sk +++ b/OBAM-Voting/prizewheel.sk @@ -50,146 +50,254 @@ command /prize [] [] []: send "&cYou must wait &e%12 hours - {_time}% &cbefore you can spin again!" stop chance of 1%: - set {_size} to size of {db_wheel.ultrarare::*} - set {_ran} to random integer between 1 and {_size} - loop {db_wheel.ultrarare::*}: - {_loop.count} is not set: - set {_loop.count} to 0 - add 1 to {_loop.count} - {_loop.count} is {_ran}: - set {_amount} to loop-value - set {_item} to loop-index - set {_location} to {db_wheel.ultrarare::%loop-index%::"location"} - {_item} is "tickets": - set {_bal} to player's balance - add {_amount} to player's balance - send "&aYou have received &e%{_amount}% Tickets&a as your prize" - log "%player%^%{_bal}%^ADD^%{_amount}%^%player's balance%^ultrarare PRIZE WHEEL WINNINGS" to "tickets/PRIZEWHEELWINNINGS.log" - stop - {db_wheel.rewards.%player%::%{_location}%::%{_item}%} is not set: - set {db_wheel.rewards.%player%::%{_location}%::%{_item}%} to {_amount} - send "&aYou have had &e%{_amount}% %{_item}%&a added to your rewards chest. Do &e/prize show&a in &e%{_location}%&a to claim the items." - log "%player%^ADD^%{_amount}%^%{_item}%^%{_location}%^ultrarare PRIZE WHEEL WINNINGS" to "prizewheel/PRIZELOGS.log" - stop - {db_wheel.rewards.%player%::%{_location}%::%{_item}%} is set: - add {_amount} to {db_wheel.rewards.%player%::%{_location}%::%{_item}%} - send "&aYou have had &e%{_amount}% %{_item}%&a added to your rewards chest. Do &e/prize show&a in &e%{_location}%&a to claim the items." - log "%player%^ADD^%{_amount}%^%{_item}%^%{_location}%^ultrarare PRIZE WHEEL WINNINGS" to "prizewheel/PRIZELOGS.log" - stop - + set {_ran} to a random integer between 1 and + + {_ran} is 1: + set {_bal} to player's balance + add 2500 to player's balance + send "&aYou have won &e2500 Tickets!" + send "&aYou now have &e%player's balance%" + log "%player%^ADD^2500^%{_bal}%^%player's balance%^ULTRARARE PRIZE WINNINGS" to "prizewheel/WINNINGS.log" + stop + + chance of 5%: - set {_size} to size of {db_wheel.rare::*} - set {_ran} to random integer between 1 and {_size} - loop {db_wheel.rare::*}: - {_loop.count} is not set: - set {_loop.count} to 0 - add 1 to {_loop.count} - {_loop.count} is {_ran}: - set {_amount} to loop-value - set {_item} to loop-index - set {_location} to {db_wheel.rare::%loop-index%::"location"} - {_item} is "tickets": - set {_bal} to player's balance - add {_amount} to player's balance - send "&aYou have received &e%{_amount}% Tickets&a as your prize" - log "%player%^%{_bal}%^ADD^%{_amount}%^%player's balance%^rare PRIZE WHEEL WINNINGS" to "tickets/PRIZEWHEELWINNINGS.log" - stop - {db_wheel.rewards.%player%::%{_location}%::%{_item}%} is not set: - set {db_wheel.rewards.%player%::%{_location}%::%{_item}%} to {_amount} - send "&aYou have had &e%{_amount}% %{_item}%&a added to your rewards chest. Do &e/prize show&a in &e%{_location}%&a to claim the items." - log "%player%^ADD^%{_amount}%^%{_item}%^%{_location}%^rare PRIZE WHEEL WINNINGS" to "prizewheel/PRIZELOGS.log" - stop - {db_wheel.rewards.%player%::%{_location}%::%{_item}%} is set: - add {_amount} to {db_wheel.rewards.%player%::%{_location}%::%{_item}%} - send "&aYou have had &e%{_amount}% %{_item}%&a added to your rewards chest. Do &e/prize show&a in &e%{_location}%&a to claim the items." - log "%player%^ADD^%{_amount}%^%{_item}%^%{_location}%^rare PRIZE WHEEL WINNINGS" to "prizewheel/PRIZELOGS.log" - stop - - chance of 8%: - set {_size} to size of {db_wheel.semirare::*} - set {_ran} to random integer between 1 and {_size} - loop {db_wheel.semirare::*}: - {_loop.count} is not set: - set {_loop.count} to 0 - add 1 to {_loop.count} - {_loop.count} is {_ran}: - set {_amount} to loop-value - set {_item} to loop-index - set {_location} to {db_wheel.semirare::%loop-index%::"location"} - {_item} is "tickets": - set {_bal} to player's balance - add {_amount} to player's balance - send "&aYou have received &e%{_amount}% Tickets&a as your prize" - log "%player%^%{_bal}%^ADD^%{_amount}%^%player's balance%^semirare PRIZE WHEEL WINNINGS" to "tickets/PRIZEWHEELWINNINGS.log" - stop - {db_wheel.rewards.%player%::%{_location}%::%{_item}%} is not set: - set {db_wheel.rewards.%player%::%{_location}%::%{_item}%} to {_amount} - send "&aYou have had &e%{_amount}% %{_item}%&a added to your rewards chest. Do &e/prize show&a in &e%{_location}%&a to claim the items." - log "%player%^ADD^%{_amount}%^%{_item}%^%{_location}%^semirare PRIZE WHEEL WINNINGS" to "prizewheel/PRIZELOGS.log" - stop - {db_wheel.rewards.%player%::%{_location}%::%{_item}%} is set: - add {_amount} to {db_wheel.rewards.%player%::%{_location}%::%{_item}%} - send "&aYou have had &e%{_amount}% %{_item}%&a added to your rewards chest. Do &e/prize show&a in &e%{_location}%&a to claim the items." - log "%player%^ADD^%{_amount}%^%{_item}%^%{_location}%^semirare PRIZE WHEEL WINNINGS" to "prizewheel/PRIZELOGS.log" - stop + set {_ran} to a random integer between 1 and + + {_ran} is 1: + set {_bal} to player's balance + add 1000 to player's balance + send "&aYou have won &e1000 Tickets&a!" + send "&aYou now have &e%player's balance%" + log "%player%^ADD^1000^%{_bal}%^%player's balance%^RARE PRIZE WINNINGS" to "prizewheel/WINNINGS.log" + stop chance of 15%: - set {_size} to size of {db_wheel.uncommon::*} - set {_ran} to random integer between 1 and {_size} - loop {db_wheel.uncommon::*}: - {_loop.count} is not set: - set {_loop.count} to 0 - add 1 to {_loop.count} - {_loop.count} is {_ran}: - set {_amount} to loop-value - set {_item} to loop-index - set {_location} to {db_wheel.uncommon::%loop-index%::"location"} - {_item} is "tickets": - set {_bal} to player's balance - add {_amount} to player's balance - send "&aYou have received &e%{_amount}% Tickets&a as your prize" - log "%player%^%{_bal}%^ADD^%{_amount}%^%player's balance%^uncommon PRIZE WHEEL WINNINGS" to "tickets/PRIZEWHEELWINNINGS.log" - stop - {db_wheel.rewards.%player%::%{_location}%::%{_item}%} is not set: - set {db_wheel.rewards.%player%::%{_location}%::%{_item}%} to {_amount} - send "&aYou have had &e%{_amount}% %{_item}%&a added to your rewards chest. Do &e/prize show&a in &e%{_location}%&a to claim the items." - log "%player%^ADD^%{_amount}%^%{_item}%^%{_location}%^uncommon PRIZE WHEEL WINNINGS" to "prizewheel/PRIZELOGS.log" - stop - {db_wheel.rewards.%player%::%{_location}%::%{_item}%} is set: - add {_amount} to {db_wheel.rewards.%player%::%{_location}%::%{_item}%} - send "&aYou have had &e%{_amount}% %{_item}%&a added to your rewards chest. Do &e/prize show&a in &e%{_location}%&a to claim the items." - log "%player%^ADD^%{_amount}%^%{_item}%^%{_location}%^uncommon PRIZE WHEEL WINNINGS" to "prizewheel/PRIZELOGS.log" - stop - - set {_size} to size of {db_wheel.common::*} - set {_ran} to random integer between 1 and {_size} - loop {db_wheel.common::*}: - {_loop.count} is not set: - set {_loop.count} to 0 - add 1 to {_loop.count} - {_loop.count} is {_ran}: - set {_amount} to loop-value - set {_item} to loop-index - set {_location} to {db_wheel.common::%loop-index%::"location"} - {_item} is "tickets": - set {_bal} to player's balance - add {_amount} to player's balance - send "&aYou have received &e%{_amount}% Tickets&a as your prize" - log "%player%^%{_bal}%^ADD^%{_amount}%^%player's balance%^COMMON PRIZE WHEEL WINNINGS" to "tickets/PRIZEWHEELWINNINGS.log" + set {_ran} to a random integer between 1 and + + {_ran} is 1: + set {_bal} to player's balance + add 500 to player's balance + send "&aYou have won &e500 Tickets&a!" + send "&aYou now have &e%player's balance%" + log "%player%^ADD^500^%{_bal}%^%player's balance%^SEMIRARE PRIZE WINNINGS" to "prizewheel/WINNINGS.log" + stop + + chance of 25%: + set {_ran} to a random integer between 1 and + + {_ran} is 1: + {winnings.chest.%player%.skyblock::"redstone dust"} is not set: + set {winnings.chest.%player%.skyblock::"redstone dust"} to 10 + send "&aYou have won &e10 redstone dust&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^10 redstone dust^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + add 10 to {winnings.chest.%player%.skyblock::"redstone dust"} + send "&aYou have won &e10 redstone dust&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^10 redstone dust^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + + {_ran} is 2: + {winnings.chest.%player%.skyblock::"dirt"} is not set: + set {winnings.chest.%player%.skyblock::"dirt"} to 10 + send "&aYou have won &e10 dirt&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^10 dirt^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + add 10 to {winnings.chest.%player%.skyblock::"dirt"} + send "&aYou have won &e10 dirt&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^10 dirt^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + + {_ran} is 3: + {winnings.chest.%player%.skyblock::"grass"} is not set: + set {winnings.chest.%player%.skyblock::"grass"} to 10 + send "&aYou have won &e10 grass&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^10 grass^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + add 10 to {winnings.chest.%player%.skyblock::"grass"} + send "&aYou have won &e10 grass&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^10 grass^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + + {_ran} is 4: + {winnings.chest.%player%.skyblock::"lava bucket"} is not set: + set {winnings.chest.%player%.skyblock::"lava bucket"} to 1 + send "&aYou have won &e1 lava bucket&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^1 lava bucket^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + add 1 to {winnings.chest.%player%.skyblock::"lava bucket"} + send "&aYou have won &e1 lava bucket&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^1 lava bucket^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + + {_ran} is 5: + {winnings.chest.%player%.skyblock::"iron chestplate of unbreaking 2 and protection 2"} is not set: + set {winnings.chest.%player%.skyblock::"iron chestplate of unbreaking 2 and protection 2"} to 1 + send "&aYou have won &e1 iron chestplate of unbreaking 2 and protection 2&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^1 iron chestplate of unbreaking 2 and protection 2^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + add 1 to {winnings.chest.%player%.skyblock::"iron chestplate of unbreaking 2 and protection 2"} + send "&aYou have won &e1 iron chestplate of unbreaking 2 and protection 2&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^1 iron chestplate of unbreaking 2 and protection 2^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + + {_ran} is 6: + {winnings.chest.%player%.skyblock::"iron helmet of unbreaking 2 and projectile protection 2 and aqua afinity"} is not set: + set {winnings.chest.%player%.skyblock::"iron helmet of unbreaking 2 and projectile protection 2 and aqua afinity"} to 1 + send "&aYou have won &e1 iron helmet of unbreaking 2 and projectile protection 2 and aqua afinity&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^1 iron helmet of unbreaking 2 and projectile protection 2 and aqua afinity^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" stop - {db_wheel.rewards.%player%::%{_location}%::%{_item}%} is not set: - set {db_wheel.rewards.%player%::%{_location}%::%{_item}%} to {_amount} - send "&aYou have had &e%{_amount}% %{_item}%&a added to your rewards chest. Do &e/prize show&a in &e%{_location}%&a to claim the items." - log "%player%^ADD^%{_amount}%^%{_item}%^%{_location}%^COMMON PRIZE WHEEL WINNINGS" to "prizewheel/PRIZELOGS.log" + add 1 to {winnings.chest.%player%.skyblock::"iron helmet of unbreaking 2 and projectile protection 2 and aqua afinity"} + send "&aYou have won &e1 iron helmet of unbreaking 2 and projectile protection 2 and aqua afinity&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^1 iron helmet of unbreaking 2 and projectile protection 2 and aqua afinity^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + + {_ran} is 7: + {winnings.chest.%player%.skyblock::"iron boots of unbreaking 2 and blast protection 2 and feather falling 3"} is not set: + set {winnings.chest.%player%.skyblock::"iron boots of unbreaking 2 and blast protection 2 and feather falling 3"} to 1 + send "&aYou have won &e1 iron boots of unbreaking 2 and blast protection 2 and feather falling 3&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^1 iron boots of unbreaking 2 and blast protection 2 and feather falling 3^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + add 1 to {winnings.chest.%player%.skyblock::"iron boots of unbreaking 2 and blast protection 2 and feather falling 3"} + send "&aYou have won &e1 iron boots of unbreaking 2 and blast protection 2 and feather falling 3&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^1 iron boots of unbreaking 2 and blast protection 2 and feather falling 3^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + + {_ran} is 8: + {winnings.chest.%player%.skyblock::"iron boots of unbreaking 2 and protection 2"} is not set: + set {winnings.chest.%player%.skyblock::"iron boots of unbreaking 2 and protection 2"} to 1 + send "&aYou have won &e1 iron boots of unbreaking 2 and protection 2&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^1 iron boots of unbreaking 2 and protection 2^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + add 1 to {winnings.chest.%player%.skyblock::"iron boots of unbreaking 2 and protection 2"} + send "&aYou have won &e1 iron boots of unbreaking 2 and protection 2&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^1 iron boots of unbreaking 2 and protection 2^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + + + {_ran} is 9: + {winnings.chest.%player%.skyblock::"iron pickaxe of unbreaking 2 and efficiency 3 and fortune 2"} is not set: + set {winnings.chest.%player%.skyblock::"iron pickaxe of unbreaking 2 and efficiency 3 and fortune 2"} to 1 + send "&aYou have won &e1 iron pickaxe of unbreaking 2 and efficiency 3 and fortune 2&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^1 iron pickaxe of unbreaking 2 and efficiency 3 and fortune 2^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" stop - {db_wheel.rewards.%player%::%{_location}%::%{_item}%} is set: - add {_amount} to {db_wheel.rewards.%player%::%{_location}%::%{_item}%} - send "&aYou have had &e%{_amount}% %{_item}%&a added to your rewards chest. Do &e/prize show&a in &e%{_location}%&a to claim the items." - log "%player%^ADD^%{_amount}%^%{_item}%^%{_location}%^COMMON PRIZE WHEEL WINNINGS" to "prizewheel/PRIZELOGS.log" + add 1 to {winnings.chest.%player%.skyblock::"iron pickaxe of unbreaking 2 and efficiency 3 and fortune 2"} + send "&aYou have won &e1 iron pickaxe of unbreaking 2 and efficiency 3 and fortune 2&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^1 iron pickaxe of unbreaking 2 and efficiency 3 and fortune 2^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + + stop + + {_ran} is 10: + {winnings.chest.%player%.skyblock::"iron axe of unbreaking 2 and efficency 3"} is not set: + set {winnings.chest.%player%.skyblock::"iron axe of unbreaking 2 and efficency 3"} to 1 + send "&aYou have won &e1 iron axe of unbreaking 2 and efficency 3&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^1 iron axe of unbreaking 2 and efficency 3^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" stop + add 1 to {winnings.chest.%player%.skyblock::"iron axe of unbreaking 2 and efficency 3"} + send "&aYou have won &e1 iron axe of unbreaking 2 and efficency 3&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^1 iron axe of unbreaking 2 and efficency 3^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + set {_ran} to random integer between 1 and - + {_ran} is 1: + set {_bal} to player's balance + add 100 to player's balance + send "&aYou have won &e100 Tickets&a!" + send "&aYou now have &e%player's balance%" + log "%player%^ADD^100%{_bal}%^%player's balance%^COMMON PRIZE WINNINGS" to "prizewheel/WINNINGS.log" + stop + + {_ran} is 2: + set {_bal} to player's balance + add 200 to player's balance + send "&aYou have won &e200 Tickets&a!" + send "&aYou now have &e%player's balance%" + log "%player%^ADD^200%{_bal}%^%player's balance%^COMMON PRIZE WINNINGS" to "prizewheel/WINNINGS.log" + stop + + {_ran} is 3: + set {_bal} to player's balance + add 400 to player's balance + send "&aYou have won &e300 Tickets&a!" + send "&aYou now have &e%player's balance%" + log "%player%^ADD^300%{_bal}%^%player's balance%^COMMON PRIZE WINNINGS" to "prizewheel/WINNINGS.log" + stop + + + {_ran} is 4: + {winnings.chest.%player%.skyblock::"redstone dust"} is not set: + set {winnings.chest.%player%.skyblock::"redstone dust"} to 5 + send "&aYou have won &e5 Redstone Dust&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^5 Redstone Dust^COMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + add 5 to {winnings.chest.%player%.skyblock::"redstone dust"} + send "&aYou have won &e5 Redstone Dust&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^5 Redstone Dust^COMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + + + + {_ran} is 5: + {winnings.chest.%player%.skyblock::"dirt"} is not set: + set {winnings.chest.%player%.skyblock::"dirt"} to 5 + send "&aYou have won &e5 dirt&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^5 dirt^COMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + add 5 to {winnings.chest.%player%.skyblock::"dirt"} + send "&aYou have won &e5 dirt&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^5 dirt^COMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + + {_ran} is 6: + {winnings.chest.%player%.skyblock::"grass"} is not set: + set {winnings.chest.%player%.skyblock::"grass"} to 5 + send "&aYou have won &e5 grass&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^5 grass^COMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + add 5 to {winnings.chest.%player%.skyblock::"grass"} + send "&aYou have won &e5 grass&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^5 grass^COMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + + {_ran} is 7: + {winnings.chest.%player%.skyblock::"enderpearl"} is not set: + set {winnings.chest.%player%.skyblock::"enderpearl"} to 16 + send "&aYou have won &e16 enderpearl&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^16 enderpearl^COMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + add 16 to {winnings.chest.%player%.skyblock::"enderpearl"} + send "&aYou have won &e16 enderpearl&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^16 enderpearl^COMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + stop \ No newline at end of file From 454d70e5ce8aafe68b07c4526c43f6bf6626d951 Mon Sep 17 00:00:00 2001 From: ismooch Date: Mon, 24 Mar 2014 19:59:21 -0500 Subject: [PATCH 3/5] update prizehweel.sk -did some more work on prizehweel --- OBAM-Voting/prizewheel.sk | 123 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 123 insertions(+) diff --git a/OBAM-Voting/prizewheel.sk b/OBAM-Voting/prizewheel.sk index 3c791df..b1e5067 100644 --- a/OBAM-Voting/prizewheel.sk +++ b/OBAM-Voting/prizewheel.sk @@ -60,6 +60,20 @@ command /prize [] [] []: log "%player%^ADD^2500^%{_bal}%^%player's balance%^ULTRARARE PRIZE WINNINGS" to "prizewheel/WINNINGS.log" stop + {_ran} is 2: + {winnings.chest.%player%.skyblock::"fullblock spruce wood block"} is not set: + set {winnings.chest.%player%.skyblock::"fullblock spruce wood block"} to 1 + send "&aYou have won &e1 xPlosion Dampener&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^1 xPlosion Dampener^ULTRARARE PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + add 1 to {winnings.chest.%player%.skyblock::"fullblock spruce wood block"} + send "&aYou have won &e1 xPlosion Dampener&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^1 xPlosion Dampener^ULTRARARE PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + + chance of 5%: set {_ran} to a random integer between 1 and @@ -71,6 +85,47 @@ command /prize [] [] []: send "&aYou now have &e%player's balance%" log "%player%^ADD^1000^%{_bal}%^%player's balance%^RARE PRIZE WINNINGS" to "prizewheel/WINNINGS.log" stop + + {_ran} is 2: + {winnings.chest.%player%.skyblock::"diamond pickaxe"} is not set: + set {winnings.chest.%player%.skyblock::"diamond pickaxe"} to 1 + send "&aYou have won &e1 diamond pickaxe&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^1 diamond pickaxe^RARE PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + add 1 to {winnings.chest.%player%.skyblock::"diamond pickaxe"} + send "&aYou have won &e1 diamond pickaxe&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^1 diamond pickaxe^RARE PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + + {_ran} is 3: + {winnings.chest.%player%.skyblock::"diamond axe"} is not set: + set {winnings.chest.%player%.skyblock::"diamond axe"} to 1 + send "&aYou have won &e1 diamond axe&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^1 diamond axe^RARE PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + add 1 to {winnings.chest.%player%.skyblock::"diamond axe"} + send "&aYou have won &e1 diamond axe&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^1 diamond axe^RARE PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + + {_ran} is 4: + {winnings.chest.%player%.skyblock::"beacon"} is not set: + set {winnings.chest.%player%.skyblock::"beacon"} to 1 + send "&aYou have won &e1 beacon&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^1 beacon^RARE PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + add 1 to {winnings.chest.%player%.skyblock::"beacon"} + send "&aYou have won &e1 beacon&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skbylock to claim!" + log "%player%^ADD^1 beacon^RARE PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + + chance of 15%: set {_ran} to a random integer between 1 and @@ -83,6 +138,32 @@ command /prize [] [] []: log "%player%^ADD^500^%{_bal}%^%player's balance%^SEMIRARE PRIZE WINNINGS" to "prizewheel/WINNINGS.log" stop + {_ran} is 2: + {winnings.chest.%player%.skyblock::"poisonous potato"} is not set: + set {winnings.chest.%player%.skyblock::"poisonous potato"} to 10 + send "&aYou have won &e10 poisonous potato&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^10 poisonous potato^SEMIRARE PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + add 10 to {winnings.chest.%player%.skyblock::"poisonous potato"} + send "&aYou have won &e10 poisonous potato&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^10 poisonous potato^SEMIRARE PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + + {_ran} is 3: + {winnings.chest.%player%.skyblock::"piston"} is not set: + set {winnings.chest.%player%.skyblock::"piston"} to 3 + send "&aYou have won &e3 piston&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^3 piston^SEMIRARE PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + add 3 to {winnings.chest.%player%.skyblock::"piston"} + send "&aYou have won &e3 piston&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^3 piston^SEMIRARE PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + chance of 25%: set {_ran} to a random integer between 1 and @@ -218,6 +299,48 @@ command /prize [] [] []: log "%player%^ADD^1 iron axe of unbreaking 2 and efficency 3^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" stop + {_ran} is 11: + {winnings.chest.%player%.skyblock::"iron shovel of unbreaking 3 and efficency 3"} is not set: + set {winnings.chest.%player%.skyblock::"iron shovel of unbreaking 3 and efficency 3"} to 1 + send "&aYou have won &e1 iron shovel of unbreaking 3 and efficency 3&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^1 iron shovel of unbreaking 3 and efficency 3^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + add 1 to {winnings.chest.%player%.skyblock::"iron shovel of unbreaking 3 and efficency 3"} + send "&aYou have won &e1 iron shovel of unbreaking 3 and efficency 3&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^1 iron shovel of unbreaking 3 and efficency 3^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + + + {_ran} is 12: + {winnings.chest.%player%.skyblock::"iron hoe unbreaking 3 and fortune 2"} is not set: + set {winnings.chest.%player%.skyblock::"iron hoe unbreaking 3 and fortune 2"} to 1 + send "&aYou have won &e1 iron hoe unbreaking 3 and fortune 2&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^1 iron hoe unbreaking 3 and fortune 2^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + add 1 to {winnings.chest.%player%.skyblock::"iron hoe unbreaking 3 and fortune 2"} + send "&aYou have won &e1 iron hoe unbreaking 3 and fortune 2&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^1 iron hoe unbreaking 3 and fortune 2^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + + {_ran} is 13: + {winnings.chest.%player%.skyblock::"iron shovel of unbreaking 2 and looting 2"} is not set: + set {winnings.chest.%player%.skyblock::"iron shovel of unbreaking 2 and looting 2"} to 1 + send "&aYou have won &e1 iron shovel of unbreaking 2 and looting 2&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^1 iron shovel of unbreaking 2 and looting 2^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + add 1 to {winnings.chest.%player%.skyblock::"iron shovel of unbreaking 2 and looting 2"} + send "&aYou have won &e1 iron shovel of unbreaking 2 and looting 2&a for &eSkyblock!" + send "&aUse &e/prizewheel claim&a in skyblock to claim!" + log "%player%^ADD^1 iron shovel of unbreaking 2 and looting 2^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + stop + + + set {_ran} to random integer between 1 and From 31451822397d363f00139bba9db71f92d6a4b910 Mon Sep 17 00:00:00 2001 From: ismooch Date: Sun, 30 Mar 2014 04:11:18 -0500 Subject: [PATCH 4/5] live prizewheel added plus hooks -prizewheel added -hooks into landclaim (fronts) -hooks into projeggtiles -- seems like there is a bug with the projeggtile hooks.. will work on fixing. --- OBAM-Voting/prizewheel.sk | 786 ++++++++++++++++++++++++++++--------- Obam-General/ihs.sk | 2 + Obam-Survival/landclaim.sk | 10 +- Obam-Testing/wtfronts.sk | 67 +++- Obam-Tools/eggification.sk | 27 ++ 5 files changed, 685 insertions(+), 207 deletions(-) diff --git a/OBAM-Voting/prizewheel.sk b/OBAM-Voting/prizewheel.sk index b1e5067..2777448 100644 --- a/OBAM-Voting/prizewheel.sk +++ b/OBAM-Voting/prizewheel.sk @@ -36,6 +36,142 @@ command /prize [] [] []: stop send "&aYour current balance is &e%{db_votetokens.%player%}%&a Prize Tokens!" to player stop + argument 1 is "list": + player does not have permission "obam.admin": + send "&cYou do not have permission to do that!" + stop + world is "skyworld": + argument 2 is not set: + loop {db_winnings.chest.%player%.skyblock::*}: + send "%loop-index%.....%loop-value%" + argument 2 is set: + loop {db_winnings.chest.%argument 2%.skyblock::*}: + send "%loop-index%....%loop-value%" + + world is "world": + argument 2 is not set: + loop {db_winnings.chest.%player%.fronts::*}: + send "%loop-index%.....%loop-value%" + argument 2 is set: + loop {db_winnings.chest.%argument 2%.fronts::*}: + send "%loop-index%....%loop-value%" + + argument 1 is "delete": + player does not have permission "obam.admin": + send "&cYou do not have permission to do that!" + stop + argument 2 is not set: + send "&cPlease specify a player name!" + stop + argument 3 is not set: + send "&cPlease specify an item name!" + stop + world is "skyworld": + delete {db_winnings.chest.%argument 2%.skyblock::%argument 3%} + + world is "world": + delete {db_winnings.chest.%argument 2%.fronts::%argument 3%} + + + send "&cDeleted..." + + argument 1 is "claim": + world is not "world" or "skyworld": + send "&cYou must be in Skyblock or Fronts to use this!" to player + stop + world is "skyworld": + size of {db_winnings.chest.%player%.skyblock::*} is 0: + send "&cYou do not have any prizes for Skyblock!" + stop + loop {db_winnings.chest.%player%.skyblock::*}: + set {_item} to loop-index + {_item} is "piston": + set {_item} to "piston base" + {_item} is "enderpearl": + set {_item} to "ender pearl" + replace "afinity" in {_item} with "affinity" + + + + set {_lore} to "&aAmount: %loop-value%|| ||&eClick to claim!;c;sudo %player% prizedrop skyblock %loop-index%" + {_loop.count} is not set: + set {_loop.count} to 0 + add 1 to {_loop.count} + {_chest.message} is not set: + set {_chest.message} to "s;%{_loop.count}%;i;%{_item}%;n;&eVote Reward;l;%{_lore}%" + {_chest.message} is set: + set {_chest.message} to "%{_chest.message}%;s;%{_loop.count}%;i;%{_item}%;n;&eVote Reward;l;%{_lore}%" + + {_loop.count} is less than or equal to 9: + set {_chest.size} to 1 + {_loop.count} is greater than 9: + {_loop.count} is less than 18: + set {_chest.size} to 2 + {_loop.count} is greater than 18: + {_loop.count} is less than 27: + set {_chest.size} to 3 + {_loop.count} is greater than 36: + {_loop.count} is less than 45: + set {_chest.size} to 4 + {_loop.count} is greater than 45: + {_loop.count} is less than 54: + set {_chest.size} to 5 + + {_loop.count} is greater than 54: + send "&cThere was an error, please contact staff!" + stop + + + send "&aBringing up menu..." + + show "%{_chest.message}%" with {_chest.size} rows named "&9Prize Wheel" to player + + + world is "world": + size of {db_winnings.chest.%player%.fronts::*} is 0: + send "&cYou do not have any prizes for Fronts!" + stop + loop {db_winnings.chest.%player%.fronts::*}: + set {_item} to loop-index + {_item} is "diamond chestplate of ubreaking 2 and protection 2": + set {_item} to "diamond chestplate of unbreaking 2 and protection 2" + set {_lore} to "&aAmount: %loop-value%|| ||&eClick to claim!;c;sudo %player% prizedrop fronts %loop-index%" + {_loop.count} is not set: + set {_loop.count} to 0 + add 1 to {_loop.count} + {_chest.message} is not set: + set {_chest.message} to "s;%{_loop.count}%;i;%{_item}%;n;&eVote Reward;l;%{_lore}%" + {_chest.message} is set: + set {_chest.message} to "%{_chest.message}%;s;%{_loop.count}%;i;%{_item}%;n;&eVote Reward;l;%{_lore}%" + + {_loop.count} is less than or equal to 9: + set {_chest.size} to 1 + {_loop.count} is greater than 9: + {_loop.count} is less than 18: + set {_chest.size} to 2 + {_loop.count} is greater than 18: + {_loop.count} is less than 27: + set {_chest.size} to 3 + {_loop.count} is greater than 36: + {_loop.count} is less than 45: + set {_chest.size} to 4 + {_loop.count} is greater than 45: + {_loop.count} is less than 54: + set {_chest.size} to 5 + + {_loop.count} is greater than 54: + send "&cThere was an error, please contact staff!" + stop + + + send "&aBringing up menu..." + + + show "%{_chest.message}%" with {_chest.size} rows named "&9Prize Wheel" to player + + + + argument 1 is "spin" or "s": {db_votetokens.%player%} is 0: send "&cYou do not have any Prize Tokens! Please use &e/vote&c to get more!" @@ -44,312 +180,494 @@ command /prize [] [] []: send "&cYou do not have any Prize Tokens! Please use &evote&c to get more!" stop set {_time} to difference between {db_wheel.time.%player%} and now - {db_wheel.time.%player%} is not set: - set {_time} to 12 hours - {_time} is less than 12 hours: - send "&cYou must wait &e%12 hours - {_time}% &cbefore you can spin again!" - stop + #player does not have permission "obam.admin": + #{db_wheel.time.%player%} is not set: + #set {_time} to 12 hours + #{_time} is less than 12 hours: + #send "&cYou must wait &e%12 hours - {_time}% &cbefore you can spin again!" + #stop + set {db_votetokens.%player%} to {db_votetokens.%player%} - 1 chance of 1%: - set {_ran} to a random integer between 1 and + set {_ran} to a random integer between 1 and 3 {_ran} is 1: set {_bal} to player's balance add 2500 to player's balance send "&aYou have won &e2500 Tickets!" send "&aYou now have &e%player's balance%" - log "%player%^ADD^2500^%{_bal}%^%player's balance%^ULTRARARE PRIZE WINNINGS" to "prizewheel/WINNINGS.log" + log "%player%^ADD^2500^%{_bal}%^%player's balance%^ULTRARARE PRIZE db_winnings" to "prizewheel/db_winnings.log" stop {_ran} is 2: - {winnings.chest.%player%.skyblock::"fullblock spruce wood block"} is not set: - set {winnings.chest.%player%.skyblock::"fullblock spruce wood block"} to 1 + {db_winnings.chest.%player%.skyblock::fullblock spruce wood block} is not set: + set {db_winnings.chest.%player%.skyblock::fullblock spruce wood block} to 1 send "&aYou have won &e1 xPlosion Dampener&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^1 xPlosion Dampener^ULTRARARE PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^1 xPlosion Dampener^ULTRARARE PRIZE db_winnings" to "prizewheel/db_winnings.log" stop - add 1 to {winnings.chest.%player%.skyblock::"fullblock spruce wood block"} + add 1 to {db_winnings.chest.%player%.skyblock::fullblock spruce wood block} send "&aYou have won &e1 xPlosion Dampener&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^1 xPlosion Dampener^ULTRARARE PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^1 xPlosion Dampener^ULTRARARE PRIZE db_winnings" to "prizewheel/db_winnings.log" + stop + + {_ran} is 3: + {db_prizecheck.%player%} is not set: + set {db_prizecheck.%player%} to 3 + send "&aYou have won &e3 Fronts slots&a." + send "&aRelog on Fronts to receive!" + log "%player%^ADD^3 Fronts Slots^ULTRARARE PRIZE db_winnings" to "prizewheel/db_winnings.log" + stop + add 3 to {db_prizecheck.%player%} + send "&aYou have won &e8 Skeleton Projeggtiles&a on &eFronts&a." + send "&aRelog on Fronts to receive!" + log "%player%^ADD^3 Fronts Slots^ULTRARARE PRIZE db_winnings" to "prizewheel/db_winnings.log" stop chance of 5%: - set {_ran} to a random integer between 1 and + set {_ran} to a random integer between 1 and 9 {_ran} is 1: set {_bal} to player's balance add 1000 to player's balance send "&aYou have won &e1000 Tickets&a!" send "&aYou now have &e%player's balance%" - log "%player%^ADD^1000^%{_bal}%^%player's balance%^RARE PRIZE WINNINGS" to "prizewheel/WINNINGS.log" + log "%player%^ADD^1000^%{_bal}%^%player's balance%^RARE PRIZE db_winnings" to "prizewheel/db_winnings.log" stop {_ran} is 2: - {winnings.chest.%player%.skyblock::"diamond pickaxe"} is not set: - set {winnings.chest.%player%.skyblock::"diamond pickaxe"} to 1 + {db_winnings.chest.%player%.skyblock::diamond pickaxe} is not set: + set {db_winnings.chest.%player%.skyblock::diamond pickaxe} to 1 send "&aYou have won &e1 diamond pickaxe&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^1 diamond pickaxe^RARE PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^1 diamond pickaxe^RARE PRIZE db_winnings" to "prizewheel/db_winnings.log" stop - add 1 to {winnings.chest.%player%.skyblock::"diamond pickaxe"} + add 1 to {db_winnings.chest.%player%.skyblock::diamond pickaxe} send "&aYou have won &e1 diamond pickaxe&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^1 diamond pickaxe^RARE PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^1 diamond pickaxe^RARE PRIZE db_winnings" to "prizewheel/db_winnings.log" stop {_ran} is 3: - {winnings.chest.%player%.skyblock::"diamond axe"} is not set: - set {winnings.chest.%player%.skyblock::"diamond axe"} to 1 - send "&aYou have won &e1 diamond axe&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^1 diamond axe^RARE PRIZE WINNINGS" to "prizewheel/winnings.log" + {db_prizecheck.%player%} is not set: + set {db_prizecheck.%player%} to 3 + send "&aYou have been given &e3 Front Slot&a!" + send "&aRelog on Fronts to receive!" + log "%player%^ADD^3 FRONTS SLOT^ULTRARARE PRIZE db_winnings" to "prizewheel/db_winnings.log" stop - add 1 to {winnings.chest.%player%.skyblock::"diamond axe"} - send "&aYou have won &e1 diamond axe&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^1 diamond axe^RARE PRIZE WINNINGS" to "prizewheel/winnings.log" + add 3 to {db_prizecheck.%player%} + send "&aYou have been given &e3 Front Slot&a!" + send "&aRelog on Fronts to receive!" + log "%player%^ADD^1 FRONTS SLOT^ULTRARARE PRIZE db_winnings" to "prizewheel/db_winnings.log" stop {_ran} is 4: - {winnings.chest.%player%.skyblock::"beacon"} is not set: - set {winnings.chest.%player%.skyblock::"beacon"} to 1 + {db_winnings.chest.%player%.skyblock::beacon} is not set: + set {db_winnings.chest.%player%.skyblock::beacon} to 1 send "&aYou have won &e1 beacon&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^1 beacon^RARE PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^1 beacon^RARE PRIZE db_winnings" to "prizewheel/db_winnings.log" stop - add 1 to {winnings.chest.%player%.skyblock::"beacon"} + add 1 to {db_winnings.chest.%player%.skyblock::beacon} send "&aYou have won &e1 beacon&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skbylock to claim!" - log "%player%^ADD^1 beacon^RARE PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skbylock to claim!" + log "%player%^ADD^1 beacon^RARE PRIZE db_winnings" to "prizewheel/db_winnings.log" stop + + {_ran} is 5: + {db_prizecheck.%player%} is not set: + set {db_prizecheck.%player%} to 1 + send "&aYou have been given &e1 Front Slot&a!" + send "&aRelog on Fronts to receive!" + log "%player%^ADD^1 FRONTS SLOT^RARE PRIZE db_winnings" to "prizewheel/db_winnings.log" + stop + add 1 to {db_prizecheck.%player%} + send "&aYou have been given &e1 Front Slot&a!" + send "&aRelog on Fronts to receive!" + log "%player%^ADD^1 FRONTS SLOT^RARE PRIZE db_winnings" to "prizewheel/db_winnings.log" + stop + chance of 15%: - set {_ran} to a random integer between 1 and + set {_ran} to a random integer between 1 and 4 {_ran} is 1: set {_bal} to player's balance add 500 to player's balance send "&aYou have won &e500 Tickets&a!" send "&aYou now have &e%player's balance%" - log "%player%^ADD^500^%{_bal}%^%player's balance%^SEMIRARE PRIZE WINNINGS" to "prizewheel/WINNINGS.log" + log "%player%^ADD^500^%{_bal}%^%player's balance%^SEMIRARE PRIZE db_winnings" to "prizewheel/db_winnings.log" stop {_ran} is 2: - {winnings.chest.%player%.skyblock::"poisonous potato"} is not set: - set {winnings.chest.%player%.skyblock::"poisonous potato"} to 10 + {db_winnings.chest.%player%.skyblock::poisonous potato} is not set: + set {db_winnings.chest.%player%.skyblock::poisonous potato} to 10 send "&aYou have won &e10 poisonous potato&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^10 poisonous potato^SEMIRARE PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^10 poisonous potato^SEMIRARE PRIZE db_winnings" to "prizewheel/db_winnings.log" stop - add 10 to {winnings.chest.%player%.skyblock::"poisonous potato"} + add 10 to {db_winnings.chest.%player%.skyblock::poisonous potato} send "&aYou have won &e10 poisonous potato&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^10 poisonous potato^SEMIRARE PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^10 poisonous potato^SEMIRARE PRIZE db_winnings" to "prizewheel/db_winnings.log" stop {_ran} is 3: - {winnings.chest.%player%.skyblock::"piston"} is not set: - set {winnings.chest.%player%.skyblock::"piston"} to 3 + {db_winnings.chest.%player%.skyblock::piston} is not set: + set {db_winnings.chest.%player%.skyblock::piston} to 3 send "&aYou have won &e3 piston&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^3 piston^SEMIRARE PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^3 piston^SEMIRARE PRIZE db_winnings" to "prizewheel/db_winnings.log" stop - add 3 to {winnings.chest.%player%.skyblock::"piston"} + add 3 to {db_winnings.chest.%player%.skyblock::piston} send "&aYou have won &e3 piston&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^3 piston^SEMIRARE PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^3 piston^SEMIRARE PRIZE db_winnings" to "prizewheel/db_winnings.log" + 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!" + 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" + stop + add 3 to {db_winnings.chest.%player%.fronts::enchanted book of unbreaking 4} + send "&aYou have won &e1 enchanted book 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" stop chance of 25%: - set {_ran} to a random integer between 1 and + set {_ran} to a random integer between 1 and 24 {_ran} is 1: - {winnings.chest.%player%.skyblock::"redstone dust"} is not set: - set {winnings.chest.%player%.skyblock::"redstone dust"} to 10 + {db_winnings.chest.%player%.skyblock::redstone dust} is not set: + set {db_winnings.chest.%player%.skyblock::redstone dust} to 10 send "&aYou have won &e10 redstone dust&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^10 redstone dust^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^10 redstone dust^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop - add 10 to {winnings.chest.%player%.skyblock::"redstone dust"} + add 10 to {db_winnings.chest.%player%.skyblock::redstone dust} send "&aYou have won &e10 redstone dust&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^10 redstone dust^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^10 redstone dust^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop {_ran} is 2: - {winnings.chest.%player%.skyblock::"dirt"} is not set: - set {winnings.chest.%player%.skyblock::"dirt"} to 10 + {db_winnings.chest.%player%.skyblock::dirt} is not set: + set {db_winnings.chest.%player%.skyblock::dirt} to 10 send "&aYou have won &e10 dirt&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^10 dirt^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^10 dirt^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop - add 10 to {winnings.chest.%player%.skyblock::"dirt"} + add 10 to {db_winnings.chest.%player%.skyblock::dirt} send "&aYou have won &e10 dirt&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^10 dirt^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^10 dirt^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop {_ran} is 3: - {winnings.chest.%player%.skyblock::"grass"} is not set: - set {winnings.chest.%player%.skyblock::"grass"} to 10 + {db_winnings.chest.%player%.skyblock::grass} is not set: + set {db_winnings.chest.%player%.skyblock::grass} to 10 send "&aYou have won &e10 grass&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^10 grass^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^10 grass^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop - add 10 to {winnings.chest.%player%.skyblock::"grass"} + add 10 to {db_winnings.chest.%player%.skyblock::grass} send "&aYou have won &e10 grass&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^10 grass^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^10 grass^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop {_ran} is 4: - {winnings.chest.%player%.skyblock::"lava bucket"} is not set: - set {winnings.chest.%player%.skyblock::"lava bucket"} to 1 + {db_winnings.chest.%player%.skyblock::lava bucket} is not set: + set {db_winnings.chest.%player%.skyblock::lava bucket} to 1 send "&aYou have won &e1 lava bucket&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^1 lava bucket^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^1 lava bucket^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop - add 1 to {winnings.chest.%player%.skyblock::"lava bucket"} + add 1 to {db_winnings.chest.%player%.skyblock::lava bucket} send "&aYou have won &e1 lava bucket&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^1 lava bucket^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^1 lava bucket^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop {_ran} is 5: - {winnings.chest.%player%.skyblock::"iron chestplate of unbreaking 2 and protection 2"} is not set: - set {winnings.chest.%player%.skyblock::"iron chestplate of unbreaking 2 and protection 2"} to 1 + {db_winnings.chest.%player%.skyblock::iron chestplate of unbreaking 2 and protection 2} is not set: + set {db_winnings.chest.%player%.skyblock::iron chestplate of unbreaking 2 and protection 2} to 1 send "&aYou have won &e1 iron chestplate of unbreaking 2 and protection 2&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^1 iron chestplate of unbreaking 2 and protection 2^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^1 iron chestplate of unbreaking 2 and protection 2^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop - add 1 to {winnings.chest.%player%.skyblock::"iron chestplate of unbreaking 2 and protection 2"} + add 1 to {db_winnings.chest.%player%.skyblock::iron chestplate of unbreaking 2 and protection 2} send "&aYou have won &e1 iron chestplate of unbreaking 2 and protection 2&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^1 iron chestplate of unbreaking 2 and protection 2^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^1 iron chestplate of unbreaking 2 and protection 2^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop {_ran} is 6: - {winnings.chest.%player%.skyblock::"iron helmet of unbreaking 2 and projectile protection 2 and aqua afinity"} is not set: - set {winnings.chest.%player%.skyblock::"iron helmet of unbreaking 2 and projectile protection 2 and aqua afinity"} to 1 - send "&aYou have won &e1 iron helmet of unbreaking 2 and projectile protection 2 and aqua afinity&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^1 iron helmet of unbreaking 2 and projectile protection 2 and aqua afinity^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + {db_winnings.chest.%player%.skyblock::iron helmet of unbreaking 2 and projectile protection 2 and aqua affinity} is not set: + set {db_winnings.chest.%player%.skyblock::iron helmet of unbreaking 2 and projectile protection 2 and aqua affinity} to 1 + send "&aYou have won &e1 iron helmet of unbreaking 2 and projectile protection 2 and aqua affinity&a for &eSkyblock!" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^1 iron helmet of unbreaking 2 and projectile protection 2 and aqua affinity^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop - add 1 to {winnings.chest.%player%.skyblock::"iron helmet of unbreaking 2 and projectile protection 2 and aqua afinity"} - send "&aYou have won &e1 iron helmet of unbreaking 2 and projectile protection 2 and aqua afinity&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^1 iron helmet of unbreaking 2 and projectile protection 2 and aqua afinity^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + add 1 to {db_winnings.chest.%player%.skyblock::iron helmet of unbreaking 2 and projectile protection 2 and aqua affinity} + send "&aYou have won &e1 iron helmet of unbreaking 2 and projectile protection 2 and aqua affinity&a for &eSkyblock!" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^1 iron helmet of unbreaking 2 and projectile protection 2 and aqua affinity^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop {_ran} is 7: - {winnings.chest.%player%.skyblock::"iron boots of unbreaking 2 and blast protection 2 and feather falling 3"} is not set: - set {winnings.chest.%player%.skyblock::"iron boots of unbreaking 2 and blast protection 2 and feather falling 3"} to 1 + {db_winnings.chest.%player%.skyblock::iron boots of unbreaking 2 and blast protection 2 and feather falling 3} is not set: + set {db_winnings.chest.%player%.skyblock::iron boots of unbreaking 2 and blast protection 2 and feather falling 3} to 1 send "&aYou have won &e1 iron boots of unbreaking 2 and blast protection 2 and feather falling 3&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^1 iron boots of unbreaking 2 and blast protection 2 and feather falling 3^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^1 iron boots of unbreaking 2 and blast protection 2 and feather falling 3^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop - add 1 to {winnings.chest.%player%.skyblock::"iron boots of unbreaking 2 and blast protection 2 and feather falling 3"} + add 1 to {db_winnings.chest.%player%.skyblock::iron boots of unbreaking 2 and blast protection 2 and feather falling 3} send "&aYou have won &e1 iron boots of unbreaking 2 and blast protection 2 and feather falling 3&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^1 iron boots of unbreaking 2 and blast protection 2 and feather falling 3^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^1 iron boots of unbreaking 2 and blast protection 2 and feather falling 3^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop {_ran} is 8: - {winnings.chest.%player%.skyblock::"iron boots of unbreaking 2 and protection 2"} is not set: - set {winnings.chest.%player%.skyblock::"iron boots of unbreaking 2 and protection 2"} to 1 + {db_winnings.chest.%player%.skyblock::iron boots of unbreaking 2 and protection 2} is not set: + set {db_winnings.chest.%player%.skyblock::iron boots of unbreaking 2 and protection 2} to 1 send "&aYou have won &e1 iron boots of unbreaking 2 and protection 2&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^1 iron boots of unbreaking 2 and protection 2^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^1 iron boots of unbreaking 2 and protection 2^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop - add 1 to {winnings.chest.%player%.skyblock::"iron boots of unbreaking 2 and protection 2"} + add 1 to {db_winnings.chest.%player%.skyblock::iron boots of unbreaking 2 and protection 2} send "&aYou have won &e1 iron boots of unbreaking 2 and protection 2&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^1 iron boots of unbreaking 2 and protection 2^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^1 iron boots of unbreaking 2 and protection 2^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop {_ran} is 9: - {winnings.chest.%player%.skyblock::"iron pickaxe of unbreaking 2 and efficiency 3 and fortune 2"} is not set: - set {winnings.chest.%player%.skyblock::"iron pickaxe of unbreaking 2 and efficiency 3 and fortune 2"} to 1 + {db_winnings.chest.%player%.skyblock::iron pickaxe of unbreaking 2 and efficiency 3 and fortune 2} is not set: + set {db_winnings.chest.%player%.skyblock::iron pickaxe of unbreaking 2 and efficiency 3 and fortune 2} to 1 send "&aYou have won &e1 iron pickaxe of unbreaking 2 and efficiency 3 and fortune 2&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^1 iron pickaxe of unbreaking 2 and efficiency 3 and fortune 2^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^1 iron pickaxe of unbreaking 2 and efficiency 3 and fortune 2^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop - add 1 to {winnings.chest.%player%.skyblock::"iron pickaxe of unbreaking 2 and efficiency 3 and fortune 2"} + add 1 to {db_winnings.chest.%player%.skyblock::iron pickaxe of unbreaking 2 and efficiency 3 and fortune 2} send "&aYou have won &e1 iron pickaxe of unbreaking 2 and efficiency 3 and fortune 2&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^1 iron pickaxe of unbreaking 2 and efficiency 3 and fortune 2^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^1 iron pickaxe of unbreaking 2 and efficiency 3 and fortune 2^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop {_ran} is 10: - {winnings.chest.%player%.skyblock::"iron axe of unbreaking 2 and efficency 3"} is not set: - set {winnings.chest.%player%.skyblock::"iron axe of unbreaking 2 and efficency 3"} to 1 - send "&aYou have won &e1 iron axe of unbreaking 2 and efficency 3&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^1 iron axe of unbreaking 2 and efficency 3^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + {db_winnings.chest.%player%.skyblock::iron axe of unbreaking 2 and efficiency 3} is not set: + set {db_winnings.chest.%player%.skyblock::iron axe of unbreaking 2 and efficiency 3} to 1 + send "&aYou have won &e1 iron axe of unbreaking 2 and efficiency 3&a for &eSkyblock!" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^1 iron axe of unbreaking 2 and efficiency 3^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop - add 1 to {winnings.chest.%player%.skyblock::"iron axe of unbreaking 2 and efficency 3"} - send "&aYou have won &e1 iron axe of unbreaking 2 and efficency 3&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^1 iron axe of unbreaking 2 and efficency 3^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + add 1 to {db_winnings.chest.%player%.skyblock::iron axe of unbreaking 2 and efficiency 3} + send "&aYou have won &e1 iron axe of unbreaking 2 and efficiency 3&a for &eSkyblock!" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^1 iron axe of unbreaking 2 and efficiency 3^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop {_ran} is 11: - {winnings.chest.%player%.skyblock::"iron shovel of unbreaking 3 and efficency 3"} is not set: - set {winnings.chest.%player%.skyblock::"iron shovel of unbreaking 3 and efficency 3"} to 1 - send "&aYou have won &e1 iron shovel of unbreaking 3 and efficency 3&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^1 iron shovel of unbreaking 3 and efficency 3^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + {db_winnings.chest.%player%.skyblock::iron shovel of unbreaking 3 and efficiency 3} is not set: + set {db_winnings.chest.%player%.skyblock::iron shovel of unbreaking 3 and efficiency 3} to 1 + send "&aYou have won &e1 iron shovel of unbreaking 3 and efficiency 3&a for &eSkyblock!" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^1 iron shovel of unbreaking 3 and efficiency 3^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop - add 1 to {winnings.chest.%player%.skyblock::"iron shovel of unbreaking 3 and efficency 3"} - send "&aYou have won &e1 iron shovel of unbreaking 3 and efficency 3&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^1 iron shovel of unbreaking 3 and efficency 3^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + add 1 to {db_winnings.chest.%player%.skyblock::iron shovel of unbreaking 3 and efficiency 3} + send "&aYou have won &e1 iron shovel of unbreaking 3 and efficiency 3&a for &eSkyblock!" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^1 iron shovel of unbreaking 3 and efficiency 3^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop {_ran} is 12: - {winnings.chest.%player%.skyblock::"iron hoe unbreaking 3 and fortune 2"} is not set: - set {winnings.chest.%player%.skyblock::"iron hoe unbreaking 3 and fortune 2"} to 1 - send "&aYou have won &e1 iron hoe unbreaking 3 and fortune 2&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^1 iron hoe unbreaking 3 and fortune 2^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + {db_winnings.chest.%player%.skyblock::iron hoe of unbreaking 3 and fortune 2} is not set: + set {db_winnings.chest.%player%.skyblock::iron hoe of unbreaking 3 and fortune 2} to 1 + send "&aYou have won &e1 iron hoe of unbreaking 3 and fortune 2&a for &eSkyblock!" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^1 iron hoe of unbreaking 3 and fortune 2^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop - add 1 to {winnings.chest.%player%.skyblock::"iron hoe unbreaking 3 and fortune 2"} - send "&aYou have won &e1 iron hoe unbreaking 3 and fortune 2&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^1 iron hoe unbreaking 3 and fortune 2^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + add 1 to {db_winnings.chest.%player%.skyblock::iron hoe of unbreaking 3 and fortune 2} + send "&aYou have won &e1 iron hoe of unbreaking 3 and fortune 2&a for &eSkyblock!" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^1 iron hoe of unbreaking 3 and fortune 2^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop {_ran} is 13: - {winnings.chest.%player%.skyblock::"iron shovel of unbreaking 2 and looting 2"} is not set: - set {winnings.chest.%player%.skyblock::"iron shovel of unbreaking 2 and looting 2"} to 1 + {db_winnings.chest.%player%.skyblock::iron shovel of unbreaking 2 and looting 2} is not set: + set {db_winnings.chest.%player%.skyblock::iron shovel of unbreaking 2 and looting 2} to 1 send "&aYou have won &e1 iron shovel of unbreaking 2 and looting 2&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^1 iron shovel of unbreaking 2 and looting 2^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^1 iron shovel of unbreaking 2 and looting 2^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop - add 1 to {winnings.chest.%player%.skyblock::"iron shovel of unbreaking 2 and looting 2"} + add 1 to {db_winnings.chest.%player%.skyblock::iron shovel of unbreaking 2 and looting 2} send "&aYou have won &e1 iron shovel of unbreaking 2 and looting 2&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^1 iron shovel of unbreaking 2 and looting 2^UNCOMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^1 iron shovel of unbreaking 2 and looting 2^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" 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!" + 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" + stop + add 3 to {db_winnings.chest.%player%.fronts::enchanted book of fortune 3} + send "&aYou have won &e1 enchanted book 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" + stop + {_ran} is 15: + {db_winnings.chest.%player%.fronts::mooshroom spawn egg} is not set: + set {db_winnings.chest.%player%.fronts::mooshroom spawn egg} to 1 + send "&aYou have won &e1 mooshroom spawn egg&a for &eFronts!" + send "&aUse &e/prize claim&a in Fronts to claim!" + log "%player%^ADD^1^mooshroom spawn egg^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + stop + add 3 to {db_winnings.chest.%player%.fronts::mooshroom spawn egg} + send "&aYou have won &e1 mooshroom spawn egg&a for &eFronts!" + send "&aUse &e/prize claim&a in Fronts to claim!" + log "%player%^ADD^1^mooshroom spawn egg^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + stop + + {_ran} is 16: + {db_winnings.chest.%player%.fronts::wolf spawn egg} is not set: + set {db_winnings.chest.%player%.fronts::wolf spawn egg} to 1 + send "&aYou have won &e1 wolf spawn egg&a for &eFronts!" + send "&aUse &e/prize claim&a in Fronts to claim!" + log "%player%^ADD^1^wolf spawn egg^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + stop + add 3 to {db_winnings.chest.%player%.fronts::wolf spawn egg} + send "&aYou have won &e1 wolf spawn egg&a for &eFronts!" + send "&aUse &e/prize claim&a in Fronts to claim!" + log "%player%^ADD^1^wolf spawn egg^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + stop + + {_ran} is 17: + {db_winnings.chest.%player%.fronts::ocelot spawn egg} is not set: + set {db_winnings.chest.%player%.fronts::ocelot spawn egg} to 1 + send "&aYou have won &e1 ocelot spawn egg&a for &eFronts!" + send "&aUse &e/prize claim&a in Fronts to claim!" + log "%player%^ADD^1^ocelot spawn egg^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + stop + add 3 to {db_winnings.chest.%player%.fronts::ocelot spawn egg} + send "&aYou have won &e1 ocelot spawn egg&a for &eFronts!" + send "&aUse &e/prize claim&a in Fronts to claim!" + log "%player%^ADD^1^ocelot spawn egg^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + stop + + {_ran} is 18: + {db_winnings.chest.%player%.fronts::diamond chestplate of unbreaking 2 and protection 2} is not set: + set {db_winnings.chest.%player%.fronts::diamond chestplate of unbreaking 2 and protection 2} to 1 + send "&aYou have won &e1 diamond chestplate of ubreaking 2 and protection 2&a for &eFronts!" + send "&aUse &e/prize claim&a in Fronts to claim!" + log "%player%^ADD^1^diamond chestplate of ubreaking 2 and protection 2^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + stop + add 3 to {db_winnings.chest.%player%.fronts::diamond chestplate of unbreaking 2 and protection 2} + send "&aYou have won &e1 diamond chestplate of ubreaking 2 and protection 2&a for &eFronts!" + send "&aUse &e/prize claim&a in Fronts to claim!" + log "%player%^ADD^1^diamond chestplate of ubreaking 2 and protection 2^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + stop + + {_ran} is 19: + {db_winnings.chest.%player%.fronts::diamond helmet of unbreaking 2 and projectile protection 2 and aqua affinity 2} is not set: + set {db_winnings.chest.%player%.fronts::diamond helmet of unbreaking 2 and projectile protection 2 and aqua affinity 2} to 1 + send "&aYou have won &e1 diamond helmet of unbreaking 2 and projectile protection 2 and aqua affinity 2&a for &eFronts!" + send "&aUse &e/prize claim&a in Fronts to claim!" + log "%player%^ADD^1^diamond helmet of unbreaking 2 and projectile protection 2 and aqua affinity 2^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + stop + add 3 to {db_winnings.chest.%player%.fronts::diamond helmet of unbreaking 2 and projectile protection 2 and aqua affinity 2} + send "&aYou have won &e1 diamond helmet of unbreaking 2 and projectile protection 2 and aqua affinity 2&a for &eFronts!" + send "&aUse &e/prize claim&a in Fronts to claim!" + log "%player%^ADD^1^diamond helmet of unbreaking 2 and projectile protection 2 and aqua affinity 2^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + stop + + {_ran} is 20: + {db_winnings.chest.%player%.fronts::diamond leggings of unbreaking 2 and protection 2} is not set: + set {db_winnings.chest.%player%.fronts::diamond leggings of unbreaking 2 and protection 2} to 1 + send "&aYou have won &e1 diamond leggings of unbreaking 2 and protection 2&a for &eFronts!" + send "&aUse &e/prize claim&a in Fronts to claim!" + log "%player%^ADD^1^diamond leggings of unbreaking 2 and protection 2^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + stop + add 3 to {db_winnings.chest.%player%.fronts::diamond leggings of unbreaking 2 and protection 2} + send "&aYou have won &e1 diamond leggings of unbreaking 2 and protection 2&a for &eFronts!" + send "&aUse &e/prize claim&a in Fronts to claim!" + log "%player%^ADD^1^diamond leggings of unbreaking 2 and protection 2^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + stop + + {_ran} is 21: + {db_winnings.chest.%player%.fronts::diamond pickaxe of unbreaking 2 and effiiciency 3 and fortune 2} is not set: + set {db_winnings.chest.%player%.fronts::diamond pickaxe of unbreaking 2 and effiiciency 3 and fortune 2} to 1 + send "&aYou have won &e1 diamond pickaxe of unbreaking 2 and effiiciency 3 and fortune 2&a for &eFronts!" + send "&aUse &e/prize claim&a in Fronts to claim!" + log "%player%^ADD^1^diamond pickaxe of unbreaking 2 and effiiciency 3 and fortune 2^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + stop + add 3 to {db_winnings.chest.%player%.fronts::diamond pickaxe of unbreaking 2 and effiiciency 3 and fortune 2} + send "&aYou have won &e1 diamond pickaxe of unbreaking 2 and effiiciency 3 and fortune 2&a for &eFronts!" + send "&aUse &e/prize claim&a in Fronts to claim!" + log "%player%^ADD^1^diamond pickaxe of unbreaking 2 and effiiciency 3 and fortune 2^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + stop + + {_ran} is 22: + {db_winnings.chest.%player%.fronts::diamond shovel of unbreaking 3 and efficiency 3} is not set: + set {db_winnings.chest.%player%.fronts::diamond shovel of unbreaking 3 and efficiency 3} to 1 + send "&aYou have won &e1 diamond shovel of unbreaking 3 and efficiency 3&a for &eFronts!" + send "&aUse &e/prize claim&a in Fronts to claim!" + log "%player%^ADD^1^diamond shovel of unbreaking 3 and efficiency 3^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + stop + add 3 to {db_winnings.chest.%player%.fronts::diamond shovel of unbreaking 3 and efficiency 3} + send "&aYou have won &e1 diamond shovel of unbreaking 3 and efficiency 3&a for &eFronts!" + send "&aUse &e/prize claim&a in Fronts to claim!" + log "%player%^ADD^1^diamond shovel of unbreaking 3 and efficiency 3^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + stop + + {_ran} is 23: + {db_winnings.chest.%player%.fronts::diamond hoe of unbreaking 3 and fortune 2} is not set: + set {db_winnings.chest.%player%.fronts::diamond hoe of unbreaking 3 and fortune 2} to 1 + send "&aYou have won &e1 diamond hoe of unbreaking 3 and fortune 2&a for &eFronts!" + send "&aUse &e/prize claim&a in Fronts to claim!" + log "%player%^ADD^1^diamond hoe of unbreaking 3 and fortune 2^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + stop + add 3 to {db_winnings.chest.%player%.fronts::diamond hoe of unbreaking 3 and fortune 2} + send "&aYou have won &e1 diamond hoe of unbreaking 3 and fortune 2&a for &eFronts!" + send "&aUse &e/prize claim&a in Fronts to claim!" + log "%player%^ADD^1^diamond hoe of unbreaking 3 and fortune 2^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + stop + + {_ran} is 24: + {db_winnings.chest.%player%.fronts::diamond sword of unbreaking 2 and looting 3} is not set: + set {db_winnings.chest.%player%.fronts::diamond sword of unbreaking 2 and looting 3} to 1 + send "&aYou have won &e1 diamond sword of unbreaking 2 and looting 3&a for &eFronts!" + send "&aUse &e/prize claim&a in Fronts to claim!" + log "%player%^ADD^1^diamond sword of unbreaking 2 and looting 3^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + stop + add 3 to {db_winnings.chest.%player%.fronts::diamond sword of unbreaking 2 and looting 3} + send "&aYou have won &e1 diamond sword of unbreaking 2 and looting 3&a for &eFronts!" + send "&aUse &e/prize claim&a in Fronts to claim!" + log "%player%^ADD^1^diamond sword of unbreaking 2 and looting 3^UNCOMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + stop - set {_ran} to random integer between 1 and + set {_ran} to random integer between 1 and 12 {_ran} is 1: set {_bal} to player's balance add 100 to player's balance send "&aYou have won &e100 Tickets&a!" send "&aYou now have &e%player's balance%" - log "%player%^ADD^100%{_bal}%^%player's balance%^COMMON PRIZE WINNINGS" to "prizewheel/WINNINGS.log" + log "%player%^ADD^100%{_bal}%^%player's balance%^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop {_ran} is 2: @@ -357,7 +675,7 @@ command /prize [] [] []: add 200 to player's balance send "&aYou have won &e200 Tickets&a!" send "&aYou now have &e%player's balance%" - log "%player%^ADD^200%{_bal}%^%player's balance%^COMMON PRIZE WINNINGS" to "prizewheel/WINNINGS.log" + log "%player%^ADD^200%{_bal}%^%player's balance%^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop {_ran} is 3: @@ -365,62 +683,146 @@ command /prize [] [] []: add 400 to player's balance send "&aYou have won &e300 Tickets&a!" send "&aYou now have &e%player's balance%" - log "%player%^ADD^300%{_bal}%^%player's balance%^COMMON PRIZE WINNINGS" to "prizewheel/WINNINGS.log" + log "%player%^ADD^300%{_bal}%^%player's balance%^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop {_ran} is 4: - {winnings.chest.%player%.skyblock::"redstone dust"} is not set: - set {winnings.chest.%player%.skyblock::"redstone dust"} to 5 + {db_winnings.chest.%player%.skyblock::redstone dust} is not set: + set {db_winnings.chest.%player%.skyblock::redstone dust} to 5 send "&aYou have won &e5 Redstone Dust&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^5 Redstone Dust^COMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^5 Redstone Dust^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop - add 5 to {winnings.chest.%player%.skyblock::"redstone dust"} + add 5 to {db_winnings.chest.%player%.skyblock::redstone dust} send "&aYou have won &e5 Redstone Dust&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^5 Redstone Dust^COMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^5 Redstone Dust^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop {_ran} is 5: - {winnings.chest.%player%.skyblock::"dirt"} is not set: - set {winnings.chest.%player%.skyblock::"dirt"} to 5 + {db_winnings.chest.%player%.skyblock::dirt} is not set: + set {db_winnings.chest.%player%.skyblock::dirt} to 5 send "&aYou have won &e5 dirt&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^5 dirt^COMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^5 dirt^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop - add 5 to {winnings.chest.%player%.skyblock::"dirt"} + add 5 to {db_winnings.chest.%player%.skyblock::dirt} send "&aYou have won &e5 dirt&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^5 dirt^COMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^5 dirt^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop {_ran} is 6: - {winnings.chest.%player%.skyblock::"grass"} is not set: - set {winnings.chest.%player%.skyblock::"grass"} to 5 + {db_winnings.chest.%player%.skyblock::grass} is not set: + set {db_winnings.chest.%player%.skyblock::grass} to 5 send "&aYou have won &e5 grass&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^5 grass^COMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^5 grass^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop - add 5 to {winnings.chest.%player%.skyblock::"grass"} + add 5 to {db_winnings.chest.%player%.skyblock::grass} send "&aYou have won &e5 grass&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^5 grass^COMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^5 grass^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" stop {_ran} is 7: - {winnings.chest.%player%.skyblock::"enderpearl"} is not set: - set {winnings.chest.%player%.skyblock::"enderpearl"} to 16 - send "&aYou have won &e16 enderpearl&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^16 enderpearl^COMMON PRIZE WINNINGS" to "prizewheel/winnings.log" - stop - add 16 to {winnings.chest.%player%.skyblock::"enderpearl"} - send "&aYou have won &e16 enderpearl&a for &eSkyblock!" - send "&aUse &e/prizewheel claim&a in skyblock to claim!" - log "%player%^ADD^16 enderpearl^COMMON PRIZE WINNINGS" to "prizewheel/winnings.log" + {db_winnings.chest.%player%.skyblock::ender pearl} is not set: + set {db_winnings.chest.%player%.skyblock::ender pearl} to 16 + send "&aYou have won &e16 ender pearl&a for &eSkyblock!" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^16 ender pearl^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + stop + add 16 to {db_winnings.chest.%player%.skyblock::ender pearl} + send "&aYou have won &e16 ender pearl&a for &eSkyblock!" + send "&aUse &e/prize claim&a in skyblock to claim!" + log "%player%^ADD^16 ender pearl^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" 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!" + 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" + 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!" + 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" + + {_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!" + 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" + 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!" + 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" + + {_ran} is 10: + {db_winnings.chest.%player%.fronts::diamond} is not set: + set {db_winnings.chest.%player%.fronts::diamond} to 3 + send "&aYou have won &e3 diamond&a for &eFronts!" + send "&aUse &e/prize claim&a in Fronts to claim!" + log "%player%^ADD^3^diamond^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + stop + add 3 to {db_winnings.chest.%player%.fronts::diamond} + send "&aYou have won &e3 diamond&a for &eFronts!" + send "&aUse &e/prize claim&a in Fronts to claim!" + log "%player%^ADD^3^diamond^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + + {_ran} is 11: + {db_winnings.chest.%player%.fronts::emerald} is not set: + set {db_winnings.chest.%player%.fronts::emerald} to 6 + send "&aYou have won &e6 emerald&a for &eFronts!" + send "&aUse &e/prize claim&a in Fronts to claim!" + log "%player%^ADD^6^emerald^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + stop + add 6 to {db_winnings.chest.%player%.fronts::emerald} + send "&aYou have won &e6 emerald&a for &eFronts!" + send "&aUse &e/prize claim&a in Fronts to claim!" + log "%player%^ADD^6^emerald^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + + {_ran} is 12: + {db_winnings.chest.%player%.fronts::redstone dust} is not set: + set {db_winnings.chest.%player%.fronts::redstone dust} to 20 + send "&aYou have won &e20 redstone dust&a for &eFronts!" + send "&aUse &e/prize claim&a in Fronts to claim!" + log "%player%^ADD^20^redstone dust^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + stop + add 20 to {db_winnings.chest.%player%.fronts::redstone dust} + send "&aYou have won &e20 redstone dust&a for &eFronts!" + send "&aUse &e/prize claim&a in Fronts to claim!" + log "%player%^ADD^20^redstone dust^COMMON PRIZE db_winnings" to "prizewheel/db_winnings.log" + + + +command /prizedrop : + permission: obam.free + trigger: + argument 2 is "diamond chestplate of ubreaking 2 and protection 2": + set {_item.hold} to "diamond chestplate of unbreaking 2 and protection 2" + argument 2 is "enderpearl": + set {_item.hold} to "ender pearl" + + set {_item} to "%argument 2%" parsed as item + {_item.hold} is set: + set {_item} to "%{_item.hold}%" parsed as item + set {_loop} to {db_winnings.chest.%player%.%argument 1%::%argument 2%} + drop {_loop} of {_item} at location of player + + clear {db_winnings.chest.%player%.%argument 1%::%argument 2%} - \ No newline at end of file +command /prizefix : + permission: obam.admin + trigger: + argument 2 is "front": + {db_prizecheck.%argument 1%} is not set: + set {db_prizecheck.%argument 1%} to 0 + add 1 to {db_prizecheck.%argument 1%} \ No newline at end of file diff --git a/Obam-General/ihs.sk b/Obam-General/ihs.sk index 12e016a..7785981 100644 --- a/Obam-General/ihs.sk +++ b/Obam-General/ihs.sk @@ -103,6 +103,8 @@ command /sudo [] []: executable by: console and players permission: obam.admin trigger: + send "%argument 1%" + send "%argument 2%" has permission "obam.staff.admin" make player-argument execute command "%argument 2%" diff --git a/Obam-Survival/landclaim.sk b/Obam-Survival/landclaim.sk index 0e1e54d..b736d82 100644 --- a/Obam-Survival/landclaim.sk +++ b/Obam-Survival/landclaim.sk @@ -2,10 +2,14 @@ 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: @@ -41,8 +45,8 @@ every 1 tick: {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 false: - stop + {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 diff --git a/Obam-Testing/wtfronts.sk b/Obam-Testing/wtfronts.sk index e75214d..c7faf81 100644 --- a/Obam-Testing/wtfronts.sk +++ b/Obam-Testing/wtfronts.sk @@ -1,6 +1,6 @@ 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. + 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. @@ -10,9 +10,9 @@ options: 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 @@ -23,10 +23,9 @@ on script load: 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: @@ -132,7 +131,16 @@ on mine: 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: @@ -221,8 +229,12 @@ every 3 seconds: send "&cYou are dehydrated" to loop-player {thirst.%loop-player%} is greater than 0: chance of 30%: - set {_ran} to random number between 0 and 1 - set {thirst.%loop-player%} to {thirst.%loop-player%} - {_ran} + 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 @@ -262,7 +274,22 @@ every 3 seconds: 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: @@ -331,6 +358,8 @@ on death of a creeper or a skeleton or a zombie or a spider: 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 @@ -423,6 +452,9 @@ command /ci []: 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 @@ -456,6 +488,17 @@ command /ci []: 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" diff --git a/Obam-Tools/eggification.sk b/Obam-Tools/eggification.sk index de3634b..0bc9c3d 100644 --- a/Obam-Tools/eggification.sk +++ b/Obam-Tools/eggification.sk @@ -13,6 +13,33 @@ on script load: 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}" + +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}" + 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}" + 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}" + 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}" + clear {db_egg.%player%.zombie} + on shoot: projectile is snowball shooter's tool is named item stack from "{@egg}": From 5a2735f87da93eaa4a21e194241719747c597921 Mon Sep 17 00:00:00 2001 From: ismooch Date: Sun, 30 Mar 2014 06:31:09 -0500 Subject: [PATCH 5/5] added beta of tma.sk - a new mob arena based minigame that will have team elements added --- Obam-Testing/tma.sk | 355 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 355 insertions(+) create mode 100644 Obam-Testing/tma.sk diff --git a/Obam-Testing/tma.sk b/Obam-Testing/tma.sk new file mode 100644 index 0000000..e18bb82 --- /dev/null +++ b/Obam-Testing/tma.sk @@ -0,0 +1,355 @@ + + +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 + send "&cIn the while loop" + loop {active.tma.teams::*}: + {_loop.count} is not set: + set {_loop.count} to 0 + add 1 to {_loop.count} + {_loop.count} is {_count}: + set {_cur.team} to loop-index + send "&a%{_cur.team}%" + loop {_loop} times: + set {_ran} to random element of {tma.spawns::*} + set {_loc} to random element of {tma.%{_cur.team}%.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 + + + send "&aSpawning %{_ran}% at %{_loc}%" + send "&aTest message %{_count}%" + add 1 to {_count} + + + + + + + + + \ No newline at end of file