Ir para conteúdo

Featured Replies

Postado
  • Autor

Aaagora siim Vodkart REP+ !

Mais me diz uma coisa voce conseguiria colocar um deathbroadcast junto? por exemplo

na hora que ele matasse e pegasse o coração aparecese em broadcast:

O Jogador Fulano[Level] matou Ciclano[Level]. E retirou seu "nome do coração"

Obrigado :]

@Edit, Vodkart.

Não teria como colocar pra quando matar PK também pegar o coração ? Valeo

Disturbbed.

Editado por Disturbbed (veja o histórico de edições)

  • Respostas 24
  • Visualizações 3.4k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • function onDeath(cid, corpse, deathList) function getHeartFromNivel(cid) local t = { [{1000,2000}] = 5943, [{2001,3000}] = 2353, [{3001,4000}] = 1685, [{4001,5000}] = 11361, [{5001,6000}] = 105

  • creaturescript.xml <event type="death" name="HeartDrop" event="script" value="heart.lua"/> no login.lua vc adc registerCreatureEvent(cid, "HeartDrop")

  • editei ali em cima

Posted Images

Postado
function onDeath(cid, corpse, deathList)

function getHeartFromNivel(cid)

local t = {

[{1000,2000}] = 5943,

[{2001,3000}] = 2353,

[{3001,4000}] = 1685,

[{4001,5000}] = 11361,

[{5001,6000}] = 10552,

[{6001,math.huge}] = 10577

}

for var, ret in pairs(t) do

if getPlayerLevel(cid) >= var[1] and getPlayerLevel(cid) <= var[2] then

k  = ret

end

end

return k

end

if isPlayer(cid) and getPlayerLevel(cid) >= 1000 and isPlayer(deathList[1]) then

local item = getHeartFromNivel(cid)

doItemSetAttribute(doPlayerAddItem(deathList[1],item, 1), "description", "This is the heart of "..getPlayerName(cid).." killed at Level "..getPlayerLevel(cid).." by "..getPlayerName(deathList[1])..".")

if getPlayerLevel(cid) >= 5000 then

doBroadcastMessage("O Jogador ".. getCreatureName(deathList[1]) .. "[" .. getPlayerLevel(deathList[1]) .. "] Matou " .. getCreatureName(cid) .. "[" .. getPlayerLevel(cid) .. "] E retirou seu "..getItemNameById(item),18)

end

doSendMagicEffect(getPlayerPosition(deathList[1]), 12)

end

return true

end

vodkart_logo.png

[*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*]

 

DISCORDvodkart#6090

 

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