Ir para conteúdo

RobsonSilva

Campones
  • Total de itens

    50
  • Registro em

  • Última visita

  • Dias Ganhos

    2

Posts postados por RobsonSilva

  1. Em 12/02/2018 at 20:48, ricardoberg disse:

    Up

    Spoiler

    local NPCBattle = {
    ["Brock"] = {artig = "He is", cidbat = "Pewter"},
    ["Misty"] = {artig = "She is", cidbat = "Cerulean"},
    ["Blaine"] = {artig = "He is", cidbat = "Cinnabar"},
    ["Sabrina"] = {artig = "She is", cidbat = "Saffron"},            --alterado aki \/ TUDO
    ["Kira"] = {artig = "She is", cidbat = "Viridian"},
    ["Koga"] = {artig = "He is", cidbat = "Fushcia"},
    ["Erika"] = {artig = "She is", cidbat = "Celadon"},
    ["Surge"] = {artig = "He is", cidbat = "Vermilion"},
    }

    local shinys = {
    ["Shiny Abra"] = "Dark Abra",
    ["Shiny Onix"] = "Crystal Onix",
    ["Shiny Gyarados"] = "Red Gyarados",
    ["Shiny Charizard"] = "Elder Charizard",
    ["Shiny Venusaur"] = "Ancient Venusaur",
    ["Shiny Blastoise"] = "Ancient Blastoise",
    ["Shiny Farfetch'd"] = "Elite Farfetch'd",
    ["Shiny Hitmonlee"] = "Elite Hitmonlee",
    ["Shiny Himonchan"] = "Elite Hitmonchan",
    ["Shiny Snorlax"] = "Big Snorlax",
    }

    -- tabela adicionado ao configuration só procura por price = ..--

    function onLook(cid, thing, position, lookDistance)
                                                                                                                      
    local str = {}
    local iname = getItemInfo(thing.itemid)
                                                                                              
    if not isCreature(thing.uid) then
       if not iname or not iname.name then return true end
       if isPokeball(thing.itemid) and getItemAttribute(thing.uid, "poke") then --alterado aki       
          local owner = getItemAttribute(thing.uid, "firstpoke")
          local pokename = getItemAttribute(thing.uid, "poke")   
          if shinys[pokename] then
             pokename = shinys[pokename]
          end
              
          local ballName = iname.name
          if getItemAttribute(thing.uid, 'ball') then
             ballName = getItemAttribute(thing.uid, 'ball').. " ball"
          end
          table.insert(str, "You see "..iname.article.." "..ballName..".")  
          if getItemAttribute(thing.uid, "unique") then                    
             table.insert(str, " It's an unique item.")   
          end
          table.insert(str, "\nContains "..getArticle(pokename).." "..pokename)
              
          if getItemAttribute(thing.uid, "nick") then
             table.insert(str, " ("..getItemAttribute(thing.uid, "nick")..")")
          end
          local boost = getItemAttribute(thing.uid, "boost") or 0
          if boost > 0 then
             table.insert(str, " +"..boost)
          end
          if prices[pokename] then
             table.insert(str, ". $Price: ".. prices[pokename].."")
          else
             table.insert(str, ". Price: unsellable")
          end
          table.insert(str, ".")
              
          doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, table.concat(str))
          return false         
       elseif string.find(iname.name, "fainted") or string.find(iname.name, "defeated") then     
          local name = iname.name
                name = string.gsub(name, "fainted ", "")
                name = string.gsub(name, "defeated ", "")
                name = doCorrectPokemonName(name)
          if shinys[name] then
             name = shinys[name]
          end
          name = "fainted "..name:lower()
               
          table.insert(str, "You see "..iname.article.." "..name..". ")     
          if isContainer(thing.uid) then
             table.insert(str, "(Vol: "..getContainerCap(thing.uid)..")")
          end
          table.insert(str, "\n")
          if getItemAttribute(thing.uid, "gender") == SEX_MALE then
             table.insert(str, "It is male.")
          elseif getItemAttribute(thing.uid, "gender") == SEX_FEMALE then
             table.insert(str, "It is female.")
          else
             table.insert(str, "It is genderless.")
          end
          doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, table.concat(str))
          return false
       elseif isContainer(thing.uid) then    --containers
          if iname.name == "dead human" and getItemAttribute(thing.uid, "pName") then
             table.insert(str, "You see a dead human (Vol:"..getContainerCap(thing.uid).."). ")
             table.insert(str, "You recognize ".. getItemAttribute(thing.uid, "pName")..". ".. getItemAttribute(thing.uid, "article").." was killed by a ")
             table.insert(str, getItemAttribute(thing.uid, "attacker")..".")
          else   
             table.insert(str, "You see "..iname.article.." "..iname.name..". (Vol:"..getContainerCap(thing.uid)..").")
          end
              
          local price = prices[doCorrectString(iname.name)]
          if price then
             local finalPrice = thing.type > 1 and thing.type * price or price
             table.insert(str, " Price: $".. finalPrice ..".")
          end
              
          if getPlayerGroupId(cid) >= 4 and getPlayerGroupId(cid) <= 6 then
             table.insert(str, "\nItemID: ["..thing.itemid.."]")     
             local pos = getThingPos(thing.uid)
             table.insert(str, "\nPosition: [X: "..pos.x.."][Y: "..pos.y.."][Z: "..pos.z.."]")  
          end
          doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, table.concat(str))
          return false 
       else   
          local p = getThingPos(thing.uid)
          table.insert(str, "You see ")
          if thing.type > 1 then
             table.insert(str, thing.type.." "..iname.plural..".")
          else
             table.insert(str, iname.article.." "..iname.name..".")
          end
          if getItemAttribute(thing.uid, "unique") then
             table.insert(str, " It's an unique item.")
          end
          local price = prices[doCorrectString(iname.name)]
          if price then
             local finalPrice = thing.type > 1 and thing.type * price or price
             table.insert(str, " Price: $".. finalPrice ..".")
          end
          table.insert(str, "\n"..iname.description)
          if getPlayerGroupId(cid) >= 4 and getPlayerGroupId(cid) <= 6 then
             table.insert(str, "\nItemID: ["..thing.itemid.."]")
             table.insert(str, "\nPosition: ["..p.x.."]["..p.y.."]["..p.z.."]")
          end
          sendMsgToPlayer(cid, MESSAGE_INFO_DESCR, table.concat(str))
          return true
       end
    end

    if not isPlayer(thing.uid) and not isMonster(thing.uid) then    --outros npcs
       table.insert(str, "You see "..getCreatureName(thing.uid)..".")
       doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, table.concat(str))
       return false
    end

    if isPlayer(thing.uid) then --player
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, getPlayerDesc(cid, thing, false)) 
        return true
    end

    if getCreatureName(thing.uid) == "Evolution" then return false end

    if not isSummon(thing.uid) then   --monstros
       
       local pokename = getCreatureName(thing.uid)
       if shinys[pokename] then
              pokename = shinys[pokename]
       end
       table.insert(str, "You see a wild "..string.lower(pokename)..".\n")
       table.insert(str, "Hit Points: "..getCreatureHealth(thing.uid).." / "..getCreatureMaxHealth(thing.uid)..".\n")
       doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, table.concat(str))
       return false

    elseif isSummon(thing.uid) and not isPlayer(thing.uid) then  --summons

       local pokename = getCreatureName(thing.uid)
       if shinys[pokename] then
              pokename = shinys[pokename]
       end
               
       local boostlevel = getItemAttribute(getPlayerSlotItem(getCreatureMaster(thing.uid), 8).uid, "boost") or 0
       if getCreatureMaster(thing.uid) == cid then
              local myball = getPlayerSlotItem(cid, 8).uid
              table.insert(str, "You see your "..string.lower(pokename)..".")
              if boostlevel > 0 then
                     table.insert(str, "\nBoost level: +"..boostlevel..".")
              end
              table.insert(str, "\nHit points: "..getCreatureHealth(thing.uid).."/"..getCreatureMaxHealth(thing.uid)..".")
              doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, table.concat(str))
       else
              doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You see a "..string.lower(pokename)..".\nIt belongs to "..getCreatureName(getCreatureMaster(thing.uid))..".")
       end
       return false
    end
    return true
    end

     troca o seu Look.lua por esse e tenta da look no player!

  2. Como muitos sabem, um tempo atrás eu tava trabalhando no PokémonXuniversion, mas infelizmente ocorreram alguns problemas que impediram que eu seguisse com o projeto, cansei de pedi ajuda alguns amigos pra da uma força e venho trazer pra vocês meu projeto PxU e parando com Otserv, dessa vez para sempre, vlw há todos pela há força que tive no pxu 

     

    4koxe0U.png

     

      INFORMAÇÕES

    *Tournament System não 100%

    *Open Source

    *Base Lenda/Mega

    *Sem LvL System

    *OLD Cliet

    *foi arrumado o sexo "M" não é mais uma ball.

    *Source Compilando 100%

    *XP por RATES.

    *Box de 1 até 14/ SpBox 1 até 4

    *SHOP System igual Pokepro 100%

    *arrumado todos atalho de quest.

    *alguns pokemon foi balanceado para evitar curar outros pokemon.

     

    4koxe0U.png

     

    ERROS

    *Alguns debugs acontecem em alguns locais como por exemplo nas quest, as vez sim e as vez não

    *Alguns erros as vezes se manifestam na distro como por exemplo o exp2.lua e o move1.lua, até então não descobri o que causa isso

    Até então os erros que descobri não são tão graves, infelizmente não me lembro de todos

     

    4koxe0U.png

     

    DOWNLOADS

    Servidor (WINDOWS): Clique aqui para baixar.

    OLD Client: Clique aqui para baixar.

    Source: Clique aqui para baixar.

    4koxe0U.png

    CRÉDITOS

    *Jair Kevick

    o resto não lembro, qual quer coisa chama pv pra eu colocar seu credito.

    4koxe0U.png

    SCANS

    Servidor: Clique aqui para analisar.

    OLD Client: Clique aqui para analisar.

    Source: Clique aqui para analisar.

     

     

     

    19989303_1037707613031341_4080940200240836258_n.jpg

    19665232_1921971528023916_1617234749302369515_n.png

    20031636_1926820024205733_3884210378089424835_n.png

    19396947_1915534952000907_3937226590113071290_n.jpg

    19732191_1033172386818197_1723096046459582846_n.jpg

  3. Em 18/03/2016 at 15:43, CaioSilva99 disse:
    Está dando crash quando eu sumono o npc 

     

    Amigo eu peço desculpas pelo meu comentário acima,eu fui burro d+ a ponto de não verificar a "roupa" do npc.

     

    Então no meu aqui eu configurei o script com o rme aberto.

    O que acontece?

    Eu vou para area de espera...

    Fico lá...

    E nada acontece poderia me ajudar?

    todos que usa esse script tem esse problema '-

  4. meu globalevent/script/torneio ele tá function onTimer() e as tag "time" tem algum problema? 

    desculpa ae pela as pergunta, pq eu quero muito arrumar esse torneio, so conseguir arrumar uma vez e foi no dash v6

  5. --- Lib

    startHour1 = "21:50:00", --horario do aviso?--
    endHour1 = "22:01:00",--horario que começa?--

     

    --- globalevent.xml

    <globalevent name="TournamentStart1" time="22:01" event="script" value="torneio.lua"/>

     

    --- globalevent/msgtorneio.lua

    ["21:50"] = {nome = "O Torneio vai começar em 10 minutos, fale com o NPC Nike no CP de sua cidade, vai custar 500 Dollar's para participar!"},
    ["21:55"] = {nome = "Faltam 5 minutos para fechar as inscriçoes do torneio!"},
    ["21:59"] = {nome = "As inscriçoes do Torneio fecharam!"},

     

    ficando assim? 

    obs: apenas para test.

  6. aqui ele não ta puxando o player para area de combate, faz tempo que eu tento arrumar isso e não consigo, fiz até uma area de combate igual da arena de espera pra ver se o script ia ler até agr nada.

  7.  

    Galera, tou querendo um script para meu servidor quando der horário X apareça um teleport lugar X e mandar uma mensagem para todos verem que vai começar o evento.

     

     

    ex: Zombie event foi aberto, portal fechará em 2 minutos.

     

     

    Informaçoes:

     

     

    Posiçao>  X

     

     

    Teleport> abre horário X e fecha depois de 2 minuto.

     

     

    Mensagem antes do teleport> Zombie event foi aberto, portal fechará em 2 minutos.

     

     

    Mensagem quando fechar o teleport> Zombi Event Começou !

     

     

    Obs: Gostaria que o evento acontecesse todos os dias, com horário X 

     

     

    Ex: 08:00 12:00 17:00 22:00

     

     

    REP+++

     

     

  • Quem Está Navegando   0 membros estão online

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