nobility Calculation

11/04/2011 14:12 raymart12#1
anyone can do the calculation for nobility rank i was searching for it again and again and nobody help me...this is the hardest problem that i cant solve..i do searching first before to take an action but nothing can i do now... if he or she want to help me add me on yahoo.. [Only registered and activated users can see links. Click Here To Register...] tnx and advance elitepvpers members and mod by the way im using 5375 source
11/04/2011 14:28 pro4never#2
... What do you mean calculation? There's no calculations involved in nobility past sorting them by how much they've donated..

If you could be a bit more specific I'm sure we could provide more help.

Nobility rank is simply a matter of ordering all donators by how much they have donated (descending) then finding what position the target is at. As for which rank you get from which position in that list... well that's all listed in the client if you open the nobility page :O
11/04/2011 14:57 raymart12#3
Quote:
Originally Posted by pro4never View Post
... What do you mean calculation? There's no calculations involved in nobility past sorting them by how much they've donated..

If you could be a bit more specific I'm sure we could provide more help.

Nobility rank is simply a matter of ordering all donators by how much they have donated (descending) then finding what position the target is at. As for which rank you get from which position in that list... well that's all listed in the client if you open the nobility page :O
i see...i mean i want to like other server that king cannot 1 hit as prince and duke etc...someone told me that its from calculations xD could you help me pro..this is so really hard for me
11/04/2011 15:17 BaussHacker#4
You just add it in damage calculations or battlepower, whatever.
11/04/2011 15:28 pro4never#5
Why would you do that at all?... nobility should be for bragging rights, not overpowering damage/defense.

That being said I'd just go into your damage calculations and basically say..


if(Attacker.Nobility.RankType < Attacked.Nobility.RankType && Damage >= Attacked.MaximumHealth)
Damage = Attacked.MaximumHealth - 1;

This would say that if you have a higher ranking TYPE (king/prince/etc versus just being ranked 2 king instead of ranked 3 king) you can never 1 hit them but instead will do 1 less dmg then their max health.

It's nothing but a limiter. Nothing fancy.
11/04/2011 16:20 12tails#6
in other words.... in my vision will just fuck up your pvp system... also make your server crappy ;]
11/05/2011 11:42 raymart12#7
Quote:
Originally Posted by pro4never View Post
Why would you do that at all?... nobility should be for bragging rights, not overpowering damage/defense.

That being said I'd just go into your damage calculations and basically say..


if(Attacker.Nobility.RankType < Attacked.Nobility.RankType && Damage >= Attacked.MaximumHealth)
Damage = Attacked.MaximumHealth - 1;

This would say that if you have a higher ranking TYPE (king/prince/etc versus just being ranked 2 king instead of ranked 3 king) you can never 1 hit them but instead will do 1 less dmg then their max health.

It's nothing but a limiter. Nothing fancy.
sorry i dont know where's my damage calculation located..i saw only calculation but when i search it says the following specified text was not found...ill give you the source if necessary...add me on yahoo tnx pro
11/05/2011 12:40 pro4never#8
Quote:
Originally Posted by raymart12 View Post
sorry i dont know where's my damage calculation located..i saw only calculation but when i search it says the following specified text was not found...ill give you the source if necessary...add me on yahoo tnx pro
Sorry I don't code for free.

You should really try to get familiar with how your source is laid out and how it works. Just go to any attack code, find where it's setting up the damage and goto definition for the calculation method