Ir para conteúdo

Pesquisar na Comunidade

Mostrando resultados para as tags ''Runes''.



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 3 registros

  1. [Revscriptsys][Talkaction][Modal] Buy Runes, Potions and Arrows data/scripts/custom/ local arrows = { titleMsg = "Arrow e Bolt", mainMsg = "Selecione para comprar.", moneyMsg = "Voce nao tem dinheiro!", capacityMsg = "Voce esta sem cap.", buyMsg = "Voce comprou ", [1] = {potion = "spectral bolt", itemID = 40737, price10 = 100, price50 = 50000, price100 = 10000}, [2] = {potion = "diamond arrow", itemID = 40736, price10 = 100, price50 = 5000, price100 = 10000}, [3] = {potion = "assassin star", itemID = 7368, price10 = 100, price50 = 5000, price100 = 10000}, } local buyarrows = TalkAction("!arrows") function buyarrows.onSay(player, words, param) player:sendShopWindow(arrows) return true end buyarrows:separator(" ") buyarrows:register() local potions = { titleMsg = "Loja de Potion", mainMsg = "Selecione uma para comprar.", moneyMsg = "Voce nao tem dinheiro!", capacityMsg = "Voce esta sem cap.", buyMsg = "Voce comprou ", [1] = {potion = "Health Potion", itemID = 7318, price10 = 450, price50 = 2250, price100 = 4500}, [2] = {potion = "Mana Potion", itemID = 7620, price10 = 500, price50 = 2500, price100 = 5000}, [3] = {potion = "Strong Mana Potion", itemID = 7589, price10 = 800, price50 = 4000, price100 = 8000}, [4] = {potion = "Strong Health Potion", itemID = 7588, price10 = 1000, price50 = 5000, price100 = 10000}, [5] = {potion = "Great Health Potion", itemID = 7591, price10 = 1900, price50 = 9500, price100 = 19000}, [6] = {potion = "Great Mana Potion", itemID = 7590, price10 = 1200, price50 = 6000, price100 = 12000}, [7] = {potion = "Great Spirit Potion", itemID = 8472, price10 = 1900, price50 = 9500, price100 = 19000}, [8] = {potion = "Ultimate Health Potion", itemID = 8473, price10 = 3100, price50 = 15500, price100 = 31000}, [9] = {potion = "Ultimate Mana Potion", itemID = 26029, price10 = 3500, price50 = 17500, price100 = 35000}, [10] = {potion = "Ultimate Spirit Potion", itemID = 26030, price10 = 3500, price50 = 17500, price100 = 35000}, [11] = {potion = "Supreme Health Potion", itemID = 26031, price10 = 5000, price50 = 25000, price100 = 50000}, } local buypotions = TalkAction("!potions") function buypotions.onSay(player, words, param) player:sendShopWindow(potions) return true end buypotions:separator(" ") buypotions:register() local runes = { titleMsg = "Loja de Runas", mainMsg = "Selecione uma para comprar.", moneyMsg = "Voce nao tem dinheiro!", capacityMsg = "Voce esta sem cap.", buyMsg = "Voce comprou ", [1] = {potion = "sudden death rune", itemID = 2268, price10 = 500, price50 = 2500, price100 = 5000}, [2] = {potion = "explosion rune", itemID = 2313, price10 = 310, price50 = 1550, price100 = 3100}, [3] = {potion = "fire bomb rune", itemID = 2305, price10 = 550, price50 = 2750, price100 = 5500}, [4] = {potion = "wild growth rune", itemID = 2269, price10 = 1600, price50 = 8000, price100 = 16000}, [5] = {potion = "ultimate healing rune", itemID = 2273, price10 = 1750, price50 = 8750, price100 = 17500}, [6] = {potion = "paralyze rune", itemID = 2278, price10 = 5000, price50 = 25000, price100 = 50000}, [7] = {potion = "magic wall rune", itemID = 2293, price10 = 550, price50 = 2750, price100 = 5500}, [8] = {potion = "great fireball rune", itemID = 2304, price10 = 450, price50 = 2250, price100 = 4500}, [9] = {potion = "avalanche rune", itemID = 2274, price10 = 250, price50 = 1250, price100 = 2500}, } local buyrunes = TalkAction("!runes") function buyrunes.onSay(player, words, param) player:sendShopWindow(runes) return true end buyrunes:separator(" ") buyrunes:register() data/lib/lib.lua dofile('data/lib/custom/buy_arrows.lua') dofile('data/lib/custom/buy_runes.lua') dofile('data/lib/custom/buy_potions.lua') data/lib/custom/buy_arrows.lua function Player:sendShopWindow(arrows) local function buttonCallback(button, choice) local count = 0 local price = 0 local arrow = arrows[choice.id] if not arrow then print("Something went wrong with choice id: " .. choice.id) return false end if button.text == "100" then count = 100 price = arrow.price100 elseif button.text == "500" then count = 500 price = arrow.price500 elseif button.text == "1000" then count = 1000 price = arrow.price1000 else print("Something went wrong with button: " .. button.text) return false end if self:getMoney() < price then self:say(arrows.moneyMsg, TALKTYPE_MONSTER_SAY) return false end local arrowEx = Game.createItem(arrow.itemID, count) if self:addItemEx(arrowEx, false) ~= RETURNVALUE_NOERROR then self:getPosition():sendMagicEffect(CONST_ME_POFF) self:say(arrows.capacityMsg, TALKTYPE_MONSTER_SAY) return true end self:removeMoney(price) self:sendTextMessage(MESSAGE_EVENT_ADVANCE, arrows.buyMsg .. count .. "x ".. arrow.arrow .."s") self:sendShopWindow(arrows) end local window = ModalWindow { title = arrows.titleMsg, message = arrows.mainMsg, } window:addButton("cem", buttonCallback) window:addButton("500", buttonCallback) window:addButton("1000", buttonCallback) window:addButton("Cancel") window:setDefaultEnterButton("100") window:setDefaultEscapeButton("Cancel") for i = 1, #arrows do local o = arrows[i].arrow local choice = window:addChoice(o) choice.id = i end window:sendToPlayer(self) end data/lib/custom/buy_runes.lua function Player:sendShopWindow(runes) local function buttonCallback(button, choice) local count = 0 local price = 0 local rune = runes[choice.id] if not rune then print("Something went wrong with choice id: " .. choice.id) return false end if button.text == "100" then count = 100 price = rune.price100 elseif button.text == "50" then count = 50 price = rune.price50 elseif button.text == "10" then count = 10 price = rune.price10 else print("Something went wrong with button: " .. button.text) return false end if self:getMoney() < price then self:say(runes.moneyMsg, TALKTYPE_MONSTER_SAY) return false end local runeEx = Game.createItem(rune.itemID, count) if self:addItemEx(runeEx, false) ~= RETURNVALUE_NOERROR then self:getPosition():sendMagicEffect(CONST_ME_POFF) self:say(runes.capacityMsg, TALKTYPE_MONSTER_SAY) return true end self:removeMoney(price) self:sendTextMessage(MESSAGE_EVENT_ADVANCE, runes.buyMsg .. count .. "x ".. rune.rune .."s") self:sendShopWindow(runes) end local window = ModalWindow { title = runes.titleMsg, message = runes.mainMsg, } window:addButton("10", buttonCallback) window:addButton("50", buttonCallback) window:addButton("100", buttonCallback) window:addButton("Cancel") window:setDefaultEnterButton("100") window:setDefaultEscapeButton("Cancel") for i = 1, #runes do local o = runes[i].rune local choice = window:addChoice(o) choice.id = i end window:sendToPlayer(self) end data/lib/custom/buy_potions.lua function Player:sendShopWindow(potions) local function buttonCallback(button, choice) local count = 0 local price = 0 local potion = potions[choice.id] if not potion then print("Something went wrong with choice id: " .. choice.id) return false end if button.text == "100" then count = 100 price = potion.price100 elseif button.text == "50" then count = 50 price = potion.price50 elseif button.text == "10" then count = 10 price = potion.price10 else print("Something went wrong with button: " .. button.text) return false end if self:getMoney() < price then self:say(potions.moneyMsg, TALKTYPE_MONSTER_SAY) return false end local potionEx = Game.createItem(potion.itemID, count) if self:addItemEx(potionEx, false) ~= RETURNVALUE_NOERROR then self:getPosition():sendMagicEffect(CONST_ME_POFF) self:say(potions.capacityMsg, TALKTYPE_MONSTER_SAY) return true end self:removeMoney(price) self:sendTextMessage(MESSAGE_EVENT_ADVANCE, potions.buyMsg .. count .. "x ".. potion.potion .."s") self:sendShopWindow(potions) end local window = ModalWindow { title = potions.titleMsg, message = potions.mainMsg, } window:addButton("10", buttonCallback) window:addButton("50", buttonCallback) window:addButton("100", buttonCallback) window:addButton("Cancel") window:setDefaultEnterButton("100") window:setDefaultEscapeButton("Cancel") for i = 1, #potions do local o = potions[i].potion local choice = window:addChoice(o) choice.id = i end window:sendToPlayer(self) end
  2. Scripting Runes Bomb Bug

    Antes de fazer a sua pergunta, tenha certeza de ter lido as regras da seção e o guia abaixo: https://forums.otserv.com.br/index.php?/forums/topic/168583-regras-da-seção/ https://forums.otserv.com.br/index.php?/forums/topic/165121-como-fazer-uma-pergunta-ou-o-grande-guia-do-usuário-com-dúvidas/ Obs: não delete esse formulário pré-definido, preencha-o corretamente para postar o seu tópico! Descreva em algumas palavras a base utilizada. (Nome do servidor / Nome do cliente / Nome do website / etc.). Base: OTBR TFS 1.3 Qual é a sua pergunta? Hola, ¿alguien sabe por qué sucede esto y cómo solucionarlo? 1) al lanzar cualquier bomb rune, ya sea de energy, fire, earth no pega cuando se lanza 2) Cuando el jugador lanza una runa y al morir si otro player pasa por la runa, sacan pk, como en el video 3) Yo uso otbr tfs 1.3 y si me pasa creo que le pasa a todos los que usan otbr No sé si es algo con los spells pero los dejare aca Você tem o código disponível? Se tiver poste-o na caixa de código que está dentro do spoiler abaixo: Você tem alguma imagem que possa auxiliar no problema? Se sim, anexe-a dentro do spoiler abaixo:
  3. [PACK] NPC's com preços corrigidos (otservbrglobal)

    Segue a lista de todos os NPC's de runas/potions com preços corrigidos. Lista de NPCs cujo foram corrigidos: em ordem alfabética: Download: Lembrete: Faça um backup de seus NPC's antes de substitui-los.
×