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 ➜ Bug reports ➜ Mistake in Help "Scripting Aliases"?

Mistake in Help "Scripting Aliases"?

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


Posted by Ked   Russia  (524 posts)  Bio
Date Fri 23 Aug 2002 12:28 PM (UTC)
Message
This is not really a bug... When trying to use World.AddAlias I reffered to the help file provided with MC 3.20 and used the convention from it:

world.AddAlias name, match_text, response_text, parameter, flags, scriptname

It also further provides an example:

World.addalias "teleport_alias", "teleport", "", "&", eEnabled, "DoTeleport"

I've used this as a template for my script, substituting the "&" above for "", however the script refused to execute sending a message with "Invalid type.." (or some such). I then proceeded to check with the function list on your website and it provides a different convention for AddAlias:

long AddAlias(BSTR AliasName, BSTR MatchText, BSTR ResponseText, long Flags, BSTR ScriptName);

I.e. 5 parameters, instead of 6 in the Help file. The website convention seems to work just fine. Just thought you'd like to know of this little problem...

Gratefull user
Top

Posted by Nick Gammon   Australia  (23,170 posts)  Bio   Forum Administrator
Date Reply #1 on Wed 28 Aug 2002 12:10 AM (UTC)
Message
Ah yes, the inbuilt help needs updating. The web site is the reference area for script routines.

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


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