I wrote an equation for the amount of gold you lose, equation is based on level, for some reason it is always returning 0 and I don't know why this happens, any help please?
EDIT: The equation is supposed to multiply your gold by a decimal number/percentage, for instance: Level 80, 300,000 gold.
(300,000)*((80/2+12)/100)
(300,000)*((52)/100)
(300,000)*(.52)=156,000
Add (-1)(156,000) gold to dying player.