Page 1 of 1
i make server auto loot
Posted: Tue May 15, 2012 4:00 am
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
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
Re: i make server auto loot
Posted: Tue May 15, 2012 4:52 am
by Zoey76
Try to implement this changeset
Changeset 5327 in Interlude.
Re: i make server auto loot
Posted: Tue May 15, 2012 4:58 am
by QQ1
thanks for reply .
but where exactly i put this files ?
Re: i make server auto loot
Posted: Tue May 15, 2012 5:24 am
by QQ1
i am trying to know where or how to make this changes but i cant
Re: i make server auto loot
Posted: Tue May 15, 2012 5:27 am
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

)
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.
Re: i make server auto loot
Posted: Tue May 15, 2012 11:09 pm
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 ?
Re: i make server auto loot
Posted: Tue May 15, 2012 11:53 pm
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.