Ir para conteúdo

Posts Recomendados

Gente eu criei um otserv de wodbo by joao entrou tudo de boa so que tem um probleminha ele nao ta pegando magia quando eu falo : tecnicas ,tenchique,spels nao aparece nada eu so queria saber como coloco pra quando eu fala tecnicas, spels ou tenchiques aparecer as magia pf me ajudem agradeço muito sse ajuda :thumbsupsmiley:

Link para o comentário
https://xtibia.com/forum/topic/169217-ajuda-com-serve-wodbo-alguem-pode-me-ajuda/
Compartilhar em outros sites

Ei Amigo Sou Novo Aki Tambem Mais Acho Que Você Postou Na Area Errada

 

Mas Vamos La!

 

Va Na Pasta Do Seu Ot E Em Seguida Va Na Pasta Data/Talkactions/Scripts

Copie Qualquer Arquivo Ponto Lua E Renomeie Para spells

Delete Tudo Que Esta Dentro Dele e Ponha Isso.

 

 

function onSay(cid, words, param)

local count = getPlayerInstantSpellCount(cid)

local text = ""

local t = {}

for i = 0, count - 1 do

local spell = getPlayerInstantSpellInfo(cid, i)

if spell.level ~= 0 then

if spell.manapercent > 0 then

spell.mana = spell.manapercent .. "%"

end

table.insert(t, spell)

end

end

table.sort(t, function(a, b) return a.level < b.level end)

local prevLevel = -1

for i, spell in ipairs(t) do

local line = ""

if prevLevel ~= spell.level then

if i ~= 1 then

line = "\n"

end

line = line .. "Spells for Level " .. spell.level .. "\n"

prevLevel = spell.level

end

text = text .. line .. " " .. spell.words .. " - " .. spell.name .. " : " .. spell.mana .. "\n"

end

doShowTextDialog(cid, 2175, text)

return TRUE

end

 

 

Depois Voute Na Pasta Talkactions Abra O Arquivo talkactions.xml E Coloque Isso.

 

 

<talkaction words="Tecnicas" script="spells.lua" />

<talkaction words="tecnicas" script="spells.lua" />

<talkaction words="Spells" script="spells.lua" />

<talkaction words="spells" script="spells.lua" />

 

 

 

 

Se Te Ajudei Rep ++ :D

Editado por PerayDoido
Link para o comentário
https://xtibia.com/forum/topic/169217-ajuda-com-serve-wodbo-alguem-pode-me-ajuda/#findComment-1112472
Compartilhar em outros sites

cara vlw mermo vo testa ake pra ve se da certo mais mesmo assim vo te da rep + :smile_positivo: ei pow se puder ajuda so mais um pokim pode me falar como coloca transforms lv 400

Editado por victowodbo
Link para o comentário
https://xtibia.com/forum/topic/169217-ajuda-com-serve-wodbo-alguem-pode-me-ajuda/#findComment-1112499
Compartilhar em outros sites

  • 2 weeks later...

Movido para a seção correta.

Mais atenção com as seções ao postar.

 

 

Se houver reincidência, será alertado.

Link para o comentário
https://xtibia.com/forum/topic/169217-ajuda-com-serve-wodbo-alguem-pode-me-ajuda/#findComment-1118170
Compartilhar em outros sites

  • 2 weeks later...

va em talkactions copie um arquivo qualquer e renomeio para spells.lua

dentro dele coloque isto.

 

function onSay(cid, words, param)
   local count = getPlayerInstantSpellCount(cid)
   local text = ""
   local t = {}
   for i = 0, count - 1 do
       local spell = getPlayerInstantSpellInfo(cid, i)
       if spell.level ~= 0 then
           if spell.manapercent > 0 then
               spell.mana = spell.manapercent .. "%"
           end
           table.insert(t, spell)
       end
   end
   table.sort(t, function(a, b) return a.level < b.level end)
   local prevLevel = -1
   for i, spell in ipairs(t) do
       local line = ""
       if prevLevel ~= spell.level then
           if i ~= 1 then
               line = "\n"
           end
           line = line .. "Spells for Level " .. spell.level .. "\n"
           prevLevel = spell.level
       end
       text = text .. line .. "  " .. spell.words .. " - " .. spell.name .. " : " .. spell.mana .. "\n"
   end
   doShowTextDialog(cid, 2175, text)
   return TRUE
end

em talkactions.xml adicione esta tag

<talkaction words="spell list" script="spells.lua" />

lembrando que tera que dizer

spell list.

tente trocar para outro.

Link para o comentário
https://xtibia.com/forum/topic/169217-ajuda-com-serve-wodbo-alguem-pode-me-ajuda/#findComment-1124146
Compartilhar em outros sites

×
×
  • Criar Novo...