More spell and event stuff

Also, time to switch to some Windows coding :)