Creature.onOutfit event...
fixed typo
renamed event to onChangeOutfit
fixed indentation
Fix #1033
Remove unused function
Merge pull request #966 from ReyAleman/Creature_onOutfit

Creature.onOutfit event.
Fix classic slots equipping bug

Related issue: #1033
Use integers instead of floating point numbers for weight and capacity
Fix item weight in shop protocol messages
Passing userdata instead of cid everywhere

This is a breaking change, and I think it's safe to assume that most NPC
scripts are broken and the NPC system needs a rewrite/some backwards
compatibility patch to pass id's instead of userdata to callbacks.
Fix bug in tiles.lua
Small fix

Make sure that this value becomes 0 when the userdata does not exist.
Remove onAttacking from Player

It was just calling the Creature function, which it will do either way
if it's not there.
Remove unnecessary Player constructions in Lua scripts
registerEvent optimizations

Use static_cast instead of dynamic_cast to omit run-time checks
Minor optimization in Dispatcher
Improve accuracy of scheduled events

Scheduled events are pushed to the front of the Dispatcher task queue
Scheduler optimizations
Fix npc handler

The npc system should be rewritten sometime.