Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using wManager;
- using robotManager.Products;
- using Auction;
- using wManager.Wow.Enums;
- using wManager.Wow.Helpers;
- using robotManager.FiniteStateMachine;
- using wManager.Wow.Bot.States;
- using Timer = robotManager.Helpful.Timer;
- using robotManager.Helpful;
- using wManager.Wow;
- using System.Threading;
- namespace Main2
- {
- public class Class1 : Custom_Profile.ICustomProfile
- {
- public void Initialize()
- {
- //EventsLuaWithArgs.OnEventsLuaWithArgs += MyLuaHandler;
- Logging.Write("AH Plugin has Started");
- //wManager.Wow.Helpers.AuctionHelpers.SetAuctionSellItem("Glyph of Bloodrage");
- }
- public void Dispose()
- {
- //EventsLuaWithArgs.OnEventsLuaWithArgs -= MyLuaHandler;
- }
- public void Settings()
- {
- // no settings
- }
- public void Pulse()
- {
- robotManager.Helpful.Logging.Write("Initialized");
- //...things you want to initialize
- var timer = new robotManager.Helpful.Timer(1000);
- timer.ForceReady();
- while (true)
- {
- try
- {
- if (Conditions.ProductIsStartedNotInPause && Conditions.InGameAndConnected && timer.IsReady)
- {
- robotManager.Helpful.Logging.Write("Pulse");
- //...on pulse
- timer.Reset();
- }
- }
- catch (Exception e)
- {
- robotManager.Helpful.Logging.WriteError(e.ToString());
- }
- Thread.Sleep(30);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement