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.
 Entire forum ➜ MUSHclient ➜ VBscript ➜ AddAlias

AddAlias

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


Posted by BlueEyes   (28 posts)  Bio
Date Sun 04 Oct 2009 06:55 AM (UTC)
Message
world.addalias "", "test", "bow @target", eEnabled+eExpandVariables+eReplace, ""

What am I doing wrong, I am guessing its the + which is Lua, but I'm trying VB now....
Top

Posted by Nick Gammon   Australia  (23,121 posts)  Bio   Forum Administrator
Date Reply #1 on Sun 04 Oct 2009 07:02 AM (UTC)
Message
What was the error message?

See http://www.gammon.com.au/scripts/doc.php?function=AddAlias

The "+" is OK in vbscript, maybe you don't have those constants defined. You need to use an include file to get them. Otherwise, just use the numbers from the page above. ie.

Instead of:


eEnabled+eExpandVariables+eReplace


use:


1 + 512 + 1024


(In other words, 1537).


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by BlueEyes   (28 posts)  Bio
Date Reply #2 on Sun 04 Oct 2009 07:34 AM (UTC)
Message
Thanks Nick, that worked amazingly well. Next question is I have this for a trigger line.

Today is the 4th of Urlachmar, 247 years after the Coming of Estarra. The phase of the moon is that of the Full Moon.

now I need to run off the numder/date only and it changes to like 1st, 2nd, 3rd, etc. etc. And I can substitute the phase of moon and all that. What I need is that if it is less than 15 and a certain month it adds certain aliases and if its equal or above it and a certain months it adds a different set of aliases.

Volcano 15 Kiani - 14 Dioni
Antlers 15 Dioni - 14 Vestian
Twin Crystals 15 Vestian - 14 Avechary
Dolphin 15 Avechary - 14 Dvarsh
Lion 15 Dvarsh - 14 Tzarin
Crocodile 15 Tzarin - 14 Klangiary
Burning Censer 15 Klangiary - 14 Juliary
Spider 15 Juliary - 14 Shanthin
Dragon 15 Shanthin - 14 Roarkian
Skull 15 Roarkian - 14 Estar
Bumblebee 15 Estar - 14 Urlachmar
Glacier 15 Urlachmar - 14 Kiani

Those are the list of dates that I need to have and need to trigger ideas?
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.


12,383 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.