close_btn
로그인, 회원가입후 더 많은 혜택을 누리세요 로그인 회원가입 닫기

오림 은둔형

2019.10.22 18:37

린지뽕뽕 조회 수:71

L1Shop

 

// 행베리
  if (getNpcId() == 7000077) {
   if (!ensureMarkSell2(pc, orderList)) {
    return;
   }
   sellMarkItems2(pc.getInventory(), orderList);
   return;
  }
  // 오림 은둔형
  if (getNpcId() == 7310079) {
   if (!ensureMarkSell3(pc, orderList)) {
      return;
   }
   sellMarkItems3(pc.getInventory(), orderList);
     return;
   }

 

 

if (0 < totalPrice) {
   /** 패키지상점 **/
   if (getNpcId() >= 6100000 && getNpcId() <= 6100035) {
    inv.storeItem(getNpcId() - 5299999, totalPrice);
   } else if (_npcId == 7000077) {// 행베리
    if (0 < totalPrice) {
     inv.storeItem(820018, totalPrice);
    }
   } else if (_npcId == 7310079) {// 오림 은둔형
    if (0 < totalPrice) {
     inv.storeItem(3000092, totalPrice);
    }

 

 

private void sellMarkItems3(L1PcInventory inv, L1ShopBuyOrderList orderList) {
  if (!inv.consumeItem(3000092, orderList.getTotalPrice())) {
   throw new IllegalStateException("구입에 필요한 오림의 가넷를 소비할 수 없습니다.");
  }// 행베리
  L1ItemInstance item = null;
  for (L1ShopBuyOrder order : orderList.getList()) {
   int itemId = order.getItem().getItemId();
   int amount = order.getCount();
   int enchant = order.getItem().getEnchant();
   item = ItemTable.getInstance().createItem(itemId);
   item.setCount(amount);
   item.setEnchantLevel(enchant);
   item.setIdentified(true);
   inv.storeItem(item);
  }
 }

 
 private boolean ensureMarkSell3(L1PcInstance pc, L1ShopBuyOrderList orderList) {
  // 오림 은둔형
  int price = orderList.getTotalPrice();
  if (!IntRange.includes(price, 0, 10000000)) {
   pc.sendPackets(new S_SystemMessage("오림의 가넷을 한번에 1,000만개 이상 사용할 수 없습니다."));
   return false;
  }

  if (!pc.getInventory().checkItem(3000092, price)) {
   pc.sendPackets(new S_ChatPacket(pc, "오림의 가넷이 부족합니다."));
   return false;
  }
  int currentWeight = pc.getInventory().getWeight() * 1000;
  if (currentWeight + orderList.getTotalWeight() > pc.getMaxWeight() * 1000) {
   pc.sendPackets(new S_ServerMessage(82));
   return false;
  }
  int totalCount = pc.getInventory().getSize();
  L1Item temp = null;
  for (L1ShopBuyOrder order : orderList.getList()) {
   temp = order.getItem().getItem();
   if (temp.isStackable()) {
    if (!pc.getInventory().checkItem(temp.getItemId())) {
     totalCount += 1;
    }
   } else {
    totalCount += 1;
   }
  }
  if (totalCount > 180) {
   pc.sendPackets(new S_ServerMessage(263));
   return false;
  }
  if (price <= 0 || price > 2000000000) {
   pc.sendPackets(new S_Disconnect());
   return false;
  }
  return true;
 }

 

 

C_NPCAction

if (s.equalsIgnoreCase("buy")) {
   int npcid = ((L1NpcInstance) obj).getNpcTemplate().get_npcId();
   if (pc.getInventory().getWeight100() > 90) {
    pc.sendPackets(new S_ServerMessage(3561));
    return;
   }
   L1NpcInstance npc = (L1NpcInstance) obj;
   if (isNpcSellOnly(npc)) {
    return;
   }
  
   if (npcid == 200060 || npcid == 200061 || npcid == 200062 || npcid == 200063 || npcid == 5000000 || npcid == 5000006 || npcid == 900047
     || npcid == 5072 || npcid == 5073 || npcid == 7000077 || npcid == 900107 || npcid == 7200002 || npcid == 81006 || npcid == 81008
     || npcid == 6000002 || npcid == 7310079
     ) {
    pc.sendPackets(new S_PremiumShopSellList(objid));
    return;
   }

 

S_PremiumShopSellList

 

if ((npcId ==7200002)){
   writeC(253);
   writeC(255);
}else if ((npcId ==70017)){  // 엔피씨 번호는 본인 팩에 맞게 하세요
   writeH(0x4115);

 

디비

 

NPC

7310079 오림 은둔형 마법사 $11127 기란 엔피씨 L1Merchant 266 0 0 0 0 0 0 0 0 0 0 0 0  0 0 0 0 0 0 0 0 0 0 0 0 0  0 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 0 0 0 0

 

etcitem

3000092 오림의가넷 $11128 other normal gemstone 0 7282 0 16661 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1

 

 

shop (상점 목록 추가해주시면 됩니다.)

 

 

7310079 820018 0 6 0 -1 0 

번호 제목 글쓴이 날짜 조회 수
공지 소스자료는 직접 올려주세요 게임존 2017.06.06 549
1009 리마스터팩 유저커맨드에 던전초기화 추가 jstory 2020.05.22 361
1008 리마스터팩 기사단의 주화 드랍 [1] jstory 2020.05.22 386
1007 로테이션 엔피씨 생성 소스 [1] 하날따라 2020.05.12 542
1006 신규캐릭생성시 아이템지급관련.. [1] 박지미 2020.03.05 1038
1005 유저 전체 소환 주혁이 2020.02.26 470
1004 보스몹 리스폰 시 멘트 띄우기 [3] 주혁이 2020.02.26 626
1003 운영자 채팅파티 초대금지 [2] 뜨아 2020.01.22 286
1002 변신시 이펙넣기 [1] 뜨아 2020.01.22 966
1001 스핵방어소스 [1] 뜨아 2020.01.22 799
1000 스트라이커게일 실시간소스 프리린2고 2020.01.14 395
999 파워그립시간 본섭화 소스 프리린2고 2020.01.14 223
998 기란던전 야간에 텔 [1] 코더서버 2020.01.14 369
997 운영자 투명 소스 file 우시기 2020.01.03 678
996 나비켓 db 각 테이블 설명 [5] file 베르니니 2019.12.20 3151
995 HP 영구적 올리는 물약 [4] 스크래치 2019.12.13 841
994 특정맵 경험치 추가하기 [2] 스크래치 2019.12.13 574
993 NPC에게 호칭 달아주기 [1] 린지뽕뽕 2019.11.20 535
992 성혈만 사용할수 있는 주문서 소스 만들기 린지뽕뽕 2019.11.16 374
991 아지트 지급하기 명령어 만들기 린지뽕뽕 2019.11.16 299
990 실시간 .리로드 관련입니다. [1] 린지뽕뽕 2019.11.16 710
989 3.80 낚시터 리뉴얼 [3] 스크래치 2019.11.14 536
988 에바팩에 디아 시스템 추가 [1] 스크래치 2019.11.14 490
987 무한대전 조절 [2] 린지뽕뽕 2019.11.05 447
986 npc마법데미지본섭화 [1] 린지뽕뽕 2019.11.05 416
985 유저 전체 소환 린지뽕뽕 2019.11.05 240
984 맥락인데 원거리 공격모션 린지뽕뽕 2019.11.05 165
983 대만팩 고질적인 다중접속막는소스 [2] 쇼부2 2019.11.05 387
982 점프팩 로봇들AI 패치 [3] 쇼부2 2019.11.05 791
981 맞는 데미지 5%흡수 소스 [1] 린지뽕뽕 2019.10.29 426
980 유저에게 영자 권한 린지뽕뽕 2019.10.29 530
979 로봇 변신 본섭 [2] 린지뽕뽕 2019.10.29 612
978 기란던전 야간일때 텔안되게 [1] 린지뽕뽕 2019.10.29 198
977 교환버그 방지 [3] 린지뽕뽕 2019.10.28 345
976 광연 켄슬 하게하기 린지뽕뽕 2019.10.27 239
975 달의 장궁 만들기 NPC 소스 린지뽕뽕 2019.10.27 347
974 깃털상점 재 판매시 깃털로 지급 린지뽕뽕 2019.10.27 157
973 gm 명령어 2탄 [4] 그러나너는 2019.10.24 10172
972 gm 명령어 [2] 그러나너는 2019.10.24 1465
971 1위부터 5위까지 자동 지급 [2] 린지뽕뽕 2019.10.23 444
970 3단 가속 물약 적용 [1] 린지뽕뽕 2019.10.23 556
969 중계기 차단 소스 린지뽕뽕 2019.10.22 210
968 2중 로그인 방지 린지뽕뽕 2019.10.22 133
967 로또 복권 소스 린지뽕뽕 2019.10.22 183
» 오림 은둔형 린지뽕뽕 2019.10.22 71
965 스텟 제한풀기 [1] 린지뽕뽕 2019.10.15 496
964 인형 마법부여~ [1] 린지뽕뽕 2019.10.15 416
963 같은 계정에 있는 케릭 검사 [2] 레이더 2019.09.26 242
962 70렙이하 버프 [1] 레이더 2019.09.26 189
961 현상금 시스템 레이더 2019.09.26 276
960 살생부 시스템 [1] 레이더 2019.09.26 219