kolton / d2bot-with-kolbot

d2bot game manager by D3STROY3R with kolbot libs by kolton for d2bs
346 stars 334 forks source link

Make bot buy a specific item at gheed #2338

Open ghost opened 4 years ago

ghost commented 4 years ago

I'm looking for a Fool's Cutlass w/ Zeal Charges in Trade at gheed, is there any way I can say to my bot to go to gheed and look for that item at every beginning of each game ?

DarkHorseDre commented 4 years ago

Have you tried 'Scripts.ShopBot ='? The comments for it in your config indicate it should work for you.

ghost commented 4 years ago

Have you tried 'Scripts.ShopBot ='? The comments for it in your config indicate it should work for you.

will try it ty

gtoilet commented 4 years ago

Add it in a nip

Bcubrich commented 4 years ago

If you add your item to any of the .nips you run then make sure

Config.MiniShopBot = true; // Scan items in NPC shops.

around line 451 in your profile that should work. They will check all merchants that they regularly visit too.

DarkHorseDre commented 4 years ago

it's right to add items to the nips and enable minishopbot, but the problem is that @alz512 wanted to find gheed specifically - minishopbot scans all vendors you go to but not specific ones IIRC.

Gheeds is only visited for gambling and when in act 1 AFAIK, so it would be better to use shopbot if you need to visit gheed and for a specific item (that most others wont sell at that difficulty/act)

gtoilet commented 4 years ago

or you can do this in script ..... also have the item in a nip file

if (me.area !== 1) {

    Town.move(NPCGheed);
    Gheed= getUnit(1, NPC.Gheed);
    Gheed.startTrade("trade");

}