Ir para conteúdo

Líderes

Conteúdo Popular

Exibindo conteúdo com a maior reputação em 08/12/13 em todas áreas

  1. [Resolvido] Comando Frags

    OTAvatar e um outro reagiu a Cat por uma resposta no tópico

    2 pontos
    tenta esse: local config = { useFragHandler = getBooleanFromString(getConfigValue('useFragHandler')), advancedFragList = getBooleanFromString(getConfigValue('advancedFragList')) } function onSay(cid, words, param, channel) if(not config.useFragHandler) then return false end 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 = { name = result:getDataString("name"), level = result:getDataInt("level"), 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) } if(config.advancedFragList) then local result = "Frags de hoje: " .. size.day .. ". Red skull= 5. Black Skull= 7." if(size.day > 0) then for _, content in ipairs(contents.day) do result = result .. "\n* " .. os.date("%d %B %Y %X at ", content.date) .. content.name .. " on level " .. content.level end result = result .. "\n" end result = result .. "\nFrags na semana: " .. (size.day + size.week) .. ". Red Skull= 15. Black Skull= 20." if(size.week > 0) then for _, content in ipairs(contents.week) do result = result .. "\n* " .. os.date("%d %B %Y %X at ", content.date) .. content.name .. " on level " .. content.level end result = result .. "\n" end result = result .. "\nFrags no mes: " .. (size.day + size.week + size.month) .. ". Red Skull= 25. Black Skull= 30." if(size.month > 0) then for _, content in ipairs(contents.month) do result = result .. "\n* " .. os.date("%d %B %Y %X at ", content.date) .. content.name .. " on level " .. content.level end result = result .. "\n" end local skullEnd = getPlayerSkullEnd(cid) if(skullEnd > 0) then result = result .. "\nYour " .. (getCreatureSkullType(cid) == SKULL_RED and "red" or "black") .. " skull will expire at " .. os.date("%d %B %Y %X", skullEnd) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, result) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You currently have " .. size.day .. " frags today, " .. (size.day + size.week) .. " this week and " .. (size.day + size.week + size.month) .. " this month.") if(size.day > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Last frag at " .. os.date("%d %B %Y %X", contents.day[1].date) .. " on level " .. contents.day[1].level .. " (" .. contents.day[1].name .. ").") end local skullEnd = getPlayerSkullEnd(cid) if(skullEnd > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your " .. (getCreatureSkullType(cid) == SKULL_RED and "red" or "black") .. " skull will expire at " .. os.date("%d %B %Y %X", skullEnd)) end end return true end vodkart
  2. Apredendo a ler Battle List

    Drazyn1291 reagiu a Kimoszin por uma resposta no tópico

    1 ponto
    Resolvi fazer essa source para animar um pouco vocês, quero ver programadores aqui, caralho ! Vamos lá pessoal, gogo! - Oque você vai aprender? Interagir com o Tibia Ler endereços de Memoria Mecher com Battle List E varias outras coisas Feito no Delphi 2010. Battle List Reader.rar
  3. [Resolvido] Erro colocar site no vps linux

    henriqerocha reagiu a Sammy por uma resposta no tópico

    1 ponto
    Deleta toda a pasta phpmyadmin que se encontra em /var/www e digite no console: cp -rp /usr/share/phpmyadmin /var/www
  4. [Resolvido] Compilação do distro

    Edoki reagiu a Sammy por uma resposta no tópico

    1 ponto
    Apertou F9 para compilar? ele vai na pasta dev-cpp TheForgottenServer.exe
  5. [Resolvido] Ajuda Rme

    andreoz reagiu a KluiMaster por uma resposta no tópico

    1 ponto
    Mano deve ta piso errado E a escadas vc pos a parte de cima um quadrado amarelo? e junto tipo dentro da parede dejesada pra subir ou descer? E também lembre sempre antes de postar qualquer topico procure saber a area coreta ok !!!
  6. [Resolvido] Erro colocar site no vps linux

    henriqerocha reagiu a xandele por uma resposta no tópico

    1 ponto
    Jogue os arquivos do htdocs dentro do /var/www e não a pasta htdocs, delele o index.html se tiver. edite em /var/www/config/config.ini deixe como abaixo: Repare "/otserv/" é onde a pasta do seu otserver está, esse tal de step ninguém usa isso uma vez que tem que deixar install ''no'' e apenas fazer o upload da database pronta e configurar no config.lua na pasta do servidor onde o mesmo está configurado no config.ini "/otserv/" step não existe porque usar isso, esses tutoriais são antigos na verdade não sei nem porque existem ainda.
  7. [Resolvido] AJUDA :/

    rafanasser reagiu a Cat por uma resposta no tópico

    1 ponto
    Erro 5: [10/08/2013 01:49:18] [Warning - RuneSpell::loadFunction] Function "soulfire" does not exist. Substitua o spells.xml por esse: Erro 6 [10/08/2013 01:49:18] [Warning - Actions::registerEvent] Duplicate registered item id: 2553 Substitua o actions.xml por esse: Se der problema fala, vou ver os outros erros.
  8. [Resolvido] AJUDA :/

    rafanasser reagiu a Cat por uma resposta no tópico

    1 ponto
    erro 1: [10/08/2013 01:49:18] [Warning - Vocations::getVocation] Vocation 13 not found. [10/08/2013 01:49:18] [Warning - Weapon::configureEvent] Wrong vocation id: 13 [10/08/2013 01:49:18] [Warning - Vocations::getVocation] Vocation 14 not found. [10/08/2013 01:49:18] [Warning - Weapon::configureEvent] Wrong vocation id: 14 Para resolver: Crie mais duas vocações no seu vocations.lua (13 e 14), pois só vai até a 12 e tem alguma magia ou weapon que está pedindo a 13 e a 14. ou me passe o weapons.lua --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- erro 2: [10/08/2013 01:49:19] [Error - LuaScriptInterface::loadFile] data/talkactions/lib/talkactions.lua:1: unexpected symbol near '!' [10/08/2013 01:49:19] [Warning - BaseEvents::loadFromXml] Cannot load talkactions/lib/ [10/08/2013 01:49:19] [Warning - TalkAction::configureEvent] Duplicate registered talkaction with words: !roupa [10/08/2013 01:49:19] [Warning - TalkAction::configureEvent] Duplicate registered talkaction with words: !b Para resolver: substitua o talkactions/lib/talkactions.lua por isso: if(talkAction) { for(TalkActionsMap::iterator it = talksMap.begin(); it != talksMap.end(); ++it) { if(it->first == "illegalWords") { talkAction = it->second; break; } } if(talkAction && talkAction->isScripted()) return talkAction->executeSay(creature, words, "", channelId); return false; } else if(talkAction->getChannel() = -1 && talkAction->getChannel() != channelId) return false; --------------------------------------------------------------------------- Erro 3: [10/08/2013 01:49:19] [Warning - TalkAction::configureEvent] Duplicate registered talkaction with words: !roupa [10/08/2013 01:49:19] [Warning - TalkAction::configureEvent] Duplicate registered talkaction with words: !b Este erro está ocorrendo por que tem o mesmo comando pra dois scripts, veja o !b e o !roupa em Guilds e o que está em cima, tem que ser diferente pois vai bugar. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Erro 4: [10/08/2013 01:49:19] [Error - LuaScriptInterface::loadFile] data/globalevents/scripts/botter.lua:1: unexpected symbol near 'ï' [10/08/2013 01:49:19] [Warning - Event::loadScript] Cannot load script (data/globalevents/scripts/botter.lua) [10/08/2013 01:49:19] data/globalevents/scripts/botter.lua:1: unexpected symbol near 'ï' muda pra: --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Erro 5: Por enquanto Sobraram esses dois erros: [10/08/2013 01:49:18] [Warning - RuneSpell::loadFunction] Function "soulfire" does not exist. [10/08/2013 01:49:18] [Warning - Actions::registerEvent] Duplicate registered item id: 2553 Me passa o spells.lua e actions.lua
  9. [Resolvido] Ajuda com raid's

    Natanael Beckman reagiu a Cat por uma resposta no tópico

    1 ponto
    não sei mecher com esse tipo de funçao ai, sempre me confundo, tenta essas duas opções: fazer por globalevents script do vodkart inv.lua local days = { ["Sunday"] = { ["00:00"] = {nome = "Demon Invasões", pos = {x=185, y=54, z=7}, monster = {"40 Demon", "50 Fire Devil", "4 Orshabaal"}, Time = 15}, ["21:00"] = {nome = "Dragon Invasões", pos = {x=185, y=54, z=7}, monster = {"100 Dragon"}, Time = 15} }, ["Saturday"] = { ["00:00"] = {nome = "Demon Invasões", pos = {x=185, y=54, z=7}, monster = {"40 Demon", "50 Fire Devil", "4 Orshabaal"}, Time = 15}, ["21:13"] = {nome = "Dragon Invasões", pos = {x=185, y=57, z=7},monster = {"100 Dragon"}, Time = 15} } } function onThink(interval, lastExecution) function getDayName() local days = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"} return days[os.date("*t")["wday"]] end hours = tostring(os.date("%X")):sub(1, 5) tb = days[getDayName()][hours] if tb then function removeCreature() for x = ((tb.pos.x)-10), ((tb.pos.x)+10) do for y = ((tb.pos.y)-10), ((tb.pos.y)+10) do local m = getTopCreature({x=x, y=y, z= tb.pos.z}).uid if m ~= 0 and isMonster(m) then doRemoveCreature(m) end end end return true end addEvent(removeCreature, tb.Time*60*1000) doBroadcastMessage(hours .. " - " .. tb.nome .. " Iníciou.") for _,x in pairs(tb.monster) do for s = 1, tonumber(x:match("%d+")) do doSummonCreature(x:match("%s(.+)"), tb.pos) end end end return true end globalevents.xml <globalevent name="Invasao" interval="60" event="script" value="inv.lua"/> fazer por mod script do vodkart Automatic Raids.xml <?xml version="1.0" encoding="UTF-8"?> <mod name="Automatic Raids" version="1.0" author="Vodkart And xotservx" contact="xtibia.com" enabled="yes"> <config name="raids_func"><![CDATA[ days = { ["Monday"] = { ["21:30"] = {nome = "Orshabaal", pos = {fromPosition = {x=184, y=55, z=7},toPosition = {x=188, y=58, z=7}},m = {"5 Fire Devil", "2 Orshabaal"}, Time = 15}, ["21:33"] = {nome = "Dragon", pos = {fromPosition = {x=197, y=57, z=7},toPosition = {x=203, y=60, z=7}},m = {"100 Dragon"}, Time = 20} }, ["Sunday"] = { ["10:08"] = {nome = "Demon", pos = {fromPosition = {x=202, y=11, z=7},toPosition = {x=204, y=12, z=7}}, m = {"1 Demon"}, Time = 15}, ["10:46"] = {nome = "Hydra", pos = {fromPosition = {x=197, y=57, z=7},toPosition = {x=203, y=60, z=7}}, m = {"7 Hydra", "4 Cyclops"}, Time = 20} } } ]]></config> <globalevent name="AutomaticRaids" interval="60" event="script"><![CDATA[ domodlib('raids_func') function onThink(interval, lastExecution) if days[os.date("%A")] then hours = tostring(os.date("%X")):sub(1, 5) tb = days[os.date("%A")][hours] if tb then function removeCreature(tb) for x = ((tb.pos.fromPosition.x)-10), ((tb.pos.toPosition.x)+10) do for y = ((tb.pos.fromPosition.y)-10), ((tb.pos.toPosition.y)+10) do local m = getTopCreature({x=x, y=y, z= tb.pos.fromPosition.z}).uid if m ~= 0 and isMonster(m) then doRemoveCreature(m) end end end end doBroadcastMessage("The invasion of " .. tb.nome .. " started") for _,x in pairs(tb.m) do for s = 1, tonumber(x:match("%d+")) do pos = {x = math.random(tb.pos.fromPosition.x, tb.pos.toPosition.x), y = math.random(tb.pos.fromPosition.y, tb.pos.toPosition.y), z = tb.pos.fromPosition.z} doSummonCreature(x:match("%s(.+)"), pos) end end addEvent(removeCreature, tb.Time*60*1000, tb) end end return true end ]]></globalevent> </mod> Configuração: days = { ["Monday"] = { ["21:30"] = {nome = "Orshabaal", pos = {fromPosition = {x=184, y=55, z=7},toPosition = {x=188, y=58, z=7}},m = {"5 Fire Devil", "2 Orshabaal"}, Time = 1}, ["21:33"] = {nome = "Dragon", pos = {fromPosition = {x=197, y=57, z=7},toPosition = {x=203, y=60, z=7}},m = {"100 Dragon"}, Time = 2} }, ["Tuesday"] = { ["10:44"] = {nome = "Demon", pos = {fromPosition = {x=184, y=55, z=7},toPosition = {x=188, y=58, z=7}}, m = {"5 Demon", "8 Fire Devil"}, Time = 1}, ["10:46"] = {nome = "Hydra", pos = {fromPosition = {x=197, y=57, z=7},toPosition = {x=203, y=60, z=7}}, m = {"7 Hydra", "4 Cyclops"}, Time = 2} } } ["DIA"] = { ["HORA DA INVASÃO"] = {nome = "NOME DA INVASÃO", pos = {começo e final da área}, monster = {"MONSTROS"}, Time = para remover os monstro} } O dia da invasão é colocada entre " " e somente dia em inglês e a primeira letra maiúscula, exemplo: "Saturday" Depois são as hora da invasão, que é colocada entre " " e somente a hora e minuto, segundos não precisa exemplo: "15:00" As Posições estão entre { } adicionando as posições x, y e z, é o começo e final da área exemplo: pos = {fromPosition = {x=197, y=57, z=7},toPosition = {x=203, y=60, z=7}} fromPosition -- começo da área onde vai acontecer a raid toPosition -- final da área onde vai acontecer a raid Os monters tem um modo especial de configurar, vc coloca entre { }, e cada monstro entre " ", e entre as " " vc adiciona "QUANTIDADE MONSTRO", e para adicionar mais tipos de monstro se separa por virgulas, exemplo: {"40 Water Elemental", "5 Cyclops"} Time é uma função extra, é para caso ninguém participe do evento os monstros não fiquem pelo mapa, e é em minutos, exemplo: Time = 15
  10. [Link Quebrado][8.6] Alissow OTs 4.11

    subhe reagiu a AdmAlexandre por uma resposta no tópico

    1 ponto
    Vlw
Líderes está configurado para São Paulo/GMT-03:00

Informação Importante

Confirmação de Termo