중계기 차단 소스
C_ShopAndWarehouse
public C_ShopAndWarehouse(byte abyte0[], LineageClient clientthread) throws Exception {
중략...
if (findObject instanceof L1NpcInstance) {
L1NpcInstance targetNpc = (L1NpcInstance) findObject;
npcId = targetNpc.getNpcTemplate().get_npcId();
npcImpl = targetNpc.getNpcTemplate().getImpl();
}
else if (findObject instanceof L1PcInstance) {
isPrivateShop = true;
}
} //검색
if(resultType == 0||resultType == 2){
if(size > 1000){
System.out.println("김하나 등장!! ["+pc.getName()+"] IP "+clientthread.getIp());
clientthread.kick();
}
} //추가
private boolean isOverMaxAdena(L1PcInstance pc, int sellPrice, int count) { //검색
아래 소스로 교체합니다.
if (sellPrice * count > 2000000000
||sellPrice * count < 0) {
pc.sendPackets(new S_ServerMessage(904, "2000000000"));
return true;
}
if(count < 0){
return true;
}
if(sellPrice < 0){
return true;
}
return false;
}
private void buyItemFromShop(L1PcInstance pc, int npcId, int size) { //검색
아래소스로 교체합니다.
L1Shop shop = ShopTable.getInstance().get(npcId);
L1ShopBuyOrderList orderList = shop.newBuyOrderList();
int itemNumber; long itemcount;
if(size > 1000){
return;
}
for (int i = 0; i < size; i++) {
itemNumber = readD();
itemcount = readD();
if(itemcount <= 0||itemcount >= 10000) {
return;
}
orderList.add(itemNumber, (int)itemcount , pc);
}
int bugok = orderList.BugOk();
if (bugok == 0){
shop.sellItems(pc, orderList);
}
}

린지뽕뽕 님의 최근 댓글
자료감사합니다 2021 08.04 감사합니다 2021 08.03 ㅋㅋㅋㅋㅋㅋ 2021 07.29 전용 클라좀 공유해주세요 2021 04.30 감사합니다 2021 04.09