i make server auto loot

Find the proper support area, Saga-Version.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
QQ1
Posts: 13
Joined: Thu May 10, 2012 7:06 am

i make server auto loot

Post by QQ1 »

hi every one i had make my interlude server auto loot and i was testing killing RBs , i had kill valakas and he drop much stuff
broblem is client closed and when i relog i see character select and i press on it to be on then when just spawn in game i see this msg

Image

i try make a new charater and log in with it , it log in without problems but when kill RBs and inventory full , i get same problem
1- how can i fix this ?
2- how can i make manual loot for RBs only ?
sorry for my bad english
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: i make server auto loot

Post by Zoey76 »

Try to implement this changeset Changeset 5327 in Interlude.
Powered by Eclipse 4.30 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.3.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
QQ1
Posts: 13
Joined: Thu May 10, 2012 7:06 am

Re: i make server auto loot

Post by QQ1 »

thanks for reply .
but where exactly i put this files ?
QQ1
Posts: 13
Joined: Thu May 10, 2012 7:06 am

Re: i make server auto loot

Post by QQ1 »

i am trying to know where or how to make this changes but i cant
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: i make server auto loot

Post by Zoey76 »

QQ1 wrote:thanks for reply .
but where exactly i put this files ?
Go to Config.java file find the variable that holds the auto loot option for raids (AUTO_LOOT_RAID_BOSS for example :lol: )
Follow it (Eclipse -> with variable selected -> Open Hierarchy -> Ctrl-Alt-H )

For example is used in doItemDrop(..) and you will find player.doItemDrop(..), follow it.
You will find that it calls addItem(..) from L2PcInstance, follow it.
There after:

Code: Select all

// Add the item to inventoryL2ItemInstance item = _inventory.addItem(process, itemId, count, this, reference);
Add:

Code: Select all

// If over capacity, drop the itemif (!isGM() && item.isDropable() && (!item.isStackable() || item.getLastChange() != L2ItemInstance.MODIFIED))ย  ย  dropItem("InvDrop", item, null, true);
Test that, it may not work.
Powered by Eclipse 4.30 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.3.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
QQ1
Posts: 13
Joined: Thu May 10, 2012 7:06 am

Re: i make server auto loot

Post by QQ1 »

it work good but still have little problem that if a player had full inventory will get that msg and cant log in that player again
so , can u plz tell me how can i make RB drops manual ?
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: i make server auto loot

Post by Zoey76 »

QQ1 wrote:it work good but still have little problem that if a player had full inventory will get that msg and cant log in that player again
so , can u plz tell me how can i make RB drops manual ?
Hmmm... try to run a query on items table.
Powered by Eclipse 4.30 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.3.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
Post Reply