In his data/events/scripts/monster.lua he has 2 onSpawn functions, line 7 and line 74
function Monster:onSpawn(position, startup, artificial)
if hasEventCallback(EVENT_CALLBACK_ONSPAWN) then
return EventCallback(EVENT_CALLBACK_ONSPAWN, self, position, startup, artificial)
else...