Co nowego?
  • logo_cipsoft
    Nowe serwery zostały otwarte 19 Lut 2025:
    Noctalia (Open PvP) Ignitera (Open PvP) us_logo Xybra (Open PvP)

Archdemon "Azgoroth" + spells scripts and summons

Status
Zamknięty.

andu

New User
Dołączył
Maj 9, 2009
Posty
3
Liczba reakcji
0
Skrypty i monstery sa pisane przeze mnie dla otfans.net. Ale ze strona ma problemy z baza danych dodalem to tutaj.
Si?e ataku tego archdemca musicie sobie samemu dopracowa?. U mnie na serwie ka?dy item ma losowe resy i staty np:
00:30 You see a velvet mantle (Arm:10, magic level +2, protection physical +25%, energy +30%, earth -70%, fire -70%, ice -15%).
It weighs 10.50 oz.
(Mana regeneration +10).
albo perf batwing hat
00:32 You see a batwing hat (Arm:8, magic level +2, protection all +6%).
wi?c z takim EQ sprawa si? u?atwia

Jeden z wielu moich potwork?w.
Azgoroth specjalizuje si? w death i ice.
Tworzy (nie sumonuje) szkielety dooko?a pola walki, za zabicie tych szkielet?w dostaje sie expa!
Podobnie jak Mephisto na Uber Tristram (Diablo 2).
Szkielety moza postawi? w drodze do naszego archdemca.
Maja resa na fire wi?c w towarzystwie demon?w robia niez?a siek?.
Bardzo wa?ne by zedytowa? mape tak by na tej drodze le?a?o mase dead skielet?w i innych trup?w.
Wko?cu z nich one powstaj? :D
Loota jeszcze ca?ego nie poprawi?em, ale i tak si? ciekawie sypie. (na moim serwie mam drop rate x1)
Jak kto? ma loot x5 albo wiekszy to sie wtedy bedzie ?le sypa?, bp sie ju? nie zmie?ci w dedzie!
w pliku Monsters.xml dodajemy:
Kod:
	<monster name="Azgoroth" file="azgoroth.xml"/>
	<monster name="skeleton azgoroth" file="skeleton azgoroth.xml"/>
Azgoroth.xml:
Kod:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Azgoroth" nameDescription="Azgoroth the 3th archdemon" race="UNDEAD" experience="18000" speed="400" manacost="0">
  <health now="80000" max="80000"/>
  <look type="12" head="38" body="0" legs="86" feet="76" corpse="6068"/>
  <targetchange interval="10000" chance="7"/>
  <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 staticattack="98"/>
    <flag targetdistance="1"/>
    <flag runonhealth="8000"/>
  </flags>
  <attacks>
    <attack name="melee" interval="2000" min="-1" max="-2901"/>
    <attack type="instant" name="azgoroth legion" target="1" interval="2000" chance="35"/>
    <!--<attack type="instant" name="azgoroth debuff1" interval="1000"/>-->
    <!--<attack type="instant" name="azgoroth debuff2" interval="1000"/>-->
    <!--<attack type="instant" name="freeze_player" interval="5000"/>-->
    <attack name="ice" interval="3000" chance="35" range="7" radius="7" target="1" min="-500" max="-700">
		<attribute key="shootEffect" value="ice"/>
		<attribute key="areaEffect" value="icearea"/>
    </attack>
	<attack name="physical" interval="1800" chance="40" radius="5" target="0" min="-250" max="-400">
		<attribute key="areaEffect" value="blackspark"/>
	</attack>
	<attack name="ice" interval="1800" chance="40" radius="1" range="1" target="1" min="-250" max="-1000">
		<attribute key="areaEffect" value="giantice"/>
	</attack>
    <attack name="outfit" interval="1000" range="7" item="6707" duration="35000">
      <attribute key="areaEffect" value="giantice"/>
    </attack>
    <attack name="speed" interval="1000" range="7" speedchange="-500" duration="15000"/>
    <attack name="manadrain" interval="3000" chance="35" range="7" radius="5" target="1" min="-10" max="-600"/>
  </attacks>
  <defenses armor="55" defense="65">
    <defense name="healing" interval="1000" chance="45" min="300" max="800">
		<attribute key="areaEffect" value="blueshimmer"/>
    </defense>
    <defense name="speed" interval="4000" chance="70" speedchange="1000" duration="3000">
		<attribute key="areaEffect" value="redshimmer"/>
    </defense>
	<defense name="death" interval="1800" chance="40" radius="9" min="-10" max="-600">
		<attribute key="areaEffect" value="whitenote"/>
	</defense>
    <defense type="instant" name="azgoroth legion" target="0" interval="2000" chance="5"/>
  </defenses>
  <elements>
	<element firePercent="90"/>
	<element earthPercent="100"/>
	<element energyPercent="100"/>
	<element deathPercent="80"/>
	<element physicalPercent="60"/>
	<element icePercent="55"/>
	<element holyPercent="-20"/>
  </elements>
  <immunities>
    <immunity paralyze="1"/>
    <immunity invisible="1"/>
  </immunities>
  <summons maxSummons="4">
    <summon name="skeleton azgoroth" interval="4000" max="4"/>
    <summon name="skeleton azgoroth" interval="4000" max="4"/>
    <summon name="skeleton azgoroth" interval="4000" max="4"/>
    <summon name="skeleton azgoroth" interval="4000" max="4"/>
  </summons>
  <voices interval="4000" chance="50">
    <voice sentence="YOU ARE MY DOLL!" yell="1"/>
    <voice sentence="ONE HIT - ONE DEAD! YOU WILL BE NEXT!" yell="1"/>
    <voice sentence="I FREEZE YOUR MIND!" yell="1"/>
    <voice sentence="LOOK AT THE DESTRUCTION!" yell="1"/>
  </voices>
  <loot>
	<item id="2148" chance="50000" countmax="100"/>
	<item id="2148" chance="50000" countmax="90"/>
	<item id="2148" chance="50000" countmax="90"/>
	<item id="2160" chance="15000" countmax="10"/>
	<item id="2152" chance="50000" countmax="80"/>
	<item id="9971" chance="10000" countmax="5"/>
	<item id="2149" chance="10000" countmax="12"/>
	<item id="2145" chance="10000" countmax="10"/>
	<item id="5912" chance="20000" countmax="22"/>
	<item id="5954" chance="10000" countmax="2"/>
	<item id="2192" chance="8888"/>
	<item id="2472" chance="8888"/>
	<item id="8884" chance="2488"/>
	<item id="8878" chance="5888"/>
	<item id="8890" chance="2488"/>
	<item id="2474" chance="1488"/>
	<item id="7899" chance="8888"/>
	<item id="1982" chance="8888"/>
	<item id="2002" chance="100000">
		<inside>
	<item id="6529" chance="10000" countmax="100"/>
	<item id="2142" chance="8888"/>
	<item id="2158" chance="8888"/>
	<item id="8854" chance="8888"/>
	<item id="8858" chance="18888"/>
	<item id="2183" chance="38888"/>
	<item id="2183" chance="38888"/>
	<item id="2183" chance="38888"/>
	<item id="2195" chance="8888"/>
	<item id="8850" chance="8888"/>
	<item id="7892" chance="8888"/>
	<item id="2463" chance="8888"/>
	<item id="2387" chance="8888"/>
	<item id="2167" chance="8888"/>
	<item id="2432" chance="8888"/>
	<item id="8881" chance="8888"/>
	<item id="7730" chance="28888"/>
	<item id="2470" chance="8888"/>
	<item id="7895" chance="18888"/>
	<item id="2522" chance="8888"/>
	<item id="2155" chance="8888"/>
	<item id="9019" chance="18888"/>
	<item id="8886" chance="8888"/>
	<item id="2186" chance="8888"/>
	<item id="2514" chance="6900"/>
	<item id="2124" chance="8000"/>
	<item id="7388" chance="3200"/>
	<item id="8926" chance="11500"/>
	<item id="2522" chance="3250"/>
	<item id="7427" chance="8500"/>
	<item id="7885" chance="2250"/>
	<item id="2542" chance="2900"/>
	<item id="8902" chance="2800"/>
	<item id="8903" chance="2700"/>
	<item id="2196" chance="12450"/>
	<item id="1986" chance="5200"/>
	<item id="8904" chance="14600"/>
	<item id="8918" chance="14500"/>
	<item id="8885" chance="4100"/>
	<item id="7423" chance="2600"/>
	<item id="7405" chance="6600"/>
	<item id="8924" chance="3400"/>
	<item id="2387" chance="4000"/>
	<item id="2130" chance="2000"/>
	<item id="2539" chance="6600"/>
	<item id="7422" chance="9800"/>
	<item id="7414" chance="9800"/>
	<item id="7403" chance="6800"/>
	<item id="2185" chance="8888"/>
	<item id="8928" chance="8888"/>
	<item id="2176" chance="8888"/>
	<item id="2197" chance="8888"/>
	<item id="8929" chance="8888"/>
	<item id="2421" chance="8888"/>
	<item id="8266" chance="12888"/>
	<item id="8473" chance="8888"/>
		</inside>
	</item>
  </loot>
</monster>
skeleton azgoroth.xml
Kod:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Skeleton" nameDescription="a immortal skeleton" race="undead" experience="135" speed="240" manacost="850">
	<health now="480" max="480"/>
	<look type="298" corpse="3103"/>
	<targetchange interval="5000" chance="100"/>
	<strategy attack="100" defense="0"/>
	<flags>
      <flag summonable="1"/>
      <flag attackable="1"/>
      <flag hostile="1"/>
      <flag illusionable="0"/>
      <flag convinceable="1"/>
      <flag pushable="1"/>
      <flag canpushitems="0"/>
      <flag canpushcreatures="0"/>
      <flag targetdistance="1"/>
      <flag staticattack="90"/>
      <flag runonhealth="0"/>
	</flags>
	<attacks>
      <attack name="melee" interval="1000" min="-10" max="-220"/>
	<attack type="instant" name="azgoroth legion small" target="1" interval="2000" chance="8"/>
	<attack type="instant" name="azgoroth legion small2" target="1" interval="2000" chance="8"/>
      <attack name="lifedrain" interval="2000" range="2" chance="33" min="-5" max="-100">
		<attribute key="areaEffect" value="redshimmer"/>
	  </attack>
	</attacks>
	<defenses armor="42" defense="39">
	</defenses>
	<elements>
	  <element holyPercent="-10000"/>
	  <element energyPercent="-1000"/>
	  <element icePercent="20"/>
	  <element physicalPercent="50"/>
	</elements>
	<immunities>
      <immunity death="1"/>
      <immunity invisible="1"/>
      <immunity fire="1"/>
      <immunity earth="1"/>
	</immunities>
</monster>
teraz czas na czary,
w Spells.xml dodajemy:

Kod:
<instant name="Azgoroth Legion" words="azgoroth legion" lvl="1000" needtarget="1" script="azgoroth_legion.lua"/>
<instant name="Azgoroth Legion Small" words="azgoroth legion small" lvl="1000"  needtarget="1" script="azgoroth_legion_small.lua"/>
<instant name="Azgoroth Legion Small2" words="azgoroth legion small2" lvl="1000" needtarget="1" script="azgoroth_legion_small2.lua"/>
azgoroth_legion.lua
Kod:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_NONE)
local area = createCombatArea({
{1, 0, 1, 0, 1},
{0, 1, 0, 1, 0},
{1, 0, 2, 0, 1},
{0, 1, 0, 1, 0},
{1, 0, 1, 0, 1}
})
setCombatArea(combat, area)
local bots = {"skeleton azgoroth", "skeleton azgoroth"} -- here u can add more monsters
function onTargetTile(cid, pos)
	local position = pos
	position.stackpos = 255
	local item = getThingfromPos(position)
	local monster = bots[math.random(1,#bots)]
	if item.itemid > 0 then
		if isInArray(CORPSES, item.itemid) == TRUE then
			doRemoveItem(item.uid,1)
			doSummonCreature(monster, pos)
			doSendMagicEffect(pos, CONST_ME_POFF)
		end
	end
end
setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile")
function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
azgoroth_legion_small.lua
Kod:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_NONE)
local area = createCombatArea({
{0, 0, 1, 0, 0},
{0, 0, 2, 0, 0},
{1, 0, 0, 0, 1},
{0, 0, 0, 0, 0},
{0, 0, 1, 0, 0}
})
setCombatArea(combat, area)
local bots = {"skeleton azgoroth", "skeleton azgoroth"} -- here u can add more monsters
function onTargetTile(cid, pos)
	local position = pos
	position.stackpos = 255
	local item = getThingfromPos(position)
	local monster = bots[math.random(1,#bots)]
	if item.itemid > 0 then
		if isInArray(CORPSES, item.itemid) == TRUE then
			doRemoveItem(item.uid,1)
			doSummonCreature(monster, pos)
			doSendMagicEffect(pos, CONST_ME_POFF)
		end
	end
end
setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile")
function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
azgoroth_legion_small2.lua
Kod:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_NONE)
local area = createCombatArea({
{0, 0, 0, 0, 0},
{0, 1, 0, 1, 0},
{0, 0, 2, 0, 0},
{0, 1, 0, 1, 0},
{0, 0, 0, 0, 0}
})
setCombatArea(combat, area)
local bots = {"skeleton azgoroth", "skeleton azgoroth"} -- here u can add more monsters
function onTargetTile(cid, pos)
	local position = pos
	position.stackpos = 255
	local item = getThingfromPos(position)
	local monster = bots[math.random(1,#bots)]
	if item.itemid > 0 then
		if isInArray(CORPSES, item.itemid) == TRUE then
			doRemoveItem(item.uid,1)
			doSummonCreature(monster, pos)
			doSendMagicEffect(pos, CONST_ME_POFF)
		end
	end
end
setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile")
function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end


jak naprawie te "debuffy" to bedzie gitara.
Narazie udalo mi si? zrobi? tak by ciepa? je gdy zostaje mu 8k hp.
Ale jako? nie obni?aj? skilli ;/

nie zapominajcie o prawach autorskich!
 

YoS

Advanced User
Dołączył
Sierpień 29, 2008
Posty
410
Liczba reakcji
29
Odp: Archdemon "Azgoroth" + spells scripts and summons

kawal dobrej roboty... bede szczery jestes 1 osoba ktora dodala czary... reput + 10/10 + szacunek+ gz+yyyy+ zzz + xd + szczery usmiech


<monster name="skeleton azgoroth" file="skeleton azgoroth.xml"/>

<monster name="azgoroth's Minion" file="azgoroth's Minion.xml"/>

tak by bylo ladniej chyba co? :D

@down
zasugerowalem zmiane nazwy:p
 
Ostatnia edycja:

andu

New User
Dołączył
Maj 9, 2009
Posty
3
Liczba reakcji
0
Odp: Archdemon "Azgoroth" + spells scripts and summons

kawal dobrej roboty... bede szczery jestes 1 osoba ktora dodala czary... reput + 10/10 + szacunek+ gz+yyyy+ zzz + xd + szczery usmiech

to milo z Twojej strony;p

<monster name="skeleton azgoroth" file="skeleton azgoroth.xml"/>
<monster name="azgoroth's Minion" file="azgoroth's Minion.xml"/>
tak by bylo ladniej chyba co? :D

To tylko dla w?asnej wygody. I tak monster w grze sie nazywa "skeleton".
Wg mnie za du?e nazwy sa za bardzo spamuj?ce
 

Hullon

Active User
Dołączył
Luty 6, 2009
Posty
74
Liczba reakcji
3
Odp: Archdemon "Azgoroth" + spells scripts and summons

noo widzicie dopiero co przybyl do nas a tu juz pomaga :D all jest w porz?dku
9/10 bo potworek na exp x 9999
 
Status
Zamknięty.
Do góry