function onUse(cid, item, fromPosition, itemEx, toPosition) local str = {"\nSpiritual Shielding", "\nEmbrace of Tibia", "\nFire of the Suns", "\nSpark of the Phoenix", "\nWisdom of Solitude", "\nTwist of Fate"} local result = "Received blessings:" for i = 1, 6 do result = getPlayerBlessing(cid, i) a
Agora vai, testei aqui e deu certo. function onUse(cid, item, frompos, item2, topos) local str = {"\nSpiritual Shielding", "\nEmbrace of Tibia", "\nFire of the Suns", "\nSpark of the Phoenix", "\nWisdom of Solitude", "\nTwist of Fate"} local result = "Received blessings:" for i = 1, 6 do result = ge
info
Grupo: Artesão
Registrado: 01/07/18
Posts: 118
Reputação: +1
Gênero: Masculino
function onUse(cid, item, fromPosition, itemEx, toPosition)
local str = {"\nSpiritual Shielding", "\nEmbrace of Tibia", "\nFire of the Suns", "\nSpark of the Phoenix", "\nWisdom of Solitude", "\nTwist of Fate"}
local result = "Received blessings:"
local player = Player(cid)
for i = 1, 6 do
result = player:hasBlessing(i) and result .. str or result
end
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 20 > result:len() and "No blessings received." or result)
return true
end