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

Mining Help Cause there is no scripts

Status
Not open for further replies.

Crumpet_

Member
Joined
Sep 29, 2012
Messages
94
Reaction score
0
Ok, so obviously there is no good mining scripts out there, besides "simple miner"

Code:
using System;
using System.Drawing;
using System.Threading;
using System.Collections.Generic;
using System.Linq;
using ArcheBuddy.Bot.Classes;
using System.Windows.Forms;
using System.Threading.Tasks;
using System.Net;
using System.IO;
using System.Text;
using System.ComponentModel;

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

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

       public static string GetPluginDescription()
       {
           return "Simple Miner";
       }
       private Gps gps; 
       //Call on plugin start
       public void PluginRun()
       {                      
           int yes = 1;
            int Continue = 1;

           gps = new Gps(this); 
           gps.LoadDataBase(Application.StartupPath + "\\Plugins\\Mining\\mine.db3");     
           gps.GpsMove("Mine");    
            RoundZone z = new RoundZone(me.X,me.Y,90);
               CollectItemsInZone("Fortuna Vein","Mining: Spend up to 20 Labor to extract ore.",z);   
               CollectItemsInZone("Iron Vein","Mining: Spend up to 10 Labor to extract ore.",z);            
           while(Continue ==1)
           {                    
               
               while(yes < 100)
           {                                             
              
                   
            if(getAggroMobs().Count > 0)
            {                      
                Log("NOOOO");
               gps.GpsMove("Safe");
                PluginRun();
                
            }    
                                 
                 if(hpp() < 80)
                 {                  
                     Log("NOO");
               gps.GpsMove("Safe"); 
                PluginRun();
                 }
               CollectItemsInZone("Fortuna Vein","Mining: Spend up to 20 Labor to extract ore.",z);   
               CollectItemsInZone("Iron Vein","Mining: Spend up to 10 Labor to extract ore.",z);  
               yes++;     
               if(yes >= 20)
            {
                gps.GpsMove("Safe");
                yes = 1;
            }
               

        }   
       }       
    }

       //Call on plugin stop
       public void PluginStop()
       {
       }
   }
}

That is the script, just wondering if i could get some help to develop a "loop" so it will follow the GPS path, that has been created. So it mines up and down that path, cause at the moment. it will mine around "Mine" point in the gps and then run the rest of the path and skip the nodes
 
- add the mining function on the gps premove , this way it will check for nodes between each points on the path
- make a function for mining that take all nodes before moving to next point


this should start you
 
- add the mining function on the gps premove , this way it will check for nodes between each points on the path
- make a function for mining that take all nodes before moving to next point


this should start you


hmmm i'm not a coder, is there some where i can power learn :P haha
 
Status
Not open for further replies.
Back
Top