I am trying to write a plugin for Achaea and I think everything is alright but now i'm stuck. I keep getting this error:
Line 73: Element name must start with letter or underscore, but starts with " " (problem in this file)
===========================================
Here is the actual plugin:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Wednesday, May 31, 2006, 3:53:56 PM -->
<!-- MuClient version 3.70 -->
<muclient>
<plugin
name="Health Change"
author="Jinze"
id="99e5a40f9e8c83f43dba7ff4"
language="Lua"
purpose="Shows Health Changes"
save_state="y"
date_written="2006-05-31 15:53:56"
requires="3.7"
version="1.2"
>
<description trim="y">
<![CDATA[
This plugin will show health changes on your prompt when you heal or are attacked.
prompt (on|off) to turn it on or off
]]>
</description>
<triggers>
<trigger
enabled="y"
expand_variables="y"
group="Prompt"
keep_evaluating="y"
match="(?P<chp>\d+)h, (?P<cmp>\d+)m, (?P<end>\d+)e ([cexkdb]+)\-$"
regexp="y"
script="HPprompt"
send_to="12"
sequence="100"
>
<send>world.SetVariable("chp", %<chp>)
world.SetVariable("cmp", %<cmp>)
</send>
</trigger>
</triggers>
<aliases>
<alias
match="^prompt (on|off)$"
expand_variables="y"
regexp="y"
send_to="12"
sequence="100"
>
<send>if "%1" == "on":
world.EnableTriggerGroup("Prompt", 1)
else:
world.EnableTriggerGroup("Prompt",0)
</send>
</alias>
</aliases>
<script>
def = HPprompt(name,output,wildcards):
world.SetVariable('chp', wildcards[0])
world.SetVariable('cmp', wildcards[1])
CSHP = int(world.GetVariable('CSHP'))
chp = int(wildcards[0])
defs = wildcards[3]
diff = CSHP-chp
if diff < 0:
diff = str(diff)
Ndiff = diff.replace('-','+')
diff = Ndiff
world.ColourTell('Silver','black','[' + str(diff) + ']')
elif diff:
world.ColourTell('Silver','black','[-' + str(diff) + ']')
world.SetVariable('CSHP',chp)
</script>
=========================================
Any ideas?
Line 73: Element name must start with letter or underscore, but starts with " " (problem in this file)
===========================================
Here is the actual plugin:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Wednesday, May 31, 2006, 3:53:56 PM -->
<!-- MuClient version 3.70 -->
<muclient>
<plugin
name="Health Change"
author="Jinze"
id="99e5a40f9e8c83f43dba7ff4"
language="Lua"
purpose="Shows Health Changes"
save_state="y"
date_written="2006-05-31 15:53:56"
requires="3.7"
version="1.2"
>
<description trim="y">
<![CDATA[
This plugin will show health changes on your prompt when you heal or are attacked.
prompt (on|off) to turn it on or off
]]>
</description>
<triggers>
<trigger
enabled="y"
expand_variables="y"
group="Prompt"
keep_evaluating="y"
match="(?P<chp>\d+)h, (?P<cmp>\d+)m, (?P<end>\d+)e ([cexkdb]+)\-$"
regexp="y"
script="HPprompt"
send_to="12"
sequence="100"
>
<send>world.SetVariable("chp", %<chp>)
world.SetVariable("cmp", %<cmp>)
</send>
</trigger>
</triggers>
<aliases>
<alias
match="^prompt (on|off)$"
expand_variables="y"
regexp="y"
send_to="12"
sequence="100"
>
<send>if "%1" == "on":
world.EnableTriggerGroup("Prompt", 1)
else:
world.EnableTriggerGroup("Prompt",0)
</send>
</alias>
</aliases>
<script>
def = HPprompt(name,output,wildcards):
world.SetVariable('chp', wildcards[0])
world.SetVariable('cmp', wildcards[1])
CSHP = int(world.GetVariable('CSHP'))
chp = int(wildcards[0])
defs = wildcards[3]
diff = CSHP-chp
if diff < 0:
diff = str(diff)
Ndiff = diff.replace('-','+')
diff = Ndiff
world.ColourTell('Silver','black','[' + str(diff) + ']')
elif diff:
world.ColourTell('Silver','black','[-' + str(diff) + ']')
world.SetVariable('CSHP',chp)
</script>
=========================================
Any ideas?