StartCombat(hero, "Kha-Beleth", , nil, "combatResult")
function combatResult(hero, isWinner)
if isWinner then
SetPlayerResource(PLAYER_1, GOLD, GetPlayerResource(PLAYER_1, GOLD) + 30000);
end;
end;
The StartCombat function needs to be placed within a function that triggers when the hero touches an object.