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

Spell from 0.3.6 to 1.5

random123123

New Member
Joined
Jan 21, 2023
Messages
2
Reaction score
0
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)   
addEvent(mysticchoumaretsugeki,0,cid)
return true
end
 

Similar threads

Replies
0
Views
123
Back
Top