Ir para conteúdo

Jeanfersonsp

Membro
  • Registro em

  • Última visita

Tudo que Jeanfersonsp postou

  1. troca > doSendMagicEffect({x= t_Pos.x, y = t_Pos.y+ajust[2], z = t_Pos.z}, effect) por > doSendMagicEffect({x= t_Pos.x+ajust[1], y = t_Pos.y+ajust[2], z = t_Pos.z}, effect)
  2. Repete esta linha addEvent(targetEffect, 1000, cid, 419, {2,0}) --addEvent(targetEffect, 1000(TEMPO EM MILÉSIMOS PARA EFEITO), cid, 419(NUMERO DO EFEITO), {2,0}(AJUSTAR X E Y))
  3. local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -130.2, 1, -140.2, 1) function targetEffect(cid, effect, ajust) -- efeito sai no target if isCreature(cid) and isCreature(getCreatureTarget(cid)) then local t_Pos = getCreaturePosition(getCreatureTarget(cid)) doSendMagicEffect({x= t_Pos.x+ajust[1], y = t_Pos.y+ajust[2], z = t_Pos.z}, effect) end end local delay = 1000 -- tempo para o segundo efeito, em milésimos function onCastSpell(cid, var) local waittime = 2 -- Tempo de exhaustion local storage = 120033 if exhaustion.check(cid, storage) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, storage) .. " segundos para usar a spell novamente.") return false end targetEffect(cid, 419, {1,0}) addEvent(targetEffect, delay, cid, 419, {2,0}) exhaustion.set(cid, storage, waittime) return doCombat(cid, combat, var) end
  4. vc n especificou onde iria sair o segundo efeito, entao fiz de dois modos. function targetEffect(cid, effect, ajust) -- efeito sai no target if isCreature(cid) and isCreature(getCreatureTarget(cid)) then local t_Pos = getCreaturePosition(getCreatureTarget(cid)) doSendMagicEffect({x= t_Pos.x+ajust[1], y = t_Pos.y+ajust[2], z = t_Pos.z}, effect) end end addEvent(targetEffect, 2000, cid, 169, {0,0}) function cidEffect(cid, effect, ajust) -- efeito sai em min if isCreature(cid) then local t_Pos = getCreaturePosition(cid) doSendMagicEffect({x= t_Pos.x+ajust[1], y = t_Pos.y+ajust[2], z = t_Pos.z}, effect) end end addEvent(cidEffect, 2000, cid, 169, {0,0})
  5. local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 126) (Efeito Míssil) setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -22.2, 1, -31.2, 1) local function onCastSpell1(parameters) doCombat(parameters.cid, parameters.combat1, parameters.var) end function onCastSpell(cid, var) local waittime = 2 -- Tempo de exhaustion local storage = 45672 -- não mecha if exhaustion.check(cid, storage) then doPlayerSendCancel(cid, "Aguarde "..(exhaustion.get(cid, storage)).." segundos(s) para usar novamente.") return false end local parameters = {cid = cid, var = var, combat1 = combat1} for k = 1, 5 do addEvent(function() if isCreature(cid) and isCreature(getCreatureTarget(cid)) then onCastSpell1(parameters) local t_Pos = getCreaturePosition(getCreatureTarget(cid)) doSendMagicEffect({x= t_Pos.x+1, y = t_Pos.y, z = t_Pos.z}, 296) end end, 1 + ((k-1) * 275)) end exhaustion.set(cid, storage, waittime) return true end
  6. olhei os 2 mas n notei diferença mas se você diz né
  7. Sé faltou deixar os créditos do resto porque estas scripts/funções já existe a muito tempo e tem em todos os forums creio eu
  8. local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 15) function onGetFormulaValues(cid, level, skill, attack, factor) local lvl_skill = getPlayerSkillLevel(cid, SKILL_CLUB) local min = (level * 3 + lvl_skill * 3) * 1 local max = (level * 3 + lvl_skill * 3) * 1 return -min, -max end setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues") function onCastSpell(cid, var) local delay = 1500 -- (1000 = 1 seg) local target = getCreatureTarget(cid) if target > 0 and isCreature(cid) then position1 = {x=getThingPos(target).x, y=getThingPos(target).y, z=getThingPos(target).z} position2 = {x=getThingPos(target).x, y=getThingPos(target).y, z=getThingPos(target).z} doSendMagicEffect(position1, 688) addEvent(doSendMagicEffect, delay, position2, 683) local skillmin = 1 -- MINIMO DE SKILL PRA LANÇAR A MAGIA if getPlayerSkillLevel(cid, skill) < skillmin then return doPlayerSendCancel(cid, "You must have at least ".. skillmin .." of sword skill to use this spell.") end return doCombat(cid, combat, var) end end
  9. Agora q vi o tfs , pena que n mecho com ele
  10. amigo aqui carregou normal, creio que você deletou a linha q estava dando erro
  11. Poste o arquivo spells.xml
  12. Amigo topico de checar monster em certas areas ja existe, basta procurar um pouco. Mas recetemente eu encontrei uma script no seguinte tópico https://tibiaking.com/forums/topic/89834-check-de-monster-em-um-determinado-lugar/ no qual checa qualquer Monsters em determinada area então eu resolvi aprimorar a funçao, para checar all ou somente um ou mais monstros em especifico. Formas de uso : Agora respondendo o seu tópico, coloque isso na script
  13. Não testei ainda , tenta trocar esse look.lua por esse
  14. editei e inserir as condiçoes de player isPlayer(cid) em creaturescript
  15. amigo eu testei aqui e deu certo, não entendi pq n funcionou no seu
  16. As vezes quando você da copia de um spoiler a script vem com falhas, tente pegar os arquivos do winrar
  17. Eu não testei ainda então se tiver algo errado me corrijam ou se faltou algo avize Em spells/scritps, crie um arquivo chamado Imortaly.lua e coloque dentro Em spells.xml adicione Em creaturescripts/scripts crie um arquivo chamado Imortaly.lua e coloque dentro Em creaturescripts.xml adicione Sistema Hidan.rar
  18. Deixa ver se entendi, ao usar a spell, o hidan fica imortal, paralyzado, e não pode atacar.
  19. Desativa o do Frag e o Jin look e dps apaga tudo do Showvoc e poe isso

Informação Importante

Confirmação de Termo