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
➜ Check repop from GMCP
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Quit
(16 posts) Bio
|
Date
| Tue 05 May 2015 06:37 PM (UTC) |
Message
| Hi
In Cmud I used to have a gmcp trigger to play a sound when
there was a repop in the area I was in.
But where do I put a trigger to catch when comm.repop.zone
send something.
I also use zone script alot, but think I can do that with
turning on/off trigger groups, but then again how do I get room.info.zone without checking for it all the time. | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Tue 05 May 2015 08:33 PM (UTC) |
Message
| Which GMCP/ATCP plugins (if any) are you currently using? They should broadcast a message letting you know of new messages arriving from the MUD, like repops. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #2 on Tue 05 May 2015 09:54 PM (UTC) Amended on Wed 06 May 2015 02:54 AM (UTC) by Nick Gammon
|
Message
| I've been doing some experimenting on Achaea.
Assuming you have no plugins installed, grab the GMCP_handler plugin from http://www.gammon.com.au/forum/?id=12834&reply=1#reply1 and install it.
[EDIT] See next reply.
That will catch the messages listed above "Char.Vitals", "Char.Status" etc. For each one a "handler" is called. (eg. gotCharacterVitals). Now in that you can check things. There is an example which shows your current HP.
Also the "Room.WrongDir" handler plays a sound.
I didn't see the "comm.repop.zone" message while I was there.
For debugging you can turn on gmcp debugging by typing:
Then you will see (rather wordy) messages as the GMCP messages arrive. To turn that off type:
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #3 on Wed 06 May 2015 02:26 AM (UTC) Amended on Wed 06 May 2015 03:35 AM (UTC) by Nick Gammon
|
Message
| Earlier suggestion completely reworked.
See: http://www.gammon.com.au/gmcp
Grab the GMCP_handler_NJG plugin from GitHub, and also the GMCP_message_receiver_test plugin.
 |
To save and install the GMCP_handler_NJG plugin do this:
- Go to the GitHub page: GMCP_handler_NJG.xml
- Select all the page and copy it to the Clipboard
- Open a text editor (such as Notepad) and paste the plugin into it
- Save to disk on your PC, preferably in your plugins directory, as: GMCP_handler_NJG.xml
- Go to the MUSHclient File menu -> Plugins
- Click "Add"
- Choose the file GMCP_handler_NJG.xml (which you just saved in step 4) as a plugin
- Click "Close"
The main GitHub page for this plugin is at: https://github.com/nickgammon/plugins/blob/master/GMCP_handler_NJG.xml.
There you will find the commit history and other information.
|
 |
To save and install the GMCP_message_receiver_test plugin do this:
- Go to the GitHub page: GMCP_message_receiver_test.xml
- Select all the page and copy it to the Clipboard
- Open a text editor (such as Notepad) and paste the plugin into it
- Save to disk on your PC, preferably in your plugins directory, as: GMCP_message_receiver_test.xml
- Go to the MUSHclient File menu -> Plugins
- Click "Add"
- Choose the file GMCP_message_receiver_test.xml (which you just saved in step 4) as a plugin
- Click "Close"
The main GitHub page for this plugin is at: https://github.com/nickgammon/plugins/blob/master/GMCP_message_receiver_test.xml.
There you will find the commit history and other information.
|
That demonstrates messages being processed by a plugin after being received by GMCP.
There is no polling involved, you just respond when the message arrives. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | 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.
14,972 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top