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;
}
}
}






or 