PDA

View Full Version : Avoidance changed/bugged?


thepoetwarrior
02-17-2009, 09:03 PM
After upgrading my 1129 Revision 0 to Revision 330, and the server is up and running nicely, I noticed some players with high Avoidance not getting hit. I tested it myself with custom avoidance only items I made up. Only way to fix it was to lower the ItemAvoidanceCap from 100 to 10. Is this normal that I need to do this?

Also saw some new rules. Are these correct?

Combat:BaseHitChance 54.0
Combat:HitPerLevelDiff 45

What should they be? Do they affect the avoidance issue?

thepoetwarrior
02-17-2009, 09:23 PM
Also, how about Avoidance related AA abilities? I saw a lot of AA were fixed. Would this make a max AA'd char almost invincible?

trevius
02-17-2009, 09:37 PM
If you want it to work the way it used to, you can change this line in /zone/attack.cpp:

chancetohit -= ((bonus * chancetohit) / RuleI(Combat, ChanceToHitDivideBy));

To this (replace the above line with this line):

chancetohit -= (bonus) / 10;

I actually do that manually every time I update my server. Otherwise it would mean a huge headache trying to rebalance everything and I just don't have the time to do that right now. I am sure you could also play with the ChanceToHitDivideBy rule and probably get things mostly back to normal. I just don't know what you would want to set that to, since the calculation just works different now.

For the new AAs to work, you will need to update your AAs table from PEQ. Otherwise, you will be missing a large number of AAs. If you haven't updated in a year or 2, you might have 100+ AAs missing that you could be using :)

thepoetwarrior
02-17-2009, 09:40 PM
Thanks very much!

cavedude
02-17-2009, 10:19 PM
100% avoidance is precisely why I added RuleI(Combat, ChanceToHitDivideBy). Play with the rule some, and you won't need to change the code. The higher the number the lower the avoidance. I recommend a value of 1250-1333, but if you are using custom items you may need to go higher.

ChaosSlayer
02-18-2009, 12:00 AM
umm I don't see ChanceToHitDivideBy in my rules :confused:
when was this one added? I am running rev 302

cavedude
02-18-2009, 12:35 AM
In Rev 326. 330 is currently posted.

ChaosSlayer
02-18-2009, 01:30 AM
ah thanks!