Thread: NPc Aggression [Delta]

Results 1 to 5 of 5
  1. #1 NPc Aggression [Delta] 
    tonic
    Guest
    I know this sounds nooby but I added a Tormented Demon into my client and How would I make it able to be killed by more than more than 1 person, and have it hit, because I have no clue on how to do this. ~any help will be appricated.


    ---Will Repp+++ if someone can help me with this.
    Reply With Quote  
     

  2. #2  
    Mr. Rave
    Guest
    You will have to make the area you put the Tormented demon
    Which the area you have to make has to be Multi..

    Wait, I'll give you the code for it but not the X & Y coordinates, make your self

    Here.

    Code:
    public boolean isIn****() {
    	if((absX >= #### && absX <= #### && absY >= #### && absY <=####))
    	return true;
    	else
    	return false;
    	}
    Put that Code under, this code.
    Code:
    public boolean multiCombat() {
    	if((absX >= 3144 && absX <= 3184 && absY >= 3519 && absY <=3656) || (absX >= 3185 && absX <= 3350 && absY >= 3502 && absY <=3900) || (absX >= 2983 && absX <= 3007 && absY >= 3905 && absY <=3917) || (absX >= 3007 && absX <= 3075 && absY >= 3608 && absY <=3713) || (absX >= 2944 && absX <= 2963 && absY >= 3812 && absY <=3827) || (absX >= 3041 && absX <= 3057 && absY >= 3869 && absY <=3883) || (absX >= 3157 && absX <= 3181 && absY >= 3874 && absY <=3895) || (absX >= 2720 && absX <= 2760 && absY >= 5073 && absY <=5114) || (absX >= 2256 && absX <= 2287 && absY >= 4680 && absY <=4711) || (absX >= 2360 && absX <= 2445 && absY >= 5045 && absY <= 5125) || (absX >= 2760 && absX <= 2780 && absY >= 2790 && absY <=2810) || (absX >= 2624 && absX <= 2690 && absY >= 2550 && absY <=2619) || (absX >= 3460 && absX <= 3520 && absY >= 9470 && absY <=9530) || (absX >= 2371 && absX <= 2424 && absY >= 5125 && absY <=5167) || (absX >= 2627 && absX <= 2677 && absY >= 4550 && absY <=4602) || (absX >= 3249 && absX <= 3307 && absY >= 3904 && absY <=3952) || (absX >= 2420 && absX <= 2520 && absY >= 10100 && absY <=10200) || (absX >= 2992 && absX <= 3090 && absY >= 4804 && absY <=4872) || (absX >= 3004 && absX <= 2967 && absY >= 3909 && absY <=3914) || (absX >= 3097 && absX <= 3148 && absY >= 3957 && absY <=3943))
    	return true;
    	else
    	return false;
    	}
    Key.

    ***** = What you want it to be called. E.g. TD (Tormented Demon) That's what i put.
    #### = the X & Y coordinates.
    Reply With Quote  
     

  3. #3  
    tonic
    Guest
    ok so thats for the multi attack right that works however the demon wont hit anything.
    Reply With Quote  
     

  4. #4  
    Mr. Rave
    Guest
    Hmm, let's see.
    go to
    NPCHANDLER.java

    Under.
    Code:
    	
             public int getDistanceForNpc(int Npc) {
    		switch(npcs[Npc].npcType) {
    Put this
    Code:
    Case ####:
    #### = NPC Id.

    Now Under this, ( This is to make the Tormented demon automatically attack when he/she teleports there. )
    Code:
    	public boolean npcGetsAnnoyed(int Npc) {
    		switch(npcs[Npc].npcType) {
    Put this again.
    Code:
    case ####:
    #### = NPC Id.

    Wait, I'll post the rest right now.
    Reply With Quote  
     

  5. #5  
    tonic
    Guest
    umm ok once you give me the rest I'll repp u

    Will this have the demon attack the players and actually hit?
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •