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 ➜ need help with aliases and variables

need help with aliases and variables

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


Posted by Babochka   USA  (21 posts)  Bio
Date Sat 14 May 2005 11:19 PM (UTC)
Message
hello

I play Achaea and I'm a dawnstrider.
in order to kill rats, i have to secrete sumac then bite rat.

I want to know how to make an alias that will use my victim as a variable. I also need to know how to put a timer or delay between the two commands

I tried doing this:
bb *

secrete sumac
bite %1

it doesnt work.

can someone tell me how to make variables for my aliases and stuff? thanks.
Top

Posted by tobiassjosten   Sweden  (79 posts)  Bio
Date Reply #1 on Sun 15 May 2005 12:27 AM (UTC)
Message
You could take a look at the LUA-code in my preserving plugin (for Imperian, but same principle) at http://www.crox.org/cxPreserve.xml.

What doesn't work? What messages do you get?

Simplicity is Divine | http://nogfx.org/
Top

Posted by Babochka   USA  (21 posts)  Bio
Date Reply #2 on Sun 15 May 2005 12:37 AM (UTC)
Message
I get that the alias doesnt work because it goes too fast.

I secrete sumac, then the bite rat come too quick and it says you dont have venom to kill a rat.

I need to know how to put a delay in the alias and also how to make a variable so i can change variable and only type bb to kill rat or crow or wildcat or whatever

Top

Posted by Babochka   USA  (21 posts)  Bio
Date Reply #3 on Sun 15 May 2005 02:25 AM (UTC)
Message
To Life Immortal

OK

I found a way to do it.

First, I made an alias called ss for secrete sumac.
Whenever you secrete a poison, you get a message on the screen that says You feel the power of the venom sumac flowing through your veins.

I then make a trigger on 'You feel the power of the venom' and in the send box, i type bite rat.

It works :)

Babochka2a
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #4 on Sun 15 May 2005 05:56 AM (UTC)
Message
That works, or you can use a 'DoAfter' command to send something after a specific number of seconds. However, the workaround you came up with will work better and more reliantly (especially if your server/connection has bouts of lag).

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
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.


17,493 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.