Jump to content

Search the Community

Showing results for tags 'dias'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • xTibia - Notícias e Suporte
    • Regras
    • Noticias
    • Soluções
    • Projetos Patrocinados
    • Tutoriais para Iniciantes
    • Imprensa
  • OTServ
    • Notícias e Debates
    • OTServlist
    • Downloads
    • Recursos
    • Suporte
    • Pedidos
    • Show-Off
    • Tutoriais
  • OFF-Topic
    • Barzinho do Éks
    • Design
    • Informática

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Sou

Found 3 results

  1. Action abaixo, escolha o item que quiser para o script. Tempo (é em segundos): 7200 = 2 Horas Como converter: https://www.google.com.br/#q=2+horas+em+segundos function onUse(cid, item, fromPosition, itemEx, toPosition) local player = Player(cid) if player:getStorageValue(1234) >= os.time() then player:say('You already have double exp!', TALKTYPE_MONSTER_SAY) return true end player:setStorageValue(1234, os.time() + 7200) Item(item.uid):remove(1) player:say('Your 2 hours of double XP has started!', TALKTYPE_MONSTER_SAY) player:registerEvent("dblxp") return trueend Em creaturescripts.xml <event type="think" name="dblxp" script="dblxp.lua" /> Em creaturescripts/scripts crie dblxp.lua function onThink(creature, interval) local player = Player(creature) if not player then return true end if player:getStorageValue(1234) < os.time() then player:sendTextMessage(MESSAGE_STATUS_WARNING, "Your double XP has ended!") player:unregisterEvent("dblxp") end return trueend Créditos: RazorBlade
  2. data/actions/double.lua function onUse(cid, item, fromPosition, itemEx, toPosition)local player = Player(cid)player:setStorageValue(80000, os.time() + 2 * 60 * 60)Item(item.uid):remove()player:say("You have just activated 2 hours of Double Experience!", TALKTYPE_MONSTER_SAY)return trueend data/actions.xml <action itemid="8981" script="double.lua"/> data/events/player.lua function Player:onGainExperience(source, exp, rawExp) local thing = self:getStorageValue(80000) if thing > os.time() then return exp * 2.0 end return expend data/events.xml Mude <event class="Player" method="onGainExperience" enabled="0" /> Para <event class="Player" method="onGainExperience" enabled="1" /> Créditos: imkingran
  3. Eu tava querendo um sistema de prisão por frags quanto mais frags, mais tempo ele pega tempo de prisão esse sistema seria a parti de por exemplo redskull 6 frags a parti do 15 frags.... ele pega prisão ai pra ele ir direto pra prisão automatico apos pegar um teleporte qual quer ou morrer, ai começar a contagem do tempo que ficar na prisão até zerar os frags dependendo dos frags podendo chegar até semana na prisão quem puder ajudar agradeço desde já.
×
×
  • Create New...