PHP - Code to show specular fixed
<p>I need a php file to fix that .txt file, I need a php file to doo this:</p>

<p>Exemple error at specular vnum end's at 7 and type=1:</p>

<pre><code>&lt;Item vnum="17" hashName="µµ+0" name="Espada+0" type="1" subtype="0" weight="0" size="2" antiflag="32" flag="1" wearflag="16" immuneflag="" gold="1" buy_price="0" limittype0="1" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="7" applyvalue0="22" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="15" value2="19" value3="13" value4="15" value5="0" socket0="-1" socket1="-1" socket2="-1" socket3="-1" socket4="-1" socket5="-1" refine_vnum="11" refine_set="1" magic_pct="15" specular="0" socket_pct="3" /&gt;
</code></pre>

<p>Exemple fixed at specular vnum end's at 7 and type=1:</p>

<pre><code>&lt;Item vnum="17" hashName="µµ+0" name="Espada+0" type="1" subtype="0" weight="0" size="2" antiflag="32" flag="1" wearflag="16" immuneflag="" gold="1" buy_price="0" limittype0="1" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="7" applyvalue0="22" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="15" value2="19" value3="13" value4="15" value5="0" socket0="-1" socket1="-1" socket2="-1" socket3="-1" socket4="-1" socket5="-1" refine_vnum="11" refine_set="1" magic_pct="15" specular="65" socket_pct="3" /&gt;
</code></pre>

<p><strong>PHP need to fix:</strong></p>

<pre><code>If vnum end's on 0 and type=1:
specular="0"
If vnum end's on 0 and type=2:
specular="0"

If vnum end's on 1 and type=1:
specular="0"
If vnum end's on 1 and type=2:
specular="0"

If vnum end's on 2 and type=1:
specular="0"
If vnum end's on 2 and type=2:
specular="0"

If vnum end's on 3 and type=1:
specular="0"
If vnum end's on 3 and type=2:
specular="0"

If vnum end's on 4 and type=1:
specular="30"
If vnum end's on 4 and type=2:
specular="30"

If vnum end's on 5 and type=1:
specular="40"
If vnum end's on 5 and type=2:
specular="40"

If vnum end's on 6 and type=1:
specular="50"
If vnum end's on 6 and type=2:
specular="50"

If vnum end's on 7 and type=1:
specular="65"
If vnum end's on 7 and type=2:
specular="65"

If vnum end's on 8 and type=1:
specular="80"
If vnum end's on 8 and type=2:
specular="80"

If vnum end's on 9 and type=1:
specular="100"
If vnum end's on 9 and type=2:
specular="100"
</code></pre>

<p>Please, carefull with type because I have more types at the list.</p>

<p>All list you can see at: <a href="http://eburmt2.com/item_proto.txt" rel="nofollow">http://eburmt2.com/item_proto.txt</a></p>
