1
[CreatureEvents] Dead Player No drop Items Sáb Nov 19, 2016 1:39 pm
[Admin] God Maya
![[Admin] God Maya](https://2img.net/u/2712/30/40/04/avatars/1-92.jpg)
Administrador

bueno aqui les traigo un script donde si el player muere no se les cae los item ni backpack.
bueno aqui les dejo el scripts
nos vamos a:
Data/creaturescripts/script |
copiamos cualquier archivo y renombramos por nodrop.lua y pegamos esto dentro.
- Código:
function onDeath(cid)
if isPlayer == 1 then
doCreatureSetDropLoot(cid, false)
return true
end
end
luego registramos en:
creaturescripts/scritps/login.lua |
abrimos el archivo y agreamos esta esta linea:
- Código:
registerCreatureEvent(cid, "NlooT")
luego nos vamos a:
Data/creaturescripts/creaturescript.xml |
y agregamos esta tag:
- Código:
<event type="death" name="NlooT" event="script" value="nodrop.lua"/>
y listo

![[CreatureEvents] Dead Player No drop Items YNU5B25](https://i.imgur.com/yNU5B25.png)