Advertisement
Antiokh

HeroWars list heroes for share (into console), requires HeroWarsHelper for names.

Mar 17th, 2025 (edited)
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (async()=>{function t(t,e){function r(t,e){for(;t.length<e;)t="0"+t;return t}let n="0000";e.artifacts.forEach(t=>{n+=r(t.level.toString(2),8),n+=r(t.star.toString(2),3)}),n+=r(e.level.toString(2),8),n+=r(e.color.toString(2),5),n+=r(e.star.toString(2),3),n+=r(e.titanGiftLevel.toString(2),5);let o=[...Array(6)].map(()=>1);o.forEach(t=>{n+=t?"1":"0"}),Object.values(e.skills).forEach(t=>{n+=r(t.toString(2),8)}),e.runes.forEach(t=>{n+=r(t.toString(2),6)});let l=function t(e){let r=[],n=lib.data.skin;for(let o in n)n.hasOwnProperty(o)&&0!==n[o].enabled&&n[o].heroId===e&&r.push(n[o]);return r}(t);l.forEach(t=>{n+=r((e.skins[t.id]||0).toString(2),6)});let i="";for(let a=0;a<n.length;a+=6)i+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"[parseInt(n.substring(a,a+6),2)];return i}let e=await new Caller("heroGetAll").execute();Object.values(e).forEach(e=>{let r=t(e.id,e),n=cheats.translate("LIB_HERO_NAME_"+e.id);console.log(`${n}: https://calc2.hw-assist.com/heroes/${e.id}/${r}`)})})();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement