• 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!

Monster [TFS1.2] MU of Aries of the Zodiac

lokolokio

Well-Known Member
Joined
Jan 7, 2009
Messages
201
Solutions
13
Reaction score
77
Location
Mexico
Hello dear OT Lander's I've seen on another post that one of our members has been made a monster from the zodiac, and many ppl ask him for Aries and that's the reason that I'll made this monster.

First off all the monster code 'aries.xml'
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Mu of Aries" nameDescription="a mu of aries" race="blood" experience="10000" speed="290" manacost="0" script="aries.lua">
    <health now="7500" max="7500" />
     <look type="131" head="79" body="79" legs="79" feet="79" addons="3" mount="0" corpse="20408" />
    <targetchange interval="4000" chance="20" />
    <flags>
        <flag summonable="0" />
        <flag attackable="1" />
        <flag hostile="1" />
        <flag illusionable="0" />
        <flag convinceable="0" />
        <flag pushable="1" />
        <flag canpushitems="0" />
        <flag canpushcreatures="1" />
        <flag targetdistance="1" />
        <flag staticattack="90" />
        <flag runonhealth="75" />
    </flags>
    <script>
        <event name="AriesWall"/>
    </script>
        <attacks>
        <attack name="melee" interval="2000" min="-300" max="-650" />
        <attack name="aries wall" interval="20000" chance="22"/>
        <attack name="aries star" interval="12000" chance="22"/>
        <attack name="aries dust" interval="6000" chance="12"/>
        <attack name="aries tele" interval="8000" chance="40"/>
        <attack name="aries outf" interval="5000" chance="20"/>
    </attacks>
    <defenses armor="30" defense="110">
        <defense name="healing" interval="2000" chance="100" min="3000" max="4500">
            <attribute key="areaEffect" value="blueshimmer" />
        </defense>
    </defenses>
    <elements>
        <element holyPercent="50" />
    </elements>
    <immunities>
        <immunity paralyze="1" />
        <immunity invisible="1" />
        <immunity drunk="1" />
        <immunity drown="1" />
        <immunity outfit="1" />
    </immunities>
    <voices interval="5000" chance="10">
        <voice sentence="I am MU of Aries" />
    </voices>
    <loot>
        <item id="2471" chance="100000" />                    <!-- golden helmet -->
        <item id="2466" chance="100000" />                    <!-- golden armor -->
        <item id="2470" chance="100000" />                    <!-- golden legs -->
        <item id="2646" chance="100000" />                    <!-- golden boots -->
        <item id="2523" chance="100000" />                    <!-- blessed shield -->
        <item id="2179" chance="100000" />                    <!-- gold ring -->
        <item id="2130" chance="100000" />                    <!-- golden amulet -->
        <item id="2004" chance="100000" />                    <!-- golden backpack -->
        <item id="7591" countmax="100" chance="80000" />    <!-- GHP -->
        <item id="7590" countmax="100" chance="80000" />    <!-- GMP -->
        <item id="2295" countmax="100" chance="80000" />    <!-- Holy Missile Rune -->
        <item id="2273" countmax="100" chance="80000" />    <!-- UHR -->
        <item id="2148" countmax="100" chance="43000" />    <!-- gold coin -->
        <item id="2160" countmax="10" chance="5000" />        <!-- crystal coin -->
        <item id="23810" chance="100000" />                    <!-- the lion's heart -->
        <item id="22607" chance="2000" />                    <!-- golden prison key -->
        <item id="21399" countmax="100" chance="4000" />    <!-- golden raid token -->
        <item id="15515" countmax="25" chance="10000" />    <!-- bar of gold -->
        <item id="13938" chance="1000" />                    <!-- golden can of oil -->
        <item id="13539" chance="1000" />                    <!-- golden fir cone -->
        <item id="9971" countmax="5" chance="22000" />        <!-- gold ingot -->
        <item id="5799" chance="1000" />                    <!-- golden figurine -->
        <item id="2418" chance="35000" />                    <!-- golden sickle -->
        <item id="2157" countmax="100" chance="12000" />    <!-- golden nugget -->
        <item id="2137" chance="1000" />                    <!-- some golden fruits -->
        <item id="2091" actionId="3333" chance="500" />        <!-- golden key -->
        <item id="2033" chance="60000" />                    <!-- gold mug -->
    </loot>
</monster>

And now the Ilusion monster 'ariess.xml'
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Mu of Aries" nameDescription="a mu of aries" race="blood" experience="10000" speed="290" manacost="0" script="aries.lua">
    <health now="75" max="75" />
     <look type="131" head="79" body="79" legs="79" feet="79" addons="3" mount="0" corpse="0" />
    <targetchange interval="4000" chance="20" />
    <flags>
        <flag summonable="0" />
        <flag attackable="1" />
        <flag hostile="1" />
        <flag illusionable="0" />
        <flag convinceable="0" />
        <flag pushable="1" />
        <flag canpushitems="0" />
        <flag canpushcreatures="1" />
        <flag targetdistance="1" />
        <flag staticattack="90" />
        <flag runonhealth="0" />
    </flags>
    <attacks>
        <attack name="melee" interval="2000" min="-100" max="-450" />
        <attack name="aries tele" interval="8000" chance="100"/>
    </attacks>
    <defenses armor="0" defense="0">
        <defense name="healing" interval="2000" chance="100" min="3000" max="4500">
            <attribute key="areaEffect" value="blueshimmer" />
        </defense>
    </defenses>
    <voices interval="5000" chance="10">
        <voice sentence="I am MU of Aries" />
    </voices>
</monster>

Add these monsters to the folder 'data/monsters/' and create a file called 'aries.lua' on 'data/monsters/scripts' and insert this lines:
(This function allow to the monster not be summoneable for anyone)
Code:
function onCreatureAppear(creature)    end
function onCreatureDisappear(creature)    end
function onThink(creature)
    if creature:getMaster() ~= nil then
        local pos = creature:getPosition()
        creature:say("I do not have master!", TALKTYPE_ORANGE_1)
        Game.createMonster("Aries", pos)
        creature:remove()
    end
end

The Spells of the Monster are only the special habilities
Crystal Wall, This hability reflect all damage taken to the enemy who damage MU of Aries.

Starlight Extinction. This hability teleport all enemies to the center of MU and give them a very strong hit arround 500 to 800 to each one.

Stardust Revolution.- This Hability makes a rain of multiple shooting stars and hit everyone who are in the screen of MU.

Crystal Net: TODO.

Confusion: This hability change the apereance of all enemies to the MU apereance and summon one MU of Aries but this clones of MU just got 75HP (Because is an Ilusion).

MU Teleportation: This is one of the habilities of MU the use of teleportation, and this spell ariesTele thats what it makes teleport himself to a random place or many ppl to a random place inclusive to other dimensions.

Now the monster has been created now let's make the spells to work with:
in 'spells.xml' add this lines:

Code:
    <instant name="aries wall" words="###51" direction="0" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="test/ariesCrystalWall.lua" />

    <instant name="aries star" words="###52" direction="0" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="test/ariesStar.lua" />

    <instant name="aries dust" words="###53" direction="0" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="test/ariesDust.lua" />

    <instant name="aries tele" words="###54" direction="0" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="test/ariesTele.lua" />

    <instant name="aries outf" words="###55" direction="0" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="test/ariesOutf.lua" />

    <instant name="aries web" words="###56" direction="0" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="test/ariesWeb.lua" />

and in the folder add all the spells wich are on the next link:
http://www.mediafire.com/download/feee40w4e63y3nf/ariesSpells.zip

Now the behavior of the spell Crystal Wall:
In creaturescripts create a file called 'ariesWall.lua' and add this lines:
Code:
function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin)
    if Player(attacker) and Monster(creature) and Monster(creature):getCondition(CONDITION_REGENERATION, CONDITIONID_DEFAULT, 222333444) then
        doTargetCombatHealth(Monster(creature), Player(attacker), primaryType, -primaryDamage, -primaryDamage, CONST_ME_NONE)
    else
        return primaryDamage, primaryType, -secondaryDamage, secondaryType, origin
    end
end

and in 'creaturescripts.xml' add this line:
Code:
<event type="healthchange" name="AriesWall" script="ariesWall.lua"/>

I hope you like it.
Kind Regards.
 
Last edited:
Where's the file "ariesCrystalWall.lua"?

Dude, it says "create a file and add those lines".

Go in the folder, create a new file, save it as "ariesCrystalWall.lua", open it and add those lines, save your work.

Hope this helps. Welcome to the community.
 
Dude, it says "create a file and add those lines".

Go in the folder, create a new file, save it as "ariesCrystalWall.lua", open it and add those lines, save your work.

Hope this helps. Welcome to the community.

Solved after some hours, but thank you! :)
 
Back
Top