Sigoles
Discord: @sigoles
- Joined
- Nov 20, 2015
- Messages
- 1,209
- Solutions
- 2
- Reaction score
- 154
this will damage only my summons/players...
monsters spawned by server no will damaged
how to fix?
tfs 1.x+
monsters spawned by server no will damaged
how to fix?
tfs 1.x+
LUA:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HITBYFIRE)
local arr = {
{1},
{1},
{3}
}
local area = createCombatArea(arr)
combat:setArea(area)
function spellCallback(cid, position, count)
local creature = Creature(cid)
if creature then
position:sendMagicEffect(CONST_ME_HITBYFIRE)
doAreaCombatHealth(cid, COMBAT_FIREDAMAGE, position, 0, -100, -200, CONST_ME_HITBYFIRE)
end
end
function onTargetTile(creature, position)
spellCallback(creature:getId(), position, 0)
end
combat:setCallback(CALLBACK_PARAM_TARGETTILE, "onTargetTile")
function onCastSpell(creature, variant)
return combat:execute(creature, variant)
end
Last edited by a moderator: