Can some 1 help ?

09/02/2012 13:14 zCrossYuuki#1
hi i can some 1 create me Task on PBDO only Boxs on 4-3 , Auto rapier , Auto Invisible Buy , run away after enemy attack .
because my TaskCreator no work :(

THX for all .
09/02/2012 13:16 knuck#2
Quote:
Originally Posted by zCrossYuuki View Post
hi i can some 1 create me Task on PBDO only Boxs on 4-3 , Auto rapier , Auto Invisible Buy , run away after enemy attack .
because my TaskCreator no work :(

THX for all .
just edit Battlemap Cloud Example Task.cs in your tasks
09/02/2012 13:22 zCrossYuuki#3
Quote:
Originally Posted by knuck View Post
just edit Battlemap Cloud Example Task.cs in your tasks
ok i m opened ither task in C ++ and i chavge

TaskMap = "x-1";
to
TaskMap = "4-3";
?

here full script:

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()
        {
		TaskScript = new TaskScript(
		delegate()
		{

			if (BMain.Me.AttackedByPlayer == true)
			{
                                    if (BMain.Me.Cloaked == true)
                                    {
			                        BMain.Actions.UseEmp();
									BMain.WriteLog("Use EMP");
                                    }
                                    else
                                    {
                                    BMain.Actions.UseCloak();
                                    BMain.Actions.UseEmp();
									BMain.WriteLog("Buy cloak and use EMP");
			                        }
			}
			else
			{

			}
			return -1;
		},
		delegate()
				{
			return true;
		},
		1000);

            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_);
			//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 = "4-3";

                AttackNpcs = false;

                AttackBossNpcs = false;

                Repair = true;
                MinDurability = 50;
                BMain.WriteLog("We will repair if hitpoint are lower then 50%");
                StandardConfiguration = 1;
                FleeOnEnemyInRadius = true;
                BMain.WriteLog("We will flee from enemies");
                FleeOnClanWarEnemyInRadius = true;
                BMain.WriteLog("We will flee from clan war enemies");
                FleeOnAttacked = true;
                BMain.WriteLog("We will flee if we get attacked");
                BuyInvisibleAddon = true;
                BMain.WriteLog("We will bot invisible");
                UseExtraGateEnergy = true;
                GateToUseExtraEnergyFor = GalaxyGateType.Zeta;
                BMain.WriteLog("We will use Extra Energy for Zeta");
                CollectBonusBoxes = true;
                BMain.WriteLog("We will collect bonusboxes");
                CollectSpecialBoxes = true;
                BMain.WriteLog("We will collect eventboxes");
                SafeBotting = false;
                ExtremeBotting = true;
                LaserAmmoType = Enums.LaserAmmoType.LCB_10;
                RocketAmmoType = Enums.RocketAmmoType.PLT_2026;
                RocketLauncherAmmoType = Enums.RocketLauncherAmmoType.ECO10;

                ActionList.Add("PBDO-Bot Task");
            }
        }
    }
}