kolton / d2bot-with-kolbot

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

force minishopbot #1574

Closed gtoilet closed 5 years ago

gtoilet commented 5 years ago

trying to send toon to npc interact trade and push minishopper this interacts npc and trades but the minishopper don't scan npc

    Town.move(NPC.Drognan);
    Drognan = getUnit(1, NPC.Drognan);
    Drognan.startTrade("MiniShopBot");  
DarkHorseDre commented 5 years ago

Why cant you just call Town.shopItems? it seems to do all the shopbot stuff inc. selecting and interacting npc in whichever town youre in

gtoilet commented 5 years ago

that doesn't show that it scanned for items via the minishopbot msg in console

    Town.move(NPC.Drognan);
    Drognan = getUnit(1, NPC.Drognan);  
    Drognan.startTrade("Town.shopItems");

or when I remove the Drognan.startTrade and just have it as Town.shopItems

guess ill try to work in the function for buying potions thanks men

DarkHorseDre commented 5 years ago

so your additional requiremnetn is that you want it to show what it scanned in the console? if this isnt standard, add it via D2Bot.printToConsole("messge", n);?

what im staying is taht at start of town.js you have this.shopItems(); so why cant you just do that whenever you need?

gtoilet commented 5 years ago

this works

Town.initNPC("Shop", "drogcheck"); Town.shopItems(); me.cancel();