|
Interesting, looks good.
Offtopic: Does anyone know spirit shield anims?
Dark, I hope you weren't implying that divine always decreases by 25% and doesn't decrease prayer points, where ely decreases 70% of the time for 70% dmg, and decreases prayer points.
The actual formula is
Divine always decreases damage by 30% then decreases your prayer by 50% of that damage reduction.
Elysian has a 70% chance of decreasing the damage by 25% period. No prayer reduction.
SOURCES: RSWIKI
Elysian spirit shield - The RuneScape Wiki - Skills, quests, guides, items, monsters, and more
Divine spirit shield - The RuneScape Wiki - Skills, quests, guides, items, monsters, and more
if what HellDefender said is how they really are then here
Code:if (damage > 0) { if (o.playerEquipment[o.playerShield] == 13740) { damage -= damage * .3; o.playerLevel[5] -= damage * .5; o.getPA().refreshSkill(5); o.getPA().requestUpdates(); } if (o.playerEquipment[o.playerShield] == 13742) { if (Misc.random(10) < 8) damage -= damage * .25; } }
That looks perfect. Thanks Dark for the first one, then thank you Relex for correcting it ++rep for everyone
removed
Frankly I'm too much of a novice to decipher EXACTLY what is happening in your Divine effect Balla
EDIT: Looking again I think you captured what I was trying to say about half of the reduced damage, I'm not positive as I'm a novice as stated.
hold on forgot to check if the player has enough pray pts
Code:if (damage > 0) { if (o.playerEquipment[o.playerShield] == 13740 && c.playerLevel[5] > damage * .5) { damage -= damage * .3; o.playerLevel[5] -= damage * .5; o.getPA().refreshSkill(5); o.getPA().requestUpdates(); } if (o.playerEquipment[o.playerShield] == 13742) { if (Misc.random(10) < 8) damage -= damage * .25; } }
Relex, the problem with that is it reduces 50% of the initial damage, it's only supposed to reduce 50% of the reduction, so if a 300 is hit, then 30% is reduced, the hit would be 210, or a 90 reduction, thus resulting in 45 (using 10x calculation or of 990 pray points) prayer points being drained
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |