Como mudar o efeito da spell

eltonaraujo
em Scripts

eltonaraujo

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 26/01/13Posts: 8

bom galera eu quera muda uns newtype pq acho uns feio demais por exempo sfsdfs.png por esse2sdhsakjld.png.. so muda,

Geleia30

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 28/11/11Posts: 18Gênero: MasculinoChar no Tibia: Tia Peida

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 + :)

eltonaraujo

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 26/01/13Posts: 8

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

 

LuckOake

avatar
Marquês
Marquês

INFOS

Grupo: MarquêsRegistrado: 23/07/12Posts: 1104Gênero: MasculinoChar no Tibia: Luck Oake

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.

eltonaraujo

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 26/01/13Posts: 8

eu mudei para o 501 . e ficou do mesmo jeito

Geleia30

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 28/11/11Posts: 18Gênero: MasculinoChar no Tibia: Tia Peida

n existe esse efeito 501 n , no seu caso se tem que subistitui pelo 36

eltonaraujo

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 26/01/13Posts: 8

no meu ot existe e ja testei /z 501 que e este 2sdhsakjld.png

Slicer

Insanity
avatar
Príncipe
Príncipe

INFOS

Grupo: PríncipeRegistrado: 19/08/10Posts: 4014Gênero: Masculino

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

 

eltonaraujo

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 26/01/13Posts: 8

Nada consegui com o 501 de outra maneira. mais vlw pela ajuda. pode ficha o topico '-'