Tested source: Nectrotic (Ruse)
Resources needed:
Sprite images: https://dl.dropbox.com/s/mt1vton896pt5m3/sprites.rar
Sprite Packer: https://dl.dropbox.com/s/frxbdg848dk...ker%201.44.jar
What you are adding:
Client Side:
Code:
package org.necrotic.client;
Find:
Code:
private void updateEntities() {
In the updateEntities() method find and replace:
Code:
if (obj instanceof NPC) {
MobDefinition entityDef = ((NPC) obj).definitionOverride;
if (entityDef.childrenIDs != null) {
entityDef = entityDef.method161();
}
if (entityDef == null) {
continue;
}
}
With:
Code:
if (obj instanceof NPC) {
MobDefinition entityDef = ((NPC) obj).definitionOverride;
npcScreenPos((Entity) obj, ((Entity) obj).height + 15);
if (spriteDrawX > -1) {
//draw sprites on npc
if (entityDef.id == 316) {
cacheSprite[1226].drawSprite(spriteDrawX - 12, spriteDrawY - 30);
}
if (entityDef.id == 312) {
cacheSprite[1227].drawSprite(spriteDrawX - 12, spriteDrawY - 30);
}
if (entityDef.id == 313) {
cacheSprite[1229].drawSprite(spriteDrawX - 12, spriteDrawY - 30);
}
if (entityDef.id == 318) {
cacheSprite[1228].drawSprite(spriteDrawX - 12, spriteDrawY - 30);
}
//rock tail are objects
}
if (entityDef.childrenIDs != null) {
entityDef = entityDef.method161();
}
if (entityDef == null) {
continue;
}
}
Credits:
Whoever released the Sprite Packer (found a download link in a comment on these forums ages ago)
Me for the snippet