seadog007

3M Half Auto Change Lv and Name Hits (Full)

Sep 12th, 2014
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. console.log("ID\t\t\t\t\tLevel\tNoChange\tTag");
  2. var o = document.getElementsByTagName('td');
  3. var admin = ["lin85447","dolphin95","mmis1000","seadog007","love30523","ChrisLee02"]
  4. var allowname = ["一般會員","無名的魂","透明的創作魂","燃燒的創作魂","歷練的創作魂","喜愛冒險的創作魂","熟練合成的創作魂","精通戰鬥的創作魂","轉生後的創作獵人","進擊的創作衛兵","榮譽的創作聖騎士","創世紀勇者"]
  5. var GID="7540"
  6. for(var a = 9; a < o.length; a = a + 6) {
  7.     var ID = o[a-2].outerText.split("\n")[0];
  8.     var NLV = o[a-1].outerText.split("\n")[0].replace("LV.","")
  9.     var LV = Math.floor(o[a].outerText.split("\n")[0] / 200);
  10.     LV = LevelMax(LV);
  11.     var NC = 0;
  12.     var NTag = o[a+1].outerText;
  13.     var Tag = Tagname(LV);
  14.     if(isAdmin(ID)){
  15.         NC=1;
  16.     }
  17.     if(!needchangename(NTag)){
  18.         NC=1;
  19.     }
  20.  
  21.     Send(ID,NC,LV,Tag);
  22.     Show(ID,LV,NC,Tag,isMatch(NLV,LV,NTag,Tag,NC),NLV,NTag);
  23. }
  24. alert("更改完成");
  25.  
  26. function Show(a1,a2,a3,a4,a5,a6,a7){
  27.     if(a3==1){
  28.         if(a1.length<=7){
  29.             console.log(a1 + "\t\t\t\t" + a6 + "\t\t" + a3 + "\t\t\t" + a7 + "\t\t\t" + a5);
  30.         }else if(a1.length>=12){
  31.             console.log(a1 + "\t\t" + a6 + "\t\t" + a3 + "\t\t\t" + a7 + "\t\t\t" + a5);  
  32.         }else{
  33.             console.log(a1 + "\t\t\t" + a6 + "\t\t" + a3 + "\t\t\t" + a7 + "\t\t\t" + a5);  
  34.         }
  35.     }else{
  36.         if(a1.length<=7){
  37.             console.log(a1 + "\t\t\t\t" + a2 + "\t\t" + a3 + "\t\t\t" + a4 + "\t\t\t" + a5);
  38.         }else if(a1.length>=12){
  39.             console.log(a1 + "\t\t" + a2 + "\t\t" + a3 + "\t\t\t" + a4 + "\t\t\t" + a5);  
  40.         }else{
  41.             console.log(a1 + "\t\t\t" + a2 + "\t\t" + a3 + "\t\t\t" + a4 + "\t\t\t" + a5);  
  42.         }
  43.     }
  44. }
  45.  
  46. function Tagname(a1){
  47.     if(a1==0){
  48.         return "無名的魂"
  49.     }else if(a1<=10){
  50.         return "透明的創作魂"
  51.     }else if(a1<=20){
  52.         return "燃燒的創作魂"
  53.     }else if(a1<=30){
  54.         return "歷練的創作魂"
  55.     }else if(a1<=40){
  56.         return "喜愛冒險的創作魂"
  57.     }else if(a1<=50){
  58.         return "熟練合成的創作魂"
  59.     }else if(a1<=60){
  60.         return "精通戰鬥的創作魂"
  61.     }else if(a1<=70){
  62.         return "轉生後的創作獵人"
  63.     }else if(a1<=80){
  64.         return "進擊的創作衛兵"
  65.     }else if(a1<=90){
  66.         return "榮譽的創作聖騎士"
  67.     }else if(a1<=97){
  68.         return "創世紀勇者"
  69.     }
  70. }
  71.  
  72. function needchangename(a1){
  73.     for(c=0;c<=allowname.length-1;c++){
  74.             if(a1==allowname[c]){
  75.                 return true
  76.             }
  77.         }
  78. }
  79.  
  80. function isAdmin(a1){
  81.     for(c=0;c<=admin.length-1;c++){
  82.             if(a1==admin[c]){
  83.                 return true
  84.             }
  85.         }
  86. }
  87.  
  88. function LevelMax(a1){
  89.     if(a1>=98){
  90.         return 97
  91.     }else{
  92.         return a1
  93.     }
  94. }
  95.  
  96. function Send(a1,a2,a3,a4){
  97.     if(a2==0){
  98.         $.ajax({
  99.         url: '/ajax/guildmemberMa.php',
  100.         success: function(xmldoc){r_editmembera(xmldoc,a1);},
  101.         param: 's='+GID+'&u='+a1+'&c=undefined&l='+a3+'&t='+a4+'&p=undefined',
  102.         method: 'POST'
  103.         });
  104.  
  105.     }
  106. }
  107.  
  108. function isMatch(a1,a2,a3,a4,a5){
  109.     if((a1==a2&&a3==a4)||a5==1){
  110.         return ""
  111.     }else{
  112.         return "Not Match!!"
  113.     }
  114. }
Advertisement
Add Comment
Please, Sign In to add comment