Ir para conteúdo

Old tibians

Membro
  • Registro em

  • Última visita

Tudo que Old tibians postou

  1. Já resolvi amigo, mais vlw mesmo assim por tentar ajudar ?
  2. Vou tentar colocar pra tfs1x. o movie é preguiçoso kkkk Edit1: Se eu conseguir vou deixar aqui neste mesmo tópico á versão
  3. .Qual servidor ou website você utiliza como base? Serve 8.6/The OTX Server Version: (2.6) Qual o motivo deste tópico? Eu estava tentando arrumar um sistema de evento semelhante aos mapa baiak por ai, aquele que aparece a mensagem em cima da posição configurada falando quando será o próximo evento a seguir, efim tava tudo ocorrendo bem porém ao executar no servidor apareceu varios erros sobre o script ao tentar chamar a função global 'HourToNumber', Vou deixar algumas imagens abaixo de exemplo para ajudar vocês a entender e poder facilitar como pra você que está tentado entender e pramin por está me ajudando. Está surgindo algum erro? Se sim coloque-o aqui. Tenho sim esse aqui é o código, logo depois eu vou deixar uma imagem para vocês entender oque eu queria fazer. Você tem o código disponível? Se tiver publique-o aqui: local EventsListalist = { {time = "01:00", name = "Snowball Event"}, {time = "02:00", name = "DesertWar Event"}, {time = "03:00", name = "Capture The Flag"}, {time = "04:00", name = "FireStorm Event"}, {time = "09:00", name = "Defend The Tower"}, {time = "10:00", name = "Snowball Event"}, {time = "11:00", name = "DesertWar Event"}, {time = "12:00", name = "Capture The Flag"}, {time = "13:00", name = "FireStorm Event"}, {time = "15:00", name = "Battlefield Event"}, {time = "16:00", name = "Defend The Tower"}, {time = "17:00", name = "Snowball Event"}, {time = "18:00", name = "DesertWar Event",}, {time = "19:00", name = "Capture The Flag",}, {time = "20:00", name = "FireStorm Event"}, {time = "21:00", name = "Real Castle"}, {time = "22:00", name = "Battlefield Event"}, {time = "23:00", name = "Defend The Tower"} } local position = {x = 129, y = 58, z = 7} function onThink(interval, lastExecution) local people = getPlayersOnline() if #people == 0 then return true end local Count = 0 for _, t in ipairs(EventsListalist) do local eventTime = hourToNumber(t.time) local realTime = hourToNumber(os.date("%H:%M:%S")) if eventTime >= realTime then doPlayerSay(people[1], "Próximo evento ás {"..t.time.."h} "..t.name..", faltam "..timeString(eventTime - realTime)..".", TALKTYPE_MONSTER_SAY, false, 0, position) return true end Count = Count + 1 end return true end Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. Essa é uma imagem que eu peguei de exemplo de como seria esse script, se alguem poder ajudar vou ficar muito grato, só falta tirar esse erro do oThink para o script funcionar.. Rep++ Rep++ ? Quem ajudar vou contribuir por 4 dias dando REP REP só por ter me ajudado, pois estou a muito tempo tentando resolver esse erro.
  4. já cosegui sozinho amigo, foi so falta de atenção da minha parte mesmo rs, mais você ganhou um Rep por ter tentado ajudar.
  5. Old tibians postou uma resposta no tópico em Suporte & Pedidos
    Você é foda mano, ótimo trabalho só progresso tudo que é novo para a plataforma é bom
  6. .Qual servidor ou website você utiliza como base? Serve 8.6/The OTX Server Version: (2.6) Qual o motivo deste tópico? Preciso de ajudar para resolver um erro que pareceu em minha distro sobre o script fraglook, o erro acontece quando simplesmente o player da look em si mesmo. +REP REP + REP Está surgindo algum erro? Se sim coloque-o aqui. este é o codigo: Você tem o código disponível? Se tiver publique-o aqui: local function getPlayerResets(cid) local resets = getPlayerStorageValue(cid, 500) return resets < 0 and 0 or resets end function getPlayerFrags(cid) local time = os.time() local times = {today = (time - 86400), week = (time - (7 * 86400))} local contents, result = {day = {}, week = {}, month = {}}, db.getResult("SELECT `pd`.`date`, `pd`.`level`, `p`.`name` FROM `player_killers` pk LEFT JOIN `killers` k ON `pk`.`kill_id` = `k`.`id` LEFT JOIN `player_deaths` pd ON `k`.`death_id` = `pd`.`id` LEFT JOIN `players` p ON `pd`.`player_id` = `p`.`id` WHERE `pk`.`player_id` = " .. getPlayerGUID(cid) .. " AND `k`.`unjustified` = 1 AND `pd`.`date` >= " .. (time - (30 * 86400)) .. " ORDER BY `pd`.`date` DESC") if(result:getID() ~= -1) then repeat local content = {date = result:getDataInt("date")} if(content.date > times.today) then table.insert(contents.day, content) elseif(content.date > times.week) then table.insert(contents.week, content) else table.insert(contents.month, content) end until not result:next() result:free() end local size = { day = table.maxn(contents.day), week = table.maxn(contents.week), month = table.maxn(contents.month) } return size.day + size.week + size.month end function onLogin(cid) registerCreatureEvent(cid, "fraglook") return true end function onLook(cid, thing, position, lookDistance) if isPlayer(thing.uid) and thing.uid ~= cid then doPlayerSetSpecialDescription(thing.uid,'[Frags: '..getPlayerFrags(thing.uid)..']\n[Reborns: '..getPlayerResets(thing.uid)..']') return true elseif thing.uid == cid then doPlayerSetSpecialDescription(cid,'[Frags: '..getPlayerFrags(cid)..']\n[Reborns: '..getPlayerResets(cid)..']') local string = 'You see yourself.' if getPlayerFlagValue(cid, PLAYERFLAG_SHOWGROUPINSTEADOFVOCATION) then string = string..' You are '.. getPlayerGroupName(cid) ..'.' elseif getPlayerVocation(cid) ~= 0 then string = string..' You are '.. getPlayerVocationName(cid) ..'.' else string = string..' You have no vocation.' end string = string..getPlayerSpecialDescription(cid)..'' if getPlayerNameByGUID(getPlayerPartner(cid), false, false) ~= nil then string = string..' You are '.. (getPlayerSex(cid) == 0 and 'wife' or 'husband') ..' of '.. getPlayerNameByGUID(getPlayerPartner(cid)) ..'.' end if getPlayerGuildId(cid) > 0 then string = string..' You are ' .. (getPlayerGuildRank(cid) == '' and 'a member' or getPlayerGuildRank(cid)) ..' of the '.. getPlayerGuildName(cid) string = getPlayerGuildNick(cid) ~= '' and string..' ('.. getPlayerGuildNick(cid) ..').' or string..'.' end if getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEECREATUREDETAILS) then string = string..'nHealth: ['.. getCreatureHealth(cid) ..' / '.. getCreatureMaxHealth(cid) ..'], Mana: ['.. getCreatureMana(cid) ..' / '.. getCreatureMaxMana(cid) ..'].' string = string..'nIP: '.. doConvertIntegerToIp(getPlayerIp(cid)) ..'.' end if getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEEPOSITION) then string = string..'nPosition: [X:'.. position.x..'] [Y:'.. position.y..'] [Z:'.. position.z..'].' end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, string) return false end return true end Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. +REP REP + REP +REP REP + REP +REP REP + REP PARA QUEM AJUDAR!
  7. o meu ta dando um erro, alguem sabe como resolver ? [Error - Action Interface] [17/9/2020 10:21:10] In a timer event called from: [17/9/2020 10:21:10] data/actions/scripts/cassino.lua:onUse [17/9/2020 10:21:10] Description: [17/9/2020 10:21:10] (luaDoCreateItem) Tile not found aah e também as frutas não aparece na pos que eu coloquei pra aparecer, se alguem poder ajudar vou da 3 REP Todo dia entro no perfil e dou, preciso muito desse sistema. Vlw pela atenção galera

Informação Importante

Confirmação de Termo