victorioapocalipse 0 Postado Outubro 6, 2011 Share Postado Outubro 6, 2011 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 Link para o comentário Compartilhar em outros sites More sharing options...
8998233 2 Postado Outubro 6, 2011 Share Postado Outubro 6, 2011 (editado) 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 ++ Editado Outubro 6, 2011 por PerayDoido Link para o comentário Compartilhar em outros sites More sharing options...
victorioapocalipse 0 Postado Outubro 6, 2011 Autor Share Postado Outubro 6, 2011 (editado) 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 Outubro 6, 2011 por victowodbo Link para o comentário Compartilhar em outros sites More sharing options...
Magicsurf 2 Postado Outubro 15, 2011 Share Postado Outubro 15, 2011 Leia esse tutorial >>http://www.webcheats.com.br/forum/tutoriais-otserv/516875-wodbo-criando-novas-transform.html AJUDEI REP+ Link para o comentário Compartilhar em outros sites More sharing options...
Gabriel Couto 293 Postado Outubro 17, 2011 Share Postado Outubro 17, 2011 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 Compartilhar em outros sites More sharing options...
coyotestark 24 Postado Outubro 28, 2011 Share Postado Outubro 28, 2011 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 Compartilhar em outros sites More sharing options...
Posts Recomendados