root/branches/1.9/src/com/aionemu/gameserver/skillengine/task/GatheringTask.java

23252404
16
 */
16
 */
17
package com.aionemu.gameserver.skillengine.task;
17
package com.aionemu.gameserver.skillengine.task;
18
18
19
import com.aionemu.gameserver.dataholders.DataManager;
20
import com.aionemu.gameserver.model.DescriptionId;
19
import com.aionemu.gameserver.model.gameobjects.Gatherable;
21
import com.aionemu.gameserver.model.gameobjects.Gatherable;
20
import com.aionemu.gameserver.model.gameobjects.player.Player;
22
import com.aionemu.gameserver.model.gameobjects.player.Player;
21
import com.aionemu.gameserver.model.templates.GatherableTemplate;
23
import com.aionemu.gameserver.model.templates.GatherableTemplate;
...
...
87
		PacketSendUtility.sendPacket(requestor, new SM_GATHER_UPDATE(template, material, currentSuccessValue, currentFailureValue, 2));					
89
		PacketSendUtility.sendPacket(requestor, new SM_GATHER_UPDATE(template, material, currentSuccessValue, currentFailureValue, 2));					
88
		PacketSendUtility.sendPacket(requestor, new SM_GATHER_UPDATE(template, material, currentSuccessValue, currentFailureValue, 6));
90
		PacketSendUtility.sendPacket(requestor, new SM_GATHER_UPDATE(template, material, currentSuccessValue, currentFailureValue, 6));
89
		PacketSendUtility.broadcastPacket(requestor, new SM_GATHER_STATUS(requestor.getObjectId(), responder.getObjectId(), 2), true);
91
		PacketSendUtility.broadcastPacket(requestor, new SM_GATHER_STATUS(requestor.getObjectId(), responder.getObjectId(), 2), true);
90
		PacketSendUtility.sendPacket(requestor,SM_SYSTEM_MESSAGE.Gather_Success(Integer.toString(60)));
92
		PacketSendUtility.sendPacket(requestor,SM_SYSTEM_MESSAGE.EXTRACT_GATHER_SUCCESS_1_BASIC(new DescriptionId(material.getNameid())));
91
		ItemService.addItem(requestor, material.getItemid(), 1);
93
		ItemService.addItem(requestor, material.getItemid(), 1);
92
		((Gatherable)responder).getController().rewardPlayer(requestor);		
94
		((Gatherable)responder).getController().rewardPlayer(requestor);		
93
	}
95
	}