• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

script monster problem

Dorianek

Member
Joined
Nov 29, 2018
Messages
252
Reaction score
10
Location
Poland
TFS 1.3 (Linux)
Code:
[Warning - Monsters::loadMonster] Cant load spell. data/monster/Giand Serpent.xml
[Warning - Monsters::loadMonster] Cant load spell. data/monster/Giand Serpent.xml
[Warning - Monsters::loadMonster] Cant load spell. data/monster/Giand Serpent.xml
[Warning - Monsters::loadMonster] Cant load spell. data/monster/Giand Serpent.xml
[Warning - Monsters::loadMonster] Cant load spell. data/monster/Giand Serpent.xml
[Warning - Monsters::loadMonster] Cant load spell. data/monster/Giand Serpent.xml
[Warning - Monsters::loadMonster] Missing voices speed. data/monster/Giand Serpent.xml
[Warning - Monsters::loadMonster] Missing voices chance. data/monster/Giand Serpent.xml

Giand Serpent

Code:
<?xml version="1.0"?>
  <monster name="Giand Serpent" level="9999" maglevel="988" experience="7255806" pushable="0" armor="49" defense="51" canpushitems="1" staticattack="40" changetarget="200" speed="510">
     <health now="3000000" max="3000000"/>
     <look type="220" head="20" body="30" legs="40" feet="50" corpse="4323"/>
     <combat targetdistance="1" runonhealth="0"/>
     <blood color="86" effect="9" splash="255"/>
 
  <attacks>
   <attack type="rune" name="Sudden Death Rune" exhaustion="0.0000001" interval="2000" min="-900" max="-1005" />
   <attack type="instant" name="Healing" interval="2000" min="-900" max="-1085" />
   <attack type="rune" name="Fire Field Rune" interval="2000" min="-900" max="-1805" />
   <attack type="instant" name="Death Strike" exhaustion="500" interval="2000" min="-900" max="-1405" />
   <attack type="instant" name="Rage of the Skies" exhaustion="200" interval="2000" min="-900" max="-1605" />
  </attacks>
 
    <defenses>
     <defense immunity="energy"/>
     <defense immunity="fire"/>
     <defense immunity="poison"/>
     <defense immunity="paralyze"/>
     <defense immunity="invisible"/>
     <defense immunity="drunk"/>
  </defenses>

 
  <voices>
     <voice sentence="No to juz po tobie!"/>
     <voice sentence="Odesle cie na tamten gorszy swiat!"/>
     <voice sentence="Fajnie bylo??"/>
     <voice sentence="Alez ty spamujesz za to padasz!"/>
  </voices>
 
   <loot>
       <item id="2152" countmax="100" chance1="100000" chancemax="1000"/>
       <item id="2160" countmax="40" chance1="100000" chancemax="900"/>
       <item id="2353" chance="1000"/>
       <item id="2471" chance="500"/>
       <item id="2507" chance="1538"/>
       <item id="3968" chance="433"/>
 
       <item id="1998" chance="33333">
       <inside>
       <item id="2678" countmax="3" chance1="10000" chancemax="800"/>
       <item id="2152" countmax="100" chance1="100000" chancemax="600"/>
       <item id="2151" countmax="4" chance1="4000" chancemax="800"/>
       <item id="2474" chance="1055"/>
     <item id="2149" countmax="3" chance1="1428" chancemax="1000"/>
       <item id="2471" chance="1333"/>
       <item id="2493" chance="6666"/>
       <item id="3983" chance="600"/>
       <item id="2400" chance="866"/>
       <item id="2390" chance="3333"/>
       </inside>
       </item>
  </loot>
 
 
  <summons maxSummons="2">
       <summon name="Undead Mastash" chance="1000"/>
   <summon name="Penigas" chance="1000"/>
  </summons>
 
  </monster>
 
Solution
Code:
<?xml version="1.0"?>
  <monster name="Giand Serpent"  race="blood" experience="7255806"  speed="510">
     <health now="3000000" max="3000000"/>
     <look type="220" head="20" body="30" legs="40" feet="50" corpse="4323"/>
<targetchange interval="4000" chance="10"/>
    <flags>
        <flag summonable="0"/>
        <flag attackable="1"/>
        <flag hostile="1"/>
        <flag illusionable="0"/>
        <flag convinceable="0"/>
        <flag pushable="0"/>
        <flag canpushitems="1"/>
        <flag canpushcreatures="1"/>
        <flag staticattack="40"/>
        <flag targetdistance="1"/>
        <flag runonhealth="0"/>
    </flags>

    <attacks>
        <attack name="melee" interval="2000" skill="70" attack="63"/> <!-- add...
  • [Warning - Monsters::loadMonster] Missing voices speed. data/monster/Giand Serpent.xml

  • [Warning - Monsters::loadMonster] Missing voices chance. data/monster/Giand Serpent.xml

For the voices error, try something like this. I am not familiar with 1.3.

Code:
<voices interval="5000" chance="10">
       <voice sentence="No to juz po tobie!"/>
       <voice sentence="Odesle cie na tamten gorszy swiat!"/>
       <voice sentence="Fajnie bylo??"/>
       <voice sentence="Alez ty spamujesz za to padasz!"/>
</voices>
 
Code:
<?xml version="1.0"?>
  <monster name="Giand Serpent"  race="blood" experience="7255806"  speed="510">
     <health now="3000000" max="3000000"/>
     <look type="220" head="20" body="30" legs="40" feet="50" corpse="4323"/>
<targetchange interval="4000" chance="10"/>
    <flags>
        <flag summonable="0"/>
        <flag attackable="1"/>
        <flag hostile="1"/>
        <flag illusionable="0"/>
        <flag convinceable="0"/>
        <flag pushable="0"/>
        <flag canpushitems="1"/>
        <flag canpushcreatures="1"/>
        <flag staticattack="40"/>
        <flag targetdistance="1"/>
        <flag runonhealth="0"/>
    </flags>

    <attacks>
        <attack name="melee" interval="2000" skill="70" attack="63"/> <!-- add monster spells -->
    </attacks>
 
    <defenses armor="35" defense="35">
        <defense name="healing" interval="2000" chance="15" min="25000" max="50000">
            <attribute key="areaEffect" value="blueshimmer"/>
        </defense>
        <defense name="speed" interval="2000" chance="15" speedchange="340" duration="5000">
            <attribute key="areaEffect" value="redshimmer"/>
        </defense>
    </defenses>
  
    <immunities>
        <immunity energy="1"/>
        <immunity fire="1"/>
        <immunity poison="1"/>
        <immunity paralyze="1"/>
        <immunity invisible="1"/>
        <immunity drunk="1"/>
    </immunities>

    <voices interval="5000" chance="100">
       <voice sentence="No to juz po tobie!"/>
       <voice sentence="Odesle cie na tamten gorszy swiat!"/>
       <voice sentence="Fajnie bylo??"/>
       <voice sentence="Alez ty spamujesz za to padasz!"/>
    </voices>
 
     <summons maxSummons="2">
       <summon name="Undead Mastash" chance="1000"/>
        <summon name="Penigas" chance="1000"/>
  </summons>

   <loot>
       <item id="2152" countmax="100" chance1="100000" chancemax="1000"/>
       <item id="2160" countmax="40" chance1="100000" chancemax="900"/>
       <item id="2353" chance="1000"/>
       <item id="2471" chance="500"/>
       <item id="2507" chance="1538"/>
       <item id="3968" chance="433"/>
       <item id="1998" chance="33333">
       <item id="2678" countmax="3" chance1="10000" chancemax="800"/>
       <item id="2152" countmax="100" chance1="100000" chancemax="600"/>
       <item id="2151" countmax="4" chance1="4000" chancemax="800"/>
       <item id="2474" chance="1055"/>
       <item id="2149" countmax="3" chance1="1428" chancemax="1000"/>
       <item id="2471" chance="1333"/>
       <item id="2493" chance="6666"/>
       <item id="3983" chance="600"/>
       <item id="2400" chance="866"/>
       <item id="2390" chance="3333"/>
       </item>
  </loot>
</monster>
 
Solution
Back
Top