Ir para conteúdo

Weslley Kiyo

Membro
  • Registro em

  • Última visita

Solutions

  1. Weslley Kiyo's post in (Resolvido)Porta que abre só para Premium Account was marked as the answer   
    http://www.tibiaking.com/forum/forums/topic/73388-help-porta-premium-account-ot-server-800/
  2. Weslley Kiyo's post in (Resolvido)Ajuda com code de baú personalizado (action, por vocation) was marked as the answer   
    local cfg = { knight = {2430}, paladin = {2173}, sorcerer = {2189}, druid = {8857}, } function onUse(cid, item) if getPlayerStorageValue(cid, 38493) < 1 then if getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 8 then if doPlayerAddItem(cid, cfg.knight[1], 1) then doPlayerSendTextMessage(cid, 25, "Congratulations!!") doPlayerSetStorageValue(cid, 38493, 1) else doPlayerSendTextMessage(cid,25,"ERROR! Please contact the administrator.") end elseif getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 5 then if doPlayerAddItem(cid, cfg.sorcerer[1], 1) then doPlayerSendTextMessage(cid, 25, "Congratulations!!") doPlayerSetStorageValue(cid, 38493, 1) else doPlayerSendTextMessage(cid,25,"ERROR! Please contact the administrator.") end elseif getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 6 then if doPlayerAddItem(cid, cfg.druid[1], 1) then doPlayerSendTextMessage(cid, 25, "Congratulations!!") doPlayerSetStorageValue(cid, 38493, 1) else doPlayerSendTextMessage(cid,25,"ERROR! Please contact the administrator.") end elseif getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 then if doPlayerAddItem(cid, cfg.paladin[1], 1) then doPlayerSendTextMessage(cid, 25, "Congratulations!!") doPlayerSetStorageValue(cid, 38493, 1) else doPlayerSendTextMessage(cid,25,"ERROR! Please contact the administrator.") end end elseif getPlayerStorageValue(cid, 38493) >= 1 then doPlayerSendCancel(cid, "It's empty.") end return true end  
  3. Weslley Kiyo's post in (Resolvido)talk de !promotion was marked as the answer   
    Acho que seria assim então
     
    [1] = {level = 8, promoteid = 5, preco = 20000}, [2] = {level = 8, promoteid = 6, preco = 20000}, [3] = {level = 8, promoteid = 7, preco = 20000}, [4] = {level = 8, promoteid = 8, preco = 20000}, [5] = {level = 1000, promoteid = 9, preco = 100000000}, [6] = {level = 1000, promoteid = 10, preco = 100000000}, [7] = {level = 1000, promoteid = 11, preco = 100000000}, [8] = {level = 1000, promoteid = 12, preco = 100000000} }  
  4. Weslley Kiyo's post in (Resolvido)[AJUDA] Paladin EXAUSTERD was marked as the answer   
    Em config.lua, deixa essa parte assim:
     
    timeBetweenActions = 200 timeBetweenExActions = 0 timeBetweenCustomActions = 500  
  5. Weslley Kiyo's post in (Resolvido)[AJUDA] LASTKILL MONSTERS was marked as the answer   
    É pq nunca mechi com OnDeath ou OnKill isso pra mim é complicado kk
     
    Tenta esse
    function onDeath(cid, corpse, deathList) if isPlayer(deathList[1]) then doPlayerAddItem(deathList[1], 6527, 70) -- itemid, amount doBroadcastMessage("O jogador "..getCreatureName(deathList[1]).." deu o ultimo HIT no Boss Divino e ganhou 70 Event Tokens!") doSendMagicEffect(getPlayerPosition(deathList[1]), 12) end return true end  
    OU esse
    function onDeath(cid, corpse, deathList) if isPlayer(deathList[1]) then doPlayerAddItem(deathList[1], 6527, 70) -- itemid, amount doBroadcastMessage("O jogador "..getCreatureName(deathList[1]).." deu o ultimo HIT no Boss Divino e ganhou 70 Event Tokens!") end return true end  
  6. Weslley Kiyo's post in (Resolvido)[Anunciar Spawn] was marked as the answer   
    local raids = { ["Monday"] = { ["21:34"] = { name= "Demon", -- Nome do monstro a ser sumonado pos = {toPos= {x= 649, y= 1021, z= 7}, fromPos= {x= 654, y=1027, z= 7}}, --Vai ser sumonado de toPos e até fromPos quantidade = 5, -- Quantidade a ser sumonada time = 2, -- Se no tempo determinado em time= x, os monstros não forem mortos eles são removidos automaticamente }, ["22:45"] = { name= "Hydra", -- Nome do monstro a ser sumonado pos = {toPos= {x= 649, y= 1021, z= 7}, fromPos= {x= 654, y=1027, z= 7}}, --Vai ser sumonado de toPos e até fromPos quantidade = 5, -- Quantidade a ser sumonada time = 2, -- Se no tempo determinado em time= x, os monstros não forem mortos eles são removidos automaticamente } }, ["Tuesday"] = { ["11:10"] = { name= "Troll", -- Nome do monstro a ser sumonado pos = {toPos= {x= 649, y= 1021, z= 7}, fromPos= {x= 654, y=1027, z= 7}}, --Vai ser sumonado de toPos e até fromPos quantidade = 5, -- Quantidade a ser sumonada time = 2, -- Se no tempo determinado em time= x, os monstros não forem mortos eles são removidos automaticamente }, }, } function doRemoveMonster(toPos, fromPos) for x = toPos.x, fromPos.x do for y = toPos.y , fromPos.y do local creature = getTopCreature({x=x, y= y, z= fromPos.z}).uid; if creature ~= 0 and isMonster(creature) then doRemoveCreature(creature) end end end return true end function onThink(interval, lastExecution) local hours = tostring(os.date("%X")):sub(1, 5); local days = raids[os.date("%A")][hours]; local raids_storage = 99997; if days then if getGlobalStorageValue(raids_storage) <= os.time() then doBroadcastMessage("The invasion of " .. days.name .. " started") pos = {x= math.random(days.pos.toPos.x, days.pos.fromPos.x), y= math.random(days.pos.toPos.y, days.pos.fromPos.y), z= days.pos.fromPos.z}; monster = 0; repeat doSummonCreature(days.name, pos) monster = monster + 1; until monster == days.quantidade; addEvent(function() doRemoveMonster(days.pos.toPos, days.pos.fromPos) end, days.time*1000*60) setGlobalStorageValue(raids_storage, os.time()+60) end end return true end  
    Postado por @gobr
     
    Você coloca o script em Globalevents.
  7. Weslley Kiyo's post in (Resolvido)Erro Nas vocations was marked as the answer   
    Desculpe mas você colocou o script em SPOILER e isso bugou ele, deixando ele em apenas 1 linha.
     
    Peço que use o CODE para assim eu poder lhe ajudar.
    E poste todo seu vocations.xml

Informação Importante

Confirmação de Termo