tedhead2
December 29th, 2010, 22:10
In 562s there are some NPCs that when you attack, they only have 1 HP, and do not die. These NPCs aren't added into your servers data files. This is how to do so.
I am using emberscape source, my path is like this:
Project 562/data/
In that folder, find npcDefinitions.xml, open it.
FIRST: Make sure you know the NPC ID, do a search in the file to check if it not already added, just not yet configured.
SECOND: If it is NOT added, find a npcdefinition, copy it, and paste. It should look like this. (This si just an example, not exactly what it will look like)
<npcDefinition>
<id>7343</id>
<name>steel titan</name>
<combat>230</combat>
<hitpoints>50000</hitpoints>
<maxHit>24</maxHit>
<attackSpeed>7</attackSpeed>
<attackAnim>8183</attackAnim>
<defenceAnim>8185</defenceAnim>
<deathAnim>8184</deathAnim>
</npcDefinition>
Now, change the ID in the new definition to the one of the NPC you want to add, then change the name, AND MAKE SURE IT IS CORRECT, Make sure te combat level is the same as the npc you want to add, and I reccomend you look up on google its health points, then divide them by 10(900 = 90), and add the correct hp. Now, make sure the max hit is correct, and last of all, the attack speed.
Now the attack, defence, and death animations are tricky. If you wish, you can use player animations, but they may or may not work.
From here, you can goto NpcVsPlayer.java and add custom attacks, animations, ect.
I am using emberscape source, my path is like this:
Project 562/data/
In that folder, find npcDefinitions.xml, open it.
FIRST: Make sure you know the NPC ID, do a search in the file to check if it not already added, just not yet configured.
SECOND: If it is NOT added, find a npcdefinition, copy it, and paste. It should look like this. (This si just an example, not exactly what it will look like)
<npcDefinition>
<id>7343</id>
<name>steel titan</name>
<combat>230</combat>
<hitpoints>50000</hitpoints>
<maxHit>24</maxHit>
<attackSpeed>7</attackSpeed>
<attackAnim>8183</attackAnim>
<defenceAnim>8185</defenceAnim>
<deathAnim>8184</deathAnim>
</npcDefinition>
Now, change the ID in the new definition to the one of the NPC you want to add, then change the name, AND MAKE SURE IT IS CORRECT, Make sure te combat level is the same as the npc you want to add, and I reccomend you look up on google its health points, then divide them by 10(900 = 90), and add the correct hp. Now, make sure the max hit is correct, and last of all, the attack speed.
Now the attack, defence, and death animations are tricky. If you wish, you can use player animations, but they may or may not work.
From here, you can goto NpcVsPlayer.java and add custom attacks, animations, ect.