Thread: How to make a item hit higher on a NPC than it does on a player?

Results 1 to 9 of 9
  1. #1 How to make a item hit higher on a NPC than it does on a player? 
    Registered Member
    Join Date
    Aug 2013
    Posts
    145
    Thanks given
    12
    Thanks received
    9
    Rep Power
    11
    Hi, so recently i raised a hand cannon to hit higher in the RangeMaxHit.java by using

    if(weapon == 15241) {
    b *= 5.2;
    }
    under maxHit

    But that is fine for killing npcs and hits a bit too high on players in the wild, how could i add so it only hits high on npcs?

    Thank you very much.
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Apr 2012
    Posts
    3,225
    Thanks given
    2,554
    Thanks received
    832
    Rep Power
    0
    Base?
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Aug 2013
    Posts
    145
    Thanks given
    12
    Thanks received
    9
    Rep Power
    11
    Quote Originally Posted by Taurus View Post
    Base?
    Sorry, Project Insanity original, been editted for about 2 years though, should be the same as the original still.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Aug 2013
    Posts
    145
    Thanks given
    12
    Thanks received
    9
    Rep Power
    11
    Bump, seems like Taurus just wanted to boost his post count by asking a fairly obvious question
    Reply With Quote  
     

  5. #5  
    NirvanaRS

    Join Date
    Mar 2013
    Posts
    97
    Thanks given
    26
    Thanks received
    21
    Rep Power
    20
    Change:
    Code:
    if(weapon == 15241) {
    b *= 5.2;
    }
    to

    Code:
     
    if(weapon == 15241 && c.npcIndex > 1) {
    b *= 5.2;
    }
    Try that


    Looking for a more stable base? Try Asteria 2.0
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Aug 2013
    Posts
    145
    Thanks given
    12
    Thanks received
    9
    Rep Power
    11
    Quote Originally Posted by Notorious View Post
    Change:
    Code:
    if(weapon == 15241) {
    b *= 5.2;
    }
    to

    Code:
     
    if(weapon == 15241 && c.npcIndex > 1) {
    b *= 5.2;
    }
    Try that
    Will try now, thank you
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Aug 2013
    Posts
    145
    Thanks given
    12
    Thanks received
    9
    Rep Power
    11
    Worked perfect Ill try + rep but new to rune-server haha
    Reply With Quote  
     

  8. Thankful user:


  9. #8  
    NirvanaRS

    Join Date
    Mar 2013
    Posts
    97
    Thanks given
    26
    Thanks received
    21
    Rep Power
    20
    It should actually be:
    Code:
    if(weapon == 15241 && c.npcIndex > 0) {
    b *= 5.2;
    }
    But no prob!


    Looking for a more stable base? Try Asteria 2.0
    Reply With Quote  
     

  10. #9  
    Registered Member
    Join Date
    Aug 2013
    Posts
    145
    Thanks given
    12
    Thanks received
    9
    Rep Power
    11
    Quote Originally Posted by Notorious View Post
    It should actually be:
    Code:
    if(weapon == 15241 && c.npcIndex > 0) {
    b *= 5.2;
    }
    But no prob!

    Ohhh, that solved a little mystery haha, worked it out after a while anyway, thanks
    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: 9
    Last Post: 03-08-2013, 09:15 PM
  2. how to make an item usable on an object
    By OodlesOfNoodles in forum Help
    Replies: 4
    Last Post: 08-03-2011, 05:39 PM
  3. how to make d bow hit harder on deltascape
    By Immortalftw in forum Help
    Replies: 2
    Last Post: 04-01-2009, 08:58 AM
  4. [req] How To Make D Bow Hit Double And D Bow Spec[req]
    By ran straight in forum Tutorials
    Replies: 2
    Last Post: 04-26-2008, 05:56 PM
  5. Request: How to make "silab items"
    By cyanoob in forum Tutorials
    Replies: 11
    Last Post: 04-17-2008, 11:09 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
  •