PBDO-bot task-part HELP please!

09/16/2012 00:17 andersen11#1
Hi!

I've got a question... How can I implent to the PBDO task file the following:
  • if the hitpoints are lover than 50% than use special aegis ability
  • is shield is under 20% use special aegis ability
  • is enemy is nearby, use special cloak ability (spearhead)

Thank you for the answers, if someone helps me, i'll press thanks, not just say it!
09/16/2012 00:18 43MuS#2
Ask in pbdo forum
09/16/2012 00:23 linksus#3
Quote:
Originally Posted by 43MuS View Post
Ask in pbdo forum
You very funny. PBDO-Bot forum is down.......:rolleyes:

Please download this and make you own task.
Sometime you can and must make it alone.....
09/16/2012 00:26 43MuS#4
Oh sorry^^
I not check it out
09/16/2012 00:35 andersen11#5
Quote:
Originally Posted by linksus View Post
You very funny. PBDO-Bot forum is down.......:rolleyes:

Please download this and make you own task.
Sometime you can and must make it alone.....
thank you so much the link, but I don't know how to set "if" and special abilities :(

Quote:
Originally Posted by 43MuS View Post
Oh sorry^^
I not check it out
np :)
09/16/2012 05:18 tata26#6
Quote:
Originally Posted by andersen11 View Post
Hi!

I've got a question... How can I implent to the PBDO task file the following:
  • if the hitpoints are lover than 50% than use special aegis ability
  • is shield is under 20% use special aegis ability
  • is enemy is nearby, use special cloak ability (spearhead)

Thank you for the answers, if someone helps me, i'll press thanks, not just say it!
This is not possible at the moment.
Maybe they will add this function later
09/16/2012 06:35 zCrossYuuki#7
Contact Your Resseller :) he help u on 100% :)
09/16/2012 08:32 Vossik#8
Quote:
Originally Posted by tata26 View Post
This is not possible at the moment.
Maybe they will add this function later
Its possible... Task are on forum but forum is down so ask reseller..
09/16/2012 11:23 andersen11#9
Thank you your answers, but I already know how to set the bot to use the ability, just don't know how to set the life/shield percent:

Quote:
void PBDOBot.Api.ActionsClass.UseAbility ( Enums.ShipAbility ability )
use a certain ability of our hero
possible abilities:
Enums.ShipAbility.Solace
Enums.ShipAbility.Diminisher
Enums.ShipAbility.Spectrum
Enums.ShipAbility.Venom
Enums.ShipAbility.Vengeance_Speed
Enums.ShipAbility.Aegis_Health_Repair
Enums.ShipAbility.Aegis_Shield_Repair
Enums.ShipAbility.Aegis_Health_Pod
Enums.ShipAbility.Citadel_Draw_Fire
Enums.ShipAbility.Citadel_Travel_Mode
Enums.ShipAbility.Citadel_Fortify
Enums.ShipAbility.Citadel_Protection
Enums.ShipAbility.Spearhead_Cloak
Enums.ShipAbility.Spearhead_Emp
Enums.ShipAbility.Spearhead_Mark_Target
Enums.ShipAbility.Spearhead_Double_Minimap
ability

UseAbility(Enums.ShipAbility.Spearhead_Emp);
I don't want to bother my reseller with things like this... so, any ideas? :)
09/16/2012 12:27 mariuszdlu#10
using PBDOBot.Api;
using PBDOBot.Helper;

namespace PBDOBot.Api.Task
{
public class AegisHitpoints : ITaskScript
{
public AegisHitpoints() : base("AegisHitpoints", 1000, 10)
{
}
public override int Run()
{

if(Task.BMain.Actions.CanUseAbility(Enums.ShipAbil ity.Aegis_Health_Repair) == true && Task.BMain.Me.Hitpoints <= 170000)
{
Task.BMain.Actions.UseAbility(Enums.ShipAbility.Ae gis_Health_Repair);
Task.BMain.WriteLog("Using Health Repair");
}
return -1;
}

public override bool NeedRun()
{
return true;
}
}
}
09/16/2012 13:38 andersen11#11
Quote:
Originally Posted by mariuszdlu View Post
using PBDOBot.Api;
using PBDOBot.Helper;

namespace PBDOBot.Api.Task
{
public class AegisHitpoints : ITaskScript
{
public AegisHitpoints() : base("AegisHitpoints", 1000, 10)
{
}
public override int Run()
{

if(Task.BMain.Actions.CanUseAbility(Enums.ShipAbil ity.Aegis_Health_Repair) == true && Task.BMain.Me.Hitpoints <= 170000)
{
Task.BMain.Actions.UseAbility(Enums.ShipAbility.Ae gis_Health_Repair);
Task.BMain.WriteLog("Using Health Repair");
}
return -1;
}

public override bool NeedRun()
{
return true;
}
}
}
Hey, thank you soooo much, but I can't implent it to my task :( Cna you help me out with this?

my task:
Code:
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()
        {

            Enums.ResourceType[] protectedCollection = new Enums.ResourceType[] { 
            Enums.ResourceType.ore_prometid,
            Enums.ResourceType.ore_promerium,

             };
            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_prometid);
			boostCollection.Add("Rockets", Enums.ResourceType.ore_promerium);

			this.BoostDictionary = boostCollection;
        }

        public override void ChooseLogic()
        {
           if (!ActionList.Contains("PBDO-Bot Task"))
            {
                BMain.WriteLog("Task created with Taskcreator by Dr. Moc");
                Reset();


                TaskMap = "x-7";

                AttackNpcs = true;
                BMain.WriteLog("We will attack aliens");
                AttackBossNpcs = true;
                BMain.WriteLog("We will attack boss aliens");
                HuntNpcsList.Add(BMain.Npc.Kristallin);
                HuntNpcsList.Add(BMain.Npc.Kristallon);
                HuntNpcsList.Add(BMain.Npc.BossKristallin);
                AttackTaggedNpcs = false;

                Repair = true;
                MinDurability = 50;
                BMain.WriteLog("We will repair if hitpoint are lower then 60%");
                StandardConfiguration = 1;
                FleeOnEnemyInRadius = true;
                BMain.WriteLog("We will flee from enemies");
                FleeOnAttacked = true;
                BMain.WriteLog("We will flee if we get attacked");
                SwitchConfigWhileFleeing = true;
                BMain.WriteLog("We will switch confi while fleeing");
                DroneFormation = Enums.DroneFormation.Diamond;
                BMain.WriteLog("We will use drone formation Diamond");
                Sell = true;
                Refine = true;
                BMain.WriteLog("We will refine ressources");
                RefinePromerium = false;
                CollectBonusBoxes = true;
                BMain.WriteLog("We will collect bonusboxes");
                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.Kamikaze_Detonator;
                BMain.WriteLog("We will use PET in Kamikaze_Detonator mode");
                PetMinDurability = 1;
                RepairPetWhenDead = true;

                ActionList.Add("PBDO-Bot Task");
            }
        }
    }
}
and thank you again for your time and help, have a good day!
09/16/2012 13:59 lollo900#12
Try to make a taskscript with his code, not implement in your task...
09/16/2012 14:04 105 077 121#13
Quote:
Originally Posted by andersen11 View Post
Hi!

I've got a question... How can I implent to the PBDO task file the following:
  • if the hitpoints are lover than 50% than use special aegis ability
  • is shield is under 20% use special aegis ability
  • is enemy is nearby, use special cloak ability (spearhead)

Thank you for the answers, if someone helps me, i'll press thanks, not just say it!
Just contact your reseller, as I am PBDOs reseller I would help my customers too.

Quote:
Originally Posted by tata26 View Post
This is not possible at the moment.
Maybe they will add this function later
What r u talking about, all of this stuff is 100% possible!
09/16/2012 14:37 mariuszdlu#14
add the code that you gave to test and send the prv how the same test later :-)
09/16/2012 14:38 andersen11#15
Quote:
Originally Posted by iMysтeяY^ View Post
Just contact your reseller, as I am PBDOs reseller I would help my customers too.


What r u talking about, all of this stuff is 100% possible!
ok, thank you!