Postado Fevereiro 6, 2022 3 anos 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 STYLLER OT 2022
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.