Ir para conteúdo

Spell "bushido"


lovenina12

Posts Recomendados

Faaala galera so eu dnv, agora vim postar uma magia do antigo Mutacao OTServer, nao podemos deixar o seu legado ficar morto ne?

la vai: a magia agora e a antiga magia dos donation "bushido"

 

va na pasta data/spells/scripts/attack

copie um arquivo .lua e renomeie para bushido

dentro dele bota isso aqui:

 

 

 

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, -3.5, -30, -4.6, 0)

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, 52)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -3.5, -30, -4.6, 0)

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, 49)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -3.5, -30, -4.6, 0)

 

local combat4 = createCombatObject()

setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat4, COMBAT_PARAM_EFFECT, 34)

setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -3.5, -30, -4.6, 0)

 

local combat5 = createCombatObject()

setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)

setCombatParam(combat5, COMBAT_PARAM_EFFECT, 37)

setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -3.5, -30, -4.6, 0)

local combat6 = createCombatObject()

setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)

setCombatParam(combat6, COMBAT_PARAM_EFFECT, 61)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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

 

 

feche salve. volte a pasta data/spells

e abra o arquivo spells.xml

caso teja tudo embarassado e junto apenas abra com WordPad

la nas "instants"

abre um espaco e coloca issake:

<instant name="japonese spelling" words="bushido" lvl="120000" mana="100000" range="1" exhaustion="1000" needlearn="0" event="script" value="attack/bushido.lua">
	 <vocation id="9"/>
	<vocation id="10"/>
	<vocation id="11"/>
	<vocation id="12"/>
	</instant> 

Obs:Essa linha e pra caso tenha as novas vocation do mutacao e tbm seja pra HIGH EXP, caso seu server nao tenha vocation nova e seja de xp media deixe assim:

<instant name="japonese spelling" words="bushido" lvl="800" mana="800" range="1" exhaustion="1000" needlearn="0" event="script" value="attack/bushido.lua">
  <vocation id="5"/>
 <vocation id="6"/>
 <vocation id="7"/>
 <vocation id="8"/>
 </instant>

pronto, a magia esta completa e esta PERFEITAMENTE igual a bushido do mutacao.

 

Creditos:

30%: Eu, por postar e arrumar uns detalhe.

70%: Nipz, por me dar o mapa Elfen War que ajudo bagarai.

 

Brigado pela atencao.

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

@marciks

o map do mutacao eu tenho aki ta 90%igual, tem tudo, o undead morgaroth, a donation city, o rep system 100%, o reset system 100%, a elder city, tudin tudin os boss, consegui criar a "Alma de Thanatos", map 100% corretamente igual, etc. so ta com um probrema. VERSAO = 8.5 map ta quase pronto so ke preciso mudar pra 8.6 =/ eu tbm tenho aki a magia "exevo extreme death", "exori gran supreme", "nevasca", "divine san", "exevo timebomb", "whatahell", etc se kise so pedi ake =)

 

@todos

brigado pela atencao =D

Link para o comentário
Compartilhar em outros sites

  • 4 weeks later...
×
×
  • Criar Novo...