Skocz do zawartości

[Inne] Mój Task na Krystaliony + SrenurnerR 2 gala


Zaklinacz Dusz

Rekomendowane odpowiedzi

Witam chciałem się podzielić moim taskiem na Krystaliony . NWM jak dać to w jakiś spoiler czy coś żeby to na cały temat nie dawać . -.-

 

 

 

 

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.SelectedShip != null && BMain.Me.SelectedShip.Name == BMain.Npc.Kristallin | BMain.Me.SelectedShip.Name == BMain.Npc.Kristallon | BMain.Me.SelectedShip.Name == BMain.Npc.StreuneR | BMain.Me.SelectedShip.Name == BMain.Npc.BossStreuneR)

{

if (BMain.Me.SelectedShip.Shield > 0) {LaserAmmoType = Enums.LaserAmmoType.LCB_10;} else {LaserAmmoType = Enums.LaserAmmoType.LCB_10;}

MinDurability = 75;

StandardConfiguration = 1;

DroneFormation = Enums.DroneFormation.Diamond;

UsePet = true;

PetMode = Enums.PetMode.Auto_Looter;

RepairPetWhenDead = true;

}

else

{

MinDurability = 50;

StandardConfiguration = 1;

DroneFormation = Enums.DroneFormation.Diamond;

UsePet = false;

 

}

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()

{

Dictionary<TaskLoadDelegate, int> TaskLoadDictionary = new Dictionary<TaskLoadDelegate, int>();

 

TaskLoadDictionary.Add(

delegate()

{

 

if (!ActionList.Contains("Map 1")) {

BMain.WriteLog("Task created with Taskcreator by Dr. Moc"); Reset();

 

TaskMap = "3-7";

HuntNpcsList.Add(BMain.Npc.Kristallin);

HuntNpcsList.Add(BMain.Npc.Kristallon);

HuntNpcsList.Add(BMain.Npc.StreuneR);

HuntNpcsList.Add(BMain.Npc.BossStreuneR);

 

AttackNpcs = true;

BMain.WriteLog("We will attack NPCs");

AttackTaggedNpcs = false;

AttackBossNpcs = true;

BMain.WriteLog("We will attack boss NPCs");

 

Repair = true;

MinDurability = 50;

BMain.WriteLog("We will repair if hitpoint are lower then 50%");

StandardConfiguration = 1;

SwitchConfigWhileFleeing = true;

BMain.WriteLog("We will switch confi while fleeing");

Sell = true;

Refine = true;

BMain.WriteLog("We will refine ressources");

RefinePromerium = false;

DroneFormation = Enums.DroneFormation.Diamond;

BMain.WriteLog("We will use drone formation Diamond");

CollectBonusBoxes = true;

BMain.WriteLog("We will collect bonusboxes");

CollectSpecialBoxes = true;

BMain.WriteLog("We will collect eventboxes");

CollectCargoBoxes = true;

BMain.WriteLog("We will collect cargoboxes");

SafeBotting = false;

LaserAmmoType = Enums.LaserAmmoType.LCB_10;

RocketAmmoType = Enums.RocketAmmoType.PLT_2026;

RocketLauncherAmmoType = Enums.RocketLauncherAmmoType.ECO10;

 

ActionList.Add("Map 1");

}

}, 100);

TaskLoadDictionary.Add(

delegate()

{

if (!ActionList.Contains("Map 2"))

{

BMain.WriteLog("Task created with Taskcreator by Dr. Moc");

Reset();

 

TaskMap = "3-8";

HuntNpcsList.Add(BMain.Npc.Kristallin);

HuntNpcsList.Add(BMain.Npc.Kristallon);

HuntNpcsList.Add(BMain.Npc.StreuneR);

HuntNpcsList.Add(BMain.Npc.BossStreuneR);

 

AttackNpcs = true;

BMain.WriteLog("We will attack NPCs");

AttackTaggedNpcs = false;

AttackBossNpcs = true;

BMain.WriteLog("We will attack boss NPCs");

 

Repair = true;

MinDurability = 50;

BMain.WriteLog("We will repair if hitpoint are lower then 50%");

StandardConfiguration = 1;

SwitchConfigWhileFleeing = true;

BMain.WriteLog("We will switch confi while fleeing");

Sell = true;

Refine = true;

BMain.WriteLog("We will refine ressources");

RefinePromerium = false;

DroneFormation = Enums.DroneFormation.Diamond;

BMain.WriteLog("We will use drone formation Diamond");

CollectBonusBoxes = true;

BMain.WriteLog("We will collect bonusboxes");

CollectSpecialBoxes = true;

BMain.WriteLog("We will collect eventboxes");

CollectCargoBoxes = true;

BMain.WriteLog("We will collect cargoboxes");

SafeBotting = false;

LaserAmmoType = Enums.LaserAmmoType.LCB_10;

RocketAmmoType = Enums.RocketAmmoType.PLT_2026;

RocketLauncherAmmoType = Enums.RocketLauncherAmmoType.ECO10;

 

ActionList.Add("Map 2");

}

}, 20);

CycleTaskDictionary = TaskLoadDictionary;

}

}

}

 

Zbieram like + ;]

Odnośnik do komentarza

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

  • Ostatnio przeglądający forum [Inne] Mój Task na Krystaliony + SrenurnerR 2 gala   0 użytkowników
    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...