Ir para conteúdo

Posts Recomendados

Fala ai galera, vou colocar umas spells novas que eu acabei de fazer, colocarei somente o NOME e o SCRIPT!

 

Não colocarei como colocar no spells.xml

 

IceAura

 

 

 

-- Created by CoGames --

local AURASYSTEM_STORAGE = 200001

local AURASYSTEM_AURA_DELAY = 0.1

 

 

local AURASYSTEM_CONFIG = {

DURATION = 30,

DELAY = 0.1,

TYPE = "all",

DAMAGE = {-1000, -3000}

}

 

local AURASYSTEM_DIRECTIONS = {

[NORTH] = {

{0, 0}, {1, 0}, {1, 1}, {1, 2}, {0, 2}, {-1, 2}, {-1, 1}, {-1, 0}

},

[EAST] = {

{0, 0}, {0, 1}, {-1, 1}, {-2, 1}, {-2, 0}, {-2, -1}, {-1, -1}, {0, -1}

},

[sOUTH] = {

{0, 0}, {-1, 0}, {-1, -1}, {-1, -2}, {0, -2}, {1, -2}, {1, -1}, {1, 0}

},

[WEST] = {

{0, 0}, {0, -1}, {1, -1}, {2, -1}, {2, 0}, {2, 1}, {1, 1}, {0, 1}

}

}

 

local AURASYSTEM_TEMPLATES = {

["ice"] = {COMBAT_ICEDAMAGE, CONST_ME_ICEATTACK},

["ice"] = {COMBAT_ICEDAMAGE, CONST_ME_ICEATTACK},

["ice"] = {COMBAT_ICEDAMAGE, CONST_ME_ICEATTACK},

["ice"] = {COMBAT_ICEDAMAGE, CONST_ME_ICEATTACK},

["ice"] = {COMBAT_ICEDAMAGE, CONST_ME_ICEATTACK},

["ice"] = {COMBAT_ICEDAMAGE, CONST_ME_ICEATTACK},

["ice"] = {

{COMBAT_ICEDAMAGE, CONST_ME_ICEATTACK},

{COMBAT_ICEDAMAGE, CONST_ME_ICEATTACK},

{COMBAT_ICEDAMAGE, CONST_ME_ICEATTACK},

{COMBAT_ICEDAMAGE, CONST_ME_ICEATTACK},

{COMBAT_ICEDAMAGE, CONST_ME_ICEATTACK},

{COMBAT_ICEDAMAGE, CONST_ME_ICEATTACK}

}

}

 

local AURASYSTEM_COUNT = 1

 

function doPlayerCastAura(cid, position)

if getCreatureStorage(cid, AURASYSTEM_STORAGE) == -1 then

 

end

 

local PLAYER_LOOKDIRECTION = getCreatureLookDirection(cid)

 

local tmp = AURASYSTEM_DIRECTIONS[PLAYER_LOOKDIRECTION][AURASYSTEM_COUNT]

local position = getPositionByDirection(getThingPosition(cid), PLAYER_LOOKDIRECTION, 1)

 

position.x = position.x + tmp[1]

position.y = position.y + tmp[2]

 

if AURASYSTEM_CONFIG.TYPE == "all" then

local x = AURASYSTEM_TEMPLATES[AURASYSTEM_CONFIG.TYPE]

local r = math.random(1, #x)

doAreaCombatHealth(cid, x[r][1], position, 0, AURASYSTEM_CONFIG.DAMAGE[1], AURASYSTEM_CONFIG.DAMAGE[2], x[r][2])

else

doAreaCombatHealth(cid, AURASYSTEM_TEMPLATES[AURASYSTEM_CONFIG.TYPE][1], position, 0, AURASYSTEM_CONFIG.DAMAGE[1], AURASYSTEM_CONFIG.DAMAGE[2], AURASYSTEM_TEMPLATES[AURASYSTEM_CONFIG.TYPE][2])

end

 

if getCreatureStorage(cid, AURASYSTEM_STORAGE) > os.time() then

addEvent(doPlayerCastAura, AURASYSTEM_CONFIG.DELAY * 1000, cid)

end

 

AURASYSTEM_COUNT = AURASYSTEM_COUNT + 1

if AURASYSTEM_COUNT > #AURASYSTEM_DIRECTIONS[PLAYER_LOOKDIRECTION] then

AURASYSTEM_COUNT = 1

end

end

 

function onCastSpell(cid, var)

if getCreatureStorage(cid, AURASYSTEM_STORAGE) > os.time() then

return doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)

end

 

doCreatureSetStorage(cid, AURASYSTEM_STORAGE, os.time() + AURASYSTEM_CONFIG.DURATION)

return doPlayerCastAura(cid)

end

 

 

 

Ultimate Hit

 

 

-- Created by CoGames --

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, 1)

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, 1)

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, 1)

local combat4 = createCombatObject()

setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)

setCombatParam(combat4, COMBAT_PARAM_EFFECT, 1)

local combat5 = createCombatObject()

setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)

setCombatParam(combat5, COMBAT_PARAM_EFFECT, 1)

local combat6 = createCombatObject()

setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)

setCombatParam(combat6, COMBAT_PARAM_EFFECT, 1)

local combat7 = createCombatObject()

setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)

setCombatParam(combat7, COMBAT_PARAM_EFFECT, 1)

local combat8 = createCombatObject()

setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)

setCombatParam(combat8, COMBAT_PARAM_EFFECT, 1)

local combat9 = createCombatObject()

setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)

setCombatParam(combat9, COMBAT_PARAM_EFFECT, 10)

setCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, -12, -12, -14, -22)

local combat10 = createCombatObject()

setCombatParam(combat10, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)

setCombatParam(combat10, COMBAT_PARAM_EFFECT, 10)

setCombatFormula(combat10, COMBAT_FORMULA_LEVELMAGIC, -12, -12, -14, -22)

local combat11 = createCombatObject()

setCombatParam(combat11, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)

setCombatParam(combat11, COMBAT_PARAM_EFFECT, 5)

setCombatFormula(combat11, COMBAT_FORMULA_LEVELMAGIC, -12, -12, -14, -22)

local combat12 = createCombatObject()

setCombatParam(combat12, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)

setCombatParam(combat12, COMBAT_PARAM_EFFECT, 17)

setCombatFormula(combat12, COMBAT_FORMULA_LEVELMAGIC, -12, -12, -14, -22)

 

arr1 = {

{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, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 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, 2, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

}

 

arr2 = {

{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, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 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, 2, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

}

 

arr3 = {

{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, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 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

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 2, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

}

 

arr12 = {

{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, 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, 1, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 2, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

}

 

local area1 = createCombatArea(arr1)

local area2 = createCombatArea(arr2)

local area3 = createCombatArea(arr3)

local area4 = createCombatArea(arr4)

local area5 = createCombatArea(arr5)

local area6 = createCombatArea(arr6)

local area7 = createCombatArea(arr7)

local area8 = createCombatArea(arr8)

local area9 = createCombatArea(arr9)

local area10 = createCombatArea(arr10)

local area11 = createCombatArea(arr11)

local area12 = createCombatArea(arr12)

 

setCombatArea(combat1, area1)

setCombatArea(combat2, area2)

setCombatArea(combat3, area3)

setCombatArea(combat4, area4)

setCombatArea(combat5, area5)

setCombatArea(combat6, area6)

setCombatArea(combat7, area7)

setCombatArea(combat8, area8)

setCombatArea(combat9, area9)

setCombatArea(combat10, area10)

setCombatArea(combat11, area11)

setCombatArea(combat12, area12)

 

 

local function onCastSpell1(parameters)

doCombat(parameters.cid, combat1, parameters.var)

end

local function onCastSpell2(parameters)

doCombat(parameters.cid, combat2, parameters.var)

end

local function onCastSpell3(parameters)

doCombat(parameters.cid, combat3, parameters.var)

end

local function onCastSpell4(parameters)

doCombat(parameters.cid, combat4, parameters.var)

end

local function onCastSpell5(parameters)

doCombat(parameters.cid, combat5, parameters.var)

end

local function onCastSpell6(parameters)

doCombat(parameters.cid, combat6, parameters.var)

end

local function onCastSpell7(parameters)

doCombat(parameters.cid, combat7, parameters.var)

end

local function onCastSpell8(parameters)

doCombat(parameters.cid, combat8, parameters.var)

end

local function onCastSpell9(parameters)

doCombat(parameters.cid, combat9, parameters.var)

end

local function onCastSpell10(parameters)

doCombat(parameters.cid, combat10, parameters.var)

end

local function onCastSpell11(parameters)

doCombat(parameters.cid, combat11, parameters.var)

end

local function onCastSpell12(parameters)

doCombat(parameters.cid, combat12, parameters.var)

end

 

function onCastSpell(cid, var)

local parameters = { cid = cid, var = var}

addEvent(onCastSpell1, 14850, parameters)

addEvent(onCastSpell2, 14825, parameters)

addEvent(onCastSpell3, 14800, parameters)

addEvent(onCastSpell4, 14775, parameters)

addEvent(onCastSpell5, 14750, parameters)

addEvent(onCastSpell6, 14725, parameters)

addEvent(onCastSpell7, 14700, parameters)

addEvent(onCastSpell8, 14675, parameters)

addEvent(onCastSpell1, 14650, parameters)

addEvent(onCastSpell2, 14625, parameters)

addEvent(onCastSpell3, 14600, parameters)

addEvent(onCastSpell4, 14575, parameters)

addEvent(onCastSpell5, 14550, parameters)

addEvent(onCastSpell6, 14525, parameters)

addEvent(onCastSpell7, 14500, parameters)

addEvent(onCastSpell8, 14475, parameters)

addEvent(onCastSpell1, 14450, parameters)

addEvent(onCastSpell2, 14400, parameters)

addEvent(onCastSpell3, 14350, parameters)

addEvent(onCastSpell4, 14300, parameters)

addEvent(onCastSpell5, 14250, parameters)

addEvent(onCastSpell6, 14200, parameters)

addEvent(onCastSpell7, 14150, parameters)

addEvent(onCastSpell8, 14100, parameters)

addEvent(onCastSpell1, 14050, parameters)

addEvent(onCastSpell2, 14000, parameters)

addEvent(onCastSpell3, 13950, parameters)

addEvent(onCastSpell4, 13900, parameters)

addEvent(onCastSpell5, 13850, parameters)

addEvent(onCastSpell6, 13750, parameters)

addEvent(onCastSpell7, 13700, parameters)

addEvent(onCastSpell8, 13650, parameters)

addEvent(onCastSpell1, 13600, parameters)

addEvent(onCastSpell2, 13500, parameters)

addEvent(onCastSpell3, 13400, parameters)

addEvent(onCastSpell4, 13300, parameters)

addEvent(onCastSpell5, 13200, parameters)

addEvent(onCastSpell6, 13100, parameters)

addEvent(onCastSpell7, 13000, parameters)

addEvent(onCastSpell8, 12900, parameters)

addEvent(onCastSpell1, 12800, parameters)

addEvent(onCastSpell2, 12700, parameters)

addEvent(onCastSpell3, 12600, parameters)

addEvent(onCastSpell4, 12500, parameters)

addEvent(onCastSpell5, 12400, parameters)

addEvent(onCastSpell6, 12300, parameters)

addEvent(onCastSpell7, 12200, parameters)

addEvent(onCastSpell8, 12100, parameters)

addEvent(onCastSpell1, 12000, parameters)

addEvent(onCastSpell2, 11750, parameters)

addEvent(onCastSpell3, 11500, parameters)

addEvent(onCastSpell4, 11250, parameters)

addEvent(onCastSpell5, 11000, parameters)

addEvent(onCastSpell6, 10750, parameters)

addEvent(onCastSpell7, 10500, parameters)

addEvent(onCastSpell8, 10250, parameters)

addEvent(onCastSpell1, 10000, parameters)

addEvent(onCastSpell2, 9750, parameters)

addEvent(onCastSpell3, 9500, parameters)

addEvent(onCastSpell4, 9250, parameters)

addEvent(onCastSpell5, 9000, parameters)

addEvent(onCastSpell6, 8750, parameters)

addEvent(onCastSpell7, 8500, parameters)

addEvent(onCastSpell8, 8250, parameters)

addEvent(onCastSpell1, 8000, parameters)

addEvent(onCastSpell2, 7500, parameters)

addEvent(onCastSpell3, 7000, parameters)

addEvent(onCastSpell4, 6500, parameters)

addEvent(onCastSpell5, 6000, parameters)

addEvent(onCastSpell6, 5500, parameters)

addEvent(onCastSpell7, 5000, parameters)

addEvent(onCastSpell8, 4500, parameters)

addEvent(onCastSpell1, 4000, parameters)

addEvent(onCastSpell2, 3500, parameters)

addEvent(onCastSpell3, 3000, parameters)

addEvent(onCastSpell4, 2500, parameters)

addEvent(onCastSpell5, 2000, parameters)

addEvent(onCastSpell6, 1500, parameters)

addEvent(onCastSpell7, 1000, parameters)

addEvent(onCastSpell8, 500, parameters)

addEvent(onCastSpell9, 15900, parameters)

addEvent(onCastSpell10, 16100, parameters)

addEvent(onCastSpell11, 16300, parameters)

addEvent(onCastSpell12, 16500, parameters)

return TRUE

end

 

 

 

MultiMega Power

 

 

 

-- Created by CoGames --

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 18)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, 36)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -8, -8, -10, -18)

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, 52)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -8, -8, -10, -18)

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, 49)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -8, -8, -10, -18)

 

local combat4 = createCombatObject()

setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat4, COMBAT_PARAM_EFFECT, 34)

setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -8, -8, -10, -18)

 

local combat5 = createCombatObject()

setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)

setCombatParam(combat5, COMBAT_PARAM_EFFECT, 37)

setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -8, -8, -10, -18)

local combat6 = createCombatObject()

setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)

setCombatParam(combat6, COMBAT_PARAM_EFFECT, 61)

setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -8, -8, -10, -18)

 

arr1 = {

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},

{0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0},

{0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0},

{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0},

{0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0},

{0, 0, 1, 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}

}

 

arr2 = {

{0, 0, 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, 1, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0},

{0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0},

{0, 0, 0, 1, 0, 2, 1, 0, 0, 0, 0},

{0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0},

{0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0},

{0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0},

{0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}

}

 

arr3 = {

{0, 0, 0, 0, 0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 0},

{0, 0, 1, 1, 1, 1, 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}

}

 

arr6 = {

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1},

{0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1},

{0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1},

{0, 0, 1, 1, 1, 3, 1, 1, 1, 1, 1},

{0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1},

{0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1},

{0, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1},

{0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1},

{1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0}

}

 

local area1 = createCombatArea(arr1)

local area2 = createCombatArea(arr2)

local area3 = createCombatArea(arr3)

local area4 = createCombatArea(arr4)

local area5 = createCombatArea(arr5)

local area6 = createCombatArea(arr6)

setCombatArea(combat1, area1)

setCombatArea(combat2, area2)

setCombatArea(combat3, area3)

setCombatArea(combat4, area4)

setCombatArea(combat5, area5)

setCombatArea(combat6, area6)

 

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

 

local function onCastSpell4(parameters)

doCombat(parameters.cid, parameters.combat4, parameters.var)

end

 

local function onCastSpell5(parameters)

doCombat(parameters.cid, parameters.combat5, parameters.var)

end

 

local function onCastSpell6(parameters)

doCombat(parameters.cid, parameters.combat6, 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, 100, parameters)

addEvent(onCastSpell2, 300, parameters)

addEvent(onCastSpell3, 500, parameters)

addEvent(onCastSpell4, 800, parameters)

addEvent(onCastSpell5, 1100, parameters)

addEvent(onCastSpell6, 1400, parameters)

return TRUE

end

 

 

 

StoneFire Death

 

 

 

-- Created by CoGames --

 

local acombat1 = createCombatObject()

local acombat2 = createCombatObject()

 

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, 44)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -6, -6, -8, -15)

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, 36)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -6, -6, -8, -15)

 

 

arr1 = {

{0, 0, 1, 1, 1, 0, 0},

{0, 1, 1, 1, 1, 1, 0},

{1, 1, 1, 1, 1, 1, 1},

{1, 1, 1, 3, 1, 1, 1},

{1, 1, 1, 1, 1, 1, 1},

{0, 1, 1, 1, 1, 1, 0},

{0, 0, 1, 1, 1, 0, 0}

}

 

arr2 = {

{0, 0, 1, 1, 1, 0, 0},

{0, 1, 1, 1, 1, 1, 0},

{1, 1, 1, 1, 1, 1, 1},

{1, 1, 1, 3, 1, 1, 1},

{1, 1, 1, 1, 1, 1, 1},

{0, 1, 1, 1, 1, 1, 0},

{0, 0, 1, 1, 1, 0, 0}

}

 

 

 

 

 

local area1 = createCombatArea(arr1)

local area2 = createCombatArea(arr2)

setCombatArea(acombat1, area1)

setCombatArea(acombat2, area2)

 

 

function onTargetTile(cid, pos)

doCombat(cid,combat1,positionToVariant(pos))

end

 

function onTargetTile2(cid, pos)

doCombat(cid,combat2,positionToVariant(pos))

end

 

 

 

setCombatCallback(acombat1, CALLBACK_PARAM_TARGETTILE, "onTargetTile")

 

setCombatCallback(acombat2, CALLBACK_PARAM_TARGETTILE, "onTargetTile2")

 

 

 

 

local function onCastSpell1(parameters)

doCombat(parameters.cid, acombat1, parameters.var)

end

 

local function onCastSpell2(parameters)

doCombat(parameters.cid, acombat2, parameters.var)

end

 

 

 

 

function onCastSpell(cid, var)

local parameters = { cid = cid, var = var}

addEvent(onCastSpell1, 50, parameters)

addEvent(onCastSpell2, 100, parameters)

return TRUE

end

 

 

 

Se gostou REP+button_ok.png

Se não gostou REP+button_ok.pngtambém.

 

CYA!

Link para o comentário
Compartilhar em outros sites

DragonTheory to saindo agorinha, pois as 8 horas tenho inglês e preciso me arrumar, por favor, reporte para fechar o outro tópico.

 

RarTnE to meio sem tempo, se der, outra hora eu posto as SSs. Obrigado!

Editado por Cogames
Link para o comentário
Compartilhar em outros sites

@FaltouCriatividade

 

Fala ai galera, vou colocar umas spells novas que eu acabei de fazer.

 

A propósito, quando vi o relógio já era 8:10, hoje não vou pro inglês mas terei que ir sábado =|

Link para o comentário
Compartilhar em outros sites

O OneShot fez uma aura com múltiplos efeitos, essa eu fiz uma diferente que só roda o char e não deixa os efeitos pra trás, e também essa é só ICE!

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...