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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • Dear friends, September 24 at 19:00 (UTC +3) will be available access for our test server. UTC+3 - exact time now - Time.is During beta test will be available OBT Manager (NPC Eva) in Giran with all necessary items for test. We run 7signs in 1h cycle and Oly 24/7 Server setup on Beta same, like will be on server start On Beta will be restrictions for skill enchant lvl: 15 max for 2nd profession, 7 for 3rd profession Talent Tree avaible only Tier 1 (Same like will be on first Olympiad cycle on live server) We strongly recommend visiting beta. Check the concept of the server before it start. View the NPC Buffer, Shop, Services. We will be shutting down the public test server on September 23! So as not to mislead new players on Dex, whitch one is beta for seasonal server. After the season server opens, the Public Test Server will be available again. - Olympiad EVENT ON BETA TEST   GiveAway on Beta! On Beta launch day, we make 7 giveaways From 19:00 till 02:00. Each hour, new giveaway with 5 winer places. Each hour you need make new registartion if you want participate. To participate on Giveaway you need speak with NPC Ahuron in Giran Town and make registartion. On 20:00, 21:00, 22:00, 23:00, 00:00, 01:00 and 02:00 Ahuron will announce Winers! And palyers recive special item. If you will be offline on this momment, you will not get prize! Winers will recive on same account (on first character) scrolls for 7days Premium status on server start! You can activate this scroll on any time, its will give you 7 days Premium, or if you already have Premium it will add 7 days to it. Also, all who visit Beta and will be online at less 1 hour, will get small gift on server start. Pack with useful potions that for sure help you on start. We need this, to be sure you prepear you game client and ready to start    How to Connect on Beta! For participation in our Open Beta you can use your old Master Accounts(web account). But you need to create new Game Account fore NEW Interlude x25 server on your Control Panel. If you don't play in our project before - register new Master Account Download links: Updater Full Game Client (torrent) Full Game Client (direct link)   If you download Full Game Client - just unzip it, run updater choose NEW server, click on Full Check, than after update - click Start. if you already have our game client - Run updater choose NEW server and click Update. /data/attachments/4/4520-75a004e5c687b6c439c89513218f4743.jpg Join in our Discord Chanel - Join the Lineage2Dex Support Discord Server! Here you can find all important news, guides, communicate with other players and admins. Don't forget, Open Beta test is TEST server, so please make maximum test before opening, check classes that u plan to play, check shops, mobs etc. Don't just stay in the Towns enchanting weapons  Have a fun!  
    • Nice coincidence that since these links were posted, that forum getting ddosed.
  • Topics

×
×
  • Create New...