Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
140 changes: 140 additions & 0 deletions OBAM-Voting/prizewheel.sk
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,146 @@ command /prize [<text>] [<text>] [<text>]:
{_time} is less than 12 hours:
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

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

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"
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"
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"
stop





Expand Down
11 changes: 8 additions & 3 deletions Obam-Survival/fortune.sk
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,13 @@ command /aura [<text>] [<text>] [text]:
send "&7 This aura gives you an increasing chance to find more gems and ingots at the cost of alerting others to your position."
argument 1 is "debug":
send "spam count: %{fortune.spam.%player%}%"
send "Fortune on: %{fortune.aura.%player%}%"
send "Fortune on: %{current.aura.%player%}%"
send "Current chance: %{fortune.chance.%player%}%"
send "Alert Status: %{fortune.alert.%player%}%"
send "Alert Status: %{aura.alert.%player%}%"
{for.ran.%player%} is not set:
send "Random Number: &cNOT SET"
{for.ran.%player%} is set:
send "Random Number: %{for.ran.%player%}%"

every 15 minutes:
loop all players:
Expand Down Expand Up @@ -99,10 +103,11 @@ on break:
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:
{fortune.spam.%player%} is greater than {for.ran.%player%}:
loop all players:
{aura.alert.%player%} is true:
{aura.alert.%loop-player%} is true:
send "&3&lIt seems %player% hit the %block% jackpot at %location of player%!" to loop-player
set {fortune.spam.%player%} to 0
set {for.ran.%player%} to random integer between 5 and 15
{current.aura.%player%} is "fortune"
block is diamond ore:
add 1 to {fortune.spam.%player%}
chance of {fortune.chance.%player%}%:
Expand Down
5 changes: 5 additions & 0 deletions Obam-Survival/heads.sk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ on death of a player:
attacker is a player:
attacker is not victim:
add skull of victim to drops
set {_item} to "paper;&3Death Note - &eVICTIM;&7This note shows that &eATTACKER&7 took the||&7life of &eVICTIM&7 on &eDATE EST"
replace "VICTIM" in {_item} with "%victim%"
replace "ATTACKER" in {_item} with "%attacker%"
replace "DATE" in {_item} with "%now%"
add named item stack from {_item} to drops

on death of a creeper or skeleton or zombie:
attacker is a player:
Expand Down
13 changes: 13 additions & 0 deletions Obam-Testing/signshoptestthing.sk
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
on sign chage:
set {_lookup} to line 4 of block
{item.alias::%{_lookup}%} is set:
set line 4 of block to {item.alias::%{_lookup}%}
stop
loop {item.alias::*}:
{item.alias::%loop-index%::%{_lookup}%} is set:
set line 4 of block to {item.alias::%loop-index%}
stop

cancel event
send "&e%{_lookup}% &c is not a recognized item!" to player