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
➜ Hyperlinking in OnPluginPacketReceived
Hyperlinking in OnPluginPacketReceived
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Areadien
USA (47 posts) Bio
|
Date
| Sun 19 Aug 2018 11:15 PM (UTC) Amended on Sun 19 Aug 2018 11:22 PM (UTC) by Areadien
|
Message
| So my MUD changed room numbers from decimal format to hexadecimal. Well, the room numbers now are so long that, when I display them in my room name line on the compass, it now takes up two lines of space. So now I want to create a hyperlink attached to the name of the room. So instead of having something like
Lobby of the Ivory Tower A438B5509ED56F63FAAC70D0EA84B68C11945B36 [ -1, -1] - N -
(------------------------------------------------------------------------------) W <-#-(M)---> E
- # -
I'd have something like
Lobby of the Ivory Tower [ -1, -1] - N -
(------------------------------------------------------------------) W <-#-(M)---> E
- # -
where the underlined portion is a link to mapper goto <room number>.
How might I do this? | Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #1 on Mon 20 Aug 2018 03:48 AM (UTC) |
Message
| I wouldn't do it in OnPluginPacketReceived. Just make a trigger to match that line, omit it, then redisplay the parts you want, including using the Hyperlink function to hyperlink parts of it. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Areadien
USA (47 posts) Bio
|
Date
| Reply #2 on Mon 20 Aug 2018 02:05 PM (UTC) |
Message
| Actually, they switched the room numbers back to their originals, so I don't have to do anything right now. | 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.
10,263 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top