Ir para conteúdo

Pesquisar na Comunidade

Mostrando resultados para as tags ''scroll''.



Mais opções de pesquisa

  • Pesquisar por Tags

    Digite tags separadas por vírgulas
  • Pesquisar por Autor

Tipo de Conteúdo


Fóruns

  • A Cidade OTBR
    • OTServ Brasil
    • Atendimento
    • Taverna
  • Projetos Open Source
    • Canary
    • OTServBR-Global
    • Mehah OTClient
    • MyAAC
  • OpenTibia
    • Notícias e Discussões
    • Suporte - Dúvidas, Bugs, Erros
    • Downloads
    • Tutoriais
    • Show-Off
  • Outros
    • Design

Encontrado 2 registros

  1. Scripting Scroll exp

    Descreva em algumas palavras a base utilizada. (Nome do servidor / Nome do cliente / Nome do website / etc.). The OTX Server Version: (2.100 - 6000) - Codename: (FINAL) TFS 0.4 Base: 7.6 Qual é a sua pergunta? Tenho um mod no meu servidor que, ao usar um determinado item, a EXP dobra por uma hora, porém o mesmo só está funcionando se o player relogar após utilizar o item, atrapalha quem já está em hunt, poderiam me ajudar a funcionar assim que ele usasse o item? Segue XML Você tem o código disponível? Se tiver poste-o na caixa de código que está dentro do spoiler abaixo: Segue .LUA local config = { rate = 1, storage = 1000, expstorage = 1100, register = 1200, time = 3600, } function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerStorageValue(cid, config.storage) <= 0 then local rates = getPlayerRates(cid) setPlayerStorageValue(cid, config.expstorage, rates[SKILL__LEVEL]) setPlayerStorageValue(cid, config.register, 1) itemEx=itemid == 2345 doCreatureSay(cid, "Your extra experience rate has been activated! It now is: " .. config.rate .. "x added to your former experience rate.", TALKTYPE_ORANGE_1, true, cid) setPlayerStorageValue(cid, config.storage, os.time()+config.time) doPlayerSetExperienceRate(cid, rates[SKILL__LEVEL]*config.rate) doRemoveItem(item.uid,1) registerCreatureEvent(cid, "ExpStage") else doCreatureSay(cid, "You must finish first exp condition to start other exp condition !", TALKTYPE_ORANGE_1, true, cid) end return true end function onThink(cid, interval) if getPlayerStorageValue(cid, config.register) == 1 then if getPlayerStorageValue(cid, config.storage) <= os.time() then doCreatureSay(cid, "Your extra experience rate has finished! It is now normaly experience rate.", TALKTYPE_ORANGE_1, true, cid) setPlayerStorageValue(cid, config.storage, 0) setPlayerStorageValue(cid, config.register, 0) local oldexp = getPlayerStorageValue(cid, config.expstorage) doPlayerSetExperienceRate(cid, oldexp) unregisterCreatureEvent(cid, "ExpStage") end end return true end function onLogin(cid) if getPlayerStorageValue(cid, config.register) == 1 then registerCreatureEvent(cid, "ExpStage") local rates = getPlayerRates(cid) doCreatureSay(cid, "Your extra experience rate is still here! It is: " .. config.rate .. "x added to your former experience rate.", TALKTYPE_ORANGE_1, true, cid) if getPlayerStorageValue(cid, config.storage) > os.time() then local oldexp = getPlayerStorageValue(cid, config.expstorage) doPlayerSetExperienceRate(cid, oldexp+config.rate) end end return true end Você tem alguma imagem que possa auxiliar no problema? Se sim, anexe-a dentro do spoiler abaixo:
  2. Meu 1º Script Super Simples Avaliem !

    Olá a todos!! Venho com grande prazer lhes dizer que fiz meu primeiro script u.u Bom, na verdade eu queria 1 script que ao clicar em 1 scroll me teleportace para meu templo, depois que enviace 1 animated text e removese meu scroll! Então como eu nao tava achando, decidi tentar fazer o meu! Más eu não sei se ficou bom, ou se pelo menos funciona! KKK' Alguem poderia por favor testar e avaliar? Dicas ou comentários? Lembrando que é meu primeiro script então vo aprendendo com os erros '-' Arquivo: TAG: Créditos : A MIN u.u Obrigado e espero respostas!
×