Hi dude
Sorry this is unrelated, but how can I get the server files?
Also I have some SQL experience, but not worked on Darkeden but here's how I would tackle this issue.
Can't you create an SQL query that runs when a mob dies?
Something like
UPDATE goldmedalcount SET medals = medals + 1 WHERE PlayerID = $playerid