paste the whole method
|
Im trying to make bandits aggressive but it won't work..
I added them inAs id 1926 but they just stand there.Code:public static boolean isAggressive(int i) {
Anyone know a fix?
paste the whole method
Up hereCode:public static boolean isAggressive(int i) { if (npcs[i].familiarNpc) return false; switch (npcs[i].npcType) { case 6260: case 6261: case 6263: case 6265: case 6222: case 1926: case 9052: case 6223: case 6225: case 6227: case 6692: case 6247: case 6248: case 6250: case 6252: case 1158: case 1160: case 1154: case 1157: case 6646: case 6647: case 6648: case 6730: case 6998: case 1156: case 795: case 8133: case 3101: case 3102: case 5666: case 3103: case 2892: case 2894: case 2881: case 50: case 2882: case 2883: case 6203: case 6206: case 6208: case 6204: case 9947: case 3847: case 10775://Frost dragon case 9463://Ice Strykewyrm case 125: return true; case 8349: return Entity.inMulti(npcs[i].absX, npcs[i].absY); } if (npcs[i].inWild() && npcs[i].MaxHP > 0) return true; if (npcs[i].isFightCaveNpc) return true; if (isRFDNpc(i)) return true; return false; }
Last edited by Spooky; 05-10-2014 at 08:00 PM.
Are the bandits instanced? As in they spawn when you get there? If so you will need to load the aggressiveness through the SpawnNPC method.
Otherwise, if they are spawned normally, make sure you have a definition loaded for the NPC in NPC.cfg? This doesn't allow me to attack the NPC without it (using PI)
Trying adding an attack animation, the NPC could be using a nulled animation or not one at all, and be hitting, but he doesn't do any animation so it looks like he is standing there.
If none of this helps feel free to PM me.
Ty will try
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |