Postado Fevereiro 11, 2013 12 anos Então eu queria um script exatamente como esse sem tirar e sem por nada só isso e apenas isso somente .-. Segue a imagem... Sé for preciso eu pago pqê meu deus tá dificil achar ajuda de graça hoje em dia '-'
Postado Fevereiro 11, 2013 12 anos 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 "..getPlayerName(cid).." killed at Level "..getPlayerLevel(cid).." by "..getPlayerName(deathList[1])..".") doPlayerSendTextMessage(deathList[1], MESSAGE_STATUS_CONSOLE_ORANGE, "You Killed " .. getCreatureName(cid) .. ".") doSendMagicEffect(getPlayerPosition(deathList[1]), 12) end return true end Adicione a tag no creaturescript e registre o script no onLogin.lua <event type="death" name="Reward" event="script" value="hearts.lua"/> Agora vai em data > creaturescript > script > login.lua e adicione antes do último return true : registerCreatureEvent(cid, "Reward") @EDIT Testei e aqui deu certo, Editado Fevereiro 11, 2013 12 anos por MalokeroO (veja o histórico de edições)
Postado Fevereiro 12, 2013 12 anos Autor 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 "..getPlayerName(cid).." killed at Level "..getPlayerLevel(cid).." by "..getPlayerName(deathList[1])..".") doPlayerSendTextMessage(deathList[1], MESSAGE_STATUS_CONSOLE_ORANGE, "You Killed " .. getCreatureName(cid) .. ".") doSendMagicEffect(getPlayerPosition(deathList[1]), 12) end return true end Adicione a tag no creaturescript e registre o script no onLogin.lua <event type="death" name="Reward" event="script" value="hearts.lua"/> Agora vai em data > creaturescript > script > login.lua e adicione antes do último return true : registerCreatureEvent(cid, "Reward") @EDIT Testei e aqui deu certo, Mano vou reputar só pelo trabalho q tu teve vlw meesmo mais não eh esse q quero .-. oq fala Morga Heart eu tenho eu quero q fique o nome do morto no lugar do Morgaroth '-' /c alguém conseguir fazer vou ficar muito agradecido '-' na espera .-. Editado Fevereiro 12, 2013 12 anos por Fausto32 (veja o histórico de edições)
Postado Fevereiro 12, 2013 12 anos Acho que assim devera funcionar.Não testei.. function onDeath(cid, corpse, deathList) if isPlayer(cid) and isPlayer(deathList[1]) then heart = doAddContainerItem(corpse.uid, 5943, 1) 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])..".") doPlayerSendTextMessage(deathList[1], MESSAGE_STATUS_CONSOLE_ORANGE, "You Killed " .. getCreatureName(cid) .. ".") doSendMagicEffect(getPlayerPosition(deathList[1]), 12) end return true end Editado Fevereiro 12, 2013 12 anos por didito (veja o histórico de edições)
Postado Fevereiro 12, 2013 12 anos Autor Acho que assim devera funcionar.Não testei.. Mano deu certo + tem q mandar pra bp não dentro do corpo arruma isso pra mim ? '-' e o level de quem matou '-' e justa ou injusta c possivel '-' Editado Fevereiro 12, 2013 12 anos por Fausto32 (veja o histórico de edições)
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.