• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Exploding summon

Haaan

New Member
Joined
Oct 24, 2009
Messages
56
Reaction score
0
I have a question is possible to do spell where your summon explode when killed or by some command like EXEVO BOMB and deal damage to all in this area?

XXX
XOX
XXX
 
I make in OTScrips live ;p
I understand this..
try this spell
Lua:
-----Spell by Cronox-----

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_FIREAREA)
setCombatFormula(combat, COMBAT_FORMULA_UNDEFINED, 400, 700, 400, 700)

local 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 1, 1, 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, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
}

local area = createCombatArea(arr)
setCombatArea(combat, area)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
 
Last edited:
He's not just asking for a spell, he's wondering if it was possible to have a summoned monster explode on death or on command.
My guess is that it is all entirely possible. Just need to check if the summoned monsters of cid is a specific monster, if true, kill/remove monster, do area damage.
Ditto situation for onDeath of a summoned monster.
 
I would be glad if you make this for me because im noob-scripter + i not really understand what your write here because my english is bad.:$
 
i dont know it works.

i need:

UTEVO RES summon MONSTER.

when MONSTER DIE or by some command like EXORI BOMB, EXPLODE DEALING AREA DAMAGE.
 
ok i write here exactly what i want

spell "monster name
<summoning monster>

spell B
<monster die(explode) and deal area damage>

if monster die normal(by damage) explode too and deal damage.


I dont know how to edit utevo res.

- - - Updated - - -

i refresh
 
Back
Top