Alchemy transmutation support.

Need to implement transmute skills.
I have added skill 17928 as example.
This commit is contained in:
MobiusDev
2015-05-18 01:56:28 +00:00
parent ddc3ef9037
commit 6a2082a86f
10 changed files with 505 additions and 3 deletions

View File

@@ -0,0 +1,42 @@
/*
* Copyright (C) 2004-2015 L2J Server
*
* This file is part of L2J Server.
*
* L2J Server 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.
*
* L2J Server 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 this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jserver.gameserver.network.serverpackets;
/**
* @author GenCloud
*/
public class ExAlchemyConversion extends L2GameServerPacket
{
private final int _itemCount;
private final int _failCount;
public ExAlchemyConversion(int _resultItemCount, int failCount)
{
_itemCount = _resultItemCount;
_failCount = failCount;
}
@Override
protected void writeImpl()
{
writeC(0x00); // Unk
writeD(_itemCount);
writeD(_failCount);
}
}

View File

@@ -0,0 +1,47 @@
/*
* Copyright (C) 2004-2015 L2J Server
*
* This file is part of L2J Server.
*
* L2J Server 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.
*
* L2J Server 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 this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.l2jserver.gameserver.network.serverpackets;
/**
* @author GenCloud
*/
public class ExTryMixCube extends L2GameServerPacket
{
private final int _stoneID;
private final long _count;
@SuppressWarnings("unused")
private final int _typePacket;
public ExTryMixCube(long count, int stoneId, int type)
{
_count = count;
_typePacket = type;
_stoneID = stoneId;
}
@Override
protected void writeImpl()
{
writeC(0x00); // Unk
writeC(0x01); // Type
writeD(0x00); // Unk
writeD(_stoneID); // StoneID
writeQ(_count); // Count
}
}