Trevize's Scripts

Hey all. Making one thread for all of my scripts, for simplicity. Two scripts currently. GoldTracker, which you may have seen before, and a new one called mData.

Using github to host them: https://github.com/trevize-achaea/scripts/releases

GoldTracker is a simple yet flexible gold tracking script for solo, group, or org hunts. GOLD HELP (in lowercase) lists the commands. It will pick up gold from only kills by your group, split gold between group members evenly, and keep track of any percentage you'd like to allocate to an org should you so desire. Individuals can be paused an unpaused, and can request 'gold report' over PT.

mData is the new one. It's a collection of my GMCP handling functions. It stores and updates GMCP data on many things, in many cases in an easier to use format than GMCP, and in some cases evaluating things to create new data. It also calls events of its own when it's done building tables from GMCP, so allow easy scripting. Just type mData in-game to get an idea of what it stores and how to use it. For the more adventurous, check out the script itself. I actually use this for my own UI, GMCP targetting, chat capture, and more.

I'll post here for updates to scripts as well as new additions. Next on the list is my GMCP targetting script, I think.

Let me know if you have any questions.
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.

Comments

  • Since I got a few questions on this, to clarify, after adding mData as a package - mData.comms won't immediately start capturing communications. GMCP doesn't initialize with the Comm module. The script initializes it on startup, so restarting Mudlet is one option. The second is to send this using the lua alias:

    sendGMCP ('Core.Supports.Add ["Comm.Channel 1"]')
    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.
  • Awesome work @Trevize , love your Gold Tracker.

    How do I see the list in mdata.items.denizens using the mdata alias?
  • Love the gold tracker. Best script since Rainbow Crits.
  • LothienLothien Montréal, Québec
    Rainbows! :proud: 
  • I installed the rainbow crits script last night. Its like hunting on a wave of drugged up unicorns. The gold tracker is my next script to try :)

    (Party): Mezghar says, "Stop."
  • Dochitha said:
    Awesome work @Trevize , love your Gold Tracker.

    How do I see the list in mdata.items.denizens using the mdata alias?
    It's designed for enabling easier GMCP scripting, so I only included the aliases initially to explain the stored data. The expectation is that the user can look through the script or use the 'lua' alias to see what is stored.

    With that said, I don't see the harm in displaying the full contents of the item tables, and ease of use is paramount. So I've created aliases and updated mData, it's in the newest release. See the link in my sig or the initial post.
    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.

  • Sobriquet said:
    I installed the rainbow crits script last night. Its like hunting on a wave of drugged up unicorns. The gold tracker is my next script to try :)
    Hey Sobri, I don't have actual manuals for using these things yet - that's on my to-do list. For the goldtracker though, the options are in variables at the top of the script: once you've added it as a package, go to the script and at the very top, change at the very least the name. You can also change the command separator to an ingame one to make the party chat look better, and add a container to put the gold away.

    Speaking of the gold tracker, two known bugs. Tells from paused people asking for a gold report will not work, and turning the gold tracker off doesn't turn the gold report trigger off. I have them fixed in my version, I just need to upload the update.
    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.
  • KlendathuKlendathu Eye of the Storm
    Trevize said:

    Sobriquet said:
    I installed the rainbow crits script last night. Its like hunting on a wave of drugged up unicorns. The gold tracker is my next script to try :)
    Hey Sobri, I don't have actual manuals for using these things yet - that's on my to-do list. For the goldtracker though, the options are in variables at the top of the script: once you've added it as a package, go to the script and at the very top, change at the very least the name. You can also change the command separator to an ingame one to make the party chat look better, and add a container to put the gold away.

    Speaking of the gold tracker, two known bugs. Tells from paused people asking for a gold report will not work, and turning the gold tracker off doesn't turn the gold report trigger off. I have them fixed in my version, I just need to upload the update.
    I raised an issue on Github about the goldtracker too :)

    Tharos, the Announcer of Delos shouts, "It's near the end of the egghunt and I still haven't figured out how to pronounce Clean-dat-hoo."
  • edited September 2015
    Klendathu said:

    I raised an issue on Github about the goldtracker too :)
    I responded and closed it - it's working as intended. There's a different way I plan to handle it later, but for now, adjusting settings in the script is expected.

    I've actually just uploaded an update to the goldtracker that fixes the above two bugs, adds an explanation to the gold help alias, and includes the addition of a setting to a getalias variable that you can set to whatever in-game alias you have for picking up gold and doing whatever (for nested containers, containers with a lid, etc).

    Example of what the top of the script could look like, with my name, a vertical pipe command separator, gg ingame alias to get gold, and svo's prompt function:

    local me = "Trevize"

    local commandseparator = "|"
    local getalias = "gg"
    local container = false

    local promptfunction = function ()
      svo.showprompt ()
      cecho ("\n")
    end -- func

    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.
  • GoldTracker 1.2

    Character name handling: After testing a few different options with some friends, I ended up making the goldtracker initialize/reset with no names. Doing gold on (or goldtracker on) will add your name if none are already listed.

    Settings changes: settings are now in a separate script. Everything except 'me' still exists.

    New aliases: gold report for a manual PT announce, and gold distribute which attempts to give everyone their gold (and removes the gold from the tracker of those it succeeds on).
    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.
  • GoldTracker bugfix with the new distribute alias. Distribute was intended to give people the gold and drop them to 0 when you did.

    1) I changed 'give # gold to person' to 'give # money to person' to avoid conflict with gold comms. 

    2) I used math.floor when comparing gold given to gold tracked, as it wasn't matching when someone was given 12345 gold but had 12345.6 gold in the tracker.
    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.