diff --git a/src/AcDream.Core.Net/WorldSession.cs b/src/AcDream.Core.Net/WorldSession.cs index a904140c..47785496 100644 --- a/src/AcDream.Core.Net/WorldSession.cs +++ b/src/AcDream.Core.Net/WorldSession.cs @@ -1215,6 +1215,15 @@ public sealed class WorldSession : IDisposable SendGameAction(InventoryActions.BuildNoLongerViewingContents(seq, containerGuid)); } + /// Send Use (0x0036) — open/use an object by guid (e.g. open a container in your + /// inventory). A direct wire send: opening a pack you already hold needs no autowalk, unlike + /// GameWindow.SendUse (the world-interaction path). Retail: CM_Physics::Event_Use. + public void SendUse(uint targetGuid) + { + uint seq = NextGameActionSequence(); + SendGameAction(InteractRequests.BuildUse(seq, targetGuid)); + } + /// Send retail QueryHealth (0x01BF). Server replies UpdateHealth (0x01C0). /// /// Retail anchor: CM_Combat::Event_QueryHealth / gmToolbarUI::HandleSelectionChanged:198635