Thread: Need Help with Matrix 592 NPC Combat Definitions

Results 1 to 4 of 4
  1. #1 Need Help with Matrix 592 NPC Combat Definitions 
    Registered Member
    Join Date
    Oct 2011
    Posts
    138
    Thanks given
    4
    Thanks received
    7
    Rep Power
    11
    Hello! I found the source from _jordan, over at https://www.rune-server.ee/runescape...-features.html


    I saw it doesn't come with NPC Combat definitions... Now I'm not looking for someone to give me all the combat definitions, but could someone help me understand how they are implemented?

    I keep getting an error trying to enter a manual combat definition.

    Code:
    java.lang.RuntimeException: ERR1 Invalid NPC Combat Definitions line: 1  | 70, -1, -1, -1, 5, 1, 33, 0, 0, -1, -1, 0, 4,
        at com.rs.utils.NPCCombatDefinitionsL.loadUnpackedNPCCombatDefinitions(NPCCombatDefinitionsL.java:53)
        at com.rs.utils.NPCCombatDefinitionsL.init(NPCCombatDefinitionsL.java:26)
        at com.rs.Launcher.main(Launcher.java:77)


    Looking at the code, it's set up like:

    Code:
    public final static NPCCombatDefinitions DEFAULT_DEFINITION = new NPCCombatDefinitions(70, -1, -1, -1, 5, 1, 33, 0, NPCCombatDefinitions.MELEE, -1, -1, NPCCombatDefinitions.PASSIVE, 4);
    So I've tried a few things, like:


    Code:
    70, -1, -1, -1, 5, 1, 33, 0, 0, -1, -1, 0, 4,
    70,    2,    -1,    -1,    -1,    -1,    -1,    60,    1,    MELEE,    -1,    -1,    PASSIVE,    4

    No matter what I do, it's always throwing an error...


    I was wondering if someone can help me figure out the proper set up to unpackednpccombatdefinitions for this server so I can manually add them for the npcs, and when/if I finish it, I'll post the file up for someone else to use or something

    Cheers
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jan 2012
    Posts
    191
    Thanks given
    45
    Thanks received
    87
    Rep Power
    0
    iirc with this being a matrix base the format is

    Code:
    npcId - hitpoints attackAnim defenceAnim deathAnim attackDelay deathDelay respawnDelay maxHit attackStyle attackGfx attackProjectile agressivenessType
    and you would just need to add something like this into the Data > Npc > UnpackedCombatDefinitions.txt

    Code:
    //Guard
    3278 - 220 7218 7221 7219 3 1 60 10 MELEE -1 -1 PASSIVE
    and then of course delete your packedCombatDefinitions.ncd and restart the server (make sure it's packing on restart I assume it is already) and you should be all set
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    Melvin's Avatar
    Join Date
    Aug 2011
    Posts
    1,150
    Thanks given
    546
    Thanks received
    418
    Rep Power
    1561
    I saw it doesn't come with NPC Combat definitions...
    Now I'm not looking for someone to give me all the combat definitions
    give me all the combat definitions
    boy what the hell


    A creative man is motivated by the desire to achieve, not by the desire to beat others.”


    ― Ayn Rand
    Reply With Quote  
     

  5. Thankful user:


  6. #4  
    Registered Member
    Join Date
    Oct 2011
    Posts
    138
    Thanks given
    4
    Thanks received
    7
    Rep Power
    11
    Quote Originally Posted by Melvin View Post
    boy what the hell

    Did you read that wrong or something? I never asked someone to give me all of the combat definitons at all. I asked for ONE example of how to make a npc definition because the method I was trying was not working at all. In fact I said multiple times not to give me all of them because I would like to do it manually.

    Quote Originally Posted by Dbcrazy View Post
    iirc with this being a matrix base the format is

    Code:
    npcId - hitpoints attackAnim defenceAnim deathAnim attackDelay  deathDelay respawnDelay maxHit attackStyle attackGfx attackProjectile  agressivenessType
    and you would just need to add something like this into the Data > Npc > UnpackedCombatDefinitions.txt



    Code:
    //Guard
    3278 - 220 7218 7221 7219 3 1 60 10 MELEE -1 -1 PASSIVE
    and then of course delete your packedCombatDefinitions.ncd and restart the server (make sure it's packing on restart I assume it is already) and you should be all set



    Thank you for the information, but it didn't work. Throwing the same error as before, even tried throwing a comma after... It's coded like


    Code:
    npcId, new NPCCombatDefinitions(hitpoints, attackAnim, defenceAnim, deathAnim, attackDelay, deathDelay, respawnDelay, maxHit, attackStyle, attackGfx, attackProjectile, agressivenessType, agroRatio
    So i'd assume like your example, it should be

    Code:
    3278 - 220 7218 7221 7219 3 1 60 10 MELEE -1 -1 PASSIVE 4

    But that isn't working either



    ------------------------------


    EDIT:


    Nvm holy crap i got it working, its cuz im dumb and added commas as separations and it shouldn't have any. Many thanks Dbcrazy
    Last edited by xxskylarscapexx; 11-30-2022 at 01:13 AM.
    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. Need help With Leeches on Npcs [PI]
    By 'Zant in forum Requests
    Replies: 0
    Last Post: 03-27-2011, 10:13 AM
  2. Replies: 4
    Last Post: 10-16-2010, 05:25 AM
  3. Need help with range on npc
    By Ryan™ in forum Help
    Replies: 2
    Last Post: 07-09-2010, 01:35 AM
  4. Help with Player vs NPC Combat
    By Sheddy in forum Help
    Replies: 6
    Last Post: 12-14-2009, 06:27 AM
  5. need help with a small npc drop problem
    By EndlessZombies in forum Help
    Replies: 0
    Last Post: 01-15-2009, 09:33 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
  •