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

[Plugin]: Divine Blessings Coin Retriever

DerpProgrammer

Community Developer
Joined
Mar 16, 2015
Messages
33
Reaction score
0
Here is a Divine Blessings Coin Retreiver plugin that uses the new getScheduleItems() functionality Out recently implemented.

This plugin can be configured for auto-start.

It just retreives the Divine Blessings Coin, if it is available, then waits until the next one is available.

PHP:
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 "DerpProgrammer";
       }

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

       public static string GetPluginDescription()
       {
           return "Divine Blessings Coin Retriever";
       }

       //Call on plugin start
       public void PluginRun()
       {
           ClearLogs();
           while (gameState != GameState.Ingame)Thread.Sleep(10000);
           while (gameState == GameState.Ingame || gameState == GameState.LoadingGameWorld)
           {
               foreach (var i in getScheduleItems())
               {
                  if (i != null)
                  {
                      if (i.db.name == "Divine Clock" && i.remainTime == 0 && i.totalReceivedCount < 12)
                      {
                          i.Claim();
                          Log ("Claimed Divine Blessings Coin number: " + i.totalReceivedCount.ToString());
                          Thread.Sleep(1000);
                      }
                      if (i.db.name == "Divine Clock") Log("Waiting " + (i.remainTime/60).ToString() + " minutes to get the next Divine Coin.");
                      Thread.Sleep(i.remainTime*1000);
                  }
                  Thread.Sleep(1000);
               }
           }
       }
       //Call on plugin stop
       public void PluginStop()
       {
       }
   }
}
 
You have a good script.

I wasn't able to test some stuff before during the patch period, so I had some errors in mine.

I can see that your script will loop every 15 minutes when all boxes are claimed as the value is 900 when all boxes are claimed, and mine will check every 30 seconds.

I have also used some elements of your script to make mine better, and you did a good job of allowing auto-restart / loading screen functionality.

PHP:
using System;
using System.Collections.Generic;
using System.Threading;
using ArcheBuddy.Bot.Classes;
using System.Runtime.InteropServices;
using System.Windows;
namespace DivineGiftClicker
{
    public class BlessingsClaimer : Core
    {
        public static string GetPluginAuthor()
        {
            return "Deityslayer";
        }
        public static string GetPluginVersion()
        {
            return "1.0";
        }
        public static string GetPluginDescription()
        {
            return "Divine Blessing Token Claimer";
        }   
        public void PluginRun()
        {                     
while (true) 
{ 
    ClearLogs(); 
    while (gameState != GameState.Ingame)Thread.Sleep(10000); 
    while (gameState == GameState.Ingame || gameState == GameState.LoadingGameWorld) 
    {   
        foreach (var i in getScheduleItems())
        {        
            if (i.db.name == "Divine Clock") 
            {              
                if (i.remainTime == 0 && i.totalReceivedCount < 12)           
                {
                    i.Claim(); //will try to claim item
                    Log("Claimed token #" + i.totalReceivedCount + ".");
                }
                if (i.remainTime > 0 && i.totalReceivedCount < 12)
                {  
                    Log("Claiming next token in " + (i.remainTime/60).ToString() + " minutes.");
                    Thread.Sleep(i.remainTime * 1000);  
                    Thread.Sleep(1250);
                    i.Claim(); //will try to claim item
                    Log("Claimed token #" + i.totalReceivedCount + ".");
                }
                if (i.totalReceivedCount == 12) 
                {
                    Thread.Sleep(30000);
                }
            }
        }
    }
    Thread.Sleep(1000);
}
}
        public void PluginStop()
        {
            Log(DateTime.Now.ToString("M/d/yyyy H:mm:ss.fff") + " > ----- " + GetPluginDescription() + " stopped -----");
        }
    }
}
 
Last edited:
Flawless work!< works like it should !
 
Last edited:
Not too bright with this stuff yet, where am I inputting this script too for it to work? Tired of clicking the boxes =(
 
Tried to adapt these to the new Patron Tokens by changing the checks for

Code:
i.db.name == "Divine Clock"

to

Code:
i.db.name == "Patron"

as this is the name of the items in the result of getScheduleItems().

But does not seem to work for me. Any help would be appreciated.
 
So i ran the following
Code:
ClearLogs(); 
foreach (var i in getScheduleItems()) { while(true) { Log(i.db.name + " : " + i.db.id ); Thread.Sleep(1000); }
and received the following

Code:
Patron : 8000001
Patron : 8000001
Patron : 8000001
Patron : 8000001

And nothing else
 
Back
Top