Ir para conteúdo

Folspa

Infante
  • Total de itens

    1668
  • Registro em

  • Última visita

Tudo que Folspa postou

  1. Não está ruim, está bom, mas tem muita informação, ainda não consegui entender o mapa, quando uma pessoa olhar, ela deve entender imediatamente o que está a observar.
  2. Folspa

    Condição de Ataque

    Mas existe algum modo de colocar três monstros diferentes em apenas um script?
  3. Folspa

    Condição de Ataque

    Você não entendeu, como são três monstros diferentes, sugeri colocar os três em um arquivo só, algo como isso: function onCombat(cid, target) local pos = { [1] = {x = 35, y = 66, z = 7}, [2] = {x = 36, y = 66, z = 7}, } local name = "Easy" if isPlayer(cid) and getCreatureName(target) == name then if getThingPos(cid) ~= pos then doPlayerSendCancel(cid, "You must be in the mark to attack!") return false end end return true end function onTarget(cid, target) local pos = { [1] = {x = 35, y = 66, z = 7}, [2] = {x = 36, y = 66, z = 7}, } local name = "Easy" if isPlayer(cid) then if getCreatureName(target) == name then if getThingPos(cid).x ~= pos.x or getThingPos(cid).y ~= pos.y or getThingPos(cid).z ~= pos.z then doPlayerSendCancel(cid, "You must be in the mark to attack!") return false end end end return true end function onCombat(cid, target) local pos = { [1] = {x = 33, y = 68, z = 7}, [2] = {x = 34, y = 68, z = 7}, } local name = "Medium" if isPlayer(cid) and getCreatureName(target) == name then if getThingPos(cid) ~= pos then doPlayerSendCancel(cid, "You must be in the mark to attack!") return false end end return true end function onTarget(cid, target) local pos = { [1] = {x = 33, y = 68, z = 7}, [2] = {x = 34, y = 68, z = 7}, } local name = "Medium" if isPlayer(cid) then if getCreatureName(target) == name then if getThingPos(cid).x ~= pos.x or getThingPos(cid).y ~= pos.y or getThingPos(cid).z ~= pos.z then doPlayerSendCancel(cid, "You must be in the mark to attack!") return false end end end return true end function onCombat(cid, target) local pos = { [1] = {x = 31, y = 70, z = 7}, [2] = {x = 32, y = 70, z = 7}, } local name = "Hard" if isPlayer(cid) and getCreatureName(target) == name then if getThingPos(cid) ~= pos then doPlayerSendCancel(cid, "You must be in the mark to attack!") return false end end return true end function onTarget(cid, target) local pos = { [1] = {x = 31, y = 70, z = 7}, [2] = {x = 32, y = 70, z = 7}, } local name = "Hard" if isPlayer(cid) then if getCreatureName(target) == name then if getThingPos(cid).x ~= pos.x or getThingPos(cid).y ~= pos.y or getThingPos(cid).z ~= pos.z then doPlayerSendCancel(cid, "You must be in the mark to attack!") return false end end end return true end function onLogin(cid) registerCreatureEvent(cid, "AttackPos") registerCreatureEvent(cid, "AttackPosTwo") return true end <event type="target" name="AttackPos" event="script" value="cantattack.lua"/> <event type="combat" name="AttackPosTwo" event="script" value="cantattack.lua"/> <event type="login" name="AttackPosLogin" event="script" value="cantattack.lua"/>
  4. Folspa

    Condição de Ataque

    Mas qual o motivo de ter 2 scripts? Não tem como apenas duplicar os scripts e mudar as posições/nomes? Quer dizer, não posso registrar no login.lua apenas 1 para 2 scripts diferentes?
  5. Como eu faço para ser em um horário aleatório, por exemplo, a raid deve acontecer todos os dias, porém em qualquer horário e apenas uma vez ao dia e mais, as raids seguintes, vir no mesmo horário, por exemplo, uma raid de orc que caiu aleatoriamente no horário 18:27, as raids seguintes devem vir em 18:28, 18:29, etc. e não uma em cada horário diferente. Quanto ao <globalevent name="AutomaticRaids" interval="60000" event="script"> 60 segundos a partir do quê?
  6. O único problema é que o link que leva ao índice de tutoriais está quebrado.
  7. Folspa

    Condição de Ataque

    function onCombat(cid, target) local pos = { [1] = {x = 35, y = 66, z = 7}, [2] = {x = 36, y = 66, z = 7}, } local name = "Easy" if isPlayer(cid) and getCreatureName(target) == name then if getThingPos(cid) ~= pos then doPlayerSendCancel(cid, "You must be in the mark to attack!") return false end end return true end function onCombat(cid, target) local pos = { [1] = {x = 33, y = 68, z = 7}, [2] = {x = 34, y = 68, z = 7}, } local name = "Medium" if isPlayer(cid) and getCreatureName(target) == name then if getThingPos(cid) ~= pos then doPlayerSendCancel(cid, "You must be in the mark to attack!") return false end end return true end function onCombat(cid, target) local pos = { [1] = {x = 31, y = 70, z = 7}, [2] = {x = 32, y = 70, z = 7}, } local name = "Hard" if isPlayer(cid) and getCreatureName(target) == name then if getThingPos(cid) ~= pos then doPlayerSendCancel(cid, "You must be in the mark to attack!") return false end end return true end <event type="combat" name="AttackPos" event="script" value="trainer_easy.lua"/> <event type="combat" name="AttackPos" event="script" value="trainer_medium.lua"/> <event type="combat" name="AttackPos" event="script" value="trainer_hard.lua"/> registerCreatureEvent(cid, "AttackPos")
  8. Folspa

    Condição de Ataque

    Não está a funcionar. Como são três monstros diferentes, apenas troquei o nome e a pos, porém o primeiro monstro o jogador não ataca, aparece "Sorry, not possible." e nos outros dois ele ataca de qualquer lugar.
  9. Encontrei esse old aqui... http://www.xtibia.com/forum/topic/44882-pasta-data-monstros/. Realmente muito bom.
  10. Folspa

    Condição de Ataque

    Protect Zone? Não dá, se eu colocar, ele não vai poder atacar, se eu colocar em volta, ele vai poder ser empurrado, ele pode ser empurrado para dentro, mas não para fora, acho.
  11. Seria interessante um tutorial de como criar monstros, não só como criá-los, mas mostrar e explicar todas as tags existentes (as mais usadas/conhecidas/padrões em servidores).
  12. Folspa

    Condição de Ataque

    Ah, mais uma coisa, o jogador não pode ser empurrado, quer dizer, outros jogadores não devem conseguir empurrar o jogador que estiver na posição.
  13. Folspa

    Condição de Ataque

    Está bom assim, apenas um player deve atacar um monstro. Só uma dúvida, se o player sair da posição que pode atacar, ele vai continuar a atacar?
  14. Preciso de um script, um monstro que só pode ser atacado se o jogador estiver em x posição, caso ele não estiver, aparecer uma mensagem falando que ele não pode atacar de onde está.
  15. Folspa

    [Show Off] Beto

    Como os barcos estão com furos/quebrados, seria interessante colocar um pouco de terra em volta, para simbolizar que estão encalhados, pois se não, não teria sentido eles estarem flutuando.
  16. Folspa

    Desativado

    Sei lá, não precisava colocar login painel lá na tela de login. Mas tá bem legal e marca d'água é meio falho, se alguém quiser pegar a sprite, vai entrar no servidor e printar (tirar um print-screen) a sprite lá de dentro.
  17. Folspa

    Labirinto

    O labirinto do minotauro, com quilômetros de extensão, escadas e rampas, ficaria bem interessante.
  18. Não está ruim, mas não vi muito sentido naquela fogueira entre quatro cadeiras e troca aquela fonte por um barril com água, ficaria melhor.
  19. Estão a ver o trecho azul logo abaixo da imagem negra? Pois bem, isso que eu não estou a conseguir remover, já tentei colocar padding/border/margin como 0, porém não funcionou, percebi que é do próprio DIV, mas não sei como remover. Se alguém tiver alguma sugestão a me passar, faça isso, por favor. Resolvi, era só colocar um display:block na imagem.
  20. O servidor caiu quando estava no meio dos zumbis todos.
  21. Então cara, tente colocar poucos monstros por andar e tudo isso aí deve ter um sentido, por exemplo, retire esse fogo das paredes ou mude o ambiente externo. Piso de madeira também não é muito legal em um ambiente com fogo.
  22. Tenta se basear na realidade, deixa as bordas menos quadradas.
  • Quem Está Navegando   0 membros estão online

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