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
    Time Online
    N/A
    Avg. Time Online
    N/A
    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
    Time Online
    N/A
    Avg. Time Online
    N/A
    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
    Time Online
    N/A
    Avg. Time Online
    N/A
    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  
    R-S Official Dev

    Seren's Avatar
    Join Date
    Jul 2009
    Posts
    3,510
    Thanks given
    873
    Thanks received
    700
    Time Online
    1 d 8 h 10 m
    Avg. Time Online
    1 h 45 m
    Rep Power
    3127
    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
    Time Online
    N/A
    Avg. Time Online
    N/A
    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,837
    Thanks given
    799
    Thanks received
    857
    Time Online
    2 d 7 h 18 m
    Avg. Time Online
    3 h 1 m
    Rep Power
    1220
    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
    Time Online
    N/A
    Avg. Time Online
    N/A
    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
    Time Online
    N/A
    Avg. Time Online
    N/A
    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
    Time Online
    N/A
    Avg. Time Online
    N/A
    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
    Time Online
    N/A
    Avg. Time Online
    N/A
    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, 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 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
  •