Ir para conteúdo
  • 0

Aol Para Red E Black Skull


Pergunta

5 respostass a esta questão

Posts Recomendados

  • 0

preparedeath.lua

-- Sebasbe and Nicekid(Xtibia) --
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if isPlayer(cid) == true then
if (getPlayerSlotItem(cid, 2).itemid == 2196) then
doPlayerRemoveItem(cid, 2196, 1)
doCreatureSetDropLoot(cid, false) 
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
return true
end
end
return true
end

creaturescripts.xml

        <event type="preparedeath" name="onPrepareDeath" event="script" value="preparedeath.lua"/>

 

login.lua

registerCreatureEvent(cid, "onPrepareDeath")

Link para o comentário
https://xtibia.com/forum/topic/192114-aol-para-red-e-black-skull/#findComment-1318057
Compartilhar em outros sites

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