All pastes #900270 Raw Edit

Stuff

public text v1 · immutable
·published 2008-02-11 20:06 UTC
rendered paste body
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();
        }
    }
}