GMCP

Just wondering if someone could print the list of items GMCP / Mudlet can currently track?  Everything I've found, I've been told is out-of-date so I'd like to be sure before I go re-doing a bunch of stuff.  No, I won't be buying SVO to find out :-/

Thanks

Comments

  • edited January 2014
    Not sure what alias you have (if any) to run lua script on the command line, but just try sending 'gmcp' (without quotes).

    Here's my alias, if you don't have one:

    pattern: ^/(.+)$

    script:

    local a = loadstring ("return "..matches[2])

    if not a then a = assert (loadstring(matches[2])) end

    local b = a ()

    if b ~= nil then display (b) end


    Current scripts: GoldTracker 1.2, mData 1.1
    Site: https://github.com/trevize-achaea/scripts/releases
    Thread: http://forums.achaea.com/discussion/4064/trevizes-scripts
    Latest update: 9/26/2015 better character name handling in GoldTracker, separation of script and settings, addition of gold report and gold distribute aliases.
  • I'm pretty sure new Mudlet profiles now come with a script to execute Lua code from the command line pre-installed, so something like:

    lua display(gmcp.Char.Items)

    would display the current contents of the gmcp.Char.Items table.
  • If you turn on the debug window, it will show you the gmcp events as they come in, and after a while the gmcp table will be filled with almost everything it can be naturally, so you can use display(gmcp) to see it. You can request your inventory and rift contents using sendGMCP but I forget the arguments.

    I have to admit I don't really understand the use of a lot of the gmcp events, the data that is gives you is just sort of not useful in many cases, but the stuff in gmcp.Char.Vitals is sweet.
  • Rift:
    sendGMCP ("IRE.Rift.Request")

    Inventory:
    sendGMCP ("Char.Items.Inv")

    Items in containers: (v.id is the numberic ID of a container)
    sendGMCP ("Char.Items.Contents " .. v.id)

    Properly done, you can track everything in the room, your rift, and your inventory, including all items in containers.

    Vitals is also very nice, yes.
    Current scripts: GoldTracker 1.2, mData 1.1
    Site: https://github.com/trevize-achaea/scripts/releases
    Thread: http://forums.achaea.com/discussion/4064/trevizes-scripts
    Latest update: 9/26/2015 better character name handling in GoldTracker, separation of script and settings, addition of gold report and gold distribute aliases.
  • edited January 2014
    It's how I do things like this: (top left)

    image
    Current scripts: GoldTracker 1.2, mData 1.1
    Site: https://github.com/trevize-achaea/scripts/releases
    Thread: http://forums.achaea.com/discussion/4064/trevizes-scripts
    Latest update: 9/26/2015 better character name handling in GoldTracker, separation of script and settings, addition of gold report and gold distribute aliases.
  • Accipiter said:
    If you turn on the debug window, it will show you the gmcp events as they come in, and after a while the gmcp table will be filled with almost everything it can be naturally, so you can use display(gmcp) to see it. You can request your inventory and rift contents using sendGMCP but I forget the arguments.

    I have to admit I don't really understand the use of a lot of the gmcp events, the data that is gives you is just sort of not useful in many cases, but the stuff in gmcp.Char.Vitals is sweet.
    The main thing to remember, honestly, is to not check the actual GMCP table, but to capture events as they come in - things like add/remove only show the last one, and lists only show the initial one - so any changes between the initial and most recent add/remove are impossible to tell unless you caught them as they come in.
    Current scripts: GoldTracker 1.2, mData 1.1
    Site: https://github.com/trevize-achaea/scripts/releases
    Thread: http://forums.achaea.com/discussion/4064/trevizes-scripts
    Latest update: 9/26/2015 better character name handling in GoldTracker, separation of script and settings, addition of gold report and gold distribute aliases.
  • Trevize said:
    It's how I do things like this: (top left)

    image

    Trevize said:
    It's how I do things like this: (top left)

    image
    Oh I want this so bad...
  • Double quote the GUI for the win!  (oops, sorry about that.)
  • It's worth noting that there are GMCP modules available that are not enabled by default, so just looking at the gmcp table or the debug display won't show you those. The ones I can think of in this category are the Comm events and anything in the IRE module (IRE.Rift, IRE.Time, maybe one or two others that I've forgotten). As a list of events, I think http://www.ironrealms.com/gmcp-doc is mostly up to date (IRE.Time is the only module I can think of that's missing), though I think it's somewhat out of date on some of the implementation details.
  • Zincor said:
    Trevize said:
    It's how I do things like this: (top left)
    [image]
    Oh I want this so bad...
    This is the tracker, four scripts. It uses the base variable 'items' so if that's taken in your scripts, rename it in this:


    That just tracks - the two functions it calls are useful though - GMCP targetting, and displaying it in the window. Remove them if you don't plan to use them. But window display is just:


    You'll need to rename the window, cut out information you don't track, and the roomexclude table means it won't show what's in that list. Change it as necessary






    Current scripts: GoldTracker 1.2, mData 1.1
    Site: https://github.com/trevize-achaea/scripts/releases
    Thread: http://forums.achaea.com/discussion/4064/trevizes-scripts
    Latest update: 9/26/2015 better character name handling in GoldTracker, separation of script and settings, addition of gold report and gold distribute aliases.
  • Caelan said:
     No, I won't be buying SVO to find out :-/
    What kind of nonsense is that?

    Anyway, the official list is at http://www.ironrealms.com/gmcp-doc, although they don't do a very good job of updating it
  • edited February 2014
    Daeir said:
    People who openly share and distribute complex, well written scripts for free are wonderful individuals who should be accoladed and cherished.

    Just wanted to get that off my chest.
    Uh, thanks!

    And I almost forgot (mentioned it, but didn't post it!), but my targeting is a bit complex, but if you can make use of it feel free:


    A little explanation is due here...

    First, I set it on to start. Second, I have lists of things I hunt. I left about a fourth of it here as an example, but it's insanely long and you can add to it. It goes down the list, so per area, stick high-priority targets at the top. It uses the item list above to get a list of denizens, actually only keeps one of each type of denizen so would need modifications for any sort of multi-targeting. It's normally called on a change to the room. It makes a list of denizens, goes through the target list to locate the first one found, targets it with the command "t <target> gmcp". The reason for the end part is when I target normally, it turns GMCP targetting off. Only target commands appended by gmcp, like so, will leave it on. I also have "T AUTO" set to turn it back on, if I turn it off. Targeting alias is NOT included in that, so you'll have to do some legwork to use it, just like the above scripts.

    edit: oh, and it only changes targets if your current target is not in the room.
    Current scripts: GoldTracker 1.2, mData 1.1
    Site: https://github.com/trevize-achaea/scripts/releases
    Thread: http://forums.achaea.com/discussion/4064/trevizes-scripts
    Latest update: 9/26/2015 better character name handling in GoldTracker, separation of script and settings, addition of gold report and gold distribute aliases.
  • Also, a minor note of warning to anyone who uses those - I have a -lot- more that interfaces with them, so I can't promise it will work out of the box. You'll probably need to cut some of it out. Use it as you will.
    Current scripts: GoldTracker 1.2, mData 1.1
    Site: https://github.com/trevize-achaea/scripts/releases
    Thread: http://forums.achaea.com/discussion/4064/trevizes-scripts
    Latest update: 9/26/2015 better character name handling in GoldTracker, separation of script and settings, addition of gold report and gold distribute aliases.
Sign In or Register to comment.