kolton / d2bot-with-kolbot

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

Error in Gamble - Bad Gambling System config. #1118

Open thepoprock opened 5 years ago

thepoprock commented 5 years ago

Hey guy. I'm using the default gambling config and I keep getting this error.

05:01:13 (batty_three) Error in Gamble (gamble.js #13) Bad Gambling System config. (Area: 1, Ping:78, Game: XXXXX)

Not sure where the error is or what I need to do to fix it. my bot DOES gamble, when it is in certain acts. Never seen it gamble in a1, though.

thoughts?

here's the associated file:

/**

function Gamble() { var gold, info = Gambling.getInfo(), needGold = false;

if (!info) {
    throw new Error("Bad Gambling System config.");
}

me.maxgametime = 0;
Town.goToTown(1);

addEventListener('copydata',
    function (mode, msg) {
        if (needGold && mode === 0 && info.goldFinders.indexOf(msg) > -1) {
            print("Got game request from " + msg);
            sendCopyData(null, msg, 4, me.gamename + "/" + me.gamepassword);
thepoprock commented 5 years ago

anyone know anything about this?

rc10boy commented 5 years ago

we need so help plz same thing i am geting

5noop commented 5 years ago

Read what a script does before setting it to true. Gamble.js is a special script that needs 2+ chars and some configuration.