• SEARCH

    통합검색
  • GAMEZONE
    • 커뮤니티
      • 공지사항
      • 유저게시판
        • 등업게시판
        • 출석체크
        • 정회원 무료자료실
      • 스크린샷
      • 인증자료실
    • 리니지
      • 게임공략 & 팁
      • 홍보게시판
      • 유틸자료실
      • 소스자료실
      • 자유게시판
      • 노하우 게시판
    • 메이플스토리
      • 게임공략 & 팁
      • 홍보게시판
      • 유틸자료실
      • 소스자료실
      • 자유게시판
      • 노하우 게시판
    • 바람의나라
      • 자유게시판
      • 홍보게시판
      • 자료게시판
        • 유틸자료실
        • 소스자료실
        • 클라이언트
        • 팩 자료실
      • 연구게시판
        • 개발내역
        • 질문과답변
        • 기타
      • 강의게시판
        • DR
        • CR
        • 구버전
        • 클라이언트 개조
        • 노하우 게시판
        • 게임공략 & 팁
    • 다크에덴
      • 게임공략 & 팁
      • 홍보게시판
      • 유틸자료실
      • 소스자료실
      • 자유게시판
      • 노하우 게시판
    • 믹스마스터
      • 게임공략 & 팁
      • 홍보게시판
      • 유틸자료실
      • 소스자료실
      • 자유게시판
      • 노하우 게시판
    • 라그나로크
      • 게임공략 & 팁
      • 홍보게시판
      • 유틸자료실
      • 소스자료실
      • 자유게시판
      • 노하우 게시판
    • 기타게임
      • 게임공략 & 팁
      • 홍보게시판
      • 유틸자료실
      • 소스자료실
      • 자유게시판
      • 노하우 게시판
    • 게임강의
    • 비베&포토샵
      • 자유게시판
      • 자료실
        • 일반자료실
        • 포인트 자료실
      • 노하우게시판
      • 포토샵게시판
    • 모바일
      • 게임공략
      • 포인트 자료실
      • 유틸자료실
      • 자유게시판
  • 리니지 소스자료실
    • 리니지 소스자료실 ()
    • 5단 속성 인첸트 본섭화

      • 로스트사가
      • 2016.03.16 - 06:40 217
    성공확률은 30 20 10 5 3 입니다.
     
    Enchant.java

      if (item.getItem().getType2() == 1) {
       if (!item.isIdentified() || item.getEnchantLevel() == 0) {
        switch (i) {
        case -1:
         s = s1;
         sa = "$246";
         sb = "$247";
         int attr_level = item.getAttrEnchantLevel();

         if(attr_level>0){
          if(attr_level %5==4){
         if(10==item.getEnchantLevel()){       
           item.setAttrEnchantLevel(attr_level -1);
          }
         }else if(attr_level %5==0){
          if(11==item.getEnchantLevel()){       
           item.setAttrEnchantLevel(attr_level -1);
          }
           }
         }

         break;

       [중략]

       } else {
        switch (i) {
        case -1:
         s = (new StringBuilder()).append(pm + item.getEnchantLevel()).append(" ").append(s1).toString();
         sa = "$246";
         sb = "$247";

         int attr_level = item.getAttrEnchantLevel();
         if(attr_level>0){
            if(attr_level %5==4){
             if(10==item.getEnchantLevel()){       
           item.setAttrEnchantLevel(attr_level -1);
          }
              }else if(attr_level %5==0){
               if(11==item.getEnchantLevel()){       
           item.setAttrEnchantLevel(attr_level -1);
          }
           }
         }

         break;

     

     

     public void AttrEnchant(L1PcInstance pc, L1ItemInstance item, int itemId) {
      int attr_level = item.getAttrEnchantLevel();
      int chance = _random.nextInt(100) + 1;
      int AttrScroll = 0;
      
      if (itemId == L1ItemId.FIRE_ENCHANT_WEAPON_SCROLL) { // 불의 무기 강화 주문서 
       AttrScroll=1;
      } else if (itemId== L1ItemId.WATER_ENCHANT_WEAPON_SCROLL) { // 물의 무기 강화 주문서   
       AttrScroll=6;
      } else if (itemId == L1ItemId.WIND_ENCHANT_WEAPON_SCROLL) { // 바람의 무기 강화 주문서
       AttrScroll=11;
      } else if (itemId == L1ItemId.EARTH_ENCHANT_WEAPON_SCROLL) { // 땅의 무기 강화 주문서
       AttrScroll=16;  
      }else{
       pc.sendPackets(new S_ServerMessage(79)); // 아무일도 일어나지 않았습니다.
       return;
      }  
      
      if (!pc.getInventory().checkItem(itemId, 1)) {
       return;
      } 

      if (attr_level == 0) {
       if (chance <= 30) {
        pc.sendPackets(new S_ServerMessage(1410, item.getLogName()));
        item.setAttrEnchantLevel(AttrScroll);
       } else {
        pc.sendPackets(new S_ServerMessage(1411, item.getLogName()));
       }
       pc.getInventory().consumeItem(itemId, 1);
       
      } else if (AttrScroll<=attr_level&&attr_level < AttrScroll+3) {   
       if(item.getEnchantLevel()<10){
       if (attr_level == AttrScroll+2) {//4단계 강화 시도시    
         pc.sendPackets(new S_ServerMessage(1294)); //인챈트: 해당 강화 주문서 사용 불가
         return; 
        }    
       }  
       
       if (chance <= 20/(attr_level -AttrScroll+1)) {
        pc.sendPackets(new S_ServerMessage(1410, item.getLogName()));
        //인챈트: %0에 영롱한 대자연의 힘이 스며듭니다.
        item.setAttrEnchantLevel(attr_level +1);
       } else {
        pc.sendPackets(new S_ServerMessage(1411, item.getLogName()));
       } 
       pc.getInventory().consumeItem(itemId, 1);
       
      } else if (attr_level ==AttrScroll+3) {
       if(item.getEnchantLevel()<11){//5단계 강화 시도시 
        pc.sendPackets(new S_ServerMessage(1294)); //인챈트: 해당 강화 주문서 사용 불가
        return; 
       }   
       if (chance <= 3) {
        pc.sendPackets(new S_ServerMessage(3296, item.getLogName())); 
        //인챈트: %0에 찬란한 대자연의 힘이 스며듭니다.
        item.setAttrEnchantLevel(attr_level +1);
        } else {
         pc.sendPackets(new S_ServerMessage(1411, item.getLogName())); 
        //인챈트: %0에 힘이 스며들지 못했습니다.
       }
       pc.getInventory().consumeItem(itemId, 1);
       
      } else if (attr_level == AttrScroll+4) {//5단계
       pc.sendPackets(new S_ServerMessage(79)); //
       return;
       
      }else{
       if(attr_level %5==4||attr_level %5==0){
        pc.sendPackets(new S_ServerMessage(3297)); //3297 인챈트: 다른 속성 부여 불가(속성 4단 이상)
        return;   
        
       }else{
        if (chance <=30) {
        pc.sendPackets(new S_ServerMessage(1410, item.getLogName()));
        item.setAttrEnchantLevel(AttrScroll);
        } else {
        pc.sendPackets(new S_ServerMessage(1411, item.getLogName()));
       }
        pc.getInventory().consumeItem(itemId, 1); 
      }   
     }     

      pc.getInventory().updateItem(item, L1PcInventory.COL_ATTRENCHANTLVL);
      pc.getInventory().saveItem(item, L1PcInventory.COL_ATTRENCHANTLVL);
      pc.saveInventory();

      
     }  


    EnchantWeapon.java

     

       } else if ( 
        itemId == L1ItemId.FIRE_ENCHANT_WEAPON_SCROLL
       || itemId == L1ItemId.WATER_ENCHANT_WEAPON_SCROLL
       || itemId == L1ItemId.WIND_ENCHANT_WEAPON_SCROLL  
       ||  itemId == L1ItemId.EARTH_ENCHANT_WEAPON_SCROLL) {   
        AttrEnchant(pc, l1iteminstance1, itemId); 
     

    } 

     

     L1ItemInstance.java

    public String getNumberedName(int count) {
      StringBuilder name = new StringBuilder();

      if (isIdentified()) {
       if (getItem().getType2() == 1 ) {//무기
        
        switch(getAttrEnchantLevel()){

        case 1: name.append("$6115"); break;
        case 2: name.append("$6116"); break;
        case 3: name.append("$6117"); break;
        case 4: name.append("$14361"); break;
        case 5: name.append("$14365"); break;    
        case 6: name.append("$6118"); break;
        case 7: name.append("$6119"); break;
        case 8: name.append("$6120"); break;
        case 9: name.append("$14362"); break;
        case 10: name.append("$14366"); break;  
        case 11: name.append("$6121"); break;
        case 12: name.append("$6122"); break;
        case 13: name.append("$6123"); break;
        case 14: name.append("$14363"); break;
        case 15: name.append("$14367"); break;  
        case 16: name.append("$6124"); break;
        case 17: name.append("$6125"); break;
        case 18: name.append("$6126"); break;
        case 19: name.append("$14364"); break;
        case 20: name.append("$14368"); break;  

        default: break;
        }

     

     

    L1Attack.java

    double dmg = weaponTotalDamage + _statusDamage;

    dmg+=calcPcPcAttrDmg(); 

     

    /** 무기 속성 인챈에 따른 효과 부여(본섭화) **/
     private double calcPcPcAttrDmg() {
      int Attr = _weaponAttrEnchantLevel;
      double AttrDmg = 0;
      switch (_weaponAttrEnchantLevel) {
      case 1: case 2: case 3:case 4: case 5:
       AttrDmg += (Attr - 1) * 2+1;
       AttrDmg -= AttrDmg * _targetPc.getResistance().getFire() / 100;
      break;
      case 6: case 7: case 8: case 9: case 10:
       AttrDmg += (Attr - 6) * 2+1;
       AttrDmg -= AttrDmg * _targetPc.getResistance().getWater() / 100;   
       break;
      case 11: case 12: case 13:case 14: case 15:
       AttrDmg += (Attr - 11) * 2+1;
       AttrDmg -= AttrDmg * _targetPc.getResistance().getWind() / 100;  
         break;
      case 16: case 17: case 18: case 19: case 20:
       AttrDmg += (Attr - 16) * 2+1;
       AttrDmg -= AttrDmg * _targetPc.getResistance().getEarth() / 100;
       break;
      }
      return  AttrDmg;
     }

     

     

     double dmg = weaponTotalDamage + _statusDamage;

     dmg += calcPcNpcAttrDmg(); // 속성 데미지

     

    /**몬스터 속성에 따른 **/
     private int calcPcNpcAttrDmg() {
      int AttrDmg = 0;
      int Attr = _weaponAttrEnchantLevel;
      int NpcWeakAttr = _targetNpc.getNpcTemplate().get_weakAttr(); 
      switch (NpcWeakAttr) {
      case 1: // 땅 취약 몬스터
       if (Attr >= 15 && Attr <= 20) {
           AttrDmg +=1+(Attr - 15) * 2;    
       }
       break;
      case 2: // 물 취약 몬스터
       if (Attr >= 6 && Attr <= 10) {
        AttrDmg += 1+(Attr - 6) * 2;
       }
       break;
      case 4: // 불 취약 몬스터
       if (Attr >= 1 && Attr <= 5) {
        AttrDmg +=(Attr-1)* 2+1;  
       }
       break;
      case 8: // 바람 취약 몬스터
       if (Attr >= 11 && Attr <= 15) {
        AttrDmg +=1+ (Attr - 11) * 2;
       }
       break;
      }
      return AttrDmg;
     }

    출처 : 비공개까페

    이 게시물을..
    N
    0
    0
    • 리마스터팩 요정 소울 엠피 수정jstory
    • 12
      로스트사가

    로스트사가 님의 최근 글

    3.63 네티기반팩 152 2016 11.10 UI5차 Boss팩 87 2016 10.07 UI5차 Repair 팩 72 2016 10.07 혼몽팩 2.7 (3.0을 2.7로 다운시킨것) 261 2016 08.07 마지막으로 다시한번 2.7 구버전 같이 수정하실분 있나해서 올립니다. 203 4 2016 06.02

    로스트사가 님의 최근 댓글

    감사합니다. 2019 06.13 감사합니다. 2019 06.12 감사합니다. 2019 05.03 감사합니다. 2019 05.03 감사합니다. 2018 03.11
    글쓴이의 서명작성글 감추기 
    댓글 쓰기 에디터 사용하기 닫기
    • view_headline 목록
    • 14px
    • 리마스터팩 요정 소울 엠피 수정
    • 목록
      view_headline
    × CLOSE
    기본 (1,058) 제목 날짜 수정 조회 댓글 추천 비추
    분류 정렬 검색
    • 소스자료는 직접 올려주세요
      2017.06.06 - 16:14 591
    1058
    아머브레이크 데스티니 시전시 성공 확률 조정하는 소스가 있나요?
    안정환 2024.04.23 - 10:01 102
    1057
    List.spr(변신,몬스터 수정소스)개조방법
    유튜브고도리 2024.04.19 - 05:02 243
    1056
    NPC 외침 멘트 깔끔정리(by.유튜브고도리)
    유튜브고도리 2024.04.11 - 05:57 125
    1055
    디아블로 참 만들기
    유튜브고도리 2024.04.09 - 05:55 114
    1054
    리니지m 처럼 피통 늘리기,오류가 날때
    유튜브고도리 2024.04.09 - 05:18 91
    1053
    욕하면 채금 먹게 하기
    유튜브고도리 2024.04.09 - 04:59 71
    1052
    레벨에 따른 호칭 부여..?
    밤톨이11 2024.04.08 - 04:24 72
    1051
    초보자 보호 시스템
    밤톨이11 2024.04.08 - 04:21 57
    1050
    마법무기 데미지 증가
    밤톨이11 2024.04.08 - 04:19 70
    1049
    레벨 제한 맵
    밤톨이11 2024.04.08 - 04:14 65
    1048
    마법스크롤
    밤톨이11 2024.04.08 - 04:06 32
    1047
    리니지m 아지트 소유중에도 공성선포하기
    유튜브고도리 2024.04.07 - 21:37 41
    1046
    리니지m 마법인형이 마법을 쓰네?
    유튜브고도리 2024.04.07 - 21:36 61
    1045
    드래곤 슬레이어 각반(장비추가소스)
    유튜브고도리 2024.04.07 - 19:08 51
    1044
    린엠 게렝 변신 카드 만들기
    유튜브고도리 2024.04.06 - 06:06 100
    1043
    버프 물약 개별 소스 오래전 소스
    밤톨이11 2024.04.05 - 18:43 57
    1042
    일시 스텟 상승 물약
    밤톨이11 2024.04.05 - 18:42 26
    1041
    성 전환 물약
    밤톨이11 2024.04.05 - 18:37 31
    1040
    MP 물약 소스
    밤톨이11 2024.04.05 - 18:35 41
    1039
    리니지 옛날버젼..이라는데...구동가능여부 확인 부탁드립니다.
    도난차량 2024.03.24 - 04:56 354
    1038
    랭커
    foqwer 2024.03.14 - 10:43 141
    1037
    인첸별
    foqwer 2024.03.14 - 10:42 106
    1036
    몬스터 앞에 레벨 넣기
    프렌치좋아 2024.03.04 - 01:40 370
    1035
    3.63 글루딘 Single 용
    블루블랙3 2024.02.28 - 23:08 411
    1034
    Sprite file doesn`t exist 오류
    하앙비 2023.12.23 - 02:19 229
    1033
    전쟁세율 고정값 15%
    하남궁 2023.11.29 - 17:02 198
    1032
    인형합성사
    Rebecca 2023.10.09 - 22:54 337
    1031
    2.0 레벨업시 HP량 올리기
    Rebecca 2023.10.09 - 22:49 434
    1030
    전사버전 펫 만렙 변경
    Rebecca 2023.10.09 - 22:44 162
    1029
    맵 순간이동 가능 불가능지역 설정하기
    Rebecca 2023.10.09 - 22:39 237
    1028
    트레져박스 업로드입니다.
    린컴충성 2023.10.07 - 04:46 182
    1027
    리마스터 접속기 소스자료
    홍자놀기 2023.09.08 - 05:41 2284
    1026
    대미지 발동시 범위 질문드립니다
    나잇따나읻따 2023.05.21 - 22:26 292
    1025
    리니지 리마스터 몹 스폰수 어디서 줄일 수 있나요?
    001001 2023.04.25 - 16:06 727
    1024
    전사팩 로봇가능
    노력하자 2023.03.16 - 19:14 1113
    1023
    2.7 자동 물약 소스
    퍽퍽띠 2022.11.18 - 00:40 1215
    1022
    2.0 자동칼질소스 (클래스 파일에서 빼왔습니다)
    drumlinek 2022.11.06 - 05:20 930
    1021
    npc가 인겜에서 채팅으로 말하기
    하늘마음 2022.10.06 - 10:04 320
    1020
    유저 아이피보는 소스
    캐빈N.01 2020.12.15 - 21:34 639
    1019
    인공지능
    캐빈N.01 2020.12.15 - 21:27 1125
    1018
    아데나가 19억이 되면 자동으로 1억으로 금괴로 바꾸기
    강우리 2020.12.12 - 01:48 995
    1017
    린올기반 휘장 각반 견갑 장비인식 안되는거 수정함
    신화서버 2020.11.17 - 01:48 295
    1016
    방어구 인챈트별 피 증가 소스
    LGTwins 2020.09.12 - 05:52 688
    1015
    장신구 옵션 변경
    LGTwins 2020.08.31 - 07:00 751
    1014
    자동물약
    legena 2020.07.05 - 02:30 2089
    1013
    리마스터팩 스냅퍼 개방 레벨설정 본섭화 수정(몽양님 요청)
    jstory 2020.06.13 - 07:22 764
    1012
    리마스터팩 룬마력제거 검사 적용안대는 부분 수정
    jstory 2020.06.10 - 04:05 287
    1011
    리마스터팩 쓸모없는 아이템 활용
    jstory 2020.06.10 - 04:01 731
    1010
    리마스터팩 요정 소울 엠피 수정
    jstory 2020.06.10 - 03:54 459
    1009
    리마스터팩 자동공지시간에 버프주기
    jstory 2020.06.10 - 03:15 404
    • 1 2 3 4 5 6 7 8 9 10 .. 22
    • / 22 GO
  • GAMEZONE
 GAMEZONE all rights reserved.
by OrangeDay