Ir para conteúdo

luanluciano93

Héroi
  • Registro em

  • Última visita

Tudo que luanluciano93 postou

  1. Resolvido pelo autor do tópico.
  2. Não precisa do TRUE, alias, é uma gambiarra do TFS esse TRUE em maiúscula! Existem varios casos do TRUE nos 3 scripts. Ficaria melhor ser editável esse id de cidade, pois rook pode ser outro town id em alguns ots! Espaçamento incorreto! Tópico aprovado, obrigado por compartilhar! Este tópico foi movido: Para: "OTServ → Scripting → Actions e TalkActions"
  3. Tópico aprovado, obrigado por compartilhar! Este tópico foi movido: Para: "OTServ → Scripting → Actions e TalkActions" @Larissa Azhaurn, aconselho a começar a indentar os scripts que você posta, fica muito melhor para você e para quem lê o script ... Dei uma reescrita no código: local config = { full = 40, -- em horas refuel = 42, -- em horas } function onUse(player, item, fromPosition, itemEx, toPosition, isHotkey) local stamina = player:getStamina() / 60 if stamina < config.full then player:setStamina(config.refuel * 60) player:sendTextMessage(MESSAGE_STATUS_CONSOLE_ORANGE, "Your stamina has been refilled.") item:remove(1) else player:sendCancelMessage("Your stamina is already full.") end return true end
  4. Crie o arquivo com o nome de staminadoll.lua em actins/scripts/, e coloque o código dentro, depois em actions.xml coloque esse tag: <action itemid="ITEMID" script="staminadoll.lua"/> no lugar de ITEMID coloque o id do item que será o stamina doll.
  5. @marcio1234, kkk , isso é indiferente, o importante é a tag no actions.xml estar com o nome igual do arquivo que você criou.
  6. O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Notícias e OTServ Geral" Para: "OTServ → Suporte OTServ → Suporte de OTServ Geral"
  7. luanluciano93 postou uma resposta no tópico em Playground (Off-topic)
    eu nunca.
  8. Poste o script dos potions ...
  9. luanluciano93 postou uma resposta no tópico em Ferramentas OpenTibia
    Tópico aprovado, obrigado por compartilhar. Este tópico foi movido: Para: "OTServ → Downloads → Utilitários para OTServs"
  10. ops, aqui elseif isMonster(target) faltou o then no final ... elseif isMonster(target) then
  11. luanluciano93 postou uma resposta no tópico em Suporte Tibia OTServer
    -- <movevent type="StepIn" actionid="30000" event="script" value="tp_city.lua"/> function onStepIn(cid, item, position, fromPosition) local townId = 2 if isPlayer(cid) then doTeleportThing(cid, getTownTemplePosition(townId)) doPlayerSetTown(cid, townId) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are the newest resident of " .. getTownName(townId) .. ".") end return true end
  12. -- <event type="kill" name="DeathChannel" script="death_channel.lua"/> -- <event type="login" name="DeathChannelLogin" script="death_channel.lua"/> function onLogin(cid) registerCreatureEvent(cid, "DeathChannel") return true end function onKill(cid, target) local channel_id = 12 if isPlayer(target) then doPlayerSendChannelMessage(cid, "[DEATH]", "O player ".. getCreatureName(target) .." [".. getPlayerLevel(target) .."] acaba de ser morto por ".. getCreatureName(cid) .." [".. getPlayerLevel(cid) .."]!", TALKTYPE_CHANNEL_O, channel_id) elseif isMonster(target) doPlayerSendChannelMessage(cid, "[DEATH]", "O player ".. getCreatureName(target) .." [".. getPlayerLevel(target) .."] acaba de ser morto por um ".. getCreatureName(cid) .."!", TALKTYPE_CHANNEL_O, channel_id) end return true end
  13. Tópico aprovado, obrigado por compartilhar. Este tópico foi movido: Para: "OTServ → Scripting → Sistemas e MODs" Esta horrivel esse código, se possível indentar o código e usar o "code" do bbcode.
  14. @marcio1234 e @kualkerun, é só arrumar essa linha: <form target="pagseguro" method="post" action="https://pagseguro.uol.com.br/checkout/checkout.jhtml">
  15. Tópico aprovado, obrigado por compartilhar. Este tópico foi movido: Para: "OTServ → Scripting → Actions e TalkActions"
  16. Tópico aprovado, obrigado por comaprtilhar. Este tópico foi movido: Para: "OTServ → Scripting → Actions e TalkActions"
  17. Botão direito na imagem -> copiar URL da imagem -> verificar o caminho pela URL, se existe ..
  18. @marcio1234, não mostra.
  19. editei lá!
  20. luanluciano93 postou uma resposta no tópico em Suporte Tibia OTServer
    Coloque o evento no monstro: <script> <event name="Azerus" /> </script>
  21. @adrianinho, qual versão é seu ot?
  22. O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Scripting → Geral" Para: "OTServ → Suporte OTServ → Suporte de Scripts"
  23. luanluciano93 postou uma resposta no tópico em Suporte Tibia OTServer
    local config = { message = "Azerus ran into teleporter! It will disappear in 2 minutes. Enter It!", teleportId = 1387, bossName = "Azerus", pos = {x=581, y=577, z=9}, {x=581, y=575, z=10}, } function onDeath(cid, corpse, killer) if getCreatureName(cid) == bossName then doCreateTeleport(config.teleportId, config.pos[1], config.pos[2]) doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1) end return true end
  24. local config = { [13670] = { -- item_exemplo chances = { {from = 1, to = 1, itemId = 2238}, {from = 2, to = 50, itemId = 2237}, {from = 51, to = 100, itemId = 2115}, }, effect = CONST_ME_POFF }, } function onUse(cid, item, fromPosition, itemEx, toPosition, isHotkey) local player = Player(cid) local useId = config[item.itemid] if not useId then return false end local chance = math.random(100) for i = 1, #useId.chances do local randomItem = useId.chances[i] if chance >= randomItem.from and chance <= randomItem.to then if randomItem.itemId then local itemId, count = randomItem.itemId, randomItem.count or 1 player:addItem(itemId, count) else player:say('You found nothing useful.', TALKTYPE_MONSTER_SAY) end item:getPosition():sendMagicEffect(useId.effect) item:remove(1) break end end return true end

Informação Importante

Confirmação de Termo