본문 바로가기

로스트아크/공략

로스트아크 현질 얼마나 했을까 확인하기 | 로아 시즌2

반응형

로스트아크를 시작하고 현재까지 현질을 얼마나 했는지 확인하는 방법입니다. 이 방법은 개발자 도구를 이용해 로스트아크 공식 홈페이지에 로그인하여 F12 개발자 도구를 열고 콘솔 창에다 아래 코드를 입력하여 현질한 내역을 확인하는 방법으로 로얄 크리스탈을 충전한 금액 내역만 확인할 수 있습니다. 이 외 다른 경로(디코, 매니아 등)로 현질을 한 경우는 확인이 되지 않으니 참고하세요.

로스트아크 현질 확인 방법

  1. 로스트아크 공식 홈페이지에 로그인
  2. F12 개발자 도구를 열고 상단 Console 버튼 클릭
  3. 입력 창에 아래 소스 코드를 복사 붙혀넣기 후 엔터키 입력
var lastNum = 1;
var sum = 0;
var regexp = /B(?=(d{3})+(?!d))/g;
var chargeDateList=[];
var chargeWayList=[];
var cashList=[];
var text = "";
var years = [2017,2018,2019,2020,2021,2022,2023,2024,2025,2026];
for(var j=0; j<years.length;j++){
    $.ajax({
                url: '/Cash/GetChargeList',
                type: 'GET',
                data: { Page: 1, StartDate: years[j]+'.01.01', EndDate: years[j]+'.12.31'},
                dataType: 'html',
                async: false,
                success: function (data) {
                    var pageNum = $(data).find(".pagination__last")[0].getAttribute("onClick");
                    if(pageNum != null){
                        lastNum = pageNum.replace(/[^0-9]/g,"");
                    }
                },
                error: function (xhr, status, error) {
                    ajaxErrorHandler(xhr, status, error);
                    return;
                }
            });
    for(var i=1;i<=lastNum;i++){
        $.ajax({
                url: '/Cash/GetChargeList',
                type: 'GET',
                data: { Page: i, StartDate: years[j]+'.01.01', EndDate: years[j]+'.12.31'},
                dataType: 'html',
                async: false,
                success: function (data) {
                    $(data).find("td.list__price").each(function(){
                        var $cash = $(this)
                        cashList.push($cash.text().replace(/[^0-9]/g,""))
                    });
                    $(data).find("td.list__date").each(function(){
                        var $cash = $(this)
                        chargeDateList.push($cash.text())
                    });
                    $(data).find("td.list__way").each(function(){
                        var $cash = $(this)
                       chargeWayList.push($cash.text())
                    });
                },
                error: function (xhr, status, error) {
                    ajaxErrorHandler(xhr, status, error);
                    return;
                }
            });
    }
}

(function(console) {
    console.save = function(data, filename){
        if(!data) {
            console.error('Console.save: No data')
            return;
        }
        if(!filename) filename = 'console.html'
        if(typeof data === "object"){
            data = JSON.stringify(data, undefined, 4)
        }
        var blob = new Blob([data], {type: 'text/json'}),
            e    = document.createEvent('MouseEvents'),
            a    = document.createElement('a')

        a.download = filename
        a.href = window.URL.createObjectURL(blob)
        a.dataset.downloadurl =  ['text/json', a.download, a.href].join(':')
        e.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null)
        a.dispatchEvent(e)
    }
})(console)

cashList.forEach(function(cash){
    sum += Number(cash);
});
for(var i =0; i<cashList.length;i++){
    console.log(chargeDateList[i] + " " + cashList[i].replace(regexp, ',') + "원 " + chargeWayList[i]);
    text = text + "n"+chargeDateList[i] + " " + cashList[i].replace(regexp, ',') + "원 " + chargeWayList[i];
}

sum = sum.toString().replace(regexp, ',');
text = text + "n" +"총합 : " + sum;
console.log("현재까지 "+sum+"원 사용하셨습니다");
alert("현재까지 "+sum+"원 사용하셨습니다")

console.save(text,"로아현질내역.txt");

출처: https://www.inven.co.kr/board/lostark/4821/78632

반응형