Ir para conteúdo

Pesquisar na Comunidade

Mostrando resultados para as tags ''sistemas''.



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. 8.x [8.60] New 4Fun Server

    Versão: 8.60 Distro: TFS 0.4 Mapa Base: Azeroth Server e 4Fun 9.1 Relembrando que o 4Fun server no qual trabalhei com o Vmspk foi um dos primeiros servers 9.1 que tivemos, resolvi trazer uns edits que fiz nele para a versão 8.60. Peguei várias áreas do Azeroth e implementei num server mid-high rates com sala de teleports, sistema de refinamento e slot do mock, etc. 4 Cidades: -> Celestia -> Theos -> Valmun -> Sandrina Mudanças/Conteúdo: -> Mudança para a versão 8.60. -> Retirei várias partes podres (que não eram usadas) do mapa. -> Sistema de Castle War. -> Arena PvP livre. -> Houses das 4 cidades configuradas. -> Sistema de Refinamento e Slot otimizado para o servidor (alguns servers por aí têm esse sistema completamente bugado. O Vmspk me ajudou a conseguir dar upgrade em armas de pally, como a versão original não permitia) -> Sala de teleports. -> Algumas quests editadas. -> Adicionados alguns equipamentos editados para balanceamento. -> Addons funcionando por Addon Doll no npc Valkhal. -> Templo e cidade principal importadas e editadas. -> No Pvp Tool nos trainers (e o monstro que é trainer é surpresa). -> Premmium tem acesso a todos os outfits. -> Algumas quests modificadas. -> Nova arena PvP. -> Alguns cooldowns editados. -> Modificações em alguns monstros. -> Mais opções de armas na nova quest. -> Nova wand e rod. -> Resistência de alguns monstros consertadas. -> Armas da LifeRisk Quest editadas. -> Adicionados comandos !aol e !bless. -> Sistema de propaganda automática otimizado. Principais Quests: -> Demon Helmet -> Blue Legs -> Demon Oak -> Inquisition -> Pits of Inferno -> Annihilator -> Hell Quest -> Soul Scroll (npc de second promotion) -> HOTA -> Horned Helmet -> Draken Set -> Yalahari Set Imagens Upgrade & Slot System Sistema de Guerras pelo Castelo [Honor Castle] Download Créditos: Otmind/Kantera Mistocalana Mock Majesty Bruno0 Crystal Server Team TFS Team Coruja God Atum Vmspk. Enjoy.
  2. Translate - Dê imersão ao Player

    Muitos jogadores não tem o entendimento do vocábulo inglês, o que dificulta a compreensão e até mesmo tira o foco da mensagem que o NPC quer passar. . Esta é uma LIB pra criar uma estrutura para traduzir os NPCS, ACTIONS, MOVEMENTS, CREATURE SCRIPTS, e qualquer outro script .lua em que o player esteja associado (cid). Instalação crie um arquivo: data/lib/050-translate.lua --[[ Good Practices 1 = English 2 = Portuguese 3 = Polish --]] --// Config local lang_default = 1 local lang_storage = 210894 --// function _t(cid,tab) local lang=(tab[getCreatureStorage(cid, lang_storage)] and getCreatureStorage(cid, lang_storage) or lang_default) return tab[lang] end Exemplos de Uso doPlayerSendTextMessage(cid,19,_t(cid,{'Bem Vindo ao OTServer do Romulo', 'Welcome to Romulo\'s OTServer'})) local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} local name --// Crédito: Rômulo --// Config Here// local min_hour = 2 -- Min hour of wait local max_hour = 12 -- Max hour of wait local items = {['katana']={itemid=2412, cust=100}, ['naginata']={itemid=2426, cust=200}} -- Items to Sell local config_str = {s_itemid=4251, s_comming=4241} -- Storage ( Dont change if you dont know ) --/////////////// function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) selfSay(_t(cid,{"Hey! Hey! I got some good stuff for you, come here!", "Hey Hey! Venha venha aqui nobre guerreiro, tenho umas coisas pra você!"}),cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if(msgcontains(msg, 'hi') or msgcontains(msg, 'hello')) then if (getPlayerStorageValue(cid,config_str.s_comming) ~= -1) then local itemid = getPlayerStorageValue(cid,config_str.s_itemid) local time = getPlayerStorageValue(cid,config_str.s_comming) if (getPlayerStorageValue(cid,config_str.s_comming) <= os.time()) then selfSay(_t(cid,{'Hello! Your '..getItemNameById(itemid)..' is ready! You want get it now?', 'Olá! sua '..getItemNameById(itemid)..' ja chegou! Você quer ela agora?'}), cid) talkState[talkUser] = 3 else min = math.floor((time-os.time())/60) hours = math.floor((time-os.time())/60/60) selfSay( _t(cid,{'Your '..getItemNameById(itemid)..' will take '.. min..' minutes to come for me.', 'Sua '..getItemNameById(itemid)..' Irá demorar '.. min..' minutos para chegar até mim.'}), cid) end else local str = '' local cont = 1 for name,tab in pairs(items) do str = str.. name.. (cont >= count(items) and '.' or ',') cont = cont+1 end selfSay( _t(cid,{'Hello, i can bring some kind of itens for you, just say what you want. Items: '..str, 'Olá, eu sou um grande viajante e posso trazer algumas coisas pra você! Posso buscar: '..str}) , cid) talkState[talkUser] = 1 end elseif (talkState[talkUser] == 1 and msg ~='bye') then if (items[msg] ~= nil) then selfSay(_t(cid,{'You want to request the '..msg..'? it will cost '..items[msg].cust..' gold coins, are you sure?', 'Você deseja então uma '..msg..'? Isso irá custar '..items[msg].cust..' gold coins, você aceita?'}) , cid) talkState[talkUser] = 2 name = msg else selfSay(_t(cid,{'I\'m not selling the '..msg..'!', 'Eu não vendo '..msg..'!'}) , cid) talkState[talkUser] = 1 end elseif(msgcontains(msg, 'no') and talkState[talkUser] == 2) then selfSay( _t(cid,{"Don\'t worry, i can bring this anytime you want.", 'Sem problemas, eu posso trazer a qualquer momento para você'}) ,cid) talkState[talkUser] = 1 elseif(msgcontains(msg, 'yes') and isInArray({2,3}, talkState[talkUser])) then if (talkState[talkUser] == 2) then if (doPlayerRemoveMoney(cid,items[name].cust)) then hours = doStorage(cid, items[name].itemid) selfSay( _t(cid,{'Thanks for requesting '..name..', it will take '..hours..' hours before come.', 'Obrigado por requisitar uma '..name..', vai levar '..hours..' horas pra chegar até mim.'}), cid) talkState[talkUser] = 0 else selfSay(_t(cid,{'You don\'t have enough money, you need '.. items[name].cust..' gold coins.', 'Você não tem dinheiro suficiente, você precisa de '.. items[name].cust..' gold coins.'}) , cid) talkState[talkUser] = 1 end elseif (talkState[talkUser] == 3) then local itemid = getPlayerStorageValue(cid,config_str.s_itemid) selfSay( _t(cid,{'Here you are, come back again!.', 'Aqui está. Volte sempre!'}) , cid) doPlayerAddItem(cid,itemid,1) setPlayerStorageValue(cid,config_str.s_itemid,-1) setPlayerStorageValue(cid,config_str.s_comming,-1) talkState[talkUser] = 0 end end return true end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) function doStorage(cid,itemid) str = getPlayerStorageValue(cid,config_str.s_comming) hours = math.random(min_hour,max_hour) local time = (os.time())+(1*60*60*hours) setPlayerStorageValue(cid,config_str.s_itemid,itemid) setPlayerStorageValue(cid,config_str.s_comming,time) return hours end function count(t) sum = 0 for k,v in pairs(t) do sum = sum + 1 end return sum end Gostou? O que você pensa sobre isso? Deixe seu comentário!
×