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
➜ Area Editor
➜ General
➜ I hope you might know... How to put a pause in this loop....
|
I hope you might know... How to put a pause in this loop....
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1
2
| Posted by
| Nick Gammon
Australia (23,169 posts) Bio
Forum Administrator |
| Date
| Reply #15 on Fri 30 Jun 2006 07:09 AM (UTC) |
| Message
|
Quote:
While those are rather humurous scenarios, Nick ...
Glad you like them. :)
If that is what he is trying to do, how about simply using the "on time interval" mob prog (whatever its name is, I'm not at my PC right now), and if it is in appropriate room, and sees an appropriate player, moves? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Samson
USA (683 posts) Bio
|
| Date
| Reply #16 on Fri 30 Jun 2006 01:48 PM (UTC) |
| Message
| | It may not be where things are leading in this thread now, but the mpsleep code is available from http://www.mudbytes.net/index.php?a=files&s=viewfile&fid=509 which includes the bugfix for it as well. I've never used it on a mob that is supposed to wander around, so the results might not be desirable, but this will provide the ability to delay commands in a prog. | | Top |
|
| Posted by
| Kingsmill
USA (78 posts) Bio
|
| Date
| Reply #17 on Fri 30 Jun 2006 04:18 PM (UTC) |
| Message
| I think I'm going to use if inroom($i) == room#
instead of the mobiles.... |
T.A.N.S.T.A.F.L.
There Aint No Such Thing As Free Lunch,
From the moon is a harsh mistress. | | Top |
|
| Posted by
| Kingsmill
USA (78 posts) Bio
|
| Date
| Reply #18 on Fri 30 Jun 2006 04:31 PM (UTC) |
| Message
| I am thinking about the following code:
look
if inroom($i) == 9902
mpdelay 3
south
look
if inroom($i) == 9904
mpdelay 3
west
look
if inroom($i) == 9903
mpdelay 3
northwest
look
if inroom($i) == 9901
mpdelay 3
south
look
if inroom($i) == 9900
mpdelay 3
east
look at $n
endif
endif
endif
endif
endif
:would it work ? If not how can I change it ? |
T.A.N.S.T.A.F.L.
There Aint No Such Thing As Free Lunch,
From the moon is a harsh mistress. | | Top |
|
| Posted by
| Kingsmill
USA (78 posts) Bio
|
| Date
| Reply #19 on Fri 30 Jun 2006 04:34 PM (UTC) |
| Message
| I might need to use mpsleep instead of mpdelay, and/or put the current code in a loop....
But I'm not sure.... |
T.A.N.S.T.A.F.L.
There Aint No Such Thing As Free Lunch,
From the moon is a harsh mistress. | | Top |
|
| Posted by
| Kingsmill
USA (78 posts) Bio
|
| Date
| Reply #20 on Fri 30 Jun 2006 04:40 PM (UTC) |
| Message
| | Would I need to mark an option that keeps her from wandering off her designated path, if so how would I do that ? |
T.A.N.S.T.A.F.L.
There Aint No Such Thing As Free Lunch,
From the moon is a harsh mistress. | | Top |
|
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Reply #21 on Fri 30 Jun 2006 05:16 PM (UTC) |
| Message
| | The sentinel flag prevents a mob from moving unless a program moves it around, so it sounds like that's what you want. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | | 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.
83,682 views.
This is page 2, subject is 2 pages long:
1
2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top