Any chance to get Insignias upgraded?

Post Reply
nw_sony
Advanced Member
Advanced Member
Posts: 33
Joined: Tue Jun 21, 2016 6:21 am

Any chance to get Insignias upgraded?

Post by nw_sony »

For enchantments I use the QuesterPlugin, but I don't think there's a module to upgrade Insignias?

I'm specifically interested to solve the "Artifacts and Insignias" tutorial quest. At some point you have to upgrade a "Wooden Insignia" and the bot is unable to do so.
michaelprog
Contributor
Contributor
Posts: 534
Joined: Wed Aug 31, 2016 7:32 am

Re: Any chance to get Insignias upgraded?

Post by michaelprog »

Did you try an Upgrade Menager from QuesterAssistant?
nw_sony
Advanced Member
Advanced Member
Posts: 33
Joined: Tue Jun 21, 2016 6:21 am

Re: Any chance to get Insignias upgraded?

Post by nw_sony »

michaelprog wrote: Mon Aug 23, 2021 5:11 am Did you try an Upgrade Menager from QuesterAssistant?
Yes. It says "this is nothing that can be upgraded"
michaelprog
Contributor
Contributor
Posts: 534
Joined: Wed Aug 31, 2016 7:32 am

Re: Any chance to get Insignias upgraded?

Post by michaelprog »

nw_sony wrote: Sun Aug 08, 2021 11:48 am For enchantments I use the QuesterPlugin, but I don't think there's a module to upgrade Insignias?

I'm specifically interested to solve the "Artifacts and Insignias" tutorial quest. At some point you have to upgrade a "Wooden Insignia" and the bot is unable to do so.
Yes, the tutorial's enchant and insignia has invalid Progression logic, so it can't be upgaded by QuesterAssistant.

However, forced RP-feeding and evolving are possible. I had to write a special plugin-action for this.
nw_sony
Advanced Member
Advanced Member
Posts: 33
Joined: Tue Jun 21, 2016 6:21 am

Re: Any chance to get Insignias upgraded?

Post by nw_sony »

michaelprog wrote: Tue Sep 14, 2021 10:23 am
nw_sony wrote: Sun Aug 08, 2021 11:48 am For enchantments I use the QuesterPlugin, but I don't think there's a module to upgrade Insignias?

I'm specifically interested to solve the "Artifacts and Insignias" tutorial quest. At some point you have to upgrade a "Wooden Insignia" and the bot is unable to do so.
Yes, the tutorial's enchant and insignia has invalid Progression logic, so it can't be upgaded by QuesterAssistant.

However, forced RP-feeding and evolving are possible. I had to write a special plugin-action for this.
Thanks! Any hints how to approach this. Is there any useful Astral API to help with the refining process?
nw_sony
Advanced Member
Advanced Member
Posts: 33
Joined: Tue Jun 21, 2016 6:21 am

Re: Any chance to get Insignias upgraded?

Post by nw_sony »

Nevermind, I figured it out. In case anyone was wondering as well. Here's my custom action:

code: Select all

using Astral.Logic.Classes.Map;
using MyNW.Classes;

namespace MyPlugin.Actions.Leveling
{
    public class UpgradeWoodenInsignia : Astral.Quester.Classes.Action
    {
        public UpgradeWoodenInsignia() {

        }

        private const string WoodenID = "Insignia_Barbed_Tutorial_R1";

        public override string ActionLabel => "Upgrade Wooden Insignia";

        public override bool NeedToRun => true;

        public override string InternalDisplayName => "UpgradeWoodenInsignia";

        public override bool UseHotSpots => false;

        protected override bool IntenalConditions => true;

        protected override Vector3 InternalDestination => MyNW.Classes.Vector3.Empty;

        protected override ActionValidity InternalValidity => new Astral.Quester.Classes.Action.ActionValidity();

        public override void GatherInfos()
        {
        }

        public override void InternalReset()
        {
        }

        public override void OnMapDraw(GraphicsNW graph)
        {
        }

        public override ActionResult Run()
        {
            foreach (var InventorySlot in MyNW.Internals.EntityManager.LocalPlayer.BagsItems)
            {
                if (InventorySlot.Item.ItemDef.InternalName == WoodenID) {
                    InventorySlot.Feed(10000);
                    InventorySlot.Evolve();
                }
            }

            return Astral.Quester.Classes.Action.ActionResult.Completed;
        }
    }
}

tombotwell
Regular Botter
Regular Botter
Posts: 10
Joined: Wed Mar 24, 2021 6:17 pm

Re: Any chance to get Insignias upgraded?

Post by tombotwell »

Thank you for sharing that! Wonderful
Post Reply