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 ➜ Script troubles

Script troubles

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


Posted by Krelm   (4 posts)  Bio
Date Sat 08 Oct 2011 10:19 PM (UTC)
Message
So I'm trying to add a script to MUSHClient (v4.61) to add colors to an otherwise colorless MUD, and I'm running into trouble. I save the file in mushclient\scripts and open it with the client's scripting deal, click the "enable scripting" box on, change the language to lua, etc-- everything I'm supposed to do-- but when I try to run the script I keep getting this error message:


[string "Script file"]:1: unexpected symbol near '<'


And since I know next to nothing about coding or scripting, I have no idea how to fix it. The first few lines of the code are:


<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Friday, October 07, 2011, 2:32 PM -->
<!-- MuClient version 4.61 -->
<!-- Written by Nick Gammon -->
<!-- Home Page: http://www.mushclient.com/ -->
<muclient>

<!-- triggers -->

<triggers
   muclient_version="4.61"
   world_file_version="15"
   date_saved="2011-10-07 14:32:02"
  >
  <trigger
   custom_colour="17"
   enabled="y"
   ignore_case="y"
   match="* ask, *"
   sequence="100"
   other_text_colour="royalblue"
  >


Anyone know what the problem might be? Thanks.
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Sun 09 Oct 2011 02:34 AM (UTC)
Message
You save what file? Looks like you are trying to open the world file as a script file.

Try this tutorial on scripting basics:

http://www.gammon.com.au/forum/?id=10212

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


11,035 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.