Ir para conteúdo

subhe

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Obrigado
    subhe deu reputação a Mathias Kenfi em (Resolvido)Erro stamina system   
    Não foi testado ainda.
     
     
  2. Obrigado
    subhe deu reputação a ikaroangelo21 em (Resolvido)Erro stamina system   
    eventsId = {} local function rechargeStamina(cid) if not isPlayer(cid) then eventsId[cid] = nil return end doPlayerAddStamina(cid, 1) eventsId[cid] = addEvent(rechargeStamina, 3 * 60 * 1000, cid) end function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) if isPlayer(cid) then eventsId[cid] = addEvent(rechargeStamina, 3 * 60 * 1000, cid) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Bem vindo aos trainers VIP's " .. getCreatureName(cid) .."! Você receberá 1 minuto de stamina a cada 3 minutos nos trainers VIP's.") end return true end function onStepOut(cid, item, position, lastPosition, fromPosition, toPosition, actor) if isPlayer(cid) then stopEvent(eventsId[cid]) eventsId[cid] = nil end return true end Onde tem 1 = ganho de stamina.
    Onde tem 3 = o tempo para ganhar 1 minuto.
    Somente modificar, testado em otx 8.60.
  3. Gostei
    subhe deu reputação a LeoTK em (Resolvido)Character List   
    @subhe 
     
  4. Gostei
    subhe deu reputação a Yan Liima em (Resolvido)Character List   
    Era só procurar no fórum irmão. Link:
     
  5. Gostei
    subhe deu reputação a Vodkart em (Resolvido)MSG POP UP na tela com tempo pra aparecer   
    function getPlayerLastLogout(cid) local check = db.getResult("SELECT `lastlogout` FROM `players` WHERE `id`= "..getPlayerGUID(cid)) return check:getDataInt("lastlogout") <= 0 and 0 or check:getDataInt("lastlogout") end local time = 30 -- em minutos function onLogin(cid) if getPlayerLastLogout(cid) < os.time() - (time*60) then doPlayerPopupFYI(cid, "\nWelcome to back ") end return true end  
  6. Gostei
    subhe deu reputação a Vodkart em (Resolvido)Erro Raids System   
    @subhe as position tem que ser sempre do MENOR para o MAIOR
     
     
    <?xml version="1.0" encoding="UTF-8"?> <mod name="Automatic Raids" version="1.0" author="Vodkart And xotservx" contact="xtibia.com" enabled="yes"> <config name="raids_func"><![CDATA[ days = { ["Monday"] = { ["20:00"] = {nome = "Orshabaal", pos = {fromPosition = {x=2153, y=2389, z=7},toPosition = {x=2159, y=2392, z=7}},m = {"5 Demon", "1 Orshabaal"}, Time = 60}, ["21:30"] = {nome = "Ferumbras", pos = {fromPosition = {x=518, y=141, z=4},toPosition = {x=519, y=145, z=4}},m = {"5 Demon", "1 Ferumbras"}, Time = 60} }, ["Tuesday"] = { ["19:30"] = {nome = "Ghazbaran", pos = {fromPosition = {x=473, y=408, z=11},toPosition = {x=476, y=410, z=11}}, m = {"1 Ghazbaran"}, Time = 60}, ["20:30"] = {nome = "Morgaroth", pos = {fromPosition = {x=1266, y=250, z=14},toPosition = {x=1271, y=256, z=14}}, m = {"1 Morgaroth"}, Time = 60} }, ["Wednesday"] = { ["20:40"] = {nome = "Orshabaal", pos = {fromPosition = {x=2153, y=2389, z=7},toPosition = {x=2159, y=2392, z=7}},m = {"5 Demon", "1 Orshabaal"}, Time = 60}, ["21:40"] = {nome = "Ferumbras", pos = {fromPosition = {x=518, y=141, z=4},toPosition = {x=519, y=145, z=4}},m = {"5 Demon", "1 Ferumbras"}, Time = 60} }, ["Thursday"] = { ["21:00"] = {nome = "Ghazbaran", pos = {fromPosition = {x=473, y=408, z=11},toPosition = {x=476, y=410, z=11}}, m = {"1 Ghazbaran"}, Time = 60}, ["22:00"] = {nome = "Morgaroth", pos = {fromPosition = {x=1266, y=250, z=14},toPosition = {x=1271, y=256, z=14}}, m = {"1 Morgaroth"}, Time = 60} }, ["Friday"] = { ["19:40"] = {nome = "Orshabaal", pos = {fromPosition = {x=2153, y=2389, z=7},toPosition = {x=2159, y=2392, z=7}},m = {"5 Demon", "1 Orshabaal"}, Time = 60}, ["21:20"] = {nome = "Ferumbras", pos = {fromPosition = {x=518, y=141, z=4},toPosition = {x=519, y=145, z=4}},m = {"5 Demon", "1 Ferumbras"}, Time = 60} }, ["Saturday"] = { ["18:00"] = {nome = "Ghazbaran", pos = {fromPosition = {x=473, y=408, z=11},toPosition = {x=476, y=410, z=11}}, m = {"1 Ghazbaran"}, Time = 60}, ["16:00"] = {nome = "Morgaroth", pos = {fromPosition = {x=1266, y=250, z=14},toPosition = {x=1271, y=256, z=14}}, m = {"1 Morgaroth"}, Time = 60} }, ["Sunday"] = { ["15:00"] = {nome = "Orshabaal", pos = {fromPosition = {x=2153, y=2389, z=7},toPosition = {x=2159, y=2392, z=7}},m = {"5 Demon", "1 Orshabaal"}, Time = 60}, ["17:30"] = {nome = "Ferumbras", pos = {fromPosition = {x=518, y=141, z=4},toPosition = {x=519, y=145, z=4}},m = {"5 Demon", "1 Ferumbras"}, Time = 60} } } ]]></config> <globalevent name="AutomaticRaids" interval="60" event="script"><![CDATA[ domodlib('raids_func') function onThink(interval, lastExecution) if days[os.date("%A")] then hours = tostring(os.date("%X")):sub(1, 5) tb = days[os.date("%A")][hours] if tb then function removeCreature(tb) for x = ((tb.pos.fromPosition.x)-10), ((tb.pos.toPosition.x)+10) do for y = ((tb.pos.fromPosition.y)-10), ((tb.pos.toPosition.y)+10) do local m = getTopCreature({x=x, y=y, z= tb.pos.fromPosition.z}).uid if m ~= 0 and isMonster(m) then doRemoveCreature(m) end end end end doBroadcastMessage("The invasion of " .. tb.nome .. " started") for _,x in pairs(tb.m) do for s = 1, tonumber(x:match("%d+")) do pos = {x = math.random(tb.pos.fromPosition.x, tb.pos.toPosition.x), y = math.random(tb.pos.fromPosition.y, tb.pos.toPosition.y), z = tb.pos.fromPosition.z} doSummonCreature(x:match("%s(.+)"), pos) end end addEvent(removeCreature, tb.Time*60*1000, tb) end end return true end ]]></globalevent> </mod>  
    OBS: USA ESSA NOVA VERSÃO SEM BUGS
     
    https://tibiaking.com/forums/topic/94479-raid-automatica-mod-raid-automatica-edit-brunds/
  7. Curtir
    subhe deu reputação a Movie em ERRO WAR SYSTEM   
    Troca o db.executeQuery por db.query
  8. Curtir
    subhe deu reputação a Vodkart em (Resolvido)[PEDIDO] Simples Task 3.0 by VodKart   
    @subhe 
     
    troca essa parte
     
    if isInArray({"task","tasks","missao","mission"}, msg) then npcHandler:say("Me diga o nome do monstro que você deseja fazer a task!", cid) talkState[talkUser] = 1 por
     
    if isInArray({"task","tasks","missao","mission"}, msg) then local str = "" for a , b in pairs(tasktabble) do str = str .. " {" .. a .."}," end npcHandler:say("Lista de tasks:"..str.." Qual deseja fazer?", cid) talkState[talkUser] = 1  
  9. Obrigado
    subhe deu reputação a Zwarttyp em (Resolvido)[RESOLVIDO] Perdendo Promotion ao logar   
    @subhe
    muda isso pra 0 e testa
     
  10. Obrigado
    subhe deu reputação a LeoTK em (Resolvido)[RESOLVIDO] Perdendo Promotion ao logar   
    @subhe 
    Achei esse script em outro fórum testa ae
    function onUse(cid, item, fromPosition, itemEx, toPosition) local names = { 9 = "a Someone", 10 = "a boob", 11 = "an apple", 12 = "the man" } local voc = getPlayerVocation(cid) if item.uid == XXXX then if getPlayerStorageValue(cid, 12345) ~= 1 then doPlayerSetVocation(cid, voc + 4) doSendMagicEffect(fromPosition, CONST_ME_MAGIC_GREEN) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, 'You are now "..voc[names].."!') else doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, 'You already picked a new vocation!') end end return TRUE end Também tem esse caso o primeiro não funcionar
    function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerVocation(cid) == 5 then doPlayerSetVocation(cid, 20) doCreatureSay(cid, "You are now a Super Sorcerer!", TALKTYPE_ORANGE_1) doRemoveItem(item.uid, 1) elseif getPlayerVocation(cid) == 6 then doPlayerSetVocation(cid, 21) doCreatureSay(cid, "You are now a Super Druid!", TALKTYPE_ORANGE_1) doRemoveItem(item.uid, 1) elseif getPlayerVocation(cid) == 7 then doPlayerSetVocation(cid, 22) doCreatureSay(cid, "You are now a Super Paladin!", TALKTYPE_ORANGE_1) doRemoveItem(item.uid, 1) elseif getPlayerVocation(cid) == 8 then doPlayerSetVocation(cid, 23) doCreatureSay(cid, "You are now a Super Knight!", TALKTYPE_ORANGE_1) doRemoveItem(item.uid, 1) else doPlayerSendCancel(cid,"You need to be promoted in order to use this item.") end end  
  11. Obrigado
    subhe deu reputação a Zwarttyp em (Resolvido)[RESOLVIDO] Perdendo Promotion ao logar   
    @subhe mas entao ela seria uma promoção, nao derivada....pq do jeito que vc ta querendo fazer ela se deriva de outra.
  12. Obrigado
    subhe deu reputação a Zwarttyp em (Resolvido)[RESOLVIDO] Perdendo Promotion ao logar   
    trocaria fromvoc pros suas respectivas classes, seu XML vai ate a 12, ai ficaria fromvoc="5" fromvoc="6" fromvoc="7" fromvoc="8" e porai vai, isso no vocations.xml,
    ai voce poderia usar um item 
    tem o script do item aqui
    e nele voce pode colocar quantas vocs quiser, assim precisando de 1 item cada voc
     
  13. Gostei
    subhe deu reputação a Garou em Promotion Item (MySQL)   
    Interessante contribuição, mas todo o script poderia ser encurtado para:


    function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerPromotionLevel(cid) == 2 then doPlayerSendCancel(cid, "You are already promoted") else doRemoveItem(item.uid, 1) doPlayerSetPromotionLevel(cid, 2) doSendMagicEffect(fromPosition, CONST_ME_MAGIC_RED) end return true end

    Creio que você fez ele mais para treinar suas querys SQL?
  14. Curtir
    subhe deu reputação a Vodkart em (Resolvido)[PEDIDO] [MOD] Evento Metin Stone   
    @subhe 
    <?xml version="1.0" encoding="UTF-8"?> <mod name="Stones_Event Items" enabled="yes"> <config name="Stones_config"><![CDATA[ names = {'earth stone', 'icy stone', 'fire stone', 'wind stone'} stones_name = { [1] = {name="Earth Stone"}, [2] = {name="Icy Stone"}, [3] = {name="Fire Stone"}, [4] = {name="Wind Stone"} } pos = { {x=95, y=57, z=7}, {x=103, y=57, z=7}, {x=90, y=58, z=7}, {x=80, y=58, z=7} } days = {['Tuesday'] = {'05:29:00'}, ['Sunday'] = {'03:46:20'} } stones = { ["earth stone"] = { [90] = {m = {'carniphila','earth elemental','bog raider'}, n = {6, 7}}, [80] = {m = {'bog raider','earth elemental'}, n = {6, 7}}, [70] = {m = {'giant spider','bog raider'}, n = {6, 7}}, [60] = {m = {'hydra','lich','giant spider','bog raider'}, n = {6, 7}}, [50] = {m = {'hydra','bog raider','serpent spawn'}, n = {6, 7}}, [40] = {m = {'hydra','defiler','serpent spawn'}, n = {6, 7}}, [30] = {m = {'medusa','hydra','serpent spawn','defiler'}, n = {6, 7}}, [20] = {m = {'medusa','lost soul','hydra','serpent spawn'}, n = {6, 7}}, [10] = {m = {'juggernaut','son of verminor','medusa'}, n = {5, 6}}, [1] = {m = {'medusa','juggernaut'}, n = {5,7}} }, ["icy stone"] = { [90] = {m = {'ice golem','frost dragon'}, n = {6, 7}}, [80] = {m = {'frost dragon','frost dragon hatchling'}, n = {6, 7}}, [70] = {m = {'frost dragon','crystal spider'}, n = {6, 7}}, [60] = {m = {'frost dragon','crystal spider'}, n = {7, 7}}, [50] = {m = {'frost dragon','crystal spider'}, n = {7, 7}}, [40] = {m = {'frost dragon'}, n = {7, 7}}, [30] = {m = {'frost dragon'}, n = {7, 8}}, [20] = {m = {'frost dragon'}, n = {7, 8}}, [10] = {m = {'yeti','frost dragon'}, n = {5, 7}}, [1] = {m = {'yeti'}, n = {2,3}} }, ["fire stone"] = { [90] = {m = {'fire elemental','dragon','dragon lord',' dragon lord hatchling'}, n = {6, 7}}, [80] = {m = {'dragon lord hatchling','dragon lord'}, n = {6, 7}}, [70] = {m = {'dragon lord','diabolic imp'}, n = {6, 7}}, [60] = {m = {'dragon lord','diabolic imp'}, n = {6, 7}}, [50] = {m = {'dragon lord','demodras','diabolic imp'}, n = {6, 7}}, [40] = {m = {'dragon lord','diabolic imp','hellfire fighter'}, n = {5, 7}}, [30] = {m = {'diabolic imp','hellfire fighter','demon'}, n = {6, 7}}, [20] = {m = {'hellfire fighter','demon'}, n = {5, 6}}, [10] = {m = {'demon','hellhound'}, n = {5, 5}}, [1] = {m = {'demon'}, n = {5,5}} }, ["wind stone"] = { [90] = {m = {'gargoyle','stone golem','black knight'}, n = {6, 7}}, [80] = {m = {'black knight','behemoth'}, n = {5, 7}}, [70] = {m = {'black knight','behemoth'}, n = {6, 7}}, [60] = {m = {'behemoth','destroyer'}, n = {6, 7}}, [50] = {m = {'behemoth','destroyer','betrayed wraith'}, n = {6, 7}}, [40] = {m = {'behemoth','destroyer','betrayed wraith'}, n = {6, 7}}, [30] = {m = {'dark torturer','betrayed wraith'}, n = {3, 5}}, [20] = {m = {'dark torturer','grim reaper'}, n = {5, 6}}, [10] = {m = {'blightwalker','undead dragon','grim reaper'}, n = {5, 6}}, [1] = {m = {'undead dragon'}, n = {5,5}} } } function getPercent(number, all) return (number / all) * 100 end function choose(arg) return arg[math.random(#arg)] end ]]></config> <event type="combat" name="Kamulec" event="script"><![CDATA[ domodlib("Stones_config") function onCombat(cid, target) if isMonster(target) then registerCreatureEvent(target, 'Kamulec') end local t = getPercent(getCreatureHealth(target), getCreatureMaxHealth(target)) if isMonster(target) and isInArray(names, getCreatureName(target):lower()) then if t > 90 then doCreatureSetStorage(target, 1000, 91) end for k, v in pairs(stones[getCreatureName(target):lower()]) do if k >= t and getCreatureStorage(target, 1000) > k then local pos = getThingPos(target) for i = 1, math.random(v.n[1], v.n[2]) do local s = {x=pos.x,y=pos.y,z=pos.z} s.x = pos.x + math.random(-2,2) s.y = pos.y + math.random(-2,2) doCreateMonster(choose(v.m), pos, false, false, false) end return doCreatureSetStorage(target, 1000, k) end end end return TRUE end ]]></event> <talkaction log="yes" words="!metin" access="4" event="script"> <![CDATA[ domodlib("Stones_config") function onSay(cid,words,param,channel) local monst = stones_name[math.random(1, #stones_name)] local poss = pos[math.random(1, #pos)] doCreateMonster(monst.name,poss) doBroadcastMessage('[Event Stones]\n '.. monst.name ..' have been spawn. Find and defeat it!', 22) return true end ]]> </talkaction> <globalevent name="metinStoneStart" interval="1000" event="script"><![CDATA[ domodlib("Stones_config") local daysOpen = {} local monst = stones_name[math.random(1, #stones_name)] local poss = pos[math.random(1, #pos)] for k, v in pairs(days) do table.insert(daysOpen, k) end function onThink(interval) if isInArray(daysOpen, os.date('%A')) then if isInArray(days[os.date('%A')], os.date('%X', os.time())) then doCreateMonster(monst.name,poss) doBroadcastMessage('[Event Stones]\n '.. monst.name ..' have been spawn. Find and defeat it!', 22) end end return true end ]]></globalevent> <event type="login" name="metinStoneLogin" event="buffer"><![CDATA[ registerCreatureEvent(cid, 'Kamulec') ]]></event> </mod>  
  15. Curtir
    subhe recebeu reputação de Vodkart em (Resolvido)[PEDIDO] [MOD] Evento Metin Stone   
    @Vodkart Agora não da erro nenhum, o comando !metin está funcionando, obrigado  
    teria como deixar ele automático ? ele só ta iniciando por meio de talkaction, mesmo eu botando o dia e hora pro evento acontecer, ele não acontece, só se eu usar o comando
     
    e se não for muito incomodo, daria pra por pra cada stone aparecer em um determinado tempo.. pra não aparecer todas ao mesmo tempo
    Tipo, definir o horário de cada uma ou elas aparecer com algum intervalo de tempo (ex: 20 min)  ou até, só aparecer outra, dps que a primeira morrer
    sla kkkk, o que for mais fácil de fazer  
     
    ja ganhou REP+  
     
     
    OBS: As stones não estão summonando os monstros, quando chega em x porcentagem de HP
     
     
    @Vodkart ediiit: Precisa mais não, mexi aqui e consegui fazer funcionar
    muito obrigado pela ajuda mano, se me ajudou muito  
  16. Gostei
    subhe deu reputação a Vodkart em (Resolvido)[PEDIDO] [MOD] Evento Metin Stone   
    @subhe isso não é do MODS, deve ter algum bug no seu distro, mal compilado, etc...
  17. Gostei
    subhe deu reputação a Vodkart em (Resolvido)[PEDIDO] [MOD] Evento Metin Stone   
    @subhe pode me passar o link do evento todo? alem desse mods? monstros, etc...
  18. Gostei
    subhe deu reputação a Vodkart em (Resolvido)[PEDIDO] [MOD] Evento Metin Stone   
    deleta essa parte de todos os monstros:
        <script>         <event name="metinStoneCombat"/>     </script>  
    outra coisa, no tópico la do cara só tinha 3 monstros, não tinha o Wind Stone, você criou ele?
     
    names = {'earth stone', 'icy stone', 'fire stone', 'wind stone'}
  19. Obrigado
    subhe deu reputação a Vodkart em (Resolvido)[PEDIDO] [MODS] - [8.6] Perfect Zombie System [Automático]   
    @subhe vc está testando com char de gm ou god?
  20. Gostei
    subhe deu reputação a Vodkart em (Resolvido)[PEDIDO] [MODS] - [8.6] Perfect Zombie System [Automático]   
    @subhe de boa man, ja ia fazer de outra forma para te enviar kkk
     
    é nois
  21. Haha
    subhe recebeu reputação de Vodkart em (Resolvido)[PEDIDO] [MODS] - [8.6] Perfect Zombie System [Automático]   
    @Vodkart eu entrei com 2 contas, uma delas é a conta do god, porem foi com um char que criei pra test
    será que pode ser esse o problema ?
    vou fazer o test agora com 2 contas criadas na hora e testar
    jaja edito
    @Vodkart fiz o test com 2 contas criadas agora, dessa vez não apareceu nenhum zombie, pior que não da erro nenhum na distro
     
    msg na distro
    [24/02/2020 18:55:31] >> World Alissow server Online! [24/02/2020 18:55:32] Test one has logged in. [24/02/2020 18:55:35] Test Two has logged in. [24/02/2020 18:56:24] > Broadcasted message: "Zombie event starting in 5 minutes! The teleport will be closed when the event start!". [24/02/2020 18:56:26] > Broadcasted message: "Test Two entered the Zombie event! Currently 1 players have joined!". [24/02/2020 18:56:32] > Broadcasted message: "Test one entered the Zombie event! Currently 2 players have joined!". [24/02/2020 18:57:24] > Broadcasted message: "Zombie event starting in 4 minutes! The teleport will be closed when the event start!". [24/02/2020 18:58:24] > Broadcasted message: "Zombie event starting in 3 minutes! The teleport will be closed when the event start!". [24/02/2020 18:59:24] > Broadcasted message: "Zombie event starting in 2 minutes! The teleport will be closed when the event start!". [24/02/2020 19:00:24] > Broadcasted message: "Zombie event starting in 1 minutes! The teleport will be closed when the event start!". [24/02/2020 19:01:24] > Broadcasted message: "The Zombie event is now full [2 players]! The event will soon start.".  
    Ediiiiit: 
     
    Consegui kkkk
    foi um erro meu, as coordenadas do mapa estavam "erradas"
    vi que as coordenadas tinham que pegar o mapa todo, e eu nao tinha colocado o mapa todo kkkk
    o script está funcionando agora
     
    Parabéns pelo script    
     
    REPUTADO  
  22. Obrigado
    subhe deu reputação a Belmont em Cidade [8.60]   
    Meu primeiro mapa feito, estou despertando essa habilidade de mapear com ajuda de alguns integrantes da comunidade. @Coltera, @Nolis e @Astra Moskov. Obrigado pelas dicas, criticas construtivas. Pretendo melhorar o máximo possível.
     

     
     
    Phineasz.zip - Scan
  23. Obrigado
    subhe deu reputação a SlowK em (Resolvido)Script que empurra os Player   
    Só editar as pos
     
    movements.xml
    <movevent type="StepIn" actionid="10999" event="script" value="antistack.lua"/> local positions = { {x = 1385, y = 1378, z = 7}, {x = 1387, y = 1378, z = 7}, {x = 1387, y = 1379, z = 7}, {x = 1387, y = 1380, z = 7}, {x = 1386, y = 1380, z = 7}, {x = 1385, y = 1380, z = 7}, {x = 1385, y = 1379, z = 7}, {x = 1386, y = 1381, z = 7}, } function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) doTeleportThing(cid, positions[math.random(1, #positions)]) return true end  
  24. Gostei
    subhe deu reputação a SlowK em (Resolvido)PORTAIS QUE MUDAM COORDENADAS 8.60   
    Acho que esse script serviria para você, só você colocar o action no teleport e coloca a coordenada que quiser aleatoriamente. No caso se quisesse só duas opções era só apagar e deixar só duas opções de positions, como são dois teleports, cria 2 scripts com actions diferentes.
     
     
  25. Gostei
    subhe deu reputação a grafit em [AJUDA} Erro buffer:onDeath   
    Valeu meu camarada!!

    Qualquer coisa estamos aí.

    Abraço

Informação Importante

Confirmação de Termo