<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>I was getting trade good of &quot;unknown&quot;.  To fix it, I set this line:

sTradeGoodName = aCodeLines[19].substring(aCodeLines[19].indexOf('(')+2,aCodeLines[19].indexOf(')')-1);

To this:

sTradeGoodName = aCodeLines[20].substring(aCodeLines[20].indexOf('(')+2,aCodeLines[20].indexOf(')')-1);

What would be better is to not expect the value you're parsing to be at line 20 but instead find it by searching through the lines.  That way it could survive script changes made by Gameforge.  But I do acknowledge that this is quick and dirty and does the job.  Works for me! ;)</body>
  <body-html>&lt;p&gt;I was getting trade good of &quot;unknown&quot;.  To fix it, I set this line:&lt;/p&gt;

&lt;p&gt;sTradeGoodName = aCodeLines[19].substring(aCodeLines[19].indexOf('(')+2,aCodeLines[19].indexOf(')')-1);&lt;/p&gt;

&lt;p&gt;To this:&lt;/p&gt;

&lt;p&gt;sTradeGoodName = aCodeLines[20].substring(aCodeLines[20].indexOf('(')+2,aCodeLines[20].indexOf(')')-1);&lt;/p&gt;

&lt;p&gt;What would be better is to not expect the value you're parsing to be at line 20 but instead find it by searching through the lines.  That way it could survive script changes made by Gameforge.  But I do acknowledge that this is quick and dirty and does the job.  Works for me! ;)&lt;/p&gt;</body-html>
  <created-at type="datetime">2008-04-19T10:16:15Z</created-at>
  <forumable-id type="integer">23575</forumable-id>
  <forumable-type>Script</forumable-type>
  <id type="integer">26434</id>
  <topic-id type="integer">11119</topic-id>
  <updated-at type="datetime">2008-11-16T23:32:07Z</updated-at>
  <user-agent nil="true"></user-agent>
  <user-id type="integer">50636</user-id>
</post>
