Thread: Spirit shield effects [PI]

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

    Join Date
    Dec 2008
    Posts
    1,007
    Thanks given
    529
    Thanks received
    225
    Rep Power
    268
    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
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Sep 2010
    Posts
    855
    Thanks given
    4
    Thanks received
    4
    Rep Power
    22
    pretty sure it belongs in Applyplayermeleedamage
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Member

    Join Date
    Dec 2008
    Posts
    1,007
    Thanks given
    529
    Thanks received
    225
    Rep Power
    268
    Quote Originally Posted by Jamesfrost View Post
    pretty sure it belongs in Applyplayermeleedamage
    Oh shit typo my bad thanks for reminding
    Reply With Quote  
     

  5. #4  
    Community Veteran

    Affliction's Avatar
    Join Date
    Jul 2009
    Age
    21
    Posts
    3,919
    Thanks given
    965
    Thanks received
    965
    Rep Power
    5000
    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
    997
    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
    21
    Posts
    4,114
    Thanks given
    1,061
    Thanks received
    1,074
    Rep Power
    5000
    Lol, nice, no point in doing credits in something this small though.
    Reply With Quote  
     

  9. #7  
    -=ElitePK Owner=-

    Join Date
    Jul 2010
    Posts
    1,587
    Thanks given
    159
    Thanks received
    130
    Rep Power
    110
    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.
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]

    Spoiler for Respect for the Truest:


    Reply With Quote  
     

  10. Thankful user:


  11. #8  
    -=ElitePK Owner=-

    Join Date
    Jul 2010
    Posts
    1,587
    Thanks given
    159
    Thanks received
    130
    Rep Power
    110
    "damage *= 0.25;"
    "damage *= 0.70;"
    Since when does ely decrease more damage that divine, or am i just blind?
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]

    Spoiler for Respect for the Truest:


    Reply With Quote  
     

  12. #9  
    Member

    Join Date
    Dec 2008
    Posts
    1,007
    Thanks given
    529
    Thanks received
    225
    Rep Power
    268
    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.
    Reply With Quote  
     

  13. #10  
    -=ElitePK Owner=-

    Join Date
    Jul 2010
    Posts
    1,587
    Thanks given
    159
    Thanks received
    130
    Rep Power
    110
    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.
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]

    Spoiler for Respect for the Truest:


    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)

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
  •