Ir para conteúdo

joaohd

Visconde
  • Total de itens

    361
  • Registro em

  • Última visita

  • Dias Ganhos

    10

Tudo que joaohd postou

  1. Resolvido. Movido para a área correta. flw
  2. Isso mesmo. Como foi resolvido, moverei para a área correta. flw
  3. Caso a função que faz aparecer marks no mapa seja a de criar marks no minimap, a sintaxe é a seguinte: doPlayerAddMapMark(cid, pos, type[, description]) Onde type é o id do desenho (vide constant.lua) e description é o texto que aparece ao colocar o mouse em cima. flw
  4. Primeiramente, abra seu map editor e crie o teleport mas não coloque destino algum. Coloque algum uniqueid nele. Para padronizar, tente usar os uniqueid entre 2000 e 3000 sendo que os zeros serão o level minímo para a passagem. Feito isso, adicione o script abaixo em movements/scripts: function onStepIn(cid, item, pos, frompos) local c = { [2100] = {x = 160, y = 54, z = 7} -- Aqui seria um exemplo de configuração de teleport para 100+ } if isPlayer(cid) then if c[item.uid] then if getPlayerLevel(cid) >= (item.uid-2000) then doTeleportThing(cid, c[item.uid]) else doTeleportThing(cid, frompos) doPlayerSendCancel(cid, "Only players level " .. (item.uid-2000) .. " or higher can pass.") end end end return true end Adicione as tags corretamente em seu movements.xml e configure o script. O que há entre os colchetes, é o uniqueid do teleport, e ao lado é a posição onde o jogador será teleportado. flw
  5. Tente: --------------Filtro by Rike and Rafacin---- function onSay(cid, words, param) local frases = { "Ei cara, eu te amo, sabia?", "Vem cá gostosão", "Aaai nega!", "Essa doeu amiguinho", "Vamos passear no Recreio?" } return doPlayerSay(cid,frases[math.random(#frases)],1) end flw
  6. Sanado, Movido. flw
  7. Não precisava colocar créditos a mim não... Só fiz a minha parte de instruir. A idéia é boa, mas ainda pode ser muito aperfeiçoada. Mesmo assim, parabéns. flw
  8. joaohd

    Portrait[Movements]

    Ao que parece, foi resolvido. Moverei para a área correta. flw
  9. Local incorreto. Como é novo no fórum, peço que leia as regras antes de postar. Rep+ para Saymon14 por reportar. flw
  10. Local incorreto. A seção correta é em pedidos de scripting. Movido. Rep+ para Saymon14 por reportar. flw
  11. joaohd

    Sistema De Refinamento

    Dúvida sanada, tópico movido! flw
  12. Bom saber que estamos ajudando! Como foi resolvido, moverei para a seção correta. flw
  13. joaohd

    Sources Ajuda

    Geralmente nos tópicos com os servidores, tem o link para as sources. Procure na seção Download de otserver. Os tópicos que disponibilizam, na maioria das vezes, são o crystal server e o wedo. flw
  14. Resolvido e movido. flw
  15. Então podemos tentar assim: addEvent(function(cid, value) if getPlayerStorageValue(cid, 7780) == value then print("Os valores são iguais") -- Aqui voce modifica end return true end, 10000, cid, getPlayerStorageValue(cid, 7780)) Ta meio confuso mas da pra entender... flw
  16. Tente assim: function executarScript(cid) if getPlayerStorageValue(cid, 7780) == getPlayerStorageValue(cid, 7780) then FAÇA ALGO end return true end addEvent(executarScript, 10000, cid) Ps: Meio sem lógica a comparação do if. Sempre será verdadeira... flw
  17. joaohd

    Function

    Resolvido. Movido. flw
  18. Caro usuário, este tópico foi postado 3 vezes por você. Peço para que aguarde as respostas e que não crie tópicos repetidos. A resposta está neste tópico: http://www.xtibia.com/forum/topic/144027-advanced-reset-system-20-que-mostra-reset-no-look/ Peço que leia as regras. Este tópico será fechado. flw
  19. Coloque um return true antes do último end Ficando assim: -- [( Invasion Talk created by Doidin for XTibia.com )] -- function onSay(cid, words, param, channel) local pos_invas = {x=75,y=36,z=7} -- Coordenada da invasão! (Basta configurar essa) local monster1 = "Dragon lord" -- Boss que irá aparecer na invasão! local monster2 = "Dragon" -- Boss que irá aparecer na invasão! doSummonCreature(monster1, {x=169, y=49, z=7}) doSummonCreature(monster1, {x=169, y=50, z=7}) doSummonCreature(monster1, {x=169, y=51, z=7}) doSummonCreature(monster1, {x=169, y=52, z=7}) doSummonCreature(monster1, {x=169, y=53, z=7}) doSummonCreature(monster1, {x=169, y=54, z=7}) doSummonCreature(monster1, {x=169, y=55, z=7}) doSummonCreature(monster1, {x=169, y=56, z=7}) doSummonCreature(monster1, {x=169, y=57, z=7}) doSummonCreature(monster1, {x=169, y=58, z=7}) doSummonCreature(monster1, {x=169, y=59, z=7}) doSummonCreature(monster1, {x=170, y=49, z=7}) doSummonCreature(monster1, {x=170, y=50, z=7}) doSummonCreature(monster1, {x=170, y=51, z=7}) doSummonCreature(monster1, {x=170, y=52, z=7}) doSummonCreature(monster1, {x=170, y=53, z=7}) doSummonCreature(monster1, {x=170, y=54, z=7}) doSummonCreature(monster1, {x=170, y=55, z=7}) doSummonCreature(monster1, {x=170, y=56, z=7}) doSummonCreature(monster1, {x=170, y=57, z=7}) doSummonCreature(monster1, {x=170, y=58, z=7}) doSummonCreature(monster1, {x=170, y=59, z=7}) doSummonCreature(monster1, {x=137, y=44, z=7}) doSummonCreature(monster1, {x=137, y=45, z=7}) doSummonCreature(monster1, {x=137, y=46, z=7}) doSummonCreature(monster1, {x=137, y=47, z=7}) doSummonCreature(monster1, {x=137, y=48, z=7}) doSummonCreature(monster1, {x=137, y=49, z=7}) doSummonCreature(monster1, {x=137, y=50, z=7}) doSummonCreature(monster1, {x=137, y=51, z=7}) doSummonCreature(monster1, {x=137, y=52, z=7}) doSummonCreature(monster1, {x=137, y=53, z=7}) doSummonCreature(monster1, {x=137, y=54, z=7}) doSummonCreature(monster1, {x=137, y=55, z=7}) doSummonCreature(monster1, {x=137, y=56, z=7}) doSummonCreature(monster1, {x=137, y=57, z=7}) doSummonCreature(monster1, {x=137, y=58, z=7}) doSummonCreature(monster1, {x=137, y=59, z=7}) doSummonCreature(monster1, {x=137, y=60, z=7}) doSummonCreature(monster1, {x=137, y=61, z=7}) doSummonCreature(monster1, {x=124, y=60, z=7}) doSummonCreature(monster1, {x=125, y=60, z=7}) doSummonCreature(monster1, {x=126, y=60, z=7}) doSummonCreature(monster1, {x=127, y=60, z=7}) doSummonCreature(monster1, {x=128, y=60, z=7}) doSummonCreature(monster1, {x=129, y=60, z=7}) doSummonCreature(monster1, {x=130, y=60, z=7}) doSummonCreature(monster1, {x=124, y=61, z=7}) doSummonCreature(monster1, {x=125, y=61, z=7}) doSummonCreature(monster1, {x=126, y=61, z=7}) doSummonCreature(monster1, {x=127, y=61, z=7}) doSummonCreature(monster1, {x=128, y=61, z=7}) doSummonCreature(monster1, {x=129, y=61, z=7}) doSummonCreature(monster1, {x=130, y=61, z=7}) doSummonCreature(monster2, {x=170, y=49, z=7}) doSummonCreature(monster2, {x=167, y=59, z=7}) doSummonCreature(monster2, {x=166, y=59, z=7}) doSummonCreature(monster2, {x=165, y=59, z=7}) doSummonCreature(monster2, {x=164, y=59, z=7}) doSummonCreature(monster2, {x=163, y=59, z=7}) doSummonCreature(monster2, {x=162, y=59, z=7}) doSummonCreature(monster2, {x=161, y=59, z=7}) doSummonCreature(monster2, {x=160, y=59, z=7}) doSummonCreature(monster2, {x=159, y=59, z=7}) doSummonCreature(monster2, {x=158, y=59, z=7}) doSummonCreature(monster2, {x=157, y=59, z=7}) doSummonCreature(monster2, {x=146, y=59, z=7}) doSummonCreature(monster2, {x=145, y=59, z=7}) doSummonCreature(monster2, {x=144, y=59, z=7}) doSummonCreature(monster2, {x=143, y=59, z=7}) return true end flw
  20. joaohd

    Function Getplayerhealth

    Resolvido. Movido. flw
  21. joaohd

    Scirp

    Resolvido. Movido. flw
  22. joaohd

    Cade

    Post em local errado. Fechado. flw
  23. Local incorreto. Movido. flw
  24. Aqui está seu script. http://www.xtibia.com/forum/topic/142463-advanced-reset-system-20/ Local incorreto. Movido. flw
  25. joaohd

    Scirp

    Tente assim: function onSay(cid, words, param, channel) local c = { first_item = {id = 2120, quant = 1}, second_item = {id = 2121, quant = 1}, third_item = {id = 2122, quant = 1}, reward = {id = 137, quant = 1} } if getPlayerItemCount(cid, c.first_item.id) >= c.first_item.quant then if getPlayerItemCount(cid, c.second_item.id) >= c.second_item.quant then if getPlayerItemCount(cid, c.third_item.id) >= c.third_item.quant then doPlayerRemoveItem(cid, c.first_item.id, c.first_item.quant) doPlayerRemoveItem(cid, c.second_item.id, c.second_item.quant) doPlayerRemoveItem(cid, c.third_item.id, c.third_item.quant) doPlayerAddItem(cid, c.reward.id, c.reward.quant) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MORTAREA) doCreatureSay(cid, "Você fez a Dark Wand com sucesso", TALKTYPE_ORANGE_1) else doPlayerSendCancel(cid, "Voce precisa de ".. c.third_item.quant .. " " .. getItemNameById(c.third_item.id) .. " para fazer a wand.") end else doPlayerSendCancel(cid, "Voce precisa de ".. c.second_item.quant .. " " .. getItemNameById(c.second_item.id) .. " para fazer a wand.") end else doPlayerSendCancel(cid, "Voce precisa de ".. c.first_item.quant .. " " .. getItemNameById(c.first_item.id) .. " para fazer a wand.") end return true end Não se esqueça de configurar. flw
  • Quem Está Navegando   0 membros estão online

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