azzkaban
Monster Maker
Rodo the Ice Wizard.xml
XML:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Rodo the Ice Wizard" nameDescription="a rodo the ice wizard" race="blood" experience="5000" speed="415" manacost="0">
*******************************************************************************************
* RODO THE ICE WIZARD: This monster Was made by Amy Azzkaban *
* 9.8 mounted special edition NPC *
* Para servidores 9.8+ *
* ADVERTENCIA: Hay servidores que no tienen la funcion de mounts en los monstruos *
*******************************************************************************************
<health now="9000" max="9000"/>
<look type="133" head="0" body="0" legs="86" feet="0" addons="3" mount="548" corpse="6080"/>
<targetchange interval="5000" chance="8"/>
<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="3"/>
<flag staticattack="70"/>
<flag runonhealth="200"/>
</flags>
<attacks>
<attack name="melee" interval="2000" skill="70" attack="70"/>
<attack name="physical" interval="2000" chance="94" range="7" radius="3" target="1" min="-80" max="-250">
<attribute key="shootEffect" value="snowball"/>
</attack>
<attack name="exori mas frigo" interval="4000" chance="50" min="-120" max="-390">
</attack>
<attack name="outfit" interval="20000" chance="100" range="5" radius="1" target="1" item="7173" duration="10000">
<attribute key="shootEffect" value="snowball"/>
<attribute key="areaEffect" value="iceattack"/>
</attack>
<attack name="speed" interval="20000" chance="100" radius="1" range="5" target="1" speedchange="-1900" duration="10000">
<attribute key="shootEffect" value="snowball"/>
</attack>
</attacks>
<defenses armor="40" defense="40">
<defense name="healing" interval="2000" chance="38" min="90" max="200">
<attribute key="areaEffect" value="smoke"/>
</defense>
<defense name="speed" interval="4000" chance="40" speedchange="450" duration="1500">
<attribute key="areaEffect" value="smoke"/>
</defense>
</defenses>
<elements>
<element icePercent="100"/>
<element firePercent="20"/>
<element holyPercent="10"/>
<element energyPercent="-10"/>
<element deathPercent="-5"/>
</elements>
<immunities>
<immunity ice="1"/>
<immunity paralyze="1"/>
<immunity outfit="1"/>
<immunity invisible="1"/>
</immunities>
<voices interval="5000" chance="10">
<voice sentence="Feel the ice of Rodo"/>
</voices>
<loot>
</loot>
</monster>
XML:
<instant name="exori mas frigo" words="exori mas frigo" lvl="150" mana="1200" prem="1" range="7" needtarget="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="scripts/custom/Gelo do ceu.lua">
<vocation id="2"/>
<vocation id="6"/>
</instant>
Gelo do ceu.lua
Lua:
local water = {490, 491, 492, 493}
local combat = createCombatObject()
local meteor = createCombatObject()
setCombatParam(meteor, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(meteor, COMBAT_PARAM_EFFECT, 43)
setCombatFormula(meteor, COMBAT_FORMULA_LEVELMAGIC, -9.0, -30, -10.0, 4)
local stun = createConditionObject(CONDITION_PARALYZE)
setConditionParam(stun, CONDITION_PARAM_TICKS, 5000)
setConditionFormula(stun, -0.8, 0, -0.9, 0)
setCombatCondition(meteor, stun)
local meteor_water = createCombatObject()
setCombatParam(meteor_water, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(meteor_water, COMBAT_PARAM_EFFECT, CONST_ME_LOSEENERGY)
setCombatFormula(meteor, COMBAT_FORMULA_LEVELMAGIC, -9.0, -30, -10.0, 4)
combat_arr = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 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, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 3, 1, 0, 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},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 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 combat_area = createCombatArea(combat_arr)
setCombatArea(combat, combat_area)
local function meteorCast(p)
doCombat(p.cid, p.combat, positionToVariant(p.pos))
end
local function stunEffect(cid)
doSendMagicEffect(getThingPos(cid), CONST_ME_STUN)
end
function onTargetTile(cid, pos)
if (math.random(0, 0) == 0) then
local ground = getThingfromPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0})
if (isInArray(water, ground.itemid) == TRUE) then
local newpos = {x = pos.x - 7, y = pos.y - 6, z = pos.z}
doSendDistanceShoot(newpos, pos, CONST_ANI_ICE)
addEvent(meteorCast, 200, {cid = cid, pos = pos, combat = meteor_water})
else
local newpos = {x = pos.x - 7, y = pos.y - 6, z = pos.z}
doSendDistanceShoot(newpos, pos, CONST_ANI_ICE)
addEvent(meteorCast, 200, {cid = cid,pos = pos, combat = meteor})
end
end
end
setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
ANY IDEA POST HERE