Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- console.log("ID\t\t\t\t\tLevel\tNoChange\tTag");
- var o = document.getElementsByTagName('td');
- var admin = ["lin85447","dolphin95","mmis1000","seadog007","love30523","ChrisLee02"]
- var allowname = ["一般會員","無名的魂","透明的創作魂","燃燒的創作魂","歷練的創作魂","喜愛冒險的創作魂","熟練合成的創作魂","精通戰鬥的創作魂","轉生後的創作獵人","進擊的創作衛兵","榮譽的創作聖騎士","創世紀勇者"]
- var GID="7540"
- for(var a = 9; a < o.length; a = a + 6) {
- var ID = o[a-2].outerText.split("\n")[0];
- var NLV = o[a-1].outerText.split("\n")[0].replace("LV.","")
- var LV = Math.floor(o[a].outerText.split("\n")[0] / 200);
- LV = LevelMax(LV);
- var NC = 0;
- var NTag = o[a+1].outerText;
- var Tag = Tagname(LV);
- if(isAdmin(ID)){
- NC=1;
- }
- if(!needchangename(NTag)){
- NC=1;
- }
- Send(ID,NC,LV,Tag);
- Show(ID,LV,NC,Tag,isMatch(NLV,LV,NTag,Tag,NC),NLV,NTag);
- }
- alert("更改完成");
- function Show(a1,a2,a3,a4,a5,a6,a7){
- if(a3==1){
- if(a1.length<=7){
- console.log(a1 + "\t\t\t\t" + a6 + "\t\t" + a3 + "\t\t\t" + a7 + "\t\t\t" + a5);
- }else if(a1.length>=12){
- console.log(a1 + "\t\t" + a6 + "\t\t" + a3 + "\t\t\t" + a7 + "\t\t\t" + a5);
- }else{
- console.log(a1 + "\t\t\t" + a6 + "\t\t" + a3 + "\t\t\t" + a7 + "\t\t\t" + a5);
- }
- }else{
- if(a1.length<=7){
- console.log(a1 + "\t\t\t\t" + a2 + "\t\t" + a3 + "\t\t\t" + a4 + "\t\t\t" + a5);
- }else if(a1.length>=12){
- console.log(a1 + "\t\t" + a2 + "\t\t" + a3 + "\t\t\t" + a4 + "\t\t\t" + a5);
- }else{
- console.log(a1 + "\t\t\t" + a2 + "\t\t" + a3 + "\t\t\t" + a4 + "\t\t\t" + a5);
- }
- }
- }
- function Tagname(a1){
- if(a1==0){
- return "無名的魂"
- }else if(a1<=10){
- return "透明的創作魂"
- }else if(a1<=20){
- return "燃燒的創作魂"
- }else if(a1<=30){
- return "歷練的創作魂"
- }else if(a1<=40){
- return "喜愛冒險的創作魂"
- }else if(a1<=50){
- return "熟練合成的創作魂"
- }else if(a1<=60){
- return "精通戰鬥的創作魂"
- }else if(a1<=70){
- return "轉生後的創作獵人"
- }else if(a1<=80){
- return "進擊的創作衛兵"
- }else if(a1<=90){
- return "榮譽的創作聖騎士"
- }else if(a1<=97){
- return "創世紀勇者"
- }
- }
- function needchangename(a1){
- for(c=0;c<=allowname.length-1;c++){
- if(a1==allowname[c]){
- return true
- }
- }
- }
- function isAdmin(a1){
- for(c=0;c<=admin.length-1;c++){
- if(a1==admin[c]){
- return true
- }
- }
- }
- function LevelMax(a1){
- if(a1>=98){
- return 97
- }else{
- return a1
- }
- }
- function Send(a1,a2,a3,a4){
- if(a2==0){
- $.ajax({
- url: '/ajax/guildmemberMa.php',
- success: function(xmldoc){r_editmembera(xmldoc,a1);},
- param: 's='+GID+'&u='+a1+'&c=undefined&l='+a3+'&t='+a4+'&p=undefined',
- method: 'POST'
- });
- }
- }
- function isMatch(a1,a2,a3,a4,a5){
- if((a1==a2&&a3==a4)||a5==1){
- return ""
- }else{
- return "Not Match!!"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment