Ir para conteúdo

ZoR

Membro
  • Registro em

  • Última visita

Tudo que ZoR postou

  1. @Endless eu apenas retirei o return e passei um else você não precisa retornar doPlayerSendCancel(), tem a função que passa uma msg tbm que é doPlayerSendTextMessage(cid, MessageClasses, message)
  2. se você passar por "or" simplesmente se ele tiver level abaixo quanto ele não tiver a storage irá passar @Endless local vocation = 233 local STORAGE = 30023 local Level = 50 local msg = 'Voce já ultilizou esse item' function onUse(cid, item, frompos, item2, topos) if getPlayerStorageValue(cid, STORAGE) == 1 and getPlayerLevel(cid) <= Level then doPlayerSendTextMessage(cid, 21, msg) else doRemoveItem(item.uid, 1) doPlayerSetVocation(cid, vocation) doSendMagicEffect(getThingPos(cid), 14) doPlayerSendTextMessage(cid, 20, "Você percente á vocação ["..getPlayerVocationName(cid).."]. Relogue para que as alterações sejam feitas.") return true end @isac001 testa agora
  3. local vocation = 233 local STORAGE = 30023 local Level = 50 local msg = 'Voce já ultilizou esse item' function onUse(cid, item, frompos, item2, topos) if getPlayerStorageValue(cid, STORAGE) == 1 and getPlayerLevel(cid) >= Level then return doPlayerSendCancel(cid, msg) end doRemoveItem(item.uid, 1) doPlayerSetVocation(cid, vocation) doSendMagicEffect(getThingPos(cid), 14) doPlayerSendTextMessage(cid, 20, "Você percente á vocação ["..getPlayerVocationName(cid).."]. Relogue para que as alterações sejam feitas.") return true end @isac001
  4. ZoR respondeu ao post em um tópico de amoxicilina em Suporte Tibia OTServer
    @amoxicilina Olá, o tempo em que os.time() retorna é em segundos, ou seja 600 como está na tabela, daria um tempo de 10 minutos. agora se você fazer * 60, vai dar 10 Horas. 600 * 60 = 36000 = 10Horas.
  5. @Guilherme HP Dificilmente alguém iria disponibilizar essa dll sem o erro do ctrl + n, é uma dll que é bem cara.
  6. ZoR respondeu ao post em um tópico de ernaix69 em Suporte Tibia OTServer
    @ernaix69 mande os scripts!
  7. @leozincorsair local exausted = 1 -- em minutos local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, 13) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) local condition = createConditionObject(CONDITION_MANASHIELD) setConditionParam(condition, CONDITION_PARAM_TICKS, 120000) setCombatCondition(combat, condition) function onCastSpell(cid, var) if isPlayer(cid) and getPlayerAccess(cid) < 3 and getPlayerStorageValue(cid, 998877)-os.time() > 1 then local seetime = getPlayerStorageValue(cid, 998878) - os.time() local seconds = math.floor(seetime % 10) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde: " .. seconds .. " para usar novamente!" ) return false end setPlayerStorageValue(cid, 998877, exausted*10+os.time()) return doCombat(cid, combat, var) end pronto tá ae a segunda! Se ajudei rep+
  8. Olá galera, venho pedir para que alguém me ajude com um erro que apareceu ao tentar compilar a sourcer do meu ot Erro iologindata.cppluascript.cpp Obrigado desde já para quem puder me dar um HELP!
  9. @leozincorsair local exausted = 6 local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, 10) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) function onCastSpell(cid, var) if isPlayer(cid) and getPlayerAccess(cid) < 3 and getPlayerStorageValue(cid, 998878) - os.time() > 1 then local seetime = getPlayerStorageValue(cid, 998878) - os.time() local seconds = math.floor(seetime % 10) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde: " .. seconds .. " para usar novamente!" ) return false end setPlayerStorageValue(cid, 998878, exausted + os.time() ) doRemoveCondition(cid, CONDITION_MANASHIELD) return doCombat(cid, combat, var) end editado!
  10. @Zazeros não jogo tibia.
  11. @leozincorsair local exausted = 1 -- em minutos local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, 10) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) function onCastSpell(cid, var) if isPlayer(cid) and getPlayerAccess(cid) < 3 and getPlayerStorageValue(cid, 998878)-os.time() > 1 then local seetime = getPlayerStorageValue(cid, 998878) - os.time() doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. seetime) return false end setPlayerStorageValue(cid, 998878, exausted * 10 + os.time() ) doRemoveCondition(cid, CONDITION_MANASHIELD) return doCombat(cid, combat, var) end 2 local exausted = 1 -- em minutos local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, 13) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) local condition = createConditionObject(CONDITION_MANASHIELD) setConditionParam(condition, CONDITION_PARAM_TICKS, 120000) setCombatCondition(combat, condition) function onCastSpell(cid, var) if isPlayer(cid) and getPlayerAccess(cid) < 3 and getPlayerStorageValue(cid, 998877) - os.time() > 1 then local seetime = getPlayerStorageValue(cid, 998878) - os.time() doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. seetime) return false end setPlayerStorageValue(cid, 998877, exausted * 10 + os.time() ) return doCombat(cid, combat, var) end
  12. @Zazeros coloquei para curar membros da party
  13. @Zazeros perai então, o script funciona? porém a função dele é curar usuarios tbm?
  14. @Zazeros Simples edita a mana if getCreatureMana(cid) >= config.mana then -- se a mana dele for maior ou igual a 10 então
  15. @Zazeros bom na tabela faltava a parte "MANA" ou seja o script chamava algo vazio, não tinha a variavel mana na tabela olhe a parte do code que falta a variavel mana! local config = { cooldown = 10, -- tempo entre uma magia e outra time = 10, -- tempo em segundos que ficará healando percent = 5, --- porcentagem da vida que cura storage = 19330, effect = 12, --- efeito que vai sair } function onCastSpell(cid, var) if getCreatureMana(cid) >= config.mana then este acima é a parte do seu script que eu editei e coloquei a "MANA"
  16. @Zazeros local config = { cooldown = 10, -- tempo entre uma magia e outra time = 10, -- tempo em segundos que ficará healando percent = 5, --- porcentagem da vida que cura storage = 19330, effect = 12, --- efeito que vai sair mana = 10 } function onCastSpell(cid, var) if getCreatureMana(cid) >= config.mana then if os.time() - getPlayerStorageValue(cid, config.storage) >= config.cooldown then doPlayerSetStorageValue(cid, config.storage, os.time()) local i = 0 while i < config.time do i = i+1 addEvent(function() if isCreature(cid) then if getCreatureMaxHealth(cid) ~= getCreatureHealth(cid) then local lifedraw = math.ceil(getCreatureMaxHealth(cid) * (config.percent)/100) local pos = getPlayerPosition(cid) doCreatureAddHealth(cid, lifedraw, 1) doSendMagicEffect(pos, config.effect) end end end, 1000*i) end else doPlayerSendCancel(cid, "COOLDOWN: "..(config.cooldown - (os.time() - getPlayerStorageValue(cid, config.storage))).." seconds.") end else doPlayerSendCancel(cid, 36) end return false end
  17. ZoR respondeu ao post em um tópico de bpm91 em Suporte Tibia OTServer
    @bpm91 se não me engano é por sourcer, mas não tenho 100% de certeza.
  18. @Trayron1 me passe seu look.lua
  19. @iury alves potter Download do arquivo : Look.lua Se Ajudei Rep+ :)
  20. @iury alves potter me passa seu look
  21. @Pifafa tfs é 1.0, 0.4, 0.3.6, me refiro a sua sourcer, qual versão?
  22. ZoR respondeu ao post em um tópico de p3driinho em Suporte Tibia OTServer
    @bpm91 tenho não!
  23. @Shiedheda cade o script pra arrumar

Informação Importante

Confirmação de Termo