Originally Posted by
jmfindorff
There is a problem when it comes to at least the sheep shearer quest where:
1. The shears don't spawn on the table in Fred the Farmers house like normal, though this problem is alleviated easily since the shears are sold in the general store, for nothing oddly enough
2. The main problem is that shearing sheep doesn't give me wool and most of the time it says that the npc has already been transformed
I can try and fix this problem myself, but I am no where near proficient enough yet in the java programming language to do so at this time. So if anyone can help or at least point me in the right direction, that would be appreciated.
I have already applied both of the item related fixes so I'm not sure if this is involves something else or what.
Make use of this method I wrote:
Code:
public void shearSheep(Player player, int itemNeeded, int itemGiven, int animation, final int currentId, final int newId, int transformTime) {
if (!player.getItemAssistant().playerHasItem(itemNeeded)) {
player.getActionSender().sendMessage("You need " + ItemAssistant.getItemName(itemNeeded).toLowerCase() + " to do that.");
return;
}
if (transformId == newId) {
player.getActionSender().sendMessage("This sheep has already been shorn.");
return;
}
if (animation > 0) {
player.startAnimation(animation);
}
requestTransform(newId);
player.getItemAssistant().addItem(itemGiven, 1);
player.getActionSender().sendMessage("You get some " + ItemAssistant.getItemName(itemGiven).toLowerCase() + ".");
CycleEventHandler.getSingleton().addEvent(player, new CycleEvent() {
@Override
public void execute(CycleEventContainer container) {
requestTransform(currentId);
container.stop();
}
@Override
public void stop() {
}
}, transformTime);
}
from there its common sense
----
Originally Posted by
fun in the sun
does anyone know how to fix the npcs from not droping 3 of each item like lets say it drops bones it drops 3 bones. I checked npcdrop.java and the npchandler and it is coded as 1 but still drops 3 for any drop and everytime i drop a item i can pick it up and 3 times
This isn't an issue I have ever experienced, try re downloading server and re applying fixes.