Add onGainSkillTries

Fix #1036 aswell.
Whoops

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

Add onGainSkillTries
Performance improvements & const-correctness
Fix bug with previous commit
Merge branch 'master' of https://github.com/otland/forgottenserver

Conflicts:
	data/events/events.xml
	data/events/scripts/player.lua
	src/events.cpp
	src/events.h
	src/player.cpp
	src/weapons.cpp