Jump to content
Sign in to follow this  
hoodlink

667/704 fixed bone burying

Recommended Posts

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 :)

Share this post


Link to post
Share on other sites
Thanks i needed this, works
Great

Share this post


Link to post
Share on other sites
You can still drop the bone right after clicking it, keep the bone, and still get xp.
Just sayin'

Share this post


Link to post
Share on other sites
[QUOTE]starting...
src\com\rs\net\decoders\handlers\InventoryOptionsHandler.java:108: error: cannot
find symbol
if (Burying.bury(player, slotId))
^
symbol: method bury(Player,int)
location: class Burying
src\com\rs\net\decoders\handlers\InventoryOptionsHandler.java:143: error: cannot
find symbol
Bone bone = Bone.forId(itemId);
^
symbol: class Bone
location: class InventoryOptionsHandler
src\com\rs\net\decoders\handlers\InventoryOptionsHandler.java:143: error: cannot
find symbol
Bone bone = Bone.forId(itemId);
^
symbol: variable Bone
location: class InventoryOptionsHandler
src\com\rs\net\decoders\handlers\InventoryOptionsHandler.java:145: error: cannot
find symbol
Bone.bury(player, slotId);
^
symbol: variable Bone
location: class InventoryOptionsHandler
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
Press any key to continue . . .
[/QUOTE]

What have I done wrong.....? Edited by AvolitionScape

Share this post


Link to post
Share on other sites
Sign in to follow this  

×