Page 1 of 3

Remove things from player inventory

Posted: Sat Aug 23, 2014 10:28 am
by Attila
L2J Revision Number:6445
L2JDP Revision Number:9641

hi

how can i remove thinks from players inventory like he got a moirai weapen and i wil delite it out his inventory.

thanks

Re: Remove things from player inventory

Posted: Sat Aug 23, 2014 11:14 am
by UnAfraid
iterate over all items of the player and delete those u want by id.

Re: Remove things from player inventory

Posted: Sat Aug 23, 2014 5:23 pm
by Attila
UnAfraid wrote:iterate over all items of the player and delete those u want by id.
Sorry can you tell how i need the do it
what gm commands do i need the do it
ty

Re: Remove things from player inventory

Posted: Sat Aug 23, 2014 6:24 pm
by UnAfraid
This is not an admin command u must write the code.

Re: Remove things from player inventory

Posted: Sun Aug 24, 2014 1:44 am
by Encore
Attila wrote:
UnAfraid wrote:iterate over all items of the player and delete those u want by id.
Sorry can you tell how i need the do it
what gm commands do i need the do it
ty
Search for charId in character table, then go to items table, check owner_id & item_id and delete...

Re: Remove things from player inventory

Posted: Sun Aug 24, 2014 8:01 am
by Attila
Encore wrote:
Attila wrote:
UnAfraid wrote:iterate over all items of the player and delete those u want by id.
Sorry can you tell how i need the do it
what gm commands do i need the do it
ty
Search for charId in character table, then go to items table, check owner_id & item_id and delete...
thanks

this is the only way to take things from players inventory.

Re: Remove things from player inventory

Posted: Sat Aug 30, 2014 1:34 pm
by UnAfraid
Encore wrote:
Attila wrote:
UnAfraid wrote:iterate over all items of the player and delete those u want by id.
Sorry can you tell how i need the do it
what gm commands do i need the do it
ty
Search for charId in character table, then go to items table, check owner_id & item_id and delete...
Doing database changes with live server isn't so smart especially if this character is online.

Re: Remove things from player inventory

Posted: Sat Aug 30, 2014 2:03 pm
by Zealar
Test this one.

Image
Gist by: Zealar

Re: Remove things from player inventory

Posted: Sun Aug 31, 2014 9:11 am
by Attila
thanks man it works goood :-)

but there is no button i can fine white show_inventory admin Menu
i can only do //show_inventory and se the option to delite thinks
but that's okay it's supposed to work or do i missing the button.

But thanks man

Re: Remove things from player inventory

Posted: Sun Aug 31, 2014 10:29 am
by St3eT
Better will be use alt+g Inventory command for delete.

Re: Remove things from player inventory

Posted: Mon Sep 01, 2014 2:20 pm
by Attila
Zealar wrote:Test this one.

Image
Gist by: Zealar
L2J Revision Number:5625
L2JDP Revision Number:10426

i wase test it on my self admin it works oke

but wen i try it on s another he works not i got this message ?


[01/09 16:13:37] Exception processing bypass from player Admin: admin_delete_ite
m 268507271
java.lang.NullPointerException
at handlers.admincommandhandlers.AdminInventory.useAdminCommand(AdminInv
entory.java:75)
at com.l2jserver.gameserver.network.clientpackets.RequestBypassToServer.
runImpl(RequestBypassToServer.java:169)
at com.l2jserver.gameserver.network.clientpackets.L2GameClientPacket.run
(L2GameClientPacket.java:70)
at com.l2jserver.gameserver.network.L2GameClient.run(L2GameClient.java:1
134)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Re: Remove things from player inventory

Posted: Mon Sep 01, 2014 2:40 pm
by Zealar
Patch update need to be fine now.

Re: Remove things from player inventory

Posted: Mon Sep 01, 2014 5:21 pm
by Attila
Zealar wrote:Patch update need to be fine now.
Yes you are good thanks man works fine now :D

Re: Remove things from player inventory

Posted: Mon Sep 08, 2014 9:24 pm
by Driad
And what is the command to view? Tried //show_inventory didn't.

Re: Remove things from player inventory

Posted: Tue Sep 09, 2014 2:57 pm
by Attila
i found a error
i can only se the furst page at other players if i click on 2 notting happens
i can only se what he got on the fust page.
if i try it at my self its work oke