From 06fbd7103e8859aa5ba59ced74bf102f8e43ef86 Mon Sep 17 00:00:00 2001 From: Paul Coene Date: Mon, 5 Aug 2019 09:24:22 -0400 Subject: [PATCH 1/2] Update client_packet.cpp --- zone/client_packet.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/zone/client_packet.cpp b/zone/client_packet.cpp index f0eb00d13..728d687b6 100644 --- a/zone/client_packet.cpp +++ b/zone/client_packet.cpp @@ -2851,12 +2851,17 @@ void Client::Handle_OP_ApplyPoison(const EQApplicationPacket *app) // Poisons that don't proc until a level higher than the // rogue simply won't apply at all, no skill check done. - if (ChanceRoll < (.9 + GetLevel()/1000)) { + uint16 applyskill=GetSkill(EQEmu::skills::SkillApplyPoison); + + if (ChanceRoll < (.75 + applyskill/1000)) { ApplyPoisonSuccessResult = 1; AddProcToWeapon(poison->Proc.Effect, false, (GetDEX() / 100) + 103); } } + else { + Message(13, "A piercing weapon must be wielded to apply poison."); + } // Live always deletes the item, success or failure. Even if too high. DeleteItemInInventory(ApplyPoisonData->inventorySlot, 1, true); From 0d6d78ebdaf906af6cd14ff150e084c0e12cd431 Mon Sep 17 00:00:00 2001 From: Chris Miles Date: Sun, 1 Sep 2019 15:37:21 -0500 Subject: [PATCH 2/2] Update client_packet.cpp --- zone/client_packet.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/zone/client_packet.cpp b/zone/client_packet.cpp index 728d687b6..8b417b4bf 100644 --- a/zone/client_packet.cpp +++ b/zone/client_packet.cpp @@ -2851,16 +2851,15 @@ void Client::Handle_OP_ApplyPoison(const EQApplicationPacket *app) // Poisons that don't proc until a level higher than the // rogue simply won't apply at all, no skill check done. - uint16 applyskill=GetSkill(EQEmu::skills::SkillApplyPoison); + uint16 poison_skill = GetSkill(EQEmu::skills::SkillApplyPoison); - if (ChanceRoll < (.75 + applyskill/1000)) { + if (ChanceRoll < (.75 + poison_skill / 1000)) { ApplyPoisonSuccessResult = 1; - AddProcToWeapon(poison->Proc.Effect, false, - (GetDEX() / 100) + 103); + AddProcToWeapon(poison->Proc.Effect, false, (GetDEX() / 100) + 103); } } else { - Message(13, "A piercing weapon must be wielded to apply poison."); + Message(Chat::Red, "A piercing weapon must be wielded to apply poison."); } // Live always deletes the item, success or failure. Even if too high.