Jump to content

Question

Posted

Hello guys,

 

I have an problem. It's about Inventory. For example when it gets full 80/80 I can't pick anything anymore, even the items that i already have, for example adena.
It is ok that i can't pick up new items, but i would like to know is it possible to make stacks out of it ?  For example when my Inventory is full that I still can pick up adena and the items that i already have inside.

Recommended Posts

  • 0
Posted (edited)

I did that, and i showed you the problem that is eclipse showing. 

and i told you chance the item to target what you dont understand?

if (!target.isStackable() || _inventory.getItemByItemId(target.getItemId()) == null)
Edited by Reborn12
  • 0
Posted

 

and i told you chance the item to target what you dont understand?

if (!target.isStackable() || _inventory.getItemByItemId(target.getItemId()) == null)

Now the code is working perfectly. Eclipse is not showing any problems.... But i can't compile anymore.... for no reason....

I compiled last night perfectly fine.....

Wtf.... 62285822db.jpeg

  • 0
Posted (edited)

2k17 best serbidors incoming 

 

This nab reborn first check if the item is stackable and then check if the item is null ROLF

 

bravetobe plz tell us ur opinion about this.

Edited by Θα Σπασω Κουπες
  • 0
Posted

 

and i told you chance the item to target what you dont understand?

if (!target.isStackable() || _inventory.getItemByItemId(target.getItemId()) == null)

Ok Reborn, i did all what u said, and compiling finally worked after i did some researches on net.... it was because of Java path.... anyway.... 

the code worked, compiling worked..... but it still doesn't pick up  when inventory is full..... i want to make all items that already exist in inventory that they can be picked up......for example Adena.....

:( :/ 

  • 0
Posted
19 hours ago, wongerlt said:

show us how u put the code.

L2ItemInstance target = (L2ItemInstance) object;
		
		sendPacket(new StopMove(this));
		
		SystemMessage smsg = null;
		synchronized (target)
		{
			// Check if the target to pick up is visible
			if (!target.isVisible())
			{
				// Send a Server->Client packet ActionFailed to this L2PcInstance
				sendPacket(ActionFailed.STATIC_PACKET);
				return;
			}
			
			if (!target.getDropProtection().tryPickUp(this))
			{
				sendPacket(ActionFailed.STATIC_PACKET);
				smsg = SystemMessage.getSystemMessage(SystemMessageId.FAILED_TO_PICKUP_S1);
				smsg.addItemName(target);
				sendPacket(smsg);
				return;
			}
			
			if (((isInParty() && (getParty().getDistributionType() == PartyDistributionType.FINDERS_KEEPERS)) || !isInParty()) && !_inventory.validateCapacity(target))
			{
				sendPacket(ActionFailed.STATIC_PACKET);
				if (!target.isStackable() || (_inventory.getItemByItemId(target.getId()) == null))
				{
					sendPacket(SystemMessageId.SLOTS_FULL);
					return;
				}
				
				if (isInvisible() && !canOverrideCond(PcCondOverride.ITEM_CONDITIONS))
				{
					return;
				}

this thing here is inserted

if (!target.isStackable() || (_inventory.getItemByItemId(target.getId()) == null))
				{

 

Thanks.

  • 0
Posted
On 9/6/2017 at 9:22 PM, wongerlt said:

and it say that inv. is full at system message?

It picks up items when you are in party, but when you are alone not..... ://

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



  • Posts

    • EspadaWorld Reborn - Lineage 2 High Five Private Server Official Website: https://l2espadaworld.com   GitHub Presentation: https://github.com/worldespada-cloud/EspadaWorld   About EspadaWorld Reborn   EspadaWorld Reborn is a cinematic Lineage 2 High Five private server project built on a customized FandC / L2J-style High Five core. The project is focused on balanced gameplay, PvP competition, PvE progression, custom systems, vote rewards, rankings, protection integration, website features, and long-term stability. EspadaWorld is not a clean stock pack. The server has been extended with custom systems, website integration, vote reward logic, protection-related modules, custom instance content, gameplay improvements, and server-side adjustments. Server Foundation Chronicle: Lineage 2 High Five Base: FandC High Five core, heavily customized Core style: L2J-based server architecture Build system: Apache Ant Java target: Java 25 Database: MySQL Project type: Active development / production server environment Main Features - Custom Lineage 2 High Five server environment - FandC-based core with custom improvements - Custom Community Board systems - Player ranking systems - PvP-focused gameplay logic - PvE progression support - Custom Espada instance and custom gameplay content - Vote reward system with multiple vote website integrations - Unified .getreward command - Website, account, ranking, vote, media, and download integration - Protection module integration - Admin tools and server management systems - Datapack and server packaging scripts Vote Reward System EspadaWorld includes a custom vote reward flow based around the .getreward command. The system verifies votes from all enabled vote websites and gives one unified global reward only after all required votes are confirmed. Current vote integration includes: - iTopZ - HopZone - L2Network - L2JBrasil - L2TopZone - L2Votes Vote system features: - Unified reward after all votes are confirmed - Configurable global reward list - Item amount and chance configuration - Cooldown / reuse protection - HWID / IP-based reward protection - Debug logging for vote verification - Anti-abuse logic for repeated reward claims Protection & Security The project includes protection-related modules and integration points designed to improve server and client-side security. Protection-related areas include: - Runtime protection module integration - Client protection support - Server-side validation systems - Anti-abuse logic around vote rewards and account actions - Configuration-driven security behavior - Release packaging support for protected builds Private protection details, keys, internal configuration, and production security data are not public. Custom Gameplay Content EspadaWorld Reborn includes custom gameplay work designed to give the server its own identity while keeping the Lineage 2 High Five feeling. Examples of custom content and systems: - Custom Espada instance - PvP-oriented systems and zones - PvE progression systems - Ranking and competition systems - Community Board extensions - Custom HTML and datapack content - Gameplay scripts and server-side feature extensions - Vote reward progression Website & Community Platform EspadaWorld also includes a modern web platform connected to the server community. Website features include: - Modern responsive website - Account panel - Download section - Vote section - Ranking pages - Media section - News and information system - Admin-controlled website settings - Theme/template system - SEO optimization - Performance optimization The website has been optimized for speed, accessibility, best practices, and SEO, offering a clean public presentation for the server and community. Useful Links Website: https://l2espadaworld.com   GitHub Presentation: https://github.com/worldespada-cloud/EspadaWorld   EspadaWorld Reborn is a cinematic Lineage 2 High Five private server project built on a customized FandC-based core.     Preserving safety and trust within our community is our priority. Thank you for your understanding and support!   Best regards,VastoLordes. Contact Information :  support@l2espadaworld.com
    • Hi,im looking for "stable" mid rate high five l2j files source included,i prefer not clean files but something already used by another server in the past,if you have something intrested and not shared pm me.
    • Hello, We are currently looking for an experienced Lineage 2 High Five client developer for our project EldoriaWorld. At the moment we need help with: High Five client edits Launcher integration Interface/UI improvements Branding changes Textures/icons/loading screens System modifications Client optimization We already have website, launcher setup and server infrastructure prepared. If interested, please message me with: your experience previous projects/work contact details Contact: Telegram: FrankJan Discord: LosBanannos Regards, Frank EldoriaWorld
    • Hi guys, I am interested. Added you on Telegram. Please reply.
  • 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..