Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ Trying to send information to another world

Trying to send information to another world

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Septe   USA  (9 posts)  Bio
Date Sat 10 May 2014 12:55 PM (UTC)

Amended on Sat 10 May 2014 01:45 PM (UTC) by Septe

Message
I have tried to use multiple send, a copy of SendToWorld script, and the chat module.

This is the trigger I'm using. As you can see, I have a Lua sript file that uses SendToWorld that I have pasted below from the website (not my Mushclient which doesn't allow me to copy and paste)


<trigger
   enabled="y"
   match="^\&lt;(.*?)\/(.*?)hp (.*?)\/(.*?)m (.*?)mv (.*?)xp (.*?) align (.*?) gold (.*)\&gt;$"
   regexp="y"
   send_to="12"
   sequence="100"
  >
  <send>SendToWorld ("Bandersnatch", "&lt;%1/%2hp %3/%4m %5mv %6xp %7 align %8 gold %9&gt;")</send>
  </trigger>

function SendToWorld (name, message)

local otherworld

  otherworld = GetWorld (name)

  if otherworld == nil then
    Note ("World " .. name .. " is not open")
    return
  end

  Send (otherworld, message)

  -- alternative syntax:   otherworld:Send (message)

end -- of SendToWorld


I've also tried the Chat system which isn't really what I was looking for. I've tried the multiple send.

What is happening is that it sends the information to the other world directly to the mud which replies, "Huh?" Is there a way to send the information without sending it to the mud of that world?
Top

Posted by Septe   USA  (9 posts)  Bio
Date Reply #1 on Sat 10 May 2014 06:55 PM (UTC)
Message
Ok, I solved it. After reading and rereading the functions list carefully, it dawned on me that It's not Send that I wanted in that script. It's Note.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


8,643 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.