Thread: Special attack not working for alot of weapons. ids and such are in playercombat.java

Results 1 to 2 of 2
  1. #1 Special attack not working for alot of weapons. ids and such are in playercombat.java 
    Registered Member
    Join Date
    May 2014
    Posts
    12
    Thanks given
    0
    Thanks received
    0
    Rep Power
    9
    So, I'm currently having an issue with the special attacks on my server. Most of the special attacks such as dragon dagger, dragon claws, ags, etc isnt workingand I've checked The PlayerCombat.java File and all the id's and such are there, the only special attack that seems to work is granite maul. The problem occurs when trying to press the special attack button, the button doesnt activate, as in it doesnt light up and you simply poke the enemies when trying to hit them. The source I'm using is poanizers incase that helps. Thank you! =)
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Apr 2009
    Posts
    99
    Thanks given
    3
    Thanks received
    3
    Rep Power
    11
    Open PlayerCombat.java go to
    Code:
    meleeAttack(final Player player) {
    in that method find
    Code:
    if (player.getCombatDefinitions().isUsingSpecialAttack()) {
    			if(!specialExecute(player)) 
    				return combatDelay;
    			switch (weaponId) {
    Make sure the weapon in question has a spec there.. just look for its item id, and look for what it does..
    Ex)
    Code:
    case ITEM-ID-HERE:
    			
    				player.setNextAnimation(new Animation(11971));
    				target.setNextGraphics(new Graphics(2108, 0, 100));
    				if (target instanceof Player) {
    					Player p2 = (Player) target;
    					p2.setRunEnergy(p2.getRunEnergy() > 25 ? p2.getRunEnergy() - 25
    							: 0);
    				}
    				delayNormalHit(
    						weaponId,
    						attackStyle,
    						getMeleeHit(
    								player,
    								getRandomMaxHit(player, weaponId, attackStyle,
    										false, true, 1.2, true)));
    				break;
    next find
    Code:
    public static int getSpecialAmmount(int weaponId) {
    Make sure there is a spec amount assigned to the weapon

    Also, you said your maul has a spec.. so just inspect it. See what the difference is between the maul and other weapons in the playerCombat.java class. Hope this helps bud
    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. Client not working for You? READ!
    By Edge in forum Tutorials
    Replies: 59
    Last Post: 02-06-2020, 09:27 AM
  2. Alot of Npc spawns = specials to not work?
    By LeBron James in forum Help
    Replies: 5
    Last Post: 08-12-2012, 01:40 AM
  3. Special attacks not working(REP ++)
    By lilchicken77 in forum Help
    Replies: 0
    Last Post: 02-26-2010, 02:05 PM
  4. clan chat not working for me
    By devildreams54 in forum Help
    Replies: 5
    Last Post: 07-09-2009, 08:48 AM
  5. Barrows Special Attacks [not effects]
    By XGamer in forum Tutorials
    Replies: 2
    Last Post: 06-30-2008, 08:55 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
  •