From ce6207276199cd8a1eaa2945525da15e8ae05e41 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 30 Jun 2018 00:28:45 +0900 Subject: [PATCH] =?UTF-8?q?=ED=99=95=EC=9E=A5=20=EC=8A=A4=ED=81=AC?= =?UTF-8?q?=EB=A6=BD=ED=8A=B8=EB=A5=BC=20=EC=9C=84=ED=95=B4=20=ED=83=9C?= =?UTF-8?q?=EA=B7=B8=20=EC=9D=BC=EB=B6=80=20=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/b_genList.php | 67 ++++++++++++++++-------------- hwe/b_myCityInfo.php | 2 +- hwe/b_troop.php | 11 ++++- hwe/js/ext.expand_city.js | 52 ++++++++--------------- hwe/js/ext.kingdoms.js | 7 ++-- hwe/js/ext.plugin_troop.js | 84 ++++++++++++-------------------------- 6 files changed, 94 insertions(+), 129 deletions(-) diff --git a/hwe/b_genList.php b/hwe/b_genList.php index ffab6b5b..3a106ffc 100644 --- a/hwe/b_genList.php +++ b/hwe/b_genList.php @@ -56,7 +56,7 @@ $sel[$type] = "selected"; <?=UniqueConst::$serverName?>: 암행부 - + @@ -99,24 +99,28 @@ switch ($type) { $genresult = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $gencount = MYDB_num_rows($genresult); -echo" - +?> +
+ - - - - - - - - - - - - - - - "; + + + + + + + + + + + + + + + + + +name; @@ -164,24 +168,24 @@ for ($j=0; $j < $gencount; $j++) { echo " - - - - - - + + + + + + - - - - "; + + + + "; if ($general['npc'] >= 2) { echo " - - + "; } echo " +
이 름통무지부 대자 금군 량도시병 종병 사훈련사기명 령삭턴
이 름통무지부 대자 금군 량도시병 종병 사훈련사기명 령삭턴
$name
Lv ".getExpLevel($general['experience'])."
{$leader}∥{$power}∥{$intel}$troop{$general['gold']}{$general['rice']}$city$name
Lv ".getExpLevel($general['experience'])."
{$leader}∥{$power}∥{$intel}$troop{$general['gold']}{$general['rice']}$city $mode".GameUnitConst::byId($general['crewtype'])->name."{$general['crew']}{$general['train']}{$general['atmos']}".GameUnitConst::byId($general['crewtype'])->name."{$general['crew']}{$general['train']}{$general['atmos']} + NPC 장수"; } else { echo " - + "; $turn = getTurn($general, 1, 0); @@ -196,10 +200,11 @@ for ($j=0; $j < $gencount; $j++) { {$general['killturn']}".substr($general['turntime'], 14, 5)."".substr($general['turntime'], 14, 5)."
"; diff --git a/hwe/b_myCityInfo.php b/hwe/b_myCityInfo.php index 16df387b..6aeac093 100644 --- a/hwe/b_myCityInfo.php +++ b/hwe/b_myCityInfo.php @@ -199,6 +199,6 @@ for ($j=0; $j < $citycount; $j++) { - + diff --git a/hwe/b_troop.php b/hwe/b_troop.php index 9c468423..6797b481 100644 --- a/hwe/b_troop.php +++ b/hwe/b_troop.php @@ -30,6 +30,8 @@ $troopcount = MYDB_num_rows($result); <?=UniqueConst::$serverName?>: 부대편성 + + @@ -38,7 +40,8 @@ $troopcount = MYDB_num_rows($result); 부 대 편 성
- +
+ @@ -46,6 +49,8 @@ $troopcount = MYDB_num_rows($result); + + +"; if ($troopcount == 0) { } else if($me['troop'] == 0) { @@ -137,6 +143,7 @@ else if($me['troop'] == 0) { echo " +
선 택 부 대 정 보장 수 부대장행동
"; } } - +echo "

"; diff --git a/hwe/js/ext.expand_city.js b/hwe/js/ext.expand_city.js index 66b11c9a..32b4ca91 100644 --- a/hwe/js/ext.expand_city.js +++ b/hwe/js/ext.expand_city.js @@ -100,9 +100,9 @@ $(function() { $('#inner_table').attr('border','1').attr('cellspacing',"0").attr('cellpadding',"0") .attr('bordercolordark',"gray").attr('bordercolorlight',"black").attr('align','center') - .css('background-image','url(http://jwh1807.vipweb.kr/images/back_walnut.jpg)').css('font-size','13px').css('width','290px'); + .css('font-size','13px').css('width','290px'); - $('#inner_table thead tr').css('background-image','url(http://jwh1807.vipweb.kr/images/back_green.jpg)'); + $('#inner_table thead tr'); $('#fake_form').submit(function(){ return false; @@ -256,7 +256,6 @@ $(function() { var subList = subCityGroupList[groupName]; var $group = $('【 '+groupName+' 】'); - $group.css('background-image','url(http://jwh1807.vipweb.kr/images/back_green.jpg)'); $innerContent.append($group); subList.sort(function(a,b){ @@ -530,12 +529,12 @@ $(function() { var loadUser = function(){ $.each(cityList,function(idx,val){ if(typeof val.users == "undefined"){ - val.obj.append(''+ + val.obj.append(''); @@ -548,41 +547,26 @@ $(function() { $.get(basicPath+'b_genList.php',function(rawData){ - $html = $(rawData); var cnt =0; - var tmpUsers = {}; - $html.each(function(idx){ - if(this.tagName == "TABLE"){ - cnt+=1; - if(cnt==2){ - tmpUsers = $(this); - return false; - } - } - }); + var $helper = $('#helper_genlist'); + $helper.html('').append($.parseHTML(rawData)); + + var tmpUsers = $('#general_list tbody tr'); - tmpUsers.find("tr:gt(0)").each(function(idx){ + tmpUsers.each(function(idx){ var $this = $(this); - var $city = $this.children('td:eq(5)'); + var $city = $this.children('.i_city'); $city.remove(); var cityName = $.trim($city.text()); - var $name = $this.children('td:eq(0)'); + var $name = $this.children('.i_name'); $name.addClass('nameplate'); - var name = $name.html(); - - var $tmpFont = $name.find('font'); - if($tmpFont.length>0){ - name = $tmpFont.text(); - } - else{ - name = $.trim(name.substr(0,name.indexOf('
Lv '))); - } - - var $work = $this.children('td:eq(10)'); + var name = $name.find('.t_name').html(); + + var $work = $this.children('.i_action'); var cityInfo = cityList[cityName]; if(typeof cityInfo == 'undefined'){ @@ -597,7 +581,7 @@ $(function() { - var $stat = $this.children('td:eq(1)'); + var $stat = $this.children('.i_stat'); var stat = $stat.text(); var is수뇌 = stat.indexOf('+')>=0; diff --git a/hwe/js/ext.kingdoms.js b/hwe/js/ext.kingdoms.js index bb9e97bc..0cafa54e 100644 --- a/hwe/js/ext.kingdoms.js +++ b/hwe/js/ext.kingdoms.js @@ -193,8 +193,7 @@ $(function(){ } $userFrame = $('
'+ - '
'+ ''+ - ''+ - ''+ - ''+ - ''+ + ''+ + ''+ + ''+ + ''+ ''+ '
이 름통무지부 대자 금군 량병 종병 사훈련사기명 령삭턴이 름통무지부 대자 금군 량병 종병 사훈련사기명 령삭턴
'+ + '
'+ ''+ ''+ ''+ @@ -210,8 +209,8 @@ $(function(){ ''+ ''+ ''+ - '
얼 굴이 름연령지력삭턴벌점
'); - $userFrame.find('thead td').css('background-image','url(https://sam.hided.net/image/game/back_green.jpg)'); + ''); + $userFrame.find('thead td'); $userFrame.css('width','1000px').css('margin','0').css('padding','0').css('left','50%').css('margin-left','-500px'); $userFrame.css('box-shadow','0px 0px 7px 3px rgba(255,255,255,50)'); $userFrame.hide(); diff --git a/hwe/js/ext.plugin_troop.js b/hwe/js/ext.plugin_troop.js index e776bd37..383bf2f3 100644 --- a/hwe/js/ext.plugin_troop.js +++ b/hwe/js/ext.plugin_troop.js @@ -1,40 +1,19 @@ -// ==UserScript== -// @name 체섭 집합 도우미 -// @namespace https://hided.net -// @version 0.933 -// @author Hide_D -// @updateURL https://hided.net/gs_script/62che/plugin_troop.tamper.js -// @description 부대 편성에서 암행부를 연동해 편리하게 볼 수 있습니다. -// @match http://62che.com/sam/*/b_troop.php -// @match http://www.62che.com/sam/*/b_troop.php -// @match http://222.122.81.157/sam/*/b_troop.php -// @match http://sam-tm.com/che/*/b_troop.php -// @match http://www.sam-tm.com/che/*/b_troop.php -// @copyright 2014+, HideD - -// @require http://code.jquery.com/jquery-1.11.1.min.js - -// ==/UserScript== - -//바뀐건 없다 $(function(){ var userList = {}; var groupList = {}; var tGroup = []; - var basicPath = document.location.pathname.substr(0,9); + var basicPath = document.location.pathname; + basicPath = basicPath.substring(0, basicPath.lastIndexOf('/'))+'/'; var $userFrame; - if(unsafeWindow){ - unsafeWindow.$ = $; - unsafeWindow.groupList = groupList; - unsafeWindow.userList = userList; - } + window.groupList = groupList; + window.userList = userList; var aGroup = {}; - $('table:eq(1) tr:gt(0):lt(-1)').each(function(idx){ + $('#troop_list tbody > tr').each(function(idx){ var $this = $(this); //console.log(this); //console.log($this); @@ -141,11 +120,11 @@ $(function(){ } }); - tmpUsers.find("tr:gt(0)").each(function(idx){ + tmpUsers.find("tbody > tr").each(function(idx){ var $this = $(this); - var $부대 = $this.children().eq(2); + var $부대 = $this.children('.i_troop'); var 부대 = $.trim($부대.text()); @@ -155,23 +134,15 @@ $(function(){ } $부대.remove(); - var $name = $this.children('td:eq(0)'); + var $name = $this.children('.i_name'); $name.addClass('nameplate'); - var name = $name.html(); + var name = $name.find('.t_name').text(); - var $tmpFont = $name.find('font'); - if($tmpFont.length>0){ - name = $tmpFont.text(); - } - else{ - name = $.trim(name.substr(0,name.indexOf('
Lv '))); - } - - var $도시 = $this.children().eq(4); + var $도시 = $this.children('.i_city'); var 도시 = $.trim($도시.text()); - var $턴 = $this.children().eq(12); + var $턴 = $this.children('.i_action'); //console.log($턴); var 턴0 = $턴.text().split(':'); var 턴 = parseInt(턴0[0])*60 + parseInt(턴0[1]); @@ -253,23 +224,22 @@ $(function(){ $userFrame = $('
'+ - ''+ - ''+ - ''+ - ''+ - ''+ - ''+ - ''+ - ''+ - ''+ - ''+ - ''+ - ''+ - ''+ - ''+ - '
이 름통무지자 금군 량도시병 종병 사훈련사기명 령삭턴
'); - $userFrame.find('thead td').css('background-image','url(http://jwh1807.vipweb.kr/images/back_green.jpg)'); + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + ''+ + '
이 름통무지자 금군 량도시병 종병 사훈련사기명 령삭턴
'); + $userFrame.find('thead td'); $userFrame.css('width','900px').css('margin','0').css('padding','0').css('left','50%').css('margin-left','-450px'); $userFrame.hide();