|
I have an question about npc's. How do i make an npc and it looks like mystery box? or any other like awaken have christmas cracker npc? so i can attack it and it give me drop.
Screenshot by Lightshot
is not a mystery box, is a giant mystery box wtf man!
bump
In your entityDef.java
add this:
if(i == #) { // NPC ID
entityDef.models = new int[1]; // Number of models the NPC uses
entityDef.models[0] = ##; // Model id 1
entityDef.name = "Mystery box"; // NPC name
entityDef.combatLevel = ###; //combat level
entityDef.description = "Description.".getBytes(); // NPC description
entityDef.anInt91 = 110; //width
entityDef.anInt86 = 110; //height
int changedColors = 1; // Number of model colors changed on the NPC
entityDef.originalModelColors = new int[changedColors];
entityDef.modifiedModelColors = new int[changedColors];
entityDef.originalModelColors[0] = 22410; // Original model color
entityDef.modifiedModelColors[0] = 5056; // Changed model color
}
# is npcs id.
## is model id of the mystery box
### is combat lvl
The model id for mystery box is 2426
btw this will make it huge.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |