Hello, I've tried to add custom monster. I'm using TFS 1.1 server,
It seems pretty easy, but somehow it's not working for me. I've imported it into mapeditor, made its spawn, planted in but while it's loading server it comes with
Here's my monster code + monster.xml
Also when edit the map with new spawn and then I'm adding it to GIT, it writes this
warning: LFwill be replaced by CRLF in world/house.xml
The file will have its original line endings in your working directory.
warning: LFwill be replaced by CRLF in world/spawn.xml
The file will have its original line endings in your working directory.
But my custom NPCs are working well
It seems pretty easy, but somehow it's not working for me. I've imported it into mapeditor, made its spawn, planted in but while it's loading server it comes with
Code:
[Error - Monsters::loadMonster] Failed to load data/monster/insects/expbug.xml: File was not found
Here's my monster code + monster.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<monster name="Expbug" namedescription="an expbug" race="venom" experience="1000" speed="350" manacost="0">
<health now="1000" max="1000"/>
<look type="45" corpse="5990"/>
<targetchange interval="4000" chance="0"/>
<flags>
<flag summonable="0"/>
<flag attackable="1"/>
<flag hostile="1"/>
<flag illusionable="1"/>
<flag convinceable="0"/>
<flag pushable="1"/>
<flag canpushitems="0"/>
<flag canpushcreatures="0"/>
<flag targetdistance="1"/>
<flag staticattack="90"/>
<flag runonhealth="0"/>
</flags>
<attacks>
<attack name="melee" interval="2000" skill="20" attack="15"/>
</attacks>
<defenses armor="5" defense="5"/>
<elements>
<element firePercent="-10"/>
</elements>
<loot>
<item id="2160" countmax="1" chance="1000"/>
</loot>
</monster>
Code:
<monster name="ExpBug" file="insects/expbug.xml"/>
Also when edit the map with new spawn and then I'm adding it to GIT, it writes this
warning: LFwill be replaced by CRLF in world/house.xml
The file will have its original line endings in your working directory.
warning: LFwill be replaced by CRLF in world/spawn.xml
The file will have its original line endings in your working directory.
But my custom NPCs are working well