사이트 로그인
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 |
1009 | 리마스터팩 유저커맨드에 던전초기화 추가 | jstory | 2020.05.22 | 361 |
1008 | 리마스터팩 기사단의 주화 드랍 [1] | jstory | 2020.05.22 | 386 |
1007 | 로테이션 엔피씨 생성 소스 [1] | 하날따라 | 2020.05.12 | 542 |
1006 | 신규캐릭생성시 아이템지급관련.. [1] | 박지미 | 2020.03.05 | 1037 |
1005 | 유저 전체 소환 | 주혁이 | 2020.02.26 | 467 |
1004 | 보스몹 리스폰 시 멘트 띄우기 [3] | 주혁이 | 2020.02.26 | 626 |
1003 | 운영자 채팅파티 초대금지 [2] | 뜨아 | 2020.01.22 | 286 |
1002 | 변신시 이펙넣기 [1] | 뜨아 | 2020.01.22 | 963 |
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 | 운영자 투명 소스 | 우시기 | 2020.01.03 | 678 |
996 | 나비켓 db 각 테이블 설명 [5] | 베르니니 | 2019.12.20 | 3147 |
995 | HP 영구적 올리는 물약 [4] | 스크래치 | 2019.12.13 | 839 |
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 |
» | 3.80 낚시터 리뉴얼 [3] | 스크래치 | 2019.11.14 | 536 |
988 | 에바팩에 디아 시스템 추가 [1] | 스크래치 | 2019.11.14 | 490 |
987 | 무한대전 조절 [2] | 린지뽕뽕 | 2019.11.05 | 446 |
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 | 788 |
981 | 맞는 데미지 5%흡수 소스 [1] | 린지뽕뽕 | 2019.10.29 | 426 |
980 | 유저에게 영자 권한 | 린지뽕뽕 | 2019.10.29 | 529 |
979 | 로봇 변신 본섭 [2] | 린지뽕뽕 | 2019.10.29 | 611 |
978 | 기란던전 야간일때 텔안되게 [1] | 린지뽕뽕 | 2019.10.29 | 198 |
977 | 교환버그 방지 [3] | 린지뽕뽕 | 2019.10.28 | 345 |
976 | 광연 켄슬 하게하기 | 린지뽕뽕 | 2019.10.27 | 239 |
975 | 달의 장궁 만들기 NPC 소스 | 린지뽕뽕 | 2019.10.27 | 346 |
974 | 깃털상점 재 판매시 깃털로 지급 | 린지뽕뽕 | 2019.10.27 | 157 |
973 | gm 명령어 2탄 [4] | 그러나너는 | 2019.10.24 | 10145 |
972 | gm 명령어 [2] | 그러나너는 | 2019.10.24 | 1462 |
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 |
966 | 오림 은둔형 | 린지뽕뽕 | 2019.10.22 | 71 |
965 | 스텟 제한풀기 [1] | 린지뽕뽕 | 2019.10.15 | 495 |
964 | 인형 마법부여~ [1] | 린지뽕뽕 | 2019.10.15 | 416 |
963 | 같은 계정에 있는 케릭 검사 [2] | 레이더 | 2019.09.26 | 242 |
962 | 70렙이하 버프 [1] | 레이더 | 2019.09.26 | 189 |
961 | 현상금 시스템 | 레이더 | 2019.09.26 | 275 |
960 | 살생부 시스템 [1] | 레이더 | 2019.09.26 | 219 |
감사합니다