Ok..Thanks...
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using ScriptDotNet;
namespace Event
{
class Event
{
static void OnBuff_Debuff(uint ID, ushort Attribute_ID, bool IsEnabled)
{
String buffStatus = (IsEnabled) ? "Turned On" : "Turned Off";
String outputString = String.Format("Buff ID:{0} has just {1}", Attribute_ID, buffStatus);
Console.WriteLine(outputString);
}
private static void TimerCallback(Object o)
{
Console.WriteLine("In TimerCallback: " + DateTime.Now);
GC.Collect();
}
static void Main(string[] args)
{
Console.WriteLine("Program Started");
Stealth.OnBuff_DebuffSystemEvent += OnBuff_Debuff;
Stealth.Script_EnableEvent(TPacketEvent.evBuff_DebuffSystem);
Timer t = new Timer(TimerCallback, null, 0, 1000);
Console.WriteLine("Waiting for event fire, Press any key to stop");
Console.ReadKey();
}
}
}