What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Summon repair droid

trasser

New Member
Joined
Sep 15, 2014
Messages
91
Is it possible create plugin for summon repair droid if:

Bot stay on coordinates XYZ & not in combat & not moving & has =< 2 free backpack's slots?


Atm using repair droid for selling stuff buged and disabled.

But i can set in profile safe spot and set vendor name as "field repair droid", so.


1. Bot has full inventory and run to fake vendor spot
2. Plugin summon droid on safe spot
3. Bot sell stuff and run back to grind
4. Profit!
 
Last edited:
Test in manual mode - work fine.

Write in profile:

<Vendors>
<Hotspot Name="Advanced Field Repair Droid" X="33.86976" Y="-1.088998" Z="-24.03471" />
</Vendors>

Bot with full inventory run to spot and stay here.
Summon droid by hands. Bot start use droid after few sec - sell and continue grind.

I try search info in API docs about check inventory status - no info or i dont know where seek
 
Found it!?

http://docs.buddywing.com/html/P_Buddy_Swtor_Objects_TorPlayer_FreeInventorySlots.htm

Code:
public int FreeInventorySlots { get; }

How to use?
Code:
 If (Condition="(Me.Position.X &gt; 55) and (Me.Position.X &lt; 70) and (Me.Position.Y &gt; 12) and (Me.Position.Y &lt; 18) and (Me.Position.Z &gt; -224) and (Me.Position.Z &lt; -209))

 if (!BuddyTor.Me.IsCasting && !BuddyTor.Me.IsMoving && !BuddyTor.Me.InCombat && BuddyTor.Me.FreeInventorySlots =< 2)

 Spell.Cast("Deploy Field Repair Droid")
 
Someone can help me? What wrong?

Code:
        private static TorPlayer Me { get { return BuddyTor.Me; } }


        public static int FreeInvSlots()
        {

                using (BuddyTor.Memory.AcquireFrame())
                {
                    return BuddyTor.Me.FreeInventorySlots;
                }

        }



        /// <summary> Executes the pulse action. This is called every "tick" of the bot. </summary>
        public void OnPulse()
        {
            // Don't run in combat.
            if (BuddyTor.Me.InCombat)
                return;

            // Only every 10s.
            if(DateTime.Now.Subtract(LastChecked).TotalSeconds > 10)
            {
                LastChecked = DateTime.Now;
                if(BuddyTor.Client.AreaID == 0x4000003DC052E001 && Me.Position.X >= 33 && Me.Position.X <= 40 && Me.Position.Z >= -24 && Me.Position.Z <= -20  && Me.Position.Y >= -1.088998)
                {
                    if(!Me.IsCasting && !Me.IsMoving && FreeInvSlots() <= 2)
                    using (BuddyTor.Memory.AcquireFrame())
                    {
                        BuddyTor.Me.UseQuickslotAction(9);
                    }
                }
            }
        }

And get errors in log:

Code:
2016-04-18 18:44:15,591 [Main Bot Thread] ERROR BotMain - System.NullReferenceException: Ссылка на объект не указывает на экземпляр объекта.
   в Buddy.CommonBot.Logic.BrainBehavior.?????????????????????????????????????????.?????????????????????????????????????????(Object )
   в Buddy.BehaviorTree.Action.RunAction(Object context)
   в Buddy.BehaviorTree.Action. V%\.A"e`<~bkXga?\*gDu(D5|!.MoveNext()
   в Buddy.BehaviorTree.Composite.Tick(Object context)
   в Buddy.BehaviorTree.Sequence.mlxggBje}zj(c8iOT!)9) WX%.MoveNext()
   в Buddy.BehaviorTree.Composite.Tick(Object context)
   в Buddy.BehaviorTree.Decorator.rqXya!Pp9i5}/#k6R;sQmb?h#.MoveNext()
   в Buddy.BehaviorTree.Composite.Tick(Object context)
   в Buddy.BehaviorTree.PrioritySelector.mlxggBje}zj(c8iOT!)9) WX%.MoveNext()
   в Buddy.BehaviorTree.Composite.Tick(Object context)
   в Buddy.BehaviorTree.PrioritySelector.mlxggBje}zj(c8iOT!)9) WX%.MoveNext()
   в Buddy.BehaviorTree.Composite.Tick(Object context)
   в Buddy.Common.HookExecutor.Run(Object context)
   в Buddy.BehaviorTree.Action.RunAction(Object context)
   в Buddy.BehaviorTree.Action. V%\.A"e`<~bkXga?\*gDu(D5|!.MoveNext()
   в Buddy.BehaviorTree.Composite.Tick(Object context)
   в Buddy.BehaviorTree.Decorator.rqXya!Pp9i5}/#k6R;sQmb?h#.MoveNext()
   в Buddy.BehaviorTree.Composite.Tick(Object context)
   в Buddy.BehaviorTree.PrioritySelector.mlxggBje}zj(c8iOT!)9) WX%.MoveNext()
   в Buddy.BehaviorTree.Composite.Tick(Object context)
   в Buddy.CommonBot.BotMain.?????????????????????????????????????????()
 
Back
Top