Thread: Making npc unagressive?

Results 1 to 4 of 4
  1. #1 Making npc unagressive? 
    Registered Member
    Join Date
    Sep 2013
    Posts
    285
    Thanks given
    3
    Thanks received
    3
    Rep Power
    11
    Okay so I know how to make npcs agressive....but how do you make them unagressive?

    I checked npchandler..


    the NPC id's aren't on

    public boolean isAggressive(int i) {

    So my question is HOW TO MAKE UNAGRESSIVE .. They are in the wild, so idk if that has anything to do with it b ecause I noticed.


    Code:
    public boolean isAggressive(int i) {
                    case 6258:
    		case 6259:
    		case 6254:
    		case 6252:
    		case 6248:
    		case 6247:
    
    			return true;
    		}
    		if (npcs[i].inWild() && npcs[i].MaxHP > 0)
    			return true;
    		if (isFightCaveNpc(i))
    			return true;
    		return false;
    	}
    So if I want them unagressive do I put return false? or completely delete that? I didn't wanna mess with it because it said "Maxhp > 0"
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Mar 2013
    Posts
    3,046
    Thanks given
    82
    Thanks received
    374
    Rep Power
    0
    if you want them not to be aggressive, take their number out of the switch.
    Reply With Quote  
     

  3. #3  
    Registered Member Intellectual's Avatar
    Join Date
    Apr 2014
    Posts
    59
    Thanks given
    6
    Thanks received
    5
    Rep Power
    11
    If your npc is one of those cases, that you're wanting "Unaggressive" then just simply remove their Case. It will be un-aggressive by default.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Sep 2013
    Posts
    285
    Thanks given
    3
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by Sakon View Post
    if you want them not to be aggressive, take their number out of the switch.
    Quote Originally Posted by Murder View Post
    If your npc is one of those cases, that you're wanting "Unaggressive" then just simply remove their Case. It will be un-aggressive by default.
    No I was explaining their case wasn't in there...


    I figured it out tho....took me a lil bit.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Making GWD Npcs' Unagressive
    By Shemhamforash in forum Help
    Replies: 7
    Last Post: 07-24-2009, 05:58 PM
  2. Make Npc's Attack Properly
    By Alex in forum Tutorials
    Replies: 19
    Last Post: 05-03-2008, 02:02 AM
  3. How to make NPCS talk like rl rs
    By .fabian in forum Tutorials
    Replies: 8
    Last Post: 10-18-2007, 10:09 PM
  4. Making Npcs attack with Mage! - ##
    By Oo Java in forum Tutorials
    Replies: 14
    Last Post: 10-02-2007, 07:15 PM
  5. Making Npcs give (atk, str, def, hp, range) XP
    By volcanic fox™ in forum Tutorials
    Replies: 6
    Last Post: 05-22-2007, 05:23 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •