TrinityCore/TrinityCore — pull request #7259 by myran2 (2012-08-02 22:29:28+00:00)
Title: No arg requirement for .gobject commands

Normally, when you use .gobject delete or any other .gobject command, you need to supply a GUID.
This might not be an issue if you're only working with a few gameobjects, but if you're working with 5+, it can get pretty tedious.
I tried to keep this limited to just external scripts, but I ended up having to put a few things in the player class.

So, it adds a new command, .gobject select. When you use it, it stores the GUID of the selected gameobject for when you use the next .gobject command.
.gobject target still works fine, and you can still use GUIDs with the other .gobject commands.