Code:
/* Cant determine GET_GOLD on corpse, so do now and store */
if (IS_NPC(victim)) {
local_gold = GET_GOLD(victim);
sprintf(local_buf,"%ld", (long)local_gold);
}
if (IS_NPC(victim) && HAPPY_GOLD) {
local_gold = ((GET_GOLD(victim)) + ((GET_GOLD(victim) * HAPPY_GOLD) / 100));
sprintf(local_buf,"%ld", (long)local_gold);
}