Thread: NPC disappears when in combat

Results 1 to 6 of 6
  1. #1 NPC disappears when in combat 
    Registered Member
    Join Date
    Aug 2016
    Posts
    62
    Thanks given
    23
    Thanks received
    3
    Rep Power
    11
    Hi everyone. As the title states, this "custom" (not really custom, but dead content that I am bringing to life) npc disappears when it is in combat.

    https://prnt.sc/ib2dn2

    ^Not in combat

    https://prnt.sc/ib2d1y

    ^In combat.

    Base in Vencillio. I am sure it has to do with the animation ids in NpcCombatDefinitions.xml, but the problem is I am not sure how to fix this. Keep in mind I am an absolute beginner so even changing the health on this npc from 0 was a challenge that took several hours to figure out, and everything is a work in progress. I know pretty much nothing about java or coding, it is just me and my common sense for now lol. I'm gonna learn eventually though.

    <!-- Flambeed -->
    <id>6370</id>
    <combatType>MELEE</combatType>
    <respawnTime>40</respawnTime>
    <block>
    <id>8571</id>
    <delay>0</delay>
    </block>
    <death>
    <id>8570</id>
    <delay>0</delay>
    </death>
    <skills>
    <skill>
    <id>0</id>
    <level>50</level>
    </skill>
    <skill>
    <id>1</id>
    <level>60</level>
    </skill>
    <skill>
    <id>2</id>
    <level>65</level>
    </skill>
    <skill>
    <id>3</id>
    <level>222</level>
    </skill>
    <skill>
    <id>4</id>
    <level>65</level>
    </skill>
    <skill>
    <id>5</id>
    <level>65</level>
    </skill>
    <skill>
    <id>6</id>
    <level>65</level>
    </skill>
    </skills>
    <bonuses>
    <int>80</int>
    <int>80</int>
    <int>80</int>
    <int>80</int>
    <int>80</int>
    <int>80</int>
    <int>80</int>
    <int>80</int>
    <int>80</int>
    <int>80</int>
    <int>80</int>
    <int>80</int>
    </bonuses>
    <melee>
    <melee>
    <attack>
    <hitDelay>1</hitDelay>
    <attackDelay>5</attackDelay>
    </attack>
    <animation>
    <id>8569</id>
    <delay>0</delay>
    </animation>
    <max>10</max>
    </melee>
    </melee>
    </NpcCombatDefinition>
    <NpcCombatDefinition>

    I just copied the code from jellies and pasted it and switched the npc ids, health, and the spawn location. I think it has to do with the attack animation ids, can anyone help a beginner out?
    Reply With Quote  
     

  2. #2  
    Extreme Donator


    Join Date
    Aug 2016
    Posts
    597
    Thanks given
    109
    Thanks received
    96
    Rep Power
    254
    I mean animations are made for specific npc's or attacks and stuff. You would have to find the correct animation id's for whatever this is or find the npc that it's based off of and use those. As an alternative you can just set them to -1 and it should just do nothing, but still hit. Then you could just add some gfx
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    Join Date
    Aug 2016
    Posts
    62
    Thanks given
    23
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by goody View Post
    I mean animations are made for specific npc's or attacks and stuff. You would have to find the correct animation id's for whatever this is or find the npc that it's based off of and use those. As an alternative you can just set them to -1 and it should just do nothing, but still hit. Then you could just add some gfx
    Thanks, this helps a lot.

    I find this off a google search:
    <npcDefinition>
    <id>3494</id>
    <name>flambeed</name>
    <examine>steroids much?</examine>
    <respawn>60</respawn>
    <combat>149</combat>
    <hitpoints>500</hitpoints>
    <maxHit>30</maxHit>
    <attackSpeed>5</attackSpeed>
    <attackAnim>11402</attackAnim>
    <defenceAnim>11401</defenceAnim>
    <deathAnim>11400</deathAnim>
    </npcDefinition>

    source: https://pastebin.com/ieFvfNuE

    I wonder if pasting that but updating the npc id will fix it? Or does the animation have to be coded in the server or something? I'll try it, can't hurt. If it doesn't work I will just revert it.
    Reply With Quote  
     

  5. #4  
    Respected Member


    Kris's Avatar
    Join Date
    Jun 2016
    Age
    26
    Posts
    3,638
    Thanks given
    820
    Thanks received
    2,642
    Rep Power
    5000
    It's most likely the animations you're using that are causing the npc to become invisible. Find the correct animations.
    Attached image
    Reply With Quote  
     

  6. Thankful user:


  7. #5  
    Extreme Donator


    Join Date
    Aug 2016
    Posts
    597
    Thanks given
    109
    Thanks received
    96
    Rep Power
    254
    Quote Originally Posted by asgfgh View Post
    Thanks, this helps a lot.

    I find this off a google search:
    <npcDefinition>
    <id>3494</id>
    <name>flambeed</name>
    <examine>steroids much?</examine>
    <respawn>60</respawn>
    <combat>149</combat>
    <hitpoints>500</hitpoints>
    <maxHit>30</maxHit>
    <attackSpeed>5</attackSpeed>
    <attackAnim>11402</attackAnim>
    <defenceAnim>11401</defenceAnim>
    <deathAnim>11400</deathAnim>
    </npcDefinition>

    source: https://pastebin.com/ieFvfNuE

    I wonder if pasting that but updating the npc id will fix it? Or does the animation have to be coded in the server or something? I'll try it, can't hurt. If it doesn't work I will just revert it.
    Yeah I mean animations are packed into your cache so you'll be hard pressed to find 5 servers that all share the same animations. The common/older npc's will most likely have the same id's, but its not a good habit to just copy them from somewhere else and hope it works. Odds are it won't work. I mean it sort of looks like wildywyrm/a strykewyrm so you could try those animations?
    Reply With Quote  
     

  8. Thankful user:


  9. #6  
    Registered Member
    Join Date
    Aug 2016
    Posts
    62
    Thanks given
    23
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by goody View Post
    Yeah I mean animations are packed into your cache so you'll be hard pressed to find 5 servers that all share the same animations. The common/older npc's will most likely have the same id's, but its not a good habit to just copy them from somewhere else and hope it works. Odds are it won't work. I mean it sort of looks like wildywyrm/a strykewyrm so you could try those animations?
    Yeah I thought the same thing, and I fixed it woo thanks for the help

    https://prnt.sc/ib32ux here it is fixed if anyone cares.
    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: 3
    Last Post: 03-21-2015, 08:08 PM
  2. Random letters when in combat
    By Cam m8 in forum Help
    Replies: 12
    Last Post: 01-17-2015, 11:33 PM
  3. NPCs randomly move all around when in combat
    By Cried Upon in forum Help
    Replies: 4
    Last Post: 02-24-2012, 07:56 AM
  4. Replies: 0
    Last Post: 05-19-2010, 09:22 PM
  5. npc spawn when in area
    By rmb7 in forum Help
    Replies: 1
    Last Post: 03-23-2009, 02:06 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
  •