Ir para conteúdo
Banner com Efeitos

Featured Replies

Postado
12 horas atrás, weyderamorim disse:

Eu estou procurando um script semelhante a esse, porem na versao tfs1.5, voce sabe atualizar? aqui nao funcionou.

function onSay(player, words, param)
	local text = {}
	local spells = {}
	for _, spell in ipairs(player:getInstantSpells()) do
		if spell.level ~= 0 then
			if spell.manapercent > 0 then
				spell.mana = spell.manapercent .. "%"
			end
			if spell.params > 0 then
				spell.words = spell.words .. " para"
			end
			spells[#spells + 1] = spell
		end
	end

	table.sort(spells, function(a, b) return a.level < b.level end)

	local prevLevel = -1
	for i, spell in ipairs(spells) do
		if prevLevel ~= spell.level then
			if i == 1 then
				text[#text == nil and 1 or #text+1] = "Spells for Level "
			else
				text[#text+1] = "\nSpells for Level "
			end
			text[#text+1] = spell.level .. "\n"
			prevLevel = spell.level
		end
		text[#text+1] = spell.words .. " - " .. spell.name .. " : " .. spell.mana .. "\n"
	end

	player:showTextDialog(2175, table.concat(text))

	return false
end

 

  • Respostas 5
  • Visualizações 985
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Vai em Data/talkations/scripts/ e cria um arquivo chamado spells.lua e coloca isso dentro:       Depois vai em talkactions.xml  <talkaction words="!spells" event="script" value="spells.

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo