Templariusz.

Status
Zamknięty.

Oskar

Forum friend
Przyjaciel forum
Zarejestrowany
Dołączył
Styczeń 24, 2009
Posty
2256
Liczba reakcji
331
Tworzymy plik o nazwie:
PHP:
Knight Templar.xml
I wklejamy:
PHP:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Knight Templar" nameDescription="a knight templar" race="blood" experience="4750" speed="240" manacost="0">
	<health now="6500" max="6500"/>
	<look type="131" head="78" body="132" legs="132" feet="114" addons="3" corpse="6080"/>
	<targetchange interval="3500" chance="20"/>
	<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="1"/>
		<flag staticattack="90"/>
		<flag runonhealth="350"/>
	</flags>
	<attacks>    
		<attack name="melee" interval="2000" attack="90" skill="90"/>     
		<attack name="physical" interval="1456" chance="14" range="4" target="1" skill="105" attack="40">      
			<attribute key="shootEffect" value="whirlwindsword"/>    
		</attack> 
		<attack name="energy" interval="2234" chance="11" radius="3" target="0" min="-245" max="-487">
			<attribute key="areaEffect" value="poff"/>
		</attack>
	</attacks>
	<defenses armor="40" defense="55">
		<defense name="speed" interval="1247" chance="12" speedchange="320" duration="10000">
			<attribute key="areaEffect" value="redshimmer"/>
		</defense>
		<defense name="healing" interval="1583" chance="13" min="120" max="300">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
	</defenses>
	<elements>
		<element physicalPercent="35"/>
		<element earthPercent="75"/>
		<element deathPercent="50"/>
		<element firePercent="80"/>
		<element icePercent="-5"/>
	</elements>
	<immunities>
		<immunity invisible="1"/> 
		<immunity energy="1"/>
		<immunity drunk="1"/>
	</immunities> 
		<voices speed="5000" chance="10">    
		<voice sentence="The Knights of the Temple of Solomon to rise from the ashes." yell="1"/>    
		<voice sentence="Come on my battleground and fight with me! About own honour!" yell="1"/>         
	</voices>   
	<loot>
		<item id="2148" countmax="95" chance="80000"/> -- Gold
		<item id="2148" countmax="65" chance="60000"/> -- Gold
		<item id="2666" countmax="4" chance="8000"/> --meat
		<item id="2647" chance="4500"/> --plate legs
		<item id="2497" chance="700"/> --crusader helmet
		<item id="2207" chance="1000"/> --sword ring
		<item id="2430" chance="1000"/> --knight axe
		<item id="1948" chance="11000"/> --parchment
		<item id="1987" chance="100000"> -- Bag
			<inside>
				<item id="2152" countmax="3" chance="10000"/> -- platinum coin
				<item id="2179" chance="900"/> --gold ring
				<item id="2200" chance="1500"/> --protection amulet
				<item id="2171" chance="850"/> --platinum amulet
				<item id="1982" chance="600"/> --purple tome
				<item id="2150" countmax="2" chance="2000"/> --small amethyst
				<item id="7385" chance="1000"/> --crimson sword
				<item id="2528" chance="800"/> --tower shield
				<item id="10137" chance="10"/> --PURPLE HEART
				<item id="2463" chance="1500"/> --plate armor
				<item id="2512" chance="10000"/> --wooden shield
				<item id="2464" chance="6000"/> --chain armor
				<item id="2153" chance="900"/> --violet gem
				<item id="2195" chance="250"/> --boh
			</inside>
		</item>
	</loot>
</monster>
Do monsters.xml wklejamy:
PHP:
<monster name="Knight Templar" file="Knight Templar.xml"/>
Wchodzimy teraz do pliku items.xml, szukamy linijki (kt?rej prawdopodobnie nie znajdziecie) z itemem o ID = 10137 i wklejacie co? takiego:
PHP:
<item id="10137" article="a" name="purple heart">
<attribute key="weight" value="600"/>
</item>
Wygl?d:
drawthing.php
 
Status
Zamknięty.
Back
Do góry