Thread: [Vencillio] Abyssal Bludgeon + Spec

Results 1 to 3 of 3
  1. #1 [Vencillio] Abyssal Bludgeon + Spec 
    Registered Member
    Join Date
    May 2015
    Posts
    21
    Thanks given
    3
    Thanks received
    3
    Rep Power
    11
    First things first, here's the models, feel free to make a mirror.

    com/vencillio/rs2/content/combat/formula/MeleeFormulas.java
    [spoil]
    Under switch (weapon.getId()) {
    Code:
    		case 13263:
    			double d = 0;
    			System.out.println("First: "+d);
    			if (player.getLevels()[5] == 0) {
    				d = player.getMaxLevels()[5] / 2 * 0.01;
    			} else if (player.getLevels()[5] > 0) {
    				d = ((player.getMaxLevels()[5] - player.getLevels()[5]) / 2) * 0.01;
    			}
    			return 1.0+d;
    [/spoil]

    com/vencillio/rs2/content/combat/specials
    Create a new class file named AbyssalBludgeonSpecialAttack.java
    [spoil]
    Code:
    package com..rs2.content.combat.special.specials;
    
    import com.server.rs2.content.combat.formula.MeleeFormulas;
    import com.server.rs2.content.combat.special.Special;
    import com.server.rs2.entity.Animation;
    import com.server.rs2.entity.Graphic;
    import com.server.rs2.entity.player.Player;
    
    /**
     *@author Andrew
     */
    public class AbyssalBludgeonSpecialAttack implements Special {
    	MeleeFormulas meleeformula = new MeleeFormulas();
    	
    	@Override
    	public boolean checkRequirements(Player player) {
    		return true;
    	}
    
    	@Override
    	public int getSpecialAmountRequired() {
    		return 50;
    	}
    
    	@Override
    	public void handleAttack(Player player) {
    		player.getCombat().getMelee().setAnimation(new Animation(7010, 0));
    		player.getCombat().getAttacking().getUpdateFlags().sendGraphic(Graphic.highGraphic(1284, 0));
    		
    		meleeformula.getSpecialStr(player);
    	}
    	
    }
    [/spoil]

    Definitions XML
    [spoil]
    ItemDefinitions.xml
    Code:
    	<ItemDefinition>
    		<name>Abyssal Bludgeon</name>
    		<id>13263</id>
    		<members>false</members>
    		<tradable>true</tradable>
    		<stackable>false</stackable>
    		<note>false</note>
    		<noteId>13264</noteId>
    		<highAlch>156000</highAlch>
    		<lowAlch>104000</lowAlch>
    		<generalPrice>41453380</generalPrice>
    	</ItemDefinition>
    		<ItemDefinition>
    		<name>Abyssal Bludgeon</name>
    		<id>13264</id>
    		<members>false</members>
    		<tradable>true</tradable>
    		<stackable>true</stackable>
    		<note>true</note>
    		<noteId>799</noteId>
    		<highAlch>156000</highAlch>
    		<lowAlch>104000</lowAlch>
    		<generalPrice>41453380</generalPrice>
    	</ItemDefinition>
    SpecialAttackDefinitions.xml
    Code:
    	<SpecialAttackDefinition>
    		<id>13263</id>
    		<barId1>7474</barId1>
    		<barId2>7486</barId2>
    		<button>29049</button>
    		<amount>5.0</amount>
    	</SpecialAttackDefinition>
    WeaponDefinitions.xml
    Code:
    	<WeaponDefinition>
    		<id>13263</id>
    		<twoHanded>true</twoHanded>
    		<type>MELEE</type>
    		<attackAnimations>
    			<short>1665</short>
    			<short>1665</short>
    			<short>1665</short>
    			<short>1665</short>
    		</attackAnimations>
    		<attackSpeeds>
    			<short>4</short>
    			<short>4</short>
    			<short>4</short>
    			<short>4</short>
    		</attackSpeeds>
    		<block>1666</block>
    		<stand>1662</stand>
    		<walk>1663</walk>
    		<run>1664</run>
    		<standTurn>1663</standTurn>
    		<turn180>820</turn180>
    		<turn90CW>821</turn90CW>
    		<turn90CCW>821</turn90CCW>
    		<sidebarId>425</sidebarId>
    	</WeaponDefinition>
    ItemBonusDefinitions.xml
    Code:
    	<ItemBonusDefinition>
    		<id>13263</id>
    		<bonuses>
    			<short>0</short>
    			<short>0</short>
    			<short>102</short>
    			<short>0</short>
    			<short>0</short>
    			<short>0</short>
    			<short>0</short>
    			<short>0</short>
    			<short>0</short>
    			<short>0</short>
    			<short>85</short>
    			<short>0</short>
    			<short>0</short>
    		</bonuses>
    	</ItemBonusDefinition>
    	<ItemBonusDefinition>
    		<id>13264</id>
    		<bonuses>
    			<short>0</short>
    			<short>0</short>
    			<short>0</short>
    			<short>0</short>
    			<short>0</short>
    			<short>0</short>
    			<short>0</short>
    			<short>0</short>
    			<short>0</short>
    			<short>0</short>
    			<short>0</short>
    			<short>0</short>
    			<short>0</short>
    		</bonuses>
    	</ItemBonusDefinition>
    [/spoil]

    Packing Models
    [spoil]
    To pack the models into your cache, create a new folder inside your cache folder and name it index1 and put the two gzip files inside that folder, then go to your client.java class, and search for repackCacheIndex(1); and uncomment it, if it's not there, add it under loadTitleScreen();
    [/spoil]
    Last edited by _Andrew_; 12-12-2016 at 08:41 AM.
    Reply With Quote  
     

  2. Thankful user:

    Community VeteranSub

  3. #2  
    Boy Wonder


    Join Date
    Mar 2012
    Posts
    849
    Thanks given
    139
    Thanks received
    80
    Rep Power
    99
    Code:
    case 13263:
    	return 1.0 + (player.getLevels()[5] <= 0 ? player.getMaxLevels()[5] / 2 * 0.01 : (player.getMaxLevels()[5] - player.getLevels()[5]) / 2) * 0.01);
    Code:
    package com..rs2.content.combat.special.specials;
    
    import com.server.rs2.content.combat.formula.MeleeFormulas;
    import com.server.rs2.content.combat.special.Special;
    import com.server.rs2.entity.Animation;
    import com.server.rs2.entity.Graphic;
    import com.server.rs2.entity.player.Player;
    
    /**
     *@author Andrew
     */
    public class AbyssalBludgeonSpecialAttack implements Special {
    	
    	@Override
    	public boolean checkRequirements(Player player) {
    		return true;
    	}
    
    	@Override
    	public int getSpecialAmountRequired() {
    		return 50;
    	}
    
    	@Override
    	public void handleAttack(Player player) {
    		player.getCombat().getMelee().setAnimation(new Animation(7010, 0));
    		player.getCombat().getAttacking().getUpdateFlags().sendGraphic(Graphic.highGraphic(1284, 0));
    	}
    	
    }
    Can turn it into a one liner. MeleeForumla shouldn't be there, all the methods in MeleeForumlas class are static so you shouldn't be making instances of it, on top of that you were not doing with the data you were getting from MeleeForumlas#getSpecialStr so it has no efffect.

    Thanks for your contribution.

    Reply With Quote  
     

  4. Thankful users:


  5. #3  
    Registered Member
    Join Date
    Dec 2017
    Posts
    7
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Followed the guide exactly, still getting a Dwarf remains spawn lol
    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. Replies: 38
    Last Post: 07-20-2017, 07:40 PM
  2. abyssal bludgeon spec [PI]
    By ventusX in forum Snippets
    Replies: 0
    Last Post: 08-05-2016, 08:31 AM
  3. abyssal bludgeon spec anims
    By nick491 in forum Requests
    Replies: 6
    Last Post: 05-28-2016, 04:09 AM
  4. Abyssal Bludgeon
    By TottieGod in forum Show-off
    Replies: 13
    Last Post: 10-13-2015, 08:15 PM
  5. [Show-Off] Abyssal Bludgeon (Exodus RSPS)
    By Wizard in forum Models
    Replies: 16
    Last Post: 10-13-2015, 09:54 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
  •