- Dołączył
- Lipiec 8, 2009
- Posty
- 485
- Liczba reakcji
- 22
Witam przedstawiam wam mojego Shreka chyba kazdy zna tego Ogra =) niebede sie wiele rozpisywal wiec przejdzmy do rzeczy
W data/ monsters/ orcs robimy plik o nazwie Shrek.xml i wklejamy to
Nastepnie w data/ monster/ monsters wklejamy ta linijke
Jest to moj pierwszy skrypt wiec prosze o wyrozumialosc ale tez o powiedzenie mi co przy nastepnym potworku musze poprawic
W data/ monsters/ orcs robimy plik o nazwie Shrek.xml i wklejamy to
Kod:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Shrek" nameDescription="a orc" race="blood" experience="25" speed="150" manacost="300">
<health now="10000" max="10000"/>
<look type="5" head="0" body="0" legs="0" feet="0" corpse="5966"/>
<targetchange interval="2000" chance="0"/>
<strategy attack="500" defense="40"/>
<flags>
<flag summonable="1"/>
<flag attackable="1"/>
<flag hostile="1"/>
<flag illusionable="1"/>
<flag convinceable="1"/>
<flag pushable="1"/>
<flag canpushitems="0"/>
<flag canpushcreatures="0"/>
<flag targetdistance="1"/>
<flag staticattack="90"/>
<flag runonhealth="15"/>
</flags>
<attacks>
<attack name="melee" interval="2000" skill="22" attack="500"/>
</attacks>
<defenses armor="4" defense="8"/>
<immunities>
<immunity physical="0"/>
<immunity energy="0"/>
<immunity fire="0"/>
<immunity poison="0"/>
<immunity lifedrain="0"/>
<immunity paralyze="0"/>
<immunity outfit="0"/>
<immunity drunk="0"/>
<immunity invisible="0"/>
</immunities>
<voices interval="5000" chance="10">
<voice sentence="Zjadam takich jak ty na kolacje!"/>
<voice sentence="Zalatwmy te sprawe bo Fiona czeka z obiadem."/>
</voices>
<loot>
<item id="3976" countmax="10" chance1="50000" chancemax="0"/>
<item id="2148" countmax="12" chance1="100000" chancemax="0"/>
<item id="2666" countmax="2" chance1="33333" chancemax="0"/>
<item id="2474" chance="10000"/>
<item id="2665" chance="10000"/>
<item id="8866" chance="10000"/>
<item id="3983" chance="100000">
<inside>
<item id="2526" chance="10000"/>
<item id="2386" chance="10000"/>
</inside>
</item>
</loot>
</monster>
Nastepnie w data/ monster/ monsters wklejamy ta linijke
Kod:
<monster name="Shrek" file="orcs/Shrek.xml"/>
Jest to moj pierwszy skrypt wiec prosze o wyrozumialosc ale tez o powiedzenie mi co przy nastepnym potworku musze poprawic

