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

leonep

New Member
Joined
Jan 7, 2015
Messages
25
Reaction score
0
Hi guys i hope this help lazy people like me you want gift but don't want work...

You need to create your own simple loop in GPS . You must rename the point where are the crates with numbers (1,2,3,4 ..)


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 Gps gps;
       
       public static string GetPluginAuthor()
       {
           return "Plugin Author Leone";
       }

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

       public static string GetPluginDescription()
       {
           return "GiftCollector";
       }
       
       
       public List<DoodadObject> items = new List<DoodadObject>();  
       
       //Call on plugin start
       public void PluginRun()
       {    
        
       ClearLogs();
       
       int test = 0;
        while (test==0)  
        {

       //YOUR CORRECT MAP PATH
       gps = new Gps(this);
       gps.LoadDataBase(Application.StartupPath + "\\Plugins\\giftcollector\\giftmappa1.db3");    
       
       string luogo;
       // 10 is the number of crate i have i my loop , please change to your
       for (double k = 1; k < 10 ; k++)
       { 
       luogo = k.ToString();
       gps.GpsMove(luogo);
       
       items = getDoodads();
       Log(DateTime.Now.ToLongTimeString() + " : founded " + items.Count);
       double distanza = 9999;
       for (int i = 1; i < items.Count ; i++)
       {
             if (items[i].dist(me)<5 && items[i].name=="Winter Maiden Gift Crate")
             {
               Log("Name:" + items[i].name + " Dist:" + items[i].dist(me));  
               distanza = items[i].dist(me);
               
               
               var skills = items[i].getUseSkills();
               UseDoodadSkill(skills[0].id, items[i], true);  
                   
             }    
       }
       
       }
       
       }
       
        
     

}
        
}    
           
           
}

Remember to edit map path and number of crates you have to open

have fun
 
Can you give us some instructions tp create the plugin for those who are not very knowledgeable in this area?
 
rupture you mean compile it? if so copy paste the code above into a file and name it with extension .cs for example Simple Winter Maiden Gift Crate Collector.cs
then make a folder in your plugins folder and copy it there.. then open plugin editor (its on main ab window to open it) then set the folder in plugin editor to where you copied the file and then press compile.
 
Back
Top