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 ++ ![]()







info
Grupo: Campones
Registrado: 06/10/11
Posts: 2
Reputação: 0
Char 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