What's new

Tutorial Automatically Redeem VIP Codes for Borderlands 3

Risking Perfect

Risking Perfect

I'm not dead, Just deployed
Super Moderators
Grammar Nazi Mr. Nice Guy Scaling the Mountain
Messages
966
Solutions
5
Reaction score
287
Points
492
Sin$
7
so if we put this new updated code in it will unlock more?

It has a few more codes on it so yes.
 
WhoBangdMurfsMom

WhoBangdMurfsMom

PLAYSTATION
Messages
869
Solutions
1
Reaction score
394
Points
145
Sin$
7
f'n sweet dude

edit
so i just redid the steps with new codes and got 2000 more points, thanks:cool:
 
Risking Perfect

Risking Perfect

I'm not dead, Just deployed
Super Moderators
Grammar Nazi Mr. Nice Guy Scaling the Mountain
Messages
966
Solutions
5
Reaction score
287
Points
492
Sin$
7
any update on this?

Yes, if there is 1 new email code.

Code:
/*
As of 09/25/2019
vault type: cid = 5261
diamond type: cid = 5262
email type: cid = 5264
creator code: cid = 5263
boost type: 5721
After login, navigate to
https://2kgames.crowdtwist.com/ -- This is a blank page, as there is no landing page
https://2kgames.crowdtwist.com/widgets/t/code-redemption/9902/#2 -- This is one of the components of the redemption page, if you'd rather see that
*/

var badcodes = [];
var pointsredeemed = [];
var points = 0;
var temppoints;
var totalpointsredeemed = 0;
var emailpointsredeemed = 0;
var creatorpointsredeemed = 0;
var vaultpointsredeemed = 0;
var emailpoints;
var creatorpoints;
var vaultpoints;

var apibase = 'https://2kgames.crowdtwist.com/code-redemption-campaign/redeem?cid=';

async function httppost(codeinfo) {
var response = await fetch(apibase + codeinfo.cid, {
     method: 'POST',
    mode: 'cors',
     body: JSON.stringify({
         code: codeinfo.code
     }),
     headers: {
         'Content-type' : 'application/json'
     }
})

let result = await response.json();

if (result.points) {
    pointsredeemed.push(result.points);
    temppoints = result.points;
    return temppoints;
} else {
    badcodes.push(codeinfo.code);
    return null;
}


return null;
}
var vaultcid = 5261;
var emailcid = 5264;
var creatorcid = 5263;
var boostcid = 5721;


var EMAILS = [
    "2kLove",
    "ABCEASYAS123",
    "ALMOSTTHERE",
    "BL3ATE3",
    "BL3REVEAL",
    "BL3WELCOME",
    "BUILDURSQUAD",
    "CLAPTASTIC",
    "Dasherz",
    "DUCTTAPEMOD",
    "FIGHT4SANCTUARY",
    "FORTNITEXMAYHEM",
    "FRESHBOOTY",
    "HEYSUGAR",
    "ITSHERE",
    "JABBER",
    "LESSTHANTHREE",
    "LOOTLOOTLOOT",
    "MADSKILLZ",
    "MYMAIN",
    "ONTHEHUNT",
    "OVERCLOCKED",
    "OVERONEBILLION",
    "POWERUPEMAIL",
    "SOHAPPYTOGETHER",
    "Unblinkingeye",
    "PS4MAYHEM",
    "ALLBORDERLANDSALLDAY",
    "DONTFORGET",
    "THEBORDERLANDSSHOW",
    "ALLABOARD"
]

var CREATORS = [
    "PROFESSORBROMANVIP",
    "KINGGOTHALIONVIP",
    "PietSmietVIP",
    "JoltzDude139VIP",
    "JvtvVIP",
    "AdmiralbahrooVIP",
    "Ki11erSixVIP",
    "MitsuShowVIP",
    "TessachkaVIP",
    "LaraLoftVIP",
    "MitsuShowE3",
    "TessachkaE3",
    "EdEMonsterE3",
    "Joltzdude139E3",
    "Ki11ersixE3",
    "KingGothalionE3",
    "ProfessorBromanE3",
    "AdmiralBahrooE3",
    "dammit2hellE3",
    "NAYSYE3",
    "LUCKYBONEZE3",
    "GRIMMBONEZE3",
    "CohhVIP",
    "Cure4Kids",
    "GREGORONKH"
]

var VAULTS = [
    "WUBWUBWUB",
    "JOYPUKE",
    "LOADINGBAR",
    "IGNVIP",
    "Borderlands3vip",
    "TWITCHVIP",
    "GAMESPOTVIP",
    "FACEBOOKVIP",
    "SHACKNEWSVIP",
    "GAMEVIP",
    "WEGOTUBOO",
    "LOWCOSTCOSPLAYE3",
    "BORDERLANDSCOSPLAYE3",
    "ILOVEBAGUETTE",
    "BL3FREVENTVIP",
    "WHATCHUWANT",
    "MUSHYSNUGGLEBITES",
    "OOPS",
    "BORDERLENS",
    "Skagbait",
    "VIP-GUNWALL",
    "VIP-GIFTSHOP",
    "VIP-REDCHEST",
    "VIP-COV",
    "VIP-MOXXI",
    "VIP-ENVART",
    "VIP-CALYPSO",
    "VIP-CHARCONCEPT",
    "VIP-BOXCONCEPT",
    "VIP-PHOTOBOOTH",
    "BL3MUSEUMCOSPLAY",
    "3DJUEGOSVIP",
    "HALVERHAHN",
    "BRINGMEABUCKET",
    "MAYHEMPRIDE",
    "PWR2PLYRS",
    "THESEPRETZELSSUCK",
    "TINKABOUTIT",
    "LOOTSPLOSION",
    "BONERFART",
    "LETSMAKESOMEMAYHEM",
    "MAYHEM",
    "CRUMPOCALYPSE",
    "Childrenofthevault",
    "WACHSK4G",
    "JABBERKUMP3L",
    "D1G1KLON",
    "RA1LGUN",
    "5piderantcenturio",
    "Phasenkl4mmerung",
    "1ronbear",
    "Sntnl",
    "Phasenproj3ktion",
    "Ph4senschlag",
    "1CODE",
    "GODSDONTNEGOTIATE",
    "Ehrenmann",
    "TWOWEEKS",
    "VIP-PAXINIT",
    "VIP-PAXALAX",
    "VIP-SUPERPAX",
    "VIP-EATINGPAX",
    "JVMVIP",
    "VIP-LOOTPAX",
    "VIP-PAXSCAVENGER",
    "PAXSCAVENGER",
    "VIP-PAXATYA",
    "VIP-PAXATTACK",
    "VIP-TAKEITTOTHEPAX",
    "VIP-PAXTASTIC",
    "SMARTOYSVIP",
    "MEDIAMARKTVIP",
    "Bolvip",
    "GAMEMANIAVIP",
    "ALLYOURGAMESVIP",
    "NEDGAMEVIP",
    "YOURGAMEZONEVIP",
    "VIP-DEATHANDPAXES",
    "VIP-SMACKTHATPAX",
    "VIP-KEEPINGITPAX",
    "INTERTOYSVIP",
    "PLAYERONEVIP",
    "VIP-ANOTHERPAXPUN",
    "vip-paxagainstthewall",
    "SEVENDAYS",
    "AIRLEMAGVIP",
    "Dreamlandvip",
    "ITSBEEN"
]


async function emailmap() {
    emailpoints = await Promise.all(EMAILS.map(async function(email) {
        var type = {
            code : email,
            cid : emailcid
        };
        temppoints = await httppost(type);
        emailpointsredeemed = emailpointsredeemed + temppoints;
        return emailpointsredeemed;
}))};

async function creatorsmap() {
    creatorspoints = await Promise.all(CREATORS.map(async function(creator) {
    var type = {
        code : creator,
        cid : creatorcid
    };
    temppoints = await httppost(type);
    creatorpointsredeemed = creatorpointsredeemed + temppoints;
    return creatorpointsredeemed;
}))};

async function vaultmap() {
    vaultpoints = await Promise.all(VAULTS.map(async function(vault) {
    var type = {
        code : vault,
        cid : vaultcid
    };
    temppoints = await httppost(type);
    vaultpointsredeemed = vaultpointsredeemed + temppoints;
    return vaultpointsredeemed;
}))}

async function gatherpoints() {
    var [totalemailpoints, totalcreatorpoints, totalvaultpoints] = await Promise.all([emailmap(), creatorsmap(), vaultmap()]);
    var totalpoints = emailpointsredeemed + creatorpointsredeemed + vaultpointsredeemed;
    console.log("Total Points: ", totalpoints);
    alert("Total Points Redeemed: " + totalpoints)
}

// try and get the latest codes that are defined in the Borderlands discord spreadsheet
// the hard-coded codes will not be overriden
async function tryGetLatestCodes() {
    const url = "https://sheets.googleapis.com/v4/spreadsheets/1QfwdILwVv19sKeveaBzZwhQLEOzmFwnOmMZsWLKwgg8/values/A5%3AB1000?valueRenderOption=FORMATTED_VALUE&key=AIzaSyCcDGjg03zH4omQvn8yV1ciUlh0nAXj1qs";

    let codes = [];

    try {
        ({ values: codes } = await (await fetch(url)).json());
    } catch (e) {
        return;
    }

    if (codes == null) {
        return;
    }

    codes.forEach(element => {
        if (element == null || element.length !== 2) {
            return;
        }

        const code = element[0];
        const type = element[1];
        if (code == null || type == null) {
            return;
        }

        const typeNormalized = type.toLowerCase();

        if (typeNormalized === "vault") {
            VAULTS = appendCodeToArray(VAULTS, code);
        } else if (typeNormalized === "email") {
            EMAILS = appendCodeToArray(EMAILS, code);
        } else if (typeNormalized === "creator") {
            CREATORS = appendCodeToArray(CREATORS, code);
        }
    });
}

function appendCodeToArray(array, code) {
    if (array == null || array.length === 0 || code == null) {
        return;
    }

    const codeIndex = array.findIndex(existingCode => existingCode.toLowerCase() === code.toLowerCase());
    if (codeIndex === -1) {
        array.push(code);
    }

    return array;
}

async function main() {
    await tryGetLatestCodes();
    gatherpoints();
}

main();

/*
await fetch('https://2kgames.crowdtwist.com/code-redemption-campaign/redeem?cid=5263', {
     method: 'POST',
     body: JSON.stringify({
         code: "GREGORONKH"
     }),
     headers: {
         'Content-type' : 'application/json'
     }
})
*/
 
J

josh11770

Enthusiast
Messages
359
Reaction score
14
Points
90
Sin$
7
The old one from the link gave me a invalid symbol error, but the one posted yesterday gave me 15050 points woot!
 
F

fieldsweeper

Newbie
Messages
10
Reaction score
0
Points
20
Sin$
7
not that many but I know there are a lot of codes. you should use the ones on the reddit. there are hundreds of them on there from vault codes to shift keys etc



there is a lot there
 
Top Bottom
Login
Register