• 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!

TFS 0.X Fast help = monster spell ?

clario

OTS based on Heroes III Might and Magic
Joined
Feb 4, 2018
Messages
98
Reaction score
5
hello !Fast help for m3 ? THE PROBLEM IS THAT SPELL DONT DO ANY DMG

Heeeyaaaa ,
there is gif:
HGOChMC.gif

im using :
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGY)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_BIGCLOUDS)
--setCombatParam(combat, COMBAT_PARAM_BLOCKSHIELD, true) -- unnote if you want it to ignore shield
--setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, true) -- unnote if you want it to ignore armor
--combat:setArea(createCombatArea(AREA_CIRCLE3X3)) -- You can use this instead of the arr if you know how to

local minD = 1000 -- minimum damage it deals
local maxD = 1700 -- maximum damage it deals/
local minH = 1 -- min for healing (change if you want him to heal less or more than dealt dmg)
local maxH = 2 -- max for healing
arr = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0}, -- This is the field of the spell, 3 is the monster and
{0, 0, 0, 0, 0, 3, 1, 0, 0, 0, 0}, -- 1s are the hit area.
{0, 0, 0, 0, 0, 1, 0, 0, 0, 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}
}

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

setCombatFormula(combat, COMBAT_FORMULA_DAMAGE, 1000, -minD, 1700, -maxD)

function onCastSpell(creature, var)
doCreatureAddHealth(creature, math.random(minH,maxH))
return doCombat(creature, combat, var)
end

By other hand i was using this :
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_THUNDER)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYHIT)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.25, -0, -0.55, 0)

local arr = {
{0, 1, 0},
{1, 0, 0},
{0, 3, 0},
{0, 0, 1},
{0, 1, 0}
}

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

function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end

any sollution?
TITAN ATTACK :
<attack name="Thunder" interval="2000" chance="100" target="1" range="7" min="-1080" max="-1620"/>

Tibia 8.6 // TSF 0.4
 
Back
Top