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

Selling specific items when Vendor Window is open

yea, your doing it wrong, the method i wrote requires a variable.
you need to call it like this.
Code:
SellItem("Living Seed");
declaring it outside wont work at all. it shouldnt of even compiled for you.
change it and see if that works.
 
yea, your doing it wrong, the method i wrote requires a variable.
you need to call it like this.
Code:
SellItem("Living Seed");
declaring it outside wont work at all. it shouldnt of even compiled for you.
change it and see if that works.
Yeah I looked at it and was like, "WTF is this compiler thinking?"
Not your fault, very simple error. I've had far worse lol.
 
Thanks for that guys, I still have a lot to learn :(

However, it still doesnt work :( Same thing occurs as before - log prints Selling Lifegiving Seed, but nothing actually happens.
I've tried changing the code myself and using no1knowsy fixed version - both ways did not work :(
 
Last edited:
Fill your bags will random crap and a couple stacks of seeds. Start a profile and make sure it not spamming selling seeds the whole time. If it is then you'll need to add a check for if the vendor window is up, then you begin your foreach statement

The point of loading the profile is so that it'll have to do a vendor run since you have full bags. Most likely it's spamming your log with selling selling, even when vendor window isn't up because you haven't checked for it. So let it do a vendor run and see if it sells them. Make sure the profile is set to not mail anything, so it'll have to sell it all.
 
Last edited:
Fill your bags will random crap and a couple stacks of seeds. Start a profile and make sure it not spamming selling seeds the whole time. If it is then you'll need to add a check for if the vendor window is up, then you begin your foreach statement

The point of loading the profile is so that it'll have to do a vendor run since you have full bags. Most likely it's spamming your log with selling selling, even when vendor window isn't up because you haven't checked for it. So let it do a vendor run and see if it sells them. Make sure the profile is set to not mail anything, so it'll have to sell it all.

I did a vendor window check and its only displaying a log message when the window is visible. Also, I have run the plugin on couple of different bots over night with the same results. Something definitely wrong, cant figure out what ;/
 
it turns out its much simpler.

just make sure you run the method while the vender window is open so it wont cause you issues.
Code:
        public void SellItem(string Itemname)
        {
            foreach (WoWItem item in Me.BagItems)
            {
                if (item.Name == Itemname)
                {
                    Logging.Write("Selling Item {0}", item.Name);
                    item.UseContainerItem();
                }
            }
        }

this does work, ive tested it.
 
if you can wait, im working on updating Mr.ItemRemover with Sell Functionality so it will sell items when it visits the vender.
 
it turns out its much simpler.

just make sure you run the method while the vender window is open so it wont cause you issues.
Code:
        public void SellItem(string Itemname)
        {
            foreach (WoWItem item in Me.BagItems)
            {
                if (item.Name == Itemname)
                {
                    Logging.Write("Selling Item {0}", item.Name);
                    item.UseContainerItem();
                }
            }
        }

this does work, ive tested it.

Yeah I was gonna see if you could use the itemtosell.UseContainerItem();
Good to know it works :D
 
Thanks a lot guys!

Finally got it to work, now when I think about it it all seems so obvious :)
 
almost done with the new version of Mr.ItemRemover, and i cleaned up a lot of the old WTF was i thinking code to the remover part so it should work a lot better.
 
almost done with the new version of Mr.ItemRemover, and i cleaned up a lot of the old WTF was i thinking code to the remover part so it should work a lot better.

any progress with this?
 
Back
Top