사이트 로그인
2019.11.14 23:04
l1j.server.server.clientpackets.C_ItemUSe.java
아래부분은 원본소스
} else if (itemId == 41301 || itemId == 140024 ) { // 샤이닝렛드핏슈
int chance = _random.nextInt(10);
if (chance >= 0 && chance < 5) {
UseHeallingPotion(pc, 15, 189);
} else if (chance >= 5 && chance < 9) {
createNewItem(pc, 40019, 1);
} else if (chance >= 9) {
int gemChance = _random.nextInt(3);
if (gemChance == 0) {
createNewItem(pc, 40045, 1);
} else if (gemChance == 1) {
createNewItem(pc, 40049, 1);
} else if (gemChance == 2) {
createNewItem(pc, 40053, 1);
}
}
pc.getInventory().removeItem(useItem, 1);
} else if (itemId == 41302) { // 샤이닝그린핏슈
int chance = _random.nextInt(3);
if (chance >= 0 && chance < 5) {
UseHeallingPotion(pc, 15, 189);
} else if (chance >= 5 && chance < 9) {
createNewItem(pc, 40018, 1);
} else if (chance >= 9) {
int gemChance = _random.nextInt(3);
if (gemChance == 0) {
createNewItem(pc, 40047, 1);
} else if (gemChance == 1) {
createNewItem(pc, 40051, 1);
} else if (gemChance == 2) {
createNewItem(pc, 40055, 1);
}
}
pc.getInventory().removeItem(useItem, 1);
} else if (itemId == 41303 || itemId == 140067 ) { // 샤이닝브르핏슈
int chance = _random.nextInt(3);
if (chance >= 0 && chance < 5) {
UseHeallingPotion(pc, 15, 189);
} else if (chance >= 5 && chance < 9) {
createNewItem(pc, 40015, 1);
} else if (chance >= 9) {
int gemChance = _random.nextInt(3);
if (gemChance == 0) {
createNewItem(pc, 40046, 1);
} else if (gemChance == 1) {
createNewItem(pc, 40050, 1);
} else if (gemChance == 2) {
createNewItem(pc, 40054, 1);
}
}
pc.getInventory().removeItem(useItem, 1);
} else if (itemId == 41304) { // 샤이닝화이트핏슈
int chance = _random.nextInt(3);
if (chance >= 0 && chance < 5) {
UseHeallingPotion(pc, 15, 189);
} else if (chance >= 5 && chance < 9) {
createNewItem(pc, 40021, 1);
} else if (chance >= 5 && chance < 9) {
createNewItem(pc, 1437011, 1);
} else if (chance >= 9) {
int gemChance = _random.nextInt(3);
if (gemChance == 0) {
createNewItem(pc, 40044, 1);
} else if (gemChance == 1) {
createNewItem(pc, 40048, 1);
} else if (gemChance == 2) {
createNewItem(pc, 40052, 1);
}
}
pc.getInventory().removeItem(useItem, 1);
} else if (itemId == 40615) { // 그림자의 신전 2층의 열쇠
---------------------------------------------------------------------------------------------
이렇게 고치세요.
} else if (itemId == 41301 || itemId == 140024 ) { // 샤이닝렛드핏슈
int chance = _random.nextInt(10);
if (chance >= 0 && chance < 5) {
UseHeallingPotion(pc, 15, 189);
} else if (chance >= 5 && chance < 9) {
createNewItem(pc, 40019, 1);
} else if (chance >= 9) {
int gemChance = _random.nextInt(3);
if (gemChance == 0) {
createNewItem(pc, 40045, 1);
} else if (gemChance == 1) {
createNewItem(pc, 40049, 1);
} else if (gemChance == 2) {
createNewItem(pc, 40053, 1);
}
}
pc.getInventory().removeItem(useItem, 1);
} else if (itemId == 41302) { // 샤이닝그린핏슈
int chance = _random.nextInt(10);
if (chance >= 0 && chance < 5) {
UseHeallingPotion(pc, 15, 189);
} else if (chance >= 5 && chance < 9) {
createNewItem(pc, 40018, 1);
} else if (chance >= 9) {
int gemChance = _random.nextInt(3);
if (gemChance == 0) {
createNewItem(pc, 40047, 1);
} else if (gemChance == 1) {
createNewItem(pc, 40051, 1);
} else if (gemChance == 2) {
createNewItem(pc, 40055, 1);
}
}
pc.getInventory().removeItem(useItem, 1);
} else if (itemId == 41303 || itemId == 140067 ) { // 샤이닝브르핏슈
int chance = _random.nextInt(10);
if (chance >= 0 && chance < 5) {
UseHeallingPotion(pc, 15, 189);
} else if (chance >= 5 && chance < 9) {
createNewItem(pc, 40015, 1);
} else if (chance >= 9) {
int gemChance = _random.nextInt(3);
if (gemChance == 0) {
createNewItem(pc, 40046, 1);
} else if (gemChance == 1) {
createNewItem(pc, 40050, 1);
} else if (gemChance == 2) {
createNewItem(pc, 40054, 1);
}
}
pc.getInventory().removeItem(useItem, 1);
} else if (itemId == 41304) { // 샤이닝화이트핏슈
int chance = _random.nextInt(10);
if (chance >= 0 && chance < 5) {
UseHeallingPotion(pc, 15, 189);
} else if (chance >= 5 && chance < 9) {
createNewItem(pc, 40021, 1);
} else if (chance >= 5 && chance < 9) {
createNewItem(pc, 1437011, 1);
} else if (chance >= 9) {
int gemChance = _random.nextInt(3);
if (gemChance == 0) {
createNewItem(pc, 40044, 1);
} else if (gemChance == 1) {
createNewItem(pc, 40048, 1);
} else if (gemChance == 2) {
createNewItem(pc, 40052, 1);
}
}
pc.getInventory().removeItem(useItem, 1);
} else if (itemId == 41425) { // 상자 물고기
int chance = _random.nextInt(200);
if (chance >= 0 && chance < 26) {
createNewItem(pc, 41296, 1); // 붕어
} else if (chance >= 26 && chance < 52) {
createNewItem(pc, 41297, 1); // 잉어
} else if (chance >= 52 && chance < 78) {
createNewItem(pc, 41298, 1); // 어린 물고기
} else if (chance >= 78 && chance < 92) {
createNewItem(pc, 21052, 1); // 물에 젖은 망토
} else if (chance >= 92 && chance < 106) {
createNewItem(pc, 21053, 1); // 물에 젖은 갑옷
} else if (chance >= 106 && chance < 120) {
createNewItem(pc, 21054, 1); // 물에 젖은 장갑
} else if (chance >= 120 && chance < 134) {
createNewItem(pc, 21055, 1); // 물에 젖은 부츠
} else if (chance >= 134 && chance < 148) {
createNewItem(pc, 21056, 1); // 물에 젖은 방패
} else if (chance >= 148 && chance < 158) {
createNewItem(pc, 21051, 1); // 물에 젖은 투구
} else if (chance >= 158 && chance < 168) {
createNewItem(pc, 21092, 1); // 물에 젖은 모자
} else if (chance >= 168 && chance < 178) {
createNewItem(pc, 21093, 1); // 물에 젖은 후드
} else if (chance >= 178 && chance < 186) {
createNewItem(pc, 41306, 1); // 깨진 반지
} else if (chance >= 186 && chance < 193) {
createNewItem(pc, 41305, 1); // 깨진 귀걸이
} else if (chance >= 193 && chance < 200) {
createNewItem(pc, 41307, 1); // 깨진 목걸이
}
pc.getInventory().removeItem(useItem, 1);
} else if (itemId == 40615) { // 그림자의 신전 2층의 열쇠
==============================================================================================
l1j.server.server.TimeController.FishingTimeController.java
private void fishing() {
if (_fishingList.size() > 0) {
long currentTime = System.currentTimeMillis();
L1PcInstance pc = null;
for (int i = 0; i < _fishingList.size(); i++) {
pc = _fishingList.get(i);
if (pc.isFishing()) {
long time = pc.getFishingTime();
if (currentTime <= (time + 1000) && currentTime >= (time - 1000) ) {
pc.setFishingReady(true);
pc.sendPackets(new S_PacketBox(S_PacketBox.FISHING));
} else if ( currentTime > (time + 100)
){
int chance = _random.nextInt(200) + 1;
if (chance < 50) {
successFishing(pc, 41298, "$5256"); // 25%어린 물고기
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
} else if (chance < 65) {
successFishing(pc, 41300, "$5258"); // 7.5% 강한 물고기
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
} else if (chance < 80) {
successFishing(pc, 41299, "$5257"); // 7.5%재빠른 물고기
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
} else if (chance < 90) {
successFishing(pc, 41296, "$5249"); // 5%붕어
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
} else if (chance < 100) {
successFishing(pc, 41297, "$5250"); // 5%잉어
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
} else if (chance < 105) {
successFishing(pc, 41301, "$5259"); // 2.5%붉은 빛 나는 물고기
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
} else if (chance < 110) {
successFishing(pc, 41302, "$5260"); // 2.5%초록 빛 나는 물고기
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
} else if (chance < 115) {
successFishing(pc, 41303, "$5261"); // 2.5%파란 빛 나는 물고기
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
} else if (chance < 170) {
successFishing(pc, 41304, "$5262"); // 2.5%흰 빛 나는 물고기
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
} else if (chance < 175) {
successFishing(pc, 40074, "$249"); // 1.5% 젤
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
} else if (chance < 180) {
successFishing(pc, 40087, "$244"); // 1.5% 데이
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
} else if (chance < 185) {
successFishing(pc, 240087, "$244"); // 저주 데이
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
} else if (chance < 188) {
successFishing(pc, 240074, "$249"); // 저주젤
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
} else if (chance < 190) {
successFishing(pc, 437004, "$5825"); // 전투강화주문서
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
} else if (chance < 192) {
successFishing(pc, 437003, "$5824"); // 마력증강 주문서
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
} else if (chance < 194) {
successFishing(pc, 437002, "$5823"); // 체력증강주문서
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
} else if (chance < 196) {
successFishing(pc, 140087, "$244"); // 축데이
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
} else if (chance < 198) {
successFishing(pc, 140074, "$249"); // 축젤
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
} else if (chance < 200) { //4% 비늘
successFishing(pc, 500235, "반짝이는 비늘");
pc.setFishingTime(0);
pc.setFishingReady(false);
pc.setFishing(false);
pc.sendPackets(new S_CharVisualUpdate(pc));
Broadcaster.broadcastPacket(pc, new S_CharVisualUpdate(pc));
pc.sendPackets(new S_ServerMessage(1163, ""));// 낚시가 종료했습니다.
removeMember(pc);
} else {
pc.sendPackets(new S_ServerMessage(1136, "")); // 낚시해에 실패했습니다.
pc.getInventory().consumeItem(41295, 1); //실패시 삭제
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
pc.getInventory().consumeItem(41295, 1);
}
}
}
}
}
}
----------------------------------------------------------------------------------------------------------
위에 파란부분 아래 빨간부분으로 통째로 복사하세요.
private void fishing() {
if (_fishingList.size() > 0) {
long currentTime = System.currentTimeMillis();
L1PcInstance pc = null;
for (int i = 0; i < _fishingList.size(); i++) {
pc = _fishingList.get(i);
if (pc.isFishing()) {
long time = pc.getFishingTime();
if (currentTime <= (time + 1000) && currentTime >= (time - 1000) ) {
pc.setFishingReady(true);
pc.sendPackets(new S_PacketBox(S_PacketBox.FISHING));
} else if ( currentTime > (time + 100)
){
int chance = _random.nextInt(1000);
if (chance < 200) {
pc.sendPackets(new S_ServerMessage(1136, "")); // 20%낚시에 실패.
pc.getInventory().consumeItem(41295, 1); //실패시 삭제
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
pc.getInventory().consumeItem(41295, 1);
} else if (chance < 405) {
successFishing(pc, 41297, "$5250"); // 20.5%잉어
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
} else if (chance < 610) {
successFishing(pc, 41296, "$5249"); // 20.5%붕어
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
} else if (chance < 710) {
successFishing(pc, 41298, "$5256"); // 10%어린 물고기
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
} else if (chance < 790) {
successFishing(pc, 41299, "$5257"); // 8%재빠른 물고기
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
} else if (chance < 850) {
successFishing(pc, 41300, "$5258"); // 6% 강한 물고기
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
} else if (chance < 880) {
successFishing(pc, 41301, "$5259"); // 3%붉은 빛 나는 물고기
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
} else if (chance < 910) {
successFishing(pc, 41302, "$5260"); // 3%초록 빛 나는 물고기
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
} else if (chance < 940) {
successFishing(pc, 41303, "$5261"); // 3%파란 빛 나는 물고기
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
} else if (chance < 970) {
successFishing(pc, 41304, "$5262"); // 3%흰 빛 나는 물고기
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
} else if (chance < 980) {
successFishing(pc, 41425, "$7509"); // 1% 상자 물고기
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
} else if (chance < 985) {
successFishing(pc, 41252, "$5248"); // 0.5% 진귀한 거북이
long time2 = System.currentTimeMillis() + 10000 + _random.nextInt(6) * 1000;
pc.setFishingTime(time2);
} else if (chance < 1000) {
successFishing(pc, 500235, "반짝이는 비늘"); // 1.5% 반짝이는 비늘
pc.setFishingTime(0);
pc.setFishingReady(false);
pc.setFishing(false);
pc.sendPackets(new S_CharVisualUpdate(pc));
Broadcaster.broadcastPacket(pc, new S_CharVisualUpdate(pc));
pc.sendPackets(new S_ServerMessage(1163, ""));// 낚시가 종료했습니다.
removeMember(pc);
}
}
}
}
}
}
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
공지 | 소스자료는 직접 올려주세요 | 게임존 | 2017.06.06 | 549 |
1059 | 구버전 구축방법[1.63.버전] [21] | 찰떡01 | 2018.08.10 | 34676 |
1058 | gm 명령어 2탄 [4] | 그러나너는 | 2019.10.24 | 10123 |
1057 | 나비켓 db 각 테이블 설명 [5] | 베르니니 | 2019.12.20 | 3146 |
1056 | 리마스터 접속기 소스자료 [16] | 홍자놀기 | 2023.09.07 | 2127 |
1055 | 자동물약 [11] | legena | 2020.07.04 | 2036 |
1054 | 린1 자동사냥 소스 [3] | 넷시아 | 2019.06.12 | 1731 |
1053 | gm 명령어 [2] | 그러나너는 | 2019.10.24 | 1461 |
1052 | 리니지 스타트 초보관련 및 게임상 운영자 권한 과 그외 받아야할 파일들 [2] | 찰떡01 | 2018.08.10 | 1384 |
1051 | 상점템 축 저주표시 | 찰떡01 | 2018.08.13 | 1321 |
1050 | 2.7 자동 물약 소스 [3] | 퍽퍽띠 | 2022.11.17 | 1159 |
1049 | 인공지능 [4] | 캐빈N.01 | 2020.12.15 | 1092 |
1048 | 구버젼3.63서버 통정리 [6] | 사냥전투충 | 2019.06.15 | 1089 |
1047 | 전사팩 로봇가능 | 노력하자 | 2023.03.16 | 1074 |
1046 | 신규캐릭생성시 아이템지급관련.. [1] | 박지미 | 2020.03.05 | 1037 |
1045 | 프리서버 오픈소스 리니지 카운터 배리어 본섭화 소스 | 찰떡01 | 2018.09.12 | 1012 |
1044 | 혈맹창 | 준희미니 | 2016.07.07 | 1009 |
1043 | 소스 파일별 간단한 역할 | 인게임 | 2017.01.06 | 966 |
1042 | 아데나가 19억이 되면 자동으로 1억으로 금괴로 바꾸기 [5] | 강우리 | 2020.12.11 | 965 |
1041 | 변신시 이펙넣기 [1] | 뜨아 | 2020.01.22 | 961 |
1040 | 인벤토리 이미지 정리 1~9528 [7] | 깡스 | 2019.03.26 | 959 |
1039 | 저처럼 생초자분들을 위한... | 찰떡01 | 2018.08.10 | 902 |
1038 | 2.0 자동칼질소스 (클래스 파일에서 빼왔습니다) [3] | drumlinek | 2022.11.05 | 872 |
1037 | 리니지 서버 구축을 하기 위한 준비물 [2] | 인자기 | 2019.08.16 | 860 |
1036 | HP 영구적 올리는 물약 [4] | 스크래치 | 2019.12.13 | 839 |
1035 | 나비켓 질의문 활용 | 인게임 | 2017.01.06 | 838 |
1034 | 구버젼 6.38 10년전 리니지 통 저렴정리중 | 사냥전투충 | 2019.07.04 | 837 |
1033 | 스핵방어소스 [1] | 뜨아 | 2020.01.22 | 799 |
1032 | 점프팩 로봇들AI 패치 [3] | 쇼부2 | 2019.11.05 | 786 |
1031 | 패킷 변조 / 중계기 방지 소스 | 찰떡01 | 2018.10.29 | 779 |
1030 | 메티스 설정 | 찰떡01 | 2018.08.09 | 758 |
1029 | 리마스터팩 스냅퍼 개방 레벨설정 본섭화 수정(몽양님 요청) [4] | jstory | 2020.06.12 | 753 |
1028 | [160216] 서버버전/키패킷/seed (린올,감자) (린존에서퍼옴) [1] | 천사 | 2016.02.28 | 742 |
1027 | [에바] 나비켓 테이블 관련 설명 [1] | 준희미니 | 2016.07.29 | 739 |
1026 | 프리서버 오픈소스 리니지 맵 낑김 방지 소스 | 아옳옳 | 2018.03.17 | 738 |
1025 | 리니지 운영자 상점 추가 | 찰떡01 | 2018.09.14 | 736 |
1024 | 장신구 옵션 변경 [2] | LGTwins | 2020.08.30 | 723 |
1023 | 실시간 .리로드 관련입니다. [1] | 린지뽕뽕 | 2019.11.16 | 709 |
1022 | 리마스터팩 쓸모없는 아이템 활용 [3] | jstory | 2020.06.09 | 706 |
1021 | 리니지 리마스터 몹 스폰수 어디서 줄일 수 있나요? [4] | 001001 | 2023.04.25 | 699 |
1020 | 최신클라 본섭 업데이트 안하고 클라버전 유지 하면서 패치파일 묶는법 [1] | 찰떡01 | 2018.08.10 | 699 |
1019 | 매니저창 구버전 하시는분들한테 좋을거 같아서 올립니다. | 로스트사가 | 2016.05.04 | 679 |
1018 | 운영자 투명 소스 | 우시기 | 2020.01.03 | 678 |
1017 | 이클립스 컴파일 [환경 변수] [1] | 인자기 | 2019.08.16 | 678 |
1016 | 방어구 인챈트별 피 증가 소스 [5] | LGTwins | 2020.09.11 | 675 |
1015 | 프리서버 오픈소스 리니지 피가 영구적으로 증가되는 물약 만들기 | 찰떡01 | 2018.08.17 | 656 |
1014 | [펌] 로봇팩 보완 | 안약 | 2016.11.13 | 635 |
1013 | 유저 아이피보는 소스 [1] | 캐빈N.01 | 2020.12.15 | 627 |
1012 | 입맛대로 인형 수정해보는 소스 [1] | 장췐 | 2019.02.11 | 626 |
1011 | 보스몹 리스폰 시 멘트 띄우기 [3] | 주혁이 | 2020.02.26 | 626 |
1010 | 초보팩추가하기 [1] | ddddgdfgh42 | 2017.06.20 | 622 |
감사합니다