bumxd 16 Posted November 10, 2017 Share Posted November 10, 2017 hello, can anybody say? how can block enable\disable auto pottion when you use polymorph? Link to comment Share on other sites More sharing options...
Den 46 Posted November 10, 2017 Share Posted November 10, 2017 (edited) char_item.cpp find: Then add this: Btw. why do you want to block it? Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
Dalí 271 Posted November 10, 2017 Share Posted November 10, 2017 (edited) Acum 32 minute, Den a spus: char_item.cpp find: Then add this: Btw. why do you want to block it? I think its a bug when yo are polymorphed and you have auto potions enabled Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Den 46 Posted November 10, 2017 Share Posted November 10, 2017 11 minutes ago, Colossus said: I think its a bug when yo are polymorphed and you have auto potions enabled Enabling/disabling autopotion while being polymorphed increases your damage, yea? If you're talking about this then I think it's a problem with polymorph, not autopotion. Your autopotion helps you to get the correct damage in other way your damage will be lower than it should be. So I would rather fix the calculations after using polymorph marble than disabling autopotion. Link to comment Share on other sites More sharing options...
Dalí 271 Posted November 10, 2017 Share Posted November 10, 2017 Acum 2 minute, Den a spus: Enabling/disabling autopotion while being polymorphed increases your damage, yea? If you're talking about this then I think it's a problem with polymorph. Enabling/disabling your autopotion helps you to get the correct damage in other way your damage will be lower than it should be. So I would rather fix the calculations after using polymorph marble than disabling autopotion. Absolutely right bro, but if he want to block auto potions , we give him what he want Link to comment Share on other sites More sharing options...
bumxd 16 Posted November 10, 2017 Author Share Posted November 10, 2017 2 hours ago, Colossus said: Absolutely right bro, but if he want to block auto potions , we give him what he want yes im about problem this what say you, damage 2x more when enable\disable autopottion with polymorph, have another fix? Link to comment Share on other sites More sharing options...
PeaceMaker 121 Posted November 10, 2017 Share Posted November 10, 2017 (edited) 3 hours ago, Den said: char_item.cpp find: Then add this: Btw. why do you want to block it? would this disable all kind of pots or just red/blue and auto pots are included ? Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Den 46 Posted November 10, 2017 Share Posted November 10, 2017 (edited) 11 minutes ago, PeaceMaker said: would this disable all kind of pots or just red/blue and auto pots are included ? All the vnums that are defined in unique_item.h because autopotions are defined by item vnum. So yes, only red/blue autopots. Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Den 46 Posted November 10, 2017 Share Posted November 10, 2017 (edited) 55 minutes ago, bumxd said: yes im about problem this what say you, damage 2x more when enable\disable autopottion with polymorph, have another fix? There are so many ways to "unbug" your polymorph, change party role, autopotion etc. What is happening when you reset party role or autopotion? ComputePoints() is called. While using polymorph marble only ComputeBattlePoints() is called. I've changed it in void CHARACTER::SetPolymorph(DWORD dwRaceNum, bool bMaintainStat) char.cpp: If you don't your players do deal more damage by using ComputePoints() in other functions, you have to check everything and add condition with IsPolymorphed(). Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
bumxd 16 Posted November 12, 2017 Author Share Posted November 12, 2017 (edited) On 10.11.2017 at 10:45 PM, Den said: There are so many ways to "unbug" your polymorph, change party role, autopotion etc. What is happening when you reset party role or autopotion? ComputePoints() is called. While using polymorph marble only ComputeBattlePoints() is called. I've changed it in void CHARACTER::SetPolymorph(DWORD dwRaceNum, bool bMaintainStat) char.cpp: If you don't your players do deal more damage by using ComputePoints() in other functions, you have to check everything and add condition with IsPolymorphed(). thank, work Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Den 46 Posted November 17, 2017 Share Posted November 17, 2017 On 11/12/2017 at 12:00 PM, bumxd said: thank, work There is a problem with this fix. I didn't notice that if you die while being polymorphed and click restart here, you will be still polymorphed. I'm working on it, I'm very sorry for the mistake. Link to comment Share on other sites More sharing options...
bumxd 16 Posted November 18, 2017 Author Share Posted November 18, 2017 20 hours ago, Den said: There is a problem with this fix. I didn't notice that if you die while being polymorphed and click restart here, you will be still polymorphed. I'm working on it, I'm very sorry for the mistake. yes, i too 2 day ago find this bugg, if you can fix that, can pls say in this topic or pm? Link to comment Share on other sites More sharing options...
DeYaN. 29 Posted February 11, 2022 Share Posted February 11, 2022 upp Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now