[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  How might I pause and then resume a speedwalk?

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: How might I pause and then resume a speedwalk?
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Posted by Weston   (28 posts)  [Biography] bio
Date Tue 05 Oct 2004 01:36 AM (UTC)  quote  ]
Message
That did it. It works now!
Thanks again, Flannel.
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Mon 04 Oct 2004 07:55 PM (UTC)  quote  ]

Amended on Mon 04 Oct 2004 07:56 PM (UTC) by Flannel

Message
My error was because it was QueueTemp and in my alias I had TempQueue.
If you change it, it should work.

And that way you wont have to worry about adding aliases, or anything.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
[Go to top] top

Posted by Weston   (28 posts)  [Biography] bio
Date Mon 04 Oct 2004 04:30 PM (UTC)  quote  ]
Message
Thank you very much for helping, Flannel!

When I tried your aliases I got this error message:
Quote:
Execution of line 3 column 1

Wrong number of arguments or invalid property assignment: 'getvariable'
Line in error:


So then I changed the aliases to:


Quote:
<alias
match="^pause$"
enabled="y"
echo_alias="y"
regexp="y"
send_to="12"
ignore_case="y"
sequence="100"
>
<send>dim speedwalkQueue
dim iCount
dim NewQueue

newQueue = &quot;&quot;
speedwalkQueue = World.GetQueue
If Not IsEmpty (speedwalkQueue) Then
for iCount = lbound (speedwalkQueue) to ubound (speedwalkQueue)
newQueue = newQueue &amp; speedwalkQueue(iCount) &amp; VBCrLf
world.DeleteVariable &quot;QueueTemp&quot;
setvariable &quot;QueueTemp&quot;, newQueue
world.discardqueue
next
End If
enablealias &quot;speedwalkresume&quot;, 1</send>
</alias>
<alias
name="SpeedwalkResume"
match="^resume$"
enabled="y"
echo_alias="y"
regexp="y"
send_to="12"
ignore_case="y"
sequence="100"
>
<send>dim speedwalkQueue2

speedwalkQueue2 = world.GetVariable (&quot;QueueTemp&quot;)
world.addalias &quot;SpeedwalkResume2&quot;, &quot;resume2&quot;, speedwalkQueue2, 5121, &quot;&quot;
world.Execute &quot;resume2&quot; '</send>
</alias>



My 'resume' alias might not be pretty, but it actually seems to work.
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Sun 03 Oct 2004 07:57 PM (UTC)  quote  ]

Amended on Sun 03 Oct 2004 08:00 PM (UTC) by Flannel

Message

<aliases>
  <alias
   name="SpeedwalkResume"
   match="^resume$"
   enabled="y"
   echo_alias="y"
   regexp="y"
   ignore_case="y"
   send_to="12"
   sequence="100"
  >
  <send>queue getvariable(&quot;TempQueue&quot;), false
enablealias &quot;speedwalkresume&quot;, 0
getvariable&quot;TempQueue&quot;, &quot;&quot;
</send>
  </alias>
  <alias
   match="^pause$"
   enabled="y"
   echo_alias="y"
   regexp="y"
   ignore_case="y"
   send_to="12"
   sequence="100"
  >
  <send>dim speedwalkQueue
dim iCount
dim NewQueue

newQueue = &quot;&quot;
speedwalkQueue = World.GetQueue
world.discardqueue
If Not IsEmpty (speedwalkQueue) Then
for iCount = lbound (speedwalkQueue) to ubound (speedwalkQueue)
newQueue = newQueue &amp; speedwalkQueue(iCount) &amp; VBCrLf
setvariable &quot;QueueTemp&quot;, newQueue
next
End If
enablealias &quot;speedwalkresume&quot;, 1</send>
  </alias>
</aliases>


~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
[Go to top] top

Posted by Weston   (28 posts)  [Biography] bio
Date Sun 03 Oct 2004 07:02 PM (UTC)  quote  ]
Message
You may have heard this before, but this time I would like some specifics, please!


I was thinking of using two aliases.
One named 'pause' to temporary stop, and at the same time store the speedwalk queue.

Then I would do my stuff; attack something for example.

Then I would use that second alias, named 'resume'. It would get the saved speedwalk queue and execute it as a speedwalk.


The best that I've been able to do is:

dim speedwalkQueue
dim iCount

speedwalkQueue = World.GetQueue

If Not IsEmpty (speedwalkQueue) Then
for iCount = lbound (speedwalkQueue) to ubound (speedwalkQueue)
world.addalias "", "resume", speedwalkQueue (iCount), eEnabled or eAliasSpeedWalk, ""
world.discardqueue
next
End If


The problem with this solution is that I end up with ten different aliases each with one direction.
[Go to top] 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.


1,709 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]