execute unless score @s[tag=!ron] pay matches 5.. run return run function ws:store/ron/drink/fail
scoreboard players remove @s[tag=!ron] pay 5
give @s potion[custom_name='{"color":"dark_purple","italic":false,"text":"Purpur"}',custom_model_data=1001,potion_contents={custom_effects:[{id:"minecraft:regeneration",amplifier:2,duration:100,show_particles:1b,show_icon:1b}]}] 1
tellraw @s {"translate":"luxury.buysuccess"}
execute at @s run playsound minecraft:entity.arrow.hit_player player @s ~ ~ ~

execute unless entity @s[tag=!ron] run return 0
scoreboard players add @a[tag=ron] pay 4
tellraw @a[tag=ron] [{"translate":"business.bonus"},{"text":": "},{"text":"4$"},{"text":" ("},{"translate":"ron.name"},{"text":")"}]
execute as @a[tag=ron] at @s run playsound minecraft:entity.experience_orb.pickup player @s ~ ~ ~ 0.05 0