wq5600 發表於 2019-10-23 19:39

鉴定物品掉线问题

使用鉴定卷,鉴定背包内的有些物品就会掉线这是什么原因或者查看哪些档

殺戮kill 發表於 2019-10-26 11:02

黑盒子錯誤 放上來

wq5600 發表於 2019-10-26 14:13

殺戮kill 發表於 2019-10-26 11:02
黑盒子錯誤 放上來

你好大大 黑盒子正常没有报告错误。
鉴定背包里面的物品也不是全部都是掉线   有些物品鉴定是正常的 有些就不可以!


殺戮kill 發表於 2019-10-26 14:45

什麼版本 有源碼嗎如果同樣物品 可能是
產生額外加成 素質 那段沒有寫好, 導致判斷錯誤斷線
建議查看源碼 或是DB 有沒有相關鑑定可以設定

wq5600 發表於 2019-10-26 18:04

韩版的有源码我搜索到了鉴定卷的这段                                case 40126:// 확인 스크롤
                                case 40098: {// 상아탑의 확인 주문서
                                        int add_mpr = l1iteminstance1.getItem().get_addmpr();
                                        int add_hpr = l1iteminstance1.getItem().get_addhpr();
                                        int safe_enchant = l1iteminstance1.getItem().get_safeenchant();
                                        if (!l1iteminstance1.isIdentified()) {
                                                l1iteminstance1.setIdentified(true);
                                                pc.getInventory().updateItem(l1iteminstance1, L1PcInventory.COL_IS_ID);
                                        }
                                        int mainid1 = l1iteminstance1.getItem().getMainId();
                                        L1ItemInstance main = null;
                                        if (mainid1 == l1iteminstance1.getItem().getItemId()) {
                                                main = pc.getInventory().findItemId(mainid1);
                                                if (main != null) {
                                                        if (main.isEquipped()) {
                                                                pc.sendPackets(new S_ItemStatus(main, pc, true, true));
                                                        } else {
                                                                pc.sendPackets(new S_ItemStatus(main, pc, true, false));
                                                        }
                                                }
                                        }
                                        pc.sendPackets(new S_IdentifyDesc(l1iteminstance1));
                                        pc.getInventory().removeItem(l1iteminstance, 1);
                                        StringBuffer sb = new StringBuffer();
                                        if (l1iteminstance1.getItem().getType2() == 1 || l1iteminstance1.getItem().getType2() == 2) {
                                                if (safe_enchant == -1) {
                                                        sb.append("\\aD 피틱: " + add_hpr + " /");
                                                        sb.append("\\aD 엠틱: " + add_mpr + " /");
                                                        sb.append("\\aD 기본 인첸트: 불가능");
                                                } else if (safe_enchant == 0) {
                                                        sb.append("\\aD 피틱: " + add_hpr + " /");
                                                        sb.append("\\aD 엠틱: " + add_mpr + " /");
                                                        sb.append("\\aD 기본 인첸트: 0");
                                                } else {
                                                        sb.append("\\aD 피틱: " + add_hpr + " /");
                                                        sb.append("\\aD 엠틱: " + add_mpr + " /");
                                                        sb.append("\\aD 기본 인첸트: " + safe_enchant + "");
                                                }
                                        }
                                        pc.sendPackets(new S_SystemMessage(sb.toString()));
                                        sb = null;
                                }
                                break;
这个版本是这样写的

wq5600 發表於 2019-10-26 18:06

殺戮kill 發表於 2019-10-26 14:45
什麼版本 有源碼嗎如果同樣物品 可能是
產生額外加成 素質 那段沒有寫好, 導致判斷錯誤斷線
建議查看源 ...

麻烦可以看下我上面发的写法 40126就是鉴定卷轴

wq5600 發表於 2019-10-26 18:14

殺戮kill 發表於 2019-10-26 14:45
什麼版本 有源碼嗎如果同樣物品 可能是
產生額外加成 素質 那段沒有寫好, 導致判斷錯誤斷線
建議查看源 ...

鉴定祝福的防武卷轴有会出现掉线

bennyst 發表於 2021-7-17 00:22

頁: [1]
查看完整版本: 鉴定物品掉线问题