Postado Janeiro 14, 2015 10 anos @ADM Lucas OTBR Pronto agr vai funcionar testei aqui. function onKill(cid, target) if isPlayer(cid) and isPlayer(target) == true then local heart = doPlayerAddItem(cid, 5943, 1) doItemSetAttribute(heart, "description", "Killed at " .. getPlayerLevel(target) .. " by " .. getPlayerName(cid) .. ".") end return true end @zipter98 Depois de 30 minutos fazendo cagada aqui olhei um script e vi isso msm hahaha, só que percebi que essa função doSetItemSpecialDescription(uid, descri) fica adicionando item infinitamente ao player Editado Janeiro 14, 2015 10 anos por Summ (veja o histórico de edições)
Postado Janeiro 15, 2015 10 anos Autor @ADM Lucas OTBR Pronto agr vai funcionar testei aqui. function onKill(cid, target) if isPlayer(cid) and isPlayer(target) == true then local heart = doPlayerAddItem(cid, 5943, 1) doItemSetAttribute(heart, "description", "Killed at " .. getPlayerLevel(target) .. " by " .. getPlayerName(cid) .. ".") end return true end @zipter98 Depois de 30 minutos fazendo cagada aqui olhei um script e vi isso msm hahaha, só que percebi que essa função doSetItemSpecialDescription(uid, descri) fica adicionando item infinitamente ao player Summ a script funcionou perfeitamente, só uma dúvida. Será que tem como mudar o nome do item para o nome do player ? Tipo: Ao invés de : 18:27 You see the Morgaroth's heart. It weighs 35.00 oz. Killed at 8 by Tester. Ficaria: 18:27 You see the Funalo's heart. It weighs 35.00 oz. Killed at 8 by Tester.
Postado Janeiro 15, 2015 10 anos Solução function onKill(cid, target) if isPlayer(cid) and isPlayer(target) == true then local heart = doPlayerAddItem(cid, 5943, 1) doItemSetAttribute(heart, "description", "Killed at " .. getPlayerLevel(target) .. " by " .. getPlayerName(cid) .. ".") doItemSetAttribute(heart, "name", "the "..getCreatureName(target).."'s heart") end return true end Editado Janeiro 15, 2015 10 anos por zipter98 (veja o histórico de edições) não respondo pms solicitando suporte em programação/scripting
Postado Janeiro 16, 2015 10 anos Autor @Zipter e @Summ Cara, vocês são f@da velho! Muitíssimo obrigado! Como eu ganho ++REP para dar pra vocês? Hahahaha
Postado Janeiro 16, 2015 10 anos Valeu pelo elogio. :3 E não precisa dar rep não hehe xD não respondo pms solicitando suporte em programação/scripting
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.