Register forum user name Search FAQ

Gammon Forum

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 ➜ alias not working properly

alias not working properly

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Den010   USA  (8 posts)  Bio
Date Thu 10 Oct 2013 01:14 AM (UTC)
Message
I am trying to write aliases to use various portals in Aardwolf.

get time 1108784533
hold time
enter
put time 1108784533
dual @second

it will get the portal from the bag, hold it, enter it, then dual my offhand weapon. It will not put the portal back in the bag. It says I do not have that. If I copy and paste the exact line (put time 1108784533) it will put it in the bag.

My question is: Why won't it do it from the alias? Everything else works.
Top

Posted by Fiendish   USA  (2,558 posts)  Bio   Global Moderator
Date Reply #1 on Thu 10 Oct 2013 02:58 AM (UTC)

Amended on Thu 10 Oct 2013 03:02 AM (UTC) by Fiendish

Message
oh. You have to remove time first before putting it in a container.

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Den010   USA  (8 posts)  Bio
Date Reply #2 on Thu 10 Oct 2013 03:03 AM (UTC)
Message
<aliases>
<alias
match="losttime"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>get time 1108784533
hold time
enter
put time 1108784533
dual @second</send>
</alias>
</aliases>
Top

Posted by Den010   USA  (8 posts)  Bio
Date Reply #3 on Thu 10 Oct 2013 03:07 AM (UTC)
Message
that was it. this is what i have now. Thank you. I knew it would be something simple I overlooked.

<aliases>
<alias
match="losttime"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>get time 1108784533
hold time
enter
rem time
put time 1108784533
dual @second</send>
</alias>
</aliases>
Top

Posted by Den010   USA  (8 posts)  Bio
Date Reply #4 on Thu 10 Oct 2013 11:30 AM (UTC)
Message
One more question.

Can you not use variables in macros?
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #5 on Thu 10 Oct 2013 10:23 PM (UTC)
Message
Template:faq=17 Please read the MUSHclient FAQ - point 17.


Make the macro call an alias. Then the alias can use variables.

- 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.


22,129 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.