|
Voltec Newbie
Joined: 31 Oct 2004 Posts: 2
|
Posted: Sun Oct 31, 2004 7:07 pm
Newbie question concerning Carabas scripts... (ansi problem) |
Hello there,
I downloaded and installed one of Carabas scripts (Arcane language - aka, it displays what someone is casting near you, not the 'acrcane language' that you normally see). It installs fine and even translates with no problem, but it displays a bit off... I see the ansi codes rather than it changing the color.
Here is the relevent parts of the code... can you tell me what I need to change or enable in zMud?
Code: |
#CLASS {ArcaneLanguage}
#VAR ArcaneLanguageSub {identify}
#TRIGGER {^(%w) chants the magical (%w), '(*)'} {
#var ArcaneLanguageSub {%3}
#if ("%3" = "Bet Sanct") {#var ArcaneLanguageSub {armor}}
#if ("%3" = "Wis Quas Lor") {#var ArcaneLanguageSub {detect invisibility}}
...
#if ("%3" = "Wis Ort Ylem") {#var ArcaneLanguageSub {identify}}
#if ("%3" = "Kal Ex Mani") {#var ArcaneLanguageSub {protection from good}}
...
#sub {@ansi(bGreen)%1 chants the magical %2, '@ansi(White)@ArcaneLanguageSub@ansi(bGreen)'}
}
#CLASS 0
|
As an example, if the output window would have shown 'Wis Ort Ylem' for Identify, it now shows:
{@ansi(bGreen)NAME chants the magical %2, '@ansi(White)@ArcaneLanguageSub@ansi(bGreen)'
(the Name does display correctly, the colors do not).
I am a pretty good PHP programmer and am just looking to get started with these scripts... I probably will develop some of my own later on... just need a little help here.
Thanks,
Matt |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Sun Oct 31, 2004 7:33 pm |
Change all occurences of @ansi to %ansi
|
|
|
|
stick Newbie
Joined: 11 Nov 2003 Posts: 7 Location: USA
|
Posted: Sun Oct 31, 2004 7:58 pm |
Carabas wrote all of his scripts using his own color script. It should be available wherever you downloaded the arcane language subs. Check clangersidi.com, it's there.
|
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|