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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 Veteran
L2j Veteran
Posts: 1236
Joined: Sun Jul 15, 2007 10:29 am

Re: Remove things from player inventory

Post by Zealar »

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 »

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 »

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 »

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 Veteran
L2j Veteran
Posts: 1236
Joined: Sun Jul 15, 2007 10:29 am

Re: Remove things from player inventory

Post by Zealar »

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 »

Zealar wrote:Patch update need to be fine now.
Yes you are good thanks man works fine now :D
Driad
Posts: 366
Joined: Sat Jun 30, 2012 8:25 am
Contact:

Re: Remove things from player inventory

Post by Driad »

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 »

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