Ir para conteúdo

Posts Recomendados

Crie ,

data/creaturescripts/sctipts/reward.lua

-- Credits to Shawak 
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller) 
local cidpos = getPlayerPosition(lastHitKiller) 
loot = 5943 
item = doPlayerAddItem(lastHitKiller,loot,1) 
if(isPlayer(lastHitKiller) == TRUE) then 
hitKillerName = getPlayerName(lastHitKiller) 
doSetItemSpecialDescription(item,"This is the heart of "..getPlayerName(cid).." killed at Level "..getPlayerLevel(cid).." by "..hitKillerName..".") 
doPlayerSendTextMessage(lastHitKiller, MESSAGE_STATUS_CONSOLE_ORANGE, "You Killed " .. getCreatureName(cid) .. ".") 
doSendMagicEffect(cidpos,12) 
else 
hitKillerName = getCreatureName(lastHitKiller) 
doSetItemSpecialDescription(item,"This is the heart of "..getPlayerName(cid).." killed at Level "..getPlayerLevel(cid).." by a "..hitKillerName..".") 
end 
setItemName(item, ""..getPlayerName(cid).."\'s Heart") 
return TRUE 
end

 

 

Adicione em,

data/creaturescripts/sctipts/login.lua

function onPrepareDeath(cid, killer)

 

 

 

Adicione em,

data/creaturescripts/creatuescripts.xml

 
<event type="death" name="Reward" script="reward.lua"/>

 

:smile_positivo:

Eu Consegui

Funciona em tfs 0.3.2

Creditos a Quem Fez :x

Eu Não Sei Qm Fez Entao Grtz Pra Ele :p

Link para o comentário
https://xtibia.com/forum/topic/117830-creatureevents-reconpensa-pelo-frag/
Compartilhar em outros sites

Exevogranmasvis-

Você criou 1 tópico na seção incorreta e moveram para a certa aí você vai e cria outro tópico com o mesmo conteúdo? assim não da né, tome mais cuidado quando for postar, o outro tópico do mesmo conteúdo já esta ativo no entanto este aqui será fechado. - mais cuidado.

Link para o comentário
https://xtibia.com/forum/topic/117830-creatureevents-reconpensa-pelo-frag/#findComment-774520
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...