Also, ich habe im Forum diese Task gefunden, die mir sehr gefällt, aber leide rnicht ganz funktioniert. Ich habe auch nur kleinigkeiten wie Munition dran geändert.
So, I found a nice Task on the forum, change some little things (like ammo), but it is not doing, what it should do :D
Task:
Code:
using System.Threading;
using System.Collections.Generic;
using PBDOBot.Helper;
using PBDOBot.Api;
using PBDOBot.Api.Task;
using System;
/*
Made By ukjet© !
Do not redistribute this !
If any threads posted on this not made by ukjet will be reported and closed
Download only from (http://pbdo-bot.com/index.php/topic,8630.0.html)
*/
namespace Tasks
{
public class Task : BBaseTask
{
public override void OnReset()
{
Enums.ResourceType[] protectedCollection = new Enums.ResourceType[] {
};
this.ProtectResourcesList.AddRange(protectedCollection);
Dictionary<string, Enums.ResourceType> boostCollection = new Dictionary<string, Enums.ResourceType>();
boostCollection.Add("Speed", Enums.ResourceType.ore_promerium);
boostCollection.Add("Shield", Enums.ResourceType.ore_seprom);
// boostCollection.Add("Lasers", Enums.ResourceType.ore_promerium);
boostCollection.Add("Rockets", Enums.ResourceType.ore_seprom);
this.BoostDictionary = boostCollection;
TaskScript = new TaskScript(
delegate()
{
{
{
{
#region NpcRadius
if (BMain.Me.SelectedShip != null && BMain.Me.SelectedShip.Name == BMain.Npc.Streuner && BMain.Me.SelectedShip.Name == BMain.Npc.Lordakia && BMain.Me.SelectedShip.Name == BMain.Npc.Mordon && BMain.Me.SelectedShip.Name == BMain.Npc.Saimon && BMain.Me.SelectedShip.Name == BMain.Npc.StreuneR)
{
StandardConfiguration = 1;
MinFightDistance = 350;
MaxFightDistance = 400;
}
if (BMain.Me.SelectedShip != null && BMain.Me.SelectedShip.Name == BMain.Npc.Lordakium && BMain.Me.SelectedShip.Name == BMain.Npc.Sibelon)
{
StandardConfiguration = 1;
MinFightDistance = 450;
MaxFightDistance = 550;
}
if (BMain.Me.SelectedShip != null && BMain.Me.SelectedShip.Name == BMain.Npc.Sibelonit && BMain.Me.SelectedShip.Name == BMain.Npc.Kristallin)
{
StandardConfiguration = 1;
MinFightDistance = 400;
MaxFightDistance = 450;
}
if (BMain.Me.SelectedShip != null && BMain.Me.SelectedShip.Name == BMain.Npc.Kristallon)
{
StandardConfiguration = 1;
MinFightDistance = 680;
MaxFightDistance = 740;
}
#endregion
#region AutoEcoBuy
int rocketAmmo = BMain.Me.GetAmmoCount(Enums.RocketAmmoType.PLT_2026);
if (rocketAmmo < 10)
{
StandardConfiguration = 1; //Rocket CPU auto-buy PLT_2026
SwitchConfigWhenShieldLow = false; //so it doesn't interfere with purchase of rockets only for 5 seconds, once rocketAmmo != 0, value will be true again.
}
else
{
StandardConfiguration = 2; //Rocket CPU auto-buy ECO rockets
SwitchConfigWhenShieldLow = true;
}
#endregion
// Auto Eco Buy Make sure hellstorm chip on no.2 config and normal 2026's are on 1st config
}
}
}
return -1;
},
delegate()
{
return true;
},
1000);
TaskScript = new TaskScript(
delegate()
{
{
{
{
#region Box Or Npc
int BoxOrNpc = BHelper.RandomNumber(1, 2);
if (BoxOrNpc > 1)
{
AttackNpcs = true;
AttackBossNpcs = true;
}
else
{
Cloak = true;
AttackNpcs = false;
CollectBonusBoxes = true;
CollectSpecialBoxes = true;
PetMinDurability = 1;
RestockPetFuel = false;
//PetFuelMinAmount = 2000; // will allways have 2k min fuel incase you run out of uri
RepairPetWhenDead = false; // rep pet if idiots shot it
// Will use pet if boxing
}
#endregion
}
}
}
return -1;
},
delegate()
{
return true;
},
3600000);
TaskScript = new TaskScript(
delegate()
#region MapSelector
{
{
{
{
int MapY = BHelper.RandomNumber(2, 8);
TaskMap = "X-MapY";
}
}
}
#endregion
return -1;
},
delegate()
{
return true;
},
600000);
}
public override void ChooseLogic()
{
{
if (!ActionList.Contains("Ukjet's Task"))
{
BMain.WriteLog("MadeByUkjet©");
Reset();
#region ShipBasics
FleeOnEnemyInRadius = true;
FleeRadius = 10000;
SwitchConfigWhenShieldLow = true;
StandardConfiguration = 1;
MinDurability = 50;
Repair = true;
Sell = true;
SellSkylabPromerium = true;
Refine = true;
SafeBotting = true;
TimeBetweenBoxes = 1;
#endregion
#region Ammo
LaserAmmoType = Enums.LaserAmmoType.LCB_10;
RocketAmmoType = Enums.RocketAmmoType.PLT_2026;
UseRocketLauncher = true;
Restock = true; // Make sure never run outa ammo
#endregion
#region DroneFormation
DroneFormation = Enums.DroneFormation.Arrow; ;
#endregion
#region Important
#region X-2 Flee
if (BMain.MapName != "X-2")
{
if (BMain.WarningLevel >= 1)
{
BMain.WriteLog("Warning level too high -> Fleeing");
IdleInSafety = true;
}
}
if (BMain.MapName != "X-2")
{
BMain.Me.SetRocketAmmo(Enums.RocketAmmoType.PLT_2026);
UseRocketLauncher = true;
}
else
{
UseRocketLauncher = true;
BMain.Me.SetRocketAmmo(Enums.RocketAmmoType.PLT_2026);
}
if (BMain.WarningLevel > 1)
{ BMain.Actions.FleeToSafety(1); }
#endregion
#region NpcHuntList
// HuntNpcsList.AddRange(new string[] { "-=[ Streuner ]=-", "-=[ Lordakia ]=-",
// "-=[ Saimon ]=-", "-=[ Mordon ]=-",
// "-=[ Sibelon ]=-", "-=[ Devolarium ]=-",
// "-=[ Sibelonit ]=-", "-=[ Lordakium ]=-",
// "-=[ Kristallin ]=-", "-=[ Kristallon ]=-",
// "-=[ StreuneR ]=-", "..::{ Boss Streuner }::..",
// "..::{ Boss Lordakia }::..", "..::{ Boss Saimon }::..",
// "..::{ Boss Mordon }::..", "..::{ Boss Devolarium }::..",
// "..::{ Boss Sibelonit }::..", "..::{ Boss Kristallin }::..",
// "..::{ Boss StreuneR }::.." });
HuntNpcsList.AddRange(new string[] { });
#endregion
#region DeathsPerHour
if (BMain.DeathsPerHour > 5)
{
BMain.Actions.LogOff(500);
}
#endregion
#endregion
ActionList.Add("Ukjet's Task");
}
}
}
}
}
Wenn ich die Task starte, sagt er immer "could not find gate" oder er fliegt los (roaming...) und macht sonst nichts ... Also keine NPC und keine Boxen :l
Once I started, it says could not find gate OR it starts roaming, without shooting anything or collecting anything :l
Fehlermeldung:
TIME: could not find a path to my travel location! gates not connected