사이트 로그인
2016.11.14 09:50
출저- 무진
PacketHandler 부분에서 itemdrop <-찾으세요
public boolean itemdrop(){
setting(data);
int locx = readH();
int locy = readH();
int itemid = readD();
int count = readD();
if(좌표확인(locx, locy)){
L1ItemInstance temp = cha.get_cil().getItems(itemid);
if(temp != null){
if(temp.getItem().get_nameid().equalsIgnoreCase("$3278") || temp.getItem().get_nameid().equalsIgnoreCase("$4") ||
temp.getItem().get_nameid().equalsIgnoreCase("$244") || temp.getItem().get_nameid().equalsIgnoreCase("$249") ||
temp.getItem().get_nameid().equalsIgnoreCase("$227 $3359") || temp.getItem().get_nameid().equalsIgnoreCase("$227 $3360")) {
cha.sendPackets(_client.bph().get_cp().S_ChatPacket(cha , "해당 하는 아이템은 바닥에 버리지 못합니다", Opcodes.S_OPCODE_GLOBALCHAT , 0x02), true);
}else if(!temp.isEquipped() && !(temp.getCount() < count) ){ // 숫자가 틀리지 않을때 라는 조건추가
if(temp.getCount() < count || 0 > count ){ return false; } //한줄추가
if(temp.getCount() > count){
L1ItemInstance temp2 = new L1ItemInstance(temp.getItem());
temp2.set_x(locx);
temp2.set_y(locy);
temp2.set_map(cha.get_map());
temp2.setCount(count);
temp2.setEnchantLevel(temp.getEnchantLevel());
temp2.set_isid(temp.get_isid());
temp2.set_bress(temp.get_bress());
temp2.set_durability(temp.get_durability());
while(true){
temp2.set_objectId(IdFactory.getInstance().getNextId());
if(L1World.getInstance().storeObject(temp2)){
break;
}
}
//-- 나에게 보내기
cha.sendPackets(_client.bph().get_NewObjectPack().S_ITEMPack(temp2), true, true);
temp.setCount(temp.getCount() - count);
cha.sendPackets(_client.bph().get_Item().ItemStatus(temp), false);
//-- 무게 세팅
cha.set_weight(cha.get_weight() - (temp.getItem().getWeight()*count));
cha.sendPackets(_client.bph().S_Status(cha, 0), true);
_client.set_savetrue(true);//추가한부분 저장...
}else{
temp.set_x(locx);
temp.set_y(locy);
temp.set_map(cha.get_map());
while(true){
temp.set_objectId(IdFactory.getInstance().getNextId());
if(L1World.getInstance().storeObject(temp)){
break;
}
}
//-- 나에게 보내기
cha.sendPackets(_client.bph().get_NewObjectPack().S_ITEMPack(temp), true, true);
cha.sendPackets(_client.bph().get_Item().S_ItemDelete(temp), false);
cha.get_cil().removeItems(temp);
//-- 무게 세팅
cha.set_weight(cha.get_weight() - (temp.getItem().getWeight()*count));
cha.sendPackets(_client.bph().S_Status(cha, 0), true);
_client.set_savetrue(true);//추가한부분 저장...
}
}else{
// 착용중이거나 있는량보다 버그를 이용 더 많은 수량 드랍하지 못함
}
}else{
// 에러 메세지 보내기
}
}
return false;
}
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
공지 | 소스자료는 직접 올려주세요 | 게임존 | 2017.06.06 | 550 |
659 | 레옹 (린올팩 기준) | 인게임 | 2017.01.06 | 253 |
658 | 에바팩 얍솔루트 블레이드 본섭화 | 인게임 | 2017.01.06 | 58 |
657 | 에바팩 콤보버프 | 인게임 | 2017.01.06 | 78 |
656 | 스냅퍼 옵션 본섭화 (표기X 캐릭적용O) | 인게임 | 2017.01.06 | 131 |
655 | 3.63 옵코드 | 인게임 | 2017.01.06 | 344 |
654 | 특정맵 PK 안되게하는 소스 | 인게임 | 2017.01.06 | 103 |
653 | 특화 인형 고양이 | 인게임 | 2017.01.06 | 125 |
652 | 혈흔 패킷 | 인게임 | 2017.01.06 | 41 |
651 | 호칭 수 늘리기 | 인게임 | 2017.01.06 | 43 |
650 |
초기지원아이템 설정 방법
![]() | 인게임 | 2017.01.06 | 235 |
649 | 나비켓 질의문 활용 | 인게임 | 2017.01.06 | 838 |
648 | 서버공지 나오게하기 | 인게임 | 2017.01.06 | 218 |
647 | 누구 할때 킬수 죽은수 승률 표기하는 시스템 | 인게임 | 2017.01.06 | 119 |
646 | PVP승리시 깃털뺏어오기 | 인게임 | 2017.01.06 | 92 |
645 | 장인의 무기마법주문서 | 인게임 | 2017.01.06 | 228 |
644 | 1억 수표 만들기 | 인게임 | 2017.01.06 | 175 |
643 | 달장 만들기 | 인게임 | 2017.01.06 | 136 |
642 | 타이탄락 / 블릿 차암 | 인게임 | 2017.01.06 | 100 |
641 | 소스 파일별 간단한 역할 | 인게임 | 2017.01.06 | 967 |
640 | 경험치 포인트 패킷 | 인게임 | 2017.01.06 | 100 |
639 | 세이프존 패킷 | 인게임 | 2017.01.06 | 65 |
638 | 캐삭 시간 설정 | 인게임 | 2017.01.06 | 69 |
637 |
[펌]armor 테이블에 독 내성 추가하기
[1] ![]() | Jike | 2016.11.24 | 126 |
636 | [펌]견갑, 휘장 이미지번호 | Jike | 2016.11.24 | 84 |
635 | 1.38버전 데미지업 소스(펌) | 메티즈 | 2016.11.18 | 89 |
634 | [펌]어밴 풀릴때 피 마이너스값 [1] | 안약 | 2016.11.16 | 42 |
633 | [펌]올마법투구 | 안약 | 2016.11.16 | 147 |
632 | [펌]힘덱200까지추가타격 [1] | 안약 | 2016.11.16 | 159 |
631 | [펌] 요정 원거리 명중 올리기 | 안약 | 2016.11.16 | 113 |
630 | [펌]무게에 따른 마법 사용 여부 | 안약 | 2016.11.16 | 47 |
629 | [펌] 모든 몹에서 특정템 드랍 | 안약 | 2016.11.14 | 287 |
628 | [펌] 마크없이 공성선포 불가 | 안약 | 2016.11.14 | 78 |
627 | [펌] 실시간 레벨제한 | 안약 | 2016.11.14 | 114 |
626 | [펌] 사막회오리 | 안약 | 2016.11.14 | 65 |
625 | [펌] 킬수로 랭킹설정 | 안약 | 2016.11.14 | 103 |
» | [펌] 해당 아이템 드롭 불가 | 안약 | 2016.11.14 | 90 |
623 | [펌]만렙제한 | 안약 | 2016.11.14 | 195 |
622 | [펌] 지옥 포탈 및 귀환 | 안약 | 2016.11.14 | 88 |
621 | [펌] 렙에 따른 인챈확률 변화 | 안약 | 2016.11.14 | 107 |
620 | [펌]뒤에서 공격시 20%추가데미지 | 안약 | 2016.11.14 | 93 |
619 | [펌] 단테스 버프 거리추가 | 안약 | 2016.11.14 | 57 |
618 | [펌]코마버프추가 | 안약 | 2016.11.14 | 105 |
617 | [펌] 팻 경험치 외부화 | 안약 | 2016.11.13 | 93 |
616 | [펌] 반역자의방패 기능추가 | 안약 | 2016.11.13 | 129 |
615 | [펌]소울 엠피회복 수정 | 안약 | 2016.11.13 | 66 |
614 | [펌]팻목걸이 본섭화 | 안약 | 2016.11.13 | 60 |
613 | [펌] 로봇팩 보완 | 안약 | 2016.11.13 | 635 |
612 | [펌]혈맹원 50명 이상일 경우 버프 | 안약 | 2016.11.13 | 84 |
611 | [펌] 9인첸 이상 성공시 폭죽 | 안약 | 2016.11.13 | 86 |
610 | [펌] 미끼 하루에 한 번만 구입가능하게 하기 | 안약 | 2016.11.13 | 42 |