Jump to content

Explore Questions

There are no popular questions to show right now

  1. Jump Spell

    Asked by Fabious,

    0 votes
    0 answers
  2. 0 votes
    1 answer
  3. 0 votes
    0 answers
  4. 0 votes
    0 answers
  5. soucer lunus ?

    Asked by Dtel,

    0 votes
    0 answers

747 questions in this forum

  1. Jump Spell

    0 votes
    0 answers
  2. 0 votes
    1 answer
  3. 0 votes
    0 answers
  4. 0 votes
    0 answers
  5. soucer lunus ?

    0 votes
    0 answers
  6. Action scripts 7.81

    0 votes
    4 answers
  7. 0 votes
    0 answers
  8. 0 votes
    3 answers
  9. 0 votes
    2 answers
  10. 0 votes
    0 answers
  11. 0 votes
    1 answer
  12. 0 votes
    1 answer
  13. gold direto no bank

    0 votes
    1 answer
  14. 0 votes
    0 answers
  15. 0 votes
    1 answer
  16. 0 votes
    0 answers
  17. 0 votes
    15 answers
  18. Dust Em criaturas

    0 votes
    0 answers
  19. addon doll

    0 votes
    2 answers
  20. 0 votes
    1 answer
  21. 0 votes
    0 answers
  22. script mount

    0 votes
    7 answers
  23. 0 votes
    0 answers
  24. 0 votes
    1 answer
  25. 0 votes
    0 answers
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Popular Contributors

    Nobody has received reputation this week.

  • Topics

  • Últimos Posts

    • Alguém tem essa base ? alguém que possa passar isso para mim  por favor, me ajude    
    • Experience the art of publication design at its finest with MyDesign. Our creative experts specialize in crafting visually stunning publications that captivate and engage your audience. From magazines and books to brochures and digital publications, MyDesign's publication design services set new standards for excellence. Elevate your content with MyDesign and create publications that leave a lasting impression.
    • Eu postei ela free mas tava toda bugada e removido outro forum a turma pegou ela mais para aproveitar sistema   
    • Manda o link no pv pf ou cria um post aqui no xtibia dela
    • Olá, tudo bem? Estou tentando fazer uma magia em que quando o player solta ela, ele é teleportado para a posição de cada monstro ao seu redor, da 1 hit em cada um por vez, após terminar isso, volta para a posição inicial de quando soltou a magia. Olha: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, true) function onGetFormulaValues(cid, level, skill, attack, factor) local skillTotal, levelTotal = skill + attack, level / 5 return -(skillTotal / 3 + levelTotal), -(skillTotal + levelTotal) end setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues") function attack(cid, pos, toPos, fromPos, var) if #validTargets > 0 then if doCombat(cid, combat, var) == LUA_NO_ERROR then doTeleportThing(cid,validTargets[1]) doSendMagicEffect(getPlayerPosition(cid), 61) table.remove(validTargets, validTargets[1]) addEvent(attack, 200, cid) end else doTeleportThing(cid, playerfirstpos[1]) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Nenhum alvo valido encontrado.") for k in pairs(playerfirstpos) do playerfirstpos[k] = nil end end return true end playerfirstpos = {} validTargets = {} function onCastSpell(cid, var) local pos = getCreaturePosition(cid) local creatures = getSpectators(pos, 3, 3, false) if table.insert(playerfirstpos, pos) then if creatures then for _, target in ipairs(creatures) do if isCreature(target) and (isPlayer(target) or isMonster(target)) then table.insert(validTargets, target) end end addEvent(attack, 1, cid) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Nenhum alvo valido encontrado.") end end return true end Mas não consegui... alguém pode me ajudar?
×
×
  • Create New...