- Dołączył
- Kwiecień 4, 2008
- Posty
- 70
- Liczba reakcji
- 9
Witam,
Pragn? Wam zaprezentowa? Potwora w?asnej roboty, kt?ry zamienia Nas i Siebie w Co? innego, a tak?e mo?e przeobrazi? si? w Nas
Tworzymy plik Thing.xml w data/monsters i wklejamy to:
Nast?pnie wchodzimy w monsters.xml i wklejamy to:
Wchodzimy do data/items/items.xml i zmieniamy itemy 5812 i 5813 na to:
Do niego wklejamy to:
Potem wchodzimy do data/weapons/weapons.xml i do linijki
wklejamy to:
Ca?o?? po edycji powinna wygl?da? tak:
W?a?nie stworzyli?my potwora, po kt?rego zabiciu zostaje czaszka.
Gdy j? zapalimy b?dzie ona wali? ogniem, za? po zgaszeniu nie b?dzi erobi? nic.
Pozdrawiam,
Wawus
Pragn? Wam zaprezentowa? Potwora w?asnej roboty, kt?ry zamienia Nas i Siebie w Co? innego, a tak?e mo?e przeobrazi? si? w Nas

Tworzymy plik Thing.xml w data/monsters i wklejamy to:
<?xml version="1.0" encoding="UTF-8" ?>
<monster name="Thing" nameDescription="You see Thing" race="blood" experience="900" speed="220" manacost="0">
<health now="2700" max="2700" />
<look type="234" corpse="5813" />
<targetchange interval="2000" chance="50" />
<strategy attack="100" defense="0" />
<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 targetdistance="7" />
<flag runonhealth="1000" />
</flags>
<attacks>
<attack name="trans" interval="5000" chance="400"/>
<attack name="melee" interval="2000" skill="50" attack="40" />
<attack name="energy field" interval="5000" chance="800"/>
<attack name="fire field" interval="5000" chance="800"/>
<attack name="poison field" interval="5000" chance="800"/>
<attack name="lost_drain" interval="5000" chance="800"/>
<attack name="life drain" interval="5000" chance="800"/>
<attack name="imitate" interval="5000" chance="800"/>
<attack name="mana drain" interval="5000" chance="800"/>
<attack name="large rock" interval="5000" chance="800"/>
</attacks>
<defenses armor="25" defense="35">
<defense name="healing" interval="1000" chance="50" min="75" max="125">
<attribute key="areaEffect" value="blueshimmer"/>
</defense>
</defenses>
<immunities>
<immunity physical="0" />
<immunity energy="0" />
<immunity fire="0" />
<immunity poison="0" />
<immunity lifedrain="0" />
<immunity paralyze="1" />
<immunity outfit="1" />
<immunity drunk="1" />
<immunity invisible="1" />
</immunities>
<summons max="10">
<summon name="thing" interval="5600" chance="10000" max="10" />
</summons>
<voices interval="5000" chance="1000">
<voice sentence="Thing!" />
<voice sentence="What I am?" />
<voice sentence="Who are YOU!?!" />
</voices>
<loot capacity="900">
<item id="5909" countmax="4" chance="4200" /> white piece
<item id="2148" countmax="30" chance1="100000" chancemax="3000" /> gold
<item id="2148" countmax="100" chance1="65000" chancemax="300" /> gold
<item id="2148" countmax="20" chance1="9999" chancemax="300" /> gold
<item id="2689" countmax="6" chance1="10000" chancemax="3333" /> bread
<item id="2151" countmax="5" chance1="5555" chancemax="0" /> talon
<item id="2679" countmax="5" chance1="10000" chancemax="2500" /> cherry
<item id="2357" chance="800" /> ring of sky
<item id="2047" chance="37000" /> candle
<item id="1987" chance="100000">
<inside>
<item id="2167" chance="3400" /> energy ring
<item id="2792" countmax="3" chance1="6500" chancemax="0" /> dark m
<item id="2114" chance="750" /> piggy bank
<item id="2656" chance="4200" /> blue robe
<item id="2600" chance="10000" /> inkwell
<item id="2436" chance="3200" /> skull staff
<item id="1982" chance="1500" /> purpel tome
<item id="2197" chance="3200" /> stone skin amulet
<item id="2185" chance="1200" /> volcanic rod
<item id="2466" chance="1000" /> golden a
<item id="2178" chance="2600" /> mind stone
</inside>
</item>
</loot>
</monster>
Nast?pnie wchodzimy w monsters.xml i wklejamy to:
<monster name="Thing" file="Thing.xml" />
Wchodzimy do data/items/items.xml i zmieniamy itemy 5812 i 5813 na to:
Nast?pnie wchodzimy w data/weapons/scripts i tworzymy plik o nazwie thing.xml<item id="5812" article="a" name="thing">
<attribute key="description" value="This is thing remains. It emits clouds of fire"/>
<attribute key="weight" value="650"/>
<attribute key="weaponType" value="wand"/>
<attribute key="range" value="4"/>
</item>
<item id="5813" article="a" name="thing">
<attribute key="description" value="This is thing remains. It isn't emits clouds of fire."/>
<attribute key="weight" value="650"/>
<attribute key="weaponType" value="wand"/>
<attribute key="range" value="4"/>
Do niego wklejamy to:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -14, 0, -24)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
Potem wchodzimy do data/weapons/weapons.xml i do linijki
<!-- Wands -->
<wand id="2184" range="4" lvl="8" mana="5" enabled="1" exhaustion="0" script="healing wand.lua"><vocation id="1"/><vocation id="5"/></wand>
<wand id="2191" range="3" lvl="13" mana="3" enabled="1" exhaustion="0" script="wand of dragonbreath.lua"><vocation id="1"/><vocation id="5"/></wand>
<wand id="2188" range="2" lvl="19" mana="5" enabled="1" exhaustion="0" script="wand of plague.lua"><vocation id="1"/><vocation id="5"/></wand>
<wand id="2189" range="1" lvl="26" mana="8" enabled="1" exhaustion="0" script="wand of cosmic energy.lua"><vocation id="1"/><vocation id="5"/></wand>
<wand id="2187" range="3" lvl="33" mana="13" enabled="1" exhaustion="0" script="wand of inferno.lua"><vocation id="1"/><vocation id="5"/></wand>
wklejamy to:
<wand id="5812" range="4" lvl="10" mana="0" enabled="1" exhaustion="0" script="thing.lua"><vocation id="2"/><vocation id="1"/><vocation id="3"/><vocation id="4"/><vocation id="6"/><vocation id="5"/><vocation id="7"/><vocation id="8"/></wand>
Ca?o?? po edycji powinna wygl?da? tak:
<!-- Wands -->
<wand id="5812" range="4" lvl="10" mana="0" enabled="1" exhaustion="0" script="thing.lua"><vocation id="2"/><vocation id="1"/><vocation id="3"/><vocation id="4"/><vocation id="6"/><vocation id="5"/><vocation id="7"/><vocation id="8"/></wand>
<wand id="2184" range="4" lvl="8" mana="5" enabled="1" exhaustion="0" script="healing wand.lua"><vocation id="1"/><vocation id="5"/></wand>
<wand id="2191" range="3" lvl="13" mana="3" enabled="1" exhaustion="0" script="wand of dragonbreath.lua"><vocation id="1"/><vocation id="5"/></wand>
<wand id="2188" range="2" lvl="19" mana="5" enabled="1" exhaustion="0" script="wand of plague.lua"><vocation id="1"/><vocation id="5"/></wand>
<wand id="2189" range="1" lvl="26" mana="8" enabled="1" exhaustion="0" script="wand of cosmic energy.lua"><vocation id="1"/><vocation id="5"/></wand>
<wand id="2187" range="3" lvl="33" mana="13" enabled="1" exhaustion="0" script="wand of inferno.lua"><vocation id="1"/><vocation id="5"/></wand>
W?a?nie stworzyli?my potwora, po kt?rego zabiciu zostaje czaszka.
Gdy j? zapalimy b?dzie ona wali? ogniem, za? po zgaszeniu nie b?dzi erobi? nic.
Pozdrawiam,
Wawus



