quinta-feira, 9 de fevereiro de 2012

saber spells de vocation comando simples


Nome: !spells
Versão: 8.1
Tipo do script: talkactions
Servidor Testado: Em Teste Thyrania 0.2.81
Autor: ♀LэoйªM♀


Isso Galera Os Cara Entrão No Seu Ot e nao sabe o spells que o ot tem
seus problema acabarão chegou !spells para ajudalo 

Thyrania 0.2.81 XML\data\talkactions
<talkaction words="!spells" script="spells.lua"/>
Thyrania 0.2.81 XML\data\talkactions\scripts
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
A Vocation que usa o !spells ela mostra os spells que a vocation tem 


Com Esse codigo ele ajuda a todos so funcinona com PLAYER....

♀LэoйªM♀ é meu RL 

Nenhum comentário:

Postar um comentário