it does remove the drop, the continue; makes the item not drop, so if the name contains 'bones' then it will continue out of the method, have you added the snippet properly?
Do you get the XP?
|
Hello there, i added bonecrusher from this tutorial: http://www.rune-server.org/runescape...necrusher.html
But the problem what all players still get is , how to remove the Bone drops?
yes i get the xp.
getting this error if i add the continue;
Red is for bonecrusherCode:public void sendDrop(Player player, Drop drop) { int size = getSize(); String dropName = ItemDefinitions.getItemDefinitions(drop.getItemId()) .getName().toLowerCase(); Item item = ItemDefinitions.getItemDefinitions(drop.getItemId()).isStackable() ? new Item(drop.getItemId(), (drop.getMinAmount() * Settings.DROP_RATE) + Utils.getRandom(drop.getExtraAmount() *Settings.DROP_RATE)) : new Item(drop.getItemId(), drop.getMinAmount() + Utils.getRandom(drop.getExtraAmount())); World.addGroundItem(item, new WorldTile(getCoordFaceX(size), getCoordFaceY(size), getPlane()), player, false, 180, true); if (dropName.contains("pernix") || dropName.contains("torva") || dropName.contains("virtus") || dropName.contains("bandos") || dropName.contains("armadyl") || dropName.contains("steadfast boots") || dropName.contains("ragefire boots") || dropName.contains("glaiven boots") ) { World.sendWorldMessage("<col=FF9933><img=8>News: " + Utils.formatPlayerNameForDisplay(player.getUsername()) + " has received a " + dropName + " drop!", false); } if(player.getInventory().containsItem(18337, 1) && dropName.contains("bones")) { player.getSkills().addXp(Skills.PRAYER, Burying.Bone.forId(drop.getItemId()).getExperience()); continue; }
You didnt follow the snippet lol, its the drop method not sendDrop method
put it in the drop method
this one:
public void drop() {
and then add:
underCode:Item item = ItemDefinitions.getItemDefinitions(drop.getItemId()) .isStackable() ? new Item(drop.getItemId(), (drop.getMinAmount() * Settings.DROP_RATE) + Utils.getRandom(drop.getExtraAmount() * Settings.DROP_RATE)) : new Item( drop.getItemId(), drop.getMinAmount() + Utils.getRandom(drop.getExtraAmount())); if(killer.getInventory().containsItem(18337, 1) && item.getDefinitions().getName().toLowerCase().contains("bones")) { killer.getSkills().addXp(Skills.PRAYER, Burying.Bone.forId(drop.getItemId()).getExperience()); continue; }
Drop[] possibleDrops = new Drop[drops.length];
int possibleDropsCount = 0;
for (Drop drop : drops) {
getting much errors, add me skype and help me via teamview quick? skype: fatality20122
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |