Thread: NPC's wont become aggressive

Results 1 to 5 of 5
  1. #1 NPC's wont become aggressive 
    Banned
    Join Date
    Apr 2014
    Posts
    68
    Thanks given
    14
    Thanks received
    7
    Rep Power
    0
    Im trying to make bandits aggressive but it won't work..
    I added them in
    Code:
    public static boolean isAggressive(int i) {
    As id 1926 but they just stand there.
    Anyone know a fix?
    Reply With Quote  
     

  2. #2  
    oof


    Join Date
    Aug 2012
    Posts
    3,150
    Thanks given
    2,847
    Thanks received
    857
    Rep Power
    2260
    paste the whole method
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    Apr 2014
    Posts
    68
    Thanks given
    14
    Thanks received
    7
    Rep Power
    0
    Code:
    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;
    	}
    Quote Originally Posted by Byrone View Post
    paste the whole method
    Up here
    Last edited by Spooky; 05-10-2014 at 08:00 PM.
    Reply With Quote  
     

  4. #4  
    Registered Member Mind Games's Avatar
    Join Date
    Aug 2012
    Posts
    409
    Thanks given
    39
    Thanks received
    27
    Rep Power
    17
    Quote Originally Posted by pasteurrr View Post
    Code:
    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;
    	}


    Up here
    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.
    Goodbye RSPS scene. OSRS since 13'.
    Reply With Quote  
     

  5. #5  
    Banned
    Join Date
    Apr 2014
    Posts
    68
    Thanks given
    14
    Thanks received
    7
    Rep Power
    0
    Ty will try
    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: 0
    Last Post: 05-15-2011, 07:57 PM
  2. NPC's Wont drop anything! [DELTA]
    By rocky2k10 in forum Help
    Replies: 11
    Last Post: 05-04-2011, 08:34 PM
  3. adding NPC spawn wont start server[DELTA]
    By luke1105 in forum Help
    Replies: 2
    Last Post: 01-26-2010, 01:46 AM
  4. Replies: 10
    Last Post: 03-22-2009, 01:02 PM
  5. Npc's Wont Add properly
    By Enjoi in forum Help
    Replies: 2
    Last Post: 10-25-2008, 12:21 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •