# Spell from 0.3.6 to 1.5

#### random123123

##### New Member
hi i need somebody to convert my spell from 0.3.6 to 1.5
Thank you
Lua:
``````local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
function mysticchou(cid, level, maglevel)
local min = -(level * 7.0+ maglevel * 12 +60)
local max = -(level * 7.0+ maglevel * 13 +60)
return min, max
end
setCombatCallback(combat1, CALLBACK_PARAM_LEVELMAGICVALUE, "mysticchou")
local arr1 = {
{1, 1, 1, 1, 1, 1, 0},
{1, 1, 1, 1, 1, 1, 2},
{1, 1, 1, 1, 1, 1, 0},
}
local area1 = createCombatArea(arr1)
setCombatArea(combat1, area1)

local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
function mysticchou(cid, level, maglevel)
local min = -(level * 7.0+ maglevel * 12 +60)
local max = -(level * 7.0+ maglevel * 13 +60)
return min, max
end
setCombatCallback(combat2, CALLBACK_PARAM_LEVELMAGICVALUE, "mysticchou")
local arr2 = {
{0, 1, 1, 1, 1, 1, 1},
{2, 1, 1, 1, 1, 1, 1},
{0, 1, 1, 1, 1, 1, 1},
}
local area2 = createCombatArea(arr2)
setCombatArea(combat2, area2)

local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
function mysticchou(cid, level, maglevel)
local min = -(level * 7.0+ maglevel * 12 +60)
local max = -(level * 7.0+ maglevel * 13 +60)
return min, max
end
setCombatCallback(combat3, CALLBACK_PARAM_LEVELMAGICVALUE, "mysticchou")
local arr3 = {
{0, 2, 0},
{1, 1, 1},
{1, 1, 1},
{1, 1, 1},
{1, 1, 1},
{1, 1, 1},
{1, 1, 1},
}
local area3 = createCombatArea(arr3)
setCombatArea(combat3, area3)

local combat4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
function mysticchou(cid, level, maglevel)
local min = -(level * 7.0+ maglevel * 12 +60)
local max = -(level * 7.0+ maglevel * 13 +60)
return min, max
end
setCombatCallback(combat4, CALLBACK_PARAM_LEVELMAGICVALUE, "mysticchou")
local arr4 = {
{1, 1, 1},
{1, 1, 1},
{1, 1, 1},
{1, 1, 1},
{1, 1, 1},
{1, 1, 1},
{0, 2, 0},
}
local area4 = createCombatArea(arr4)
setCombatArea(combat4, area4)

function mysticchoumaretsugeki(cid)
local pos = getCreaturePosition(cid)
if getCreatureLookDirection(cid) == 1 then
doCombat(cid, combat1, numberToVariant(cid))
MysticChouXd = {x = pos.x+6, y = pos.y+1, z = pos.z}
doSendMagicEffect(MysticChouXd, 146)

elseif getCreatureLookDirection(cid) == 2 then
doCombat(cid, combat4, numberToVariant(cid))
MysticChouXd = {x = pos.x+1, y = pos.y+6, z = pos.z}
doSendMagicEffect(MysticChouXd, 203)

elseif getCreatureLookDirection(cid) == 3 then
doCombat(cid, combat2, numberToVariant(cid))
MysticChouXd = {x = pos.x-1, y = pos.y+1, z = pos.z}
doSendMagicEffect(MysticChouXd, 146)

elseif getCreatureLookDirection(cid) == 0 then
doCombat(cid, combat3, numberToVariant(cid))
MysticChouXd = {x = pos.x+1, y = pos.y-1, z = pos.z}
doSendMagicEffect(MysticChouXd, 203)
end
end

function onCastSpell(cid, var)
return true
end``````

bump can anybody help?

Replies
2
Views
430
Replies
3
Views
422
TFS 1.X+ Spell rework
Replies
3
Views
432
Replies
10
Views
743
Replies
0
Views
210
Replies
3
Views
210
Replies
1
Views
317
Replies
0
Views
230