Welcome, guest! Please login or register.

    * Shoutbox

    RefreshHistory
    • demon dylan: anyone know moparscape call back link?
      Today at 07:02:51 PM
    • ragnoroker: Brand new server! Less than 1 week old! Nightmare/Raids 1/2/Hydra/Pk Modes/Exp modes/ Unique  Join today - [link]
      July 04, 2020, 06:42:38 PM
    • ragnoroker: Brand new server! Less than 1 week old! Nightmare/Raids 1/2/Hydra/Pk Modes/Exp modes/ Unique  Join today - [link]
      July 04, 2020, 06:42:32 PM
    • iddsyou: PkOwnage 2 worlds, modern OSRS & 2014 server! [link]  Join us on Discord! [link]
      July 04, 2020, 11:07:29 AM
    • slayerpure: kingdom full blown custom server with over 50 custom bosses released last week. play now here     [link]
      July 02, 2020, 08:44:32 PM
    • jgoet: dodian !!
      July 02, 2020, 07:15:44 PM
    • jgoet: join [link]  its back online !!!!
      July 02, 2020, 07:15:37 PM
    • Protojae: RIP moparscape
      July 02, 2020, 03:01:32 PM
    • Protojae: obviously thiswebsite is dead as fudge
      July 02, 2020, 03:01:14 PM
    • ragnoroker: RuneGuild has just been released! 1 Hour old, Come join the fun - [link]
      June 26, 2020, 02:14:21 PM
    • ragnoroker: RuneGuild has just been released! 1 Hour old, Come join the fun - [link]
      June 26, 2020, 02:14:08 PM
    • ragnoroker: RuneGuild has just been released! 1 Hour old, Come join the fun - [link]
      June 26, 2020, 02:14:00 PM
    • Fox2007: rune-nexus.com - FREE advertising, SEO optimized - no registration required
      June 26, 2020, 06:21:47 AM
    • Decimate Returns: trailer video posted for Project Decimate, Official Launch is in a few weeks! watch here: [youtube]LBorsdI-k1Y[/youtube]
      June 24, 2020, 07:18:03 PM
    • slayerpure: 1 week old rsps we need players and potential staff, customs and goku/vegeta sets play here!    [link] join our discord [link]
      June 24, 2020, 05:23:46 PM
    • Decimate Returns: Project Decimate is still in BETA: join our discord to keep up with the new content added: [link]
      June 24, 2020, 01:09:23 PM
    • Decimate Returns: Project Decimate is still in BETA: join our discord to keep up with the new content added: [link]
      June 24, 2020, 01:09:03 PM
    • dan v jad: PkOwnage OSRS Great server great community!  Join us on Discord! [link]  Download: [link]
      June 21, 2020, 09:23:28 AM
    • Lens: Sick Custom RSPS - CrystalPS. Join us on Discord. [link]
      June 20, 2020, 04:35:44 PM
    • Shady Aftermath: check out skyfire317.com gott 3 custom skills, afk zones
      June 19, 2020, 10:22:22 PM

    Show Posts

    This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


    Messages - Ares_

    Pages: [1] 2
    1
    Music / Re: What are you listening to..?
    « on: August 17, 2013, 01:01:07 PM »
    Zyzz playlist because I don't wanna make my own.

    2
    General Discussion / Re: The fitness thread
    « on: August 14, 2013, 12:48:03 PM »
    only like 5'5 but technically I'm still only 15/16. 2 years behind, went to docs when I was in 10th grade because I still looked like a 7th grader.


    Im late as fuk so even though im almost 19 Im most likely not done

    What creatine did you take?
    six star creatine x3

    Probably gonna try that next or cellmass

    3
    Server and Client Development Showoff / Re: Evelus
    « on: August 13, 2013, 03:10:56 PM »
    Daily bump. We will be completing the door system today... yay doors.
    Media will be available later today.
    Hope it was by doors.cfg  :rolleyes::P

    Good joke.

    It's how the pros do it, duh.

    Anyways nice development so far keep up the good work.

    4
    Server and Client Development Showoff / Re: Evelus
    « on: August 13, 2013, 03:06:03 PM »
    Daily bump. We will be completing the door system today... yay doors.
    Media will be available later today.
    Hope it was by doors.cfg  :rolleyes::P

    5
    General Discussion / Re: The fitness thread
    « on: August 13, 2013, 12:04:00 AM »
    only like 5'5 but technically I'm still only 15/16. 2 years behind, went to docs when I was in 10th grade because I still looked like a 7th grader.


    Im late as fuk so even though im almost 19 Im most likely not done

    What creatine did you take?

    6
    Downloads / Re: Delta++ 2.0 - More content & netty networking
    « on: August 05, 2013, 02:18:36 PM »
    Not bad the Netty implementation looks like stuarts off r-s.  Good job though maybe someone will use.

    7
    i recommand this for every beginner coder 1/10

    I*
    recommend*

    Please learn to spell before you recommend anything to another person.

    9
    there;s a little idea how the screen darkness should be.

    10
    Screen should be a little darker when you enter zammy area.  Nice job though  ;D

    11
    General Discussion / Re: The fitness thread
    « on: September 10, 2012, 09:36:54 PM »
    i'm an ectomorph.


    Just bought CyoGainer though!  54g of protein and 550 calories.  Gonna post before & after results once i'm done with this bottle.
    Worked out upper body last night, and got lazy today.  Going to workout upper body again tomorrow.

    Don't get lazy stay motivated and work other parts of your body this is my schedule.

    Monday: Chest, Shoulders & Triceps
    Tuesday: Back & Biceps
    Wednesday: off
    Thursday: Legs & Abs
    Friday: off
    Saturday: Chest, Shoulders & Triceps
    Sunday: Back & Biceps

    I then switch it next week.

    12
    Good luck boys

    13
    Snippets / Re: Post your code snippets here!
    « on: June 02, 2012, 05:03:16 PM »
    Was bored so I did weight even for Apollo 377

    Code: [Select]
    package org.apollo.game.event.impl;

    import org.apollo.game.event.Event;

    /**
     * An event that sends the players weight w/ items
     * @author ares_
     *
     */
    public class PlayerWeightEvent extends Event {

    /**
    * The players weight
    */
    private final int weight;

    /**
    * The player weight event
    * @param weight The players weight
    */
    PlayerWeightEvent(int weight) {
    this.weight = weight;
    }

    /**
    * The getter for the weight of the player
    * @return the players weight
    */
    public int getWeight() {
    return weight;
    }

    }

    The encoder
    Code: [Select]
    package org.apollo.net.release.r377;

    import org.apollo.game.event.impl.PlayerWeightEvent;
    import org.apollo.net.codec.game.DataType;
    import org.apollo.net.codec.game.GamePacket;
    import org.apollo.net.codec.game.GamePacketBuilder;
    import org.apollo.net.release.EventEncoder;

    /**
     * An {@link EventEncoder} for the {@link PlayerWeightEvent}
     * @author ares_
     *
     */
    public class PlayerWeightEventEncoder extends EventEncoder<PlayerWeightEvent> {

    @Override
    public GamePacket encode(PlayerWeightEvent event) {
    final GamePacketBuilder builder = new GamePacketBuilder(174); // should be the correct packet
    builder.put(DataType.SHORT, event.getWeight());
    return builder.toGamePacket();
    }

    }

    14
    Snippets / Re: Post your code snippets here!
    « on: June 02, 2012, 02:33:56 PM »
    Never did mess with Apollo... The whole plug-in thing discouraged me..

    You don't have to write content using the plug-in system, it was made for an alternative but imo ruby is very easy to learn and it shouldn't take much time to write full skills.

    15
    Snippets / Re: Post your code snippets here!
    « on: June 01, 2012, 11:04:08 PM »
    Weight event for Apollo

    Code: [Select]
    package org.apollo.game.event.impl;

    import org.apollo.game.event.Event;

    /**
     * An event that sends the players weight w/ items
     * @author ares_
     *
     */
    public class PlayerWeightEvent extends Event {

    /**
    * The players weight
    */
    private final int weight;

    /**
    * The player weight event
    * @param weight The players weight
    */
    PlayerWeightEvent(int weight) {
    this.weight = weight;
    }

    /**
    * The getter for the weight of the player
    * @return the players weight
    */
    public int getWeight() {
    return weight;
    }

    }

    The encoder
    Code: [Select]
    package org.apollo.net.release.r317;

    import org.apollo.game.event.impl.PlayerWeightEvent;
    import org.apollo.net.codec.game.DataType;
    import org.apollo.net.codec.game.GamePacket;
    import org.apollo.net.codec.game.GamePacketBuilder;
    import org.apollo.net.release.EventEncoder;

    /**
     * An {@link EventEncoder} for the {@link PlayerWeightEvent}
     * @author ares_
     *
     */
    public class PlayerWeightEventEncoder extends EventEncoder<PlayerWeightEvent> {

    @Override
    public GamePacket encode(PlayerWeightEvent event) {
    final GamePacketBuilder builder = new GamePacketBuilder(240);
    builder.put(DataType.SHORT, event.getWeight());
    return builder.toGamePacket();
    }

    }

    16
    Snippets / Re: Post your code snippets here!
    « on: April 25, 2012, 09:03:52 PM »
    Potion base using Jython:
    Code: [Select]
    from server.util import ScriptManager

    # Potion consuming functions
    # @author Validation

    # Strength Potion (4)
    def itemClick_113(player, itemId, itemSlot):
    addedBonus = player.playerLevel[2] * 10 / 100
      player.getPA().consumePotion(itemId, itemSlot, 2, 3 + addedBonus, 115, True)
     
    # Strength Potion (3)
    def itemClick_115(player, itemId, itemSlot):
    addedBonus = player.playerLevel[2] * 10 / 100
      player.getPA().consumePotion(itemId, itemSlot, 2, 3 + addedBonus, 117, True)
     
    # Strength Potion (2)
    def itemClick_117(player, itemId, itemSlot):
    addedBonus = player.playerLevel[2] * 10 / 100
      player.getPA().consumePotion(itemId, itemSlot, 2, 3 + addedBonus, 119, True)
     
    # Strength Potion (1)
    def itemClick_119(player, itemId, itemSlot):
    addedBonus = player.playerLevel[2] * 10 / 100
      player.getPA().consumePotion(itemId, itemSlot, 2, 3 + addedBonus, 229, True)
     
    # Attack Potion (4)
    def itemClick_2428(player, itemId, itemSlot):
    addedBonus = player.playerLevel[0] * 10 / 100
      player.getPA().consumePotion(itemId, itemSlot, 0, 3 + addedBonus, 121, True)
     
    # Attack Potion (3)
    def itemClick_121(player, itemId, itemSlot):
    addedBonus = player.playerLevel[0] * 10 / 100
      player.getPA().consumePotion(itemId, itemSlot, 0, 3 + addedBonus, 123, True)
     
    # Attack Potion (2)
    def itemClick_123(player, itemId, itemSlot):
    addedBonus = player.playerLevel[0] * 10 / 100
      player.getPA().consumePotion(itemId, itemSlot, 0, 3 + addedBonus, 125, True)
     
    # Attack Potion (1)
    def itemClick_125(player, itemId, itemSlot):
    addedBonus = player.playerLevel[0] * 10 / 100
      player.getPA().consumePotion(itemId, itemSlot, 0, 3 + addedBonus, 229, True)
    are you using apollo?

    Negative, Apollo uses Ruby and that is Python also Apollo would never use getPA.  It's for RiotScape though.

    17
    Snippets / Re: Post your code snippets here!
    « on: April 25, 2012, 07:45:58 PM »
    Potion base using Jython:
    Code: [Select]
    from server.util import ScriptManager

    # Potion consuming functions
    # @author Validation

    # Strength Potion (4)
    def itemClick_113(player, itemId, itemSlot):
    addedBonus = player.playerLevel[2] * 10 / 100
      player.getPA().consumePotion(itemId, itemSlot, 2, 3 + addedBonus, 115, True)
     
    # Strength Potion (3)
    def itemClick_115(player, itemId, itemSlot):
    addedBonus = player.playerLevel[2] * 10 / 100
      player.getPA().consumePotion(itemId, itemSlot, 2, 3 + addedBonus, 117, True)
     
    # Strength Potion (2)
    def itemClick_117(player, itemId, itemSlot):
    addedBonus = player.playerLevel[2] * 10 / 100
      player.getPA().consumePotion(itemId, itemSlot, 2, 3 + addedBonus, 119, True)
     
    # Strength Potion (1)
    def itemClick_119(player, itemId, itemSlot):
    addedBonus = player.playerLevel[2] * 10 / 100
      player.getPA().consumePotion(itemId, itemSlot, 2, 3 + addedBonus, 229, True)
     
    # Attack Potion (4)
    def itemClick_2428(player, itemId, itemSlot):
    addedBonus = player.playerLevel[0] * 10 / 100
      player.getPA().consumePotion(itemId, itemSlot, 0, 3 + addedBonus, 121, True)
     
    # Attack Potion (3)
    def itemClick_121(player, itemId, itemSlot):
    addedBonus = player.playerLevel[0] * 10 / 100
      player.getPA().consumePotion(itemId, itemSlot, 0, 3 + addedBonus, 123, True)
     
    # Attack Potion (2)
    def itemClick_123(player, itemId, itemSlot):
    addedBonus = player.playerLevel[0] * 10 / 100
      player.getPA().consumePotion(itemId, itemSlot, 0, 3 + addedBonus, 125, True)
     
    # Attack Potion (1)
    def itemClick_125(player, itemId, itemSlot):
    addedBonus = player.playerLevel[0] * 10 / 100
      player.getPA().consumePotion(itemId, itemSlot, 0, 3 + addedBonus, 229, True)

    18
    Snippets / Re: Post your code snippets here!
    « on: December 30, 2011, 02:24:27 PM »
    Thought I should try giving Apollo some snippets now so here you go..

    Amulet Stringing:
    Code: [Select]
    require 'java'

    # Amulet stringing plugin pretty simple to add to if you need to
    # TODO: The silver data stuff

    WOOL = 1759

    def find_slot(id)
      amulet_ids = [1673, 1675, 1677, 1679, 1681, 1683, 6579] # The amulet you use on the wool
      for i in 0..amulet_ids.length
        if(amulet_ids[i] == id)
          return i;
        end
      end
      return nil
    end

    def stringamulet(character, item, usedOn, slot)
      finished_product = [1692, 1694, 1696, 1698, 1700, 1702, 6581] # The finished product Id
      level_required = [8, 24, 31, 50, 70, 80, 90] # The level needed for stringing an amulet
      experience_rate = [30, 65, 70, 85, 100, 150, 165] # The experience gained
      skills = character.skill_set
      crafting_level = skills.get_skill(Skill::CRAFTING).maximum_level
      if(crafting_level < level_required[slot])
        character.send_message "You need a crafting level of #{level_required[slot]} to string this amulet"
        return
      end
      character.inventory.remove(item)
      character.inventory.remove(usedOn)
      if character.inventory.add finished_product[slot]
        character.send_message "You attach the wool to the amulet."
        skills.add_experience Skill::CRAFTING, experience_rate[slot]
      end
    end

    on :event, :ItemOnItem do |ctx, player, event|
      itemId = player.inventory.get(event.getItemUsedSlot).id;
      usedId = player.inventory.get(event.getUsedWithSlot).id;
      if find_slot(itemId) != nil && usedId == WOOL
        stringamulet(player, itemId, usedId, find_slot(itemId))
      end
      if itemId == WOOL && find_slot(usedId) != nil
        stringamulet(player, itemId, usedId, find_slot(usedId))
      end
    end

    Battle Staff making:
    Code: [Select]
    require 'java'

    # Credits arrowzftw for gemcrafting outline xD
    # Site: http://runescape.salmoneus.net/tips/battlestaves.html

    BATTLESTAVES = 1391

    def find_slot(id)
      orb_ids = [571, 575, 569, 573] # The orbs you use on the staff
      for i in 0..orb_ids.length
        if(orb_ids[i] == id)
          return i;
        end
      end
      return nil
    end

    def makestave(character, item, usedOn, slot)
      stave_ids = [1395, 1399, 1393, 1397] # Finished product
      level_req = [54, 58, 62, 66] # Level you will need
      exp_rate = [100, 112, 125, 137] # The experience granted per staff
      skills = character.skill_set
      crafting_level = skills.get_skill(Skill::CRAFTING).maximum_level
      if(crafting_level < level_req[slot])
        character.send_message "You need a crafting level of #{level_req[slot]} to create this staff"
        return
      end
      character.inventory.remove(item)
      character.inventory.remove(usedOn)
      if character.inventory.add stave_ids[slot]
        character.send_message "You put the staff together."
        skills.add_experience Skill::CRAFTING, exp_rate[slot]
      end
    end

    on :event, :ItemOnItem do |ctx, player, event|
      itemId = player.inventory.get(event.getItemUsedSlot).id;
      usedId = player.inventory.get(event.getUsedWithSlot).id;
      if find_slot(itemId) != nil && usedId == BATTLESTAVES
        makestave(player, itemId, usedId, find_slot(itemId))
      end
      if itemId == BATTLESTAVES && find_slot(usedId) != nil
        makestave(player, itemId, usedId, find_slot(usedId))
      end
    end

    Heres the plugin xml:
    Code: [Select]
    <?xml version="1.0"?>
    <plugin>
      <id>skill-crafting</id>
      <version>1</version>
      <name>Crafting</name>
      <description>Crafting</description>
      <authors>
        <author>Arrowzftw</author>
        <author>Ares_</author>
      </authors>
      <scripts>
    <script>battlestave.rb</script>
    <script>amuletstringing.rb</script>
      </scripts>
      <dependencies />
    </plugin>

    Also for the folder make it skill-crafting

    19
    Snippets / Re: Post your code snippets here!
    « on: December 26, 2011, 11:59:20 AM »
    Here's my Hyperion Gem Cutting system:

    The main handler:
    Code: [Select]
    package org.hyperion.rs2.content.skills;

    import org.hyperion.rs2.model.Animation;
    import org.hyperion.rs2.model.Item;
    import org.hyperion.rs2.model.Player;
    import org.hyperion.rs2.model.Skills;

    /**
     * The crafting handler
     *
     * @author Ares_
     */
    public class Crafting {

    private static int CHISEL = 1755;

    public static void executeCut(Player player, int itemUsed, int usedWith) {
    int itemId = itemUsed != CHISEL ? itemUsed : usedWith;
    final Item item = new Item(itemId, 1);
    if(GemData.forId(itemId) == null) {
    return;
    }
    if(player.getSkills().getLevelForExperience(Skills.CRAFTING) < GemData.forId(itemId).getLevelRequired()) {
    player.getActionSender().sendMessage("You need a Crafting level of " + GemData.forId(itemId).getLevelRequired() + " to cut this gem.");
    return;
    }
    if(itemUsed == CHISEL && usedWith == GemData.forId(itemId).getUnCut() || usedWith == CHISEL && itemUsed == GemData.forId(itemId).getUnCut()) {
    player.playAnimation(Animation.create(GemData.forId(itemId).getAnimation()));
    player.getInventory().remove(new Item(GemData.forId(itemId).getUnCut(), 1));
    player.getInventory().add(new Item(GemData.forId(itemId).getReward(), 1));
    player.getSkills().addExperience(12, GemData.forId(itemId).experience());
    player.getActionSender().sendMessage("You cut the " + item.getDefinition().getName().toLowerCase() + ".");
    }
    }
    }

    The gem data class:
    Code: [Select]
    package org.hyperion.rs2.content.skills;

    import java.util.HashMap;
    import java.util.Map;

    /**
     * An enum that handles the gem data
     *
     * @author Ares_
     */
    public enum GemData {

    SAPPHIRE(1623, 1607, 20, 888, 50.0),
    EMERALD(1621, 1605, 27, 889, 67.0),
    RUBY(1619, 1603, 34, 887, 85.0),
    DIAMOND(1617, 1601, 43, 886, 107.5),
    DRAGONSTONE(1631, 1615, 55, 885, 137.5),
    ONYX(6571, 6573, 67, 885, 168)
    ;

    private static Map<Integer, GemData> gems = new HashMap<Integer, GemData>();

    public static GemData forId(int item) { return gems.get(item); }

    static {
    for (GemData gem : GemData.values()) {
    gems.put(gem.uncut, gem);
    }
    }

    GemData(int uncut, int reward, int levelRequired, int animation, double experience) {
    this.uncut = uncut;
    this.reward = reward;
    this.levelRequired = levelRequired;
    this.animation = animation;
    this.experience = experience;
    }

    /**
    * The uncut id
    */
    private int uncut;

    /**
    * The reward <cut gem>
    */
    private int reward;

    /**
    * The level you need
    */
    private int levelRequired;

    /**
    * The experience granted
    */
    private double experience;

    /**
    * The animation you do
    */
    private int animation;

    /**
    * Gets the uncut id
    *
    * @return
    *  the uncut id
    */
    public int getUnCut() {
    return uncut;
    }

    /**
    * The rewarded cut gem
    *
    * @return
    *  the gem thats cut
    */
    public int getReward() {
    return reward;
    }

    /**
    * The animation id
    *
    * @return
    *  the animation
    */
    public int getAnimation() {
    return animation;
    }

    /**
    * The level required
    *
    * @return
    *  the level you need
    */
    public int getLevelRequired() {
    return levelRequired;
    }

    /**
    * The experience gained
    *
    * @return
    *  the experience
    */
    public double experience() {
    return experience;
    }
    }

    20
    Snippets / Re: Post your code snippets here!
    « on: December 24, 2011, 12:17:17 PM »
    Here's my system for arrow making and dart making for Hyperion easily can be converted to other sources do it yourself though. Would like some feed back :o

    The Main class:
    Code: [Select]
    package org.hyperion.rs2.content.skills;

    import org.hyperion.rs2.model.Item;
    import org.hyperion.rs2.model.Player;
    import org.hyperion.rs2.model.Skills;

    /**
     * Handles all the fletching methods
     *
     * @author Ares_
     */
    public class Fletching {

    private static final int ARROW = 53;
    private static final int DART = 7684;

    public static void executeAction(Player player, int itemUsed, int usedWith) {
    int itemId = itemUsed != ARROW ? itemUsed : usedWith;
    if(ArrowTip.forId(itemId) == null) {
    return;
    }
    if(player.getSkills().getLevelForExperience(Skills.FLETCHING) < ArrowTip.forId(itemId).getLevelRequired()) {
    player.getActionSender().sendMessage("You need a Fletching level of " + ArrowTip.forId(itemId).getLevelRequired() + " to make these arrows.");
    return;
    }
    int lowestAmount = player.getInventory().getCount(53) < player.getInventory().getCount(ArrowTip.forId(itemId).getId()) ? player.getInventory().getCount(53) : player.getInventory().getCount(ArrowTip.forId(itemId).getId());
    if(itemUsed == ARROW && usedWith == ArrowTip.forId(itemId).getId() || usedWith == ARROW && itemUsed == ArrowTip.forId(itemId).getId()) {
    player.getInventory().remove(new Item(ARROW, lowestAmount));
    player.getInventory().remove(new Item(ArrowTip.forId(itemId).getId(), lowestAmount));
    player.getInventory().add(new Item(ArrowTip.forId(itemId).getReward(), lowestAmount));
    player.getSkills().addExperience(9, ArrowTip.forId(itemId).getExperience());
    player.getActionSender().sendMessage("You attach the arrow tips to the headless arrows.");
    }
    }

    public static void executeDart(Player player, int itemUsed, int usedWith) {
    int itemId = itemUsed != DART ? itemUsed : usedWith;
    if(DartMaking.forId(itemId) == null) {
    return;
    }
    if(player.getSkills().getLevelForExperience(Skills.FLETCHING) < DartMaking.forId(itemId).getLevelRequired()) {
    player.getActionSender().sendMessage("You need a Fletching level of " + DartMaking.forId(itemId).getLevelRequired() + " to make these darts.");
    return;
    }
    if(itemUsed == DART && usedWith == DartMaking.forId(itemId).getId() || usedWith == DART && itemUsed == DartMaking.forId(itemId).getId()) {
    player.getInventory().remove(new Item(DART, 10));
    player.getInventory().remove(new Item(DartMaking.forId(itemId).getId(), 10));
    player.getInventory().add(new Item(DartMaking.forId(itemId).getReward(), 10));
    player.getSkills().addExperience(9, DartMaking.forId(itemId).getExperience());
    player.getActionSender().sendMessage("You attach the dart tips to the dart body.");
    }
    }
    }

    Arrow making class
    Code: [Select]
    package org.hyperion.rs2.content.skills;

    import java.util.HashMap;
    import java.util.Map;

    /**
     * Handles the data for making arrows
     *
     * @author Ares_
     */
    public enum ArrowTip {
    BRONZE(39, 882, 1, 2.6),

    IRON(40, 884, 15, 3.8),

    STEEL(41, 886, 30, 6.3),

    MITHRIL(42, 888, 45, 8.8),

    ADAMANT(43, 890, 60, 11.3),

    RUNE(44, 892, 75, 13.8)
    ;

    private static Map<Integer, ArrowTip> arrowtips = new HashMap<Integer, ArrowTip>();

    public static ArrowTip forId(int item) { return arrowtips.get(item); }

    static {
    for (ArrowTip arrowtip : ArrowTip.values()) {
    arrowtips.put(arrowtip.id, arrowtip);
    }
    }

    private ArrowTip(int id, int reward, int levelRequired, double experience) {
    this.id = id;
    this.reward = reward;
    this.levelRequired = levelRequired;
    this.experience = experience;
    }

    private int id;

    private int reward;

    private int levelRequired;

    private double experience;

    public int getId() {
    return id;
    }

    public int getReward() {
    return reward;
    }

    public int getLevelRequired() {
    return levelRequired;
    }

    public double getExperience() {
    return experience;
    }
    }

    Dart making class:
    Code: [Select]
    package org.hyperion.rs2.content.skills;

    import java.util.HashMap;
    import java.util.Map;

    /**
     * Handles all the dart data
     *
     * @author Ares_
     */
    public enum DartMaking {
    BRONZE(819, 806, 1, 2.6),

    IRON(820, 807, 15, 3.8),

    STEEL(821, 808, 30, 6.3),

    MITHRIL(822, 809, 45, 8.8),

    ADAMANT(823, 810, 60, 11.3),

    RUNE(824, 811, 75, 13.8)
    ;

    /**
    * DART TIPS:
    *
    * Bronze Tip: 819 Final: 806
    * Iron Tip: 820 Final: 807
    * Steel tip: 821 Final: 808
    * Mith Tip: 822 Final: 809
    * Addy Tip: 823 Final: 810
    * Rune Tip: 824 Final: 811
    */

    private static Map<Integer, DartMaking> darttips = new HashMap<Integer, DartMaking>();

    public static DartMaking forId(int item) { return darttips.get(item); }

    static {
    for (DartMaking dartTips : DartMaking.values()) {
    darttips.put(dartTips.id, dartTips);
    }
    }

    DartMaking(int id, int reward, int levelRequired, double experience) {
    this.id = id;
    this.reward = reward;
    this.levelRequired = levelRequired;
    this.experience = experience;
    }

    private int id;

    private int reward;

    private int levelRequired;

    private double experience;

    public int getId() {
    return id;
    }

    public int getReward() {
    return reward;
    }

    public int getLevelRequired() {
    return levelRequired;
    }

    public double getExperience() {
    return experience;
    }
    }

    Will add bow making later when i'm not so lazy.

    Pages: [1] 2
    Copyright © 2017 MoparScape. All rights reserved.
    Powered by SMFPacks SEO Pro Mod |
    SimplePortal 2.3.5 © 2008-2012, SimplePortal