• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

spell effect from 0.4 to tfs 1.5 downgrade 8.60

tuduras

Well-Known Member
Joined
Jun 4, 2017
Messages
340
Solutions
2
Reaction score
58
Hello Otlanders. How are You ? okay?

I have got spell tfs 0.4
LUA:
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 44)
--setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -65, 0, -55, 0)
setCombatFormula(combat1, COMBAT_FORMULA_SKILL, 0, -2000000, 6.4, 0)

local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 44)
--setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -65, 0, -57, 0)
setCombatFormula(combat2, COMBAT_FORMULA_SKILL, 0, -2000000, 6.3, -70)

local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, 44)
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -75, 0, -65, 0)
--setCombatFormula(combat3, COMBAT_FORMULA_SKILL, 0, -150000, 6.3, 0)







local arr1 = {
{0, 0, 1, 1, 1, 0, 0},
{0, 1, 0, 0, 0, 1, 0},
{1, 0, 1, 1, 1, 0, 1},
{1, 0, 1, 2, 1, 0, 1},
{1, 0, 1, 1, 1, 0, 1},
{0, 1, 0, 0, 0, 1, 0},
{0, 0, 1, 1, 1, 0, 0}
}
 
local arr2 = {
{0, 1, 1, 1, 0},
{1, 0, 0, 0, 1},
{1, 0, 2, 0, 1},
{1, 0, 0, 0, 1},
{0, 1, 1, 1, 0}
}
 
local arr3 = {
{0, 1, 1, 1, 0},
{1, 1, 1, 1, 1},
{1, 1, 2, 1, 1},
{1, 1, 1, 1, 1},
{0, 1, 1, 1, 0}
}
 
 
local area1 = createCombatArea(arr1)
local area2 = createCombatArea(arr2)
local area3 = createCombatArea(arr3)

setCombatArea(combat1, area1)
setCombatArea(combat2, area2)
setCombatArea(combat3, area3)
 
local function onCastSpell1(parameters)
doCombat(parameters.cid, parameters.combat1, parameters.var)
end
 
local function onCastSpell2(parameters)
doCombat(parameters.cid, parameters.combat2, parameters.var)
end
 
local function onCastSpell3(parameters)
doCombat(parameters.cid, parameters.combat3, parameters.var)
end
 

 
function onCastSpell(cid, var)
    local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5, combat6 = combat6 }
    addEvent(onCastSpell1, 300, parameters)
    addEvent(onCastSpell2, 500, parameters)
    addEvent(onCastSpell3, 700, parameters)
    --addEvent(onCastSpell4, 600, parameters)
    --addEvent(onCastSpell5, 800, parameters)
    --addEvent(onCastSpell6, 1000, parameters)
    return true
end


which effect will this be in tfs 1.5 ??
Small tip Constants (https://github.com/otland/forgottenserver/wiki/Constants)

please help
Best Regards
 

Attachments

Last edited:
Yes, this is it.
@ I use Mateus Roberto datapack and there effect is upgraded. but thanks . I need 45 effect

this is 45 effect from list
stones.webp
 
Last edited:
Yes, this is it.
@ I use Mateus Roberto datapack and there effect is upgraded. but thanks . I need 45 effect

this is 45 effect from list
View attachment 98901
Also if all your magic effects are mixed up for whatever reason, u can use command !z and pass the parameter to spawn a magic effect. So you can go through all the numbers and look for the effects that way. For example !z 45
 
Back
Top