Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const importTA = document.getElementById('import');
- const itaPN = importTA.parentNode;
- let el = document.createElement('div');
- itaPN.appendChild(el);
- let inpt = document.createElement('span');
- inpt.innerText = 'Add Sequence TT2 Data';
- el.appendChild(inpt);
- let br = document.createElement('br');
- el.appendChild(br);
- let inp = document.createElement('textarea');
- inp.setAttribute('id', 'stt2');
- el.appendChild(inp);
- let inps = document.createElement('input');
- inps.setAttribute('type', 'submit');
- inps.addEventListener("click", function(){
- exportData();
- let ed = (document.getElementById('export').innerText).split('=');
- let eds = ed[ed.length - 2].split('|');
- const k = {
- 'Book of Shadows': 'bos_',
- 'Stone of the Valrunes': 'sov_',
- 'Chest of Contentment': 'coc_',
- 'Heroic Shield': 'hs_',
- 'Book of Prophecy': 'bop_',
- 'Khrysos Bowl': 'kb_',
- 'Zakynthos Coin': 'zc_',
- 'Great Fay Medallion': 'gfa_',
- 'Coins of Ebizu': 'coe_',
- 'Heavenly Sword': 'hsw_',
- 'Divine Retribution': 'dr_',
- 'Drunken Hammer': 'dh_',
- 'Samosek Sword': 'ss_',
- 'The Retaliator': 'tr_',
- 'Hero \'s Blade': 'hb_',
- 'The Sword of Storms': 'tsos_',
- 'Furies Bow': 'fb_',
- 'Charm of the Ancient': 'cota_',
- 'Tiny Titan Tree': 'ttt_',
- 'Helm of Hermes': 'hh_',
- 'Fruit of Eden': 'foe_',
- 'Influential Elixir': 'ie_',
- 'O\'Ryan\'s Charm': 'orc_',
- 'Heart of Storms': 'hos2_',
- 'Apollo Orb': 'ao_',
- 'Earrings of Portara': 'eop_',
- 'Avian Feather': 'af_',
- 'Corrupted Rune Heart': 'hos_',
- 'Durendal Sword': 'td_',
- 'Helheim Skull': 'hs2_',
- 'Ring of Calisto': 'roc_',
- 'Blade of Damocles': 'bod_',
- 'Helmet of Madness': 'hom_',
- 'Titanium Plating': 'tp_',
- 'Moonlight Bracelet': 'mb_',
- 'Amethyst Staff': 'as_',
- 'Invader \'s Gjalarhorn': 'ig_',
- 'Titan Mask': 'tm_',
- 'Royal Toxin': 'rt_',
- 'Laborer \'s Pendant': 'lp_',
- 'Bringer of Ragnarok': 'bor_',
- 'Parchment of Foresight': 'pof_',
- 'Elixir of Eden': 'eoe_',
- 'Hourglass of the Impatient': 'hoti_',
- 'Phantom Timepiece': 'pt_',
- 'Forbidden Scroll': 'fs_',
- 'Ring of Fealty': 'rof_',
- 'Glacial Axe': 'ga_',
- 'Aegis': 'a_',
- 'Swamp Gauntlet': 'sg_',
- 'Infinity Pendulum': 'ip_',
- 'Gloves of Kuma': 'gok_',
- 'Titan Spear': 'ts_',
- 'Oak Staff': 'os_',
- 'The Arcana Cloak': 'tac_',
- 'Hunter\'s Ointment': 'ho_',
- 'Ambrosia Elixir': 'ae_',
- 'Mystic Staff': 'ms_',
- 'Mystical Beans of Senzu': 'mbos_',
- 'Egg of Fortune': 'eof_',
- 'Divine Chalice': 'dc_',
- 'Invader \'s Shield': 'is_',
- 'Axe of Muerte': 'aom_',
- 'Essence of the Kitsune': 'eotk_',
- 'Boots of Hermes': 'boh_',
- 'Oberon Pendant': 'op_',
- 'Lucky Foot of Al-mi\'raj': 'lfoa_',
- 'Lost King \'s Mask': 'lkm_',
- 'Staff of Radiance': 'sor_',
- 'Morgelai Sword': 'msw_',
- 'The Master \'s Sword': 'tms_',
- 'Aram Spear': 'as2_',
- 'Ward of the Darkness': 'wod_'
- };
- startImport();
- let t = document.getElementById('stt2').value;
- let lines = t.split('\n');
- for (let i = 0; i < lines.length; i++) {
- let line = lines[i].split(',');
- if (line[0] === 'ID' || line[1] === 'Name' || line[2] === 'Level') continue;
- let n = k[line[1]];
- let level = line[2];
- for (let j = 0; j < eds.length; j++) {
- if (eds[j].indexOf(n) === 0) {
- let p = eds[j].split('_');
- eds[j] = `${n}${p[1]}_${level}`;
- }
- }
- }
- document.getElementById('import').value = ed.slice(0,8).join('=') + '=' + eds.join('|') + '=' + ed[ed.length -1];
- });
- el.appendChild(inps);
Add Comment
Please, Sign In to add comment