Ir para conteúdo

Lumus

Marquês
  • Total de itens

    1233
  • Registro em

  • Última visita

  • Dias Ganhos

    7

Tudo que Lumus postou

  1. Lumus

    spells error

    Veja o diretório que redirecionou o magia no Spells.xml verifique também o nome do arquivo.
  2. Creio que se usar algo estilo as magias dos monstros seja possível, veja: local condition = Condition(CONDITION_ATTRIBUTES) condition:setParameter(CONDITION_PARAM_SKILL_DISTANCEPERCENT, 80) -- onde 80 é igual a % do skill Você abre a checagem com um if... exemplo: if player:getVocation(4) then ... end Creio que deva funcionar. Foi só uma ideia que partiu de uma magia.
  3. Veja se funciona. Peguei do tfs 1.2 e regredi para versões anteriores. Abra o talkactions.xml e cole essa tag: <talkaction words="!deathlist;/deathlist" script="deathlist.lua"/> Em data/talkactions/scripts crie um arquivo deathlist.lua dentro dele cole: local function getArticle(str) return str:find("[AaEeIiOoUuYy]") == 1 and "an" or "a" end local function getMonthDayEnding(day) if day == "01" or day == "21" or day == "31" then return "st" elseif day == "02" or day == "22" then return "nd" elseif day == "03" or day == "23" then return "rd" else return "th" end end local function getMonthString(m) return os.date("%B", os.time{year = 1970, month = m, day = 1}) end function onSay(cid, words, param) local resultId = db.storeQuery("SELECT `id`, `name` FROM `players` WHERE `name` = " .. db.escapeString(param)) if resultId ~= false then local targetGUID = result.getDataInt(resultId, "id") local targetName = result.getDataString(resultId, "name") result.free(resultId) local str = "" local breakline = "" local resultId = db.storeQuery("SELECT `time`, `level`, `killed_by`, `is_player` FROM `player_deaths` WHERE `player_id` = " .. targetGUID .. " ORDER BY `time` DESC") if resultId ~= false then repeat if str ~= "" then breakline = "\n" end local date = os.date("*t", result.getDataInt(resultId, "time")) local article = "" local killed_by = result.getDataString(resultId, "killed_by") if result.getDataInt(resultId, "is_player") == 0 then article = getArticle(killed_by) .. " " killed_by = string.lower(killed_by) end if date.day < 10 then date.day = "0" .. date.day end if date.hour < 10 then date.hour = "0" .. date.hour end if date.min < 10 then date.min = "0" .. date.min end if date.sec < 10 then date.sec = "0" .. date.sec end str = str .. breakline .. " " .. date.day .. getMonthDayEnding(date.day) .. " " .. getMonthString(date.month) .. " " .. date.year .. " " .. date.hour .. ":" .. date.min .. ":" .. date.sec .. " Died at Level " .. result.getDataInt(resultId, "level") .. " by " .. article .. killed_by .. "." until not result.next(resultId) result.free(resultId) end if str == "" then str = "No deaths." end doPlayerPopupFYI(cid, "Deathlist for player, " .. targetName .. ".\n\n" .. str) else doPlayersendCancelMessage(cid, "A player with that name does not exist.") end return false end
  4. Lumus

    Piso com time

    Agora deu isso: 19:16 Tempo: 1440022644 19:17 Tempo: 1440022643 19:17 Tempo: 1440022642 19:17 Tempo: 1440022641 19:17 Tempo: 1440022640 E quando pisa em qualquer piso: 19:17 Seu tempo acabou.
  5. Lumus

    Staff

    Você tem que ter conhecimento em uma área específica(scripting, mapping, programação e etc). Ajudar o fórum com conteúdos seja postando em tópicos de ajuda ou trazendo conteúdos para o mesmo. Se mostrar capaz. Se mostrar um bom membro, apto a ajudar. Que não tenha "desavenças" com membros do fórum para que sua avaliação seja positiva.
  6. Para postar foto basta importa-lá em algum site que faça isto. Aconselho o imgur.com Qualquer coisa estou disponível para ajudar.
  7. Pareceu funcional bruno. Muito obrigado. Como garantia coloquei 1 a mais tanto no x como para y. Novamente, obrigado! Obrigado ao Wolf por tentar me ajudar também.
  8. @Edit uma dúvida: eu conto a partir do eixo central?
  9. Obrigado! Agradeço sua ajuda de coração! Next tema: Egito...
  10. Deu erro: http://prntscr.com/86h309
  11. Lumus

    Piso com time

    Alguém pode me ajudar a resolver o outro erro?
  12. Sensacional! Parabéns dani tenho certeza que o trabalho de vocês está sendo muito bom. Afinal, estamos vendo resultados.
  13. Parabéns dani pela iniciativa e parabéns a toda equipe doEkz por trás de tudo isso. Parabéns XTibia cada dia mais impressionante.
  14. Hola. Por favor traducir este mensaje. Estoy interesado en patrocinar el proyecto. Él está en un nivel muy aceptable y me parece que interactúan interesante, aun siendo un OTServer extranjero. Voy a estar recibiendo en contacto para establecer los medios de comunicación. Si usted necesita ayuda con la traducción, puedo ayudarte. Apenas envíeme un mensaje.
  15. Verdade, era sempre aquele maldito auto-border mas minha estadia na equipe do RadBR me auxiliou bastante, agradeço muito ao Gooz, por ter me dado as dicas bem no começo no primeiro mês que comecei a mapear... e agora estamos aí, sempre vendo mapas um do outro e dando ideias! #TamoJunto ! Valeu pela ideia das bordinhas de areia, ficaram show! u.u
  16. Obrigado dani, seu apoio está sendo fundamental ao UntraxBR! Seguindo a temática:
  17. Lumus

    Piso novo.

    Resolvido.
  18. Facilitou de mais a navegação pelo fórum e ajudará bastante os newbie a postarem na área certa. Parabéns dani!
  19. Olá. Alguém poderia me fazer uma função ou se já existe adaptar pra mim pra que ela: cheque se tem players na área(só pode ter 1) se tiver, ela retorna: Já tem jogador lá. se não, ela teleporta ele pra uma área definida.
  20. O que este comerciante faz neste local? @All Temos vagas para mapper e scripter. Por favor, quem estiver interessado, mande um e-mail para nós ou me contacte via PM aqui mesmo no fórum
  21. Que tanto de milho da porra. Saporra é merda de galinha?
  22. Parece a lacraia andando g_g
  23. Se você colocasse uma tabela com mais cidades ficaria melhor não acha? Ai o player escolhe a cidade que ele quer morar u.u Curti a ideia, rep+
  24. Testei aqui e não deu debug. local spawnboss = {x=66,y=490,z=8} local spawnplayer = {x=68,y=483,z=8} local NWcorner = {x=60,y=481,z=8, stackpos = 255} local SEcorner = {x=76,y=494,z=8, stackpos = 255} local deny = {x=311, y=403, z=12} local storage = {65030,2} -- storage required to enter local keyafter = -1 -- key that will be set to storage above when player enters arena local boss = "demodras" local fighttime = 10 * 60 * 1000 -- ten minutes local delayglobal = 95001 -- enterance counter storage returning remaining time of current user function kickEvent1(cid, item, position, fromPosition) if getCreaturesInQuestArea(TYPE_PLAYER, NWcorner, SEcorner, GET_COUNT) > 0 then doTeleportThing(cid, deny) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) doCreatureSay(cid, "Time up. Your chance is over.", TALKTYPE_ORANGE_2, false, nil, getCreaturePosition(cid)) end end function onStepIn(cid, item, pos) if getPlayerStorageValue (cid, storage[1]) == storage[2] then if getCreaturesInQuestArea(TYPE_PLAYER, NWcorner, SEcorner, GET_COUNT) > 0 then doTeleportThing(cid,deny) doCreatureSay(cid, "Someone is still in this room. Please wait for your turn(max " .. getGlobalStorageValue(delayglobal)-os.time() .. " seconds left).", TALKTYPE_ORANGE_2, false, nil, pos) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREAREA) else doTeleportThing(cid,spawnplayer) doSendMagicEffect(getCreaturePosition(cid),CONST_ME_FIREAREA) doSendMagicEffect(getCreaturePosition(cid),CONST_ME_TELEPORT) doCreatureSay(cid, "You have ten minutes to slain your enemy, otherwise you will be kicked out.", TALKTYPE_ORANGE_2, false, nil, pos) setGlobalStorageValue(delayglobal, os.time() + (fighttime / 1000)) setPlayerStorageValue(cid,storage[1],keyafter) doSummonCreature(boss, spawnboss) demodras = addEvent(kickEvent1, fighttime, cid) end else doTeleportThing(cid,deny) doCreatureSay(cid, "You are not allowed to enter here!", TALKTYPE_ORANGE_2, false, nil, pos) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREAREA) end doSendMagicEffect(getThingfromPos(item.uid), CONST_ME_PURPLEENERGY) return true end
  25. Assim que eu chegar em casa eu adapto ele pra você porque tem que mudar algumas coisas.
  • Quem Está Navegando   0 membros estão online

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