Manaphyzx 0 Postado Novembro 11, 2017 Share Postado Novembro 11, 2017 Galera eu quero botar essa spell para combo, Como tipo botar Rasengan, Rasenshuriken, Bijuu Dama para usar seguidamente segue a script. SCRIPT DA MAGIA: Spoiler local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 3) setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -34.2, 1, -33.2, 1) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 3) setCombatParam(combat2, COMBAT_PARAM_EFFECT, 398) setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -35.1, 1, -34.6, 1) local combat3 = createCombatObject() setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 3) setCombatParam(combat3, COMBAT_PARAM_EFFECT, 398) setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -33.4, 1, -35.5, 1) local combat4 = createCombatObject() setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat4, COMBAT_PARAM_DISTANCEEFFECT, 3) setCombatParam(combat4, COMBAT_PARAM_EFFECT, 398) setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -34.3, 1, -32.5, 1) arr1 = { {3} } arr2 = { {3} } arr3 = { {3} } arr4 = { {3} } local area1 = createCombatArea(arr1) local area2 = createCombatArea(arr2) local area3 = createCombatArea(arr3) local area4 = createCombatArea(arr4) setCombatArea(combat1, area1) setCombatArea(combat2, area2) setCombatArea(combat3, area3) setCombatArea(combat4, area4) local function onCastSpell1(parameters) return isPlayer(parameters.cid) and doCombat(parameters.cid, combat1, parameters.var) end local function onCastSpell2(parameters) return isPlayer(parameters.cid) and doCombat(parameters.cid, combat2, parameters.var) end local function onCastSpell3(parameters) return isPlayer(parameters.cid) and doCombat(parameters.cid, combat3, parameters.var) end local function onCastSpell4(parameters) return isPlayer(parameters.cid) and doCombat(parameters.cid, combat4, parameters.var) end function onCastSpell(cid, var) local position348 = {x=getPlayerPosition(cid).x, y=getPlayerPosition(cid).y, z=getPlayerPosition(cid).z} local parameters = { cid = cid, var = var} addEvent(onCastSpell1, 200, parameters) addEvent(onCastSpell2, 400, parameters) addEvent(onCastSpell2, 800, parameters) addEvent(onCastSpell2, 1000, parameters) doSendMagicEffect(position348, 0) return TRUE end Eu vi um tutorial e ficou assim, porem não sai o effect alguém poderia me ajudar por favor? Spoiler local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 3) setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -34.2, 1, -33.2, 1) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 3) setCombatParam(combat2, COMBAT_PARAM_EFFECT, 398) setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -35.1, 1, -34.6, 1) local combat3 = createCombatObject() setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 3) setCombatParam(combat3, COMBAT_PARAM_EFFECT, 398) setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -33.4, 1, -35.5, 1) local combat4 = createCombatObject() setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat4, COMBAT_PARAM_DISTANCEEFFECT, 3) setCombatParam(combat4, COMBAT_PARAM_EFFECT, 398) setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -34.3, 1, -32.5, 1) arr1 = { {3} } arr2 = { {3} } arr3 = { {3} } arr4 = { {3} } local area1 = createCombatArea(arr1) local area2 = createCombatArea(arr2) local area3 = createCombatArea(arr3) local area4 = createCombatArea(arr4) setCombatArea(combat1, area1) setCombatArea(combat2, area2) setCombatArea(combat3, area3) setCombatArea(combat4, area4) local function onCastSpell1(parameters) return isPlayer(parameters.cid) and doCombat(parameters.cid, combat1, parameters.var) end local function onCastSpell2(parameters) return isPlayer(parameters.cid) and doCombat(parameters.cid, combat2, parameters.var) end local function onCastSpell3(parameters) return isPlayer(parameters.cid) and doCombat(parameters.cid, combat3, parameters.var) end local function onCastSpell4(parameters) return isPlayer(parameters.cid) and doCombat(parameters.cid, combat4, parameters.var) end function onCastSpell(cid, var) local position348 = {x=getPlayerPosition(cid).x, y=getPlayerPosition(cid).y, z=getPlayerPosition(cid).z} local parameters = { cid = cid, var = var} if getPlayerStorageValue(cid, 3200) <= 0 then setPlayerStorageValue(cid, 3200, os.time()+10000) addEvent(onCastSpell1, 200, parameters) addEvent(onCastSpell2, 400, parameters) addEvent(onCastSpell2, 800, parameters) addEvent(onCastSpell2, 1000, parameters) doSendMagicEffect(position348, 0) else doPlayerSendCancel(cid, "You are exhausted.") end return TRUE end Link para o comentário Compartilhar em outros sites More sharing options...
Stigal 584 Postado Abril 19, 2018 Share Postado Abril 19, 2018 A questão neste tópico de suporte foi encerrada por falta de resposta. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta. Link para o comentário Compartilhar em outros sites More sharing options...
Posts Recomendados