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

Faction Spam plugin.

cherlot

New Member
Joined
Oct 9, 2014
Messages
73
Reaction score
0
Hello,

Any chance to make a plugin to type a text in faction or shout for every 15 mins.. Like WTS XX ?
 
Here you go:

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 "Silver";
       }

       public static string GetPluginVersion()
       {
           return "1a";
       }

       public static string GetPluginDescription()
       {
           return "Says something over faction chat over and over again with a preset interval";
       }
                       
       int interval = 900; //Interval in seconds between the messages. (default = 900 -> 15 minutes)
       String text  = "WTS [Ayanad Summer Sword], /w me!";
       
       public void PluginRun()
       {             
           while(true){
               Say(ChatType.Ally, text);
               Thread.Sleep(interval * 1000);    
           }      
       }
   }
}

Just edit the variables text and interval to your liking :)

S.
 
Back
Top