Ir para conteúdo

Poccnn

Herói
  • Total de itens

    1418
  • Registro em

  • Última visita

  • Dias Ganhos

    48

Poccnn venceu a última vez em Abril 21 2021

Poccnn had the most liked content!

Sobre Poccnn

Perfil

  • Gênero
    Masculino

Informações

  • Forma que conheci o xTibia
    Otservs
  • Sou
    Scripter

Últimos Visitantes

9546 visualizações

Poccnn's Achievements

Atualização de Status Simples

Veja todas atualizações de Poccnn

  1. Amigo, caso não possa me ajudar com aquele problema da tabela...

     

    Você poderia me ajudar nisso:

     



    1º - Vá em data/lib/some functions.lua
    2º - Procura por:

    function getPlayerDesc(cid, thing, TV)
    if (not isCreature(cid) or not isCreature(thing)) and not TV then return "" end

    local pos = getThingPos(thing)
    local ocup = youAre[getPlayerGroupId(thing)]
    local rank = (getPlayerStorageValue(thing, 86228) <= 0) and "a Pokemon Trainer" or lookClans[getPlayerStorageValue(thing, 86228)][getPlayerStorageValue(thing, 862281)]
    local name = thing == cid and "yourself" or getCreatureName(thing)    
    local art = thing == cid and "You are" or (getPlayerSex(thing) == 0 and "She is" or "He is")
      
    local str = {}
    table.insert(str, "You see "..name..". "..art.." ")
    if youAre[getPlayerGroupId(thing)] then
       table.insert(str, (ocup).." and "..rank.." from ".. getTownName(getPlayerTown(thing))..".")      
    else
       table.insert(str, (rank).." from ".. getTownName(getPlayerTown(thing))..".")
    end
    if getPlayerGuildId(thing) > 0 then
       table.insert(str, " "..art.." "..getPlayerGuildRank(thing).." from the "..getPlayerGuildName(thing)..".")
    end
    if TV then
       table.insert(str, " "..art.." watching TV.")
    end
    table.insert(str, ((isPlayer(cid) and youAre[getPlayerGroupId(cid)]) and "\nPosition: [X: "..pos.x.."][Y: "..pos.y.."][Z: "..pos.z.."]" or ""))

    return table.concat(str)
    end

    3º - Substitua o conteúdo acima por esse que está abaixo:

    function getPlayerDesc(cid, thing, TV)
        if (not isCreature(cid) or not isCreature(thing)) and not TV then return "" end
        
        local pos = getThingPos(thing)
        local ocup = youAre[getPlayerGroupId(thing)]
        local rank = (getPlayerStorageValue(thing, 86228) <= 0) and "a Pokemon Trainer" or lookClans[getPlayerStorageValue(thing, 86228)][getPlayerStorageValue(thing, 862281)]
        local name = thing == cid and "yourself" or getCreatureName(thing) 
        local art = thing == cid and "You are" or (getPlayerSex(thing) == 0 and "She is" or "He is")
        
        local str = {}
        table.insert(str, "You see "..name..". "..art.." ")
        if youAre[getPlayerGroupId(thing)] then
            table.insert(str, (ocup).." and "..rank.." from ".. getTownName(getPlayerTown(thing))..".") 
        else
            table.insert(str, (rank).." from ".. getTownName(getPlayerTown(thing))..".")
        end
        
        if hasProfession(thing) then -- Profession System
            str = str.."\n"..getPlayerSex(thing) == 0 and "She" or "He" .." is a "..getProfessionName(thing).."."
        end
        
        if getPlayerGuildId(thing) > 0 then
            table.insert(str, " "..art.." "..getPlayerGuildRank(thing).." from the "..getPlayerGuildName(thing)..".")
        end
        if TV then
            table.insert(str, " "..art.." watching TV.")
        end
        table.insert(str, ((isPlayer(cid) and youAre[getPlayerGroupId(cid)]) and "\nPosition: [X: "..pos.x.."][Y: "..pos.y.."][Z: "..pos.z.."]" or ""))
        
        return table.concat(str)
    end

     

    Eu preciso fazer essa instalação na minha base dxp mas quando eu coloco da alguns erros que eu não consigo dar look em mim mesmo... olha o meu somefunctions no caso né:



    function getPlayerDesc(cid, thing, TV)
    if (not isCreature(cid) or not isCreature(thing)) and not TV then return "" end

    if isRecording(cid) and isWatchingTv(thing) then
        thing = cid
    end

    local pos = getThingPos(thing)
    local ocup = youAre[getPlayerGroupId(thing)]
    local rank = (getPlayerStorageValue(thing, 86228) <= 0) and "a Pokemon Trainer" or lookClans[getPlayerStorageValue(thing, 86228)][getPlayerStorageValue(thing, 862281)]
    local name = thing == cid and "yourself" or getCreatureName(thing)     
    local art = thing == cid and "You are" or (getPlayerSex(thing) == 0 and "She is" or "He is")

    local str = {}  
     if isWatchingTv(cid) and isWatchingTv(thing) and (getThingPos(cid).x == getThingPos(thing).x and getThingPos(cid).y == getThingPos(thing).y and getThingPos(cid).z == getThingPos(thing).z) then  
        local watchedPlayer = getPlayerStorageValue(cid, storages.playerIsTvWhosWatching)
        table.insert(str, "You see " .. watchedPlayer .. ".")
        return table.concat(str) 
    end
       

    table.insert(str, "You see "..name..". "..art.." ")
    local townName = getTownName(getPlayerTown(thing))
        if not townName then
          townName = "Server para Testes"
        end
    if youAre[getPlayerGroupId(thing)] then
       table.insert(str, (ocup).." and "..rank.." from ".. townName..".")       
    else
       table.insert(str, (rank).." from ".. townName..".")
    end
    if getPlayerGuildId(thing) > 0 then
       table.insert(str, " "..art.." "..getPlayerGuildRank(thing).." from the "..getPlayerGuildName(thing)..".")
    end
    if isWatchingTv(thing) then
       table.insert(str, " "..art.." watching TV.")
    end

     

    Essa parte ai é a que ele manda eu substituir mas quando eu substituo o look não funciona :/...

     

    Poderia me ajudar?

     

    Grato desde já ^^

     

     

    1. Tingasgo

      Tingasgo

      Ei só mais uma coisa o sistema de profissão não sei pq os minérios viram arvore as arvores viram baús sempre que alguem faz a mesma ação ao mesmo tempo buga... vc sabe como posso resolver?

    2. Poccnn

      Poccnn

      Sinceramente, pokelixo é o sistema mais bugado que existe; desde as sources até os scripts lua que criam para ele.

      Desculpe, mas em matéria de pokelixo dificilmente consigo resolver, pois, na maioria das vezes é melhor refazer tudo do que tentar remendar um erro que muito das vezes gera mais erros ainda. Refazer todo o sistema custa muito tempo e dedicação além de um vasto conhecimento do sistema e de lógica do programa. Ou seja, é demasiado trabalhoso fazer isso.

  • Quem Está Navegando   0 membros estão online

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