Can someone add aegis abilities to my friends palla script?
using System.Threading;
using System.Collections.Generic;
using PBDOBot.Helper;
using PBDOBot.Api;
using PBDOBot.Api.Task;
namespace Tasks
{
public class Task : BBaseTask
{
/* ************************************************** **
Created with Taskcreator by Dr. Moc
************************************************** ** */
public override void OnReset()
{
TaskScript = new TaskScript(
delegate()
{
if (BMain.Me.SelectedShip != null && BMain.Me.SelectedShip.Name == BMain.Npc.Interceptor | BMain.Me.SelectedShip.Name == BMain.Npc.Barracuda | BMain.Me.SelectedShip.Name == BMain.Npc.Saboteur | BMain.Me.SelectedShip.Name == BMain.Npc.Annihilator)
{
if (BMain.Me.SelectedShip.Shield > 0) {LaserAmmoType = Enums.LaserAmmoType.SAB;} else {LaserAmmoType = Enums.LaserAmmoType.MCB_50;}
MinDurability = 50;
StandardConfiguration = 1;
UsePet = false;
}
else
{
MinDurability = 85;
StandardConfiguration = 2;
DroneFormation = Enums.DroneFormation.Diamond;
UsePet = true;
PetMode = Enums.PetMode.Auto_Resource_Collector;
RepairPetWhenDead = true;
}
return -1;
},
delegate()
{
return true;
},
1000);
Enums.ResourceType[] protectedCollection = new Enums.ResourceType[] {
};
this.ProtectResourcesList.AddRange(protectedCollec tion);
Dictionary<string, Enums.ResourceType> boostCollection = new Dictionary<string, Enums.ResourceType>();
//boostCollection.Add("Speed", Enums.ResourceType.ore_);
//boostCollection.Add("Shield", Enums.ResourceType.ore_);
//boostCollection.Add("Lasers", Enums.ResourceType.ore_);
//boostCollection.Add("Rockets", Enums.ResourceType.ore_);
this.BoostDictionary = boostCollection;
}
public override void ChooseLogic()
{
if (!ActionList.Contains("PBDO-Bot Task"))
{
BMain.WriteLog("Task created with Taskcreator by Dr. Moc");
Reset();
TaskMap = "5-3";
HuntNpcsList.Add(BMain.Npc.Interceptor);
HuntNpcsList.Add(BMain.Npc.Barracuda);
HuntNpcsList.Add(BMain.Npc.Saboteur);
HuntNpcsList.Add(BMain.Npc.Annihilator);
AttackNpcs = true;
BMain.WriteLog("We will attack NPCs");
AttackTaggedNpcs = false;
Repair = true;
MinDurability = 85;
BMain.WriteLog("We will repair if hitpoint are lower then 85%");
StandardConfiguration = 2;
FleeOnClanWarEnemyInRadius = true;
BMain.WriteLog("We will flee from clan war enemies");
FleeOnAttacked = true;
BMain.WriteLog("We will flee if we get attacked");
SwitchConfigWhenShieldLow = true;
SellPalladium = true;
MinPalladiumAmountToSell = 3000;
DroneFormation = Enums.DroneFormation.Diamond;
BMain.WriteLog("We will use drone formation Diamond");
CollectResources = true;
BMain.WriteLog("We will collect ressources");
SafeBotting = false;
ExtremeBotting = true;
LaserAmmoType = Enums.LaserAmmoType.LCB_10;
RocketAmmoType = Enums.RocketAmmoType.PLT_2026;
RocketLauncherAmmoType = Enums.RocketLauncherAmmoType.ECO10;
Restock = true;
BMain.WriteLog("We will restock ammo");
UsePet = true;
PetMode = Enums.PetMode.Auto_Resource_Collector;
BMain.WriteLog("We will use PET in Auto_Resource_Collector mode");
PetMinDurability = 10;
RestockPetFuel = true;
RepairPetWhenDead = true;
ActionList.Add("PBDO-Bot Task");
}
}
}
}






