• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 0.X [HELP PLEASE] Monster does not turn into a dead body crashes the server and gives ocnsole errors

Enderlop

Banned User
Joined
Jan 10, 2024
Messages
93
Reaction score
16
Lua:
<?xml version="1.0" encoding="UTF-8"?>
  <monster name="" nameDescription="" race="blood" experience="" speed="999" manacost="0">
    <health now="1000000000" max="1000000000"/>
    <look typeex="1746" corpse="3129"/>
    <targetchange interval="" chance="1000000000"/>
    <strategy attack="1000000000" defense="1000000000"/>
    <flags>
      <flag summonable="0"/>
      <flag attackable="1"/>
      <flag hostile="1"/>
      <flag illusionable="0"/>
      <flag convinceable="0"/>
      <flag pushable="0"/>
      <flag canpushitems="0"/>
      <flag staticattack="0"/>
      <flag lightlevel="0"/>
      <flag lightcolor="0"/>
      <flag targetdistance="7"/>
      <flag runonhealth="0"/>
      <flag skull="4"/>
    </flags>
    <attacks>
      <attack name="melee" interval="" min="-1000000000" max="-1000000000"/>
    </attacks>
    <defenses armor="1000000000" defense="1000000000">
     <defense name="healing" interval="" chance="1000000000" min="1000000000" max="1000000000">
     <attribute key="areaEffect" value="blueshimmer"/>
     </defense>
    </defenses>
    <immunities>
      <immunity physical="0"/>
      <immunity energy="0"/>
      <immunity fire="0"/>
      <immunity poison="0"/>
      <immunity lifedrain="0"/>
      <immunity paralyze="0"/>
      <immunity outfit="0"/>
      <immunity drunk="0"/>
      <immunity invisible="0"/>
    </immunities>
    <voices interval="5000" chance="2000">
<voice sentence="Baú Maluco!"/>
    </voices>
  <loot>
  <item id="1988" chance="1000000000">
        <inside>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
        </inside>
     </item>
  </loot>
</monster>
 
what about items.xml? is everything ok with the body in
Code:
items.xml
?
XML:
<item id="3129" article="a" name="dead human">
        <attribute key="containerSize" value="8" />
        <attribute key="decayTo" value="3130" />
        <attribute key="duration" value="900" />
        <attribute key="corpseType" value="blood" />
    </item>
btw, why is
Code:
<monster name=
empty?
 
How many zeros! 🤣
You enter a higher value than normal. the chance is 1000, which is equivalent to 100% depending on the script that was created, but the default is 1000.
i believe it is still int32.
 
XML:
<item id="3128" article="a" name="dead human">
        <attribute key="containerSize" value="10" />
        <attribute key="decayTo" value="3129" />
        <attribute key="duration" value="300" />
        <attribute key="corpseType" value="blood" />
    </item>

XML:
<?xml version="1.0" encoding="UTF-8"?>
  <monster name="" nameDescription="" race="blood" experience="" speed="999" manacost="0">
    <health now="1" max="1"/>
    <look typeex="1746" corpse="3129"/>
    <targetchange interval="" chance="1000000000"/>
    <strategy attack="1000000000" defense="1000000000"/>
    <flags>
      <flag summonable="0"/>
      <flag attackable="1"/>
      <flag hostile="1"/>
      <flag illusionable="0"/>
      <flag convinceable="0"/>
      <flag pushable="0"/>
      <flag canpushitems="0"/>
      <flag staticattack="0"/>
      <flag lightlevel="0"/>
      <flag lightcolor="0"/>
      <flag targetdistance="7"/>
      <flag runonhealth="0"/>
      <flag skull="4"/>
    </flags>
    <attacks>
      <attack name="melee" interval="" min="-1000000000" max="-1000000000"/>
    </attacks>
    <defenses armor="1000000000" defense="1000000000">
     <defense name="healing" interval="" chance="1000000000" min="1000000000" max="1000000000">
     <attribute key="areaEffect" value="blueshimmer"/>
     </defense>
    </defenses>
    <immunities>
      <immunity physical="0"/>
      <immunity energy="0"/>
      <immunity fire="0"/>
      <immunity poison="0"/>
      <immunity lifedrain="0"/>
      <immunity paralyze="0"/>
      <immunity outfit="0"/>
      <immunity drunk="0"/>
      <immunity invisible="0"/>
    </immunities>
    <voices interval="5000" chance="2000">
<voice sentence="Baú Maluco!"/>
    </voices>
  <loot>
  <item id="1988" chance="1000000000">
        <inside>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
        </inside>
     </item>
  </loot>
</monster>

Untitled Project74451.gif
 
XML:
<item id="3128" article="a" name="dead human">
        <attribute key="containerSize" value="10" />
        <attribute key="decayTo" value="3129" />
        <attribute key="duration" value="300" />
        <attribute key="corpseType" value="blood" />
    </item>

XML:
<?xml version="1.0" encoding="UTF-8"?>
  <monster name="" nameDescription="" race="blood" experience="" speed="999" manacost="0">
    <health now="1" max="1"/>
    <look typeex="1746" corpse="3129"/>
    <targetchange interval="" chance="1000000000"/>
    <strategy attack="1000000000" defense="1000000000"/>
    <flags>
      <flag summonable="0"/>
      <flag attackable="1"/>
      <flag hostile="1"/>
      <flag illusionable="0"/>
      <flag convinceable="0"/>
      <flag pushable="0"/>
      <flag canpushitems="0"/>
      <flag staticattack="0"/>
      <flag lightlevel="0"/>
      <flag lightcolor="0"/>
      <flag targetdistance="7"/>
      <flag runonhealth="0"/>
      <flag skull="4"/>
    </flags>
    <attacks>
      <attack name="melee" interval="" min="-1000000000" max="-1000000000"/>
    </attacks>
    <defenses armor="1000000000" defense="1000000000">
     <defense name="healing" interval="" chance="1000000000" min="1000000000" max="1000000000">
     <attribute key="areaEffect" value="blueshimmer"/>
     </defense>
    </defenses>
    <immunities>
      <immunity physical="0"/>
      <immunity energy="0"/>
      <immunity fire="0"/>
      <immunity poison="0"/>
      <immunity lifedrain="0"/>
      <immunity paralyze="0"/>
      <immunity outfit="0"/>
      <immunity drunk="0"/>
      <immunity invisible="0"/>
    </immunities>
    <voices interval="5000" chance="2000">
<voice sentence="Baú Maluco!"/>
    </voices>
  <loot>
  <item id="1988" chance="1000000000">
        <inside>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
        </inside>
     </item>
  </loot>
</monster>

View attachment 83516

My guess would be a brain damage. Read what people write, process that and apply if you want the result and comunicate, write words ffs... or at least paste errors...
 
bug error console show

Lua:
[05/04/2024 20:32:18] [Error - CreatureScript Interface]
[05/04/2024 20:32:18] buffer:onKill
[05/04/2024 20:32:18] Description:
[05/04/2024 20:32:18] [string "loadBuffer"]:4: attempt to index a boolean value
[05/04/2024 20:32:18] stack traceback:
[05/04/2024 20:32:18]     [string "loadBuffer"]:4: in function <[string "loadBuffer"]:2>
Screenshot_1.png
 
XML:
<?xml version="1.0" encoding="UTF-8"?>
  <monster name="" nameDescription="" race="proprio" experience="" speed="999" manacost="0">
    <health now="1" max="0"/>
    <look typeex="1749" corpse="3128"/>
    <targetchange interval="" chance="1000000000"/>
    <strategy attack="1000000000" defense="1000000000"/>
    <flags>
      <flag summonable="0"/>
      <flag attackable="1"/>
      <flag hostile="1"/>
      <flag illusionable="0"/>
      <flag convinceable="0"/>
      <flag pushable="0"/>
      <flag canpushitems="0"/>
      <flag staticattack="0"/>
      <flag lightlevel="0"/>
      <flag lightcolor="0"/>
      <flag targetdistance="7"/>
      <flag runonhealth="0"/>
      <flag skull="4"/>
    </flags>
    <attacks>
      <attack name="melee" interval="" min="-10" max="-10"/>
    </attacks>
    <defenses armor="1000000000" defense="1000000000">
     <defense name="healing" interval="" chance="1000000000" min="1000000000" max="1000000000">
     <attribute key="areaEffect" value="blueshimmer"/>
     </defense>
    </defenses>
    <immunities>
      <immunity physical="0"/>
      <immunity energy="0"/>
      <immunity fire="0"/>
      <immunity poison="0"/>
      <immunity lifedrain="0"/>
      <immunity paralyze="0"/>
      <immunity outfit="0"/>
      <immunity drunk="0"/>
      <immunity invisible="0"/>
    </immunities>
    <voices interval="5000" chance="2000">
<voice sentence="Baú Maluco!"/>
    </voices>
  <loot>
  <item id="1988" chance="1000000000">
        <inside>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
<item id="11192" countmax="100" chance1="1000000000" chancemax="1000000000"/>
        </inside>
     </item>
  </loot>
</monster>

Screenshot_2.pngScreenshot_3.png

XML:
[05/04/2024 21:15:04] [Error - CreatureScript Interface]
[05/04/2024 21:15:05] buffer:onKill
[05/04/2024 21:15:05] Description:
[05/04/2024 21:15:05] [string "loadBuffer"]:4: attempt to index a boolean value
[05/04/2024 21:15:05] stack traceback:
[05/04/2024 21:15:05]     [string "loadBuffer"]:4: in function <[string "loadBuffer"]:2>

[05/04/2024 21:15:05] [Error - CreatureScript Interface]
[05/04/2024 21:15:05] buffer:onKill
[05/04/2024 21:15:05] Description:
[05/04/2024 21:15:05] (luaGetMonsterInfo) Monster not found
 
XML:
<?xml version="1.0" encoding="UTF-8"?>
  <monster name="bau" nameDescription="bau" race="proprio" experience="" speed="999" manacost="0">
[/QUOTE]

[QUOTE="Enderlop, post: 2749203, member: 258185"]

[05/04/2024 21:15:05] [Error - CreatureScript Interface]
[05/04/2024 21:15:05] buffer:onKill
[05/04/2024 21:15:05] Description:
[05/04/2024 21:15:05] (luaGetMonsterInfo) Monster not found
Monster not found
I think your events onKill dont find monster because name is empty string!
 
More Other server of for kill transform on dead human The corpse.

I discovered that the problem is in the mods folder
 
Last edited:
Back
Top