Thread: Increase hit of an item PI

Results 1 to 9 of 9
  1. #1 Increase hit of an item PI 
    Registered Member
    Join Date
    Apr 2013
    Posts
    158
    Thanks given
    7
    Thanks received
    2
    Rep Power
    11
    Okay, so I want to make my Crystal Bow hit higher, but I've already changed the max hit formula for Ranged, and I don't want to edit my item's stats so it gives like a 300 range bonus. I basically wanna know how to add a multiplier to the hit. How would I go doing that?
    Reply With Quote  
     

  2. #2  
    Registered Member 2nubs1cup's Avatar
    Join Date
    Jan 2013
    Posts
    972
    Thanks given
    77
    Thanks received
    90
    Rep Power
    15
    Go to combatassistant.java and search for the maxhit then you can increase it to what you want.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Apr 2013
    Posts
    158
    Thanks given
    7
    Thanks received
    2
    Rep Power
    11
    where exactly in this would I change it?

    Code:
    	public int rangeMaxHit() {
    		int a = c.playerLevel[4];
    		int d = getRangeStr(c.usingBow ? c.lastArrowUsed : c.lastWeaponUsed);
    		double b = 1.00;
    		if (c.prayerActive[3]) {
    			b *= 1.05;
    		} else if (c.prayerActive[11]) {
    			b *= 1.10;
    		} else if (c.prayerActive[19]) {
    			b *= 1.15;
    		}
    		if (c.fullVoidRange()) {
    			b *= 1.20;
    		}
    		double e = Math.floor(a * b);
    		if(c.fightMode == 0) {
    			e = (e + 3.0);
    		}
    		double darkbow = 1.0;
    		if(c.usingSpecial) {
    			if(c.playerEquipment[3] == 11235) {
    				if(c.lastArrowUsed == 11212) {
    					darkbow = 1.5;
    				} else {
    					darkbow = 1.3;
    				}
    			}
    		}
    		double max = (1.3 + e/10 + d/80 + e*d/640) * darkbow;
    		return (int) Math.floor(max);
    	}
    Reply With Quote  
     

  4. #4  
    Registered Member 2nubs1cup's Avatar
    Join Date
    Jan 2013
    Posts
    972
    Thanks given
    77
    Thanks received
    90
    Rep Power
    15
    Thats your dark bow look for your crystal bow, code is 4214
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Apr 2013
    Posts
    158
    Thanks given
    7
    Thanks received
    2
    Rep Power
    11
    The only thing I have of Crystal Bow is: Degrading to lower level of Crystal Bow, what anim/gfx it uses, and if it uses arrows, nothing like the DBow.

    /Fixed.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Dec 2013
    Posts
    193
    Thanks given
    5
    Thanks received
    0
    Rep Power
    11
    brutally how did u fix it can you tell me were please?
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Dec 2013
    Posts
    193
    Thanks given
    5
    Thanks received
    0
    Rep Power
    11
    hey do i change this for the better hit

    } else if (weapon == 4212) {//Z Bow
    rangehit = 7;
    rangehit += c.playerLevel[4] / 0;


    sorry for double
    Reply With Quote  
     

  8. #8  
    Ratted Donor

    Join Date
    Feb 2013
    Posts
    675
    Thanks given
    117
    Thanks received
    59
    Rep Power
    21
    Code:
    rangemaxhit
    
    if(c.playerEquipment[c.playerWeapon] == BLABLA) {
    b *= bla;
    }
    [CENTER]
    Spoiler for Vouches (2):

    Quote Originally Posted by SHIFT_ View Post
    Great doing business! Bought 75M purchased relatively smoothly.
    Quote Originally Posted by Luzoxpk View Post
    bug fixed thanks linas


    Spoiler for Peeps i respect::

    Arham 4 , Sheepmonger , Linus, LuzoxPk (ipkmills)
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Dec 2013
    Posts
    193
    Thanks given
    5
    Thanks received
    0
    Rep Power
    11
    thanks mate you helped allot =]
    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. Replies: 0
    Last Post: 07-06-2012, 01:50 AM
  2. Replies: 9
    Last Post: 10-23-2011, 08:46 AM
  3. Replies: 9
    Last Post: 07-30-2008, 08:23 AM
  4. Recoloring as many parts of an item as you want
    By Scottyz in forum Tutorials
    Replies: 4
    Last Post: 01-08-2008, 01:30 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •