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

TigerSpine Grape Jam Trade Run profile ~ etb base

gamer4156

Member
Joined
Jan 14, 2014
Messages
51
Reaction score
1
ts2.db3 - FileFactory

Link to Map.
Starts you at the recall drop
Runs to Wb and finishes.

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

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

       public static string GetPluginDescription()
       {
           return "Trade Run Solzreed Dried Food";
       }

       //Call on plugin start

       public void PluginRun()
       {             
           
          int NBPack = maxItemsWeCanCraft(6240) ;  
                                                        
         
          while((NBPack > 0) || (isEqiped("Tigerspine Grape Jam") )  )
          {     
             if(!isEqiped("Tigerspine Grape Jam")) 
                { 
                    DespawnMount();
                    Thread.Sleep(1500);
                    MountDonkey();
                    MoveToCraft() ;
                    DespawnMount();     
                    Thread.Sleep(8000);   
                }
                 
             while(!isEqiped("Tigerspine Grape Jam"))
                {    
                MoveToCraft() ;
                CraftItems("Tigerspine Grape Jam", 1);
                Thread.Sleep(1000);
                }
                 
                Thread.Sleep(3000);
                DespawnMount();
                Thread.Sleep(1500);
                MountDonkey();    
                MoveToGoldTrader(); 
  
                DespawnMount(); 
                Thread.Sleep(2000);  
                SellBackpack(true);
                Thread.Sleep(1500); 
                returnToCraft() ;
                NBPack = maxItemsWeCanCraft(6240);
         }     
 
       } 
   
        public void returnToCraft()   
         { 
          if(CanUseRecall()) 
             { 
               UseSkill("Recall");    
               Thread.Sleep(15000);
               return;

             }
          if( HaveHereafterstones() == true)
             {
               UsePortalBook() ;  
               Thread.Sleep(5000);
               return;
             }
          else 
              { 
               long RecallCooldown = skillCooldown("Recall");  
               Thread.Sleep(900000);  
               UseSkill("Recall");
              }
         }          
       
         public  bool CanUseRecall()  
         {      
            long RecallCooldown = skillCooldown("Recall");        
            if(RecallCooldown > 0) return false;
            return true;
         }
            
        public  void UsePortalBook()  
         {    
            foreach (var port in me.portalBook.getDistricts())
                {
                    if (port.name == "Anvilton")
                    {
                        port.OpenPortal();
                        Thread.Sleep(1000);
                        while (me.isCasting || me.isGlobalCooldown)
                            Thread.Sleep(100);
                        Thread.Sleep(2500);
                        UsePortal(getMyPortal());
                        break;
                    }
                }  
         }
                       
         public Creature getMyPortal()
        {
            foreach (var creat in getCreatures())
            {
                if (creat.db.id == 3891 && creat.ownerUniqId == me.uniqId)
                    return creat;
            }
            return null;
        }
   
       public void MountDonkey()        
       {     
          UseItem("Black Donkey");
          Thread.Sleep(2000);
          var d = getMount();
          if (d != null)
          SitToMount();
           
       }

	 
          
                   
       public void MoveToCraft()        
       {         
           gps = new Gps(this); 
           gps.LoadDataBase(Application.StartupPath + "\\plugins\\TradeRun\\TS2.db3"); 
            gps.onGpsPreMove -= gpsPreMove;
	 gps.GpsMove("Link");
           gps.GpsMove("Workbench");                
 
       }  
        public void MoveToGoldTrader()        
       {         
           gps = new Gps(this); 
           gps.LoadDataBase(Application.StartupPath + "\\plugins\\TradeRun\\TS2.db3");  
           gps.onGpsPreMove += gpsPreMove; 
           gps.GpsMove("Gold Trader");   
          
       }  
	   
      public void gpsPreMove(GpsPoint point)
        {       
         long carrotCooldown = buffTime(getMount(),"Dreaming Donkey");    
         if((carrotCooldown == 0) && (HaveCarrots() == true))    
            {  

            UseSkill("Dreaming Donkey"); 
            }  
        }      
       public bool HaveCarrots()
       {  
          List<Item> inventory = getAllInvItems()  ;   
           foreach(Item myitem in inventory)
               { 
                   if( myitem.name == "Carrot")    
                     {
                         return true;   
                     }         
               }    
                 return false;
       }   
             
      public bool HaveHereafterstones()
       {  
          List<Item> inventory = getAllInvItems()  ;   
           foreach(Item myitem in inventory)
               { 
                   if( myitem.name == "Hereafter Stone")    
                     {
                         return true;   
                     }         
               }    
                 return false;
       }
             

       //Call on plugin stop
       public void PluginStop()
       {
       }
   }
}
 
Can it use any donkey-not just black? and can it use the recall function instead of using hereafter stones.
 
Last edited:
Ty alot it's working fine and i do it with out a Donkey now i'll see if it's can recall or not !!


i wonder if i can use that skill to make it moveing fast .. ?

can u ?



edit-

it's stucked on houses btw


update -

it's working fine and delvier the trade but it's stucked on houses ...
 
Last edited:
Ty alot it's working fine and i do it with out a Donkey now i'll see if it's can recall or not !!


i wonder if i can use that skill to make it moveing fast .. ?

can u ?



edit-

it's stucked on houses btw
edid the path yourself. It's normal that it won't work for all of us.
Houses are built and are in different places in ea server
 
Ya I made the path while on my donkey so it might be a tad different not on one. I think you can edit the donkey please refer to etb thread for that.
 
Ya I made the path while on my donkey so it might be a tad different not on one. I think you can edit the donkey please refer to etb thread for that.
Yes you edit the donkey easily. Myself have A white donkey. Just go to Source and all the Parts that have "Black DOnkey" , swap it to your Color donkey. Solved.
 
What are the proper steps to get this working? I compiled the plugin and put the gps file in the folder with the plugin. Clicking start just makes it turn right back off, guessing I have files located in the wrong spots. Also, does the GPS Plugin need to be enabled as well?

Edit* Checked code and found that it requires the plugin folder to be named Traderun. Seems to be moving now.
 
Last edited:
What are the proper steps to get this working? I compiled the plugin and put the gps file in the folder with the plugin. Clicking start just makes it turn right back off, guessing I have files located in the wrong spots. Also, does the GPS Plugin need to be enabled as well?

Edit* Checked code and found that it requires the plugin folder to be named Traderun. Seems to be moving now.

I still have not figured it out
 
You must have enough mats for the next run or else the code breaks and ends.
 
Not sure how profitable this is if you are buying mats off AH. Probably okay if you are growing everything you need though.
 
Back
Top