Every time I try and do math with variables I get 0 as a result.
Any help would be appreciated thanks.
Code:
on right click:
if lore of held item contains "&7Caught":
set {Money1} to "10"
if lore of held item contains "48.8cm":
set {Money2} to "48.8"
set {Money3} to "%{Money2}+{Money1}%"
if player's held item is cod:
add 10 to balance of player
send "%{Money3}%" to player
delete {Money::*}
remove 1 of tool from tool