Welcome to the Achaea Forums! Please be sure to read the Forum Rules.

Display gold in mudlet gui

SvadisSvadis Member Posts: 5
how would I go about making a small window to display the gold I am carrying in mudlet?

Comments

  • AhmetAhmet Wherever I wanna beMember Posts: 3,370 @@ - Legendary Achaean
    You'll want a script that creates a miniConsole.

    You'll want a script that's hooked to a GMCP event for your character stats.

    Inside the second script, you'll want to clear the miniConsole, then echo your current gold (which is stored in GMCP) to your miniConsole.
    Huh. Neat.
  • AhmetAhmet Wherever I wanna beMember Posts: 3,370 @@ - Legendary Achaean
    The mudlet clan is also a good place to ask questions if you're struggling with something in particular.
    Huh. Neat.
  • SvadisSvadis Member Posts: 5
    how can I join the mudlet clan?
  • SvadisSvadis Member Posts: 5
    Thank you for pointing me in the right direction, I figured it out.
  • SvadisSvadis Member Posts: 5
    is there a command I need to use inside the script to make it update? It pulls the info when I log in but does not update the miniconsole any other time
  • KlendathuKlendathu Eye of the StormMember Posts: 3,178 @@ - Legendary Achaean
    Assuming your routine to display gold is displayGold(), add the following line to the bottom of the script block containing displayGold(), after the end of the function:
    registerAnonymousEventHandler("gmcp.Char.Status.gold","displayGold")


    Every time your gold amount is updated, it'll fire the script.

    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."
Sign In to Comment.