Ir para conteúdo

Storm

Héroi
  • Registro em

  • Última visita

Tudo que Storm postou

  1. @MarkCharlotte Removi a condition, não faz nenhum sentido ter ela ali
  2. @MarkCharlotte Tenta assim:
  3. @MarkCharlotte Tenta assim:
  4. @MarkCharlotte Tenta assim: local condition = createConditionObject(CONDITION_PARALYZE) setConditionParam(condition, CONDITION_PARAM_TICKS, 5000) setConditionParam(condition, CONDITION_PARAM_SPEED, -5000) function onCastSpell(cid, var) local target = getCreatureTarget(cid) local targetpos = getCreaturePosition(target) local efepos = {x=targetpos.x, y=targetpos.y, z=targetpos.z} local time = 5 -- tempo paralyzado if isPlayer(cid) and exhaustion.check(cid, 11560) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, 11560) .. " segundos para usar novamente.") return FALSE end exhaustion.set(cid, 11560, 30) doCreatureSetNoMove(target, 1) doAddCondition(target, condition) doSendMagicEffect(efepos, 24) addEvent(No_Move_Target, time*1000, cid) return TRUE end local function No_Move_Target(cid) local target = getCreatureTarget(cid) if isCreature(target) then doCreatureSetNoMove(target, 0) end return TRUE end
  5. @MarkCharlotte Tenta assim: local condition = createConditionObject(CONDITION_PARALYZE) setConditionParam(condition, CONDITION_PARAM_TICKS, 5000) setConditionParam(condition, CONDITION_PARAM_SPEED, -5000) function onCastSpell(cid, var) local target = getCreatureTarget(cid) local targetpos = getCreaturePosition(target) local efepos = {x=targetpos.x, y=targetpos.y, z=targetpos.z} local time = 5 -- tempo paralyzado if isPlayer(cid) and exhaustion.check(cid, 11560) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, 11560) .. " segundos para usar novamente.") return FALSE end exhaustion.set(cid, 11560, 30) doCreatureSetNoMove(target, 1) doAddCondition(target, condition) doSendMagicEffect(efepos, 24) addEvent(No_Move_Target, time*1000, target) return TRUE end local function No_Move_Target(target) if isCreature(target) then doCreatureSetNoMove(target, 0) end return TRUE end
  6. @Jonathan005 Não sou bom com TFS 1.X, mas tenta assim:
  7. @RuukasuSenpai Foi mal, lerdei demais agora: local effects = { --Goku-- [915] = 672, } function onThink(interval) for _, pid in ipairs(getPlayersOnline()) do local effect = effects[getPlayerVocation(pid)] if(effect) then local position = {x = getCreaturePosition(pid).x, y = getCreaturePosition(pid).y, z = getCreaturePosition(pid).z} doSendMagicEffect(position, effect) end end return true end
  8. @RuukasuSenpai local effects = { --Goku-- [915] = 672, } function onThink(interval) for _, pid in ipairs(getPlayersOnline()) do local effect = effects[getPlayerVocation(pid)] local position = {x = getCreaturePosition(pid).x, y = getCreaturePosition(pid).y, z = getCreaturePosition(pid).z} if(effect) then doSendMagicEffect(pos, effect) end end return true end
  9. @RuukasuSenpai local effects = { --Goku-- [915] = 672, } function onThink(interval) for _, pid in ipairs(getPlayersOnline()) do local effect = effects[getPlayerVocation(pid)] local position = {x = getCreaturePosition(pid), y = getCreaturePosition(pid), z = getCreaturePosition(pid)} if(effect) then doSendMagicEffect(pos, effect) end end return true end
  10. @MarkCharlotte Tenta assim:
  11. @alexpaimel
  12. Storm postou uma resposta no tópico em Suporte Tibia OTServer
    @Magalhaes92 Tenta assim, só configurar o valor da storage na variável:
  13. @kaique2020 Acho que essa script foi feita do jeito errado, tenta trocar o valor das storages deixando assim: function onUse(cid, item, fromPosition, itemEx, toPosition) if item.uid == 5997 then queststatus = getPlayerStorageValue(cid, 33333) if queststatus < 1 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found a Royal Scale Robe.") doPlayerAddItem(cid, 12604, 1) setPlayerStorageValue(cid, 33333, 1) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.") end elseif item.uid == 5997 then queststatus = getPlayerStorageValue(cid, 33334) if queststatus < 1 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found a Royal Draken Mail.") doPlayerAddItem(cid, 12603, 1) setPlayerStorageValue(cid, 33334, 1) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.") end elseif item.uid == 5997 then queststatus = getPlayerStorageValue(cid, 33335) if queststatus < 1 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found a Elite Draken Helmet.") doPlayerAddItem(cid, 12606, 1) setPlayerStorageValue(cid, 33335, 1) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.") end end return true end @kaique2020 Essa script do Yalahar Quest você copiou do jeito errado e esqueceu do end no final, deixa ela assim:
  14. Um membro já tinha postado a source compilada, mas aqui vai ela: NTO Hard 64bits.rar As dlls já estão inclusas no download, mas caso falte alguma no seu PC é só baixar no site https://pt.dll-files.com/?/
  15. @Pifafa Mas ele consegue usar o Exercise Bow quando está com a magia ativa? Se conseguir, tenta assim: if getCreatureCondition(cid, CONDITION_ATTRIBUTES, 1) then doPlayerSendTextMessage(cid, 27, "Voce nao pode usar o Exercise Bow com um buff ativo.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return false end
  16. @Pifafa Isso mesmo. Funcionou ou deu algo errado?
  17. @Pifafa Adiciona na linha embaixo de: local crit = math.random(1, 100) O seguinte escopo: if getCreatureCondition(cid, CONDITION_ATTRIBUTES) then doPlayerSendTextMessage(cid, 27, "Voce nao pode usar o Exercise Bow com um buff ativo.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return false end
  18. @Pifafa Me manda as spells, vou criar um if para verificar se tem uma condition ativa e não permitir o uso do skill trainer
  19. @Pifafa A magia que aumenta a skill é uma condition? Se possível, me manda a spell.
  20. Apesar de não gostar de OTX, em breve eu vou compilar a distro e postar, já que muita gente ta pedindo.
  21. Seu servidor é de NTO? Se sim, tenho duas suspeitas: 1 - A distro do seu servidor está com muitos erros (geralmente causado por spells) 2 - O servidor está muito mal otimizado, com sistemas mal feitos e um mapa muito pesado.
  22. @Absolute Luffy Se você olhar bem, nos tópicos lá um usuário postou a distro já compilada.
  23. @Absolute Luffy Pelo jeito você ta usando os Linkers errados na hora de compilar. Vai no tópico dessa source aí e procura os Linkers corretos para o DEV.

Informação Importante

Confirmação de Termo