Ir para conteúdo

Ae Galera Alguem Pode Dar Continuaçao Do Trabalho Do Redspark


MIkexd

Posts Recomendados

que trabalho é esse,quem é redspark?a seção tá correta?como quer ser ajudado?

preste atenção e elabore um tópico dessente.

e se vc n leu vou postar pra vc.

Atenção!

Olá Usuários,

 

Está Seção de Actions serve para postar actions desenvolvidas.

 

Esperamos que esteja ciente disto.

 

Atenciosamente,

Equipe Xtibia.

Link para o comentário
Compartilhar em outros sites

U kara é mesmo malz ae escrevi corre e copiei pelo ctrl+c e nao colo !!!!

 

Mais tarde vo posta o trabalho pra ele ok !

 

ta ae o trabalho dele so queria que alguem me repondece como poim dano !!

 

 

 

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, 111)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -6.3, 0, -5.5, 0)

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, 42)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -6.3, 0, -5.5, 0)

 

 

arr2 = {

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 3, 0, 3, 0, 3, 0, 0, 0},

{0, 0, 0, 3, 0, 3, 0, 3, 0, 0, 0},

{0, 0, 0, 0, 3, 3, 3, 0, 0, 0, 0},

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

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

}

 

local area2 = createCombatArea(arr2)

setCombatArea(combat2, area2)

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, 142)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -6.3, 0, -5.5, 0)

 

local combat4 = createCombatObject()

setCombatParam(combat4, COMBAT_PARAM_EFFECT, 141)

setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -6.3, 0, -5.5, 0)

 

local combat5 = createCombatObject()

setCombatParam(combat5, COMBAT_PARAM_EFFECT, 16)

setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -6.3, 0, -5.5, 0)

 

local combat6 = createCombatObject()

setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat6, COMBAT_PARAM_EFFECT, 137)

setCombatParam(combat6, COMBAT_PARAM_DISTANCEEFFECT, 23)

setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -6.3, 0, -5.5, 0)

 

local combat7 = createCombatObject()

setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat7, COMBAT_PARAM_EFFECT, 59)

setCombatParam(combat7, COMBAT_PARAM_DISTANCEEFFECT, 23)

setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -6.3, 0, -5.5, 0)

 

local combat8 = createCombatObject()

setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat8, COMBAT_PARAM_EFFECT, 138)

setCombatParam(combat8, COMBAT_PARAM_DISTANCEEFFECT, 138)

setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -6.3, 0, -5.5, 0)

 

local combat9 = createCombatObject()

setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat9, COMBAT_PARAM_EFFECT, 112)

setCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, -6.3, 0, -5.5, 0)

 

local combat10 = createCombatObject()

setCombatParam(combat10, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat10, COMBAT_PARAM_EFFECT, 79)

setCombatParam(combat10, COMBAT_PARAM_DISTANCEEFFECT, 5)

setCombatFormula(combat10, COMBAT_FORMULA_LEVELMAGIC, -6.3, 0, -5.5, 0)

 

local combat11 = createCombatObject()

setCombatParam(combat11, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat11, COMBAT_PARAM_EFFECT, 68)

setCombatParam(combat11, COMBAT_PARAM_DISTANCEEFFECT, 2)

setCombatFormula(combat11, COMBAT_FORMULA_LEVELMAGIC, -6.3, 0, -5.5, 0)

 

local combat12 = createCombatObject()

setCombatParam(combat12, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat12, COMBAT_PARAM_EFFECT, 137)

setCombatParam(combat12, COMBAT_PARAM_DISTANCEEFFECT, 23)

setCombatFormula(combat12, COMBAT_FORMULA_LEVELMAGIC, -6.3, 0, -5.5, 0)

 

local combat13 = createCombatObject()

setCombatParam(combat13, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat13, COMBAT_PARAM_EFFECT, 9)

setCombatParam(combat13, COMBAT_PARAM_DISTANCEEFFECT, 25)

setCombatFormula(combat13, COMBAT_FORMULA_LEVELMAGIC, -6.3, 0, -5.5, 0)

 

local combat14 = createCombatObject()

setCombatParam(combat14, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat14, COMBAT_PARAM_EFFECT, 22)

setCombatParam(combat14, COMBAT_PARAM_DISTANCEEFFECT, 24)

setCombatFormula(combat14, COMBAT_FORMULA_LEVELMAGIC, -6.3, 0, -5.5, 0)

 

local combat15 = createCombatObject()

setCombatParam(combat15, COMBAT_PARAM_EFFECT, 122)

setCombatParam(combat15, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatFormula(combat15, COMBAT_FORMULA_LEVELMAGIC, -6.3, 0, -5.5, 0)

 

 

arr15 = {

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

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

}

 

local area15 = createCombatArea(arr15)

setCombatArea(combat15, area15)

 

 

 

local c = {

["Bulbasaur"] = {x = {

m2 = combat10,

spell = "Razor Leaf",

minLv = 20,

distance = 3

}

},

["Ivysaur"] = {x = {

m2 = combat10,

spell = "Razor Leaf",

minLv = 40,

distance = 3

}

},

["Venusaur"] = {x = {

m2 = combat10,

spell = "Razor Leaf",

minLv = 85,

distance = 3

}

},

["Charmander"] = {x = {

m2 = combat4,

spell = "Ember",

minLv = 20,

distance = 3

}

},

["Charmeleon"] = {x = {

m2 = combat4,

spell = "Ember",

minLv = 40,

distance = 3

}

},

["Charizard"] = {x = {

m2 = combat4,

spell = "Ember",

minLv = 85,

distance = 3

}

},

["Squirtle"] = {x = {

m2 = combat1,

spell = "Bubbles",

minLv = 20,

distance = 3

}

},

["Wartortle"] = {x = {

m2 = combat1,

spell = "Bubbles",

minLv = 40,

distance = 3

}

},

["Blastoise"] = {x = {

m2 = combat1,

spell = "Bubbles",

minLv = 85,

distance = 3

}

},

["Caterpie"] = {x = {

m2 = combat6,

spell = "String Shot",

minLv = 1,

distance = 3

}

},

["Metapod"] = {x = {

m2 = combat5,

spell = "Headbutt",

minLv = 15,

distance = 3

}

},

["Butterfree"] = {x = {

m2 = combat14,

spell = "Super Sonic",

minLv = 30,

distance = 3

}

},

["Weedle"] = {x = {

m2 = combat6,

spell = "String Shot",

minLv = 1,

distance = 3

}

},

["Kakuna"] = {x = {

m2 = combat5,

spell = "Headbutt",

minLv = 15,

distance = 3

}

},

["Beedrill"] = {x = {

m2 = combat5,

spell = "Poison Sting",

minLv = 25,

distance = 3

}

},

["Pidgey"] = {x = {

m2 = combat15,

spell = "Sand Attack",

minLv = 1,

distance = 3

}

},

["Pidgeotto"] = {x = {

m2 = combat15,

spell = "Sand Attack",

minLv = 20,

distance = 3

}

},

["Pidgeot"] = {x = {

m2 = combat15,

spell = "Sand Attack",

minLv = 65,

distance = 3

}

},

["Rattata"] = {x = {

m2 = combat8,

spell = "Bite",

minLv = 1,

distance = 3

}

},

["Raticate"] = {x = {

m2 = combat8,

spell = "Bite",

minLv = 25,

distance = 3

}

},

["Spearow"] = {x = {

m2 = combat15,

spell = "Sand Attack",

minLv = 10,

distance = 3

}

},

["Fearow"] = {x = {

m2 = combat15,

spell = "Sand Attack",

minLv = 50,

distance = 3

}

},

["Ekans"] = {x = {

m2 = combat5,

spell = "Poison Fang",

minLv = 15,

distance = 3

}

},

["Arbok"] = {x = {

m2 = combat5,

spell = "Poison Fang",

minLv = 35,

distance = 3

}

},

["Pikachu"] = {x = {

m2 = combat9,

spell = "Thunder Shock",

minLv = 20,

distance = 3

}

},

["Raichu"] = {x = {

m2 = combat9,

spell = "Thunder Shock",

minLv = 50,

distance = 3

}

},

["Sandshrew"] = {x = {

m2 = combat15,

spell = "Mud Shot",

minLv = 20,

distance = 3

}

},

["Sandslash"] = {x = {

m2 = combat15,

spell = "Mud Shot",

minLv = 55,

distance = 3

}

}

}

function onSay(cid, var)

local summ = getCreatureSummons(cid)

if #summ == 0 then

return doPlayerSendCancel(cid, "Sorry, but you need a pokemon.")

end

 

for j = 1, #summ do

for name, _ in pairs© do

if getCreatureName(summ[j]):lower() == name:lower() then

local con = c[name].x

if getPlayerLevel(cid) < con.minLv then

return doPlayerSendCancel(cid, "Sorry, but you must be level " .. con.minLv .. " or higher to cast.") and doSendMagicEffect(getThingPos(cid), 2)

end

local distance = (not con.distance) and 1 or con.distance

 

if not isCreature(getCreatureTarget(cid)) or getCreatureTarget(cid) == summ[j] then

return doPlayerSendCancel(cid, "Invalid target.") and doSendMagicEffect(getThingPos(cid), 2)

end

 

if getDistanceBetween(getThingPos(summ[j]), getThingPos(getCreatureTarget(cid))) > distance then

return doPlayerSendCancel(cid, "Sorry, your pokemon is too far away.") and doSendMagicEffect(getThingPos(cid), 2)

end

 

if getPlayerStorageValue(cid, 21000) <= os.time() then

doPlayerSetStorageValue(cid, 21000, os.time()+5)

doCombat(summ[j], con.m2, numberToVariant(getCreatureTarget(cid)))

doCreatureSay(cid, name .. ", " .. con.spell .. ".")

end

 

doPlayerSendTextMessage(cid,26,"Tempo para usar M2 denovo: "..(getPlayerStorageValue(cid, 23000)-os.time()).." sec.")

doSendMagicEffect(getThingPos(cid), 2)

end

end

end

 

return true

end

Link para o comentário
Compartilhar em outros sites

  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...