Added event scripts + sample

take a look if you like it o.o
Lol yeah i knew it could be easier but i was lazy at the moment of making the checks ^^

Sent from my iPhone

On 8 jul. 2014, at 09:10, "exec" <notifications@github.com> wrote:

> In src/ChannelServer/Scripting/Scripts/EventScript.cs:
> 
> > +		/// Sets name of the event.
> > +		/// This appears in the scrolling bar, and if specified, as a notice.
> > +		/// </summary>
> > +		/// <param name="name"></param>
> > +		protected void SetName(string name)
> > +		{
> > +			this.Name = name;
> > +		}
> > +
> > +		/// <summary>
> > +		/// Sets the active state of the event.
> > +		/// </summary>
> > +		/// <param name="active"></param>
> > +		public void SetActive(bool active)
> > +		{
> > +			if (this.Active && active)
> if(this.Active)
>     Deactivate();
> if(active)
>     Activate();
> Simplified :) If it's active it always has to be deactivated, either because it's supposed to or because it's being restarted. No matter whether it was active before or not, if it's activated (again) Activate is called.
> 
> —
> Reply to this email directly or view it on GitHub.