Postado Fevereiro 10, 2016 9 anos Tenta ai: o arquivos gems.lua dentro da pasta actions, troque o código por esse: Spoiler function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerGroupId(cid) > 2 and getPlayerGroupId(cid) < 5 then return true end local voc = getPlayerVocation(cid) if getPlayerPromotionLevel(cid) > 0 then voc = voc - (getPlayerPromotionLevel(cid) * 4) end gem = gems.id[voc] if item.itemid == gem then if getPlayerPromotionLevel(cid) > 0 then if getPlayerStorageValue(cid,21202) == -1 then setPlayerStorageValue(cid,21202,1) doUseGem(cid, item) doPlayerSendTextMessage(cid,22,"Você absorveu uma gema espiritual!") doSendMagicEffect(getPlayerPosition(cid),65) else doPlayerSendTextMessage(cid,22,"Você ainda possui uma gema espiritual absorvida.") end end else return false end return true end Agora em creaturescripts/scripts/login.lua Procure por onLogin E abaixo dessa linha adicione o seguinte: if getPlayerStorageValue(cid, 21202) <= 0 then setPlayerStorageValue(cid, 21202, 1) end Editado Fevereiro 10, 2016 9 anos por Sekk (veja o histórico de edições) GitHub: https://github.com/s3kk Conteúdo: [SERVER] Heromassa[GESIOR] Gesior 2012 modificado por Sekk[GESIOR] Shop Addons & Mounts - TFS 1.x[GESIOR] Outfitter para Characters e Rank[SISTEMA] Castle 24h[TALKACTION] Multi Element Wand[ACTION] Multi Elemental Arrow & Shield[PROGRAMAÇÃO] Compilar TFS 0.4 no Linux[PROGRAMAÇÃO] Compilando TFS 0.4 no MSVC(x64 e x32) [INFRAESTRUTURA] Configuração COMPLETA Google VM + Tibia 11.x
Postado Fevereiro 11, 2016 9 anos Autor não deu certo ainda não men, não da erro na distro, mais a aura não aparece nos character's @Sekk Editado Fevereiro 11, 2016 9 anos por Micheel15 (veja o histórico de edições)
Postado Fevereiro 12, 2016 9 anos Autor duvida solucionada, agradeço a todos que me ajudaram, reputei todos que deu hj, os que não deu, não esquecerei de reputar amanha !!! pode fechar o post consegui baixando o servidor, que está no link que o @xWhiteWolf passou logo a cima !!!. leia o post ele explica certinho @up GALERA FICOU MAIS UMA DUVIDA QUANDO, DESLOGA, OU MORRE PARA DE PISCAR A AURA, DAI SE TENTA USAR A GEM APARECE A MSG, PODERIAM ME EXPLICAR PORQUE ? EU GOSTARIA, QUE MESMO QUE MORECE OU DESLOGA-SE DEPOIS DE USAR A GEM A PRIMIRA VEZ ELE NÃO PRECISA-SE MAIS USAR, E TIVESSE A SUA AURA PARA SEMPRE !!! @Sekk , @Xagah , Editado Fevereiro 12, 2016 9 anos por Micheel15 (veja o histórico de edições)
Postado Fevereiro 12, 2016 9 anos 10 horas atrás, Micheel15 disse: GALERA FICOU MAIS UMA DUVIDA QUANDO, DESLOGA, OU MORRE PARA DE PISCAR A AURA, DAI SE TENTA USAR A GEM APARECE A MSG, PODERIAM ME EXPLICAR PORQUE ? lê o tutorial direito e faz tudo igual to explicando no link... vc tem que adicionar no login.lua essa linha aqui pra ela sempre recarregar a aura ao logar:creaturescripts\scripts\login.lua:adicionar antes do ultimo return true: if getPlayerStorageValue(cid, 21202) > 0 then local voc = getPlayerVocation(cid) if getPlayerPromotionLevel(cid) > 0 then voc = voc - (getPlayerPromotionLevel(cid) * 4) end if getPlayerStorageValue(cid, gems.storage[voc]) > 0 then sendGemEffect(cid, gems.storage[voc], gems.interval[voc]) end end Todos os meus trabalhos importantes estão na seção "Sobre mim" no meu perfil; Dá uma passada lá! "Há três caminhos para o fracasso: não ensinar o que se sabe, não praticar o que se ensina, e não perguntar o que se ignora." - São Beda (obg ao @Beeny por fazer essa linda sign <3)
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.