Add onGainSkillTries

Fix #1036 aswell.
Whoops

Wrong indexes used.
Merge pull request #1039 from dalkon/master

Add onGainSkillTries