Hmm just discovered tonight that the onleavecombat event isn't actually done when you leave combat, it is done after you kill a mob.
So if you have multiple mobs attacking you the onleavecombat code is done after every single kill.
So it is more of an afterkillmob event rather then onleavecombat event.
onleavecombat event
onleavecombat event
Remember no matter you do in life to always have a little fun while you are at it 
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual