Hey guys , so I left my laptop over the night to do the gates , as i was hoping it would the waves without a problem , but... It's still circling , its not hitting the sibelons , I tried moving it around , playing with the config file NOTHING. It just circles it , and the distance from the npc is too far , so its not even being hit. Here is my task file
PLEASE HELP!
using System.Threading;
using System.Collections.Generic;
using PBDOBot.Helper;
using PBDOBot.Api;
using PBDOBot.Api.Task;
namespace Tasks
{
public class Task : BBaseTask
{
/*
*
* Sgt.Peperov's GG Beta Task
*
*/
public override void OnReset()
{
Enums.ResourceType[] protectedCollection = new Enums.ResourceType[] {
Enums.ResourceType.ore_promerium
};
this.ProtectResourcesList.AddRange(protectedCollec tion);
Dictionary<string, Enums.ResourceType> boostCollection = new Dictionary<string, Enums.ResourceType>();
boostCollection.Add("Speed", Enums.ResourceType.ore_promerium);
boostCollection.Add("Shield", Enums.ResourceType.ore_promerium);
boostCollection.Add("Lasers", Enums.ResourceType.ore_promerium);
//boostCollection.Add("Rockets", Enums.ResourceType.ore_promerium );
this.BoostDictionary = boostCollection;
//GGWaveConfig: (string enemyName, Enums.LaserAmmoType laserType, Enums.RocketAmmoType rocketType, int configuration, bool exitAfter)
//that is:
// enemyName: the complete Name of the Enemy that is encountered in the Wave you want to configure
// laserType: Type of LaserAmmo you want to use to kill them
// rocketType: Type of RocketAmmo you want to use to kill them
// configuration: the ship-config to do this wave in
// exitAfter: exit after this Wave and start doing the "third part" of this taskfile (reentering is currently only possible by restarting the complete pbdo-bot.exe!)
GGWaveConfigList.Add(new GGWaveConfig("-=[ Streuner ]=-", Enums.LaserAmmoType.LCB_10, Enums.RocketAmmoType.PLT_2026, 2, false));
GGWaveConfigList.Add(new GGWaveConfig("-=[ Lordakia ]=-", Enums.LaserAmmoType.LCB_10, Enums.RocketAmmoType.PLT_2026, 1, false));
GGWaveConfigList.Add(new GGWaveConfig("-=[ Mordon ]=-", Enums.LaserAmmoType.LCB_10, Enums.RocketAmmoType.PLT_2026, 2, false));
GGWaveConfigList.Add(new GGWaveConfig("-=[ Saimon ]=-", Enums.LaserAmmoType.LCB_10, Enums.RocketAmmoType.PLT_2026, 1, false));
GGWaveConfigList.Add(new GGWaveConfig("-=[ Devolarium ]=-", Enums.LaserAmmoType.LCB_10, Enums.RocketAmmoType.PLT_2026, 2, false));
GGWaveConfigList.Add(new GGWaveConfig("-=[ Kristallin ]=-", Enums.LaserAmmoType.MCB_25, Enums.RocketAmmoType.PLT_2026, 1, false));
GGWaveConfigList.Add(new GGWaveConfig("-=[ Sibelon ]=-", Enums.LaserAmmoType.MCB_25, Enums.RocketAmmoType.PLT_2026, 2, false));
GGWaveConfigList.Add(new GGWaveConfig("-=[ Sibelonit ]=-", Enums.LaserAmmoType.LCB_10, Enums.RocketAmmoType.PLT_2026, 1, false));
GGWaveConfigList.Add(new GGWaveConfig("-=[ Kristallon ]=-", Enums.LaserAmmoType.MCB_25, Enums.RocketAmmoType.PLT_2026, 2, false));
GGWaveConfigList.Add(new GGWaveConfig("-=[ Protegit ]=-", Enums.LaserAmmoType.MCB_25, Enums.RocketAmmoType.PLT_2026, 1, false));
//activate Pet here, if wanted:
// UsePet = true;
// PetMode = Enums.PetMode.Guard_Mode;
// RestockPetFuel = true;
// DeactivatePetWhileFleeing = true;
// RepairPetWhenDead = true;
}
public override void ChooseLogic()
{
//Obviously we only want to make the GG A, if the portal is already open (and we didnt clear it)
if (BMain.Deaths < 0 && BMain.IsGalaxyGateBetaOpen)
{
//This first Part ist for traveling to the start map (where the gate is)
// it also regenerates you to max HP
// and avoids enemy players while traveling
if (!ActionList.Contains("GG B Prep") && (!(BMain.MapName == "GG B")))
{
Reset();
BMain.WriteLog("GG B Preparation");
DoGalaxyGateBeta = true;
LaserAmmoType = Enums.LaserAmmoType.any;
RocketAmmoType = Enums.RocketAmmoType.any;
UsePet = false;
Restock = true;
AttackNpcs = false;
Refine = true;
Sell = true;
CollectResources = false;
CollectBonusBoxes = false;
CollectCargoBoxes = false;
FleeOnEnemyInRadius = true;
FleeRadius = 5000;
Repair = true;
MinDurability = 80;
MinFreeSlots = 850;
ActionList.Add("GG B Prep");
}
//This second part handles the GalaxyGate waves
// Repair is false, but the bot will still automaticly repair inbetween waves (but wont bug out)
else if (!ActionList.Contains("GG B") && (BMain.MapName == "GG B"))
{
Reset();
BMain.WriteLog("GG B");
DoGalaxyGateBeta = true;
LaserAmmoType = Enums.LaserAmmoType.any;
RocketAmmoType = Enums.RocketAmmoType.any;
AttackNpcs = true;
Restock = true;
Refine = true;
Sell = true;
PetMode = Enums.PetMode.Guard_Mode;
CollectResources = false;
CollectBonusBoxes = true;
CollectCargoBoxes = true;
Repair = false;
MinDurability = 60;
MinFreeSlots = 150;
ActionList.Add("GG B");
}
}
//This third part handles the case that the Gate isn't open,
//or if we just finished the Gate and need something to do afterwards
//or if we just left the Gate because exitAfter was true for the current Wave of enemies
else
{
Dictionary<TaskLoadDelegate, int> TaskLoadDictionary = new Dictionary<TaskLoadDelegate, int>();
//this time, we only add one entry to our cycle task
TaskLoadDictionary.Add(
delegate()
{
if (!ActionList.Contains("gather x-2 invis"))
{
BMain.WriteLog("loading gather bonus x-2 invisible task");
Reset();
TaskMap = "x-4";
AttackNpcs = false;
BuyInvisibleAddon = true;
Refine = true;
Sell = true;
CollectResources = false;
CollectBonusBoxes = true;
CollectSunBoxes = true;
CollectCargoBoxes = true;
FleeOnEnemyInRadius = true;
FleeRadius = 4000;
PetMode = Enums.PetMode.Auto_Looter;
Repair = true;
MinDurability = 60;
MinFreeSlots = 100;
UseExtraGateEnergy = true;
ActionList.Add("gather x-2 invis");
}
}, 35); //enter CyleTime of this TaskPart in minutes (here it is 35)
TaskLoadDictionary.Add(
delegate()
{
if (!ActionList.Contains("gather x-3 invis"))
{
BMain.WriteLog("loading gather bonus x-3 invisible task");
Reset();
TaskMap = "x-3";
AttackNpcs = false;
BuyInvisibleAddon = true;
Refine = true;
Sell = true;
MinFreeSlots = 100;
CollectResources = false;
CollectBonusBoxes = true;
CollectSunBoxes = true;
CollectCargoBoxes = true;
PetMode = Enums.PetMode.Auto_Looter;
FleeOnEnemyInRadius = true;
FleeRadius = 3500;
Repair = true;
MinDurability = 60;
UseExtraGateEnergy = true;
ActionList.Add("gather x-3 invis");
}
}, 30);
TaskLoadDictionary.Add(
delegate()
{
if (!ActionList.Contains("gather x-4 invis"))
{
BMain.WriteLog("loading gather bonus x-4 invisible task");
Reset();
TaskMap = "x-4";
AttackNpcs = false;
BuyInvisibleAddon = true;
Refine = true;
Sell = true;
MinFreeSlots = 100;
PetMode = Enums.PetMode.Auto_Looter;
CollectResources = false;
CollectBonusBoxes = true;
CollectSunBoxes = true;
CollectCargoBoxes = true;
FleeOnEnemyInRadius = true;
FleeRadius = 3500;
Repair = true;
MinDurability = 60;
UseExtraGateEnergy = true;
ActionList.Add("gather x-4 invis");
}
}, 35);
CycleTaskDictionary = TaskLoadDictionary;
}
}
}
}