Attack mode is now "functional" also added corpse to the loot procedure.

* Reworked the way events will loop, instead of manual rescheduling you now just return the int value of ticks you wish to reschedule by (for nil to avoid reschedule in one time events).
* Added some protection zone checks for some of the bot events.
* Some other tidy up fixes.