IkovPS

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,010
    Thanks given
    531
    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
    849
    Thanks given
    2
    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,010
    Thanks given
    531
    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  
    Seren Developer & Rune-Server Affiliate

    Trust's Avatar
    Join Date
    Jul 2009
    Posts
    3,450
    Thanks given
    858
    Thanks received
    681
    Rep Power
    2757
    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
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  6. #5  
    Registered Member Aintaro.'s Avatar
    Join Date
    Sep 2010
    Posts
    998
    Thanks given
    191
    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
    Poohcan's Avatar
    Join Date
    Nov 2010
    Age
    19
    Posts
    3,792
    Thanks given
    754
    Thanks received
    830
    Rep Power
    1077
    Lol, nice, no point in doing credits in something this small though.
    Spoiler for rs:
    Reply With Quote  
     

  9. #7  
    Donator

    Join Date
    Jul 2010
    Posts
    1,613
    Thanks given
    149
    Thanks received
    128
    Rep Power
    48
    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 People I Respect:
    Reply With Quote  
     

  10. Thankful user:


  11. #8  
    Donator

    Join Date
    Jul 2010
    Posts
    1,613
    Thanks given
    149
    Thanks received
    128
    Rep Power
    48
    "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 People I Respect:
    Reply With Quote  
     

  12. #9  
    Member

    Join Date
    Dec 2008
    Posts
    1,010
    Thanks given
    531
    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  
    Donator

    Join Date
    Jul 2010
    Posts
    1,613
    Thanks given
    149
    Thanks received
    128
    Rep Power
    48
    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 People I Respect:
    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, 02: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, 09: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
  •