PBDO Task Help :S

03/27/2013 11:36 relentlessv#1
Hiya,

I'm new to PBDO bot and the forum so would anyone be kind enough to help me please?

I would like the bot to run away onto another map if attacked, and to return to the previous map when HP and Shield is full. Also when the enemy stops attacking, and is out of radius, it would carry on botting around.

At the moment is the current code:

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 by taskcreator
		
		Copyright (C) 2011-2012 by gähn
		
		http://gahn.bot24.eu
		*/
	
	
	
        public override void OnReset()
        {
			//boost
                                                //protected
                                                //gg
        }

        public override void ChooseLogic()
        {
		
Dictionary<TaskLoadDelegate, int> TaskLoadDictionary = new Dictionary<TaskLoadDelegate, int>();
TaskLoadDictionary.Add(
			delegate()
			{
				if (!ActionList.Contains("x-4     200 Minutes"))
				{
					BMain.WriteLog("Starting on x-4 for 200 minutes");
                                                                                BMain.WriteLog("http://gahn.bot24.eu");
					Reset();


					TaskMap = "x-4";
MinDurability = 30;
LaserAmmoType = Enums.LaserAmmoType.LCB_10;
RocketAmmoType = Enums.RocketAmmoType.PLT_2026;
MinFightDistance = 150;
MaxFightDistance = 600;
BoxesPerHour = 6000;
StandardConfiguration = 1;
GateToUseExtraEnergyFor = GalaxyGateType.Zeta;
CloudBoxesCollectRadius = 2100;
SwitchConfigWhileFleeing = true;
SwitchConfigWhenShieldLow = true;
CollectSpecialBoxes = true;
FleeOnEnemyInRadius = true;
SafeBotting = false;
Repair = true;
Sell = true;
CollectBonusBoxes = true;
SellSkylabPromerium = true;
AttackNpcs = true;
AttackBossNpcs = true;
HuntNpcsList.AddRange(new string[] { "-=[ Lordakia ]=-", "-=[ Saimon ]=-", "-=[ Mordon ]=-", "..::{ Boss Saimon }::.."}); 

					
					ActionList.Add("x-4     2000 Minutes");
				}
			}, 2000);
			CycleTaskDictionary = TaskLoadDictionary;
        }
    }
}
Thanks:)
03/27/2013 12:01 jorg*#2
Quote:
Originally Posted by relentlessv View Post
Hiya,

I'm new to PBDO bot and the forum so would anyone be kind enough to help me please?

I would like the bot to run away onto another map if attacked, and to return to the previous map when HP and Shield is full. Also when the enemy stops attacking, and is out of radius, it would carry on botting around.

At the moment is the current code:
Thanks:)
Hmm maybe stupid to ask, but why not just put full speed in ship? and when enemy come in range, the bot wil run away anyways..

I get shotdown like 1time a day using this technic on my small acc=)
03/27/2013 12:12 relentlessv#3
Well it's meant for a X-4 map, and I'm flying around in a Leonov if that helps? But ill try that and see how it goes, but if someone doesn't mind making the code, I would be grateful :)
03/27/2013 12:59 jorg*#4
Quote:
Originally Posted by relentlessv View Post
Well it's meant for a X-4 map, and I'm flying around in a Leonov if that helps? But ill try that and see how it goes, but if someone doesn't mind making the code, I would be grateful :)
Hmm, i cannot help you with that..
But i can help you with this ..
Leo is just a little bit slower then goli if im not mistaking..
You almost never die, unles they use autolock and corner you in =)
9/10 they wil leave you beceause you wont give them much points ..

But the best part about the leo is just simple that it doesnt need to hit hard with lasers to make allot of uridium..

Focus on the rocket damage ..

pilotsheet:
- Shield Hull 1 - Full
- Engineering - 1 point
- Shield engineering - Full
- Heat-Seeking missiles - 1 point <-- A MUST DO ! , This wil give 12% extra dmg on chevron and leo already!
- Bounty Hunter 1 - Full
- Ship Hull 2 - Full
- Rocket Fusion - Full
- Cruelty 1 - Full
- Alien Hunter - Full
- Electro Optics - 3 points
- Cruelty 2 - Full
- Shield Mechanics - Full
- Bounty Hunter 2 - Full

Please build this =)
For botting on aliens this is perfect, you can also slim it down a bit.. like the fat lasers=)

Buy chevron formation ..
And put 2 ful shield confi on drones.. with ful speed on ship =)

And no enemy wil shoot you down anymore
03/27/2013 13:41 ZzEndayZz#5
Code:
FleeOnAttacked = true;
SwitchConfigWhileFleeing = true;
SwitchConfigWhenShieldLow = false;
Add this to your code. :)
03/27/2013 13:42 jorg*#6
Quote:
Originally Posted by ZzEndayZz View Post
Code:
FleeOnAttacked = true;
SwitchConfigWhileFleeing = true;
SwitchConfigWhenShieldLow = false;
Add this to your code. :)
no offence, but this wil only let him run away from the enemy, after that he returns to alien he was shooting ..
It wil not jump

correct me if im wrong?
03/27/2013 14:08 relentlessv#7
Thanks for the advice jorg, i will try that method :)

EDIT: and Enday, if i added the FleeOnAttacked line, it would run from every NPC and player :S
03/27/2013 14:43 Dwarf.#8
Please ask in [Only registered and activated users can see links. Click Here To Register...] or [Only registered and activated users can see links. Click Here To Register...] , and do not open a XXX topics about PBDO
03/27/2013 17:28 Arby#9
#closed