What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Alarm when dead?

ok, it will check 5 times per second if you are alive, and play a sound every 30 secs if you are dead. Try to see how it works so you can make your own

Code:
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Threading;
using System.Collections.Generic;
using System.Linq;
using ArcheBuddy.Bot.Classes;

namespace DefaultNameSpace{
   public class DefaultClass : Core
   {
       public static string GetPluginAuthor()
       {
           return "Plugin Author";
       }

       public static string GetPluginVersion()
       {
           return "1.0.0.0";
       }

       public static string GetPluginDescription()
       {
           return "My plugin description";
       }

       //Call on plugin start
       public void PluginRun()
       {
             While (true){
                 Thread.Sleep(200);
                 if (me.isAlive()) continue;
                 PlaySound("enemy.wav");
                 Thread.Sleep(30000);
             }
       }
       //Call on plugin stop
       public void PluginStop()
       {
       }
   }
}
 
Back
Top