MU Soapbox

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Muxify
    • Mustard

    @hook on mux2.12

    MU Code
    2
    4
    520
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      ixokai last edited by

      I almost exclusively code on Rhost, so every so often when I do something on MUX, sometimes I get a little lost.

      I had #1 set hook_obj to an object my codewiz owns, but it doesn't seem to be running. Is this normal? I was surprised #1 was needed to set a @hook in the first place, does it also have to own the hook object itself? (I don't have #1 access and don't want to ask for it to do what I want to code here)

      1 Reply Last reply Reply Quote 0
      • I
        ixokai last edited by

        Actually this resolved itself though I'm not clear why.

        That said, I can't @hook/before pose -- it says its not a valid command. Any clue?

        1 Reply Last reply Reply Quote 0
        • skew
          skew last edited by skew

          @hook sets it for a session, or something. To have a permanent hook object, you need need to set it in the netmux.conf. This should help:

          https://github.com/skewskewskew/MUSHCode/blob/master/posebreak fix up.txt

          (Obvs you want the stuff in the commented out section, not the attribute to modify posebreak.)

          Edit: Derp. You need hook_obj 14 to read the dbref of the object. So, replace 14 with whatever dbref# your hook_obj is.

          I 1 Reply Last reply Reply Quote 0
          • I
            ixokai @skew last edited by

            Actually, my problem was a typo when I relayed what needed to be set to the person with #1 access. I don't have access to the .conf; we're using #1's @startup instead.

            Thanks though

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post