Jump to content
  • 0

Stackable Scroll, Life Stone , Book of Giants


Question

Posted

Καλησπέρα τσακάλια του MaxCheaters.

Μπορεί να μου πει κάποιος πως μπορώ να κάνω τα Scroll και της Life Stone να είναι σε ένα Box ??

Project: L2JFrozen

 

Φωτογραφία

Shot00000.png

Recommended Posts

  • 0
Posted

Καλησπέρα τσακάλια του MaxCheaters.

Μπορεί να μου πει κάποιος πως μπορώ να κάνω τα Scroll και της Life Stone να είναι σε ένα Box ??

Project: L2JFrozen

 

Φωτογραφία

Shot00000.png

 

logika 9a vgalei bug, ala kane afto:

 

sta xml i sql isStackable true, kai meta pigene etcitemgrp vres tin ID tis LS kai kane copy ena line apo to scroll vale tin ID kai to Icon tis Ls kai ise etimos

  • 0
Posted

logika 9a vgalei bug, ala kane afto:

 

sta xml i sql isStackable true, kai meta pigene etcitemgrp vres tin ID tis LS kai kane copy ena line apo to scroll vale tin ID kai to Icon tis Ls kai ise etimos

 

Το έκανα αλλά ήθελε να ενεργοποιήσω το config για τα scroll...

# Scroll is Stackable?

ScrollStackable = True

Αλλά εγώ θέλω να κάνω και της Life Stone's και τα Book of Giant's

Βρήκα αυτό μέσα στα RequestEnchantItem.java

	if (Config.SCROLL_STACKABLE) {
		scroll = activeChar.getInventory().destroyItem("Enchant", scroll.getObjectId(), 1, activeChar, item);
	}
	else {
		scroll = activeChar.getInventory().destroyItem("Enchant", scroll, activeChar, item);
	}

Τι να γράψω για να γίνουν και η Life Stone's έτσι και τα Book of Giants ?

 

Shot00001.png

  • 0
Posted

ta packets ftene, den mporeis na kaneis kati... ikoniko einai sto kato kato den tis troei kai tis 50

  • 0
Posted

ta packets ftene, den mporeis na kaneis kati... ikoniko einai sto kato kato den tis troei kai tis 50

 

Δυστυχώς της τρώει όλες ;/

  • 0
Posted

stile moy to requestRefine apo client packets

 

/* 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 2, 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, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*
* http://www.gnu.org/copyleft/gpl.html
*/
package com.l2jfrozen.gameserver.network.clientpackets;

import com.l2jfrozen.Config;
import com.l2jfrozen.gameserver.datatables.xml.AugmentationData;
import com.l2jfrozen.gameserver.model.L2World;
import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance;
import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
import com.l2jfrozen.gameserver.network.SystemMessageId;
import com.l2jfrozen.gameserver.network.serverpackets.ExVariationResult;
import com.l2jfrozen.gameserver.network.serverpackets.InventoryUpdate;
import com.l2jfrozen.gameserver.network.serverpackets.StatusUpdate;
import com.l2jfrozen.gameserver.network.serverpackets.SystemMessage;
import com.l2jfrozen.gameserver.templates.L2Item;
import com.l2jfrozen.gameserver.util.Util;

/**
* Format:(ch) dddd
* @author -Wooden-
*/
public final class RequestRefine extends L2GameClientPacket
{
private int _targetItemObjId;
private int _refinerItemObjId;
private int _gemstoneItemObjId;
private int _gemstoneCount;

@Override
protected void readImpl()
{
	_targetItemObjId = readD();
	_refinerItemObjId = readD();
	_gemstoneItemObjId = readD();
	_gemstoneCount = readD();
}

@Override
protected void runImpl()
{
	L2PcInstance activeChar = getClient().getActiveChar();
	if (activeChar == null)
		return;

	L2ItemInstance targetItem = (L2ItemInstance) L2World.getInstance().findObject(_targetItemObjId);
	L2ItemInstance refinerItem = (L2ItemInstance) L2World.getInstance().findObject(_refinerItemObjId);
	L2ItemInstance gemstoneItem = (L2ItemInstance) L2World.getInstance().findObject(_gemstoneItemObjId);

	if (targetItem == null || refinerItem == null || gemstoneItem == null || targetItem.getOwnerId() != activeChar.getObjectId() || refinerItem.getOwnerId() != activeChar.getObjectId() || gemstoneItem.getOwnerId() != activeChar.getObjectId() || activeChar.getLevel() < 46) // must be lvl 46
	{
		activeChar.sendPacket(new ExVariationResult(0, 0, 0));
		activeChar.sendPacket(new SystemMessage(SystemMessageId.AUGMENTATION_FAILED_DUE_TO_INAPPROPRIATE_CONDITIONS));
		return;
	}

	// unequip item
	if (targetItem.isEquipped())
	{
		activeChar.disarmWeapons();
	}

	if (TryAugmentItem(activeChar, targetItem, refinerItem, gemstoneItem))
	{
		int stat12 = 0x0000FFFF & targetItem.getAugmentation().getAugmentationId();
		int stat34 = targetItem.getAugmentation().getAugmentationId() >> 16;
		activeChar.sendPacket(new ExVariationResult(stat12, stat34, 1));
		activeChar.sendPacket(new SystemMessage(SystemMessageId.THE_ITEM_WAS_SUCCESSFULLY_AUGMENTED));
	}
	else
	{
		activeChar.sendPacket(new ExVariationResult(0, 0, 0));
		activeChar.sendPacket(new SystemMessage(SystemMessageId.AUGMENTATION_FAILED_DUE_TO_INAPPROPRIATE_CONDITIONS));
	}
}

boolean TryAugmentItem(L2PcInstance player, L2ItemInstance targetItem, L2ItemInstance refinerItem, L2ItemInstance gemstoneItem)
{
	if (targetItem.isAugmented() || targetItem.isWear())
	{
		player.sendMessage("You can't augment items while you wear it");
		return false;
	}

	if (player.isDead())
	{
		player.sendPacket(new SystemMessage(SystemMessageId.YOU_CANNOT_AUGMENT_ITEMS_WHILE_DEAD));
		return false;
	}

	if (player.isSitting())
	{
		player.sendPacket(new SystemMessage(SystemMessageId.YOU_CANNOT_AUGMENT_ITEMS_WHILE_SITTING_DOWN));
		return false;
	}

	if (player.isFishing())
	{
		player.sendPacket(new SystemMessage(SystemMessageId.YOU_CANNOT_AUGMENT_ITEMS_WHILE_FISHING));
		return false;
	}

	if (player.isParalyzed())
	{
		player.sendPacket(new SystemMessage(SystemMessageId.YOU_CANNOT_AUGMENT_ITEMS_WHILE_PARALYZED));
		return false;
	}

	if (player.getActiveTradeList() != null)
	{
		player.sendMessage("You cannot augment while trading");
		return false;
	}

	if (player.getPrivateStoreType() != L2PcInstance.STORE_PRIVATE_NONE)
	{
		player.sendPacket(new SystemMessage(SystemMessageId.YOU_CANNOT_AUGMENT_ITEMS_WHILE_A_PRIVATE_STORE_OR_PRIVATE_WORKSHOP_IS_IN_OPERATION));
		return false;
	}

	// check for the items to be in the inventory of the owner
	if (player.getInventory().getItemByObjectId(refinerItem.getObjectId()) == null)
	{
		Util.handleIllegalPlayerAction(player, "Warning!! Character " + player.getName() + " of account " + player.getAccountName() + " tried to refine an item with wrong LifeStone-id.", Config.DEFAULT_PUNISH);
		return false;
	}

	if (player.getInventory().getItemByObjectId(targetItem.getObjectId()) == null)
	{
		Util.handleIllegalPlayerAction(player, "Warning!! Character " + player.getName() + " of account " + player.getAccountName() + " tried to refine an item with wrong Weapon-id.", Config.DEFAULT_PUNISH);
		return false;
	}

	if (player.getInventory().getItemByObjectId(gemstoneItem.getObjectId()) == null)
	{
		Util.handleIllegalPlayerAction(player, "Warning!! Character " + player.getName() + " of account " + player.getAccountName() + " tried to refine an item with wrong Gemstone-id.", Config.DEFAULT_PUNISH);
		return false;
	}

	int itemGrade = targetItem.getItem().getItemGrade();
	int itemType = targetItem.getItem().getType2();
	int lifeStoneId = refinerItem.getItemId();
	int gemstoneItemId = gemstoneItem.getItemId();

	// is the refiner Item a life stone?
	if (lifeStoneId < 8723 || lifeStoneId > 8762)
		return false;

	// must be a weapon, must be > d grade
	// TODO: can do better? : currently: using isdestroyable() as a check for hero / cursed weapons
	if (itemGrade < L2Item.CRYSTAL_C || itemType != L2Item.TYPE2_WEAPON || !targetItem.isDestroyable())
		return false;

	// player must be able to use augmentation
	if (player.getPrivateStoreType() != L2PcInstance.STORE_PRIVATE_NONE || player.isDead() || player.isParalyzed() || player.isFishing() || player.isSitting())
		return false;

	int modifyGemstoneCount = _gemstoneCount;
	int lifeStoneLevel = getLifeStoneLevel(lifeStoneId);
	int lifeStoneGrade = getLifeStoneGrade(lifeStoneId);
	switch (itemGrade)
	{
		case L2Item.CRYSTAL_C:
			if (player.getLevel() < 46 || gemstoneItemId != 2130)
				return false;
			modifyGemstoneCount = 20;
			break;
		case L2Item.CRYSTAL_B:
			if (player.getLevel() < 52 || gemstoneItemId != 2130)
				return false;
			modifyGemstoneCount = 30;
			break;
		case L2Item.CRYSTAL_A:
			if (player.getLevel() < 61 || gemstoneItemId != 2131)
				return false;
			modifyGemstoneCount = 20;
			break;
		case L2Item.CRYSTAL_S:
			if (player.getLevel() < 76 || gemstoneItemId != 2131)
				return false;
			modifyGemstoneCount = 25;
			break;
	}

	// check if the lifestone is appropriate for this player
	switch (lifeStoneLevel)
	{
		case 1:
			if (player.getLevel() < 46)
				return false;
			break;
		case 2:
			if (player.getLevel() < 49)
				return false;
			break;
		case 3:
			if (player.getLevel() < 52)
				return false;
			break;
		case 4:
			if (player.getLevel() < 55)
				return false;
			break;
		case 5:
			if (player.getLevel() < 58)
				return false;
			break;
		case 6:
			if (player.getLevel() < 61)
				return false;
			break;
		case 7:
			if (player.getLevel() < 64)
				return false;
			break;
		case 8:
			if (player.getLevel() < 67)
				return false;
			break;
		case 9:
			if (player.getLevel() < 70)
				return false;
			break;
		case 10:
			if (player.getLevel() < 76)
				return false;
			break;
	}

	// Check if player has all gemstorne on inventory
	if (gemstoneItem.getCount() - modifyGemstoneCount < 0)
		return false;

	// consume the life stone
	if (!player.destroyItem("RequestRefine", refinerItem, null, false))
		return false;

	// consume the gemstones
	player.destroyItem("RequestRefine", _gemstoneItemObjId, modifyGemstoneCount, null, false);

	// generate augmentation
	targetItem.setAugmentation(AugmentationData.getInstance().generateRandomAugmentation(targetItem, lifeStoneLevel, lifeStoneGrade));

	// finish and send the inventory update packet
	InventoryUpdate iu = new InventoryUpdate();
	iu.addModifiedItem(targetItem);
	player.sendPacket(iu);

	StatusUpdate su = new StatusUpdate(player.getObjectId());
	su.addAttribute(StatusUpdate.CUR_LOAD, player.getCurrentLoad());
	player.sendPacket(su);

	return true;
}

private int getLifeStoneGrade(int itemId)
{
	itemId -= 8723;
	if (itemId < 10)
		return 0; // normal grade

	if (itemId < 20)
		return 1; // mid grade

	if (itemId < 30)
		return 2; // high grade

	return 3; // top grade
}

private int getLifeStoneLevel(int itemId)
{
	itemId -= 10 * getLifeStoneGrade(itemId);
	itemId -= 8722;
	return itemId;
}

@Override
public String getType()
{
	return "[C] D0:2C RequestRefine";
}
}

  • 0
Posted

// consume the life stone

if (!player.destroyItem("RequestRefine", refinerItem, null, false))

return false;

 

kanto

 

// consume the life stone

if (!player.destroyItem("RequestRefine", refinerItem, 1, null, false))

return false;

  • 0
Posted

	// consume the life stone
	if (!player.destroyItem("RequestRefine", refinerItem, null, false))
		return false;

kanto

	// consume the life stone
	if (!player.destroyItem("RequestRefine", refinerItem, 1, null, false))
		return false;

 

Και για τα Secret Book of Giants από που το κάνω ?

Δεν ξέρω της τοποθεσίες :/

  • 0
Posted

requestExEnchantSkill legete nomizw sta clientpackets, kane to idio

 

Αυτό είναι ?

				// ok
				player.destroyItem("Consume", spb, trainer, true);

Και θα το κάνω έτσι ?

				// ok
				player.destroyItem("Consume", spb, 1, trainer, true);

 

Και όταν περνάω το " 1," μου υπογραμμίζει με κόκκινο το destroyItem

Και στο Refine & στο ExEnchantSkill

  • 0
Posted

bump

 

ti bump re mlka, oute ena addItem den 3ereis na ftiaxneis ? ante model/itemcontainer/inventory.java kai stilto edw

Guest
This topic is now closed to further replies.


  • Posts

    • The server has been online and stable for over 2 months now, and we’re still going strong! No wipes, no shortcuts ~ just continuous work, daily fixes, events, and improvements to ensure the best possible experience.   Great News! 🔥 CHAPTER II IS COMING — GRACIA FINAL 🔥 On February 16, L2Elixir enters a new era. The server will be officially updated to Gracia Final, opening Chapter II of our journey. Expect new content, improvements, and surprises that will refresh the gameplay while keeping the classic Gracia Final spirit alive.   More challenges, more competition, and more reasons to log in.   📅 Update Date: February 16 ⚔️ Chapter II: Gracia Final This is not a reset. This is evolution.   Prepare yourselves — Chapter II begins soon.   Website: https://l2elixir.org/ Discord: https://discord.gg/5ydPHvhbxs    
    • Server owners, Top.MaxCheaters.com is now live and accepting Lineage 2 server listings. There is no voting, no rankings manipulation, and no paid advantages. Visibility is clean and equal, and early listings naturally appear at the top while the platform grows. If your server is active, it should already be listed. Submit here 👉https://Top.MaxCheaters.com This platform is part of the MaxCheaters.com network and is being built as a long-term reference point for the Lineage 2 community. — MaxCheaters.com Team
    • Hello! We are Genesis, small team that works on new Lineage 2 project. Our goal with this project is to create a fresh new place to play — built around real community feedback, with no aggressive pay-to-win donations and with carefully thought-out quality-of-life improvements, balance changes etc. We believe that even tho we all love this game, everyone has at least one or two things they would like to change in the game to make it more enjoyable. Thats why we want the comunity feedback to shape our server. Main information about the server: • Interlude Classic version • Rates: EXP x4 SP x2 Loot x2, Spoil x2 (not set in stone, might be changed) • Local & Server-Side Dualbox Protection • Complete, Clear Website with Integrated Account Panel (Game account creation, direct communication with support, bug reporting, voting and reward system) • Launcher – External Game Login System: manage all your accounts inside the launcher, “Play” button logs you directly into the game server Here are list of few changes we already added/decided to add to the server: • Reworked Client to fit interlude Era with upgraded Classic Ui • Custom Antibot system • Custom AntiDualBox System • Offline shops • Offline shop with buffs (available only in towns) • Mass Sweeper added to the game • Newbie buffs available all the way to lvl 76 (nothing crazy, but its free) • Slight balance change to Destroyer damage with Polearm and Cancel spell from SPS • PvP zones on every Epic spawn spot • Overbuffing blocked • And more! Since we put big focus on community feedback and suggestions, we are looking for people for our internal tests, that will discuss whether current changes „fit” into the game and maybe suggest some changes themselves. If what you’ve just read sounds interesting to you, if you want to help creating server fitted for you, join our server Discord. Help us to understand what Lineage 2 players in 2026 actually expect and need — so we can meet those expectations and avoid becoming just another server that dies a natural death.     Even if you’re not interested in playing right now, but you are a long-time Lineage 2 player, feel free to join our community. We would greatly appreciate your experience and feedback to help us improve and develop our project. Join the growing L2Genesis community: https://discord.gg/mcuHsQzNCm Also check our website: https://l2genesis.com/
    • I messaged you privately. If you want me to help, message me privately.  
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..