Ir para conteúdo

xxxjucaxxx

Campones
  • Total de itens

    9
  • Registro em

  • Última visita

Sobre xxxjucaxxx

Informações

  • Char no Tibia
    LordShunn
  • Forma que conheci o xTibia
    Sites de Busca
  • Sou
    Mapper

xxxjucaxxx's Achievements

  1. São 27 Poderes Feitos Por Mim ... Breve Adicionarei Mais E Posto Para Vcs ... Mude O Attack e Level Effects Da Forma Que Quizer ! Creditos Ao : xotservx [ Desponibilizar O Systema Para Nos ... ] Ao Mock [ Pela função doSendMagicEffectInArea ] & o MatheusMkalo [ Pela função getTime(s)]
  2. Olá hoje venho trazer o sistema de moves de pokemon , por talk, feito por min, e ja vow manda um tutorial de editar function isSummon(uid) return uid ~= getCreatureMaster(uid) or false end function doSendMagicEffectInArea(pos,effect,area,cid) -- Function by mock local centro = {} centro.y = math.floor(table.getn(area)/2)+1 for y = 1, table.getn(area) do for x = 1, table.getn(area[y]) do if area[y][x] > 0 then centro.x = math.floor(table.getn(area[y])/2)+1 if type(effect) == 'table' then doSendMagicEffect({x=pos.x+x-centro.x,y=pos.y+y-centro.y,z= pos.z},(effect[area[y][x]] or 0),cid) else doSendMagicEffect({x=pos.x+x-centro.x,y=pos.y+y-centro.y,z= pos.z},effect or 0,cid) end end end end return true end function getTime(s) -- by : Mkalo. local n = math.floor(s / 60) s = s - (60 * n) return n, s end -- AREAS -- local arr1 = { {1, 1, 1}, {1, 0, 1}, {1, 1, 1}, } -- M1 System, by: XotserX. -- local pokes = { ["Bulbasaur"] = {attackname = "Quick Attack", level = 20, storage = 2000, cd = 5, atkmin = 20, atkmax = 40, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE} } function onSay(cid, words, param, target) if #getCreatureSummons(cid) == 0 then return doPlayerSendCancel(cid, "You do not have any pokemon.") end if getPlayerStorageValue(cid, 102032) == 1 then doPlayerSendCancel(cid, "Your pokemon is exhausted.") doSendMagicEffect(getCreaturePosition(cid), 2) return true end for i,x in pairs(pokes) do local storage = x.storage local cd = x.cd if getCreatureSummons(cid) ~= 0 then if not getTilePzInfo(getPlayerPosition(cid)) then if getCreatureName(getCreatureSummons(cid)[1]) == i then if getCreatureTarget(cid) ~= 0 then if not isSummon(getCreatureTarget(cid)) or not isPlayer(getCreatureTarget(cid)) then if getPlayerLevel(cid) >= x.level then if os.time()-getPlayerStorageValue(cid, storage) <= cd then minutes,seconds = getTime(cd-(os.time()-getPlayerStorageValue(cid, storage))) return doPlayerSendTextMessage(cid, 27, "You need to wait ".. seconds .. " seconds to use " ..x.attackname..".") end if x.typeattack == "distance" then if getDistanceBetween(getCreaturePosition(getCreatureSummons(cid)[1]), getCreaturePosition(getCreatureTarget(cid))) <= x.range then doSendDistanceShoot(getCreaturePosition(getCreatureSummons(cid)[1]), getCreaturePosition(getCreatureTarget(cid)), x.effectd) doSendMagicEffect(getCreaturePosition(getCreatureTarget(cid)), x.effecta) doAreaCombatHealth(getCreatureSummons(cid)[1], x.type, getCreaturePosition(getCreatureTarget(cid)), x.arr, -(x.atkmin+getPlayerLevel(cid)), -(x.atkmax+getPlayerLevel(cid)), x.effecta) doCreatureSay(cid, ""..i..", "..x.attackname..".", 1) setPlayerStorageValue(cid, storage, os.time()+cd) setPlayerStorageValue(cid, 102032, 1) addEvent(setPlayerStorageValue, 1*1000, cid, 102032, -1) else doPlayerSendCancel(cid, "Target is far away.") doSendMagicEffect(getCreaturePosition(cid), 2) end return true end if x.typeattack == "area" then if getDistanceBetween(getCreaturePosition(getCreatureSummons(cid)[1]), getCreaturePosition(getCreatureTarget(cid))) <= x.range then doSendMagicEffectInArea(getCreaturePosition(getCreatureSummons(cid)[1]),x.effecta,x.arr) doAreaCombatHealth(getCreatureSummons(cid)[1], x.type, getCreaturePosition(getCreatureTarget(cid)), x.arr, -(x.atkmin+getPlayerLevel(cid)), -(x.atkmax+getPlayerLevel(cid)), x.effecta) doCreatureSay(cid,""..i..", "..x.attackname..".", 1) setPlayerStorageValue(cid, storage, os.time()+cd) setPlayerStorageValue(cid, 102032, 1) addEvent(setPlayerStorageValue, 1*1000, cid, 102032, -1) else doPlayerSendCancel(cid, "Target is far away.") doSendMagicEffect(getCreaturePosition(cid), 2) end return true end if x.typeattack == "direcion" then if getDistanceBetween(getCreaturePosition(getCreatureSummons(cid)[1]), getCreaturePosition(getCreatureTarget(cid))) <= x.range then if getCreatureLookDir(getCreatureSummons(cid)[1]) == 0 then doSendMagicEffect(getPositionByDirection(getCreaturePosition(getCreatureSummons(cid)[1]), 0, 1),x.effectdir0) doAreaCombatHealth(getCreatureSummons(cid)[1], x.type, getCreaturePosition(getCreatureTarget(cid)), x.arr, -(x.atkmin+getPlayerLevel(cid)), -(x.atkmax+getPlayerLevel(cid)), x.effecta) setPlayerStorageValue(cid, storage, os.time()+cd) doCreatureSay(cid,""..i..", "..x.attackname..".", 1) setPlayerStorageValue(cid, 102032, 1) addEvent(setPlayerStorageValue, 1*1000, cid, 102032, -1) elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 1 then doSendMagicEffect(getPositionByDirection(getCreaturePosition(getCreatureSummons(cid)[1]), 1, 1),x.effectdir1) doAreaCombatHealth(getCreatureSummons(cid)[1], x.type, getCreaturePosition(getCreatureTarget(cid)), x.arr, -(x.atkmin+getPlayerLevel(cid)), -(x.atkmax+getPlayerLevel(cid)), x.effecta) setPlayerStorageValue(cid, storage, os.time()+cd) doCreatureSay(cid,""..i..", "..x.attackname..".", 1) setPlayerStorageValue(cid, 102032, 1) addEvent(setPlayerStorageValue, 1*1000, cid, 102032, -1) elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 2 then doSendMagicEffect(getPositionByDirection(getCreaturePosition(getCreatureSummons(cid)[1]), 2, 1),x.effectdir2) doAreaCombatHealth(getCreatureSummons(cid)[1], x.type, getCreaturePosition(getCreatureTarget(cid)), x.arr, -(x.atkmin+getPlayerLevel(cid)), -(x.atkmax+getPlayerLevel(cid)), x.effecta) setPlayerStorageValue(cid, storage, os.time()+cd) doCreatureSay(cid,""..i..", "..x.attackname..".", 1) setPlayerStorageValue(cid, 102032, 1) addEvent(setPlayerStorageValue, 1*1000, cid, 102032, -1) elseif getCreatureLookDir(getCreatureSummons(cid)[1]) == 3 then doSendMagicEffect(getPositionByDirection(getCreaturePosition(getCreatureSummons(cid)[1]), 3, 1),x.effectdir3) doAreaCombatHealth(getCreatureSummons(cid)[1], x.type, getCreaturePosition(getCreatureTarget(cid)), x.arr, -(x.atkmin+getPlayerLevel(cid)), -(x.atkmax+getPlayerLevel(cid)), x.effecta) setPlayerStorageValue(cid, storage, os.time()+cd) doCreatureSay(cid,""..i..", "..x.attackname..".", 1) setPlayerStorageValue(cid, 102032, 1) addEvent(setPlayerStorageValue, 1*1000, cid, 102032, -1) end else doPlayerSendCancel(cid, "Target is far away.") doSendMagicEffect(getCreaturePosition(cid), 2) end return true end if x.typeattack == "intarget" then if getDistanceBetween(getCreaturePosition(getCreatureSummons(cid)[1]), getCreaturePosition(getCreatureTarget(cid))) <= x.range then doSendMagicEffect(getCreaturePosition(getCreatureTarget(cid)), x.effecta) doAreaCombatHealth(getCreatureSummons(cid)[1], x.type, getCreaturePosition(getCreatureTarget(cid)), x.arr, -(x.atkmin+getPlayerLevel(cid)), -(x.atkmax+getPlayerLevel(cid)), x.effecta) doCreatureSay(cid, ""..i..", "..x.attackname..".", 1) setPlayerStorageValue(cid, storage, os.time()+cd) setPlayerStorageValue(cid, 102032, 1) addEvent(setPlayerStorageValue, 1*1000, cid, 102032, -1) else doPlayerSendCancel(cid, "Target is far away.") doSendMagicEffect(getCreaturePosition(cid), 2) end return true end else doPlayerSendTextMessage(cid, 27, "You need level "..x.level.." to use " ..x.attackname..".") doSendMagicEffect(getCreaturePosition(cid), 2) return true end else doPlayerSendCancel(cid, "Invalid Target.") doSendMagicEffect(getCreaturePosition(cid), 2) return true end else doPlayerSendCancel(cid, "Target not is avalied.") doSendMagicEffect(getCreaturePosition(cid), 2) return true end end else doPlayerSendCancel(cid, "Do not Attack in Protection Zone.") doSendMagicEffect(getCreaturePosition(cid), 2) return true end else doPlayerSendCancel(cid, "You need pokemon to use attacks.") doSendMagicEffect(getCreaturePosition(cid), 2) return true end end return true end Configurando : 1° para adicionar mais ataques é simples na parte de loca pokes = { vcs vão adicionar a magia.. Se o Ataque for de distancia : ["Bulbasaur"] = {attackname = "Quick Attack", level = 20, storage = 2000, cd = 5, atkmin = 20, atkmax = 40, range = 8, typeattack = "distance", effecta = 0 , effectd = 0, type = COMBAT_PHYSICALDAMAGE} -- distancia se for de area : ["Bulbasaur"] = {attackname = "Quick Attack", level = 20, storage = 2000, cd = 5, atkmin = 20, atkmax = 40, range = 8, typeattack = "area", arr = arr1, effecta = 0, type = COMBAT_PHYSICALDAMAGE} -- area se for de direção : ["Bulbasaur"] = {attackname = "Quick Attack", level = 20, storage = 2000, cd = 5, atkmin = 20, atkmax = 40, range = 1, typeattack = "direcion", effectdir0 = 0, effectdir1 = 0, effectdir2 = 0, effectdir3 = 0, type = COMBAT_PHYSICALDAMAGE} -- direcão se for de ataque em cima do target : ["Bulbasaur"] = {attackname = "Quick Attack", level = 20, storage = 2000, cd = 5, atkmin = 20, atkmax = 40, range = 1, typeattack = "intarget", effecta = 111, type = COMBAT_PHYSICALDAMAGE} Adicionando + areas para adicionar mais areas só colocar : local arr1 = { {1, 1, 1}, {1, 0, 1}, {1, 1, 1}, } local arr2 = { {1, 1, 1}, {1, 0, 1}, {1, 1, 1}, } sempre aumentando 1 , e depois na tag do ataque pra usar é só configurar no arr = arr1 ou arr = arr2 ... Storage e Cd lembrando que na tabela storage = 2000 cada attack tem que ter uam storage diferente e o cd = 5 é o coldoown pra cada attack, sendo 5 em segundos. Dano para configurar o dano é simples atkmin e atk max... Range range é a distancia ki pode tar pra faser o attaque, sendo 1 para intarget, e o numero de cada sqm do lado para area. attacktype possiveis tipos : "area", "distance", "intarget", "direcion" -- como assima. tá ai, se alguem for capaz de configurar ele, , seja feliz... para adicionar + m1 m2 m3 m4 , só copiar e colar tag : <talkaction words="m1" hide="yes" event="script" value="m1.lua"/> #Créditos Fuiii... Ajudei REP+ 1 pergunta ... como fasso pra editar o effect tpw do flamethower que sera do 55 ao 58 para virar em todos cantos por exemplo svke ... que vc usa flamethower vai pra frente ai vc quer usar de costas ele so vai pra frente ... ate agora não consegui em nenhum script de m1 se poder me ajudar ! Mais O System Fico 10+ Parabens !
  3. cara nem sei viu ... não sou scripter ... sei bem pouco sobre scripts ... mais pelo que fiquei sabendo o PeeWee ta refazendo os m1 m2 ... vai deixar eles completos e ira tirar os bugs e ira ageitar tbm os effects se vc poder esperar que ele termine !
  4. Cara Elas Hitao ... Quando Vc Digita o Attack .. E Almentar Hit E Com o PeeWee So Postei Esse Systema Ai Pq Ta Mais Completa ... E Funfa 100% Tbm !
  5. Bom Cara Vo Postar o M1 Aqui Pra Vc Mais Não Fui Eu Que Fis ... So Que Esta Mais Completinho ... -----------------NORMAL Quick Attack------------------------------ 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) ---------------- Wirlwind ------------------------------- 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) ----------------------------normal Scratch ------------------------- 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) --------------------------- Dragon Claw----------------------------- 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) -------------------------- HeadButt ----------------------------- 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) -------------------------- String Shot ----------------------------- 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) ------------------------- Horn Attack ------------------------------ 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) --------------------------- Bite ------------------------------ 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) -------------------------- Mega Kick -------------------------- local combat9 = createCombatObject() setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat9, COMBAT_PARAM_EFFECT, 116) setCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, -6.3, 0, -5.5, 0) -------------------------- Razor Leaf ----------------------- 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) ------------------------- Bubbles---------------------------- 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) ------------------------ String Shot ------------------------ 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) ------------------------ Horn Attack ----------------------- 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) ------------------------ Super Sonic ----------------------- 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) ----------------------- Sand Attack ----------------------- 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 = { m1 = combat1, spell = "Quick Attack", minLv = 20, distance = 3 } }, ["Ivysaur"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 40, distance = 3 } }, ["Venusaur"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 85, distance = 3 } }, ["Charmander"] = {x = { m1 = combat3, spell = "Scratch", minLv = 20, distance = 3 } }, ["Charmeleon"] = {x = { m1 = combat3, spell = "Scratch", minLv = 40, distance = 3 } }, ["Charizard"] = {x = { m1 = combat4, spell = "Dragon Claw", minLv = 85, distance = 3 } }, ["Squirtle"] = {x = { m1 = combat1, spell = "Headbutt", minLv = 20, distance = 3 } }, ["Wartortle"] = {x = { m1 = combat1, spell = "Headbutt", minLv = 40, distance = 3 } }, ["Blastoise"] = {x = { m1 = combat1, spell = "Headbutt", minLv = 85, distance = 3 } }, ["Caterpie"] = {x = { m1 = combat1, spell = "Headbutt", minLv = 1, distance = 3 } }, ["Metapod"] = {x = { m1 = combat12, spell = "String Shot", minLv = 15, distance = 3 } }, ["Butterfree"] = {x = { m1 = combat12, spell = "String Shot", minLv = 30, distance = 3 } }, ["Weedle"] = {x = { m1 = combat7, spell = "Horn Attack", minLv = 1, distance = 3 } }, ["Kakuna"] = {x = { m1 = combat12, spell = "String Shot", minLv = 15, distance = 3 } }, ["Beedrill"] = {x = { m1 = combat12, spell = "String Shot", minLv = 25, distance = 3 } }, ["Pidgey"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 1, distance = 3 } }, ["Pidgeotto"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 20, distance = 3 } }, ["Pidgeot"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 65, distance = 3 } }, ["Rattata"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 1, distance = 3 } }, ["Raticate"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 25, distance = 3 } }, ["Spearow"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 10, distance = 3 } }, ["Fearow"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 50, distance = 3 } }, ["Ekans"] = {x = { m1 = combat8, spell = "Bite", minLv = 15, distance = 3 } }, ["Arbok"] = {x = { m1 = combat8, spell = "Bite", minLv = 35, distance = 3 } }, ["Pikachu"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 20, distance = 3 } }, ["Raichu"] = {x = { m1 = combat9, spell = "Mega Kick", minLv = 50, distance = 3 } }, ["Sandshrew"] = {x = { m1 = combat15, spell = "Sand Attack", minLv = 20, distance = 3 } }, ["Sandslash"] = {x = { m1 = combat15, spell = "Sand Attack", minLv = 55, distance = 3 } }, ["NidoranFe"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 10, distance = 3 } }, ["Nidorina"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 30, distance = 3 } }, ["Nidoqueen"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 65, distance = 3 } }, ["NidoranMa"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 10, distance = 3 } }, ["Nidorino"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 30, distance = 3 } }, ["Nidoking"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 65, distance = 3 } }, ["Vulpix"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 15, distance = 3 } }, ["Ninetales"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 70, distance = 3 } }, ["Zubat"] = {x = { m1 = combat14, spell = "Super Sonic", minLv = 10, distance = 3 } }, ["Goldbat"] = {x = { m1 = combat14, spell = "Super Sonic", minLv = 30, distance = 3 } }, ["Oddish"] = {x = { m1 = combat1, spell = "Absorb", minLv = 10, distance = 3 } }, ["Gloom"] = {x = { m1 = combat1, spell = "Absorb", minLv = 25, distance = 3 } }, ["Vileplume"] = {x = { m1 = combat1, spell = "Absorb", minLv = 50, distance = 3 } }, ["Paras"] = {x = { m1 = combat3, spell = "Scratch", minLv = 5, distance = 3 } }, ["Parasect"] = {x = { m1 = combat1, spell = "Absorb", minLv = 50, distance = 3 } }, ["Venonat"] = {x = { m1 = combat1, spell = "Absorb", minLv = 20, distance = 3 } }, ["Venomoth"] = {x = { m1 = combat1, spell = "Absorb", minLv = 50, distance = 3 } }, ["Diglett"] = {x = { m1 = combat15, spell = "Sand Attack", minLv = 35, distance = 3 } }, ["Dugtrio"] = {x = { m1 = combat15, spell = "Sand Attack", minLv = 35, distance = 3 } }, ["Meowth"] = {x = { m1 = combat1, spell = "Slash", minLv = 15, distance = 3 } }, ["Persian"] = {x = { m1 = combat1, spell = "Slash", minLv = 30, distance = 3 } }, ["Psyduck"] = {x = { m1 = combat11, spell = "Water Gun", minLv = 20, distance = 3 } }, ["Golduck"] = {x = { m1 = combat11, spell = "Doubleslap", minLv = 20, distance = 3 } }, ["Mankey"] = {x = { m1 = combat3, spell = "Scratch", minLv = 15, distance = 3 } }, ["Primeape"] = {x = { m1 = combat3, spell = "Scratch", minLv = 50, distance = 3 } }, ["Growlithe"] = {x = { m1 = combat1, spell = "Roar", minLv = 130, distance = 3 } }, ["Arcanine"] = {x = { m1 = combat1, spell = "Roar", minLv = 80, distance = 3 } }, ["Poliwag"] = {x = { m1 = combat11, spell = "Doubleslap", minLv = 5, distance = 3 } }, ["Poliwhirl"] = {x = { m1 = combat9, spell = "Mud Shot", minLv = 35, distance = 3 } }, ["Poliwrath"] = {x = { m1 = combat9, spell = "Mud Shot", minLv = 65, distance = 3 } }, ["Abra"] = {x = { m1 = combat16, spell = "Restore", minLv = 20, distance = 3 } }, ["Kadabra"] = {x = { m1 = combat2, spell = "Psybeam", minLv = 35, distance = 3 } }, ["Alakazam"] = {x = { m1 = combat16, spell = "Psybeam", minLv = 65, distance = 3 } }, ["Machop"] = {x = { m1 = combat9, spell = "Triple Punch", minLv = 20, distance = 3 } }, ["Machoke"] = {x = { m1 = combat9, spell = "Triple Punch", minLv = 45, distance = 3 } }, ["Machamp"] = {x = { m1 = combat9, spell = "Triple Punch", minLv = 65, 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 i = 1, #summ do for name, _ in pairs(c) do if getCreatureName(summ[i]):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[i] then return doPlayerSendCancel(cid, "Invalid target.") and doSendMagicEffect(getThingPos(cid), 2) end if getDistanceBetween(getThingPos(summ[i]), getThingPos(getCreatureTarget(cid))) > distance then return doPlayerSendCancel(cid, "Sorry, your pokemon is too far away.") and doSendMagicEffect(getThingPos(cid), 2) end if getPlayerStorageValue(cid, 20000) <= os.time() then doPlayerSetStorageValue(cid, 20000, os.time()+5) doCombat(summ[i], con.m1, numberToVariant(getCreatureTarget(cid))) doCreatureSay(cid, name .. ", " .. con.spell .. ".") end doPlayerSendTextMessage(cid,26,"Tempo para usar M1 denovo: "..(getPlayerStorageValue(cid, 20000)-os.time()).." sec.") doSendMagicEffect(getThingPos(cid), 2) end end end return true end Creditos : Apocarai PeeWee Pessoal Que Criou O Servidor: Pokemon Server Xtibia. Esse M1 Contem Alguns Pokemons A Mais (+) Apenas Copiar Colar ... Testei Quase Todos ... & Funcionou ... REP+ Ser For Possivel ! EU QUERIA SABER SE VOCE JA CONSEGUIU FAZER AS MAGIAS DAR HITS Sim Elas Estão Hitando Sim ... Pelo Menos Todas As Que Testei ... !
  6. Olá, Estou apenas com uma dúvida sobre seu script junto ao poke server, notei que a maioria das magias estão como COMBAT_PHYSICALDAMAGE tentei setar os ataque de fogo assim: COMBAT_FIREDAMAGE, porem não esta dando certo, poderia me dar uma ajudinha? em relação a os elementos dos monsters, também estou com dificuldades para descobrir como alterar, pois no xml do monster não possuí nada que informa que a criatura é de fire, ice, etc, creio que o jeito seria no próprio ataque fazer o que estou tentando fazer, estou correto? ficaria grato se pude-se me ajudar. PeeWee, Gostei do seu script, vai me ajudar muito, porem estou com o problema que mencionei no post anterior, e também notei que os hits não estão saindo, exemplo: com um Bulbasaur eu falo "m1" a magia é soltada perfeitamente sem erros no tfs, porem sem nenhum hit, poderia me ajudar? PeeWee, poderia responder? Não Sou o PeeWee Mais Isso Vc Ta Dizendo Dos Effects ( Gostei do seu script, vai me ajudar muito, porem estou com o problema que mencionei no post anterior, e também notei que os hits não estão saindo, exemplo: com um Bulbasaur eu falo "m1" a magia é soltada perfeitamente sem erros no tfs, porem sem nenhum hit, poderia me ajudar? ) Não Sai O Efeito DA Magia ? ... Se For Isso Fassa Assim ... -----------------NORMAL Quick Attack------------------------------ 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) Ali Aonde Esta Em Vermelho Apenas Mude Para O Efeito Que Queira ... Se For Hit Não Entendo Muito e o COMBAT_FIREDAMAGE ou COMBAT_PHYSICALDAMAGE Pessa Ajuda Para O Apocarai ... ou Quando PeeWee Logar Ele Explica Melhor ! Bom Cara Vo Postar o M1 Aqui Pra Vc Mais Não Fui Eu Que Fis ... So Que Esta Mais Completinho ... -----------------NORMAL Quick Attack------------------------------ 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) ---------------- Wirlwind ------------------------------- 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) ----------------------------normal Scratch ------------------------- 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) --------------------------- Dragon Claw----------------------------- 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) -------------------------- HeadButt ----------------------------- 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) -------------------------- String Shot ----------------------------- 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) ------------------------- Horn Attack ------------------------------ 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) --------------------------- Bite ------------------------------ 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) -------------------------- Mega Kick -------------------------- local combat9 = createCombatObject() setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat9, COMBAT_PARAM_EFFECT, 116) setCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, -6.3, 0, -5.5, 0) -------------------------- Razor Leaf ----------------------- 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) ------------------------- Bubbles---------------------------- 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) ------------------------ String Shot ------------------------ 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) ------------------------ Horn Attack ----------------------- 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) ------------------------ Super Sonic ----------------------- 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) ----------------------- Sand Attack ----------------------- 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 = { m1 = combat1, spell = "Quick Attack", minLv = 20, distance = 3 } }, ["Ivysaur"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 40, distance = 3 } }, ["Venusaur"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 85, distance = 3 } }, ["Charmander"] = {x = { m1 = combat3, spell = "Scratch", minLv = 20, distance = 3 } }, ["Charmeleon"] = {x = { m1 = combat3, spell = "Scratch", minLv = 40, distance = 3 } }, ["Charizard"] = {x = { m1 = combat4, spell = "Dragon Claw", minLv = 85, distance = 3 } }, ["Squirtle"] = {x = { m1 = combat1, spell = "Headbutt", minLv = 20, distance = 3 } }, ["Wartortle"] = {x = { m1 = combat1, spell = "Headbutt", minLv = 40, distance = 3 } }, ["Blastoise"] = {x = { m1 = combat1, spell = "Headbutt", minLv = 85, distance = 3 } }, ["Caterpie"] = {x = { m1 = combat1, spell = "Headbutt", minLv = 1, distance = 3 } }, ["Metapod"] = {x = { m1 = combat12, spell = "String Shot", minLv = 15, distance = 3 } }, ["Butterfree"] = {x = { m1 = combat12, spell = "String Shot", minLv = 30, distance = 3 } }, ["Weedle"] = {x = { m1 = combat7, spell = "Horn Attack", minLv = 1, distance = 3 } }, ["Kakuna"] = {x = { m1 = combat12, spell = "String Shot", minLv = 15, distance = 3 } }, ["Beedrill"] = {x = { m1 = combat12, spell = "String Shot", minLv = 25, distance = 3 } }, ["Pidgey"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 1, distance = 3 } }, ["Pidgeotto"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 20, distance = 3 } }, ["Pidgeot"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 65, distance = 3 } }, ["Rattata"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 1, distance = 3 } }, ["Raticate"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 25, distance = 3 } }, ["Spearow"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 10, distance = 3 } }, ["Fearow"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 50, distance = 3 } }, ["Ekans"] = {x = { m1 = combat8, spell = "Bite", minLv = 15, distance = 3 } }, ["Arbok"] = {x = { m1 = combat8, spell = "Bite", minLv = 35, distance = 3 } }, ["Pikachu"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 20, distance = 3 } }, ["Raichu"] = {x = { m1 = combat9, spell = "Mega Kick", minLv = 50, distance = 3 } }, ["Sandshrew"] = {x = { m1 = combat15, spell = "Sand Attack", minLv = 20, distance = 3 } }, ["Sandslash"] = {x = { m1 = combat15, spell = "Sand Attack", minLv = 55, distance = 3 } }, ["NidoranFe"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 10, distance = 3 } }, ["Nidorina"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 30, distance = 3 } }, ["Nidoqueen"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 65, distance = 3 } }, ["NidoranMa"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 10, distance = 3 } }, ["Nidorino"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 30, distance = 3 } }, ["Nidoking"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 65, distance = 3 } }, ["Vulpix"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 15, distance = 3 } }, ["Ninetales"] = {x = { m1 = combat1, spell = "Quick Attack", minLv = 70, distance = 3 } }, ["Zubat"] = {x = { m1 = combat14, spell = "Super Sonic", minLv = 10, distance = 3 } }, ["Goldbat"] = {x = { m1 = combat14, spell = "Super Sonic", minLv = 30, distance = 3 } }, ["Oddish"] = {x = { m1 = combat1, spell = "Absorb", minLv = 10, distance = 3 } }, ["Gloom"] = {x = { m1 = combat1, spell = "Absorb", minLv = 25, distance = 3 } }, ["Vileplume"] = {x = { m1 = combat1, spell = "Absorb", minLv = 50, distance = 3 } }, ["Paras"] = {x = { m1 = combat3, spell = "Scratch", minLv = 5, distance = 3 } }, ["Parasect"] = {x = { m1 = combat1, spell = "Absorb", minLv = 50, distance = 3 } }, ["Venonat"] = {x = { m1 = combat1, spell = "Absorb", minLv = 20, distance = 3 } }, ["Venomoth"] = {x = { m1 = combat1, spell = "Absorb", minLv = 50, distance = 3 } }, ["Diglett"] = {x = { m1 = combat15, spell = "Sand Attack", minLv = 35, distance = 3 } }, ["Dugtrio"] = {x = { m1 = combat15, spell = "Sand Attack", minLv = 35, distance = 3 } }, ["Meowth"] = {x = { m1 = combat1, spell = "Slash", minLv = 15, distance = 3 } }, ["Persian"] = {x = { m1 = combat1, spell = "Slash", minLv = 30, distance = 3 } }, ["Psyduck"] = {x = { m1 = combat11, spell = "Water Gun", minLv = 20, distance = 3 } }, ["Golduck"] = {x = { m1 = combat11, spell = "Doubleslap", minLv = 20, distance = 3 } }, ["Mankey"] = {x = { m1 = combat3, spell = "Scratch", minLv = 15, distance = 3 } }, ["Primeape"] = {x = { m1 = combat3, spell = "Scratch", minLv = 50, distance = 3 } }, ["Growlithe"] = {x = { m1 = combat1, spell = "Roar", minLv = 130, distance = 3 } }, ["Arcanine"] = {x = { m1 = combat1, spell = "Roar", minLv = 80, distance = 3 } }, ["Poliwag"] = {x = { m1 = combat11, spell = "Doubleslap", minLv = 5, distance = 3 } }, ["Poliwhirl"] = {x = { m1 = combat9, spell = "Mud Shot", minLv = 35, distance = 3 } }, ["Poliwrath"] = {x = { m1 = combat9, spell = "Mud Shot", minLv = 65, distance = 3 } }, ["Abra"] = {x = { m1 = combat16, spell = "Restore", minLv = 20, distance = 3 } }, ["Kadabra"] = {x = { m1 = combat2, spell = "Psybeam", minLv = 35, distance = 3 } }, ["Alakazam"] = {x = { m1 = combat16, spell = "Psybeam", minLv = 65, distance = 3 } }, ["Machop"] = {x = { m1 = combat9, spell = "Triple Punch", minLv = 20, distance = 3 } }, ["Machoke"] = {x = { m1 = combat9, spell = "Triple Punch", minLv = 45, distance = 3 } }, ["Machamp"] = {x = { m1 = combat9, spell = "Triple Punch", minLv = 65, 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 i = 1, #summ do for name, _ in pairs(c) do if getCreatureName(summ[i]):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[i] then return doPlayerSendCancel(cid, "Invalid target.") and doSendMagicEffect(getThingPos(cid), 2) end if getDistanceBetween(getThingPos(summ[i]), getThingPos(getCreatureTarget(cid))) > distance then return doPlayerSendCancel(cid, "Sorry, your pokemon is too far away.") and doSendMagicEffect(getThingPos(cid), 2) end if getPlayerStorageValue(cid, 20000) <= os.time() then doPlayerSetStorageValue(cid, 20000, os.time()+5) doCombat(summ[i], con.m1, numberToVariant(getCreatureTarget(cid))) doCreatureSay(cid, name .. ", " .. con.spell .. ".") end doPlayerSendTextMessage(cid,26,"Tempo para usar M1 denovo: "..(getPlayerStorageValue(cid, 20000)-os.time()).." sec.") doSendMagicEffect(getThingPos(cid), 2) end end end return true end Creditos : Apocarai PeeWee Pessoal Que Criou O Servidor: Pokemon Server Xtibia. Esse M1 Contem Alguns Pokemons A Mais (+) Apenas Copiar Colar ... Testei Quase Todos ... & Funcionou ... REP+ Ser For Possivel !
  7. Vc Feis Eles Para 8.54 ??? ... Se Tiver Como Fassa ... Seria Uma Boa ... Eu Não Li O Topico ... Meu Pc Ta Um Lixo ... Então REP+ So Que Se Não For 8.54 Coloque Sera De Grande Ajuda ... E Se Souber Fassa System Turn ( t1,t2,t3,t4 ) Que Muda Os Lados Do Pokemon & Tbm System Lvl Pokemon Axo Que Não é Muito Dificil Obrigado ... ! Desculpe Se Falei Algo Errad !
  8. Bom ... Peew Vc Poderia Nos Ajudar Como Modificar As Effects Por Exemplo ... Flametower ... Precisa Ser Para Os 4 Cantos Não Apenas Para Frente ... Nos Ajude Ai Por Favor !
  • Quem Está Navegando   0 membros estão online

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