Ir para conteúdo

Fernando Costa

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Gostei
    Fernando Costa recebeu reputação de padreesss em [Link Quebrado]Pokémon Dash v6 open source   
    pode me ajudar pelo TeamViewer ?
  2. Gostei
    Fernando Costa deu reputação a Deadpool em Item Editor OTB 3.16.70-8.54   
    Item Editor
    O item editor acima tem suporte para clientes extendidos.
  3. Gostei
    Fernando Costa deu reputação a xWhiteWolf em Duvida Duplicate Itens   
    as vezes ele ta definindo que itens 4190-4195 são assim e ai vc define depois que o item 4192 é de outro jeito.. Ele vai dar duplicate de qlqer forma mesmo no ctrl f tendo apenas um 4192. Fica esperto nisso
  4. Gostei
    Fernando Costa deu reputação a xWhiteWolf em Duvida Duplicate Itens   
    sim, dá erro.. se tem dois itens com mesmo id ele só vai aceitar uma configuração pro item, então de qlqer forma vc só vai ter um desses itens. Ou vc passa o outro pra outro id ou só remove um dos itens.
  5. Gostei
    Fernando Costa deu reputação a L3K0T em Script Area staff   
    function onStepIn(cid, item, position, fromPosition)
    if isMonster(cid) then
    doTeleportThing(cid, fromPosition, true)
    doSendMagicEffect(getThingPos(cid), 2)
    return true
    end

    if getPlayerGroupId(cid) == 1 then
    doTeleportThing(cid, fromPosition, true)
    doPlayerSendTextMessage(cid, 25, "ops você não é da staff!.")
    doSendMagicEffect(getThingPos(cid), 2)
    return false
    end
    doPlayerSendTextMessage(cid, 25, "Bem-vindo(a)!.")
    doSendMagicEffect(getThingPos(cid), 12)
    return true
    end
     
    Muda isso \/
    <movevent event="StepIn" uniqueid="3003" script="piso staff.lua"/>
    pra isso
    <movevent type="StepIn" actionid="56830" event="script" value="piso staff.lua"/>
     
     
    coloca actionid 56830,no piso pelo mapa novamente!
     
    resultado

  6. Gostei
    Fernando Costa deu reputação a lenardo88 em Pedido NPC Nurse joy que cura todos pokemons   
    blz xD
  7. Gostei
    Fernando Costa deu reputação a lenardo88 em Pedido NPC Nurse joy que cura todos pokemons   
    crie dentro da pasta npc crie um chamado nurse.xml e coloque dentro:
     
    agora crie um arquivo chamado heal.lua dentro de npc/script e coloque isso:
     
  8. Gostei
    Fernando Costa recebeu reputação de Victoria em [Servidor Do Xy]   
    eu tenho so que se vc kiser pv mas vc tem q me dar uma recompeça
  9. Gostei
    Fernando Costa deu reputação a Daniel augusto silva em Ajuda npc   
    eu resolvi por mim 
    mais brigado pela ajuda
  10. Gostei
    Fernando Costa recebeu reputação de Daniel augusto silva em Ajuda npc   
    pelo que vi deicha esse mesmo 
    Torneio.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <npc name="Nick" script="torneio.lua" walkinterval="999000" floorchange="0">
    <health now="150" max="150"/>
    <look type="1806" head="20" body="100" legs="50" feet="99" corpse="111"/>]
    <parameters>
    <parameter key="message_greet" value="Ola |PLAYERNAME|. Sou o NIKE, Encarregado pelo Torneio diario caso queira entrar diga: {torneio}."/>
            </parameters>
    </npc>
     
     
    agr no caso substitua seu  Torneio.lua por esse pegue ele todo \/\/\/
     
    local keywordHandler = KeywordHandler:new()
    local npcHandler = NpcHandler:new(keywordHandler)
    NpcSystem.parseParameters(npcHandler)
    local talkState = {}
    function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
    function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
    function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
    function onThink() npcHandler:onThink() end
    function creatureSayCallback(cid, type, msg)
    if(not npcHandler:isFocused(cid)) then
    return false
    end
    local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid
    if msgcontains(msg, 'torneio') or msgcontains(msg, 'enter') then
    if getPlayerItemCount(cid, torneio.revivePoke) >= 1 then
    selfSay('You can not enter the tournament with {revives}, please throw them out.', cid)
    return true
    end
    selfSay('You want to participate in the tournament by '..torneio.price..' gps / dollars?', cid)
    talkState[talkUser] = 2

    elseif talkState[talkUser] == 2 then
    if msgcontains(msg, 'yes') or msgcontains(msg, 'sim') then
    if os.date("%X") < torneio.startHour or os.date("%X") > torneio.endHour then
    selfSay('Registration for the tournament finished, come back later.', cid)
    return true
    end
    if doPlayerRemoveMoney(cid, torneio.price) then
    doTeleportThing(cid, torneio.waitPlace)
    doPlayerSendTextMessage(cid, 21, "Welcome, this is the waiting room, you wait here while the tournament does not start. Start time: {"..torneio.endHour.."}.")
    else
    selfSay('You do not have enough money ('..torneio.price..').', cid)
    end
    else
    selfSay('Sure you do not want to participate? Okay, see you next time!', cid)
    talkState[talkUser] = 0
    end
    end
    end
    npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
    npcHandler:addModule(FocusModule:new())
  11. Gostei
    Fernando Costa recebeu reputação de Daniel augusto silva em Ajuda npc   
    subistitua ali em npc para esse
    e da rep+ se der
     
    <?xml version="1.0" encoding="UTF-8"?>
    <npc name="Nick" script="torneio.lua" walkinterval="2000" floorchange="0">
    <health now="150" max="150"/>
    <look type=" 1806 " head="20" body="100" legs="50" feet="99" corpse="2212"/>]
    <parameters>
    <parameter key="message_greet" value="Hello |PLAYERNAME|. If you want to participate in the tournament say: {torneio} or {enter}."/>
        </parameters>
    </npc>
  12. Gostei
    Fernando Costa deu reputação a lenardo88 em poke inicial   
    cara vo fazer o script pra vc .-. quando eu terminar posto aqui 
  13. Gostei
    Fernando Costa deu reputação a Viny 13 em Sistema Torneio 4x ao dia SEM SITE + NPC   
    NICEEEE
  14. Gostei
    Fernando Costa deu reputação a Viny 13 em SISTEMA DE ADDON COMPLETO   
    Bom gente esses dias o @Ceetros  postou um sistema de Addon, que funciona no fly, ride e surf

    Só vou repostar aqui pra vocês, pois ele só postou no outro forum
     
    Vá em actions/scripts e crie um arquivo chamado addon.lua.
    Adicione isso lá:
    function onUse(cid, item, fromPosition, itemEx, toPosition) local addons = { [ID DO ITEM] = {pokemon= "NOME DO POKEMON" , looktype = LOOKTYPE NORMAL, fly = FLY, SE NÃO TIVER PONHA 0, ride = RIDE, SE NÃO TIVER PONHA 0, surf = SE NÃO TIVER SURF PONHA 0}, } if #getCreatureSummons(cid) > 0 then doPlayerSendCancel(cid, "Please back your pokemon.") return false end local addon = addons[item.itemid].looktype local fly = addons[item.itemid].fly local ride = addons[item.itemid].ride local surf = addons[item.itemid].surf local pb = getPlayerSlotItem(cid, 8).uid local pk = addons[item.itemid].pokemon if getItemAttribute(pb,"poke") ~= pk then doPlayerSendCancel(cid, "Sorry, you can't use this addon on this poke.") return false end if getItemAttribute(pb,"addon") >= 0 then doRemoveItem(item.uid, 1) doPlayerSendTextMessage(cid, 27, "Congratulations! Now your pokemon will use the addon.") doSetItemAttribute(pb,"addon",addon) doSetItemAttribute(pb,"addonfly",fly) doSetItemAttribute(pb,"addonride",ride) doSetItemAttribute(pb,"addonsurf",surf) return true end return true end
     
    Em actions.xml adicione:
    <action itemid="ID;ID;ID" event="script" value="addon.lua"/> Agora em actions/goback.lua antes de:
    else doPlayerSendCancel(cid, "This pokemon is fainted.") end return true end Adicione:
    local pk = getCreatureSummons(cid)[1] local pb = getPlayerSlotItem(cid, 8).uid local look = getItemAttribute(pb,"addon") if not look then doSetItemAttribute(pb,"addon",0) end if look > 0 then doSetCreatureOutfit(pk, {lookType = look}, -1) end Em lib/order.lua encontre:
    local pokemon = flys[getPokemonName(getCreatureSummons(cid)[1])] doPlayerSendTextMessage(cid, 27, "Type \"up\" or \"h1\" to fly higher and \"down\" or \"h2\" to fly lower.") doChangeSpeed(cid, -getCreatureSpeed(cid)) local speed = 500 + PlayerSpeed/5 + getSpeed(sid) * 6 * speedRate doChangeSpeed(cid, speed) setPlayerStorageValue(cid, 54844, speed) doSetCreatureOutfit(cid, {lookType = pokemon[1] + 351}, -1) doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "hp", getCreatureHealth(getCreatureSummons(cid)[1]) / getCreatureMaxHealth(getCreatureSummons(cid)[1])) doRemoveCreature(getCreatureSummons(cid)[1]) setPlayerStorageValue(cid, 17000, 1) Abaixo adicione:
    local addonfly= getPlayerSlotItem(cid, 8).uid local addofly = getItemAttribute(addonfly,"addonfly") if not addofly then doSetItemAttribute(addonfly,"addonfly",0) end if addofly > 0 then doSetCreatureOutfit(cid, {lookType = addofly}, -1) end Continuando em order.lua Encontre:
    local pokemon = rides[getPokemonName(getCreatureSummons(cid)[1])] doChangeSpeed(cid, -getCreatureSpeed(cid)) local speed = 150 + PlayerSpeed + getSpeed(sid) * 5 * speedRate doChangeSpeed(cid, speed) setPlayerStorageValue(cid, 54844, speed) doSetCreatureOutfit(cid, {lookType = pokemon[1] + 351}, -1) doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "hp", getCreatureHealth(getCreatureSummons(cid)[1]) / getCreatureMaxHealth(getCreatureSummons(cid)[1])) doRemoveCreature(getCreatureSummons(cid)[1]) setPlayerStorageValue(cid, 17001, 1) Em baixo adicione:
    local addonride = getPlayerSlotItem(cid, 8).uid local addoride = getItemAttribute(addonride,"addonride") if not addoride then doSetItemAttribute(addonride,"addonride",0) end if addoride > 0 then doSetCreatureOutfit(cid, {lookType = addoride}, -1) end Agora em movements/surf.lua encontre:
    doSetCreatureOutfit(cid, {lookType = surfs[getPokemonName(getCreatureSummons(cid)[1])].lookType + 351}, -1) doCreatureSay(cid, ""..getPokeName(getCreatureSummons(cid)[1])..", lets surf!", 1) doChangeSpeed(cid, -(getCreatureSpeed(cid)))
    E troque por:
    local addonsurf = getPlayerSlotItem(cid, 8).uid local addosurf = getItemAttribute(addonsurf,"addonsurf") if not addosurf then doSetItemAttribute(addonsurf,"addonsurf",0) doSetCreatureOutfit(cid, {lookType = surfs[getPokemonName(getCreatureSummons(cid)[1])].lookType + 351}, -1) end if addosurf > 0 then doSetCreatureOutfit(cid, {lookType = addosurf}, -1) end doCreatureSay(cid, ""..getPokeName(getCreatureSummons(cid)[1])..", lets surf!", 1) doChangeSpeed(cid, -(getCreatureSpeed(cid))) No mesmo arquivo ache:
    doSummonMonster(cid, pokemon) Logo abaixo adicione:
    local pk = getCreatureSummons(cid)[1] local balla = getPlayerSlotItem(cid, 8).uid local balladdon = getItemAttribute(balla,"addon") if not balladdon then doSetItemAttribute(balla,"addon",0) end if balladdon > 0 then doSetCreatureOutfit(pk, {lookType = balladdon}, -1) end Por ultimo em actions/order.lua encontre:
    doPlayerSay(cid, ""..getPokeName(getCreatureSummons(cid)[1])..", let me get down!", 1) doRegainSpeed(cid) --alterado v1.7 doRemoveCondition(cid, CONDITION_OUTFIT) Abaixo adicione:
    local pkjg = getCreatureSummons(cid)[1]                local pkza = getPlayerSlotItem(cid, 8).uid                 local pkxd = getItemAttribute(pkjg,"addon")                 if not pkxd then                                 doSetItemAttribute(pkza,"addon",0)                   elseif pkxd > 0 then                                 doSetCreatureOutfit(pkjg, {lookType = pkxd}, -1) end Caso não tenha addon  box vá data/actions/scripts e adicione isso:
     
    Explicando:
    local addons = {12803,12804,12805,12806,12807,2135,2136,2137,2138,2139,2142}   ( Onde tá os numeros é o id da sua addon )
    onde tá 12802 ( é o id da addon box )
    Onde tá (1, 11 ) é a quantidade de items que tem na box,sempre que for adicionar uma aumente  o  numero   pois pode falhar.

    EM DATA/ACTIONS/ACTIONS.XML

    ADICIONE ESTA TAG :
        <action itemid="ID DA SUA ADDON BOX" event="script" value="addon box.lua"/>

    Pra finalizar Vá em creaturescripts/scripts/login.lua Troque tudo por:

     
     
  15. Gostei
    http://www.tibiaking.com/forum/topic/67445-concertando-o-sexo-do-seu-pok%C3%A9mon/?do=findComment&comment=387190
  16. Gostei
    Fernando Costa deu reputação a xWhiteWolf em Arrumar Exausted do Correr player usa muinto e fica lento   
    exhaustion="0"

    coloca 1000

Informação Importante

Confirmação de Termo