Thread: Npcs Will not attack back with melee

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Npcs Will not attack back with melee 
    ̿ ̿̿ ̿̿ ̿̿̿'̿'\̵͇̿̿\=(•̪

    Dragonking's Avatar
    Join Date
    May 2008
    Posts
    2,011
    Thanks given
    16
    Thanks received
    31
    Rep Power
    567
    hello iv had this problem and cannot figure out how come my npcs will not attack back so now im asking for help... i have a vid because they will attack back if u use mage range or do a spec but not straight melee?

    http://tinypic.com/player.php?v=2mqsz60&s=4

    please help me i know some peopler gna come on here and be like laughing but half of them really are like in there minds because they dont know shit.... so they go in the corner and so please no flamming... just try to help me out please

    il pay 5$ if u can fix this...
    Reply With Quote  
     

  2. #2  
    Registered Member
    ViperSniper's Avatar
    Join Date
    Apr 2007
    Age
    30
    Posts
    2,417
    Thanks given
    367
    Thanks received
    82
    Rep Power
    976
    Range uses the same packet as Melee because its the same concept.
    (Click attack npc)
    So look around in the part that is range and look for what makes them attack back. then simply add to melee.
    :indeed:
    Reply With Quote  
     

  3. #3  
    ̿ ̿̿ ̿̿ ̿̿̿'̿'\̵͇̿̿\=(•̪

    Dragonking's Avatar
    Join Date
    May 2008
    Posts
    2,011
    Thanks given
    16
    Thanks received
    31
    Rep Power
    567
    case 72:
    attacknpc = inStream.readUnsignedWordA();
    int type = Server.NpcManager.npcs[attacknpc].npcType;
    if (Server.NpcManager.npcs[attacknpc].attacknpc > 0) {
    Cant = true;
    Send("You can't attack a dueling npc!");
    }
    if (type == 2783 && playerLevel[18] < 90) {
    Send("You must be 90 Slayer to slay Dark beasts.");
    break;
    }
    if (type == 1615 && playerLevel[18] < 85) {
    Send("You must be 85 Slayer to slay Abyssal demons.");
    break;
    }
    if (type == 1613 && playerLevel[18] < 80) {
    Send("You must be 80 Slayer to slay Nechryaels.");
    break;
    }
    if (type == 1610 && playerLevel[18] < 70) {
    Send("You must be 70 Slayer to slay Gargoyles.");
    break;
    }
    if (type == 1616 && playerLevel[18] < 20) {
    Send("You must be 20 Slayer to slay Balilisks.");
    break;
    }
    if (type == 1637 && playerLevel[18] < 35) {
    Send("You must be 35 Slayer to slay Jellys.");
    break;
    }
    if (type == 1624 && playerLevel[18] < 60) {
    Send("You must be 60 Slayer to slay Dust Devils.");
    break;
    }
    if (type == 1619 && playerLevel[18] < 45) {
    Send("You must be 45 Slayer to slay Bloodvelds.");
    break;
    }
    if (attacknpc >= 0 && attacknpc < Server.NpcManager.maxNPCs && Server.NpcManager.npcs[attacknpc] != null) {
    if (Server.NpcManager.npcs[attacknpc].followPlayer < 1 || Server.NpcManager.npcs[attacknpc].followPlayer == playerId) {
    IsAttackingNPC = true;
    if (Server.NpcManager.npcs[attacknpc].absX != absX && Server.NpcManager.npcs[attacknpc].absY != absY)
    faceNPC(attacknpc);
    }
    } else {
    ResetAttackNPC();
    }
    break;
    this would be the correct one right?
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Mar 2008
    Posts
    2,595
    Thanks given
    128
    Thanks received
    191
    Rep Power
    0
    Quote Originally Posted by Dragonking View Post
    this would be the correct one right?
    Search for 'attacknpc' in process. That's where the problem is.
    Reply With Quote  
     

  5. #5  
    ̿ ̿̿ ̿̿ ̿̿̿'̿'\̵͇̿̿\=(•̪

    Dragonking's Avatar
    Join Date
    May 2008
    Posts
    2,011
    Thanks given
    16
    Thanks received
    31
    Rep Power
    567
    Quote Originally Posted by filth jr View Post
    Search for 'attacknpc' in process. That's where the problem is.

    if (IsAttackingNPC && !IsDead && System.currentTimeMillis() - PkingDelay >= Fighting) {
    if (Server.NpcManager.npcs[attacknpc] != null) {
    if (!Server.NpcManager.npcs[attacknpc].IsDead) {
    AttackNPC();
    } else {
    ResetAttackNPC();
    }
    } else {
    ResetAttackNPC();
    }
    }
    ok found it but what is wrong?
    Reply With Quote  
     

  6. #6  
    Registered Member
    Trock's Avatar
    Join Date
    Jul 2009
    Age
    28
    Posts
    1,915
    Thanks given
    14
    Thanks received
    66
    Rep Power
    532
    umm maybe u gotta make the npc agerrsive and making it so it hits in the npchanlder.java
    Quote Originally Posted by Psyduck View Post
    Vouch

    Quote Originally Posted by VelSion View Post
    Huge Vouch, made so many deals with him, went smoothly!
    Reply With Quote  
     

  7. #7  
    ̿ ̿̿ ̿̿ ̿̿̿'̿'\̵͇̿̿\=(•̪

    Dragonking's Avatar
    Join Date
    May 2008
    Posts
    2,011
    Thanks given
    16
    Thanks received
    31
    Rep Power
    567
    but they attack back if u use anything other than melee
    Reply With Quote  
     

  8. #8  
    Registered Member

    Join Date
    Jun 2008
    Posts
    1,957
    Thanks given
    7
    Thanks received
    256
    Rep Power
    445
    i really got no clue but to help -

    this:
    Code:
    Send("You must be 60 Slayer to slay Dust Devils.");
    break;
    should be
    Code:
    Send("You must be 60 Slayer to slay Dust Devils.");
    return;
    along with all the other ones.
    Reply With Quote  
     

  9. #9  
    ̿ ̿̿ ̿̿ ̿̿̿'̿'\̵͇̿̿\=(•̪

    Dragonking's Avatar
    Join Date
    May 2008
    Posts
    2,011
    Thanks given
    16
    Thanks received
    31
    Rep Power
    567
    Quote Originally Posted by bando View Post
    i really got no clue but to help -

    this:
    Code:
    Send("You must be 60 Slayer to slay Dust Devils.");
    break;
    should be
    Code:
    Send("You must be 60 Slayer to slay Dust Devils.");
    return;
    along with all the other ones.
    well break and return will do the same thing there they both exit the statement
    Reply With Quote  
     

  10. #10  
    Registered Member Jbenitex's Avatar
    Join Date
    Feb 2009
    Age
    29
    Posts
    25
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    This for 317 or 508?Video doesn't load for me:/
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •