- Dołączył
- Lipiec 16, 2008
- Posty
- 340
- Liczba reakcji
- 16
Witam! Chcia?bym przedstawi? nowego stwora! Jest on rozbudowany wi?c trzeba zacz?? od tego: Wchodzimy w folder silnika/data/speels/scripts i robimy 2 nowe pliki, pierwszy nazywamy Exori Cold.lua a drugi Cold Furry.lua
Wchodzimy w plik Exori Cold.lua i wklejacie t? zawarto??:
i zapisujemy! Nast?pnie zawarto?? Cold furry.lua
i zapisujemy! Nast?pnie wchodzimy w data/spells/ i wchodzimy w spells.xml i doklejamy to:
i od razu to:
a teraz jedziemy z tym koksem! Wchodzimy w data/monster/ i robimy nowy plik o nazwie Crystal Student.xml
a jego zawarto??:
I robimy g??wnego stwora! Robimy plik o nazwie Crystal Mage.xml a oto jego zawarto?? :]
zapisujemy, ale nie wychodzimy z folderu tylko szukamy monsters.xml
a w nim dodajemy to:
i to:
Stw?r pod tibi? 8.10, pod expy 120-200. Zapraszam do oceniania i korzystania z potwora!
Screen:
http://img256.imageshack.us/img256/4341/stworek.png
@Bolts
W?a?nie chodzi o to ?e robi?em wszystko z nowych linijek... Nie jestem taki ?e kopiuj? z innego stwora i zmieniam tylko hp ^^ Na marne kopiowa? Ice Witcha. Mo?e ty tak robisz ale ja si? staram by? oryginalny
W og?le ?adne? Nawet Crystal arrow, czy sudden death? ;/ No szkoda ;d
Wchodzimy w plik Exori Cold.lua i wklejacie t? zawarto??:
Kod:
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 43)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -0.4, -50, -0.5, -350)
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 43)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -0.4, -60, -0.5, -350)
arr1 = {
{0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0},
{0, 0, 1, 1, 0, 0, 0},
{0, 0, 1, 2, 0, 0, 0},
{0, 0, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0},
}
arr2 = {
{0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 0, 0},
{0, 0, 0, 2, 1, 0, 0},
{0, 0, 0, 1, 1, 0, 0},
{0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0},
}
local area1 = createCombatArea(arr1)
local area2 = createCombatArea(arr2)
setCombatArea(combat1, area1)
setCombatArea(combat2, area2)
local function onCastSpell1(parameters)
doCombat(parameters.cid, parameters.combat1, parameters.var)
end
local function onCastSpell2(parameters)
doCombat(parameters.cid, parameters.combat2, parameters.var)
end
function onCastSpell(cid, var)
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2 }
addEvent(onCastSpell1, 100, parameters)
addEvent(onCastSpell2, 500, parameters)
end
Kod:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 41)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -2.0, -150, -1.6, -550)
arr = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 1, 1, 2, 1, 1, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 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
Kod:
<instant name="Exori Cold" words="exori cold" selftarget="1" direction="0" aggressive="1" lvl="0" maglv="0" mana="200" soul="0" exhaustion="1" prem="0" enabled="1" script="Exori cold.lua"><vocation id="8"/></instant>
Kod:
<instant name="Cold Furry" words="cold furry" selftarget="1" direction="1" aggressive="1" lvl="0" maglv="0" mana="300" soul="0" exhaustion="1" prem="1" enabled="1" script="Cold Furry.lua"><vocation id="5"/></instant>
a jego zawarto??:
Kod:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Crystal Student" nameDescription="a Crystal Student" race="blood" experience="7100" speed="255" manacost="0">
<health now="8410" max="8410"/>
<look type="194" head="85" body="85" legs="85" feet="85" corpse="6080"/>
<targetchange interval="60000" chance="25"/>
<strategy attack="55" defense="45"/>
<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="150"/>
</flags>
<attacks>
<attack name="melee" interval="1500" chance="100" skill="20" attack="30" range="1">
<attribute key="areaEffect" value="snowattack"/>
</attack>
<attack name="manadrain" interval="2200" chance="22" min="-122" max="-270" range="3">
<attribute key="areaEffect" value="yellowenergy"/>
</attack>
<attack name="Arrow" interval="2000" chance="55" range="6" min="-340" max="-450"/>
<attack name="Sudden Death" interval="3000" chance="55" min="-210" max="-550" range="2"/>
</attacks>
<defenses armor="35" defense="15">
<defense name="outfit" interval="7000" chance="50" monster="bear" duration="4000">
<attribute key="areaEffect" value="redshimmer"/>
</defense>
<defense name="great healing" interval="11000" chance="50" min="350" max="400" />
</defenses>
<immunities>
<immunity physical="1"/>
<immunity energy="0"/>
<immunity fire="0"/>
<immunity poison="1"/>
<immunity lifedrain="0"/>
<immunity paralyze="0"/>
<immunity outfit="0"/>
<immunity drunk="0"/>
<immunity invisible="1"/>
</immunities>
<voices interval="6000" chance="75">
<voice sentence="Jestem uczniem zywiolu lodu!"/>
<voice sentence="Zatluke cie!"/>
</voices>
<loot>
<item id="2152" countmax="11" chance1="10000" chancemax="0"/>
<item id="2149" countmax="21" chance1="9000" chancemax="0"/>
<item id="2148" countmax="88" chance1="10000" chancemax="0"/>
<item id="2192" chance="9000"/>
</loot>
</monster>
Kod:
<?xml version="1.0"?>
<monster name="Crystal Mage" description="a Crystal Mage" experience="28050" speed="365" race="human">
<health now="31300" max="31300"/>
<strategy attack="50" defense="50"/>
<targetchange speed="3420" chance="33"/>
<look type="130" head="85" body="85" addons="2" legs="85" feet="85" 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="2100"/>
</flags>
<attacks>
<attack name="melee" interval="1500" chance="100" skill="40" attack="50" range="1">
<attribute key="areaEffect" value="snowattack"/>
</attack>
<attack name="manadrain" interval="2200" chance="22" min="-210" max="-400" range="3">
<attribute key="areaEffect" value="redenergy"/>
</attack>
<attack name="Crystal arrow" interval="3000" chance="55" range="6" min="-740" max="-850"/>
<attack name="Sudden Death" interval="3000" chance="55" min="-410" max="-650" range="3"/>
<attack name="Exori Cold" interval="3000" chance="55" min="-850" max="-675"/>
<attack name="Cold Furry" interval="3000" chance="55" min="-455" max="-755"/>
<attack name="Great Fireball" interval="3000" chance="50" min="-310" max="-545" range="4"/>
</attacks>
<defenses armor="60" defense="40">
<defense name="outfit" interval="5000" chance="50" monster="Monk" 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="11000" chance="50" min="500" max="900" />
</defenses>
<immunities>
<immunity physical="0"/>
<immunity energy="1"/>
<immunity fire="0"/>
<immunity poison="1"/>
<immunity lifedrain="1"/>
<immunity paralyze="0"/>
<immunity outfit="0"/>
<immunity drunk="0"/>
<immunity invisible="1"/>
</immunities>
<voices interval="6000" chance="75">
<voice sentence="Smierc ! Smierc ! SMIEERC!"/>
<voice sentence="Moim zywiolem jest lod!"/>
<voice sentence="Zostalem zrobiony z krysztalow Nargosa!"/>
<voice sentence="Jestem super magiem!"/>
</voices>
<summons maxSummons="1">
<summon name="Crystal Student" speed="1000" chance="30"/>
</summons>
<loot>
<item id="2148" countmax="88" chance1="10000" chancemax="0"/>
<item id="2160" countmax="4" chance1="8399" chancemax="0"/>
<item id="2111" countmax="52" chance1="8399" chancemax="0"/>
<item id="2146" countmax="14" chance1="9000" chancemax="0"/>
<item id="2184" chance="9000"/>
<item id="2192" chance="8555"/>
<item id="7455" chance="9000"/>
</loot>
</monster>
a w nim dodajemy to:
Kod:
<monster name="Crystal Mage" file="Crystal Mage.xml" />
Kod:
<monster name="Crystal student" file="Crystal student.xml" />
Stw?r pod tibi? 8.10, pod expy 120-200. Zapraszam do oceniania i korzystania z potwora!
Screen:
http://img256.imageshack.us/img256/4341/stworek.png
@Bolts
W?a?nie chodzi o to ?e robi?em wszystko z nowych linijek... Nie jestem taki ?e kopiuj? z innego stwora i zmieniam tylko hp ^^ Na marne kopiowa? Ice Witcha. Mo?e ty tak robisz ale ja si? staram by? oryginalny
W og?le ?adne? Nawet Crystal arrow, czy sudden death? ;/ No szkoda ;d
), pozatym ?e doda?e? dwa nowe spelle - dlatego jest tak "rozbudowany" + summon w?asnej roboty potworka, nic wielkiego nie wida?. Chod? musz? przyzna? ?e nie ka?demu chce si? po?wi?ca? czas na robot? ; _ Dlatego leci repucik. Mo?e przyda si? innym; bynajmniej mi nie 
