Thread: Double Hits

Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1 Double Hits 
    supa fly guy


    Join Date
    Feb 2011
    Age
    28
    Posts
    2,201
    Thanks given
    488
    Thanks received
    988
    Rep Power
    992
    Alright, i've currently been trying to fix this but I really don't want to spend to much time looking was hoping someone could tell me if they knew.

    Where is the main doublehit method? Like what controls the doubleHits...

    Problem, All specials with two hits HIT the same exact thing no matter what.

    I've tried working on other things Help if you can if not don't post.

    Thanks,
    Alex
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Nov 2010
    Age
    29
    Posts
    2,682
    Thanks given
    824
    Thanks received
    404
    Rep Power
    0
    Did you look in where your combat is handled? Try adding a delay also.
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Sep 2011
    Posts
    1,140
    Thanks given
    385
    Thanks received
    398
    Rep Power
    474
    Code:
    c.doubleHit = true;
    And look for something like
    Code:
    					if(c.doubleHit && !c.usingClaws) {
    						c.getMelee().applyNpcMeleeDamage(i, 2, Misc.random(c.getMelee().calculateMeleeMaxHit()));
    					}
    In CombatAssistant
    Reply With Quote  
     

  4. #4  
    supa fly guy


    Join Date
    Feb 2011
    Age
    28
    Posts
    2,201
    Thanks given
    488
    Thanks received
    988
    Rep Power
    992
    Quote Originally Posted by Null++ View Post
    Code:
    c.doubleHit = true;
    And look for something like
    Code:
    					if(c.doubleHit && !c.usingClaws) {
    						c.getMelee().applyNpcMeleeDamage(i, 2, Misc.random(c.getMelee().calculateMeleeMaxHit()));
    					}
    In CombatAssistant
    Already did that, And changed that didn't fix anything.
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Sep 2011
    Posts
    1,140
    Thanks given
    385
    Thanks received
    398
    Rep Power
    474
    Is it
    Code:
    Misc.random(c.getMelee().calculateMeleeMaxHit()
    If so, post that entire if statement
    Code:
    if(c.projectileStage == 0 && !c.usingMagic && !c.castingMagic) {
    Reply With Quote  
     

  6. #6  
    supa fly guy


    Join Date
    Feb 2011
    Age
    28
    Posts
    2,201
    Thanks given
    488
    Thanks received
    988
    Rep Power
    992
    I know it's that but I already changed it and everything ect.. to normal project insanitys and it still doesn't work. Was just trying to see if it would fix it.
    Reply With Quote  
     

  7. #7  
    Web Developer
    Ben2's Avatar
    Join Date
    Oct 2010
    Posts
    663
    Thanks given
    157
    Thanks received
    70
    Rep Power
    118
    Just wondering, what weapon special are you trying to add?


    Formerly Crimson.
    Reply With Quote  
     

  8. #8  
    Registered Member

    Join Date
    Sep 2011
    Posts
    1,140
    Thanks given
    385
    Thanks received
    398
    Rep Power
    474
    Quote Originally Posted by Alex' View Post
    I know it's that but I already changed it and everything ect.. to normal project insanitys and it still doesn't work. Was just trying to see if it would fix it.
    If so, post that entire if statement
    Code:
    if(c.projectileStage == 0 && !c.usingMagic && !c.castingMagic) {
    Reply With Quote  
     

  9. #9  
    supa fly guy


    Join Date
    Feb 2011
    Age
    28
    Posts
    2,201
    Thanks given
    488
    Thanks received
    988
    Rep Power
    992
    Quote Originally Posted by Null++ View Post
    If so, post that entire if statement
    Code:
    if(c.projectileStage == 0 && !c.usingMagic && !c.castingMagic) {
    OMG it's the same thing as yours....

    @ Kid asking bout spec, I'm not adding any lmfao. It's the special attacks of any weapon that has a double hit.

    EDIT:
    http://snpr.cm/ignJLh.png <-- U guys understand now?
    Reply With Quote  
     

  10. #10  
    Server Developer
    Argyros's Avatar
    Join Date
    Apr 2011
    Posts
    498
    Thanks given
    25
    Thanks received
    31
    Rep Power
    23
    Here something simple look in your combatassistant.java and find the id number of the weapon and it should give you the code and everything.
    Spoiler for Code for Dragon Dagger::
    c.gfx100(252);
    c.startAnimation(1062);
    c.hitDelay = getHitDelay(c.getItems().getItemName(c.playerEquip ment[c.playerWeapon]).toLowerCase());
    c.doubleHit = true;
    c.specAccuracy = 1.30;
    c.specDamage = 1.05;
    break;

    Soo it should be c.doubleHit= true;
    and you would search for doubleHit.
    Your welcome.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. PvP double hits
    By Humor in forum Help
    Replies: 9
    Last Post: 07-30-2011, 10:12 PM
  2. Replies: 4
    Last Post: 07-26-2011, 11:37 PM
  3. Double Hits Accuracy
    By Russian in forum Help
    Replies: 1
    Last Post: 05-27-2011, 04:10 PM
  4. Double hits
    By w::v::d in forum Help
    Replies: 7
    Last Post: 04-15-2009, 04:26 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
  •