This is an old revision of the document!


Create a Window Script

  1. Connect to the MUD with your existing Mudlet profile
  2. Click the “scripts” button in the toolbar
  3. Click the “add item” button to create a new script.
  4. Enter a name, like “Party Bonus Window”
  5. In “Add User Event Handler:” enter:
    sysConnectionEvnet
  6. Click the “+” button.
  7. Copy in the following source code to the text area.
    --------------------------------------------------
    -- BONUS WINDOW
    --------------------------------------------------
    function make_bonus_window()
    
      bonus_window = Geyser.UserWindow:new({
        name = "bonus_window",
        titleText = "BLURT BONUS",
        autoWrap = true,
        autoDock = false,
        x = "20%",
        y = "40%"
      })
    
      bonus_window:setFontSize(getFontSize())
      bonus_window:setFont(getFont("main"))
    
      return 1
    end
    
    make_bonus_window()
  8. Your scripts setting pages should now look exactly like this:
  9. Click the “Save Item” button