Thread: [PI] Adding magic damage boost

Results 1 to 3 of 3
  1. #1 [PI] Adding magic damage boost 
    Registered Member
    Join Date
    Oct 2010
    Posts
    106
    Thanks given
    21
    Thanks received
    6
    Rep Power
    24
    Can anyone tell me how to add magic damage boost to items?
    Reply With Quote  
     

  2. #2  
    Registered Member
    sadgrills's Avatar
    Join Date
    Dec 2009
    Age
    25
    Posts
    1,418
    Thanks given
    119
    Thanks received
    194
    Rep Power
    315
    Go to your Player class and search
    Code:
    	public int magicHitBonus() {
    And add this:
    Code:
    		if (playerEquipment[playerWeapon] ==  ****) {//Weapon id number
    			return *; //decide what it should return
                    }


    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Oct 2010
    Posts
    106
    Thanks given
    21
    Thanks received
    6
    Rep Power
    24
    Repped thank you.
    Reply With Quote  
     


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. [PI] Making items give more magic damage
    By Ross in forum Snippets
    Replies: 5
    Last Post: 10-02-2010, 06:33 AM
  2. Adding a player damage queing system(Winterlove)
    By Ninjastylz in forum Tutorials
    Replies: 12
    Last Post: 11-20-2009, 10:43 AM
  3. Replies: 6
    Last Post: 10-29-2009, 08:47 PM
  4. Replies: 55
    Last Post: 03-31-2009, 06:53 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
  •