Ir para conteúdo

fagundes14

Campones
  • Total de itens

    96
  • Registro em

  • Última visita

Posts postados por fagundes14

  1. Va Em Data/Lib/pokemon moves.LUA

    E Substitua Sua Spell Mud Shot Que Esta Junta Com Mud Slap Por

    elseif spell == "Mud Shot" then
    
    local ret = {}
    ret.id = target
    ret.cd = 9
    ret.eff = 34
    ret.check = getPlayerStorageValue(target, conds["Miss"])
    ret.spell = spell
    ret.cond = "Miss"
    doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target), 6)
    doSendMagicEffect(getThingPosWithDebug(target), 116)
    addEvent(doMoveDano2, 00, cid, target, GROUNDDAMAGE, -min, -max, ret, spell)
    
    elseif spell == "Mud Slap" then
    
    local ret = {}
    ret.id = target
    ret.cd = 9
    ret.eff = 34
    ret.check = getPlayerStorageValue(target, conds["Miss"])
    ret.spell = spell
    ret.cond = "Miss" and "Stun"
    doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target), 6)
    doSendMagicEffect(getThingPosWithDebug(target), 116)
    addEvent(doMoveDano2, 00, cid, target, GROUNDDAMAGE, -min, -max, ret, spell)
    

    E É Isso =D

    Qualquer Coisa Posta Ae

     

    ABRASS

  2. To Sim :/

     

    EDITED

    Eu Coloquei No Cliente Normal E Também Permaneceu Preto :X

    Outra Coisa

    Queria Por Para A Magia Absorb

    elseif spell == "Absorb" then
    local Life = getCreatureHealth(target)
    doAreaCombatHealth(cid, DRAINDAMAGE, getThingPosWithDebug(target), 0, -min, -max, 7)
    local NewLife = Life - getCreatureHealth(target)
    doSendMagicEffect(getThingPosWithDebug(cid), 14)
    if NewLife >= 1 then
    doCreatureAddHealth(cid, NewLife)
    	   doSendAnimatedText(getThingPosWithDebug(cid), "+"..NewLife.."", 35)
    end 

    Mostra O Dano Com O - (Sinal De Menos)

    Ja Que Ela Mostra O Absorvido Com + Ae O Dano Ficaria Com -

    Tentei Mais Nao Funciono Muito Bem :X

     

    ABRASS

  3. Então Galera To Com Uma Duvida Cruel AKI

    A Tabela Abaixo Representa Os Tipos De Danos E Suas Respectivas Cores

    local combats = {

    [PSYCHICDAMAGE] = {cor = COLOR_PSYCHIC},

    [GRASSDAMAGE] = {cor = COLOR_GRASS},

    [POISONEDDAMAGE] = {cor = COLOR_GRASS},

    [FIREDAMAGE] = {cor = COLOR_FIRE2},

    [bURNEDDAMAGE] = {cor = COLOR_BURN},

    [WATERDAMAGE] = {cor = COLOR_WATER},

    [iCEDAMAGE] = {cor = COLOR_ICE},

    [NORMALDAMAGE] = {cor = COLOR_NORMAL},

    [FLYDAMAGE] = {cor = COLOR_FLYING},

    [GHOSTDAMAGE] = {cor = COLOR_GHOST},

    [GROUNDDAMAGE] = {cor = COLOR_GROUND},

    [ELECTRICDAMAGE] = {cor = COLOR_ELECTRIC},

    [ROCKDAMAGE] = {cor = COLOR_ROCK},

    [bUGDAMAGE] = {cor = COLOR_BUG},

    [FIGHTDAMAGE] = {cor = COLOR_FIGHTING},

    [DRAGONDAMAGE] = {cor = COLOR_DRAGON},

    [POISONDAMAGE] = {cor = COLOR_POISON},

    [DARKDAMAGE] = {cor = COLOR_DARK},

    [sTEELDAMAGE] = {cor = COLOR_STEEL},

    [MIRACLEDAMAGE] = {cor = COLOR_PSYCHIC},

    [DARK_EYEDAMAGE] = {cor = COLOR_GHOST},

    [sEED_BOMBDAMAGE] = {cor = COLOR_GRASS},

    [sACREDDAMAGE] = {cor = COLOR_FIRE2},

    }

    E A Seguinte Representa Os Danos Recebidos De PHYSICALDAMAGE E Sua Cor

    local races = {

    [4] = {cor = COLOR_FIRE2},

    [6] = {cor = COLOR_WATER},

    [7] = {cor = COLOR_NORMAL},

    [8] = {cor = COLOR_FIRE2},

    [9] = {cor = COLOR_FIGHTING},

    [10] = {cor = COLOR_FLYING},

    [11] = {cor = COLOR_GRASS},

    [12] = {cor = COLOR_POISON},

    [13] = {cor = COLOR_ELECTRIC},

    [14] = {cor = COLOR_GROUND},

    [15] = {cor = COLOR_PSYCHIC},

    [16] = {cor = COLOR_ROCK},

    [17] = {cor = COLOR_ICE},

    [18] = {cor = COLOR_BUG},

    [19] = {cor = COLOR_DRAGON},

    [20] = {cor = COLOR_GHOST},

    [21] = {cor = COLOR_STEEL},

    [22] = {cor = COLOR_DARK},

    [1] = {cor = 180},

    [2] = {cor = 180},

    [3] = {cor = 180},

    [5] = {cor = 180},

    }

    [4] <- Representa Uma Certa Especie E {cor = FIRE2}, Representa A Cor Do Dano 

    Ae Pra Ficar Uma Logica E Uma Jogabilidade Melhor Eu Tentei Por Para

    Que Alguns Danos Como NORMALDAMAGE, FLYDAMAGE, GROUNDDAMAGE, FIGHTDAMAGE..

    Recebesse A Cor De Seus Respectivos Tipos (PHYSICALDAMAGE Que O Attack Físico)

    Ae Tentei Por

    local COLOR = races[race].cor

    Ficando EX

    local combats = {
    [PSYCHICDAMAGE] = {cor = COLOR_PSYCHIC},
    ...
    [NORMALDAMAGE] = {cor = COLOR},
    [FLYDAMAGE] = {cor = COLOR},
    [GROUNDDAMAGE] = {cor = COLOR},
    [FIGHTDAMAGE] = {cor = COLOR},
    ... }
    

    Mais Nao Funfo Nao :X Se Alguém Der Uma Luz Ae Fico Grato

    E Creio Que Vai Ser Útil Para Muita Gente Também =D

     

    ABRASS

  4. @OFF

    Tipo Sei La Editei As Potion Bonitinha E Taus Igual SvKE Acho Descolado =D

    Quem Quiser Ta Ae

    Va Em Data\Actions\Scripts E Copie Qualquer Arquivo .LUA Delete Tudo Dentro Dele

    E Renomeie Para

    Small Potion E Dentro Ponha

    function doHealOverTime(cid, div, turn, effect) --alterado v1.6 peguem o script todo!!

    if not isCreature(cid) then return true end

    if turn <= 0 or (getCreatureHealth(cid) == getCreatureMaxHealth(cid)) or getPlayerStorageValue(cid, 173) <= 0 then

    setPlayerStorageValue(cid, 173, -1)

    return true

    end

    local d = div / 10000

    local amount = math.floor(getCreatureMaxHealth(cid) * d)

    doCreatureAddHealth(cid, amount)

    if math.floor(turn/10) == turn/10 then

    doSendMagicEffect(getThingPos(cid), effect)

    end

    addEvent(doHealOverTime, 100, cid, div, turn - 1, effect)

    end

    local potions = {

    [12347] = {effect = 55, div = 30}, --super potion

    }

    function onUse(cid, item, frompos, item2, topos)

    local pid = getThingFromPosWithProtect(topos)

    if not isCreature(pid) or not isSummon(pid) then

    return doPlayerSendCancel(cid, "You can only use potions on pokemons!")

    end

    if getCreatureMaster(pid) ~= cid then

    return doPlayerSendCancel(cid, "You can only use potions on your own Pokemons!")

    end

    if getCreatureHealth(pid) == getCreatureMaxHealth(pid) then

    return doPlayerSendCancel(cid, "This pokemon is already at full health.")

    end

    if getPlayerStorageValue(pid, 173) >= 1 then

    return doPlayerSendCancel(cid, "This pokemon is already under effects of potions.")

    end

    if getPlayerStorageValue(cid, 52481) >= 1 then

    return doPlayerSendCancel(cid, "You can't do that while a duel.")

    end

     

    doSendAnimatedText(getThingPosWithDebug(pid), "SMALL POTION", 210)

    doSendMagicEffect(getThingPos(pid), 14)

    setPlayerStorageValue(pid, 173, 1)

    doRemoveItem(item.uid, 1)

    local a = potions[item.itemid]

    doHealOverTime(pid, a.div, 100, a.effect)

    return true

    end

    Faça O Mesmo Com Os Outros

     

    Great Potion

    function doHealOverTime(cid, div, turn, effect) --alterado v1.6 peguem o script todo!!

    if not isCreature(cid) then return true end

    if turn <= 0 or (getCreatureHealth(cid) == getCreatureMaxHealth(cid)) or getPlayerStorageValue(cid, 173) <= 0 then

    setPlayerStorageValue(cid, 173, -1)

    return true

    end

    local d = div / 10000

    local amount = math.floor(getCreatureMaxHealth(cid) * d)

    doCreatureAddHealth(cid, amount)

    if math.floor(turn/10) == turn/10 then

    doSendMagicEffect(getThingPos(cid), effect)

    end

    addEvent(doHealOverTime, 100, cid, div, turn - 1, effect)

    end

    local potions = {

    [12348] = {effect = 13, div = 60}, --great potion

    }

    function onUse(cid, item, frompos, item2, topos)

    local pid = getThingFromPosWithProtect(topos)

    if not isCreature(pid) or not isSummon(pid) then

    return doPlayerSendCancel(cid, "You can only use potions on pokemons!")

    end

    if getCreatureMaster(pid) ~= cid then

    return doPlayerSendCancel(cid, "You can only use potions on your own Pokemons!")

    end

    if getCreatureHealth(pid) == getCreatureMaxHealth(pid) then

    return doPlayerSendCancel(cid, "This pokemon is already at full health.")

    end

    if getPlayerStorageValue(pid, 173) >= 1 then

    return doPlayerSendCancel(cid, "This pokemon is already under effects of potions.")

    end

    if getPlayerStorageValue(cid, 52481) >= 1 then

    return doPlayerSendCancel(cid, "You can't do that while a duel.")

    end

     

    doSendAnimatedText(getThingPosWithDebug(pid), "GREAT POTION", 198)

    doSendMagicEffect(getThingPos(pid), 14)

    setPlayerStorageValue(pid, 173, 1)

    doRemoveItem(item.uid, 1)

    local a = potions[item.itemid]

    doHealOverTime(pid, a.div, 100, a.effect)

    return true

    end

    Ultra Potion

    function doHealOverTime(cid, div, turn, effect) --alterado v1.6 peguem o script todo!!

    if not isCreature(cid) then return true end

    if turn <= 0 or (getCreatureHealth(cid) == getCreatureMaxHealth(cid)) or getPlayerStorageValue(cid, 173) <= 0 then

    setPlayerStorageValue(cid, 173, -1)

    return true

    end

    local d = div / 10000

    local amount = math.floor(getCreatureMaxHealth(cid) * d)

    doCreatureAddHealth(cid, amount)

    if math.floor(turn/10) == turn/10 then

    doSendMagicEffect(getThingPos(cid), effect)

    end

    addEvent(doHealOverTime, 100, cid, div, turn - 1, effect)

    end

    local potions = {

    [12346] = {effect = 55, div = 80}, --ultra potion

    }

    function onUse(cid, item, frompos, item2, topos)

    local pid = getThingFromPosWithProtect(topos)

    if not isCreature(pid) or not isSummon(pid) then

    return doPlayerSendCancel(cid, "You can only use potions on pokemons!")

    end

    if getCreatureMaster(pid) ~= cid then

    return doPlayerSendCancel(cid, "You can only use potions on your own Pokemons!")

    end

    --if getCreatureHealth(pid) == getCreatureMaxHealth(pid) then

    --return doPlayerSendCancel(cid, "This pokemon is already at full health.")

    --end

    --if getPlayerStorageValue(pid, 173) >= 1 then

    --return doPlayerSendCancel(cid, "This pokemon is already under effects of potions.")

    --end

    if getPlayerStorageValue(cid, 52481) >= 1 then

    return doPlayerSendCancel(cid, "You can't do that while a duel.")

    end

     

    doSendAnimatedText(getThingPosWithDebug(pid), "ULTRA POTION", 144)

    doSendMagicEffect(getThingPos(pid), 14)

    setPlayerStorageValue(pid, 173, 1)

    doRemoveItem(item.uid, 1)

    local a = potions[item.itemid]

    doHealOverTime(pid, a.div, 100, a.effect)

    return true

    end

    Hyper Potion

    function doHealOverTime(cid, div, turn, effect) --alterado v1.6 peguem o script todo!!

    if not isCreature(cid) then return true end

    if turn <= 0 or (getCreatureHealth(cid) == getCreatureMaxHealth(cid)) or getPlayerStorageValue(cid, 173) <= 0 then

    setPlayerStorageValue(cid, 173, -1)

    return true

    end

    local d = div / 10000

    local amount = math.floor(getCreatureMaxHealth(cid) * d)

    doCreatureAddHealth(cid, amount)

    if math.floor(turn/10) == turn/10 then

    doSendMagicEffect(getThingPos(cid), effect)

    end

    addEvent(doHealOverTime, 100, cid, div, turn - 1, effect)

    end

    local potions = {

    [12345] = {effect = 55, div = 90}, --hyper potion

    }

    function onUse(cid, item, frompos, item2, topos)

    local pid = getThingFromPosWithProtect(topos)

    if not isCreature(pid) or not isSummon(pid) then

    return doPlayerSendCancel(cid, "You can only use potions on pokemons!")

    end

    if getCreatureMaster(pid) ~= cid then

    return doPlayerSendCancel(cid, "You can only use potions on your own Pokemons!")

    end

    if getCreatureHealth(pid) == getCreatureMaxHealth(pid) then

    return doPlayerSendCancel(cid, "This pokemon is already at full health.")

    end

    if getPlayerStorageValue(pid, 173) >= 1 then

    return doPlayerSendCancel(cid, "This pokemon is already under effects of potions.")

    end

    if getPlayerStorageValue(cid, 52481) >= 1 then

    return doPlayerSendCancel(cid, "You can't do that while a duel.")

    end

     

    doSendAnimatedText(getThingPosWithDebug(pid), "HYPER POTION", 83)

    doSendMagicEffect(getThingPos(pid), 14)

    setPlayerStorageValue(pid, 173, 1)

    doRemoveItem(item.uid, 1)

    local a = potions[item.itemid]

    doHealOverTime(pid, a.div, 100, a.effect)

    return true

    end

    Depois Va Em Data\Actions E Abra O Actions.XLM

    Procure Por

     <action itemid="12343;12345-12348" event="script" value="potion.lua" allowfaruse="1" blockwalls="1"/>

    E Substitua Por

    <action itemid="12347" event="script" value="Small Potion.lua" allowfaruse="1" blockwalls="1"/>
    <action itemid="12348" event="script" value="Great Potion.lua" allowfaruse="1" blockwalls="1"/>
    <action itemid="12346" event="script" value="Ultra Potion.lua" allowfaruse="1" blockwalls="1"/>
    <action itemid="12345" event="script" value="Hyper Potion.lua" allowfaruse="1" blockwalls="1"/>

    Depois Va Em Data\Items E Abra O Itens.XML

    E Procure Por

    <item id="12347" article="a" name="super potion" plural="super potions">
    <attribute key="description" value="This potion restores 30% of a pokemon's life." />
    </item>

    E Mude O Nome De Super Potion Para Small Potion

     

     

    ABRASS

  5. @Slicer

    Nao Sei Se E BUG Mais Sei La, E Meio BIZARRO

    Ta Dando Pro Ditto Transformar Nos NPC's De Batalha (Rocket/Police)

     

    Uma Duvida

    Como Eu Faço Para Tirar A Palavra Shiny Quando Do Go/Back, Move!

    16:02 MaTThew [114]: You need to rest, Shiny Venusaur!

    16:04 MaTThew [114]: Let's fight, Shiny Marowak!

    16:04 MaTThew [114]: Shiny Marowak, move!

     

    Para Ficar SO

     

    16:02 MaTThew [114]: You need to rest, Venusaur!

    16:04 MaTThew [114]: Let's fight, Marowak!

    16:04 MaTThew [114]: Marowak, move!

  6. Problema 60% é de tibia mais lembrando que parte disto é itens como chão, parede, telhado, grama, nature, etc...

    Então não é bem certo 60%.

    E mesmo assim 62.100 sprites para mim é muito pouco onde eu quero colocar todos os 646pokes + 646 shiny = +- 64.500 sprites!!!!

    O @Maguito me falou que se tiver sources dá para aumentar o espaço. Que se puder peço que faça um tutorial.

    Pois eu tenho todos os pokémons só me falta espaço!

     

    Vc Esta Tentando Add As Sprites Recortadas Ou Ja Esta Em IDC?

     

    ABRASS

  7. @Fagundes14

    na verdadeeee a skill muddy water e venom motion foram feitas de um outro jeitinhu...

    n sei qual foi o sentido de vc ter refeito elas mas... se quiser q isso de certo achu eu q tu vai ter q ir em lib/newStatusSyst.lua e procurar por isso..

    elseif spell and (spell == "Muddy Water" or spell == "Venom Motion") then
    local arr = {
      [1] = 0, [2] = 0, [3] = 0, [4] = 200, [5] = 200, [6] = 200, [7] = 400, [8] = 400, [9] = 400, [10] = 600, [11] = 600,
      [12] = 600, [13] = 800, [14] = 800, [15] = 800
      }
    
      local time = {0, 200, 400, 600, 800}
    
      addEvent(sendEffWithProtect, arr[n], cid, pos[n], eff)
      addEvent(doMoveDano2, arr[n], cid, pid, element, min, max, ret, spell)

    e entao retirar essa parte toda de la... achu q soh isso deve arrumar o problema.. e n esqueça de fazer esse ms esquema ae para a venom motion...

     

    edit:

    outra coisa... coloca assim

    for T = 0, 4 do

    pq se n vai da erro no console quando chegar no 5 e ele tentar executar isso..

    Area[T+1]

     

    Te Fala happy.png

    Eu Modifiquei Porque Naã Sabia Se O Muddy Pegava Na Areá Toda De Uma Vez Ou Era Como Hydro Cannon..

    Que Pode Pegar Mais De Uma Vez Se O Pokemon Mover :/

    E Eu Estol Tentando Fazer Algumas Magias Como A SvKe he.gif

    Ae Então As Funções E Tals EX:

     

    doMoveInArea2
    doMoveInAreaMulti
    

    Estão No newStatusSyst.LUA, Assim Como E Possível Modificá-las La?

    Porque Parece Que La Ja Tem Pre Funções De Algumas Magias

    ABRASS

  8. @OFF

     

    EDITEI A Spell Muddy Water Mais Ae Ta Dando O Erro wacko.png

    [22/09/2012 02:15:45] [Error - TalkAction Interface]
    [22/09/2012 02:15:45] In a timer event called from:
    [22/09/2012 02:15:45] data/talkactions/scripts/move1.lua:onSay
    [22/09/2012 02:15:45] Description:
    [22/09/2012 02:15:45] data/lib/032-position.lua:177: bad argument #1 to 'getn' (table expected, got nil)
    [22/09/2012 02:15:45] stack traceback:
    [22/09/2012 02:15:45]  [C]: in function 'getn'
    [22/09/2012 02:15:45]  data/lib/032-position.lua:177: in function 'getPosfromArea'
    [22/09/2012 02:15:45]  data/lib/newStatusSyst.lua:808: in function <data/lib/newStatusSyst.lua:803>

    Alguem Pode Me Ajudar?

     

    O Script Da Spell E Esse

    local ret = {}

    ret.id = 0

    ret.cd = 9

    ret.eff = 34

    ret.check = 0

    ret.spell = spell

    ret.cond = "Miss"

    local Area = {MWater, MWater00, MWater01, MWater02, MWater03}

    for T = 0, 5 do

    doChangeSpeed(cid, -getCreatureSpeed(cid))

    addEvent(doMoveInArea2, T*250, cid, 116, Area[T+1], WATERDAMAGE, min, max, spell, ret)

    doRegainSpeed(cid)

    end

    Area Da Spell

    MWater = {

    {1, 1, 1},

    {0, 3, 0},

    {0, 0, 0},

    }

    MWater00 = {

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

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

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

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

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

    }

    MWater01 = {

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

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

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

    }

    MWater02 = {

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

    }

    MWater03 = {

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

    }

     

    ABRASS

  9. Em duel não vai interferir nada, em hunt vai ficar bom e não vai ser overpower.Se não fosse isso shiny hypno hoje seria um lixo.

     

    E teria como me passar por pm o melee configurado com o lvl do player ? Assim eu edito no configuration com valores altos ai não da nada. E também se possível o negócio de aparecer o looktype do poke em vez do corpse quando ele toma hypnosis.

     

     

    Edti: sobre o script acima não funciono, eu ranco 130 do magikarp e healo 130 ainda ;s

     

    Se Puder Me Passar Tambem Fico GRATO =D

     

    ABRASS

  10. Fagundes para monstrar a vocação e simples:

    function onLook(cid, thing, position, lookDistance)
    if isPlayer(thing.uid) then
    local str = " "..getPlayerName(cid).." Vocation  "..getPlayerVocationName(cid).." Level "..getPlayerLevel(cid).." "
    doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, str)
    end
    return true
    end
    

    Onde Eu Ponho Isso?

     

    ABRASS

  11. @All

     

    Se Alguem Poder Me Ajudar.

    O Script De Look Do Meu Ot Estao Nas Sources E Ele Ta Bugado

    Ae Não Sei Como Fazer Um Script Que Quando Da LooK Aparece A Sua Vocaçao

    Ae Seria o Seguinte Tal Numero De Vocaçao Apareceria Tal Nome =D

    E E Isso

     

    ABRASSS

  • Quem Está Navegando   0 membros estão online

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