root/trunk/AE-go_GameServer/src/com/aionemu/gameserver/skillengine/task/GatheringTask.java

23252440
16
 */
16
 */
17
package com.aionemu.gameserver.skillengine.task;
17
package com.aionemu.gameserver.skillengine.task;
18
18
19
import com.aionemu.gameserver.model.DescriptionId;
19
import com.aionemu.gameserver.model.gameobjects.Gatherable;
20
import com.aionemu.gameserver.model.gameobjects.Gatherable;
20
import com.aionemu.gameserver.model.gameobjects.player.Player;
21
import com.aionemu.gameserver.model.gameobjects.player.Player;
21
import com.aionemu.gameserver.model.templates.GatherableTemplate;
22
import com.aionemu.gameserver.model.templates.GatherableTemplate;
...
...
87
		PacketSendUtility.sendPacket(requestor, new SM_GATHER_UPDATE(template, material, currentSuccessValue, currentFailureValue, 2));					
88
		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));
89
		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);
90
		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)));
91
		PacketSendUtility.sendPacket(requestor,SM_SYSTEM_MESSAGE.EXTRACT_GATHER_SUCCESS_1_BASIC(new DescriptionId(material.getNameid())));
91
		ItemService.addItem(requestor, material.getItemid(), 1);
92
		ItemService.addItem(requestor, material.getItemid(), 1);
92
		((Gatherable)responder).getController().rewardPlayer(requestor);		
93
		((Gatherable)responder).getController().rewardPlayer(requestor);		
93
	}
94
	}