Jump to content

[Share][Christmas Gift]Portable Augment


Emrys

Recommended Posts

Forget to tell that : In Ct2 + Chronicles you should go on etcitems table and put where is the lifestone ID, in the Handler box the "PortableAug" :D

Link to comment
Share on other sites

TheEnd

 

This is way...

 

/*
* This program 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.
* 
* This program 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 handlers.itemhandlers;

import net.sf.l2j.gameserver.handler.IItemHandler;
import net.sf.l2j.gameserver.model.L2ItemInstance;
import net.sf.l2j.gameserver.model.actor.L2Playable;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.network.SystemMessageId;
import net.sf.l2j.gameserver.network.serverpackets.ExShowVariationMakeWindow;
import net.sf.l2j.gameserver.network.serverpackets.SystemMessage;

public class Augmention implements IItemHandler
{

public void useItem(L2Playable playable, L2ItemInstance item)
{
	if (!(playable instanceof L2PcInstance))
		return;

	L2PcInstance activeChar = (L2PcInstance) playable;

	int itemId = item.getItemId();
	if (itemId == 9576)
	{ 
		activeChar.sendPacket(new SystemMessage(SystemMessageId.SELECT_THE_ITEM_TO_BE_AUGMENTED));
		activeChar.sendPacket(new ExShowVariationMakeWindow());
		activeChar.destroyItem("BOOM", item.getObjectId(), 1, null, true);
	}
	else
	{ 
		activeChar.sendMessage("BOOM, Something Worg, hahaha nab!");
	}
}
}

 

For Gracia Final, Item ID = TOP LS 80 .... when press item , ls deleted ...

 

dont forget to go in DB in "etcitem" and go on TOP LS and in "handlers" = handlername

 

because if dont doo it will not work item..

Link to comment
Share on other sites

TheEnd

 

This is way...

 

/*
* This program 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.
* 
* This program 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 handlers.itemhandlers;

import net.sf.l2j.gameserver.handler.IItemHandler;
import net.sf.l2j.gameserver.model.L2ItemInstance;
import net.sf.l2j.gameserver.model.actor.L2Playable;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.network.SystemMessageId;
import net.sf.l2j.gameserver.network.serverpackets.ExShowVariationMakeWindow;
import net.sf.l2j.gameserver.network.serverpackets.SystemMessage;

public class Augmention implements IItemHandler
{

public void useItem(L2Playable playable, L2ItemInstance item)
{
	if (!(playable instanceof L2PcInstance))
		return;

	L2PcInstance activeChar = (L2PcInstance) playable;

	int itemId = item.getItemId();
	if (itemId == 9576)
	{ 
		activeChar.sendPacket(new SystemMessage(SystemMessageId.SELECT_THE_ITEM_TO_BE_AUGMENTED));
		activeChar.sendPacket(new ExShowVariationMakeWindow());
		activeChar.destroyItem("BOOM", item.getObjectId(), 1, null, true);
	}
	else
	{ 
		activeChar.sendMessage("BOOM, Something Worg, hahaha nab!");
	}
}
}

 

For Gracia Final, Item ID = TOP LS 80 .... when press item , ls deleted ...

 

dont forget to go in DB in "etcitem" and go on TOP LS and in "handlers" = handlername

 

because if dont doo it will not work item..

FAIL FAIL FAIL FAIL FAIL FAIL FAIL!!!!!!!!!

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...