Hey guys,
I’ve been using the rusher and rushee scripts to rush 6 socket quest characters at a time. I’ve got it set up so pretty much everything is running perfectly, but I’ve noticed one major error. The five rushee characters that are not questers always get hung up in the transition from act 2 to act 3 because they never talk to Cain in A2, they can’t enter the rusher’s TP to Harem so they never make it to talking to Jerhyn. I was able to solve this manually by making the rushee’s talk to Cain individually, then they resumed the rush and completed without any other problems. But this sadly detracts from the automation of the endeavor. So, I figured it would be pretty easy to add a line in Rushee.js to have the Rushee’s talk to Cain before attempting to enter the Harem portal. Here’s what I found in Rushee.js:
case 3:
if (me.act >= 3) {
break;
}
Pather.usePortal(50, Config.Leader);
Pather.moveToExit(40, true);
npc = getUnit(1, NPC.Jerhyn);
if (!npc || !npc.openMenu()) {
Pather.moveTo(5166, 5206);
return false;
}
me.cancel();
Pather.moveToExit(50, true);
Pather.usePortal(40, Config.Leader);
Town.move(NPC.Meshif);
npc = getUnit(1, NPC.Meshif);
if (!npc || !npc.openMenu()) {
return false;
}
Misc.useMenu(0x0D38);
break;
So, I figured, all I need to do is add a few lines to talk to Cain before attempting to use the leader’s portal. Here’s what I tried adding before the line Pather.usePortal(50, Config.Leader);:
Town.move(NPC.Cain);
npc = getUnit(1, NPC.Cain);
if (!npc || !npc.openMenu()) {
return false;
}
me.cancel();
Originally I was intending to post this as a question, but in the process of writing up my question, it appears I found the solution to the problem. Yay, learning I thought it would probably still be valuable to share this with the class, in case anyone else was experiencing the same issue.