ZnoteAAC icon indicating copy to clipboard operation
ZnoteAAC copied to clipboard

monster_loot.php bags problem

Open Emilianenko opened this issue 6 years ago • 3 comments

The page monster_loot.php works fine . but its not showing the loot that drops inside bags , and the server loot rate is not working properly ,when i click to use server loot rate , all percentages are zero site problem

Emilianenko avatar Dec 16 '19 21:12 Emilianenko

The loot inside bags are shown correctly with old monsters file ,example:

  <item id="1987" chance="50000">  <!-- bag -->
    <inside>
      <item id="2148" countmax="100" chance1="100000" chancemax="0"/>
      <item id="2149" countmax="2" chance1="893" chancemax="0"/>
      <item id="2392" chance="1428"/>
      <item id="2146" countmax="2" chance1="3222" chancemax="0"/>
      <item id="2528" chance="2333"/>
    </inside>
  </item>
</loot>

with tfs 1.2 monster file doesn't work, the only diference is the < inside> < /inside> after bag

    <item id="1987" chance="100000"> <!-- bag -->
    <item id="2179" chance="1010" /> 
    <item id="2396" chance="1200" />
    <item id="2520" chance="2000" /> 
    <item id="2214" chance="473" /> 
    <item id="5906" countmax="1" chance="2000"/>
    <item id="5954" chance="2000" /> 
    <item id="2470" chance="1000" /> 
    <item id="2514" chance="1000" /> 
    <item id="2472" chance="660" /> 
    <item id="7393" chance="100" /> 
    <item id="7382" chance="1000" /> 
    </item>
</loot>

Emilianenko avatar Dec 21 '19 00:12 Emilianenko

The loot rate problem is just the comments in config.lua ,removing the comments the percentages are shown correctly.

Emilianenko avatar Jan 11 '20 21:01 Emilianenko

I believe this can be closed, since this commit fixed the problem https://github.com/otland/forgottenserver/pull/3189

Emilianenko avatar Nov 08 '21 23:11 Emilianenko