Hakeq
Banned
- Joined
- Mar 23, 2013
- Messages
- 103
- Reaction score
- 6
Autor: Shadoveq
Witam, juz od pewnego czasu robie potworki.
Ostatnio zacz??o mnie skroba? na co? takiego:
tworzymy plik pandemonium.xml i do niego wklejamy:
a do monsters.xml:
thx za poprawki, oto czar:
do katalogu spells/instant dodajemy plik exori super.lua i wklejamy kod:
do pliku spells.xml dajemy:
Pozdrawiam,
Hakeq.
Witam, juz od pewnego czasu robie potworki.
Ostatnio zacz??o mnie skroba? na co? takiego:
tworzymy plik pandemonium.xml i do niego wklejamy:
Code:
<?xml version="1.0"?>
<monster name="Pandemonium" level="20" maglevel="30" experience="11000" pushable="0" armor="7" defense="14" canpushitems="1" staticattack="50" changetarget="200" speed="280">
<health now="20000" max="20000"/>
<look type="40" head="20" body="30" legs="40" feet="50" corpse="2886"/>
<combat targetdistance="4" runonhealth="0"/>
<attacks>
<attack type="melee" maxdamage="3000"/>
<attack type="rune" name="soul fire" exhaustion="500" cycleticks="5000" probability="80"/>
<attack type="instant" name="exori super" exhaustion="100" cycleticks="4000" probability="90"/>
</attacks>
<defenses>
<defense immunity="fire"/>
<defense immunity="invisible"/>
</defenses>
<voices>
<voice sentence="Pandemoinum power!!!"/>
</voices>
<loot>
<item id="2160" countmax="30" chance1="100000" chancemax="0"/>
</loot>
</monster>
a do monsters.xml:
Code:
<monster name="Pandemonium" file="pandemonium.xml" />
thx za poprawki, oto czar:
do katalogu spells/instant dodajemy plik exori super.lua i wklejamy kod:
Code:
area = {
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0},
{0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 0, 1, 3, 3, 3, 1, 0, 0, 0},
{0, 0, 0, 1, 3, 0, 3, 1, 0, 0, 0},
{0, 0, 0, 1, 3, 3, 3, 1, 0, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0},
{0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
}
attackType = ATTACK_PHYSICAL
needDirection = false
areaEffect = NM_ME_HIT_AREA
animationEffect = NM_ANI_NONE
hitEffect = NM_ME_HIT_AREA
damageEffect = NM_ME_HIT_AREA
animationColor = RED
offensive = true
drawblood = true
UltimateExplosionObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0)
function onCast(cid, creaturePos, level, maglv, var)
centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z}
n = tonumber(var) -- try to convert it to a number
if n ~= nil then
-- bugged
-- ultimateExplosionObject.minDmg = var+0
-- UltimateExplosionObject.maxDmg = var+0
UltimateExplosionObject.minDmg = 0
UltimateExplosionObject.maxDmg = 0
else
-- UltimateExplosionObject.minDmg = (level * 2 + maglv * 3) * 2.3 - 30
-- UltimateExplosionObject.maxDmg = (level * 2 + maglv * 3) * 3.0
UltimateExplosionObject.minDmg = (level * 1.5 + maglv * 1.5) * 1.2
UltimateExplosionObject.maxDmg = (level * 1.5 + maglv * 1.5) * 2.3
end
return doAreaMagic(cid, centerpos, needDirection, areaEffect, area, UltimateExplosionObject:ordered())
end
do pliku spells.xml dajemy:
Code:
<spell name="Aincent Berserk" words="exori super" maglv="8" mana="1000" enabled="1"><vocation id="4" /></spell>
Pozdrawiam,
Hakeq.