Ir para conteúdo
  • 0

Preciso Que Algum Script, Possa Arrumar Meu Weapon


Maenilse

Pergunta

Galera Preciso Que Algum Script, Possa Fazer Funcionar Meu Weapon, Eu Peguei O Script Com O Meu Amigo, So Que Nao Tem A Funçao Dos Atks Do Script, Eu Peço Que Algum Script Por Favor Façam, Ele Funcionar, Ta Tudo Organizado, Eu So Preciso, Que Alguem Possa Arrumar Pra Ele Funcionar, Nao Sei Se è A Area Correta, Entao Por Favor Se Nao For, Movam

 

Script Abaixo

 

 

 

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, 11)

setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 11)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -25, -25, -25, -25)

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, 11)

setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 17)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -25, -25, -25, -25)

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, 11)

setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 18)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -25, -25, -25, -25)

 

local combat4 = createCombatObject()

setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat4, COMBAT_PARAM_EFFECT, 11)

setCombatParam(combat4, COMBAT_PARAM_DISTANCEEFFECT, 19)

setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -25, -25, -25, -25)

 

local combat5 = createCombatObject()

setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)

setCombatParam(combat5, COMBAT_PARAM_EFFECT, 11)

setCombatParam(combat5, COMBAT_PARAM_DISTANCEEFFECT, 7)

setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -25, -25, -25, -25)

 

local combat6 = createCombatObject()

setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_EARTHDAMAGE)

setCombatParam(combat6, COMBAT_PARAM_EFFECT, 11)

setCombatParam(combat6, COMBAT_PARAM_DISTANCEEFFECT, 27)

setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -25, -25, -25, -25)

 

local combat7 = createCombatObject()

setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)

setCombatParam(combat7, COMBAT_PARAM_EFFECT, 11)

setCombatParam(combat7, COMBAT_PARAM_DISTANCEEFFECT, 28)

setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -25, -25, -25, -25)

Link para o comentário
Compartilhar em outros sites

10 respostass a esta questão

Posts Recomendados

  • 0

Esclaresça melhor, você quer que te passe o Script da sua wand, com aqueles atributos no primeiro post? é isso?:))

 

@EDIT, FICANDO ASSIM?

 

local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 11)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 11)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -25, -25, -25, -25)

local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 11)
setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 17)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -25, -25, -25, -25)

local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, 11)
setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 18)
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -25, -25, -25, -25)

local combat4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat4, COMBAT_PARAM_EFFECT, 11)
setCombatParam(combat4, COMBAT_PARAM_DISTANCEEFFECT, 19)
setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -25, -25, -25, -25)

local combat5 = createCombatObject()
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat5, COMBAT_PARAM_EFFECT, 11)
setCombatParam(combat5, COMBAT_PARAM_DISTANCEEFFECT, 7)
setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -25, -25, -25, -25)

local combat6 = createCombatObject()
setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_EARTHDAMAGE)
setCombatParam(combat6, COMBAT_PARAM_EFFECT, 11)
setCombatParam(combat6, COMBAT_PARAM_DISTANCEEFFECT, 27)
setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -25, -25, -25, -25)

local combat7 = createCombatObject()
setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat7, COMBAT_PARAM_EFFECT, 11)
setCombatParam(combat7, COMBAT_PARAM_DISTANCEEFFECT, 28)
setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -25, -25, -25, -25)

function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end

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

  • 0

Tente assim:

 

local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 11)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 11)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -25, -25, -25, -25)

local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 11)
setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 17)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -25, -25, -25, -25)

local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, 11)
setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 18)
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -25, -25, -25, -25)

local combat4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat4, COMBAT_PARAM_EFFECT, 11)
setCombatParam(combat4, COMBAT_PARAM_DISTANCEEFFECT, 19)
setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -25, -25, -25, -25)

local combat5 = createCombatObject()
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat5, COMBAT_PARAM_EFFECT, 11)
setCombatParam(combat5, COMBAT_PARAM_DISTANCEEFFECT, 7)
setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -25, -25, -25, -25)

local combat6 = createCombatObject()
setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_EARTHDAMAGE)
setCombatParam(combat6, COMBAT_PARAM_EFFECT, 11)
setCombatParam(combat6, COMBAT_PARAM_DISTANCEEFFECT, 27)
setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -25, -25, -25, -25)

local combat7 = createCombatObject()
setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat7, COMBAT_PARAM_EFFECT, 11)
setCombatParam(combat7, COMBAT_PARAM_DISTANCEEFFECT, 28)
setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -25, -25, -25, -25)

function onUseWeapon(cid, var)
	return doCombat1(cid, combat, var)
	return doCombat2(cid, combat, var)
	return doCombat3(cid, combat, var)
	return doCombat4(cid, combat, var)
	return doCombat5(cid, combat, var)
	return doCombat6(cid, combat, var)
	return doCombat7(cid, combat, var)
end

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

  • 0

@Roksas

 

Não vou falar nada, mas estude mais Lua, ok? Pois desse jeito, você está parecendo o SkyLigh

 

@Maenilse

 


local damageTypes = {COMBAT_HOLYDAMAGE, COMBAT_FIREDAMAGE, COMBAT_ICEDAMAGE, COMBAT_PHYSICALDAMAGE, COMBAT_ENERGYDAMAGE, COMBAT_EARTHDAMAGE, COMBAT_DEATHDAMAGE}
local effects = {11, 11, 11, 11, 11, 11, 11}
local shootEffects = {11, 17, 18, 19, 7, 27, 28}

local combats = {}
for i = 0, 6 do
combats[i] = createCombatObject()
setCombatParam(combats[i], COMBAT_PARAM_TYPE, (damageTypes[i] or 255))
setCombatParam(combats[i], COMBAT_PARAM_EFFECT, (effects[i] or 255))
setCombatParam(combats[i], COMBAT_PARAM_DISTANCEEFFECT, (shootEffects[i] or 255))
setCombatFormula(combats[i], COMBAT_FORMULA_LEVELMAGIC, -25, -25, -25, -25)
end

function onUseWeapon(cid, var)
for i = 0, (#combats - 1) do
	addEvent(doCombat, i * 100, cid, combats[i], var)
end
return true
end

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

  • 0

vlw manolo, nao sei como agradeçer, me ajudo de mais, REP + Pra TU, Bem Merecido

 

 

@Edit ae OneShot, Vlw Msm Pelo Script, Ja Arrumo Oq Estava Faltando Ja Te Dei O Rep + Ontem

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

×
×
  • Criar Novo...