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
➜ Timers and in-active worlds
|
Timers and in-active worlds
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Cyrrl
(2 posts) Bio
|
| Date
| Sun 13 Apr 2003 06:20 PM (UTC) |
| Message
| Okay.. here's a question. Say your character on a mud is an alchemist. As you may very well know, alchemists depend on ingredient/solvents/etc. to make whatever they make. There is a particular spot I would like my char to visit, say, every 45 min and pick up the items there. I've made the timer, but I cannot figure out how to quit from the world and then rejoin; because apparently the items will not regen with a PC hanging about (no babysitting! lol)
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Sun 13 Apr 2003 11:54 PM (UTC) |
| Message
| If you make the timer, and click "active when disconnected" then the timer will continue to work if you disconnect (eg. type "quit").
Then when the timer fires it can check if you are connected, and if not, connect you, wait 20 seconds (for the connection to complete) and then pick up the item. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Cyrrl
(2 posts) Bio
|
| Date
| Reply #2 on Wed 23 Apr 2003 02:59 PM (UTC) |
| Message
| | how could I make the client recconect me..? I figure, I could do it with the world.connect command, but... I can't figure out how to put that in a script, and call it in the timer. Help, please..? | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #3 on Wed 23 Apr 2003 11:53 PM (UTC) |
| Message
| Something like this should work, it needs the latest version (currently 3.38) because it uses inline scripting:
<timers>
<timer enabled="y"
minute="45"
send_to="12"
active_closed="y" >
<send>if not IsConnected then
Note "Not connected - reconnecting"
Connect
end if
Note "Time to visit the shop"</send>
</timer>
</timers>
|
- 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,249 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top