bom galera eu quera muda uns newtype pq acho uns feio demais por exempo por esse
.. so muda,
Como mudar o efeito da spell

Amigo não sou especializado em .lua mas acho que posso te ajudar , vou te mostrar um exemplo de script de spell
Script
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 6)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.9, -2100, -1.7, -3440)
local arr = {
{1, 1, 1},
{1, 1, 1},
{1, 1, 1},
{0, 1, 0},
{0, 2, 0},
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Aonde esta de vermelho voçe o substitui pelo efeito que voçe quer , que no seu caso vai ser o efeito 36 ai é so subistituir ,mas por exemplo se a linha do script estiver desta forma setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA) é so deletar o CONST_ME_MORTAREA e subistituir pelo número do efeito desejado da sua spell , e caso voçe não saiba como escolher seu efeito entre em seu ot e digite /z e um numero de 1 a 68(8.6) aonde voçe esteja logado em uma conta que voçe seja o Administrador.
Ajudei ? Rep +
mais tipo eu n consigo acha no spells que eu quero troca. veja ai
local rageblast1 = createCombatArea{ {0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0}, {0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 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, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} } function onCastSpell(cid, var) doCreatureSay(cid, "RAGING BLAST!", TALKTYPE_MONSTER) if getPlayerStorageValue(cid, 3) >= 1 then doSendAnimatedText(getThingPos(cid), "MISS", 215) setPlayerStorageValue(cid, 3, -1) return true end if getPlayerStorageValue(cid, 5) >= 1 then if math.random(1,100) <= 33 then doSendAnimatedText(getThingPos(cid), "SELF HIT", 180) if isPlayer(getCreatureTarget(cid)) then huah = getPlayerLevel(getCreatureTarget(cid)) else huah = getPlayerLevel(getCreatureMaster(getCreatureTarget(cid))) end local levels = huah doTargetCombatHealth(getCreatureTarget(cid), cid, COMBAT_PHYSICALDAMAGE, -(math.random((levels*3),(levels*5))), -((math.random((levels*3),(levels*5))+10)), 3) return true end end if getCreatureName(cid) == "Charmeleon" then yyy = 300 else yyy = 600 end local y = yyy doAreaCombatHealth(cid, FIREDAMAGE, getThingPos(cid), rageblast1, -(y), -(y+20), 6) local function damage(params) if isCreature(params.cid) then doAreaCombatHealth(cid, FIREDAMAGE, getThingPos(cid), params.x, -(y), -(y+20), 6) end end addEvent(damage, 200, {cid = cid, x = rageblast2}) addEvent(damage, 400, {cid = cid, x = rageblast3}) addEvent(damage, 600, {cid = cid, x = rageblast4}) end
Mude aqui:
doAreaCombatHealth(cid, FIREDAMAGE, getThingPos(cid), rageblast1, -(y), -(y+20), 6)
E aqui
doAreaCombatHealth(cid, FIREDAMAGE, getThingPos(cid), params.x, -(y), -(y+20), 6)
Substitua o número em vermelho.
• Estagiário desde 26/08/2012
• Colaborador desde 30/09/2012
• Moderador desde 24/01/2013
• Saída da equipe: ??/??/2013
Meus scripts:
Movement - Vocation Weapon
Mod - Partner System
Mod - Characters Market System (In Game) -- Exclusivo
Mod - Caixa Eletrônico
Mod - Vampire System
Mod - Summon Boost System
Mod - Defend The Generator
Sistema - RadBr Banishment System -- Super Exclusivo
Sistema - Advanced Quiz System -- Exclusivo
Talk - Comprando Pontos de EXP
Talk - Stop Time
Talk - Calculadora Ingame
Talk - Perfect Reset System -- Exclusivo
Tutorial - Aprendendo a Scriptear
eu mudei para o 501 . e ficou do mesmo jeito
n existe esse efeito 501 n , no seu caso se tem que subistitui pelo 36
no meu ot existe e ja testei /z 501 que e este
amigo o limite de effects eh 254.. se tu por numeros maiores q esse no /z vai ficar repetindo os efeitos... esse efeito ae eh o 6 ou 35 n lembro.. algu assim.. olhe no teu .dat... ;x
"Só a beira do abismo que os seres humanos acham forças para mudar."... E isso me da nojo... ¬¬
"Insanity is doing the exact... same fucking thing... over and over again expecting... shit to change... That. Is. Crazy." -Vass/Einstein
Nada consegui com o 501 de outra maneira. mais vlw pela ajuda. pode ficha o topico '-'