Thread: Idk how to fix

Results 1 to 9 of 9
  1. #1 Idk how to fix 
    Registered Member
    Join Date
    Oct 2012
    Posts
    49
    Thanks given
    5
    Thanks received
    2
    Rep Power
    11
    Okay, I added the bandit npc's to my server and made them aggressive but when I try to attack one back my character just stands there, like the npc is not attack-able. where and how would I fix this?

    thanks
    Reply With Quote  
     

  2. #2  
    Middle Finger is Here


    Join Date
    Feb 2012
    Age
    31
    Posts
    2,546
    Thanks given
    377
    Thanks received
    502
    Rep Power
    162
    Make the npc have hp? from npc.cfg. try?
    Hi
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    Join Date
    Oct 2012
    Posts
    49
    Thanks given
    5
    Thanks received
    2
    Rep Power
    11
    Quote Originally Posted by Braveyy View Post
    Make the npc have hp? from npc.cfg. try?
    thanks, also do you know how i can make the area multi instead of single so they will simultaneously attack me?
    Reply With Quote  
     

  5. #4  
    Registered Member
    Edd -'s Avatar
    Join Date
    Jul 2011
    Posts
    664
    Thanks given
    62
    Thanks received
    43
    Rep Power
    84
    Code:
    public boolean inMulti() {
    its in your player.java use this format


    Code:
    (absX >= XX && absX <= XX && absY >= XX && absY <= XX) ||
    Reply With Quote  
     

  6. Thankful user:


  7. #5  
    Registered Member
    Join Date
    Oct 2012
    Posts
    49
    Thanks given
    5
    Thanks received
    2
    Rep Power
    11
    Quote Originally Posted by Edd is pro View Post
    Code:
    public boolean inMulti() {
    its in your player.java use this format


    Code:
    (absX >= XX && absX <= XX && absY >= XX && absY <= XX) ||
    Okay but how come there are 2 AbsX

    absX >= XX && absX

    sorry just tryna learn
    Reply With Quote  
     

  8. #6  
    Registered Member
    Edd -'s Avatar
    Join Date
    Jul 2011
    Posts
    664
    Thanks given
    62
    Thanks received
    43
    Rep Power
    84
    think of it like a giant box..


    like this use the x's as x coords y as y coords like code

    X..............Y
    | Your Multi|
    X..............Y


    asking for help is fine
    Reply With Quote  
     

  9. Thankful user:


  10. #7  
    Super Donator


    Join Date
    Feb 2011
    Age
    27
    Posts
    1,126
    Thanks given
    180
    Thanks received
    178
    Rep Power
    243
    All that you have to do is giving it health in the npc.cfg ..
    Reply With Quote  
     

  11. #8  
    Registered Member
    Join Date
    Oct 2012
    Posts
    49
    Thanks given
    5
    Thanks received
    2
    Rep Power
    11
    Quote Originally Posted by Edd is pro View Post
    think of it like a giant box..


    like this use the x's as x coords y as y coords like code

    X..............Y
    | Your Multi|
    X..............Y


    asking for help is fine
    I got it working as multi now and there all agressive but they won't attack me at the same time they walk up to me and I can hit them but only one will hit me.

    any ideal why?
    Reply With Quote  
     

  12. #9  
    Registered Member
    Edd -'s Avatar
    Join Date
    Jul 2011
    Posts
    664
    Thanks given
    62
    Thanks received
    43
    Rep Power
    84
    Quote Originally Posted by Civil Xtacy View Post
    I got it working as multi now and there all agressive but they won't attack me at the same time they walk up to me and I can hit them but only one will hit me.

    any ideal why?
    go to npc.java same thing as before

    Code:
    public boolean inMulti() {
    under the switch statment add the same coords you did in player.java
    Reply With Quote  
     

  13. Thankful user:



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. idk what but its easy fix
    By mr selby in forum Help
    Replies: 7
    Last Post: 06-11-2011, 12:05 AM
  2. simple error but idk how to fix
    By storyscape in forum Help
    Replies: 3
    Last Post: 05-22-2010, 01:30 AM
  3. weird error..idk how to fix
    By TrollCount++ in forum Help
    Replies: 0
    Last Post: 01-30-2010, 05:55 PM
  4. can any 1 help me fix this? idk what to do:S
    By Mr.PedoBear in forum Help
    Replies: 1
    Last Post: 09-12-2009, 03:01 PM
  5. idk how to fix
    By angelsammie in forum Help
    Replies: 4
    Last Post: 08-21-2009, 06:00 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
  •