tempo0728 發表於 2022-7-5 00:02

全能力藥水問題

} else if (itemId == 60200) {
if ((pc.getBaseStr() < 35) && (pc.getElixirStats() < 5)
|| (pc.getBaseCon() < 35) && (pc.getElixirStats() < 5)
|| (pc.getBaseDex() < 35) && (pc.getElixirStats() < 5)
|| (pc.getBaseInt() < 35) && (pc.getElixirStats() < 5)
|| (pc.getBaseWis() < 35) && (pc.getElixirStats() < 5)
|| (pc.getBaseCha() < 35) && (pc.getElixirStats() < 5)
) {
pc.sendPackets(new S_SkillSound(pcObjid, 6780));
pc.broadcastPacket(new S_SkillSound(pcObjid, 6780));
pc.addBaseStr((byte)(-1 * (int)((double) pc.getBaseStr() - 35)));
pc.addBaseCon((byte)(-1 * (int)((double) pc.getBaseCon() - 35)));
pc.addBaseDex((byte)(-1 * (int)((double) pc.getBaseDex() - 35)));
pc.addBaseInt((byte)(-1 * (int)((double) pc.getBaseInt() - 35)));
pc.addBaseWis((byte)(-1 * (int)((double) pc.getBaseWis() - 35)));
pc.addBaseCha((byte)(-1 * (int)((double) pc.getBaseCha() - 35)));
pc.setElixirStats(pc.getElixirStats() + 35);
pc.getInventory().removeItem(l1iteminstance, 35);
pc.sendPackets(new S_OwnCharStatus2(pc));
pc.save();
pc.sendPackets(new S_SystemMessage("身體感受到無比的暢快,力量不斷的湧出,思緒變得更加清新,整個人猶如脫胎換骨,全能力值瞬間達35。"));
}
}


我去爬文文法找到這個 也感謝那位大大分享
但是我套進去編譯器裡面 丟進去文法說有問題
請問大大們 可以幫我看一下嗎 謝謝 感恩大德
頁: [1]
查看完整版本: 全能力藥水問題