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
Ajuda Com Serve Wodbo Alguem Pode Me Ajuda
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 ++
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
Leia esse tutorial >>http://www.webcheats.com.br/forum/tutoriais-otserv/516875-wodbo-criando-novas-transform.html
AJUDEI REP+
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
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.
Nao sou Gigante mas grande o suficiente para entender tudo a minha volta.