Ir para conteúdo

Líderes

Conteúdo Popular

Exibindo conteúdo com a maior reputação em 03/29/22 em todas áreas

  1. [TFS 0.4 - 0.3.6] Skin System [8.60]

    Sipidripisipin reagiu a RevallTOP por uma resposta no tópico

    1 ponto
    E aí, Galera, esse é meu primeiro tópico aqui. Como está no título, estou mostrando um Script que eu editei de mudar a Skin(Outfit) ao dar use em algum item, Bom, vamos lá: 1º - Esse Código vocês vão no diretório: \data\actions\scripts e CRIEM um arquivo chamado skin.lua e em seguida cole este código dentro. 2º - Em seguida vocês adicionam essa Tag no arquivo do diretório: \data\actions\actions.xml IMPORTANTE!!! Os IDS que estão entre [ e ] no primeiro código são os ids dos itens que serão usados! No segundo código no qual os ids estão: 11256;11207;11144;9019 são os IDS dos itens do primeiro código! Algumas imagens abaixo:
  2. (Resolvido)Erro Em Globalevents

    Thony D. Serv reagiu a FeeTads por uma resposta no tópico

    1 ponto
    hmm, nesse quesito faz sentido, mas ai você poderia colocar 20s e botar doBroadcastMessage(tab_val.text, MESSAGE_STATUS_CONSOLE_RED) ai vai aparecer no chat Default do player, mas do jeito q vc explicou também funciona kkkkk, boa mano, só vai agora
  3. (Resolvido)Erro Em Globalevents

    FeeTads reagiu a Thony D. Serv por uma resposta no tópico

    1 ponto
    Ah eu sabia que tava errado aliás kakakaka foi pq eu mexi na data só " " e esqueci de mudar na explicação kakakaka FUNCIONOUUUUU MT OBRIGADOOOO VOCÊ É INCRIVEL MANN então, tem actions no meu servidor que usam direto imagina um mana potion infinito com um effect grande, quando o cara fica clicando nesse mana potion direto a msg ela some em 1s ent eu ponho para repetir por isso, e tbm pela grande quantidade de pessoas de bot que as vezes vão olhar o char e como a msg foi enviada apenas 1 vez não viu que estava acontecendo o evento, ja se ficar repetindo ele vai conseguir ver
  4. (Resolvido)Erro Em Globalevents

    Thony D. Serv reagiu a FeeTads por uma resposta no tópico

    1 ponto
    local msg = { ["Monday"] = { --Segunda ['19:00'] = {text = 'Evento Up Aberto No Segundo Andar Do Temple', type = 21}, ['19:05'] = {text = 'Evento Up Aberto No Segundo Andar Do Temple', type = 21}, ['19:10'] = {text = 'Evento Up Aberto No Segundo Andar Do Temple', type = 21}, ['19:15'] = {text = 'Evento Up Aberto No Segundo Andar Do Temple', type = 21}, ['19:20'] = {text = 'Evento Up Aberto No Segundo Andar Do Temple', type = 21}, ['19:25'] = {text = 'Evento Up Aberto No Segundo Andar Do Temple', type = 21}, ['19:29'] = {text = 'Evento Up Acaba Em 1 Minuto', type = 21}, }, ["Wednesday"] = { --Quarta ['19:00'] = {text = 'Evento Up Aberto No Segundo Andar Do Temple', type = 21}, ['19:05'] = {text = 'Evento Up Aberto No Segundo Andar Do Temple', type = 21}, ['19:10'] = {text = 'Evento Up Aberto No Segundo Andar Do Temple', type = 21}, ['19:15'] = {text = 'Evento Up Aberto No Segundo Andar Do Temple', type = 21}, ['19:20'] = {text = 'Evento Up Aberto No Segundo Andar Do Temple', type = 21}, ['19:25'] = {text = 'Evento Up Aberto No Segundo Andar Do Temple', type = 21}, ['19:29'] = {text = 'Evento Up Acaba Em 1 Minuto', type = 21}, }, ["Saturday"] = { --Sabado ['19:00'] = {text = 'Evento Up Aberto No Segundo Andar Do Temple', type = 21}, ['19:05'] = {text = 'Evento Up Aberto No Segundo Andar Do Temple', type = 21}, ['19:10'] = {text = 'Evento Up Aberto No Segundo Andar Do Temple', type = 21}, ['19:15'] = {text = 'Evento Up Aberto No Segundo Andar Do Temple', type = 21}, ['19:20'] = {text = 'Evento Up Aberto No Segundo Andar Do Temple', type = 21}, ['19:25'] = {text = 'Evento Up Aberto No Segundo Andar Do Temple', type = 21}, ['19:29'] = {text = 'Evento Up Acaba Em 1 Minuto', type = 21}, }, } function onThink(interval, lastExecution) if msg[os.date("%A")] then hours = tostring(os.date("%X")):sub(1, 5) tab_val = msg[os.date("%A")][hours] if tab_val then return tab_val and doBroadcastMessage(tab_val.text, tab_val.type) or true end end return true end tenta esse script, mudei pra ele checar o dia logo no começo, diferente do seu que recebe data e hora antes de checar kkk, acho q assim deve funcionar e alias monday é segunda e Wednesday é quarta kkkkkkk, isso pode te atrapalhar depois, arrumei no script, vai que sla e creio também que Type = 21 pra broadcast não funciona, tem que colocar no lugar desse tab_cal.type o tipo de message, tipo doBroadcastMessage(tab_val.text, MESSAGE_STATUS_CONSOLE_RED) e vc tem ctz que quer esse script mandando a cada 5s na tela de todos mano? eu acho isso meio poluido sabe, magina em 1 minuto aparecer 12 mensagens dessa que duram 5s, a mensagem nem vai sair da tela durante o minuto todo, se eu fosse vc, ja que tem 7 horarios com aviso, colocaria o interval em 20000, que seria 20s, seria mais clean, isso é só minha opnião kkk as vezes a cada 5s eh melhor, mas ai eh com vc
  5. (Resolvido)Erro Em Globalevents

    Thony D. Serv reagiu a FeeTads por uma resposta no tópico

    1 ponto
    no lugar desse msg[day][hours] bota isso if (msg[day][hours]) ~= nil then
  6. (Resolvido)Script Teleport Por Tempo

    koyotestark reagiu a Vodkart por uma resposta no tópico

    1 ponto
    local quests = { ["vipquest"] = { min_level = 500, enter_pos = {x = 1285, y = 191, z = 7}, area = {fromPos = {x = 1263, y = 245, z = 7}, toPos = {x = 1525, y = 143, z = 7}}, time_to_finish = {15, "min"}, time_to_make_again = {15, "min"} -- }, -- ["dragon"] = { -- min_level = 10, -- enter_pos = {x = 1, y = 1, z = 1}, -- area = {fromPos = {x = 1, y = 1, z = 1}, toPos = {x = 1, y = 1, z = 1}}, -- time_to_finish = {10, "min"}, -- time_to_make_again = {1, "hour"} } } local time_storage = 87871 -- só modifique se necessário function onSay(cid, words, param, channel) local param, p, check = param:lower(), getPlayerPosition(cid), false local npos = {x = 200, y = 200, z = 7} if not param or param == "" then local str, n = '~~ [Available Quests] ~~\n\n', 1 for quest, info in pairs(quests) do str = str .. n .. " - " .. Fupper(quest) .. " (Level: "..info.min_level..")\n" n = n + 1 end doShowTextDialog(cid, 1955, str) return true end local t = quests[param] if p.x ~= npos.x or p.y ~= npos.y or p.z ~= npos.z then return doPlayerSendCancel(cid, "position errada: voce precisa estar dentro da quest para usar este comando.") end if not t then return doPlayerSendCancel(cid, "Quest not found.") end if getPlayerLevel(cid) < t.min_level then return doPlayerSendCancel(cid, "Only players level "..t.min_level.." or higher can go the "..param.." quest.") end if isInRange(p, t.area.fromPos, t.area.toPos) then return doPlayerSendCancel(cid, "You are already inside the "..param.." quest area.") end for quest, info in pairs(quests) do if isInRange(p, info.area.fromPos, info.area.toPos) then check = true end end if check then return doPlayerSendCancel(cid, "You cannot go to another quest inside a quest.") end local stor = getPlayerStorageValue(cid, time_storage) if stor > os.time() then return doPlayerSendCancel(cid, "Voce so podera entrar novamente na quest "..os.date("%d %B %Y %X", stor)..".") end doSendMagicEffect(p, CONST_ME_POFF) local destination = t.enter_pos doTeleportThing(cid, destination) doSendMagicEffect(destination, CONST_ME_TELEPORT) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Good luck in "..param.." quest! You have "..getStrTime(t.time_to_finish).." to finish or you will be kicked.") setPlayerStorageValue(cid, time_storage, mathtime(t.time_to_make_again) + os.time()) addEvent(function() if isPlayer(cid) then if isInRange(getPlayerPosition(cid), t.area.fromPos, t.area.toPos) then doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) local temple = getTownTemplePosition(getPlayerTown(cid)) doTeleportThing(cid, temple) doSendMagicEffect(temple, CONST_ME_TELEPORT) doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Your time is over!") end end end, mathtime(t.time_to_finish) * 1000) return true end function mathtime(table) -- by dwarfer local unit = {"sec", "min", "hour", "day"} for i, v in pairs(unit) do if v == table[2] then return table[1]*(60^(v == unit[4] and 2 or i-1))*(v == unit[4] and 24 or 1) end end return error("Bad declaration in mathtime function.") end function getStrTime(table) -- by dwarfer local unit = {["sec"] = "second",["min"] = "minute",["hour"] = "hour",["day"] = "day"} return tostring(table[1].." "..unit[table[2]]..(table[1] > 1 and "s" or "")) end function Fupper(str) return (str:gsub("^%l", string.upper)) end
  7. 1 ponto
    @deza Boa noite, não testei o script mais acho que seria isso em data/movements crie um arquivo chamado soul.lua e cole isso nele local config = { soul = 10, -- Quantidade de soul que será removida message = { text = "Voce nao possui soul suficiente para passar aqui", color = MESSAGE_STATUS_CONSOLE_BLUE } } function onStepIn(cid, item, position, fromPosition) local playerSoul = getPlayerSoul(cid) if not isPlayer(cid) then return false end if playerSoul < config.soul then doPlayerSendTextMessage(cid, config.message.color, config.message.text) doTeleportThing(cid, fromPosition) return false end doPlayerAddSoul(cid, -config.soul) return true end em movements.xml adicione esta linha nele: <movevent event="StepIn" actionid="XXXX" script="soul.lua" /> Aonde esta XXXX você coloca o actionId do tile que ativará o script
Líderes está configurado para São Paulo/GMT-03:00

Informação Importante

Confirmação de Termo