Thread: Dclaws full spec only on npcs

Results 1 to 7 of 7
  1. #1 Dclaws full spec only on npcs 
    Registered Member
    Join Date
    Jun 2011
    Posts
    41
    Thanks given
    0
    Thanks received
    1
    Rep Power
    1
    I followed this http://www.rune-server.org/runescape...torial-pi.html tut and when I go to use it, it only does full 4 hits on npcs only and only 2 hits on players *(spec)


    Help plz
    Reply With Quote  
     

  2. #2  
    Old Webdeveloper
    Dondxon's Avatar
    Join Date
    Aug 2011
    Posts
    1,144
    Thanks given
    209
    Thanks received
    108
    Rep Power
    65
    um.. idk, download another source?
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jun 2011
    Posts
    41
    Thanks given
    0
    Thanks received
    1
    Rep Power
    1
    burp, I need help
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Sep 2010
    Posts
    92
    Thanks given
    1
    Thanks received
    6
    Rep Power
    1
    There's enough tutorials on this in the tutorial section *urggh* but whatever ok here goes

    go to combatassistant.java
    and find :
    Code:
    			case 4726: // guthan 
    			return 2080;
    under that add :

    Code:
    			case 14484: //  Dclaw
    			return 393;

    now look for :

    Code:
    		if(c.playerEquipment[c.playerWeapon] == -1)
    under that whole method add this method :
    Code:
     		switch (c.playerEquipment[c.playerWeapon]) {
                case 14484:
    			return 5;
    		}

    now look for :
    Code:
     c.gfx100(252)
    you should see a method regarding dragon dagger specials after the break;
    add :

    Code:
                            case 14484:
    			c.gfx0(1950);
    			c.startAnimation(10961);
    			c.specAccuracy = 9.9;
                		c.clawDamage = 0;
    			c.specDamage = 1.10;
    
                		  if (c.playerIndex > 0) {
                	Client o = (Client) Server.playerHandler.players[c.playerIndex];
                	if (Misc.random(calculateMeleeAttack()) > Misc.random(o.getCombat().calculateMeleeDefence())) {
                		c.clawDamage = Misc.random(calculateMeleeMaxHit() + 5);
    				} else {
    					c.clawDamage = Misc.random(calculateMeleeMaxHit() + 5);
                	}
                	c.clawIndex = c.playerIndex;
                	c.clawType = 1;
                } else if (c.npcIndex > 0) {
                	NPC n = Server.npcHandler.npcs[c.npcIndex];
                	if (Misc.random(calculateMeleeAttack()) > Misc.random(n.defence)) {
                		c.clawDamage = Misc.random(calculateMeleeMaxHit() + Misc.random(6));
                	} else {
    					c.clawDamage = Misc.random(calculateMeleeMaxHit() /2);
    				}
                	c.clawIndex = c.npcIndex;
                	c.clawType = 2;
                }
    didn't add in the amount of special it uses as i presume you allready have thos

    that should basicly sum it up
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jun 2011
    Posts
    41
    Thanks given
    0
    Thanks received
    1
    Rep Power
    1
    Still does only 2 hits on players and now npcs. and also does saradomin spec gfx.

    my dclaw model is 11777
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Sep 2010
    Posts
    92
    Thanks given
    1
    Thanks received
    6
    Rep Power
    1
    Quote Originally Posted by DragonBorn View Post
    Still does only 2 hits on players and now npcs. and also does saradomin spec gfx.

    my dclaw model is 11777
    than check ur gfx it's probally 6000 for you as that's the normal Pi one as far the 2 hits you probally didn't declare clawhit 1,2,3 and 4
    or you put it in the dds case as wich it reffers to a dds thus only creating 2 hits
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Sep 2010
    Posts
    92
    Thanks given
    1
    Thanks received
    6
    Rep Power
    1
    try this will fix the 2 hits problem possibly not entirely sure in combatassistant.java
    Code:
    				if (!c.usingClaws)
    					applyNpcMeleeDamage(i, 1, Misc.random(calculateMeleeMaxHit()));
    				if(c.doubleHit && !c.usingClaws) {
    					applyNpcMeleeDamage(i, 2, Misc.random(calculateMeleeMaxHit()));
    				}
    				if(c.doubleHit && c.usingClaws) {
    					c.delayedDamage = c.clawDamage;
    					c.delayedDamage2 = c.clawDamage/2;
    					applyNpcMeleeDamage(i, 1, c.clawDamage);
    					applyNpcMeleeDamage(i, 2, c.clawDamage/2);
    				}				
    			}
    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. Dclaws spec bug
    By xnosafepkx in forum Help
    Replies: 3
    Last Post: 08-11-2011, 01:18 AM
  2. [PI] Paying for Dclaws Spec [PI]
    By football1smylife in forum Help
    Replies: 3
    Last Post: 02-11-2011, 06:58 AM
  3. [PI] Dclaws Spec [PI]
    By farmerscape in forum Help
    Replies: 4
    Last Post: 01-09-2011, 02:32 AM
  4. Dclaws npc spec
    By rodneyowns1 in forum Help
    Replies: 0
    Last Post: 07-25-2010, 08:51 AM
  5. 50% DClaws With Spec-[508]
    By johnlukey in forum Tutorials
    Replies: 94
    Last Post: 05-21-2010, 03:57 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
  •