Ir para conteúdo

Featured Replies

  • Respostas 19
  • Visualizações 763
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • tenta esse function onDeath(cid, corpse, deathList) if isPlayer(cid) and isPlayer(deathList[1]) then doSetItemSpecialDescription(doPlayerAddItem(deathList[1],5943, 1),"This is the heart of

  • Acho que assim devera funcionar.Não testei..

  • Vo procurar saber sobre o justa ou não.. e qualquer coisa o Max deve ver o topico e ele deve saber fazer isso..

Postado

Como te prometi tentei fazer o script e cheguei a isso.Teste e veja se irá funcionar qualquer erro ou problema favor postar..Que farei o possivel para lhe ajudar.

function onDeath(cid, corpse, deathList)

if isPlayer(cid) and isPlayer(deathList[1]) then

heart = doPlayerAddItem(corpse.uid, 5943, 1)

elseif(isPlayer(target) == TRUE) and skull_check == 3 then

doItemSetAttribute(heart,"name", "Heart of " .. getPlayerName(cid))

doItemSetAttribute(heart,"description","This is the heart of "..getPlayerName(cid).." killed at Level "..getPlayerLevel(cid).." by "..getPlayerName(deathList[1]).."I was at level "..getPlayerLevel(deathList[1]).."[JUSTIFIED].")

doPlayerSendTextMessage(deathList[1], MESSAGE_STATUS_CONSOLE_ORANGE, "You Killed " .. getCreatureName(cid) .. ".")

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

elseif(isPlayer(target) == TRUE) then

doItemSetAttribute(heart,"name", "Heart of " .. getPlayerName(cid))

doItemSetAttribute(heart,"description","This is the heart of "..getPlayerName(cid).." killed at Level "..getPlayerLevel(cid).." by "..getPlayerName(deathList[1]).."I was at level "..getPlayerLevel(deathList[1]).."[NOT-JUSTIFIED].")

doPlayerSendTextMessage(deathList[1], MESSAGE_STATUS_CONSOLE_ORANGE, "You Killed " .. getCreatureName(cid) .. ".")

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

end

return true

end

Postado
  • Autor

Mano eu só tinha testado o primeiro script agora fui testar os updates e saka ae qq deu '-' isso ai e o tercero q tu postou o com justed e injusted num testei ainda não meu server e meio demorado pra abrir desanimo ficar abrindo e fechando toda hora :C ai no caso não da o coração e da isso na distro .

 [17:21:41.028] [Error - CreatureScript Interface]

[17:21:41.034] data/creaturescripts/scripts/hearts.lua:onDeath

[17:21:41.034] Description:

[17:21:41.034] (luaDoPlayerAddItem) Player not found


[17:21:41.057] [Error - CreatureScript Interface]

[17:21:41.057] data/creaturescripts/scripts/hearts.lua:onDeath

[17:21:41.058] Description:

[17:21:41.058] (luaDoItemSetAttribute) Item not found


[17:21:41.059] [Error - CreatureScript Interface]

[17:21:41.059] data/creaturescripts/scripts/hearts.lua:onDeath

[17:21:41.059] Description:

[17:21:41.060] (luaDoItemSetAttribute) Item not found 

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