|
THIS GUIDE WILL CAUSE YOUR ELYSIAN SPIRIT SHEILD TO REDUCE DAMAGE BY 75% AT A 30% CHANCE IF THE PLAYER HITS OVER 4.
THIS GUIDE WILL CAUSE YOUR DIVINE SPIRIT SHEILD TO REDUCE DAMAGE BY 15% AT 100% CHANCE IF YOUR PRAYER IS MORE THAN 0 AND THEY HIT MORE THAN 4, IT WILL ALWAYS REDUCE YOUR PRAY POINTS BY 30% OF THEYRE HIT.
As far as i know this the only Correct and Working spirit shield effect tutorial, and i am doing this give back to the community for helping me so much.
Difficulty Level 1/10
Files Needed Editing = 1
Tested on: Project Insanity , DSKP.
This Will ALSO fix your Spirit sheilds if your having the error that you cannot kill the player but your effects are working fine, at 1 hp the damage is reduced and does not kill the player.
Go to player.java
and create this complete new public damagedrecieved method, just paste all of this just above a public to do the trick.
Code:public void dealDamage(int damage) { Client c = (Client)this; if(playerEquipment[playerShield] == 13740) { // Divine Spirit Shield Effect if(prayerPoint >0) { if(playerLevel[3] > 4) { double damageRecieved = damage * 0.85; int prayerLost = (int) (damage * 0.3); if(prayerPoint >= prayerLost) { damage = (int) damageRecieved; prayerPoint -= prayerLost; if(prayerPoint < 0) prayerPoint = 0; gfx0(247); c.sendMessage("Your shield absorbs 15% damage but your prayer drains..."); } } } } if(playerEquipment[playerShield] == 13742) { // Elysian Spirit Shield Effect if(Misc.random(9) <= 3) { if(playerLevel[3] > 4) { double damageRecieved = damage * 0.25; gfx0(247); c.sendMessage("Your shield absorbs 75% of the hit..."); } } } if (teleTimer <= 0){ playerLevel[3] -= damage; }else { if (hitUpdateRequired) hitUpdateRequired = false; if (hitUpdateRequired2) hitUpdateRequired2 = false; } }
There is no such file called "Player.config"
there is player.java, playerassisant.java, playersave.java and that is it. Unless you have to make new file.
Sorry my mistake, Player.java Ill update that now
If you are getting something where in-game your attacks which are larger than roughly 100 or 10 (if your not using x10 Hits) do not throw the "Drain" effect on the Divine , it is due to the prayer, and the prayer sometimes is a bit iffy, i made a slight change to it on my server to make it more effficient, this will give Divine a 75% chance to Reduce the Dmg by 20% Rather than 100% to reduce by 15. + the prayer effects, on this the prayer effects are removed. i understand that on a lot of server the prayer's drain in melee combat as it does on mine. so i have changed the coding to compensate for this, so try this Code Instead.
Code:public void dealDamage(int damage) { Client c = (Client)this; if(playerEquipment[playerShield] == 13740) { // Divine Spirit Shield Effect if(prayerPoint >0) { if(playerLevel[3] > 4) { if(Misc.random(8) <= 6) { double damageRecieved = damage * 0.80; gfx0(247); c.sendMessage("Your shield absorbs 20% of the hit..."); } } } } if(playerEquipment[playerShield] == 13742) { // Elysian Spirit Shield Effect if(Misc.random(9) <= 3) { if(playerLevel[3] > 4) { double damageRecieved = damage * 0.20; gfx0(247); c.sendMessage("Your shield absorbs 80% of the hit..."); } } } if (teleTimer <= 0){ playerLevel[3] -= damage; }else { if (hitUpdateRequired) hitUpdateRequired = false; if (hitUpdateRequired2) hitUpdateRequired2 = false; } }
Looks almost exact to the one kataang released a while ago
wtf,ely absorbs 80% of the hit,and divine 20%?
This one also doesn't seem to reduce prayers and you got all the percentages all wrong.Elysian has a 70% chance of reducing damage by 25%, the Divine shield has a 100% chance of reducing damage by 30%, at the cost of a few prayer points.
divine absorb 30% of the hit everytime if the player has prayer points..
ely absorb 25% of the hit 75% of the time..
and there no gfx for it and it doesnt send a message..
and you dont have to hit more than 4 for it to work lol...
Never knew spirit shields had an effect... Very nice though
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |