Jump to content

Search the Community

Showing results for tags 'burying'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 6 results

  1. Hash

    Bones burying

    This snippet is for rs2hd, it takes 2 seconds to convert to RuneEscape or another source. Here it is: Create a class in src.com.rs2hd.content, named BonesBurying. Once done, paste this in it: [code]package com.thematics.server.content; import com.rs2hd.model.Item; import com.rs2hd.model.Player; import com.rs2hd.event.Event; import com.rs2hd.model.World; public class BonesBurying { private static Bones getBone(int id) { for (Bones bone : Bones.values()) if (id == bone.getBoneId()) return bone; return null; } public static enum Bones { REGULAR_BONES(526, 100), BURNT_BONES(528, 100), WOLF_BONES(2859, 100), MONKEY_BONES(3183, 125), BAT_BONES(530, 125), BIG_BONES(532, 125), JOGRE_BONES(3125, 200), ZOGRE_BONES(4812, 250), SHAIKAHAN_BONES(3123, 300), BABY_DRAGON_BONES(534, 350), WYVERN_BONES(6812, 400), DRAGON_BONES(536, 500), FAYRG_BONES(4830, 525), RAURG_BONES(4832, 550), DAGANNOTH_BONES(6729, 650), OURG_BONES(4834, 750), FROST_DRAGON_BONES(18830, 850); private int boneId; private double experience; private Bones(int boneId, double experience) { this.boneId = boneId; this.experience = experience; } public int getBoneId() { return boneId; } public double getBoneExperience() { return experience; } public void bury(final Player player, int slot) { Item item = player.getInventory().getContainer().get(slot); final String def = item.getDefinition().getName(); final Bones bone = getBone(item.getId()); if (player.getBuryDelay() > System.currentTimeMillis()) return; player.addBuryDelay(3000); player.animate(827); player.getActionSender().sendMessage("You dig a hole in the ground..."); World.getWorld().registerEvent(new Event(2000) { public void execute() { player.getActionSender().sendMessage("You bury the " + def.toLowerCase() + "."); player.getInventory().deleteItem(bone.getBoneId(), 1); player.getSkills().addXp(5, bone.getBoneExperience()); this.stop(); } }); } } } [/code] In Player.java, add [code] public void addBuryDelay(long time) { foodDelay = time + System.currentTimeMillis(); } public long getBuryDelay() { return foodDelay; }[/code] Add this in the variables at the top of the class. [code]private transient long foodDelay; [/code] In ItemPacketHandler.java, find [code]private void itemSelect(final Player player, final Packet packet) {[/code] and under [code]if (interfaceId == 149) {[/code] add [code]for(Bones bone : Bones.values()) { if(bone != null && id == bone.getBoneId()) bone.bury(player, slot); }[/code] and import this [code]import com.rs2hd.content.BonesBurying.Bones;[/code] If you have any problems with this or questions, feel free to ask! :D
  2. GlazyHD

    Bone Burying Help

    Hey! I am currently using the RSCalifornia source. There is a problem with the bone burying. You can bury a bone drop it and pick it back up and still get XP. So you only need 1 bone to get 99. Can anyone help me with this?
  3. ok i know this is easy to to do but some people might not have done it so today im going to show you how to fix bone burying. atm you may notice it dosent bury anything that is because the method isn't been used lol!. first go into com.rs.game.player.content.Burying scroll all the way to the bottom and after the last bracket add this [CODE] public static boolean bury(final Player player, int slotId) { final Item item = player.getInventory().getItem(slotId); if (item == null || Bone.forId(item.getId()) == null) return false; if (player.getBoneDelay() > Utils.currentTimeMillis()) return true; final Bone bone = Bone.forId(item.getId()); final ItemDefinitions itemDef = new ItemDefinitions(item.getId()); player.addBoneDelay(3000); player.getPackets().sendSound(2738, 0, 1); player.setNextAnimation(new Animation(827)); player.getPackets().sendGameMessage( "You dig a hole in the ground..."); WorldTasksManager.schedule(new WorldTask() { @Override public void run() { player.getPackets().sendGameMessage( "You bury the " + itemDef.getName().toLowerCase()); player.getInventory().deleteItem(item.getId(), 1); player.getSkills().addXp(Skills.PRAYER, bone.getExperience()); stop(); } }, 2); return false; } [/CODE] all that is is the fixed method now you want to go into com.rs.net.decoders.handlers.inventoryoptionshandler and replace [CODE] import import com.rs.game.player.content.Burying.Bone; [/CODE] with [CODE] import com.rs.game.player.content.Burying; [/CODE] then under [CODE] if (Foods.eat(player, item, slotId)) return; [/CODE] add [CODE] if (Burying.bury(player, slotId)) return; [/CODE] then boom you have done it make sure to compile and yeah thats it post any errors you get and ill try to help fix :)
  4. Hi I am currently working on a 639 source (yes dementhium, but i like the layout of the source i got and its easy enough to use) I just have one small issue. Ourg bones won't bury or give exp. Originally when i did some digging in the source i found a burying java file and in it was declared several types of bones with item ids and xp rates so thinking it would be a simple fix i went in and added the ourg bones to the list of declarations. Unfortunately this didnt change a thing, Ourg bones still were unable to be buried. I was wondering if anyone had a better understanding of the burying system and could know why this isnt working. I am also on the hun to find a 667/704 source and client so if anyone knows where i may be able to find a download for these that would be amazing. Thank You.
  5. This is just simple Bone Burying for RuneEscape. [CODE]package com.rs.game.player.content; import com.rs.game.Animation; import com.rs.game.item.Item; import com.rs.game.player.Player; import com.rs.game.tasks.WorldTask; import com.rs.game.tasks.WorldTasksManager; /** * @author Halo` <RuneUnited> */ public class Bones { public static enum Bone { WOLF_BONE("Wolf Bones", 2859, 4.4), BONE("Bones", 526, 4.5), MONKEY_BONE( "Monkey Bones", 3179, 5), BURNT_BONE("Burnt Bones", 528, 5), BAT_BONE( "Bat Bones", 530, 5.25), BIG_BONE("Big Bones", 532, 15), ZOYRGE_BONE( "Zogre Bones", 4812, 22.5), DRAGON_BONE("Dragon Bones", 534, 72), DAGANORTH_BONE( "Dagganoth Bones", 6155, 125), OURG_BONE("Ourg Bones", 4834, 140), ANCIENT_BONE("Ancient Bones", 15410, 200), FROST_BONE( "Frost Bones", 18830, 180); private int boneID; private double xp; private String name; private Bone(String name, int boneID, double xp) { this.boneID = boneID; this.name = name; this.xp = xp; } public double getXp() { return xp; } public int getID() { return boneID; } public String getName() { return name; } } private static Bone getBone(int boneID) { for (Bone b : Bone.values()) { if (boneID == b.boneID) { return b; } } return null; } public static boolean bury(final Player player, Item item, int slot) { final Bone b = getBone(item.getId()); player.getPackets().sendGameMessage("You dig a hole in the ground..."); WorldTasksManager.schedule(new WorldTask() { @Override public void run() { player.getPackets().sendGameMessage( "...and you bury the " + b.getName() + "."); player.setNextAnimation(new Animation(827)); player.getPackets().sendSound(2738, 0); player.getInventory().deleteItem(b.getID(), 1); player.getSkills().addXp(5, b.getXp()); stop(); } }, 2); return true; } }[/CODE] This didn't take me very long but to use it add this is ItemOption1 of your "InventoryPacketHandler" or "WorldPacketsDecoder": [CODE]if (Bones.bury(player, item, slotId)) return;[/CODE]
  6. Here's my bone burying for my Hyperion shouldn't be to hard to convert to other bases or finish. [CODE] package org.lucas.rs2.content.skills; import java.util.HashMap; import java.util.Map; /** * Handles all the bone data * <Item ID, Experience> * * @version 1.0 * * @author Vulcan <Lucas> */ public enum BoneEnum { /** * The normal bone */ NORMAL(526, 100), ; /** * The bone ID */ private int boneId; /** * The experience variable */ private double experience; /** * Maps the bone data */ private static Map<Integer, BoneEnum> bones = new HashMap<Integer, BoneEnum>(); /** * Gets the bone by objectId * * @param object * the objectID * * @return * The bone */ public static BoneEnum forId(int object) { return bones.get(object); } /** * Populates the bone map */ static { for (final BoneEnum bone : BoneEnum.values()) { bones.put(bone.boneId, bone); } } /** * Represents the bone being buried * * @param boneId * The bone id * * @param experience * The experience gained */ BoneEnum(int boneId, int experience) { this.boneId = boneId; this.experience = experience; } /** * Gets the bone ID * * @return * The bone ID */ public int getBoneId() { return boneId; } /** * Gets the experience gained * * @return * the experience gained */ public double getExperience() { return experience; } }[/CODE]
×