|
dogotemn Beginner
Joined: 05 Jul 2007 Posts: 21
|
Posted: Thu Jan 10, 2008 1:24 am
XML Import |
I have yet to see an import of any type work with CMUD. in ZMUD i noticed you couldn't import things withi special characters in them. I used to c&p from notepad directly into the program to get these to work... I can't seem to do this even with XML in CMUD as hitting save after doing so does nothing. :( any tips?
|
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Thu Jan 10, 2008 1:50 am |
What exactly are you importing? Perhaps you can copy/paste it here. I use Notepad++, which allows me to view all XML files with a bit more ease. I haven't had too much trouble importing them, with the occasional hiccup because of older file settings.
Charneus |
|
|
|
dogotemn Beginner
Joined: 05 Jul 2007 Posts: 21
|
Posted: Thu Jan 10, 2008 1:54 am |
here is my code. it's a whole deal... line71 col529 ... invalid xml character found:
Code: |
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<class name="prompt">
<trigger priority="300" trigontrig="false">
<pattern><![CDATA[^(*)~<(%n)/(%n)hp (%n)/(%n)m (%n)/&%n{prompt.mvMax}mv &%d{prompt.brCur}br ~[(*)~]risk (%n)b (*)xp ~[(%w)~]~[(*)~]~[(%w)PK~]~>$]]></pattern>
<value>#gag
#addkey prompt flag %1
#addkey prompt hpModSet %switch( @prompt.hpModSet == 0, 1, @prompt.hpModSet == 1, 2, @prompt.hpModSet == 2, 3)
#if (%2 != @prompt.hpCur) {
#addkey prompt hpLst @prompt.hpCur
#addkey prompt hpCur %2
prCalcHp
} {}
#if (%3 != @prompt.hpMax) {
#addkey prompt hpMaxLst @prompt.hpMax
#addkey prompt hpMax %3
prCalcHp
} {}
#addkey prompt mModSet %switch( @prompt.mModSet == 0, 1, @prompt.mModSet == 1, 2, @prompt.mModSet == 2, 3)
#if (%4 != @prompt.mCur) {
#addkey prompt mLst @prompt.mCur
#addkey prompt mCur %4
prCalcMn
#if (@prompt.firstTick) {#addkey prompt firstTick 0} {}
} {}
#if (%5 != @prompt.mMax) {
#addkey prompt mMax %5
prCalcMn
} {}
#if (%6 != @prompt.mvCur) {
#addkey prompt mvLst @prompt.mvCur
#addkey prompt mvCur %6
#addkey prompt mvPrc %abs( %float( (%float( @prompt.mvCur) / %float( @prompt.mvMax)) * 100))
#addkey prompt mvCurCol @prColorMoves( @prompt.mvPrc)
} {}
#addkey prompt risk %9
#addkey prompt blood %10
#if (%11 != @prompt.xpCur) {
#addkey prompt xpLst @prompt.xpCur
#addkey prompt xpComma %11
#addkey prompt xpCur %replace( %11, ",", "")
#if (@prompt.xpCur != @prompt.xpLst) {
#addkey prompt xpMod (@prompt.xpLst - @prompt.xpCur)
#addkey prompt xpLoose (@prompt.xpLoose + @prompt.xpMod)
#if (@prompt.xpMod >= @prompt.level * 1000) {
#addkey prompt xpModCur @prompt.xpMod
#addkey prompt xpLoose 0
#addkey prompt xpLoose (@prompt.xpLoose + @prompt.xpMod)
} {}
#addkey prompt xpDown (@prompt.xpCur / @prompt.xpModCur)
prCalcXp
} {}
} {}
#addkey prompt gspCur %12
#addkey prompt bspCur %13
#if (%14 != @prompt.pkCur) {
#addkey prompt pkLst @prompt.pkCur
#addkey prompt pkCur %14
} {}
#addkey prompt brPrc %abs( %float( (%float( @prompt.brCur) / %float( 100)) * 100))
#addkey prompt brCurCol @prColorMoves( @prompt.brPrc)
prCalcPK
prGspColor
prUpdate</value>
</trigger>
<func name="prColorMoves">
<value>#return (%switch($p > 75,"bold,blue",$p > 50,"bold,green",$p > 25,"bold,yellow","bold,red"))</value>
<arglist>$p</arglist>
</func>
<var name="prompt" type="Record" usedef="true">
<value><![CDATA[hpUpCol=bold,white,red|hpPrc=100|hpBars=20|mLst|xpDown=0|mDownCol=bold,white,red|mShieldOn=0|mvCurCol=bold,blue|mModColor=white|mUpCol=bold,white,green|mUp=0|gspCur=sfimqpv|mModBars=0|hpModColor=white|mModSet=1|risk=-|hpMax=888|hpCurCol=bold,cyan|hpCur=888|xpLoose=-85794172|hpLst|mDir=1|mMod=0|hpDownCol=bold,white,red|hpColorDown=bold,cyan|mColorUp=bold,black|trySneak=1|xpCur=85794172|mUpdateUp=61946|brPrc=100|xpLst=85794172|hpModBars=0|hpUpdateUp=61946|mColorDown=bold,cyan|pkCur=L|mvPrc=100|gspColor=[0;37;40ms[0;37;40mf[0;37;40mi[0;37;40mm[0;37;40mq[0;37;40mp[0;37;40mv|pkLst|/|hpUpLst=0|blood=0|mPrc=100|xpLeft=[0;33;40m0[0;37;40m|mCurCol=bold,cyan|xpComma=85,794,172|hpDir=1|hpMod=0|hpColorUp=bold,black|brCurCol=bold,blue|hpUp=0|brCur=100|pkCurCol|hpModSet=1|mUpLst=0|mDown=0|xpMod=-85794172|mvMax=560|mvCur=560|mShieldBars=0|xpChange=[0;53;40;1m[0;37;40m|bspCur|hpDown=0|hpMaxLst|mMax=674|mBars=20|mvLst|mCur=674|flag]]></value>
<default>/</default>
</var>
<alias name="prCalcColor">
<value>$t = ((((%time(h) * 60) + %time(n)) * 60) + %time(s))
#addkey prompt hpColorUp @prColorUpdate(($t - @prompt.hpUpdateUp))
#addkey prompt hpColorDown @prColorUpdate(($t - @prompt.hpUpdateDown))
#addkey prompt mColorUp @prColorUpdate(($t - @prompt.mUpdateUp))
#addkey prompt mColorDown @prColorUpdate(($t - @prompt.mUpdateDown))</value>
</alias>
<func name="prColorUpdate">
<value>#return (%switch($c <= 2,"bold,cyan",$c <= 4,"cyan",$c <= 8,"brown",$c <=12,"gray",1,"bold,black"))</value>
<arglist>$c</arglist>
</func>
<alias name="prCalcHp">
<value><![CDATA[#addkey prompt hpMod (@prompt.hpCur - @prompt.hpLst)
#addkey prompt hpPrc %abs( %float( ( %float( @prompt.hpCur) / %float( @prompt.hpMax)) * 100))
#addkey prompt hpBars %int( @prompt.hpPrc / 5)
#addkey prompt hpModSet 1
#if (@prompt.hpMod < 0) {
#addkey prompt hpDir 0
#addkey prompt hpModColor "gray"
$hh = %int( %abs( %float( ( %float( @prompt.hpLst) / %float( @prompt.hpMax)) * 100)) / 5)
#if ($hh != @prompt.hpBars) {
#addkey prompt hpModBars ($hh - @prompt.hpBars)
#addkey prompt hpBars ( @prompt.hpBars - @prompt.hpModBars)
} {#addkey prompt hpModBars 0}
#if (@prompt.hpModBars < 4) {#addkey prompt hpModColor "brown"} {#addkey prompt hpModColor "bold,black"}
#if (%abs( @prompt.hpMod) >= @prompt.hpThr) {
#addkey prompt hpDownLst %abs( @prompt.hpMod)
#addkey prompt hpUpdateDown ((((%time( h) * 60) + %time( n)) * 60) + %time( s))
} {}
} {
#addkey prompt hpDir 1
$hh = %int( %abs( %float( ( %float( @prompt.hpLst) / %float( @prompt.hpMax)) * 100)) / 5)
#if ($hh != @prompt.hpBars) {
#addkey prompt hpModBars (@prompt.hpBars - $hh)
#addkey prompt hpBars ( @prompt.hpBars - @prompt.hpModBars)
} {#addkey prompt hpModBars 0}
#if (@prompt.hpModBars < 4) {#addkey prompt hpModColor "bold,red"} {#addkey prompt hpModColor "white"}
#if (%abs( @prompt.hpMod) >= @prompt.hpThr) {
#addkey prompt hpUpLst %abs( @prompt.hpMod)
#addkey prompt hpUpdateUp ((((%time( h) * 60) + %time( n)) * 60) + %time( s))
}
}
#addkey prompt hpMod %abs( @prompt.hpCur - @prompt.hpLst)
#addkey prompt hpDown (@prompt.hpCur / @prompt.hpDownLst)
#addkey prompt hpUp ((@prompt.hpMax - @prompt.hpCur) / @prompt.hpUpLst)
#addkey prompt hpCurCol @prColorStat( @prompt.hpPrc)
#addkey prompt hpDownCol @prColorDown( @prompt.hpDown)
#addkey prompt hpUpCol @prColorDown( @prompt.hpUp)]]></value>
</alias>
<func name="prColorStat">
<value><![CDATA[#return (%switch($p == 100,"bold,cyan",$p > 75,"bold,blue",$p > 50,"bold,green",$p > 25,"bold,yellow",$p > 10,"bold,red",$p > 0,"bold,white,red",1,"bold,white,red"))]]></value>
<arglist>$p</arglist>
</func>
<func name="prColorDown">
<value>#return (%switch($c > 10,"red",$c > 5,"bold,red",1,"bold,white,red")) </value>
<arglist>$c</arglist>
</func>
<func name="prColorUp">
<value>#return (%switch($c > 10,"green",$c > 5,"bold,green",1,"bold,white,green"))</value>
<arglist>$c</arglist>
</func>
<alias name="prCalcMn">
<value><![CDATA[#if (@prompt.mShieldCol == "black,magenta") {#addkey prompt mShieldCol "magenta"} {}
#addkey prompt mMod (@prompt.mCur - @prompt.mLst)
#addkey prompt mPrc %abs( %float( ( %float( @prompt.mCur) / %float( @prompt.mMax)) * 100))
#addkey prompt mBars %int( @prompt.mPrc / 5)
#addkey prompt mShieldBars %int( @prompt.mShieldPrc / 5)
#addkey prompt mModSet 1
#if (@prompt.mMod < 0) {
#addkey prompt mDir 0
#addkey prompt mModColor "gray"
$mm = %int( %abs( %float( ( %float( @prompt.mLst) / %float( @prompt.mMax)) * 100)) / 5)
#if ($mm != @prompt.mBars) {
#addkey prompt mModBars ($mm - @prompt.mBars)
#addkey prompt mBars ( @prompt.mBars - @prompt.mModBars)
} {#addkey prompt mModBars 0}
#if (@prompt.mModBars < 4) {#addkey prompt mModColor "cyan"} {#addkey prompt mModColor "bold,black"}
#if (%abs( @prompt.mMod) >= @prompt.mThr) {
#addkey prompt mDownLst %abs( @prompt.mMod)
#if (@prompt.mShieldOn) {#addkey prompt mShieldCol "black,magenta"} {}
#addkey prompt mUpdateDown ((((%time( h) * 60) + %time( n)) * 60) + %time( s))
} {}
} {
#addkey prompt mModColor "bold,blue"
$mm = %int( %abs( %float( ( %float( @prompt.mLst) / %float( @prompt.mMax)) * 100)) / 5)
#if ($mm != @prompt.mBars) {
#addkey prompt mModBars (@prompt.mBars - $mm)
#addkey prompt mBars ( @prompt.mBars - @prompt.mModBars)
} {#addkey prompt mModBars 0}
#if (@prompt.mModBars < 4) {#addkey prompt mModColor "bold.blue"} {#addkey prompt mModColor "white"}
#if (%abs( @prompt.mMod) >= @prompt.mThr) {
#addkey prompt mDir 1
#addkey prompt mUpLst %abs( @prompt.mMod)
#addkey prompt mUpdateUp ((((%time( h) * 60) + %time( n)) * 60) + %time( s))
} {}
}
#addkey prompt mMod %abs( @prompt.mCur - @prompt.mLst)
#addkey prompt mModSet 1
#addkey prompt mDown (@prompt.mCur / @prompt.mDownLst)
#if (@prompt.mShieldOn AND !@prompt.mDir) {
#addkey prompt mShieldDown ((@prompt.mCur - @prompt.mShield) / @prompt.mMod)
#addkey prompt mShieldDownCol @prColorDown( @prompt.mShieldDown)
} {}
#addkey prompt mUp ((@prompt.mMax - @prompt.mCur) / @prompt.mUpLst)
#if (@prompt.mUp != @prompt.mUpLst) {
#addkey prompt timeFull ((((@prompt.mMax - @prompt.mCur) / @prompt.mUpLst) * 3) + %if( !%mod( @prompt.mMax - @prompt.mCur, @prompt.mUpLst), 0, 1))
#if (@prompt.firstTick) {
#addkey prompt timeFull (@prompt.timeFull / 2)
#addkey prompt firstTick 0
} {}
} {}
#addkey prompt mCurCol @prColorStat( @prompt.mPrc)
#addkey prompt mDownCol @prColorDown( @prompt.mDown)
#addkey prompt mUpCol @prColorUp( @prompt.mUp)]]></value>
</alias>
<alias name="prCalcPK">
<value>#addkey prompt pkCurCol {%item(@{prompt.pkColors},%ismember(@{prompt.pkCur},@{prompt.pkNames}))}</value>
</alias>
<alias name="prCalcXp">
<value>#addkey prompt xpChange {%ansi("bold,yellow")@prShortMil(@prompt.xpModCur)}
#addkey prompt xpLeft {%ansi("brown")@prShortMil(@prompt.xpDown)}</value>
</alias>
<func name="prShortMil">
<value>#return (%switch($m >= 1000000,%int(%float($m) / 1000000)%ansi("grey")m,$m >= 1000,%int(%float($m) / 1000)%ansi("grey")k,$m%ansi("grey")))</value>
<arglist>$m</arglist>
</func>
<alias name="prGspColor">
<value>#addkey prompt gspColor ""
#addkey prompt mShieldOn 0
#loop 1,%len("sfimqpv") {
$c = %copy(@prompt.gspCur,%i,1)
#if ($c == %upper($c)) {
#addkey prompt gspColor {%concat(@{prompt.gspColor},%ansi(%item(@{prompt.gspColors},%i))$c)}
} {#addkey prompt gspColor {%concat(@{prompt.gspColor},%ansi("grey")$c)}}
#if ($c == "M") {
#addkey prompt mShield (@prompt.mMax / 3)
#addkey prompt mShieldPrc %abs(%float( ( %float( @prompt.mShield) / %float( @prompt.mMax)) * 100))
#addkey prompt mShieldOn 1
} {}
}</value>
</alias>
<alias name="prUpdate">
<value>#if (@prompt.hpModSet == 3) {
#addkey prompt hpBars %int( @prompt.hpPrc / 5)
#addkey prompt hpModBars 0
#addkey prompt hpModSet 0
} {}
#if (@prompt.mModSet == 3) {
#addkey prompt mBars %int( @prompt.mPrc / 5)
#addkey prompt mModBars 0
#addkey prompt mModSet 0
} {}
prStr = {@prStr0@prStr1@prStr2@prStr3@prStr4}</value>
</alias>
<alias name="css">
<value>prompt.ss = 0
prompt.ssHit = 0
prompt.ssCheck = 1
compare ss</value>
</alias>
<alias name="fly">
<value>prompt.flyDest = {%0}
~fly %0</value>
</alias>
<trigger priority="500">
<pattern>A figure in a black robe arrives from a puff of smoke nodding his head</pattern>
<value>#if (@prompt.noCorpse) {%exec( "#reconnect")} {}</value>
</trigger>
<trigger priority="510">
<pattern>A shimmering rift appears in the air and (%w) steps through, disappearing.</pattern>
<value>#if (%1 == @prompt.groupLeader) {#pcol {bold,white,cyan} %x1} {}</value>
</trigger>
<trigger priority="520">
<pattern>A shimmering rift appears in the air before you and (%w) steps out.</pattern>
<value>#if (%1 == @prompt.groupLeader) {#pcol {bold,white,cyan} %x1} {}</value>
</trigger>
<trigger priority="530">
<pattern>You are already standing.</pattern>
<value>#T- resting
prompt.resting = 0</value>
</trigger>
<trigger priority="540">
<pattern>You sit down and rest your tired bones.</pattern>
<value>#T+ resting
prompt.resting = 1
prompt.firstTick = 1
#if (@prompt.mUp > 0 AND @prompt.mMax - @prompt.mCur > 50) {#if (!@prompt.regen) {
rg
prompt.regen = 1
prompt.tick = 0
} {}} {}</value>
</trigger>
<trigger priority="550">
<pattern>You stop resting, and stand up.</pattern>
<value>#T- resting
prompt.resting = 0
#if (@prompt.regen AND @prompt.mMax - @prompt.mCur <= 50) {gr} {}</value>
</trigger>
<trigger priority="560">
<pattern>You touch (%w) and a bright aura envelops (%w) body.</pattern>
<value>#if (@prompt.healing) {prompt.healing = 0} {}</value>
</trigger>
<trigger priority="570">
<pattern>^(%w) disappears.</pattern>
<value>#if (%1 == @prompt.groupLeader) {#pcol {bold,white,cyan} %x1} {}</value>
</trigger>
<trigger priority="580">
<pattern>^(%w) has changed the formation leader to (%w).$</pattern>
<value>prompt.groupLeader = %2</value>
</trigger>
<trigger priority="590">
<pattern>^(%w) hauls you to your feet.</pattern>
<value>#T- resting
prompt.resting = 0</value>
</trigger>
<trigger priority="600">
<pattern>^(%w) steps into a small portal, disappearing into the darkness.$</pattern>
<value>#if (@prompt.groupLeader == %1) {enter portal} {}</value>
</trigger>
<trigger priority="610">
<pattern>^(*) (%w)'s FORMATION$</pattern>
<value>prompt.groupLeader = %2</value>
</trigger>
<trigger priority="620">
<pattern>^(*) touches (*) and a bright aura envelopes (%w) body for a moment.$</pattern>
<value>#if ((%2 == @prompt.healLast) AND @prompt.healing) {
// zero
prompt.groupName = none
#show {%ansi( bold, cyan)xx%ansi( bold, white)[%ansi( bold, green)%1 %ansi( bold, yellow)Canceled%ansi( bold, white)]%ansi( bold, cyan)xx%cr}
} {}</value>
</trigger>
<trigger priority="630" case="true">
<pattern>^Down - (*)$</pattern>
<value>#additem prompt.exits down</value>
</trigger>
<trigger priority="640" case="true">
<pattern>^East - (*)$</pattern>
<value>#additem prompt.exits east</value>
</trigger>
<trigger priority="650">
<pattern>^Level (%d) (%w) (*) Age: %d year(*)</pattern>
<value>prompt.level = %1</value>
</trigger>
<trigger priority="660" case="true">
<pattern>^North - (*)$</pattern>
<value>#additem prompt.exits north</value>
</trigger>
<trigger priority="670" case="true">
<pattern>^Obvious exits:$</pattern>
<value>prompt.exits = ""</value>
</trigger>
<trigger priority="680">
<pattern>^OK! (%w) allows you, and you start following.$</pattern>
<value>prompt.groupLeader = %1</value>
</trigger>
<trigger priority="690" case="true">
<pattern>^South - (*)$</pattern>
<value>#additem prompt.exits south</value>
</trigger>
<trigger priority="700" case="true">
<pattern>^Up - (*)$</pattern>
<value>#additem prompt.exits up</value>
</trigger>
<trigger priority="710" case="true">
<pattern>^West - (*)$</pattern>
<value>#additem prompt.exits west</value>
</trigger>
<trigger priority="720">
<pattern>^You are not in a formation.$</pattern>
<value>prompt.groupLeader = ""</value>
</trigger>
<trigger priority="730">
<pattern>^You have been KILLED!!</pattern>
<value>prompt.resting = 0
prompt.regen = 0</value>
</trigger>
<trigger priority="740">
<pattern>^You try to flee but hit your head on some stalactite!$</pattern>
<value>flee
prompt.tryFlee = 1</value>
</trigger>
<trigger priority="750">
<pattern>^Your mount works hard flying in small circles.$</pattern>
<value>~fly @prompt.flyDest</value>
</trigger>
<trigger priority="760" prompt="true">
<pattern>~<(*)~> Lev~((%d)~) Loc~((%w)~)(*)ss~((*)~)(*)Cond~((*)~) ~- (*)</pattern>
<value>#if (@prompt.ssCheck) {
prompt.ssHit = 1
#if (%ismember( %1, @hb.eqSlots)) {prompt.ss = ( @prompt.ss + %5)} {}
} {}</value>
</trigger>
<trigger priority="770" trigontrig="false">
<pattern>~<~[(%d)~%~](%w)~></pattern>
<value>prompt.groupPrc = %1
prompt.groupName = {%2}
#if (@prompt.groupPrc <= @prompt.groupThr AND !@spell.lag) {#if (@prompt.mCur >= 50 AND @prompt.autoHeal) {#if (@prompt.groupName == @login.name) {#if (@prompt.groupHealSelf) {
#show {%ansi( bold, cyan)xx%ansi( bold, white)HEALING[%ansi( bold, green)@prompt.groupName %ansi( bold, yellow)@prompt.groupPrc%ansi( bold, green)%%ansi( bold, white)]%ansi( bold, cyan)xx%cr%cr}
hl %lower( @prompt.groupName)
prompt.healLast = @prompt.groupName
prompt.healing = 1
prompt.groupPrc = 100
} {}} {
#say {%ansi( bold, cyan)xx%ansi( bold, white)HEALING[%ansi( bold, green)@prompt.groupName %ansi( bold, yellow)@prompt.groupPrc%ansi( bold, green)%%ansi( bold, white)]%ansi( bold, cyan)xx%cr}
hl %lower( @prompt.groupName)
prompt.healLast = @prompt.groupName
prompt.healing = 1
prompt.groupPrc = 100
}}}</value>
</trigger>
<alias name="prSneakOff">
<value>#if (@prompt.sneaking) {prompt.sneaking = 0} {}
#if (@prompt.trySneak) {prompt.trySneak = 0} {}</value>
</alias>
<class name="resting">
<trigger type="Alarm" priority="480">
<pattern>1</pattern>
<value>prCalcColor
#if (@prompt.mMax != @prompt.mCur) {
#addkey prompt timeFull ( @prompt.timeFull - 1)
prGspColor
} {}
prUpdate</value>
</trigger>
<trigger type="Alarm" priority="490" newline="false">
<pattern>2</pattern>
<value>#if (@prompt.resting) {
prompt.tick = ( @prompt.tick + 1)
#if (@prompt.pkCur == "L") {#if (@prompt.tick == 10) {
look
prompt.tick = 0
} {
#sendraw %cr
#gagspace
}} {#if (@prompt.pkCur == "N") {#if (@prompt.tick == 3) {
look
prompt.tick = 0
} {
#sendraw %cr
#gagspace
}} {#if (@prompt.pkCur == "C") {#if (@prompt.tick == 2) {
look
prompt.tick = 0
} {
#sendraw %cr
#gagspace
}} {
#sendraw %cr
#gagspace
prompt.tick = 0
}}}
}</value>
</trigger>
</class>
<var name="prStr0" type="String">%ansi(gray)~[%ansi(red)%repeat(%char(150),@prompt.hpBars)%ansi(@prompt.hpModColor)%repeat(%char(150),@prompt.hpModBars)%repeat(" ",20 - (@prompt.hpBars + @prompt.hpModBars))%ansi(gray)~]%ansi(gray)~[%repeat(" ",20 - (@prompt.mBars + @prompt.mModBars))%if(@prompt.mShield,%ansi(bold,magenta)%repeat(%char(150),@prompt.mShieldBars)%ansi(blue)%repeat(%char(150),@prompt.mBars - @prompt.mShieldBars),%ansi(@prompt.mModColor)%repeat(%char(150),@prompt.mModBars)%ansi(blue)%repeat(%char(150),@prompt.mBars))%ansi(gray)~]</var>
<var name="prStr1" type="String">%cr%ansi( gray)~[%ansi( @prompt.hpCurCol)%repeat( " ", %eval( 4 - %len( @prompt.hpCur)))@prompt.hpCur%ansi( gray)/%ansi( bold, blue)%repeat( " ", %eval( 4 - %len( @prompt.hpMax)))@prompt.hpMax%ansi( bold, red)%if(!@prompt.hpCur,%char(227),¬)%ansi( gray)~]%repeat( " ", 5)%ansi( bold, blue)~[%ansi( gray)@prompt.gspColor%ansi( bold, blue)~]%if(@prompt.mShieldOn,%repeat(" ",%eval(5 - %len(@prompt.mShield)))%ansi(@prompt.mShieldCol)@prompt.mShield ,%repeat( " ", 6))%ansi( gray)~[%ansi( @prompt.mCurCol)%repeat( " ", %eval( 4 - %len( @prompt.mCur)))@prompt.mCur%ansi( gray)/%ansi( bold,blue)%repeat( " ", %eval( 4 - %len( @prompt.mMax)))@prompt.mMax%ansi( bold, magenta)¨%ansi( gray)~] %if(@prompt.mShieldOn,%ansi(@prompt.mShieldDownCol)@prompt.mShieldDown,"")</var>
<var name="prStr2" type="String">%cr%ansi( gray)~[%ansi( @prompt.mvCurCol)%repeat( " ", %eval( 4 - %len( @prompt.mvCur)))@prompt.mvCur%ansi( gray)/%ansi( bold, blue)%repeat( " ", %eval( 4 - %len( @prompt.mvMax)))@prompt.mvMax%ansi( bold, yellow)ê%ansi( gray)~]%repeat( " ", 5)%ansi( bold, red)~[%ansi( gray)@prompt.bspCur%ansi( bold, red)~]%repeat( " ", %eval( 13 - %len( @prompt.bspCur)))%ansi( gray)~[%ansi( @prompt.brCurCol)%repeat( " ", %eval( 9 - %len( @prompt.brCur)))@prompt.brCur%ansi( bold, yellow)ê%ansi( gray)~]</var>
<var name="prStr3" type="String"><![CDATA[%cr%ansi(gray)~[%ansi(@prompt.hpColorDown)~(%ansi(brown)%repeat( " ", %eval( 4 - %len( @prompt.hpDownLst)))@prompt.hpDownLst%ansi(@prompt.hpColorDown)~)%ansi( @prompt.hpDownCol)@prompt.hpDown%repeat( " ", %eval( 3 - %len( @prompt.hpDown)))%ansi(@prompt.hpColorUp)~(%ansi( cyan)%repeat( " ", %eval( 4 - %len( @prompt.hpUpLst)))@prompt.hpUpLst%ansi(@prompt.hpColorUp)~)%ansi( @prompt.hpUpCol)@prompt.hpUp%repeat( " ", %eval( 3 - %len( @prompt.hpUp)))%ansi( bold, red)¬%ansi(gray)~] ~[%ansi(@prompt.mColorDown)~(%ansi(brown)%repeat( " ", %eval( 4 - %len( @prompt.mDownLst)))@prompt.mDownLst%ansi(@prompt.mColorDown)~)%ansi( @prompt.mDownCol)@prompt.mDown%repeat( " ", %eval( 3 - %len( @prompt.mDown)))%ansi(@prompt.mColorUp)~(%ansi( cyan)%repeat( " ", %eval( 4 - %len( @prompt.mUpLst)))@prompt.mUpLst%ansi(@prompt.mColorUp)~)%ansi( @prompt.mUpCol)@prompt.mUp%repeat( " ", %eval( 3 - %len( @prompt.mUp)))%ansi( bold, magenta)¨%ansi( gray)~] %if(@prompt.timeFull > 0,%ansi(bold,cyan)@prompt.timeFull%cr,%cr)]]></var>
<var name="prStr4" type="String">%if(%len(@prompt.flag) > 0,%ansi( bold, yellow)@prompt.flag,"")%if(@prompt.xpCur,%ansi( gray)~<%ansi( cyan)@prompt.xpComma%ansi(gray)~(@prompt.xpChange~/@prompt.xpLeft~),%ansi( gray)~<)%ansi( bold, yellow)~[%ansi( @prompt.pkCurCol)@{prompt.pkCur}PK%ansi( bold, yellow)~]%ansi(brown)@prompt.risk%ansi(gray).%ansi(bold,red)@prompt.blood%ansi( gray)~>%cr</var>
<var name="prStr" type="String"><![CDATA[[0;37;40m[[0;31;40m––––––––––––––––––––[0;57;40m[0;37;40m][0;37;40m[[0;57;40m[0;34;40m––––––––––––––––––––[0;37;40m]%cr[0;37;40m[[0;36;40;1m 888[0;37;40m/[0;34;40;1m 888[0;31;40;1m¬[0;37;40m] [0;34;40;1m[[0;37;40m[0;37;40ms[0;37;40mf[0;37;40mi[0;37;40mm[0;37;40mq[0;37;40mp[0;37;40mv[0;34;40;1m] [0;37;40m[[0;36;40;1m 674[0;37;40m/[0;34;40;1m 674[0;35;40;1m¨[0;37;40m] %cr[0;37;40m[[0;34;40;1m 560[0;37;40m/[0;34;40;1m 560[0;53;40;1mê[0;37;40m] [0;31;40;1m[[0;37;40m[0;31;40;1m] [0;37;40m[[0;34;40;1m 100[0;53;40;1mê[0;37;40m]%cr[0;37;40m[[0;36;40;1m([0;33;40m [0;36;40;1m)[0;57;41;1m0 [0;30;40;1m([0;36;40m 0[0;30;40;1m)[0;57;41;1m0 [0;31;40;1m¬[0;37;40m] [[0;36;40;1m([0;33;40m [0;36;40;1m)[0;57;41;1m0 [0;30;40;1m([0;36;40m 0[0;30;40;1m)[0;57;42;1m0 [0;35;40;1m¨[0;37;40m]
[0;37;40m<[0;36;40m85,794,172[0;37;40m([0;53;40;1m[0;37;40m/[0;33;40m0[0;37;40m)[0;53;40;1m[mLPK[0;53;40;1m][0;33;40m-[0;37;40m.[0;31;40;1m0[0;37;40m>
]]></var>
<stat name="prStats" showinbar="false" showinwindow="true" priority="5920">
<value>@prStr</value>
</stat>
<stat name="prBar" priority="5950">
<value>%ansi(bold,white,black)Spell[%ansi(bold,yellow)@spell.lag%ansi(bold,white)] %ansi(bold,yellow)Mobs~[%ansi(bold,cyan)@combat.mobNum%ansi(bold,yellow)~] %if(@move.walkLag,%ansi(bold,black)Move~[%ansi(bold,green)%len(@move.list)%ansi(bold,black)~]~ ,"")%if(@watch.on,@watch.str~ ,"")%ansi(bold,cyan)Room~[%ansi(bold,yellow)@prompt.room%ansi(bold,cyan)~]%if(@death.on,~ @death.str,"")</value>
</stat>
</class>
</cmud>
|
|
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Thu Jan 10, 2008 2:25 am |
It looks like the problem is the ansi codes in the variables prompt and prStr. These values shouldn't be a problem, but it appears that they are. Try removing them and then pasting the script into your new package. If it turns out that they are the problem then please let us know. A new paste of just one of the problem variables would be good to make testing easier.
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Thu Jan 10, 2008 2:26 am |
EDIT: Ugh. code is stripping the escape values. It's supposed to be & #27; Download Notepad++, open your XML file there, and replace everything that says [ESC] with & #27; (without spaces). That should solve your problem.
What's happening is that your escapes for the ansi codes aren't proper for XML. Here, use this:
/code removed due to it taking away my & #27;!
Hopefully, that works.
Charneus |
|
|
|
dogotemn Beginner
Joined: 05 Jul 2007 Posts: 21
|
Posted: Fri Jan 11, 2008 1:52 am |
yup looks like the notepad++ / replace combo did the trick. saved me a LOT of work with that. thanks :).
|
|
|
|
|
|
|
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
|
|