Fix quest complete hook, implement it for gameobject and for smart AI

in your example, i think onquestcomplete hook should be changed to onquestreward