root/trunk/AE-go_GameServer/src/com/aionemu/gameserver/network/aion/clientpackets/CM_FUSION_WEAPONS.java
Author: Sarynth
File Size: 1.58 KB
(July 02, 2010 20:35 UTC) Almost 2 years ago
[trunk] Merged 1.9 branch to trunk. 1.5.1.10-final tag available to remain on version 1.5
/**
* This file is part of aion-unique <aion-unique.smfnew.com>.
*
* aion-unique is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* aion-unique is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aion-unique. If not, see <http://www.gnu.org/licenses/>.
*/
package com.aionemu.gameserver.network.aion.clientpackets;
import com.aionemu.gameserver.network.aion.AionClientPacket;
import com.aionemu.gameserver.services.ArmsfusionService;
/**
*
* @author zdead
*
*/
public class CM_FUSION_WEAPONS extends AionClientPacket
{
public CM_FUSION_WEAPONS(int opcode)
{
super(opcode);
}
private int firstItemId;
private int secondItemId;
private int price;
/**
* {@inheritDoc}
*/
@Override
protected void readImpl()
{
readD();
firstItemId = readD();
secondItemId = readD();
/*
* Temporary: fusion price fixed to 50000 kinah
* TODO: find price value
*/
price = 50000;
}
/**
* {@inheritDoc}
*/
@Override
protected void runImpl()
{
ArmsfusionService.fusionWeapons(getConnection().getActivePlayer(), firstItemId, secondItemId, price);
}
} |