We moved our repositories to BitBucket!

If you can't login or you can't register to the forums do not rise an issue, instead please write to support (at) l2jserver.com

Check our wiki!

Report server issues here

Forum has been updated to phpBB 3.2, let's see if this fixes some minor bugs we had.

Thank you for visiting http://www.l2jserver.com/

Remove things from player inventory

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Attila
Posts: 441
Joined: Mon May 05, 2014 10:15 am

Remove things from player inventory

Post by Attila » Sat Aug 23, 2014 10:28 am

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

User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: Remove things from player inventory

Post by UnAfraid » Sat Aug 23, 2014 11:14 am

iterate over all items of the player and delete those u want by id.
Image

Attila
Posts: 441
Joined: Mon May 05, 2014 10:15 am

Re: Remove things from player inventory

Post by Attila » Sat Aug 23, 2014 5:23 pm

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

User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: Remove things from player inventory

Post by UnAfraid » Sat Aug 23, 2014 6:24 pm

This is not an admin command u must write the code.
Image

User avatar
Encore
Posts: 5
Joined: Fri Jan 10, 2014 7:23 pm

Re: Remove things from player inventory

Post by Encore » Sun Aug 24, 2014 1:44 am

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...

Attila
Posts: 441
Joined: Mon May 05, 2014 10:15 am

Re: Remove things from player inventory

Post by Attila » Sun Aug 24, 2014 8:01 am

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.

User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: Remove things from player inventory

Post by UnAfraid » Sat Aug 30, 2014 1:34 pm

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.
Image

User avatar
Zealar
L2j Senior Developer
L2j Senior Developer
Posts: 1236
Joined: Sun Jul 15, 2007 10:29 am

Re: Remove things from player inventory

Post by Zealar » Sat Aug 30, 2014 2:03 pm

Test this one.

Image
Gist by: Zealar

Attila
Posts: 441
Joined: Mon May 05, 2014 10:15 am

Re: Remove things from player inventory

Post by Attila » Sun Aug 31, 2014 9:11 am

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

User avatar
St3eT
Posts: 961
Joined: Sun Mar 07, 2010 6:50 pm

Re: Remove things from player inventory

Post by St3eT » Sun Aug 31, 2014 10:29 am

Better will be use alt+g Inventory command for delete.

Attila
Posts: 441
Joined: Mon May 05, 2014 10:15 am

Re: Remove things from player inventory

Post by Attila » Mon Sep 01, 2014 2:20 pm

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)

User avatar
Zealar
L2j Senior Developer
L2j Senior Developer
Posts: 1236
Joined: Sun Jul 15, 2007 10:29 am

Re: Remove things from player inventory

Post by Zealar » Mon Sep 01, 2014 2:40 pm

Patch update need to be fine now.

Attila
Posts: 441
Joined: Mon May 05, 2014 10:15 am

Re: Remove things from player inventory

Post by Attila » Mon Sep 01, 2014 5:21 pm

Zealar wrote:Patch update need to be fine now.
Yes you are good thanks man works fine now :D

User avatar
Driad
Posts: 366
Joined: Sat Jun 30, 2012 8:25 am
Contact:

Re: Remove things from player inventory

Post by Driad » Mon Sep 08, 2014 9:24 pm

And what is the command to view? Tried //show_inventory didn't.

Attila
Posts: 441
Joined: Mon May 05, 2014 10:15 am

Re: Remove things from player inventory

Post by Attila » Tue Sep 09, 2014 2:57 pm

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

Post Reply