using System;
using InnerSpaceAPI;
using LavishScriptAPI;
using PRModuleInterface;
using LavishScriptAPI.Delegates;
namespace PRModuleLibrary
{
public partial class PRModule
{
// Add your events here. They will be Attached and Detached
// automatically when the plugin is loaded.
public void RegisterEvents()
{
Events.AddEvent("PLAYER_LEVEL_UP", new EventHandler<LSEventArgs>(PlayerLevelsUp));
}
public void PlayerLevelsUp(object ThisObject, LSEventArgs Args)
{
LavishVMAPI.Frame.Lock();
// Retrieve the first argument from the Event.
string Message = Requiem.Character.Name + " Has reached level " + Args.Args[3];
GUIs[0].WaltzStatus(Message, System.Drawing.Color.Purple);
UpdateSessionLabel(new ISXWoW.ISXWoW());
Hunter.SetHuntZone();
Requiem.NPCInteraction.AddTrainerJob();
LavishVMAPI.Frame.Unlock();
}
}
}