Ir para conteúdo
Banner com Efeitos

d0gw4r

Membro
  • Registro em

  • Última visita

Tudo que d0gw4r postou

  1. Tenho certeza que é TFS 1.3. ot/src/definitions.cpp static constexpr auto STATUS_SERVER_VERSION = "Based on TFS 1.3"; Já refiz tudo os passos, com muito cuidado, mas esse erro persiste.
  2. E aí colega, to recebendo esse erro quando tento compilar: /home/ot/ot/src/luascript.cpp: In static member function ‘static int LuaScriptInterface::luaPlayerGetAutoLootList(lua_State*)’: /home/ot/ot/src/luascript.cpp:11329:38: error: conversion from ‘std::unordered_set<unsigned int>’ to non-scalar type ‘std::set<unsigned int>’ requested std::set<uint32_t> value = player->AutoLootList; ^ make[2]: *** [CMakeFiles/tfs.dir/src/luascript.cpp.o] Error 1 make[1]: *** [CMakeFiles/tfs.dir/all] Error 2 Fiz e refiz cada passo, mas nada desse erro sumir do meu terminal. Revisei os registerMethods e parece estar tudo ok, inclusive chequei se não tinha nenhum Upper/Lowercase e tal. Enfim, não sei mais o que fazer. Mas me parece que o problema está aqui: std::set<uint32_t> value = player->AutoLootList; Lembrando que meu TFS é a versão 1.3. De qualquer forma, obrigado por compartilhar.
  3. Nada de erro na distro, eu acabei de corrigir os ids dos casks e kegs, pois estavam diferentes dos que estão configurados no items.xml do meu servidor. Mas mesmo assim esse problema ainda persiste. Só recebo a mensagem: "You cannot use this object" no console do client. No caso da modificação dos ids, foram aqui: caskKegs.lua local targetIdList = { --health potions casks -- health potion kegs [28555] = {itemId = 7636, transform = 7618}, [28579] = {itemId = 7636, transform = 7618}, -- Health Potion -- [28556] = {itemId = 7634, transform = 7588}, [28580] = {itemId = 7634, transform = 7588}, -- Strong Health -- [28557] = {itemId = 7635, transform = 7591}, [28581] = {itemId = 7635, transform = 7591}, -- Great Health -- [28558] = {itemId = 7635, transform = 8473}, [28582] = {itemId = 7635, transform = 8473}, -- Ultimate Health -- [28559] = {itemId = 7635, transform = 26031}, [28583] = {itemId = 7635, transform = 26031}, -- Supreme Health -- --mana potions casks -- mana potion kegs [28565] = {itemId = 7636, transform = 7620}, [28584] = {itemId = 7636, transform = 7620}, -- Mana Potion -- [28566] = {itemId = 7634, transform = 7589}, [28585] = {itemId = 7634, transform = 7589}, -- Strong Mana -- [28567] = {itemId = 7635, transform = 7590}, [28586] = {itemId = 7635, transform = 7590}, -- Great Mana -- [28568] = {itemId = 7635, transform = 26029}, [28587] = {itemId = 7635, transform = 26029}, -- Ultimate Mana -- --spirit potions caks -- spirit potion kegs [28575] = {itemId = 7635, transform = 8472}, [28589] = {itemId = 7635, transform = 8472}, -- Great Spirit -- [28576] = {itemId = 7635, transform = 26030}, [28590] = {itemId = 7635, transform = 26030} --Ultimate Spirit -- } actions.xml <action fromid="28555" toid="28590" script="other/caskKegs.lua"/> Edit: Já consertei o erro, só tive que adicionar algumas linhas de código a mais e arrumar os ids das casks.
  4. Olá a todos, Utilizo o TFS 1.3. Meu problema é o seguinte: Nada acontece ao usar as Casks e Kegs dentro (no caso das kegs) ou fora da mochila (ambas). Segue abaixo o código do script: /data/actions/others/variables/CaskKegs.lua local targetIdList = { --health potions casks [28555] = {itemId = 7636, transform = 7618}, [28579] = {itemId = 7636, transform = 7618}, -- Health Potion -- [28556] = {itemId = 7634, transform = 7588}, [28580] = {itemId = 7634, transform = 7588}, -- Strong Health -- [28557] = {itemId = 7635, transform = 7591}, [28581] = {itemId = 7635, transform = 7591}, -- Great Health -- [28558] = {itemId = 7635, transform = 8473}, [28582] = {itemId = 7635, transform = 8473}, -- Ultimate Health -- [28559] = {itemId = 7635, transform = 26031}, [28583] = {itemId = 7635, transform = 26031}, -- Supreme Health -- --mana potions casks [28565] = {itemId = 7636, transform = 7620}, [28584] = {itemId = 7636, transform = 7620}, -- Mana Potion -- [28566] = {itemId = 7634, transform = 7589}, [28585] = {itemId = 7634, transform = 7589}, -- Strong Mana -- [28567] = {itemId = 7635, transform = 7590}, [28586] = {itemId = 7635, transform = 7590}, -- Great Mana -- [28568] = {itemId = 7635, transform = 26029}, [28587] = {itemId = 7635, transform = 26029}, -- Ultimate Mana -- --spirit potions caks [28575] = {itemId = 7635, transform = 8472}, [28589] = {itemId = 7635, transform = 8472}, -- Great Spirit -- [28576] = {itemId = 7635, transform = 26030}, [28590] = {itemId = 7635, transform = 26030}, --Ultimate Spirit -- } function onUse(player, item, fromPosition, target, toPosition, isHotkey) if target:getId() >= 28535 and target:getId() <= 28590 then local house = player:getTile():getHouse() if house and house:canEditAccessList(SUBOWNER_LIST, player) and house:canEditAccessList(doorId, player) or target:getId() >= 28579 then elseif target:getId() >= 28535 and target:getId() < 28579 then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'Sorry, casks only can be useds inside house.') return false else return false end if target then local charges = target:getCharges() if item:getCount() > charges then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, string.format('Sorry, only Remaining %s charges.', charges)) return false end local targetId = targetIdList[target:getId()] if targetId then if item:getId() == targetId.itemId then item:transform(targetId.transform) charges = charges - item:getCount() target:transform(target:getId(), charges) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, string.format('Remaining %s charges.', charges)) if charges == 0 then target:remove() end end end end return true end end /data/actions/actions.xml <action fromid="7634" toid="7636" script="others/variables/caskKegs.lua"/>
  5. A segunda opção funcionou, muito obrigado!! A propósito, meu type já estava setado em 5.
  6. Nenhum, simplesmente não funciona, já tentei buscar outros scripts, mas em vão!
  7. Muito agradecido! ~Edit @lordzetros agora está dando um outro erro no terminal: Lua Script Error: [CreatureScript Interface] data/creaturescripts/scripts/others/login.lua:onLogin data/creaturescripts/scripts/others/login.lua:106: attempt to index field 'EfreetFaction' (a nil value) stack traceback: [C]: in function '__index' data/creaturescripts/scripts/others/login.lua:106: in function <data/creaturescripts/scripts/others/login.lua:84> ~Edit O storage dos efreet tava errado, tinha que por por exemplo: Storage.DjinnWar.EfreetFaction.Mission03 e estava: Storage.EfreetFaction.Mission03
  8. Olá a todos, Uso o TFS v1.3.10. Recentemente precisei fazer um backup de emergência, e quando fui adicionar os storages no login.lua o terminal acusa o seguinte erro: [Warning - Event::checkScript] Can not load script: scripts/others/login.lua data/creaturescripts/scripts/others/login.lua:114: 'then' expected near char(239) Já revisei essa porcaria e nada de achar esse erro, antes tava funcionando tudo normal... Alguém poderia dar uma olhada no meu login.lua e ver o que fiz de errado? Grato! login.lua ~EDIT Caso resolvido! Deixo aqui o login.lua corrigido para aqueles que se batem em liberar quests e acessos em seus otservers. login.lua
  9. Arranquei os portões no map editor, problema resolvido! ? ~Edit Queria aproveitar o tópico pra perguntar o seguinte: Precisei fazer um backup de emergência, e agora quando fui adicionar os storages no login.lua o terminal acusa o seguinte erro: [Warning - Event::checkScript] Can not load script: scripts/others/login.lua data/creaturescripts/scripts/others/login.lua:114: 'then' expected near char(239) Já revisei essa porcaria e nada de achar esse erro, antes tava funcionando tudo normal... Poderia o senhor @lordzetros ou alguém dar uma olhada no meu login.lua e ver o que fiz de errado? login.lua Grato!
  10. Encontrei aqui, devia ter procurado mais atentamente... Valeu!
  11. Olá a todos, Gostaria de saber se alguém pode me disponibilizar um script de auto save, para salvar a cada 30 minutos, para rodar num TFS 1.3, procurei por tudo que é lugar e não encontro. Grato!
  12. Ele sempre liga sozinho sem vc fazer nada? Me passa mais detalhes de como fazer isso, pois quando dá pane no meu datacenter o ot cai e só eu indo no PC pra ligar pelo terminal manualmente pra fazer ele voltar.
  13. Olá pessoal, Eu adicionei a storage da In Service Of Yalahar em todos os players até a missão de derrotar Azerus no login.lua, segue o código: Obs: Meu TFS é o 1.3.10. --In Service of Yalahar Quest if player:getStorageValue(Storage.InServiceofYalahar.Mission10) ~= 1 then player:setStorageValue(Storage.InServiceofYalahar.Questline, 5) --> START player:setStorageValue(Storage.InServiceofYalahar.Mission01, 6) --> MISSION 1 player:setStorageValue(Storage.InServiceofYalahar.Mission02, 8) player:setStorageValue(Storage.InServiceofYalahar.Mission03, 6) player:setStorageValue(Storage.InServiceofYalahar.Mission04, 6) player:setStorageValue(Storage.InServiceofYalahar.Mission05, 8) player:setStorageValue(Storage.InServiceofYalahar.Mission06, 5) player:setStorageValue(Storage.InServiceofYalahar.Mission07, 5) player:setStorageValue(Storage.InServiceofYalahar.Mission08, 4) player:setStorageValue(Storage.InServiceofYalahar.Mission09, 2) player:setStorageValue(Storage.InServiceofYalahar.Mission10, 1) --> OPEN MISSION Era para todos poderem entrar em todos os portões dos quarters, certo? Não é o que está acontecendo e não consigo solucionar isso, esse é o script dos mechanism que teleportam para dentro dos quarters, que ficam no diretório /data/actions/scripts/quests/in service of yalahar: local mechanisms = { [3091] = {pos = {x = 32744, y = 31161, z = 5}, value = 21}, -- Alchemist [3092] = {pos = {x = 32744, y = 31164, z = 5}, value = 21}, [3093] = {pos = {x = 32833, y = 31269, z = 5}, value = 24}, -- Trade [3094] = {pos = {x = 32833, y = 31266, z = 5}, value = 24}, [3095] = {pos = {x = 32729, y = 31200, z = 5}, value = 29}, -- Arena [3096] = {pos = {x = 32734, y = 31200, z = 5}, value = 29}, [3097] = {pos = {x = 32776, y = 31141, z = 5}, value = 35}, -- Cemetery [3098] = {pos = {x = 32776, y = 31145, z = 5}, value = 35}, [3099] = {pos = {x = 32874, y = 31202, z = 5}, value = 41}, -- Sunken [3100] = {pos = {x = 32869, y = 31202, z = 5}, value = 41}, [3101] = {pos = {x = 32856, y = 31251, z = 5}, value = 45}, -- Factory [3102] = {pos = {x = 32854, y = 31248, z = 5}, value = 45} } local mechanisms2 = { [9235] = {pos = {x = 32773, y = 31116, z = 7}}, [9236] = {pos = {x = 32780, y = 31115, z = 7}} } function onUse(player, item, fromPosition, target, toPosition, isHotkey) if(mechanisms[item.uid]) then if(player:getStorageValue(Storage.InServiceofYalahar.Questline) >= mechanisms[item.uid].value) then player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) player:teleportTo(mechanisms[item.uid].pos) player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) else player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "The gate mechanism won't move. You probably have to find a way around until you figure out how to operate the gate.") end elseif(mechanisms2[item.uid]) then player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) player:teleportTo(mechanisms2[item.uid].pos) player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) end return true end O que eu tenho que alterar? Já adicionei todos os storage values que tinham no arquivo 051-storages.lua sobre a In Service Of Yalahar Quest.
  14. Desculpe a ignorância, não sou nenhum expert em lua, mas tenho uma dúvida. em: local storageValue = { {12130, 1}, {12131, 2}, {12132, 3} Eu vou adicionando todos os storageids de todas as missões (com suas respectivas ids), os quais quero conceder acesso? Ou isso serve para uma única quest? No caso eu apenas coloco as storages e os ids referentes somente à essa quest e para as outras eu tenho que colocar mais uma function? Grato pelo código! ~Edit Já consegui com outro código aqui, mas valeu mesmo assim, aprendi a fazer na marra... kkk
  15. Oi pessoal, Seguinte, quando executo o comando /B em meu ot, o mesmo não funciona, não aparece nenhuma mensagem em vermelho que os GMs e GODs costumam enviar para todos. Queria que ele fizesse isso. Segue meu /data/talkactions/scripts/broadcast.lua function onSay(player, words, param) if not getPlayerFlagValue(player, PlayerFlag_CanBroadcast) then return true end print("> " .. player:getName() .. " broadcasted: \"" .. param .. "\".") for _, targetPlayer in ipairs(Game.getPlayers()) do targetPlayer:sendPrivateMessage(player, param, TALKTYPE_BROADCAST) end return false end /data/talkactions/talkactions.lua <talkaction words="/B" separator=" " script="broadcast.lua" /> O que tem de errado? Grato!
  16. Olá, recentemente observei dois erros no terminal do meu otserver: Meu otserver é o OTServerBR Global-Master (baseado em TFS 1.3), seguem os erros abaixo: [C]: in function '__le' data/lib/core/quests.lua:3425: in function 'isQuestStorage' data/lib/core/quests.lua:3618: in function 'updateStorage' data/events/scripts/player.lua:1140: in function <data/events/scripts/player.lua:1139> [C]: in function 'setStorageValue' e esse também: [C]: in function 'setStorageValue' data/npc/scripts/Dalbrect.lua:43: in function 'callback' data/npc/lib/npcsystem/npchandler.lua:431: in function 'onCreatureSay' data/npc/scripts/Dalbrect.lua:7: in function <data/npc/scripts/Dalbrect.lua:7> Agora seus respectivos códigos lua: Como alguns arquivos tem centenas de linhas de códigos, e eu não sei qual colar aqui em específica, nem o que tem de errado com eles, então estou deixando cada um aqui com os seus respectivos scans: data/events/scripts/player.lua player.lua Scan data/lib/core/quests.lua quests.lua Scan data/npc/scripts/Dalbrect.xml Dalbrect.xml Scan data/npc/lib/npcsystem/npchandler.lua npchandler.lua Scan Desde já, grato!
  17. Olá, estou tendo problemas em encontrar um script que fica enviando mensagens por private quando se loga no servidor. Segue uma imagem ilustrando o problema: O problema é que estou procurando em tudo que é pasta no meu OT e não encontro de jeito nenhum. É a versão OTServer-BR Global Master (baseado no TFS 1.3). Se alguém souber como desativa isso, me ajuda por favor. @@@Edit Encontrei o maldito arquivo, fica em login.lua.
  18. Olá, eu já consegui consertar, mas obrigado mesmo assim! Deixarei o script bugado e o corrigido aqui pra caso alguém por aí, que tenha o mesmo problema que eu, possa encontrar esse post. Eis o script defeituoso: function onUse(creature, item, position, fromPosition, pos, target, toPosition) if player:getStorageValue(Storage.Exaust.Time) >= os.time() then player:sendTextMessage(MESSAGE_STATUS_SMALL, 'You are exhausted.') return true end local player = creature:getPlayer() local tilepos1 = {x=32910, y=32339, z=15} local tilepos2 = {x=32911, y=32339, z=15} local tilepos3 = {x=32910, y=32338, z=15} local tilepos4 = {x=32911, y=32338, z=15} if not player then return end if player:getItemCount(2147) >= 1 and pos.x == tilepos1.x or pos.x == tilepos2.x and pos.y == tilepos1.y or pos.y == tilepos3.y and pos.z == tilepos1.z then player:removeItem(2147, 1) player:teleportTo(Position(33586,32263, 7)) player:getPosition():sendMagicEffect(CONST_ME_MAGIC_RED) return true end player:setStorageValue(Storage.Exaust.Time, os.time()) return true end Eis a correção: function onUse(creature, item, position, fromPosition, pos, target, toPosition) local player = Player(creature) if not player then return false end if player:getStorageValue(Storage.Exaust.Time) >= os.time() then player:sendTextMessage(MESSAGE_STATUS_SMALL, 'You are exhausted.') return false end local tilepos1 = {x=32910, y=32339, z=15} local tilepos2 = {x=32911, y=32339, z=15} local tilepos3 = {x=32910, y=32338, z=15} local tilepos4 = {x=32911, y=32338, z=15} if player:getItemCount(2147) >= 1 and pos.x == tilepos1.x or pos.x == tilepos2.x and pos.y == tilepos1.y or pos.y == tilepos3.y and pos.z == tilepos1.z then player:removeItem(2147, 1) player:teleportTo(Position(33586,32263, 7)) player:getPosition():sendMagicEffect(CONST_ME_MAGIC_RED) end player:setStorageValue(Storage.Exaust.Time, os.time()) return true end Até mais!
  19. Utilizo o servidor OTServBR Global Master baseado no TFS 1.3. Quando tento utilizar as pedras (ex: small ruby) nas shrines, nada acontece e no terminal do ot aparece o seguinte erro: Erro da Ice Shrine: Erro da Fire Shrine: Screenshot O que tem de errado? Desde já, grato!
  20. Curti o layout do client, já vi em outros ots, como faço pra conseguir por esse layout modificado num client 10? Sabe de algum tutorial na net? Grato!
  21. #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'CREATE TABLE IF NOT EXISTS `PagSeguroTransacoes` ( `TransacaoID` varchar(3' at line 1 Fiz tudo como manda o figurino, estou usando o site Gesior ACC, porém ao executar a querry na minha database do ot, ocorre esse erro.

Informação Importante

Confirmação de Termo