Jump to content

Looting inventory item containing quest items


Recommended Posts

I fixed it with:

And put it in a if has quest or something :)

ItemsManager.UseItem()

And then Runcode

Lua.LuaDoString(""action quest button":Click()");

 

"action quest button" = the button to accept 

 

If you need the complete code send me a pm - and I'll answer when im on my pc :)

Link to comment
Share on other sites

Hmm, I might have explained my issue in a wrong way.
I do not want to start a quest from an item (in inventory). 
I want to open an item-container in my inventory containing items. eg. http://db.vanillagaming.org/?item=11107 (This item-container is provided when accepting a quest).
 

Link to comment
Share on other sites

19 hours ago, insanity said:

Hmm, I might have explained my issue in a wrong way.
I do not want to start a quest from an item (in inventory). 
I want to open an item-container in my inventory containing items. eg. http://db.vanillagaming.org/?item=11107 (This item-container is provided when accepting a quest).
 

Just Use the first part of the code then :)

Should open the container 

Link to comment
Share on other sites

Hey, thank you. Ill try that later, even tho I think I've already tried that. Dont think the bot is "shift-using" the item and there for not able to pick up the containing items.

Link to comment
Share on other sites

  • 1 year later...
1 hour ago, Memus said:

I have the same problem.
Any working solution?

I use this "Run code" step on a quest file to open clams i find while fighting .  You should be able to change the item ID and the IF conditions to suit your needs.

 

Thread t = new Thread(() =>
{
    while (robotManager.Products.Products.IsStarted)
    {
        if (Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause)
        {
            if (ObjectManager.Target.IsValid && ObjectManager.Target.IsAlive)
            {
robotManager.Helpful.Keyboard.DownKey(wManager.Wow.Memory.WowMemory.Memory.WindowHandle, System.Windows.Forms.Keys.ShiftKey);
      Thread.Sleep(robotManager.Helpful.Others.Random(50, 150));
      ItemsManager.UseItem(7973);
      Thread.Sleep(robotManager.Helpful.Others.Random(50, 150));
      robotManager.Helpful.Keyboard.UpKey(wManager.Wow.Memory.WowMemory.Memory.WindowHandle, System.Windows.Forms.Keys.ShiftKey);
      Thread.Sleep(robotManager.Helpful.Others.Random(50, 150));
            }
        }
        Thread.Sleep(10000);
    }
});
t.Start();

Link to comment
Share on other sites

Thanks mate!
I tried that approach but i didn't work...
And know I see why...
As sloppy as I am, I used "System.Windows.Forms.Keys.Shift" instead of "System.Windows.Forms.Keys.ShiftKey"
Embarassing :S

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...