Ajuda Com Serve Wodbo Alguem Pode Me Ajuda

victorioapocalipse
em Lixeira Pública

victorioapocalipse

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 06/10/11Posts: 2Char no Tibia: nao tenho

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:

8998233

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 06/03/11Posts: 2

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

victorioapocalipse

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 06/10/11Posts: 2Char no Tibia: nao tenho

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

Gabriel Couto

Anyur
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 22/04/11Posts: 2455Gênero: MasculinoChar no Tibia: Thyn Zare

Movido para a seção correta.

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

 

 

Se houver reincidência, será alertado.

Gabriel Couto, 23 anos. Acadêmico de Medicina.

Ex-Diretor Geral do XTibia.

 

www.tibiatv.com.br

 

 

coyotestark

avatar
Visconde
Visconde

INFOS

Grupo: ViscondeRegistrado: 15/02/11Posts: 259Char no Tibia: Aias Laf Du

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.

385417_122391137880813_100003297811828_101325_1909172176_n.jpg

Nao sou Gigante mas grande o suficiente para entender tudo a minha volta.