I've worked on this Skript long and hard when finally it worked and kept working until this afternoon where everything just broke. And now I have 32 errors, please help (sorry for the length)
Code:
on right click on entity:
if name of entity is "Ye Old Fisherman":
if player's held item is not a cod:
send "&c&lThat's not a fish!!!!!!" to player
else:
set {Name.%player%} to held item's name
if name of player's held item contains "Bluegill" or "Herring" or "Mackerel" or "Crab" or "Black Crappie" or "Yellow Perch" or "Croaker" or "Anchovy" or "Flounder" or "Dwarf Lanternshark" or "White Perch" or "Krill" or "Shrimp" or "Crate Fish":
set {Money.%player%} to 0
else if name of player's held item contains "Jellyfish" or "Squid" or "Red Snapper" or "Barracuda" or "Stonefish" or "Scorpionfish" or "Flatfish" or "Sea Bream" or "Sea Bass" or "Weakfish":
set {Money.%player%} to 10
else if name of player's held item contains "Clownfish" or "Pufferfish" or "Sea Turtle" or "Swordfish" or "Salmon" or "Black Drum" or "Red Drum" or "Tuna" or "Sailfish" or "Alligator Gar" or "Yellowfin Tuna" or "King Salmon" or "Ocean Sunfish" or "Antarctic Cod" or "Dumbo Octopus":
set {Money.%player%} to 50
else if name of player's held item contains "Blue Shark" or "Pygmy Whale" or "Blue Whale" or "Whale Shark" or "Great White Shark" or "Goliath Grouper" or "Giant Squid":
set {Money.%player%} to 100
if held item's lore contains "cm":
set {_Original.%player%} to held item's lore
set {_Number.%player%} to amount of player's held item in player's inventory
delete line 2 of held item's lore
set line 1 of held item's lore to regex replace all "cm" with "" in held item's lore
set {_lore1.%player%} to held item's lore
set {_lore2.%player%} to uncolored {_lore1.%player%}
set lore of held item to {_Original.%player%}
set {_lore3.%player%} to {_lore2.%player%} parsed as a number
set {_lore4.%player%} to round {_lore3.%player%}
remove {_Number.%player%} of held item from player
add {_Number.%player%}*{_lore4.%player%}*{Boost.%player%}*{RankBoost.%player%}+{Money.%player%} to balance of player
send "&6$%{_Number.%player%}*{_lore4.%player%}*{Boost.%player%}*{RankBoost.%player%}+{Money.%player%}% &fwas recieved!!!" to player
delete {Money.%player%}
on join:
if {Boost.%player%} is not set:
set {Boost.%player%} to 1
if {RankBoost.%player%} is not set:
set {RankBoost.%player%} to 1
if {UpgradeLevel.%player%} is not set:
set {UpgradeLevel.%player%} to 1
command /stats:
trigger:
send "&6&l----------&3&lFishinLife&6-----------" to player
send "&6&lName: &c%player%"
send "&6&lRank Multiplier: &c%{RankBoost.%player%}%&cx" to player
send "&6&lSell Multilpier Without Rank: &c%{Boost.%player%}%&cx" to player
send "&6&lSell Multiplier With Rank: &c%{RankBoost.%player%}*{Boost.%player%}%&cx" to player
send "&6&lMoney: &c%balance of player%" to player
send "&6&l----------------------------" to player
command /Fisher+ <player>:
executable by: console
trigger:
execute command "pex user %arg-1% group set Fisher2"
set {RankBoost.%arg-1%} to 1.5
broadcast "&7-------------------------------------------------"
broadcast "&c&lThanks to %arg-1% for donating on &a&l/buy!!!!"
broadcast "&7-------------------------------------------------"
command /FishingMaster <player>:
executable by: console
trigger:
execute command "pex user %arg-1% group set FishingMaster"
set {RankBoost.%arg-1%} to 2
broadcast "&7-------------------------------------------------"
broadcast "&c&lThanks to %arg-1% for donating on &a&l/buy!!!!"
broadcast "&7-------------------------------------------------"
command /NoLifeFisherman <player>:
executable by: console
trigger:
execute command "pex user %arg-1% group set NoLifeFisherman"
set {RankBoost.%arg-1%} to 3
broadcast "&7-------------------------------------------------"
broadcast "&c&lThanks to %arg-1% for donating on &a&l/buy!!!!"
broadcast "&7-------------------------------------------------"
command /FishermanLegend <player>:
executable by: console
trigger:
execute command "pex user %arg-1% group set FishermanLegend"
set {RankBoost.%arg-1%} to 4
broadcast "&7-------------------------------------------------"
broadcast "&c&lThanks to %arg-1% for donating on &a&l/buy!!!!"
broadcast "&7-------------------------------------------------"
command /OmnisantFisherman <player>:
executable by: console
trigger:
execute command "pex user %arg-1% group set OmnisantFisherman"
set {RankBoost.%arg-1%} to 5
broadcast "&7-------------------------------------------------"
broadcast "&c&lThanks to %arg-1% for donating on &a&l/buy!!!!"
broadcast "&7-------------------------------------------------"
command /menu <player>:
executable by: console
trigger:
open chest with 3 rows named "&e&lSell Booster Shop" to arg-1
format slot 13 of arg-1 with emerald named "&b&lUpgrade Sell Multiplier" with lore "&a&l$%{UpgradeLevel.%arg-1%}*500%" and "&c&l&n+.1x Sell Booster" to run [execute console command "/upgrade %arg-1%"]
command /upgrade <player>:
executable by: console
trigger:
if balance of arg-1 is greater than {UpgradeLevel.%arg-1%}*500:
remove {UpgradeLevel.%arg-1%}*500 from balance of arg-1
set {Boost.%arg-1%} to {Boost.%arg-1%}+.1
set {UpgradeLevel.%arg-1%} to {UpgradeLevel.%arg-1%} + 1
send "&5&lYou've upgraded, do &a/stats &5<o check your statistics!!!" to arg-1
format slot 13 of arg-1 with emerald named "&b&lUpgrade Sell Multiplier" with lore "&a&l$%{UpgradeLevel.%arg-1%}*500%" and "&c&l&n+.1x Sell Booster" to run [execute console command "/upgrade %arg-1%"]
else if balance of arg-1 is less than {UpgradeLevel.%arg-1%}*500:
send "&c&lYou're too poor!!!" to arg-1
command /Clearstats <player>:
permission: core.clearstats
trigger:
set {UpgradeLevel.%arg-1%} to 1
set {Boost.%arg-1%} to 1
send "&6&l%arg-1%&6&l's stats were cleared!!!"
command /Clear rank <player>:
permission: core.clearstats
trigger:
set {RankBoost.%arg-1%} to 1
send "&6&l%arg-1%&6&l's rank was cleared!!!"
command /shop <player>:
executable by: console
trigger:
open chest with 3 rows named "&c&lShop" to arg-1
format slot 14 of arg-1 with shiny fishing rod named "&b&lRod Shop" with lore "&7Get your rods here" to run [execute console command "/rod shop %arg-1%"]
format slot 13 of arg-1 with shiny tripwire hook named "&c&lKey Shop" with lore "&7/warp crates" to run [execute console command "/key shop %arg-1%"]
format slot 12 of arg-1 with shiny carrot named "&5&lFood Shop" with lore "&7Yum!" to run [execute console command "/food shop %arg-1%"]
command /rod shop <player>:
executable by: console
trigger:
format slot 10 of arg-1 with shiny emerald named "&c&lInfo" with lore "&dBuy your fishing rods here," and "&dif yours breaks, or you're looking for an upgrade." to run [execute command ""]
format slot 11 of arg-1 with fishing rod named "&6&lDefault Rod" with lore "&7-No enchantments" and "&a&n$300" to run [execute command "buyrod1 %arg-1%"]
format slot 12 of arg-1 with shiny fishing rod named "&b&lAngler Rod" with lore "&7-Lure 1" and "&7-Luck of the sea 2" and "&a&n$1000" to run [execute command "buyrod2 %arg-1%"]
format slot 13 of arg-1 with shiny fishing rod named "&2&lMaster Rod" with lore "&7-Lure 2" and "&7-Luck of the sea 4" and "&a&n$1500" to run [execute command "buyrod3 %arg-1%"]
format slot 14 of arg-1 with shiny fishing rod named "&3&lNo Life Rod" with lore "&7-Lure 3" and "&7-Luck of the sea 6" and "&a&n$3000" to run [execute command "buyrod4 %arg-1%"]
format slot 15 of arg-1 with shiny fishing rod named "&5&lLegend Rod" with lore "&7-Lure 4" and "&7-Luck of the sea 8" and "&a&n$10,000" to run [execute command "buyrod5 %arg-1%"]
format slot 16 of arg-1 with shiny fishing rod named "&9&lOmnisent Rod" with lore "&7-Lure 5" and "&7-Luck of the sea 10" and "&a&n$30,000" to run [execute command "buyrod6 %arg-1%"]
command /buyrod1 <player>:
executable by: console
trigger:
if balance of arg-1 is greater than 300:
remove 300 from balance of arg-1
give arg-1 a fishing rod named "&6&lDefault Rod"
send "&aPurchased!" to arg-1
else:
send "&cYou're too poor" to arg-1
command /buyrod2 <player>:
executable by: console
trigger:
if balance of arg-1 is greater than 1000:
remove 1000 from balance of arg-1
set {_rod} to a fishing rod named "&b&lAngler Rod"
enchant {_rod} with lure 1 and luck of the sea 2
give arg-1 {_rod}
send "&aPurchased!" to arg-1
else:
send "&cYou're too poor" to arg-1
command /buyrod3 <player>:
executable by: console
trigger:
if balance of arg-1 is greater than 1500:
remove 1500 from balance of arg-1
set {_rod} to a fishing rod named "&2&lMaster Rod"
enchant {_rod} with lure 2 and luck of the sea 4
give arg-1 {_rod}
send "&aPurchased!" to arg-1
else:
send "&cYou're too poor" to arg-1
command /buyrod4 <player>:
executable by: console
trigger:
if balance of arg-1 is greater than 3000:
remove 3000 from balance of arg-1
set {_rod} to a fishing rod named "&3&lNo Life Rod"
enchant {_rod} with lure 3 and luck of the sea 6
give arg-1 {_rod}
send "&aPurchased!" to arg-1
else:
send "&cYou're too poor" to arg-1
command /buyrod5 <player>:
executable by: console
trigger:
if balance of arg-1 is greater than 10000:
remove 10000 from balance of arg-1
set {_rod} to a fishing rod named "&5&lLegend Rod"
enchant {_rod} with lure 4 and luck of the sea 8
give arg-1 {_rod}
send "&aPurchased!" to arg-1
else:
send "&cYou're too poor" to arg-1
command /buyrod6 <player>:
executable by: console
trigger:
if balance of arg-1 is greater than 30000:
remove 30000 from balance of arg-1
set {_rod} to a fishing rod named "&9&lOmnisant Rod"
enchant {_rod} with lure 5 and luck of the sea 10
give arg-1 {_rod}
send "&aPurchased!" to arg-1
else:
send "&cYou're too poor" to arg-1
command /food shop <player>:
executable by: console
trigger:
format slot 10 of arg-1 with shiny emerald named "&c&lInfo" with lore "&dHungry?" to run [execute command ""]
format slot 11 of arg-1 with carrot named "&6&lCarrot" with lore "&a&n$30" to run [execute command "buyfood1 %arg-1%"]
format slot 12 of arg-1 with bread named "&6&lBread" with lore "&a&n$60" to run [execute command "buyfood2 %arg-1%"]
format slot 13 of arg-1 with cooked mutton named "&6&lCooked Mutton" with lore "&a&n$90" to run [execute command "buyfood3 %arg-1%"]
format slot 14 of arg-1 with cooked porkchop named "&6&lCooked Porkchop" with lore "&a&n$110" to run [execute command "buyfood4 %arg-1%"]
format slot 15 of arg-1 with steak named "&6&lSteak" with lore "&a&n$120" to run [execute command "buyfood5 %arg-1%"]
format slot 16 of arg-1 with golden carrot named "&6&lGolden Carrot" with lore "&a&n$150" to run [execute command "buyfood6 %arg-1%"]
command /buyfood1 <player>:
executable by: console
trigger:
if balance of arg-1 is greater than 30:
remove 30 from balance of arg-1
give arg-1 1 carrot
send "&aPurchased!" to arg-1
else:
send "&cYou're too poor" to arg-1
command /buyfood2 <player>:
executable by: console
trigger:
if balance of arg-1 is greater than 60:
remove 60 from balance of arg-1
give arg-1 1 bread
send "&aPurchased!" to arg-1
else:
send "&cYou're too poor" to arg-1
command /buyfood3 <player>:
executable by: console
trigger:
if balance of arg-1 is greater than 90:
remove 90 from balance of arg-1
give arg-1 1 cooked mutton
send "&aPurchased!" to arg-1
else:
send "&cYou're too poor" to arg-1
command /buyfood4 <player>:
executable by: console
trigger:
if balance of arg-1 is greater than 110:
remove 110 from balance of arg-1
give arg-1 1 cooked porkchop
send "&aPurchased!" to arg-1
else:
send "&cYou're too poor" to arg-1
command /buyfood5 <player>:
executable by: console
trigger:
if balance of arg-1 is greater than 120:
remove 120 from balance of arg-1
give arg-1 1 steak
send "&aPurchased!" to arg-1
else:
send "&cYou're too poor" to arg-1
command /buyfood6 <player>:
executable by: console
trigger:
if balance of arg-1 is greater than 150:
remove 150 from balance of arg-1
give arg-1 1 golden carrot
send "&aPurchased!" to arg-1
else:
send "&cYou're too poor" to arg-1
command /key shop <player>:
executable by: console
trigger:
format slot 12 of arg-1 with shiny emerald named "&c&lInfo" with lore "&dDo /warp crates to redeem!" to run [execute command ""]
format slot 13 of arg-1 with shiny tripwire hook named "&b&lAngler Key" with lore "&dUse me on an angler key!" and "&a&n$1,500" to run [execute command "buykey1 %arg-1%"]
format slot 14 of arg-1 with shiny tripwire hook named "&6&lLegend Key" with lore "&dUse me on a legend crate!" and "&a&n$15,000" to run [execute command "buykey2 %arg-1%"]
command /buykey1 <player>:
executable by: console
trigger:
if balance of arg-1 is greater than 1500:
remove 1500 from balance of arg-1
execute command "crate give %arg-1% angler 1"
send "&aPurchased!" to arg-1
else:
send "&cYou're too poor!" to arg-1
command /buykey2 <player>:
executable by: console
trigger:
if balance of arg-1 is greater than 15000:
remove 15000 from balance of arg-1
execute command "crate give %arg-1% legend 1"
send "&aPurchased!" to arg-1
else:
send "&cYou're too poor!" to arg-1