Thread: [Solved] PlayerCombat for Hexhunter bow?

Results 1 to 5 of 5
  1. #1 [Solved] PlayerCombat for Hexhunter bow? 
    Extreme Donator

    Join Date
    Jul 2014
    Posts
    414
    Thanks given
    46
    Thanks received
    8
    Rep Power
    15
    I have a Hexhunter bow and for some reason it requires close combat ranging, it won't let me range from a distance. It just walks up close when shot.
    I heard that this has to be defined as a bow in PlayerCombat.java, but where would I put it and what do I put?

    Thanks yet again...
    Reply With Quote  
     

  2. #2  
    Christ is King

    Makar's Avatar
    Join Date
    Jul 2011
    Age
    29
    Posts
    2,004
    Thanks given
    545
    Thanks received
    965
    Rep Power
    427
    Search for the "isRanging" method in there and it's either a massive block of else-if checks or a massive switch statement. Just add Hexhunter bow in the same way all the other bows are added.
    Attached image
    The best open-source pre-eoc remake project that isn't in its early stages for once
    Darkan Client (727 Client Refactor)
    Darkan World Server
    “It would not be impossible to prove with sufficient repetition and a psychological understanding of the people concerned that a square is in fact a circle. They are mere words, and words can be molded until they clothe ideas and disguise.”
    Reply With Quote  
     

  3. #3  
    Extreme Donator

    Join Date
    Jul 2014
    Posts
    414
    Thanks given
    46
    Thanks received
    8
    Rep Power
    15
    Quote Originally Posted by Makar View Post
    Search for the "isRanging" method in there and it's either a massive block of else-if checks or a massive switch statement. Just add Hexhunter bow in the same way all the other bows are added.
    This right here?
    Code:
    public static final int isRanging(Player player) {
    		int weaponId = player.getEquipment().getWeaponId();
    		if (weaponId == -1)
    			return 0;
    		String name = ItemDefinitions.getItemDefinitions(weaponId).getName();
    		if (name != null) { // those dont need arrows
    			if (name.contains("knife") || name.contains("dart")
    					|| name.contains("javelin") || name.contains("thrownaxe")
    					|| name.contains("throwing axe")
    					|| name.contains("crystal bow")
    					|| name.equalsIgnoreCase("zaryte bow")
    					|| name.contains("chinchompa") || name.contains("hexhunter bow") || name.contains("Bolas"))
    				return 2;
    		}
    Reply With Quote  
     

  4. #4  
    Christ is King

    Makar's Avatar
    Join Date
    Jul 2011
    Age
    29
    Posts
    2,004
    Thanks given
    545
    Thanks received
    965
    Rep Power
    427
    Yes, except you want it to use arrows so don't put it in that part.
    Attached image
    The best open-source pre-eoc remake project that isn't in its early stages for once
    Darkan Client (727 Client Refactor)
    Darkan World Server
    “It would not be impossible to prove with sufficient repetition and a psychological understanding of the people concerned that a square is in fact a circle. They are mere words, and words can be molded until they clothe ideas and disguise.”
    Reply With Quote  
     

  5. #5  
    Extreme Donator

    Join Date
    Jul 2014
    Posts
    414
    Thanks given
    46
    Thanks received
    8
    Rep Power
    15
    Quote Originally Posted by Makar View Post
    Yes, except you want it to use arrows so don't put it in that part.
    Thanks! Fixed it .
    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. [PI] Arrows for certain bows only!
    By Harambe_ in forum Help
    Replies: 0
    Last Post: 01-12-2011, 06:31 AM
  2. [SOLVED] Prefix for Help Section
    By Vault in forum Suggestions
    Replies: 15
    Last Post: 10-24-2010, 06:08 PM
  3. Gfx for crystal bow
    By T-Sex in forum Help
    Replies: 2
    Last Post: 07-30-2010, 03:37 PM
  4. Help with highscore mysql ordering - 3$ for him who solve this for me
    By Fubergen in forum Application Development
    Replies: 7
    Last Post: 05-23-2010, 09:38 PM
  5. Solving Highscore For 317 Big Rep
    By PrataKosong in forum Help
    Replies: 1
    Last Post: 12-01-2009, 05:03 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
  •