코드:
javascript:var coins=4;function selectAllMax2(form,textMax,textNothing){for(var i=0;i<form.length;i++){var select=form.elements[i];if(select.selectedIndex!=null){if(max){if(select.length>(coins+1)){select.selectedIndex=select.length-(coins+2);}else select.value=0;}else select.value=0;}}max=max?0:1;anchor=document.getElementById('select_anchor_top');anchor.firstChild.nodeValue=max?textMax:textNothing;anchor=document.getElementById('select_anchor_bottom');anchor.firstChild.nodeValue=max?textMax:textNothing;changeBunches(form);}if(document.URL.match('screen=snob')&&document.URL.match('mode=reserve')){selectAllMax2(document.forms['villages'],'Choose maximum amount','Select nothing');}else{alert('Script only works on academy store page');}
아카데미에 있는 스토어링(저장) 탭에서 실행가능하며, 남겨둘 자원량 만큼만 빼고 나머지를 저장할수 있도록 설정가능 합니다.
이 스크립트는 프리미엄 전용 페이지인 영주관저 - 저장 페이지에서 사용 가능한 스크립트 입니다.
저장탭의 화면은 다음과 같습니다.
물론 프리미엄 자체기능으로, 모든자원을 동원해 , 가능한만큼 최대한 자원을 저장할수는 있지만, 유사시 자원이 필요할경우 활용도가 떨어지게 됩니다.
이때 스크립트를 구동하면
와 같이 4단위 저장할수 있지만, 3단위만 저장하도록 하여, 여분자원을 마을에 남겨둘수 있습니다.
*설정
coins=4 남겨둘 자원량
mode=coin -> 코인제일 경우 mode=coin
-> 패킷제일 경우 mode=reserve.