Ir para conteúdo
Banner com Efeitos

ManoTobira

Membro
  • Registro em

  • Última visita

Solutions

  1. ManoTobira's post in (Resolvido)[bug] npc não aceita novo din din was marked as the answer   
    procura no items.xml o item q vc qer q eles aceitem e depois coloque isso
    <attribute key="worth" value="10000" />
    no lugar de 10000 vc coloca o valor q vc qer q vale o dinheiro
  2. ManoTobira's post in (Resolvido)Sistema Edo Tensei was marked as the answer   
    man eu ja fiz e postei esse sistema
    http://www.tibiaking.com/forum/topic/39622-action-edo-tensei/#entry225490
  3. ManoTobira's post in (Resolvido)Ajuda Clone Fala Mesma Coisa Que o Player was marked as the answer   
    eu consegui faze com que todos falem mais ainda é por comando ve ai se isso serve     function onSay(cid,words,param) local summons = getCreatureSummons(cid) if #summons == 0 then return doPlayerSendTextMessage(cid, 26, "Voce precisa ter algum clone.") end doPlayerSay(cid, param) for _, summon in pairs(summons) do doCreatureSay(summon,param) end return true end
  4. ManoTobira's post in (Resolvido)[Pedido]Edo Tensei was marked as the answer   
    primeiro crie os monstros de edo tensei
     
    em actions copie um arquivo e renomeie para edocatch
     
    apague tudo oq tem nele e cole isso
     
    local mtrs = {

    ["[Edo Tensei] Madara] = {hp = 1000, maxhp = 1000, corpse = 2936, chance = 100},
    ["[Edo Tensei] Sasuke] = {hp = 1000, maxhp = 1000, corpse = 2806, chance = 100},
    ["[Edo Tensei] Deidara] = {hp = 1000, maxhp = 1000, corpse = 2880, chance = 100},
    }

    function onUse(cid, item, frompos, item2, topos)
    for pet_name, v in pairs(mtrs) do
    if item2.itemid == v.corpse then
    if math.random(0,100) <= v.chance then
    doPlayerSendTextMessage(cid, 27, "".. pet_name .. " foi selado nesse pergaminho.")
    doRemoveItem(item2.uid, 1)
    doRemoveItem(item.uid, 1)
    local itemcatch = doPlayerAddItem(cid, 11390, 1)
    doItemSetAttribute(itemcatch, "namepet", pet_name)
    doItemSetAttribute(itemcatch, "description", "Neste pergaminho foi selado um ".. pet_name ..".")
    doItemSetAttribute(itemcatch, "lifepet", v.hp)
    doItemSetAttribute(itemcatch, "maxlifepet", v.maxhp)
    else
    doPlayerSendTextMessage(cid, 27, "Falhou.")
    end
    end
    end
    return true
    end
     
         Configuração
    azul=nome do monster
    verde=hp que o monster vai nasce
    vermelho=maximo de hp que o monster tem
    azul fraco=id do monster morto
    rosa=chance de selar o corpo
     
    agora copie outro arquivo e renomeie para edogo
     
    apague tudo oq tem dentro e cole isso
     
     
    function onUse(cid, item, frompos, item2, topos)

    local health = tonumber(getItemAttribute(item.uid, "lifepet"))
    local mhp = tonumber(getItemAttribute(item.uid, "maxlifepet"))

    if health <= 0 then
    return doPlayerSendCancel(cid, "Esse Edo Tensei esta morto.")
    end

    local pet_name = getItemAttribute(item.uid, "namepet")

    if item.itemid == 11390 then
    if not getTilePzInfo(getPlayerPosition(cid)) then
    if #getCreatureSummons(cid) < 4 then
    doTransformItem(item.uid, 11390)
            doRemoveItem(item.uid, 1)
    local summon = doSummonCreature(pet_name, getThingPos(cid))
    doConvinceCreature(cid, summon)
    setCreatureMaxHealth(summon, mhp)
    doCreatureAddHealth(summon, mhp)
    doCreatureAddHealth(summon, health - mhp)
    doSendMagicEffect(getCreaturePosition(summon), 2)
    doCreatureSay(cid, "EDO TENSEI!", 19)
    else
    doPlayerSendCancel(cid, "Você já usou um Edo Tensei.")
    end
    else
    doPlayerSendCancel(cid, "Você não pode estar em Protection Zone para usar um Edo Tensei.")
    end

    elseif item.itemid == 11390 then
    local hp, maxhp = getCreatureHealth(getCreatureSummons(cid)[4]), getCreatureMaxHealth(getCreatureSummons(cid)[4])
    if #getCreatureSummons(cid) >= 4 then
    doSendMagicEffect(getCreaturePosition(getCreatureSummons(cid)[1]), 2)
    doRemoveCreature(getCreatureSummons(cid)[4])
    doTransformItem(item.uid, 7632)
    doItemSetAttribute(item.uid, "lifepet", hp)
    doItemSetAttribute(item.uid, "maxlifepet", maxhp)
    doCreatureSay(cid, "Volta, " .. pet_name .. ".", TALKTYPE_SAY)
    end
    end

    return true
    end
    agora abra actions.xml e adicione
     
    <!-- Edo Tensei --> <action itemid="11389" event="script" value="edocatch.lua"/> <action itemid="11390" event="script" value="edogo.lua"/>   azul=id do item que captura o edo tensei vermelho=id do item que solta o edo tensei

Informação Importante

Confirmação de Termo