Open mrandros opened 5 years ago
I'm still learning JS, but looks like the stone variable is undeclared? Stone is not used anywhere else except for that while loop on (my line 58).
Also, this line confuses me: stones.forEach(function (stone) {
Get someone who knows coding to validate, looks simple enough to fix if I'm on the right lines..
if(!me.getQuest(4,4)){Stones = [getUnit(2,17),getUnit(2,18),getUnit(2,19),getUnit(2,20),getUnit(2,21)];}
while(!me.getQuest(4,4)&& me.getItem(525)){
Stones.forEach(function(stone){
if(!stone.mode){
Attack.securePosition(stone.x,stone.y,10,250);
Misc.click(0,0,stone);
}
});
}
Here a little help
@aim2kill - have you changed the code in any way?
@DarkHorseDre i have no idea sadly. I kinda hoped someone would jump in here and maybe tell more about this, as the community is quite big 💃
Update:
Using the suggested fix from #271 got my characters to take the scroll and open portal, but not rescue cain. They are not walking in and rescue cain, instead they run to Dark Woods, talk to the tree, and since it does not drop a scroll, it makes an error. Despite the portal being open, it won't walk in and grab Wirt's Leg to make cow, but it will enter to kill Griswold
This was achieved without the suggested fix from aim2kill, and it does not seem to help on characters not having the portal open either
What a mystery
I set Tristram to true, but when the bots trying to complete Tristram quest, it's bugging out
At first, it bug out on the scroll in dark wood, prompting "Error in Tristram (pickit.js #227) unit is undefined"
Then i tried this "fix", and it got past Dark Woods, but then bugging at the Stones, and throwing "Error in Tristram (tristram.js #57) stone is undefined"
The fix i tried: https://github.com/kolton/d2bot-with-kolbot/issues/271
Is it possible to make this work as intended somehow?