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,011
    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,011
    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  
    Boolean not changing...
    Akrisae's Avatar
    Join Date
    Mar 2009
    Age
    19
    Posts
    3,090
    Thanks given
    683
    Thanks received
    448
    Rep Power
    2132
    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
    Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid.

    ― Albert Einstein

    Quote Originally Posted by Driman View Post
    If you're going to remove this post I suggest getting a good lawyer. I made a project, and it didn't last long.
    Quote Originally Posted by BryceTheCoder View Post
    however it clearly states the boolean to true and it is just not changing.... wtf is going on?
    Reply With Quote  
     

  6. #5  
    Registered Member Aintaro.'s Avatar
    Join Date
    Sep 2010
    Posts
    999
    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
    Samuel's Avatar
    Join Date
    Nov 2010
    Age
    18
    Posts
    3,267
    Thanks given
    578
    Thanks received
    557
    Rep Power
    470
    Lol, nice, no point in doing credits in something this small though.
    Reply With Quote  
     

  9. #7  
    K4rn4ge's Bitch

    Join Date
    Jul 2010
    Posts
    1,612
    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.
    Spoiler for People I Respect:
    Reply With Quote  
     

  10. Thankful user:


  11. #8  
    K4rn4ge's Bitch

    Join Date
    Jul 2010
    Posts
    1,612
    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?
    Spoiler for People I Respect:
    Reply With Quote  
     

  12. #9  
    Member

    Join Date
    Dec 2008
    Posts
    1,011
    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  
    K4rn4ge's Bitch

    Join Date
    Jul 2010
    Posts
    1,612
    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.
    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, 01: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, 12:02 AM
  4. [FIX]Spirit Shield Effects[PI]
    By a 0 a 0 a in forum Requests
    Replies: 1
    Last Post: 12-01-2010, 02:51 PM
  5. Spirit Shield Effects HELP!
    By Demise PK 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
  •