• logo_cipsoft
    Nowe serwery zostały otwarte 27 Paź 2025:
    Idyllia (Optional PvP) Hostera (Open PvP) us_logo Dracobra (Open PvP)

Holy, Death, Energy, Physical

Status
Zamknięty.

Oskar

Forum friend
Wchodzimy w folder monsters i tworzymy cztery pliki:
Kod:
Holy.xml
Kod:
Death.xml
Kod:
Energy.xml
Kod:
Physical
I wklejamy kolejno:
Do Holy.xml:
Kod:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Holy" nameDescription="a holy" race="blood" experience="3000" speed="920" manacost="0">
	<health now="10000" max="10000"/>
	<look type="12" head="0" body="79" legs="0" feet="0" corpse="6068"/>
	<targetchange interval="5500" chance="9"/>
	<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="85"/>
		<flag runonhealth="0"/>
	</flags>
	<attacks>
		<attack name="melee" interval="2000" min="-1477" max="-1821"/>
		<attack name="holy" interval="2200" chance="21" radius="5" target="0" min="-753" max="-925">
			<attribute key="areaEffect" value="yellowenergy"/>
			</attack>			
			<attack name="holy1" interval="2100" chance="30" min="-1263" max="-2153"/>
			<attack name="outfit" interval="1900" chance="19" radius="11" target="0" monster="Azerus" duration="5000">
			<attribute key="areaEffect" value="yellownote"/>
			</attack>
			<attack name="holy" interval="2150" chance="24" length="7" spread="0" min="-813" max="-1295">
			<attribute key="areaEffect" value="holyarea"/>
			</attack>
			<attack name="holy" interval="1000" chance="50" range="7" target="1" min="-183" max="-313">
			<attribute key="areaEffect" value="holydamage"/>
			<attribute key="shootEffect" value="holy"/>
			</attack>
			<attack name="holy" interval="1500" chance="18" radius="2" target="1" min="-516" max="-854">
			<attribute key="areaEffect" value="yellowfirework"/>
			</attack>
	</attacks>
	<defenses armor="90" defense="115">
		<defense name="healing" interval="2500" chance="33" min="300" max="500">
			<attribute key="areaEffect" value="holyarea"/>
		</defense>
		<defense name="healing" interval="1600" chance="26" min="200" max="400">
			<attribute key="areaEffect" value="holyarea"/>
		</defense>
		</defenses>
		<elements>
<element icePercent="15"/>
<element firePercent="40"/>
<element physicalPercent="80"/>
<element deathPercent="-10"/>
</elements>
	<immunities>
		<immunity lifedrain="1"/>
		<immunity holy="1"/>
		<immunity energy="1"/>
		<immunity paralyze="1"/>
		<immunity drunk="1"/>
		<immunity invisible="1"/>
	</immunities>
<loot>
	<item id="2148" chance="90000" countmax="100"/>
	<item id="2148" chance="80000" countmax="100"/>
	<item id="2160" chance="7000" countmax="3"/>
	<item id="7365" chance="27000" countmax="75"/>
	<item id="2150" chance="7000" countmax="17"/>
	<item id="2146" chance="7000" countmax="4"/>
	<item id="2151" chance="6000" countmax="4"/>
	<item id="6500" chance="10000" countmax="5"/>
	<item id="2145" chance="8000" countmax="5"/>
	<item id="2155" chance="1000"/>
	<item id="2158" chance="1000"/>
	<item id="5954" chance="1000"/>
	<item id="2179" chance="3000"/>
	<item id="6300" chance="3000"/>
	<item id="1987" chance="100000">
	  <inside>
		<item id="7896" chance="8000"/>
		<item id="2520" chance="6000"/>
		<item id="2514" chance="3000"/>
		<item id="2472" chance="1000"/>
		<item id="2421" chance="6000"/>
		<item id="7431" chance="1000"/>
		<item id="2646" chance="5000"/>
		<item id="8887" chance="6000"/>
		<item id="7428" chance="7000"/>
		<item id="8866" chance="6000"/>
	  </inside>
	</item>
  </loot>
</monster>
Do Death.xml:
Kod:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Death" nameDescription="a death" race="UNDEAD" experience="8000" speed="920" manacost="0">
	<health now="16000" max="16000"/>
	<look type="12" head="0" body="114" legs="0" feet="0" corpse="6068"/>
	<targetchange interval="5500" chance="9"/>
	<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="85"/>
		<flag runonhealth="0"/>
	</flags>
	<attacks>
		<attack name="melee" interval="2000" min="-1477" max="-1821"/>
		<attack name="speed" interval="2260" chance="19" target="0" radius="5" speedchange="-420" duration="10000">
			<attribute key="areaEffect" value="stones"/>
		</attack>
		<attack name="physical" interval="2200" chance="21" radius="3" target="0" min="-1364" max="-1514">
			<attribute key="areaEffect" value="blackspark"/>
			</attack>
			<attack name="death1" interval="2100" chance="30" min="-1130" max="-2074"/>
			<attack name="lifedrain" interval="2000" chance="18" radius="5" target="1" min="-1127" max="-1585">
			<attribute key="areaEffect" value="redshimmer"/>
			<attribute key="shootEffect" value="energy"/>
			</attack>
			<attack name="lifedrain" interval="2150" chance="21" radius="7" target="0" min="-374" max="-463">
			<attribute key="areaEffect" value="purplenote"/>
			</attack>
			<attack name="cursecondition" interval="1900" chance="26" length="7" spread="0" min="-700" max="-1100">
			<attribute key="areaEffect" value="mortarea"/>
			</attack>
	</attacks>
	<defenses armor="90" defense="115">
			<defense name="speed" interval="2000" chance="19" speedchange="400" duration="3000">
			<attribute key="areaEffect" value="groundshaker"/>
		</defense>
		<defense name="healing" interval="1600" chance="26" min="200" max="400">
			<attribute key="areaEffect" value="mortarea"/>
		</defense>
		<defense name="healing" interval="2500" chance="33" min="300" max="500">
			<attribute key="areaEffect" value="mortarea"/>
		</defense>
		</defenses>
		<elements>
<element holyPercent="-5"/>
<element icePercent="-10"/>
</elements>
	<immunities>
		<immunity lifedrain="1"/>
		<immunity death="1"/>
		<immunity energy="1"/>
		<immunity fire="1"/>
		<immunity earth="1"/>
		<immunity paralyze="1"/>
		<immunity drunk="1"/>
		<immunity invisible="1"/>
	</immunities>
	<summons maxSummons="3">
    <summon name="fury" interval="2000" chance="33" max="3"/>
  </summons>
<loot>
	<item id="2148" chance="80000" countmax="100"/>
	<item id="2148" chance="80000" countmax="90"/>
	<item id="7368" chance="60000" countmax="31"/>
	<item id="2160" chance="70000" countmax="4"/>
	<item id="7407" chance="15000"/>
	<item id="2494" chance="20000"/>
	<item id="8900" chance="12000"/>
	<item id="2152" chance="30000" countmax="86"/>
	<item id="2470" chance="50000"/>
	<item id="8853" chance="30000"/>
	<item id="2471" chance="1000"/>
	<item id="2495" chance="2000"/>
	<item id="2390" chance="1000"/>
	<item id="2152" chance="30000" countmax="36"/>
	<item id="2148" chance="80000" countmax="91"/>
	<item id="2466" chance="70000"/>
	<item id="8852" chance="7000"/>
	<item id="2365" chance="40000">
		<inside>	
	<item id="11234" chance="5000"/>	
	<item id="8906" chance="5000"/>
		</inside>
	</item>
  </loot>
</monster>
Do Energy.xml:
Kod:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Energy" nameDescription="an energy" race="UNDEAD" experience="8000" speed="920" manacost="0">
	<health now="12500" max="12500"/>
	<look type="12" head="0" body="88" legs="0" feet="0" corpse="6068"/>
	<targetchange interval="5500" chance="9"/>
	<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="85"/>
		<flag runonhealth="500"/>
	</flags>
	<attacks>
		<attack name="melee" interval="2000" min="-1477" max="-1821"/>
		<attack name="energycondition" interval="2000" chance="19" target="0" radius="7" min="-600" max="-1000">
			<attribute key="areaEffect" value="bluefirework"/>
		</attack>
		<attack name="energy" interval="2200" chance="21" radius="5" target="0" min="-753" max="-925">
			<attribute key="areaEffect" value="purpleenergy"/>
			</attack>
			<attack name="speed" interval="1800" chance="21" radius="7" target="1" speedchange="-453" duration="10000">
			<attribute key="areaEffect" value="bluenote"/>
			</attack>
			<attack name="energy1" interval="2100" chance="30" min="-1263" max="-2153"/>
			<attack name="outfit" interval="1900" chance="19" radius="11" target="0" monster="energy elemental" duration="5000">
			<attribute key="areaEffect" value="blueshimmer"/>
			</attack>
			<attack name="energy" interval="2150" chance="24" length="7" spread="0" min="-813" max="-1295">
			<attribute key="areaEffect" value="bigclouds"/>
			</attack>
			<attack name="energy" interval="1000" chance="50" range="7" target="1" min="-183" max="-313">
			<attribute key="areaEffect" value="energyarea"/>
			<attribute key="shootEffect" value="energy"/>
			</attack>
			<attack name="energyfield" interval="1500" chance="18" radius="16" target="1">
			<attribute key="shootEffect" value="flasharrow"/>
			</attack>
	</attacks>
	<defenses armor="90" defense="115">
			<defense name="speed" interval="2000" speedchange="390" duration="4000">
			<attribute key="areaEffect" value="teleport"/>
		</defense>
		<defense name="healing" interval="2500" chance="33" min="300" max="500">
			<attribute key="areaEffect" value="bigclouds"/>
		</defense>
		<defense name="healing" interval="1600" chance="26" min="200" max="400">
			<attribute key="areaEffect" value="bigclouds"/>
		</defense>
		</defenses>
		<elements>
<element holyPercent="25"/>
<element earthPercent="-5"/>
<element deathPercent="20"/>
<element physicalPercent="70"/>
</elements>
	<immunities>
		<immunity lifedrain="1"/>
		<immunity energy="1"/>
		<immunity fire="1"/>
		<immunity ice="1"/>
		<immunity paralyze="1"/>
		<immunity drunk="1"/>
		<immunity invisible="1"/>
	</immunities>
	<summons maxSummons="3">
    <summon name="massive energy elemental" interval="2000" chance="33" max="3"/>
  </summons>
<loot>
	<item id="2148" chance="90000" countmax="100"/>
	<item id="2148" chance="80000" countmax="100"/>
	<item id="2152" chance="11000" countmax="73"/>
	<item id="2160" chance="7000" countmax="3"/>
	<item id="7365" chance="27000" countmax="75"/>
	<item id="7368" chance="7000" countmax="47"/>
	<item id="2143" chance="7000" countmax="15"/>
	<item id="2144" chance="7000" countmax="15"/>
	<item id="6500" chance="10000" countmax="5"/>
	<item id="2145" chance="8000" countmax="5"/>
	<item id="2155" chance="1000"/>
	<item id="2158" chance="1000"/>
	<item id="5954" chance="1000"/>
	<item id="2179" chance="3000"/>
	<item id="6300" chance="3000"/>
	<item id="2436" chance="3000"/>
	<item id="1987" chance="100000">
	  <inside>
		<item id="7896" chance="8000"/>
		<item id="2520" chance="6000"/>
		<item id="2514" chance="3000"/>
		<item id="2472" chance="1000"/>
		<item id="2421" chance="6000"/>
		<item id="8884" chance="6000"/>
		<item id="6553" chance="7000"/>
		<item id="8887" chance="6000"/>
		<item id="7428" chance="7000"/>
		<item id="8866" chance="6000"/>
	  </inside>
	</item>
  </loot>
</monster>
 

Our partners and their custom servers:

Odp: Holy, Death, Energy, Physical

Oraz do Physical.xml:
Kod:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Physical" nameDescription="a physical" race="BLOOD" experience="10000" speed="920" manacost="0">
	<health now="12000" max="12000"/>
	<look type="12" head="0" body="90" legs="0" feet="0" corpse="6068"/>
	<targetchange interval="5500" chance="9"/>
	<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="85"/>
		<flag runonhealth="1000"/>
	</flags>
	<attacks>
		<attack name="melee" interval="2000" min="-1477" max="-2121"/>
		<attack name="outfit" interval="2100" chance="19" target="0" radius="5" monster="ghastly dragon" duration="10000">
			<attribute key="areaEffect" value="redshimmer"/>
		</attack>
		<attack name="drunk" interval="2500" chance="21" radius="5" target="0" duration="20000">
			<attribute key="areaEffect" value="stun"/>
			</attack>
			<attack name="death" interval="1800" chance="19" length="7" spread="0" min="-632" max="-853">
			<attribute key="areaEffect" value="mortarea"/>
			</attack>
		<attack name="speed" interval="2000" chance="20" range="7" target="1" speedchange="-420" duration="5000">
			<attribute key="areaEffect" value="purplenote"/>
			</attack>
			<attack name="manadrain" interval="1900" chance="19" radius="5" target="1" min="-427" max="-536">
			<attribute key="areaEffect" value="whitenote"/>
			</attack>
			<attack name="physical1" interval="2100" chance="30" min="-1243" max="-2131"/>
			<attack name="physical" interval="2150" chance="24" radius="3" target="0" min="-913" max="-1095">
			<attribute key="areaEffect" value="redspark"/>
			</attack>
			<attack name="death" interval="1000" chance="50" range="7" target="1" min="-183" max="-313">
			<attribute key="areaEffect" value="mortarea"/>
			<attribute key="shootEffect" value="suddendeath"/>
			</attack>
			<attack name="physical" interval="2300" chance="18" radius="7" target="0" min="-961" max="-1164">
			<attribute key="areaEffect" value="blackspark"/>
			</attack>
	</attacks>
	<defenses armor="90" defense="115">
			<defense name="speed" interval="2000" speedchange="100" duration="6000">
			<attribute key="areaEffect" value="blackspark"/>
		</defense>
		<defense name="healing" interval="1600" chance="26" min="200" max="400">
			<attribute key="areaEffect" value="groundshaker"/>
		</defense>
		<defense name="healing" interval="2500" chance="33" min="300" max="500">
			<attribute key="areaEffect" value="groundshaker"/>
		</defense>
		</defenses>
		<elements>
<element physicalPercent="-10"/>
<element holyPercent="-10"/>
</elements>
	<immunities>
		<immunity lifedrain="1"/>
		<immunity fire="1"/>
		<immunity death="1"/>
		<immunity poison="1"/>
		<immunity paralyze="1"/>
		<immunity drunk="1"/>
		<immunity invisible="1"/>
	</immunities>
	  	<voices interval="3000" chance="10">
		<voice sentence="I am going to play with yourself!" yell="1"/>
		<voice sentence="Fell my wrath" yell="1"/>
	</voices>
	<summons maxSummons="3">
    <summon name="Undead Dragon" interval="2000" chance="33" max="3"/>
  </summons>
<loot>
 	<item id="2148" countmax="100" chance="70000"/>
 	<item id="2148" countmax="100" chance="70000"/>
	<item id="2148" countmax="70" chance="70000"/>
 	<item id="2150" countmax="75" chance="16060"/>
 	<item id="2146" countmax="92" chance="12050"/>
<item id="2143" countmax="8" chance="70000"/>
<item id="2151" chance="7000"/>
<item id="2185" chance="7000"/>
<item id="2167" chance="5000"/>
<item id="2127" chance="4000"/>
<item id="2466" chance="3000"/>
<item id="2387" chance="3000"/>
<item id="2195" chance="2000"/>
<item id="2514" chance="800"/>
<item id="2472" chance="1000"/>
<item id="8903" chance="600"/>
<item id="7896" chance="400"/>
<item id="7427" chance="400"/>
<item id="8869" chance="400"/>
<item id="8885" chance="400"/>
<item id="8918" chance="200"/>
<item id="8924" chance="200"/>
<item id="1986" chance="1000"/>
<item id="7435" chance="200"/>
<item id="7418" chance="700"/>
<item id="7405" chance="400"/>
<item id="7417" chance="200"/>
<item id="5903" chance="100000"/>
 	<item id="1987" chance="100000">
 	  <inside>
	  <item id="2520" chance="1000"/>
	  <item id="7382" chance="900"/>
	  <item id="8868" chance="100"/>
	  <item id="2542" chance="400"/>
	  <item id="2539" chance="400"/>
	  <item id="2522" chance="200"/>
	  <item id="7423" chance="200"/>
	  <item id="8928" chance="200"/>
	  <item id="7388" chance="400"/>
	  <item id="7411" chance="600"/>
	  <item id="7410" chance="600"/>
	  <item id="7403" chance="400"/>
	  <item id="7414" chance="800"/>
	  <item id="7885" chance="400"/>
	  <item id="7895" chance="400"/>
	  <item id="8904" chance="200"/>
	  <item id="8902" chance="800"/>
	  <item id="2421" chance="400"/>
	  <item id="2112" chance="400"/>
	  <item id="7422" chance="1000"/>
	  <item id="2462" chance="4000"/>
	  <item id="2171" chance="4000"/>
	  <item id="2470" chance="2000"/>
	  <item id="2432" chance="5000"/>
	  <item id="2124" chance="6000"/>
	  <item id="2179" chance="6000"/>
	  <item id="2182" chance="7000"/>
	  <item id="9971" countmax="2" chance="10000"/>
	  <item id="9970" countmax="86" chance="10000"/>
	  <item id="2145" countmax="90" chance="13000"/>
		<item id="2147" countmax="49" chance="17000"/>
		<item id="2178" chance="4000"/>
		<item id="2170" chance="3000"/>
		<item id="2377" chance="3000"/>
		<item id="8930" chance="400"/>
 	  </inside>
 	</item>
  </loot>
</monster>
Do monsters.xml wklejamy:
Kod:
<monster name="Holy" file="Holy.xml"/>
Kod:
<monster name="Death" file="Death.xml"/>
Kod:
<monster name="Energy" file="Energy.xml"/>
Kod:
<monster name="Physical" file="Physical.xml"/>
Przenosimy si? do folderu spells/scripts:
Tworzymy cztery pliki o nazwach:
Kod:
Holy.lua
Kod:
Death.lua
Kod:
Energy.lua
Kod:
Physical.lua
W wklejamy kolejno:
Do Holy.lua:
Kod:
local combat1 = createCombatObject() 
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) 
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 39)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -7, 7, -6, 8) 
local combat2 = createCombatObject() 
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) 
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 39) 
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -7, 7, -6, 8) 
local combat3 = createCombatObject() 
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) 
setCombatParam(combat3, COMBAT_PARAM_EFFECT, 48) 
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -7, 7, -6, 8) 
local combat4 = createCombatObject() 
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) 
setCombatParam(combat4, COMBAT_PARAM_EFFECT, 49)
setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -7, 7, -6, 8) 
local combat5 = createCombatObject() 
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) 
setCombatParam(combat5, COMBAT_PARAM_EFFECT, 7) 
setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -7, 7, -6, 8) 
arr1 = { 
{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, 1, 0, 0, 0, 0}, 
{0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0}, 
{0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0}, 
{0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 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 1, 0, 0, 0, 0, 0}, 
{0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0}, 
{0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 1, 0, 0, 0, 2, 0, 0, 0, 1, 0}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0}, 
{0, 0, 0, 1, 0, 0, 0, 1, 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},
} 
arr5 = { 
{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, 0, 0, 0, 0, 0, 0}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 0, 0, 0, 0, 3, 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}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
} 
local area1 = createCombatArea(arr1) 
local area2 = createCombatArea(arr2) 
local area3 = createCombatArea(arr3) 
local area4 = createCombatArea(arr4) 
local area5 = createCombatArea(arr5)
setCombatArea(combat1, area1) 
setCombatArea(combat2, area2) 
setCombatArea(combat3, area3) 
setCombatArea(combat4, area4) 
setCombatArea(combat5, area5)
local function onCastSpell1(parameters) 
doCombat(parameters.cid, parameters.combat1, parameters.var) 
end 
local function onCastSpell2(parameters) 
doCombat(parameters.cid, parameters.combat2, parameters.var) 
end 
local function onCastSpell3(parameters) 
doCombat(parameters.cid, parameters.combat3, parameters.var) 
end
local function onCastSpell4(parameters) 
doCombat(parameters.cid, parameters.combat4, parameters.var) 
end
local function onCastSpell5(parameters) 
doCombat(parameters.cid, parameters.combat5, parameters.var) 
end
function onCastSpell(cid, var) 
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5 } 
addEvent(onCastSpell1, 200, parameters) 
addEvent(onCastSpell2, 200, parameters) 
addEvent(onCastSpell3, 200, parameters) 
addEvent(onCastSpell4, 0, parameters) 
addEvent(onCastSpell5, 0, parameters) 
return true
end
 
Ostatnia edycja:
Odp: Holy, Death, Energy, Physical

Do Death.lua:
Kod:
local combat1 = createCombatObject() 
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) 
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 17)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -7, 7, -6, 8) 
local combat2 = createCombatObject() 
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) 
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 17) 
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -7, 7, -6, 8) 
local combat3 = createCombatObject() 
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) 
setCombatParam(combat3, COMBAT_PARAM_EFFECT, 38) 
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -7, 7, -6, 8) 
local combat4 = createCombatObject() 
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) 
setCombatParam(combat4, COMBAT_PARAM_EFFECT, 44)
setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -7, 7, -6, 8) 
local combat5 = createCombatObject() 
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) 
setCombatParam(combat5, COMBAT_PARAM_EFFECT, 4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0, 0, 0, 0, 0, 0, 0, 0, 0},
} 
local area1 = createCombatArea(arr1) 
local area2 = createCombatArea(arr2) 
local area3 = createCombatArea(arr3) 
local area4 = createCombatArea(arr4) 
local area5 = createCombatArea(arr5)
setCombatArea(combat1, area1) 
setCombatArea(combat2, area2) 
setCombatArea(combat3, area3) 
setCombatArea(combat4, area4) 
setCombatArea(combat5, area5)
local function onCastSpell1(parameters) 
doCombat(parameters.cid, parameters.combat1, parameters.var) 
end 
local function onCastSpell2(parameters) 
doCombat(parameters.cid, parameters.combat2, parameters.var) 
end 
local function onCastSpell3(parameters) 
doCombat(parameters.cid, parameters.combat3, parameters.var) 
end
local function onCastSpell4(parameters) 
doCombat(parameters.cid, parameters.combat4, parameters.var) 
end
local function onCastSpell5(parameters) 
doCombat(parameters.cid, parameters.combat5, parameters.var) 
end
function onCastSpell(cid, var) 
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5 } 
addEvent(onCastSpell1, 0, parameters) 
addEvent(onCastSpell2, 0, parameters) 
addEvent(onCastSpell3, 0, parameters) 
addEvent(onCastSpell4, 0, parameters) 
addEvent(onCastSpell5, 0, parameters) 
return true
end
Do Energy.lua:
Kod:
local combat1 = createCombatObject() 
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE) 
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 37)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -7, 7, -6, 8) 
local combat2 = createCombatObject() 
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE) 
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 37) 
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -7, 7, -6, 8) 
local combat3 = createCombatObject() 
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE) 
setCombatParam(combat3, COMBAT_PARAM_EFFECT, 47) 
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -7, 7, -6, 8) 
local combat4 = createCombatObject() 
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE) 
setCombatParam(combat4, COMBAT_PARAM_EFFECT, 23)
setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -7, 7, -6, 8) 
local combat5 = createCombatObject() 
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE) 
setCombatParam(combat5, COMBAT_PARAM_EFFECT, 10) 
setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -7, 7, -6, 8) 
arr1 = { 
{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, 1, 0, 0, 0, 0}, 
{0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0}, 
{0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0}, 
{0, 0, 0, 0, 0, 2, 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}, 
{0, 0, 0, 0, 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, 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, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0}, 
{0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0}, 
{0, 0, 0, 1, 1, 0, 1, 1, 0, 0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 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, 3, 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}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
} 
local area1 = createCombatArea(arr1) 
local area2 = createCombatArea(arr2) 
local area3 = createCombatArea(arr3) 
local area4 = createCombatArea(arr4) 
local area5 = createCombatArea(arr5)
setCombatArea(combat1, area1) 
setCombatArea(combat2, area2) 
setCombatArea(combat3, area3) 
setCombatArea(combat4, area4) 
setCombatArea(combat5, area5)
local function onCastSpell1(parameters) 
doCombat(parameters.cid, parameters.combat1, parameters.var) 
end 
local function onCastSpell2(parameters) 
doCombat(parameters.cid, parameters.combat2, parameters.var) 
end 
local function onCastSpell3(parameters) 
doCombat(parameters.cid, parameters.combat3, parameters.var) 
end
local function onCastSpell4(parameters) 
doCombat(parameters.cid, parameters.combat4, parameters.var) 
end
local function onCastSpell5(parameters) 
doCombat(parameters.cid, parameters.combat5, parameters.var) 
end
function onCastSpell(cid, var) 
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5 } 
addEvent(onCastSpell1, 0, parameters) 
addEvent(onCastSpell2, 0, parameters) 
addEvent(onCastSpell3, 0, parameters) 
addEvent(onCastSpell4, 0, parameters) 
addEvent(onCastSpell5, 0, parameters) 
return true
end
Oraz Physical.lua:
Kod:
local combat1 = createCombatObject() 
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) 
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 0)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -7, 7, -6, 8) 
local combat2 = createCombatObject() 
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) 
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 0) 
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -7, 7, -6, 8) 
local combat3 = createCombatObject() 
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) 
setCombatParam(combat3, COMBAT_PARAM_EFFECT, 9) 
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -7, 7, -6, 8) 
local combat4 = createCombatObject() 
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) 
setCombatParam(combat4, COMBAT_PARAM_EFFECT, 34)
setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -7, 7, -6, 8) 
local combat5 = createCombatObject() 
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) 
setCombatParam(combat5, COMBAT_PARAM_EFFECT, 3) 
setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -7, 7, -6, 8) 
arr1 = { 
{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, 1, 0, 0, 0, 0}, 
{0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0}, 
{0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0}, 
{0, 0, 0, 0, 0, 2, 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}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
} 
arr2 =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0}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0}, 
{0, 0, 0, 1, 0, 0, 0, 1, 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},
} 
arr5 = { 
{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, 0, 0, 0, 0, 0, 0}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 0, 0, 0, 0, 3, 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}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
} 
local area1 = createCombatArea(arr1) 
local area2 = createCombatArea(arr2) 
local area3 = createCombatArea(arr3) 
local area4 = createCombatArea(arr4) 
local area5 = createCombatArea(arr5)
setCombatArea(combat1, area1) 
setCombatArea(combat2, area2) 
setCombatArea(combat3, area3) 
setCombatArea(combat4, area4) 
setCombatArea(combat5, area5)
local function onCastSpell1(parameters) 
doCombat(parameters.cid, parameters.combat1, parameters.var) 
end 
local function onCastSpell2(parameters) 
doCombat(parameters.cid, parameters.combat2, parameters.var) 
end 
local function onCastSpell3(parameters) 
doCombat(parameters.cid, parameters.combat3, parameters.var) 
end
local function onCastSpell4(parameters) 
doCombat(parameters.cid, parameters.combat4, parameters.var) 
end
local function onCastSpell5(parameters) 
doCombat(parameters.cid, parameters.combat5, parameters.var) 
end
function onCastSpell(cid, var) 
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5 } 
addEvent(onCastSpell1, 0, parameters) 
addEvent(onCastSpell2, 0, parameters) 
addEvent(onCastSpell3, 0, parameters) 
addEvent(onCastSpell4, 0, parameters) 
addEvent(onCastSpell5, 0, parameters) 
return true
end
Do spells.xml wklejamy:
Kod:
	<instant name="death1" words="exevo death" script="death.lua"/>
	<instant name="holy1" words="exevo holy" script="holy.lua"/>
	<instant name="physical1" words="exevo physical" script="physical.lua"/>
	<instant name="energy1" words="exevo energy" script="energy.lua"/>
SSy:
holy.jpg

deathp.jpg

energyn.jpg

physicals.jpg
 
Ostatnia edycja:
Odp: Holy, Death, Energy, Physical

Ale? czary s? stworzone pod TFS 0.3.6.
Konsola pluje b??dami?
I gdzie masz wklejone i jak nazwane pliki z czarami? Oraz daj mi sw?j wpis do spells.xml.
 
Odp: Holy, Death, Energy, Physical

Ale? czary s? stworzone pod TFS 0.3.6.
Konsola pluje b??dami?
I gdzie masz wklejone i jak nazwane pliki z czarami? Oraz daj mi sw?j wpis do spells.xml.
nie pluje a moj wpis wyglada tak
Kod:
	<instant name="Death" words="death" lvl="16" mana="20" prem="1" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="attack/death.lua">

	</instant>
to bylo do death wyskakuje mi unexpected symbol after "b' lub unexpected symbol after "t' i to ca?a filozofia

PS: potwory dzialaja tylko spelle zle
 
Odp: Holy, Death, Energy, Physical

Nie dzia?a poniewa? czar masz nazwane 'death', a monster u?ywa czaru o nazwie 'death1'. Zmie? po prostu nazw? w spels.xml i powinno dzia?a?. Je?li nie to napisz? od nowa.
 
Odp: Holy, Death, Energy, Physical

Cztery Extra bossy ;)?adne czary oraz ca?okszta?t monstera. Ale gdy odpalam silnik wykluwaj? ci? takie b??dy:
[Error - Monsters::deserializeSpell] Death - Unknown spell name: death1
[Warning - Monsters::loadMonster] Cant load spell. (data/monster/Death.xml)

Co? Ja ?le zrobi?em, czy to wina zawarto?ci death.xml?

@down
Ahh! Zapomnia?em doda? spelli-przepraszam ;]
 
Ostatnia edycja:
Odp: Holy, Death, Energy, Physical

#up
Ty robisz b??dy. Zapewne zmieni?e? nazwy czar?w w pliku spells.xml, a w monsterach zostawi?e? star? nazw?. Popraw to, a potworki b?d? dzia?a? poprawnie.

#down
Je?li nie chcesz by gracze nie mogli u?ywa? tych czar?w w grze to zamiast tych czterech linijek dodaj co? takiego:
PHP:
<instant name="death1" words="exevo death" script="death.lua">
<vocation id="0" />
</instant>
<instant name="holy1" words="exevo holy" script="holy.lua">
<vocation id="0" />
</instant>
<instant name="physical1" words="exevo physical" script="physical.lua">
<vocation id="0" />
</instant>
<instant name="energy1" words="exevo energy" script="energy.lua">
<vocation id="0" />
</instant>

Loot jest bardzo spory, a w tamtych czasach nie opisywa?em go, a co za tym idzie musisz pozabija? kilkadziesi?t tych potwork?w by zobaczy? co z niego leci.


 
Ostatnia edycja:
Odp: Holy, Death, Energy, Physical

Mam takie pytanie, czy mozna zniemic to co jest na czrwono na inne ?

Kod:
	<instant name="death1" words="[COLOR="Red"]exevo death[/COLOR]" script="death.lua"/>
	<instant name="holy1" words="[COLOR="#ff0000"]exevo holy[/COLOR]" script="holy.lua"/>
	<instant name="physical1" words="[COLOR="#ff0000"]exevo physical[/COLOR]" script="physical.lua"/>
	<instant name="energy1" words="[COLOR="#ff0000"]exevo energy[/COLOR]" script="energy.lua"/>

bo nie chce zeby ludzie u?ywali tych czar? w grze.

@add
Jaki loot jest z tych potwor?w?

@up
dzieki za pomoc ze spellami, a jak z lootem ? ;d
 
Ostatnia edycja:
Status
Zamknięty.
Back
Do góry Bottom