Hello, I'm doing some custom spells and now I've hit a wall.
I'm trying to use this:
In a wave spell.
I'm also confused why when I use such a spell/rune item on the ground/myself, the item will spawn on the ground, but when I use the spell on a monster it will not, why?
Here's example of a firewave that i want to make a little custom by creating items on the areas that are hit:
Here's an example on my rune that I can shoot on myself to spawn and item, but not on a monster to apwn an item (the damage and all other effects plays when used on monster);
l
I need support with why the item won't spawn on a monster, and I guess request on howto make area spell items (I remember I did this somehow with 8.0 xml server, but it has a different setup when reading spells)
Using TFS 3.6pl1
I'm trying to use this:
HTML:
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1988)
In a wave spell.
I'm also confused why when I use such a spell/rune item on the ground/myself, the item will spawn on the ground, but when I use the spell on a monster it will not, why?
Here's example of a firewave that i want to make a little custom by creating items on the areas that are hit:
HTML:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITBYFIRE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE)
setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 1.2, 2)
local area = createCombatArea(AREA_WAVE4, AREADIAGONAL_WAVE4)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Here's an example on my rune that I can shoot on myself to spawn and item, but not on a monster to apwn an item (the damage and all other effects plays when used on monster);
l
HTML:
ocal combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_HOLY)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1988)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.5, -15, -2.5, -25)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
I need support with why the item won't spawn on a monster, and I guess request on howto make area spell items (I remember I did this somehow with 8.0 xml server, but it has a different setup when reading spells)
Using TFS 3.6pl1