Code and concept (also known as EventAI) by ScriptDev2. Note: database table layout are compatible with original db-scripts.