Ir para conteúdo

Pedido De Runa


Carlinhow789

Posts Recomendados

Tem dois jeitos de se fazer , vo mostrar o jeito mais simples .

 

Va em spells/scripts/attack , copie e cole um arquivo .lua , apague tudo o que tem dentro renomeie para "mix rune" e coloque isso :

local combat = createCombatObject()

 

setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)

 

setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)

setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)

setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)

setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_EARTHDAMAGE)

 

setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)

setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_CARNIPHILA)

setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_FIREATTACK)

setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)

setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK)

 

setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)

setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_EARTH)

setCombatParam(distanceCombat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE)

setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_HOLY)

setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLICE)

 

 

setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.3, -100, -1.5, -100, 6, 6, 7, 8)

 

local condition = createConditionObject(CONDITION_CURSED)

setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)

addDamageCondition(condition, 5, 2000, -60)

setCombatCondition(combat, condition)

 

function onCastSpell(cid, var)

return doCombat(cid, combat, var)

end

 

Depois va em spells.xml

 

Aberte Ctrl+F e procure por super sudden death , apague a linha da sudden death e coloque isso :

 

<rune name="Mix Rune" id="2263" allowfaruse="1" charges="3" lvl="8" maglv="5" exhaustion="2000" needtarget="1" blocktype="solid" event="script" value="attack/mix rune.lua"/>

 

Espero que funcione ..

Se funcionar REP+?

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

hmmm...

Acho que entendi, coloca isso no lugar de uma runa que tu nem quer mais(data/spells/scripts/attack aí escolhe a runa:

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -60, -1, -60, 5, 5, 4, 7)

local combate = createCombatObject()
setCombatParam(combate, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combate, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combate, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYAREA)
setCombatParam(combate, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGYBALL)
setCombatFormula(combate, COMBAT_FORMULA_LEVELMAGIC, -1, -60, -1, -60, 5, 5, 4, 7)

local combatf = createCombatObject()
setCombatParam(combatf, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combatf, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combatf, COMBAT_PARAM_EFFECT, CONST_ME_FIREAREA)
setCombatParam(combatf, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE)
setCombatFormula(combatf, COMBAT_FORMULA_LEVELMAGIC, -1, -60, -1, -60, 5, 5, 4, 7)

local combata = createCombatObject()
setCombatParam(combata, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combata, COMBAT_PARAM_TYPE, COMBAT_EARTHDAMAGE)
setCombatParam(combata, COMBAT_PARAM_EFFECT, CONST_ME_CARNIPHILA)
setCombatParam(combata, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_EARTH)
setCombatFormula(combata, COMBAT_FORMULA_LEVELMAGIC, -1, -60, -1, -60, 5, 5, 4, 7)

local combath = createCombatObject()
setCombatParam(combath, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combath, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combath, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
setCombatParam(combath, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_HOLY)
setCombatFormula(combath, COMBAT_FORMULA_LEVELMAGIC, -1, -60, -1, -60, 5, 5, 4, 7)

local combati = createCombatObject()
setCombatParam(combati, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combati, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combati, COMBAT_PARAM_EFFECT, CONST_ME_ICE)
setCombatParam(combati, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ICE)
setCombatFormula(combati, COMBAT_FORMULA_LEVELMAGIC, -1, -60, -1, -60, 5, 5, 4, 7)

function onCastSpell(cid, var)
if math.random(1, 6) == 1 then
return doCombat(cid, combat, var)
elseif math.random(1, 6) == 2 then
   return doCombat(cid, combate, var)
elseif math.random(1, 6) == 3 then
   return doCombat(cid, combatf, var)
elseif math.random(1, 6) == 4 then
   return doCombat(cid, combata, var)
elseif math.random(1, 6) == 5 then
   return doCombat(cid, combati, var)
else
   return doCombat(cid, combath, var)
end
end

 

aí no seu ot faz a runa e testa ;D

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...