From time to time I get error while bot is scanning NPC with MiniShopBot, not happening always but at least 4-5 times a day resulting in recursion error and skipping the current script it is happening in.
Console shows this:
Error in Travincal (default.dbj #79) too much recursion
Error Log looks like this:
Packet.buyItem@misc.js:2303, @default.dbj:81, @default.dbj:81, @default.dbj:81, @default.dbj:81, @default.dbj:81, @default.dbj:81, @default.dbj:81, @default.dbj:81, @default.dbj:81, @default.dbj:81, @default.dbj:81, @default.dbj:81, @default.dbj:81, @default.dbj:81, @default.dbj:81, @default.dbj:81, @default.dbj:81, @default.dbj:81, @default.dbj:81, @default.dbj:81, @default.dbj:81, @default.dbj:81, @default.dbj:81, ........keeps going on and on, hence recursion :sweat_smile:
The Line it’s calling from in default.dbj is this:
this.itemEvent = function (gid, mode, code, global) {
if (gid > 0 && mode === 0) {
Pickit.gidList.push(gid);
}
};
Could it be a internal error or could one of my pickit lines cause this?