Ir para conteúdo

Pesquisar na Comunidade

Mostrando resultados para as tags ''resolvido''.

  • Pesquisar por Tags

    Digite tags separadas por vírgulas
  • Pesquisar por Autor

Tipo de Conteúdo


Fóruns

  • xTibia - Notícias e Suporte
    • Regras
    • Noticias
    • Soluções
    • Projetos Patrocinados
    • Tutoriais para Iniciantes
    • Imprensa
  • OTServ
    • Notícias e Debates
    • OTServlist
    • Downloads
    • Recursos
    • Suporte
    • Pedidos
    • Show-Off
    • Tutoriais
  • OFF-Topic
    • Barzinho do Éks
    • Design
    • Informática

Encontrar resultados em...

Encontrar resultados que contenham...


Data de Criação

  • Início

    FIM


Data de Atualização

  • Início

    FIM


Filtrar pelo número de...

Data de Registro

  • Início

    FIM


Grupo


Sou

  1. ja procurei escrevendo varias coisas mais não encontrei intão vou pedir ... gostaria de um script pra 30 dias de vip, que eu desse use em um item o char ganhasse o [vip] no nome e se tornasse Epic Master Sorcerer ,Epic Elder Druid ,Epic Royal Paladin e Epic Elite Knight que são vocações que ja tem editado no ot ... que tambem ganhasse 30% a mais de vida e mana e 30% a mais de recuperação de vida e mana tbm ... não sei se isso é possivel ou se da pra fazer isso usando qualquer script de item vip e adcionar algum comando... obrigado desde ja ao forum
  2. sabe como da pra fazer com que apenas jogadores vip possão usar items vip ??? e tambem como faz pra almentar uns 20% de vida e mana de quem adquirir a vip e depois q acabar a vip os 20% tabem saia se eu não me engano minha systema é o perfct vip system por item que da vip peguei dessa pagina aki meu vip system http://www.xtibia.com/forum/topic/138512-item-que-adiciona-vip-time/
  3. Alguém teria o script do Concentrated Demonic Blood, pra clicar nele e ele virar Strong mana potion ou strong health potion?
  4. Então, eu estou precisando para meu projeto um NPC de promotion que faça o seguinte: Ex: Vocação: Knight Promotions disponíveis no lvl 50: Defensor ou Blader. Eu queria o que o NPC me desse mais de uma opção das promotions e que o player pudesse escolher somente uma. Obrigado desde já!!!
  5. Eu tentei colocar um sistema de cortar arvore no meu servidor e deu o seguinte erro: Tentei tbm pegar o lua de um que funcionava com um amigo meu, coloquei a tag no action.xml tudo certo e continuou com o erro, alguém pode me ajudar? REP++ pro que funcionar ! [15/05/2015 15:04:44] [Error - LuaScriptInterface::loadFile] data/actions/scripts/wood.lua:1: unexpected symbol near 'ï' [15/05/2015 15:04:44] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/wood.lua) [15/05/2015 15:04:44] data/actions/scripts/wood.lua:1: unexpected symbol near 'ï'
  6. Bom Galera eu queria primeiro saber se é possível,e se for possível pedir um item que regenera HP e MANA mais não tão simples assim,um item que regenera HP e MANA baseado no MAX HP e MANA do player Exemplo: ao usar tal item o player regenera 25% da vida total dele Script atual(regenera totalmente a vida do player)
  7. Olá Gente queria saber oque fazer quando os Ids que a pessoa pode criar no Ot Item Editor acabarem '-' tipo no meu server de tanto eu criar itens novos, os ids estão acabando '-' tem como criar outros ids quando eles acabarem ? ou tem outro programa para criar novos ids ?
  8. ScythePhantom

    Grav Vita

    Olá, gostaria de pedir que vocês arrumassem essa spell para mim, acontecesse que ela está podendo ser executada mesmo com um player em sua frente ou se até se já foi utilizada no mesmo local. Essa spell é basicamente a wild growth rune em spell, ela cria uma wild (aquela "parede" de mata) na frente no player. SCRIPT: TAG: <instant name="Wild Growth" words="exevo grav vita" lvl="27" prem="0" direction="1" blockwalls="1" exhaustion="2000" needlearn="0" script="pbot/exevo grav vita.lua"> <vocation id="2"/> <vocation id="6"/> <vocation id="10"/> </instant> Obrigado, REP+
  9. Alguem poderia colocar condowl de 15 segundos nessa spell para mim? Quero tambem que coloque o (distanceeffect 29) e o (effect 34).. remove_time = 4 local item_id = 1285 function onCastSpell(cid, var) local pos = getThingPosition(getCreatureTarget(cid)) posTile1 = {x=pos.x+1,y=pos.y+1,z=pos.z,stackpos=1} posTile2 = {x=pos.x+1,y=pos.y,z=pos.z,stackpos=1} posTile3 = {x=pos.x+1,y=pos.y-1,z=pos.z,stackpos=1} posTile4 = {x=pos.x,y=pos.y-1,z=pos.z,stackpos=1} posTile5 = {x=pos.x-1,y=pos.y-1,z=pos.z,stackpos=1} posTile6 = {x=pos.x-1,y=pos.y,z=pos.z,stackpos=1} posTile7 = {x=pos.x-1,y=pos.y+1,z=pos.z,stackpos=1} posTile8 = {x=pos.x,y=pos.y+1,z=pos.z,stackpos=1} posAll = {posTile1,posTile2,posTile3,posTile4,posTile5,posTile6,posTile7,posTile8} for i=1, #posAll do if isWalkable(posAll) then doCreateItem(item_id, 1, posAll) end end addEvent(removeItem, remove_time*1000, posAll) return true end function isWalkable(pos, creature, pz, proj) if getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid == 0 then return false end local creature = getTopCreature(pos) if creature.type > 0 then return false end if getTilePzInfo(pos) and not pz then return false end local n = not proj and 3 or 2 for i = 0, 255 do pos.stackpos = i local tile = getTileThingByPos(pos) if tile.itemid ~= 0 and not isCreature(tile.uid) then if hasProperty(tile.uid, n) or hasProperty(tile.uid, 7) then return false end end end return true end function removeItem(posAll) for i=1, #posAll do for j=0, 255 do pos_stack = {x=posAll.x,y=posAll.y,z=posAll.z,stackpos=j} removeTile = getThingfromPos(pos_stack) if removeTile.itemid == item_id then doRemoveItem(removeTile.uid) end end end end Ja adicionei no function.lua >> V function getCooldown(cid, spellname) local storage = tostring(getPlayerStorageValue(cid, 40001)) local spellname = '"' .. spellname .. '"' return string.find(storage, spellname) and tonumber(string.match(storage, "%d+", string.find(storage, spellname) + #spellname)) - os.time() or 0 end function setCooldown(cid, spellname, seconds) local storage = getPlayerStorageValue(cid, 40001) == -1 and "" or tostring(getPlayerStorageValue(cid, 40001)) local spellname = '"' .. spellname .. '"' if string.find(storage, spellname) then local gsub = string.gsub(storage, string.match(storage, "%d+", string.find(storage, spellname) + #spellname), tostring(os.time() + seconds)) setPlayerStorageValue(cid, 40001, gsub) else setPlayerStorageValue(cid, 40001, storage .. spellname .. " " .. tostring(seconds + os.time()) .. " ") end end function isExhausted(cid, spellname) return getCooldown(cid, spellname) > 0 end Agradeço desde ja, rep+ Vitera is comming... Fique ligado
  10. tou tendo um problema com o surf vc entra com por exemplo o blastoise na agua e quando sai da agua ele n aparece,some (buga), e nem a enfermeira cura, tem de relogar.. o erro é esse \/ [09/05/2015 11:38:26] [Error - MoveEvents Interface] [09/05/2015 11:38:26] data/movements/scripts/surfcancel.lua:onStepIn [09/05/2015 11:38:26] Description: [09/05/2015 11:38:26] data/movements/scripts/surfcancel.lua:40: attempt to concatenate a nil value [09/05/2015 11:38:26] stack traceback: [09/05/2015 11:38:26] data/movements/scripts/surfcancel.lua:40: in function <data/movements/scripts/surfcancel.lua:30>
  11. Olá, alguém poderia fazer algo assim: o jogador está lutando com um monstro, e morre para o monstro, ao morrer, ele não perde nada, loot, xp, nada, e é teleportado ao templo dando a msg que ele perde o combate. Isso, dentro de uma área definida. Agradeço a todos.
  12. galera estou com esse script aqui de TASK e gostaria de saber como faço pra quando o jogador terminar X task ganhar uma mount. uso tfs 1.1 versão 10.76 tasks.lua local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local xmsg = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end local storage = 62003 local monsters = { ["Dragons"] = {storage = 5010, mstorage = 19000, amount = 10, exp = 5000, items = {{id = 2157, count = 1}, {id = 2160, count = 3}}}, ["Dragon Lords"] = {storage = 5011, mstorage = 19001, amount = 10, exp = 10000, items = {{id = 2492, count = 1}, {id = 2160, count = 5}}}, ["Hydras"] = {storage = 5012, mstorage = 19002, amount = 10, exp = 18000, items = {{id = 2195, count = 1}, {id = 2157, count = 8}}}, ["Demons"] = {storage = 5013, mstorage = 19003, amount = 10, exp = 20000, items = {{id = 2520, count = 1}, {id = 2160, count = 10}}} } local function getItemsFromTable(itemtable) local text = "" for v = 1, #itemtable do count, info = itemtable[v].count, ItemType(itemtable[v].id) local ret = ", " if v == 1 then ret = "" elseif v == #itemtable then ret = " and " end text = text .. ret text = text .. (count > 1 and count or info:getArticle()).." "..(count > 1 and info:getPluralName() or info:getName()) end return text end local function Cptl(f, r) return f:upper()..r:lower() end function creatureSayCallback(cid, type, msg) local player, cmsg = Player(cid), msg:gsub("(%a)([%w_']*)", Cptl) if not npcHandler:isFocused(cid) then if msg == "hi" or msg == "hello" then npcHandler:addFocus(cid) if player:getStorageValue(storage) == -1 then local text, n = "", 0 for k, x in pairs(monsters) do if player:getStorageValue(x.mstorage) < x.amount then n = n + 1 text = text .. ", " text = text .. ""..x.amount.." {"..k.."}" end end if n > 1 then npcHandler:say("I have several tasks for you to kill monsters"..text..", which one do you choose? I can also show you a {list} with rewards and you can {stop} a task if you want.", cid) npcHandler.topic[cid] = 1 xmsg[cid] = msg elseif n == 1 then npcHandler:say("I have one last task for you"..text..".", cid) npcHandler.topic[cid] = 1 else npcHandler:say("You already did all tasks, I have nothing for you to do anymore, good job though.", cid) end elseif player:getStorageValue(storage) == 1 then for k, x in pairs(monsters) do if player:getStorageValue(x.storage) == 1 then npcHandler:say("Did you kill "..x.amount.." "..k.."?", cid) npcHandler.topic[cid] = 2 xmsg[cid] = k end end end else return false end elseif monsters[cmsg] and npcHandler.topic[cid] == 1 then if player:getStorageValue(monsters[cmsg].storage) == -1 then npcHandler:say("Good luck, come back when you killed "..monsters[cmsg].amount.." "..cmsg..".", cid) player:setStorageValue(storage, 1) player:setStorageValue(monsters[cmsg].storage, 1) else npcHandler:say("You already did the "..cmsg.." mission.", cid) end npcHandler.topic[cid] = 0 elseif msgcontains(msg, "yes") and npcHandler.topic[cid] == 2 then local x = monsters[xmsg[cid]] if player:getStorageValue(x.mstorage) >= x.amount then npcHandler:say("Good job, here is your reward, "..getItemsFromTable(x.items)..".", cid) for g = 1, #x.items do player:addItem(x.items[g].id, x.items[g].count) end player:addExperience(x.exp) player:setStorageValue(x.storage, 2) player:setStorageValue(storage, -1) npcHandler.topic[cid] = 3 else npcHandler:say("You didn't kill them all, you still need to kill "..x.amount -(player:getStorageValue(x.mstorage) + 1).." "..xmsg[cid]..".", cid) end elseif msgcontains(msg, "task") and npcHandler.topic[cid] == 3 then local text, n = "", 0 for k, x in pairs(monsters) do if player:getStorageValue(x.mstorage) < x.amount then n = n + 1 text = text .. (n == 1 and "" or ", ") text = text .. "{"..k.."}" end end if text ~= "" then npcHandler:say("Want to do another task? You can choose "..text..".", cid) npcHandler.topic[cid] = 1 else npcHandler:say("You already did all tasks.", cid) end elseif msgcontains(msg, "no") and npcHandler.topic[cid] == 1 then npcHandler:say("Ok then.", cid) npcHandler.topic[cid] = 0 elseif msgcontains(msg, "stop") then local text, n = "", 0 for k, x in pairs(monsters) do if player:getStorageValue(x.mstorage) < x.amount then n = n + 1 text = text .. (n == 1 and "" or ", ") text = text .. "{"..k.."}" if player:getStorageValue(x.storage) == 1 then player:setStorageValue(x.storage, -1) end end end if player:getStorageValue(storage) == 1 then npcHandler:say("Alright, let me know if you want to continue an other task, you can still choose "..text..".", cid) else npcHandler:say("You didn't start any new task yet, if you want to start one, you can choose "..text..".", cid) end player:setStorageValue(storage, -1) npcHandler.topic[cid] = 1 elseif msgcontains(msg, "list") then local text = "Tasks\n\n" for k, x in pairs(monsters) do if player:getStorageValue(x.mstorage) < x.amount then text = text ..k .." ["..(player:getStorageValue(x.mstorage) + 1).."/"..x.amount.."]:\n Rewards:\n "..getItemsFromTable(x.items).."\n "..x.exp.." experience \n\n" else text = text .. k .." [DONE]\n" end end player:showTextDialog(1949, "" .. text) npcHandler:say("Here you are.", cid) elseif msgcontains(msg, "bye") then npcHandler:say("Bye.", cid) npcHandler:releaseFocus(cid) else npcHandler:say("What?", cid) end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) killtasks.lua local config = { ['dragon'] = {amount = 10, storage = 19000, startstorage = 5010, startvalue = 1}, ['dragon lord'] = {amount = 10, storage = 19001, startstorage = 5011, startvalue = 1}, ['hydra'] = {amount = 10, storage = 19002, startstorage = 5012, startvalue = 1}, ['demon'] = {amount = 10, storage = 19003, startstorage = 5013, startvalue = 1} } function onKill(player, target) local monster = config[target:getName():lower()] if target:isPlayer() or not monster or target:getMaster() then return true end local stor = player:getStorageValue(monster.storage)+1 if stor < monster.amount and player:getStorageValue(monster.startstorage) >= monster.startvalue then player:setStorageValue(monster.storage, stor) player:sendTextMessage(MESSAGE_STATUS_CONSOLE_ORANGE, 'Task message: '..(stor +1)..' of '..monster.amount..' '..target:getName()..'s killed.') end if (stor +1) == monster.amount then player:sendTextMessage(MESSAGE_INFO_DESCR, 'Congratulations, you have killed '..(stor +1)..' '..target:getName()..'s and completed the '..target:getName()..'s mission.') player:setStorageValue(monster.storage, stor +1) end return true end
  13. Quem está com duvida de como adicionar mais passivas no pda, faça o seguinte: Vá no exp2.0.lua na pasta creaturescripts e procure por passivas, copie qualquer código e coloque o respectivo nome da passiva que quer adicionar, exemplo: -------------------------------------------Counter Helix------------------------------------ if passivesChances["Nome da Nova Passiva"][getCreatureName(cid)] and math.random(1, 100) <= passivesChances["Nome da Nova Passiva"][getCreatureName(cid)] then docastspell(cid, "Nome da Nova Passiva") end E depois disso, adicione o código da passiva no pokemon moves.lua na pasta lib.
  14. alguem poderia me da uma luz nesses errinhos ja procurei por coisas duplicadas mais não tem pelomenos id não intão onde procurar
  15. Então galera, eu estou com um script aqui, que basicamente seria um efeito saindo numa pos que tira life do player. Ta meio que uma gambiarra u.u em globalevents/start.lua está assim: Função doDamageInPos: A Função DamageInRectangle seria pra mandar efeito em um retangulo e tirar life do player, só que não ta termiado. E aconteçe o seguinte: o efeito sai andando pelo mapa, a cada efeito ele aparece numa post diferente, o efeito sai errado e nao tira dano do player e.e. obs: esse efeito seria de uma parede a outra, por exemplo, da pos {x=318, y=1121, z=15}, até chegar a proxima parede mas nao da erro no console .-. se puderem me ajudar eu agradeço vlw flw
  16. SosFirexd

    [Erro] Rme

    Galera eu adicionei alguns itens novos mais não esta dando para velos no RME fica dando essas imagens estranhar alguém sabe arrumar ?
  17. Olá, gostaria de saber como faço para colocar para esta runa apenas fazer com que o player "deslize" e não fique paralisado, pois ela está como uma espécie de stun... o player a solta e o outro player que a toma fica parado em primeiro hit... Então eu quero apenas que eles fica andando devagarzinho/deslizando. SCRIPT: Muito obrigado, REP+
  18. Coloquei um sistema de aura pelo Creaturescripts, mas quando o player desloga tá dando um erro no distro, segue em anexo as fotos e meu aura.lua: Imagem do erro na distro:
  19. Como fala no topo do título quero uma script simples Que teleporte tbm teleporte para tal local ...
  20. Então galera eu queria pedir uma quest que é o seguinte: Cada Player fica em uma posição(será necessário 4 players). Cada Player tambem tem que ter level minimo de 100. E essa quest seria o seguinte, ela teria um tempo(Configuravel) para terminar, se dentro de 10 minutos os players nao consiguirem terminar a quest, são teletransportados para fora, e se morrer tambem nao perde xp. Se Possivel(acho que é dificil ) se um player morrer, todos seriam teletransportados para fora. Bom é isso se puderem ajudar agradeço
  21. error - talkaction interface data/talkactions/scripts/creature.lua:onsay ve ai pra min oq ta errado q não consegui achar
×
×
  • Criar Novo...