Jump to content

Recommended Posts

Garbage Bin — Free Release
Bulk-delete junk items from a staging window, built on the existing destroy packet, with no custom packets.

Hey everyone,

Releasing one of my systems for free: the Garbage Bin. Players stage junk items in a 6x6 window and delete the whole batch with one confirmation, instead of destroying them one by one.

The design goal was to add no new packets. Most trash-system tutorials add a custom HEADER_CG_TRASH / HEADER_GC_TRASH pair. This one instead reuses the item-destroy packet the client already sends (HEADER_CG_ITEM_DESTROY) — the UI just queues items and fires one ordinary destroy per queued item on confirm. Cleaner to install, and nothing new for the netcode to desync on.

Full source and tutorial included (client and server), free to use.

.png

 

How it works
- Dragging an item into the bin records only a reference (slot, vnum, count). The item never moves or changes state until you confirm.
- Confirm replays the ordinary ITEM_DESTROY request once per queued item, the exact path your server already handles for a single-item delete.
- No custom packet types. Server-side it is the existing DestroyItem flow plus the normal game-to-db deletion path.

Features
- Drag-and-drop into a 6x6 grid, or Ctrl+click an inventory item to add it instantly
- Ctrl+click yields to other open windows first (chest, trade window, shop), so it never steals a shortcut you were already using
- Nothing is moved or destroyed until you confirm, items stay exactly where they are in your real inventory
- Queued items are visually blocked in the inventory so you cannot double-add them
- Manually placed grid positions are preserved on refresh
- Server rejects invalid, locked, trading, bound, quest-running, dead, or observer-mode action

Compatibility
- Tested under the Martysama base.
- Reuses the existing item-destroy packet, no new packet types to register.
- Client source only needed if you use Cython.

Download

This is the hidden content, please

VirusTotal

This is the hidden content, please

Credits: my own work, free to use on your server. Please do not redistribute it as your own. A credit back to M2Workshop is appreciated but not required.

Feedback, bug reports and questions welcome in this thread.

 

  • Metin2 Dev 10
  • Love 3

Metin2 systems developer, 9+ years in P-server development.

I build production-ready systems (client + server), custom development, and web development for game servers. Every system is my own work, tested in live conditions.

Website & catalog: https://www.m2workshop.dev
Discord: https://discord.gg/ZvTgk6md4b

I never DM first and never ask for payment through Discord.

Link to comment
https://metin2.dev/topic/34625-release-garbage-bin-bulk-item-deletion/
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.