Ir para conteúdo
Entre para seguir isso  
Hindori

Monster Level System

Recommended Posts

Hindori    0
Hindori
Hello Guys

On the begining I'm sorry if I posted this on bad place of forum also I don't know Portuguese.

[TFS 1.0+], but it would work on others also. If you are not sure about compability just write me and e-mail with your tfs version and I will check it.

Anyway, I have a script for SELL. As you read on topic it gives our monsters levels. But let me introduce it to you.

 

  • Everything is coded in c++.
  • In config.lua you can choose if levels will be attached to monster name or not.
  • You can:
  • Set min, max and starting level of every monster.   The recipe for real level that will be used to calculate changes in monster is       real_level = random(min, max) - starting_level.
  • Set how many hp monster will receive for level as value and/or percent value. Algorithm is: Hp = (health+HpIncPerLvl*real_level)*((100+percentageHpIncPerLvl)/100)^real_level;
FtULQL.png

  • This algoritm but of course with other parameters is also used to calculate Speed, Armor, Defence, Exp and spell damage.
  • You can modify every spells(defensive and attacks). 
    1. You can add range per level

    2. You can change chances and interval of course as bonus or penetly per level

    3. You can set minimum level of monster to use spell.

    4. You can set minimum and maximum dmg of spell using value and/or percents. Everything is being calculated as health above.

  • You can change values of resistans. For example monster can earn 1% resistant for fire per level.
aIrpz2.png

  • You can add more chances to loot item. For every item you can add extra chances per level and extra percent chances per level. Calculated as health above. Also you can set the minimum level of monster that will drop this item.
 

 

Here is example monster script using many of utilites listed above.

 



<?xml version="1.0" encoding="UTF-8"?>
<monster name="Dragon" nameDescription="a dragon" race="blood" experience="700" speed="185" manacost="0" zeroLvl="1" minLvl="1" maxLvl="20" percentageArmorIncPerLevel="10" percentageDefenceIncPerLevel="10" percentageExpIncPerLevel="20" ExpIncPerLevel="100" DefenceIncPerLevel="1" ArmorIncPerLevel="1" SpeedIncPerLevel="2" HpIncPerLevel="100" percentageHpIncPerLevel="10" percentageSpeedIncPerLevel="20">
    <health now="1000" max="1000" />
    <look type="34" corpse="5973" />
    <targetchange interval="4000" chance="10" />
    <flags>
        <flag summonable="0" />
        <flag attackable="1" />
        <flag hostile="1" />
        <flag illusionable="1" />
        <flag convinceable="0" />
        <flag pushable="0" />
        <flag canpushitems="1" />
        <flag canpushcreatures="1" />
        <flag targetdistance="1" />
        <flag staticattack="80" />
        <flag runonhealth="1" />
    </flags>
    <attacks>
        <attack name="fire" interval="4000" intervalPerLvl="1000" chance="20" chancePerLvl="10" range="1" rangePerLvl="1" radius="4" target="1" min="-100" max="-100" minPerLvl="-10" maxPerLvl ="-10" minLvlToUse="3" minPercentagePerLvl="1" maxPercentagePerLvl="1">
            <attribute key="shootEffect" value="fire" />
            <attribute key="areaEffect" value="firearea" />
        </attack>
    </attacks>
    <defenses armor="30" defense="30">
        <defense name="healing" interval="2000" chance="15" min="40" max="70" minPerLvl="10" maxPerLvl ="10">
            <attribute key="areaEffect" value="blueshimmer" />
        </defense>
    </defenses>
    <elements>
        <element earthPercentPerLvl="5"/>
        <element energyPercent="20" />
        <element icePercent="-10" />
        <element icePercentPerLvl="-10"/>
        <element firePercentPerLvl="10"/>
    </elements>
    <immunities>
        <immunity paralyze="1" />
        <immunity invisible="1" />
    </immunities>
    <voices interval="5000" chance="10">
        <voice sentence="GROOAAARRR" yell="1" />
        <voice sentence="FCHHHHH" yell="1" />
    </voices>
    <loot>
        <item id="2148" countmax="70" chance="47500" /><!-- gold coin -->
        <item id="2148" countmax="45" chance="37500" /><!-- gold coin -->
        <item id="12413" chance="9740" /><!-- dragon's tail -->
        <item id="2672" countmax="3" chance="65500" /><!-- dragon ham -->
        <item id="2509" chance="1" chancesPerLvl ="100000" percentageImprovePerLvl ="10" lootMinLvl="10" /><!-- steel shield -->
        <item id="2455" chance="10000" /><!-- crossbow -->
        <item id="2397" chance="4000" /><!-- longsword -->
        <item id="2457" chance="3000" /><!-- steel helmet -->
        <item id="2647" chance="2000" /><!-- plate legs -->
        <item id="2413" chance="1950" /><!-- broadsword -->
        <item id="7588" chance="1000" /><!-- strong health potion -->
        <item id="2387" chance="960" /><!-- double axe -->
        <item id="2187" chance="1005" /><!-- wand of inferno -->
        <item id="5920" chance="1000" /><!-- green dragon scale -->
        <item id="2434" chance="560" /><!-- dragon hammer -->
        <item id="5877" chance="1005" /><!-- green dragon leather -->
        <item id="2145" chance="380" /><!-- small diamond -->
        <item id="2516" chance="320" /><!-- dragon shield -->
        <item id="2409" chance="420" /><!-- serpent sword -->
        <item id="7430" chance="110" /><!-- dragonbone staff -->
        <item id="2177" chance="120" /><!-- life crystal -->
        <item id="2546" countmax="10" chance="8060" /><!-- burst arrow -->
    </loot>
</monster>


 

If you have any questions write post below or contact me on e-mail:  [email protected]

Also if you want to look how it works I can give you ip to my private server than you can log in and test it.

To get ip contact me with e-mail and we will determinate time and day.

 

After buying you will receive PDF with instruction where and what you should paste in your code. Also if u will have any problems I will help you individually.

 

Price is :30$,   Buyout price 250$.

 

Regards,

Hindori

Compartilhar este post


Link para o post
Compartilhar em outros sites
Visitante
Este tópico está impedido de receber novos posts.
Entre para seguir isso  

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×