Ir para conteúdo
  • Cadastre-se

Ramon RBN

Membro
  • Total de itens

    35
  • Registro em

  • Última visita

Tudo que Ramon RBN postou

  1. Editei ali em cima, me chama no discord a gente resolve e depois posto a solução aqui. RBN#2718
  2. Isso deveria estar funcionando O.o function getDodge(cid) local total = 0 for i = 1, 10 do local item = getPlayerSlotItem(cid, i) if item.itemid > 0 then local attr = getItemAttribute(item.uid, "dodgePercent") total = total + (attr ~= nill and attr or 0) end end return total end
  3. function getDodge(cid) local total = 0 for i = 1, 10 do local item = getPlayerSlotItem(cid, i) if item.itemid > 0 then local attr = getItemAttribute(item.uid, "dodgePercent") if attr ~= nil then total = total + attr end end end return total end
  4. function getDodge(cid) local total = 0 for i = 1, 10 do local item = getPlayerSlotItem(cid, i) if item.itemid > 0 then total = total + getItemAttribute(item.uid, "dodgePercent") end end return total end
  5. lua trola muito function getDodge(cid) local total = 0 for i = 1, 10 do local item = getPlayerSlotItem(cid, i) if item.itemid > 0 then local attr = getItemAttribute(item.uid, "dodgePercent") or 0 total = total + attr end end return total end
  6. Agora é 100% kkkkkk function getDodge(cid) local total = 0 for i = 1, 10 do local item = getPlayerSlotItem(cid, i) if item.itemid > 0 then local attr = getItemAttribute(item.uid, "dodgePercent") if attr > 0 then total = total + attr end end end return total end
  7. Eu usei as dll que gera a partir da compilação, joguei tudo na pasta e executei. Testei com outro TFS e parece mesmo ser as dll porém não sei qual, vou procurar aqui. #SOLUÇÃO Consegui resolver por outro fórum, aqui algumas soluções que encontrei: Meu tópico no outro fórum: aqui É importante usar o CMD para executar o seu '.exe', é bem fácil. Abra o CMD, coloque 'cd <destino do seu projeto>', logo após isso use '<seu executador>.exe' para iniciar. Problema com dummy: avoid name conflict from boost::variant Soluçã
  8. function getDodge(cid) local total = 0 for i = 1, 10 do local item = getPlayerSlotItem(cid, i) if item.itemid > 0 then local attr = getItemAttribute(item.uid, "dodgePercent") if attr ~= nil and attr > 0 then total = total + attr end end end return total end
  9. function getDodge(cid) local total = 0 for i = 1, 10 do local item = getPlayerSlotItem(cid, i) if item.itemid > 0 then local attr = getItemAttribute(item.itemid, "dodgePercent") if attr ~= nil and attr > 0 then total = total + attr end end end return total end
  10. Tenta novamente com o código lá, editei ele.
  11. function getDodge(cid) local total = 0 for i = 1, 10 do local item = getPlayerSlotItem(cid, i) if item.itemid > 0 then total = total + (getItemAttribute(item.itemid, "dodgePercent") or 0) end end return total end
  12. function getDodge(cid) local total = 0 for i = 1, 10 do item = getPlayerSlotItem(cid, i).itemid if item.itemid > 0 then total = total + (getItemAttribute(item, "dodgePercent") or 0) end end return total end Agora vai
  13. Tente uma dessas duas formas, talvez de certo: function getDodge(cid) local total = 0 for i = 1, 10 do total = total + (getItemAttribute(getPlayerSlotItem(cid, i), "dodgePercent") or 0) end return total end function getDodge(cid) local total = 0 for i = 1, 10 do total = total + (getItemAttribute(getPlayerSlotItem(cid, i).itemid, "dodgePercent") or 0) end return total end
  14. Qual script que você usa para aparecer no look do item?
  15. Você tem certeza que todos itens tem o atributo? dodgePercent Tenta assim: function getDodge(cid) local total = 0 for i = 1, 10 do total = total + (getItemAttribute(getPlayerSlotItem(cid, i).uid, "dodgePercent") or 0) end return total end
  16. Você não alterou a linha que lhe mostrei, '/200], string = string..' [Dodge: ' ..getDodge(cid).. %']' Dessa forma:
  17. Você está alterando o que eu te mandei, pensei que o problema seria o código mas é a forma como você alterou. No final tem essa parte ..'/200], 'string = string..' [Dodge: ' ..getDodge(cid).. '%].') O erro é, você ao abrir uma função nos '' precisa preencher com dois pontos antes e depois dela, exemplo: '..string..' Porém a forma que você fez está errada pois o ' ..getDodge(cid).. ' já retorna o número, não precisa usar string = string.. a forma correta é ..'/200], [Dodge: ' ..getDodge(cid).. '%].') Na parte de baixo, é usad
  18. Atualização: Após apagar tudo (boost, sdk, projeto, msvs) e baixar o msvs 2019 junto com o vcpkg x64/x86, consegui compilar porém o TFS não da nenhum sinal de vida. A tela fica preta ao abrir e fecha após um tempo de 1 a 3 segundos. Testei com os projetos: TFS 1.3 TFS 1.3 downgrade 8.60 CFP: Visual Studio 2017 (v141) Tentei também com o v142 porém da erro de memory: Erro C2664 'void std::_Normal_allocator_traits<_Alloc>::destroy<_Ty>(_Alloc &,_Ty *)': não é possível converter um argumento 1 de '_Alloc' em '_Alloc &' Log de compil
  19. function getDodge(cid) local total = 0 for i = 1, 10 do local item = getPlayerSlotItem(cid, i) total = total + (getItemAttribute(item.uid, "dodgePercent") or 0) end return total end Esqueci do retorno, tenta novamente
  20. No seu sistema de look, muda a primeira parte pela segunda. O getFrags ta retornando nulo em um valor numérico.
  21. Estou com problema ao tentar compilar o TFS 1.3/8.60 no MSVS. Source usada: Aqui (Github) Já tentei as versões: MSVS 2019 MSVS 2017 MSVS 2015 Com boost: boost_1_62_0 (32bit e 64bit) boost_1_66_0 (32bit e 64bit) Com SDK: 3.2 2.0 Windows SDK: 10.0.17763.0 10.0.18362.0 8.1 Tentei também com vcpkg: libs 64bit PROBLEMA: Não é possível abrir arquivo incluir: 'pugixml.hpp': No such file or directorY Imagens com MSVS2017/SDK 3.2/LIB 1_62_32b/
  22. Existe três emblemas. No seu login.lua da pasta creaturescript, adicione após: if(getPlayerAccountManager(cid) == MANAGER_NONE) then Apenas jogadores vão ter escudo, account manager não. if getPlayerVocation(cid) == 0 then doCreatureSetGuildEmblem(cid, 1) end if getPlayerVocation(cid) == 1 then doCreatureSetGuildEmblem(cid, 2) end ID da vocação: "== 0" "== 1" Número do emblema: (cid, 1) (cid, 2) Lembre-se, normalmente começa com 0, que seria jogadores com nenhuma vocação. 1 e 5 = sorcerer / master sorcerer 2 e 6 = druid / elder dru
  23. Esse erro é do seu sistema de frag data/creaturescripts/scripts/fraglook.lua:6: attempt to call global 'getPlayerFrags' (a nil value) data/creaturescripts/scripts/fraglook.lua:6: attempt to call global 'getPlayerFrags' (a nil value) nessa linha doPlayerSetSpecialDescription(cid,' [Frags: ' .. getPlayerFrags(thing.uid) .. '], [Critical: '..math.max(0,(tonumber(getCreatureStorage(cid,48903)) or 0))..'/100].') tente alterar return size.day + size.week + size.month para return (size.day + size.week + size.month) or 0 Teve algum erro além dess
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo