[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Script troubles

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Script troubles

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Krelm   (4 posts)  [Biography] bio
Date Sat 08 Oct 2011 10:19 PM (UTC)  quote  ]
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.
[Go to top] top

Posted by Nick Gammon   Australia  (18,800 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sun 09 Oct 2011 02:34 AM (UTC)  quote  ]
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
[Go to top] 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.


477 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]