Thread: Spirit shield effects [PI]

Page 1 of 3 123 LastLast
Results 1 to 10 of 28
  1. #1 Spirit shield effects [PI] 
    Registered Member

    Join Date
    Dec 2008
    Posts
    1,010
    Thanks given
    0
    Thanks received
    1
    Rep Power
    271
    applyPlayerMeleeDamage():
    Code:
    		/**
    		* Made by Derive - DO NOT REMOVE THIS CREDIT
    		*/
    
    		if (o.playerEquipment[o.playerShield] == 14723) {
    			if (damage > 0) {
    				if (Misc.random(10) <= 7) {
    					damage *= 0.25;
    				}
    			}
    		}
    		
    		if (o.playerEquipment[o.playerShield] == 14725) {
    			if (damage > 0) {
    				if ((o.playerLevel[5] - (damage * 0.3)) > 0) {
    					o.playerLevel[5] -= (damage * 0.3);
    					o.getPA().refreshSkill(5);
    					damage *= 0.70;
    				}
    			}
    		}
    You will need to change the item ID's

    Thanks for reading
    In absence of a real father figure I looked to Dr House for guidance through my turbulent teenaged years.
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Sep 2010
    Posts
    883
    Thanks given
    20
    Thanks received
    6
    Rep Power
    0
    pretty sure it belongs in Applyplayermeleedamage
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member

    Join Date
    Dec 2008
    Posts
    1,010
    Thanks given
    0
    Thanks received
    1
    Rep Power
    271
    Quote Originally Posted by Jamesfrost View Post
    pretty sure it belongs in Applyplayermeleedamage
    Oh shit typo my bad thanks for reminding
    In absence of a real father figure I looked to Dr House for guidance through my turbulent teenaged years.
    Reply With Quote  
     

  5. #4  
    Banned

    Join Date
    Jul 2009
    Posts
    3,999
    Thanks given
    1,003
    Thanks received
    1,028
    Rep Power
    0
    Goodjob, But wasn't this released before (100% with taking down pray when the shield took damage instead)

    that's my bad I didn't read post just wanted post count :3
    Reply With Quote  
     

  6. #5  
    Registered Member Aintaro.'s Avatar
    Join Date
    Sep 2010
    Posts
    998
    Thanks given
    188
    Thanks received
    213
    Rep Power
    37
    Quote Originally Posted by Bear Grylls View Post
    applyPlayerMeleeDamage():
    Code:
    		/**
    		* Made by Aintaro
    		*/
    
    		if (o.playerEquipment[o.playerShield] == 14723) {
    			if (damage > 0) {
    				if (Misc.random(10) <= 7) {
    					damage *= 0.25;
    				}
    			}
    		}
    		
    		if (o.playerEquipment[o.playerShield] == 14725) {
    			if (damage > 0) {
    				if ((o.playerLevel[5] - (damage * 0.3)) > 0) {
    					o.playerLevel[5] -= (damage * 0.3);
    					o.getPA().refreshSkill(5);
    					damage *= 0.70;
    				}
    			}
    		}
    You will need to change the item ID's

    Thanks for reading
    I used it and removed credits
    Reply With Quote  
     

  7. Thankful users:


  8. #6  
    Registered Member
    thim slug's Avatar
    Join Date
    Nov 2010
    Age
    28
    Posts
    4,132
    Thanks given
    1,077
    Thanks received
    1,137
    Rep Power
    5000
    Lol, nice, no point in doing credits in something this small though.
    Reply With Quote  
     

  9. #7  
    Donator

    Kickyamom's Avatar
    Join Date
    Jul 2010
    Posts
    1,606
    Thanks given
    208
    Thanks received
    157
    Rep Power
    835
    Quote Originally Posted by Aintaro. View Post
    I used it and removed credits
    Wow, you're sooo bad. You're leeching something because you can't code yourself.


    Spoiler for Respect for the Truest:

    #TWTMP GANG 4 LYFE
    Reply With Quote  
     

  10. Thankful user:


  11. #8  
    Donator

    Kickyamom's Avatar
    Join Date
    Jul 2010
    Posts
    1,606
    Thanks given
    208
    Thanks received
    157
    Rep Power
    835
    "damage *= 0.25;"
    "damage *= 0.70;"
    Since when does ely decrease more damage that divine, or am i just blind?


    Spoiler for Respect for the Truest:

    #TWTMP GANG 4 LYFE
    Reply With Quote  
     

  12. #9  
    Registered Member

    Join Date
    Dec 2008
    Posts
    1,010
    Thanks given
    0
    Thanks received
    1
    Rep Power
    271
    Quote Originally Posted by Kickyamom View Post
    "damage *= 0.25;"
    "damage *= 0.70;"
    Since when does ely decrease more damage that divine, or am i just blind?
    Only does 0.70 70% of the time which basically comes to 0.49 which isn't that much better + it removes prayer points, I hope that satisfies your curiosity.
    In absence of a real father figure I looked to Dr House for guidance through my turbulent teenaged years.
    Reply With Quote  
     

  13. #10  
    Donator

    Kickyamom's Avatar
    Join Date
    Jul 2010
    Posts
    1,606
    Thanks given
    208
    Thanks received
    157
    Rep Power
    835
    Quote Originally Posted by Bear Grylls View Post
    Only does 0.70 70% of the time which basically comes to 0.49 which isn't that much better + it removes prayer points, I hope that satisfies your curiosity.
    Okay, but by the way fix divine ^-^
    Code:
    if (damage > 0 && o.playerLevel[5] > 0) {
    Has no effect unless the player has prayer.


    Spoiler for Respect for the Truest:

    #TWTMP GANG 4 LYFE
    Reply With Quote  
     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 44
    Last Post: 12-24-2013, 02:38 AM
  2. Spirit shield effects for delta?
    By pk nation in forum Help
    Replies: 0
    Last Post: 05-26-2011, 01:58 PM
  3. [PI] Elysian and Divine Spirit Shield Effects
    By TheRedArmy in forum Snippets
    Replies: 29
    Last Post: 03-24-2011, 01:02 AM
  4. [FIX]Spirit Shield Effects[PI]
    By a 0 a 0 a in forum Requests
    Replies: 1
    Last Post: 12-01-2010, 03:51 PM
  5. Spirit Shield Effects HELP!
    By Moronic in forum Help
    Replies: 2
    Last Post: 06-22-2010, 08:28 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •