Thread: [Rome/Matrix 718] Granite Maul Special

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1 [Rome/Matrix 718] Granite Maul Special 
    Donator

    Yuuji's Avatar
    Join Date
    Feb 2012
    Posts
    678
    Thanks given
    232
    Thanks received
    153
    Rep Power
    197
    I know this has been probably posted about in this section numerous times, but I am still yet to find an actual fix (I don't want to be spoon fed, but I would like some assistance as to how to fix the Granite Maul special attack)

    The problem currently is, you use another special attack (for example dragon claws) and try to combo it with the Granite Maul special attack (now the kicker, it doesn't initiate the special attack! It just wastes the special)

    PlayerCombat.java

    Line 4216 to 4233
    Code:
    case 4153:
                            player.setNextAnimation(new Animation(1667));
                            player.setNextGraphics(new Graphics(340, 0, 96 << 16));
                            delayNormalHit(
                                    weaponId,
                                    attackStyle,
                                    getMeleeHit(
                                            player,
                                            getRandomMaxHit(player, weaponId, attackStyle,
                                                    false, true, 1.1, true)));
                            break;
                    }
                    player.getActionManager().setActionDelay(4);
                }
                return true;
            }
            return true;
        }
    Any ideas?

    Attached image
    Attached image
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jul 2011
    Posts
    1,767
    Thanks given
    493
    Thanks received
    425
    Rep Power
    0
    Reply With Quote  
     

  3. #3  
    Donator

    Yuuji's Avatar
    Join Date
    Feb 2012
    Posts
    678
    Thanks given
    232
    Thanks received
    153
    Rep Power
    197
    Quote Originally Posted by Tristam View Post
    Tried it and it doesn't work :\ (I may be placing things in the wrong places)

    Attached image
    Attached image
    Reply With Quote  
     

  4. #4  
    (Official) Thanksgiver

    Arham's Avatar
    Join Date
    Jan 2013
    Age
    23
    Posts
    3,415
    Thanks given
    7,254
    Thanks received
    1,938
    Rep Power
    3905
    Quote Originally Posted by Levi X D View Post
    Tried it and it doesn't work :\ (I may be placing things in the wrong places)
    It surely does work because we use that in Turmoil. Are you sure you used the right post? The one we use is in a reply, not the thread.

    http://www.rune-server.org/runescape...ml#post4753870
    Attached image
    Attached image
    Quote Originally Posted by MrClassic View Post
    Arham is the official thanker!
    List of my work here!
    Reply With Quote  
     

  5. #5  
    Donator

    Yuuji's Avatar
    Join Date
    Feb 2012
    Posts
    678
    Thanks given
    232
    Thanks received
    153
    Rep Power
    197
    Quote Originally Posted by Zeref View Post
    It surely does work because we use that in Turmoil. Are you sure you used the right post? The one we use is in a reply, not the thread.

    http://www.rune-server.org/runescape...ml#post4753870
    Yeah I used Al4n's reply, but I am pretty sure I am just putting things in the wrong places :\ Trying my best to learn here, but it gets so frustrating.


    I know this
    Code:
    private boolean gmaulSpecCheapFix;
    
    public boolean getGmaulSpecCheapFix() {
    		return gmaulSpecCheapFix;
    	}
    
    	public void gmaulSpecCheapFix(boolean b) {
    		gmaulSpecCheapFix = b;
    	}
    Goes at the top of the PlayerCombat class,

    and this

    Code:
    if (player.getGmaulSpecCheapFix() && weaponId == 4153)
                    return 0;
    Goes somewhere below
    Code:
    private int getMeleeCombatDelay(Player player, int weaponId) {
    But as for the rest of it

    Code:
    case 4153:
    			combatDefinitions.setInstantAttack(true);
    			combatDefinitions.switchUsingSpecialAttack();
    			Entity target = (Entity) getTemporaryAttributtes().get(
    					"last_target");
    			if (target != null
    					&& target.getTemporaryAttributtes().get("last_attacker") == this) {
    				if (!(getActionManager().getAction() instanceof PlayerCombat)
    						|| ((PlayerCombat) getActionManager().getAction())
    								.getTarget() != target) {
    					getActionManager().setAction(new PlayerCombat(target));
    				}
    			}
    			gmaulSpecCheapFix(true);
    			break;
    And

    Code:
    case 4153:
                            player.setNextAnimation(new Animation(1667));
                            player.setNextGraphics(new Graphics(340, 0, 96 << 16));
                            delayNormalHit(
                                    weaponId,
                                    attackStyle,
                                    getMeleeHit(
                                            player,
                                            getRandomMaxHit(player, weaponId,
                                                    attackStyle, false, true, 1.1, true)));
                            player.gmaulSpecCheapFix(true);
                            break;
    I don't know which one to place in Private Boolean checkAll (line 4079), and which one goes to initiate the actual special attack.

    Attached image
    Attached image
    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    Aug 2012
    Posts
    1,725
    Thanks given
    907
    Thanks received
    362
    Rep Power
    387
    change actiondelay to 0
    Reply With Quote  
     

  7. #7  
    Donator

    Yuuji's Avatar
    Join Date
    Feb 2012
    Posts
    678
    Thanks given
    232
    Thanks received
    153
    Rep Power
    197
    Quote Originally Posted by Bart View Post
    change actiondelay to 0
    Why 0? And I tried changing it to 1, but that didn't seem to make a difference as to what I was trying to do (Combo special attacks into a granite maul spec so like use a dds spec, and switch to Granite Maul and use the attack instantly (which it isn't doing))

    Attached image
    Attached image
    Reply With Quote  
     

  8. #8  
    (Official) Thanksgiver

    Arham's Avatar
    Join Date
    Jan 2013
    Age
    23
    Posts
    3,415
    Thanks given
    7,254
    Thanks received
    1,938
    Rep Power
    3905
    Quote Originally Posted by Levi X D View Post
    Yeah I used Al4n's reply, but I am pretty sure I am just putting things in the wrong places :\ Trying my best to learn here, but it gets so frustrating.


    I know this
    Code:
    private boolean gmaulSpecCheapFix;
    
    public boolean getGmaulSpecCheapFix() {
    return gmaulSpecCheapFix;
    }
    
    public void gmaulSpecCheapFix(boolean b) {
    gmaulSpecCheapFix = b;
    }
    Goes at the top of the PlayerCombat class,

    and this

    Code:
    if (player.getGmaulSpecCheapFix() && weaponId == 4153)
                    return 0;
    Goes somewhere below
    Code:
    private int getMeleeCombatDelay(Player player, int weaponId) {
    But as for the rest of it

    Code:
    case 4153:
    combatDefinitions.setInstantAttack(true);
    combatDefinitions.switchUsingSpecialAttack();
    Entity target = (Entity) getTemporaryAttributtes().get(
    "last_target");
    if (target != null
    && target.getTemporaryAttributtes().get("last_attacker") == this) {
    if (!(getActionManager().getAction() instanceof PlayerCombat)
    || ((PlayerCombat) getActionManager().getAction())
    .getTarget() != target) {
    getActionManager().setAction(new PlayerCombat(target));
    }
    }
    gmaulSpecCheapFix(true);
    break;
    And

    Code:
    case 4153:
                            player.setNextAnimation(new Animation(1667));
                            player.setNextGraphics(new Graphics(340, 0, 96 << 16));
                            delayNormalHit(
                                    weaponId,
                                    attackStyle,
                                    getMeleeHit(
                                            player,
                                            getRandomMaxHit(player, weaponId,
                                                    attackStyle, false, true, 1.1, true)));
                            player.gmaulSpecCheapFix(true);
                            break;
    I don't know which one to place in Private Boolean checkAll (line 4079), and which one goes to initiate the actual special attack.
    I see some stuff wrong, I'll come and fix it when I'm on the computer.
    Attached image
    Attached image
    Quote Originally Posted by MrClassic View Post
    Arham is the official thanker!
    List of my work here!
    Reply With Quote  
     

  9. #9  
    Registered Member

    Join Date
    Aug 2012
    Posts
    1,725
    Thanks given
    907
    Thanks received
    362
    Rep Power
    387
    removes the delay on the special @ levi, it worked for me .
    Reply With Quote  
     

  10. #10  
    Donator

    Yuuji's Avatar
    Join Date
    Feb 2012
    Posts
    678
    Thanks given
    232
    Thanks received
    153
    Rep Power
    197
    Quote Originally Posted by Zeref View Post
    I see some stuff wrong, I'll come and fix it when I'm on the computer.
    Don't just throw a fix at me, if you could, please explain when you get on a computer as to why it goes in so and so (and so on) and what it is doing ect. I want to learn, so it would be appreciated if you could explain it to the best of your ability.

    Quote Originally Posted by Bart View Post
    removes the delay on the special @ levi, it worked for me .
    Didn't work :\ Doesn't change the special attack in the least, just makes the Granite Maul hit right after it uses its spec.

    Attached image
    Attached image
    Reply With Quote  
     

  11. Thankful user:


Page 1 of 2 12 LastLast

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. Replies: 0
    Last Post: 01-28-2015, 12:17 PM
  2. granite maul special
    By brentjuu in forum Help
    Replies: 12
    Last Post: 02-04-2011, 04:08 PM
  3. PI granite Maul Special
    By echomatic in forum Help
    Replies: 2
    Last Post: 08-12-2010, 10:36 AM
  4. [DELTA] Fix Granite Maul Special Attack
    By Derek in forum Snippets
    Replies: 5
    Last Post: 06-12-2010, 12:07 AM
  5. Correct Granite maul special gfx
    By George in forum Requests
    Replies: 2
    Last Post: 03-26-2010, 03:54 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
  •