12-03-2012, 02:41 PM
Хоть топикстартера и убрали, но всеже:
gameserver.skill.task.GatheringTask.java
gameserver.skill.task.GatheringTask.java
Код:
@Override
protected boolean onSuccessFinish()
{
PacketSendUtility.sendPacket(requestor, new SM_GATHER_UPDATE(template, material, currentSuccessValue, currentFailureValue, 2));
PacketSendUtility.sendPacket(requestor, new SM_GATHER_UPDATE(template, material, currentSuccessValue, currentFailureValue, 6));
PacketSendUtility.broadcastPacket(requestor, new SM_GATHER_STATUS(requestor.getObjectId(), responder.getObjectId(), 2), true);
PacketSendUtility.sendPacket(requestor,SM_SYSTEM_MESSAGE.EXTRACT_GATHER_SUCCESS_1_BASIC(new DescriptionId(material.getNameid())));
ItemService.addItem(requestor, material.getItemid(), [B][color=Red][size=4]1[/size][/color][/B]);
((Gatherable)responder).getController().rewardPlayer(requestor);
return true;
}