Forum Nie Tylko Do Tibii I OTS!!
Wchodzimy w folder silnika>>>Data>>> Spells>>> Scripts i robimy plik o nazwie exori flam.lua jego zawartość:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 36)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1500, -1.6, -450)
arr = {
{0, 0, 0, 0, 0, 0, 0},
{0, 1, 0, 0, 0, 1, 0},
{0, 0, 1, 1, 1, 0, 0},
{0, 0, 1, 2, 1, 0, 0},
{0, 0, 1, 1, 1, 0, 0},
{0, 1, 0, 0, 0, 1, 0},
{0, 0, 0, 0, 0, 0, 0},
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
__________________________________________________________________________________________
Cofamy i wchodzimy w spells.xml a w nim wpisujemy to:
Code:
<instant name="Exori Flam" words="exori flam" selftarget="1" direction="0" aggressive="1" lvl="0" maglv="0" mana="0" soul="0" exhaustion="1" prem="1" enabled="1" script="exori flam.lua"><vocation id="8"/></instant>
__________________________________________________________________________________________
Następnie wchodzimy w data >>> Monster i tworzymy nowy plik o nazwie Magic adept.xml Jego zawartość:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Magic Adept" nameDescription="a Magic Adept" race="blood" experience="8410" speed="240" manacost="0">
<health now="9100" max="9100"/>
<look type="194" head="114" body="94" legs="94" feet="57" corpse="6080"/>
<targetchange interval="60000" chance="0"/>
<strategy attack="55" defense="55"/>
<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="50"/>
<flag targetdistance="1"/>
<flag runonhealth="1200"/>
</flags>
<attacks>
<attack name="melee" interval="2000" chance="60" min="-215" max="-310"/>
<attack name="Sudden Death" interval="2000" chance="60" min="-215" max="-300" range="3"/>
<attack name="exori" interval="3000" chance="55" min="-410" max="-760"/>
<attack name="Great Fireball" interval="3000" chance="50" min="-210" max="-275" range="6"/>
<attack name="Arrow" interval="2000" chance="50" range="3" min="-230" max="-440"/>
</attacks>
<defenses armor="56" defense="60">
<defense name="outfit" interval="5000" chance="50" monster="ghoul" duration="5000">
<attribute key="areaEffect" value="blueshimmer"/>
</defense>
<defense name="light healing" interval="5000" chance="65" min="200" max="350"/>
</defenses>
<immunities>
<immunity physical="0"/>
<immunity energy="1"/>
<immunity fire="1"/>
<immunity poison="0"/>
<immunity lifedrain="0"/>
<immunity paralyze="1"/>
<immunity outfit="0"/>
<immunity drunk="0"/>
<immunity invisible="1"/>
</immunities>
<voices interval="4000" chance="65">
<voice sentence="Jestem uczniem Magic Gladiator'a!"/>
<voice sentence="Nie dlugo osiagne szczyt swoich mozliwosci!"/>
<voice sentence="Moja magia i walka na miecze cie zabije!"/>
<voice sentence="Zabije cie dla mojego pana!"/>
</voices>
<loot>
<item id="2148" countmax="51" chance1="10000" chancemax="0"/>
<item id="2152" countmax="31" chance1="10000" chancemax="0"/>
<item id="2151" countmax="8" chance1="10000" chancemax="0"/>
<item id="2189" chance="9000"/>
<item id="2158" chance="10000"/>
</loot>
</monster>
------------------------------------------------------------------------------------------------------------------------------
I wchodzimy w monsters.xml i wpisujemy w nim:
Code:
<monster name="Magic Adept" file="Magic Adept.xml" />
------------------------------------------------------------------------------------------------------------------------------
**KONIEC**KONIEC**KONIEC**KONIEC**KONIEC**KONIEC**KONIEC**KONIEC**KONIEC**KONIEC**
------------------------------------------------------------------------------------------------------------------------------
Następnie robimy GŁÓWNEGO STWORA
Wchodzimy w data/monster i robimy stwora o nazwie Magic gladiator.xml a to jego zawartość:
Code:
<?xml version="1.0"?>
<monster name="Magic Gladiator" description="a Magic Gladiator" experience="33050" speed="380" race="human">
<health now="29300" max="29300"/>
<strategy attack="155" defense="125"/>
<targetchange speed="3420" chance="33"/>
<look type="131" head="94" body="79" addons="2" legs="114" feet="114" corpse="6022"/>
<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="50"/>
<flag targetdistance="1"/>
<flag runonhealth="1000"/>
</flags>
<attacks>
<attack name="melee" interval="2000" min="-620" max="-910"/>
<attack name="exori" interval="3000" chance="65" min="-620" max="-1260"/>
<attack name="exori flam" interval="3000" chance="65" min="-450" max="-975"/>
<attack name="Sudden Death" interval="3000" chance="65" min="-510" max="-600" range="3"/>
<attack name="Great Fireball" interval="3000" chance="50" min="-210" max="-245" range="4"/>
<attack name="Burst arrow" interval="4000" chance="60" range="7" min="-540" max="-740"/>
</attacks>
<defenses armor="56" defense="60">
<defense name="outfit" interval="7000" chance="50" monster="Orc Warrior" duration="3000">
<attribute key="areaEffect" value="redshimmer"/>
</defense>
<defense name="outfit" interval="7000" chance="50" monster="Hero" duration="3000">
<attribute key="areaEffect" value="blueshimmer"/>
</defense>
<defense name="light healing" interval="8000" chance="50" min="100" max="300" />
</defenses>
<immunities>
<immunity physical="0"/>
<immunity energy="1"/>
<immunity fire="1"/>
<immunity poison="0"/>
<immunity lifedrain="0"/>
<immunity paralyze="1"/>
<immunity outfit="0"/>
<immunity drunk="0"/>
<immunity invisible="1"/>
</immunities>
<voices interval="4000" chance="65">
<voice sentence="Jestem magicznym gladiatorem!"/>
<voice sentence="Moge zniszczyc gory z exori!"/>
<voice sentence="Bedziesz wachal kwiatki od spodu!"/>
<voice sentence="Jestem najlepszym wojownikiem na swiecie!"/>
</voices>
<summons maxSummons="1">
<summon name="Magic adept" speed="1000" chance="30"/>
</summons>
<loot>
<item id="2148" countmax="75" chance1="9000" chancemax="0"/>
<item id="2160" countmax="2" chance1="10000" chancemax="0"/>
<item id="2152" countmax="31" chance1="10000" chancemax="0"/>
<item id="2546" countmax="26" chance1="10000" chancemax="0"/>
<item id="2184" chance="9000"/>
<item id="2153" chance="9000"/>
<item id="2164" chance="10000"/>
<item id="2377" chance="9000"/>
</loot>
</monster>
------------------------------------------------------------------------------------------------------------------------------
I oczywiście zapisujemy po czym wchodzimy w monsters.xml i wpisujemy:
Code:
<monster name="Magic Gladiator" file="Magic Gladiator.xml" />
------------------------------------------------------------------------------------------------------------------------------
Tutaj dodam screena zebyscie sie nie zniechecali
http://img689.imageshack.us/img689/5...cgladiator.png
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_--_-_-_-_-_-_-_-_--_-_-_-_-_-_-_-_--_-_-_-_-_-_-_-_--_-_-_-_-_-_-_-_-
Offline