Postado Julho 14, 2012 12 anos Nome do Script: O player não irá perder itens se ele morrer dentro do level 8 até o 50,só ira perder se ele estiver pk. Tipo do Script: Não sei... e.e Versão Utilizada: 8.60 Servidor Utilizado: Tfs Nível de Experiência: Intermediário ~ avançado Informações Extras: Queria um script de que quando o player morrer dentro do lvl 50(se ele não tiver com nenhuma skull)ele não irá perder os itens dele>Ai se ele estiver com qualquer tipo de skull (quando ele morrer dentro do lvl 50 ele perde os itens dele)
Postado Julho 14, 2012 12 anos NoLoot.lua function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) if (getCreatureSkullType(cid) < 3) and (getPlayerLevel(cid) <= 50) then return doCreatureSetDropLoot(cid, false) end return true end tag: <event type = "preparedeath" name = "NoLootZ" event = "script" value = "NoLoot.lua" /> no seu login.lua, antes do último return true poe isso: registerCreatureEvent(cid, "NoLootZ") Editado Julho 14, 2012 12 anos por MaXwEllDeN (veja o histórico de edições) -"Supra Omnes Lux Lucis" - Acima de todos brilha a Luz -
Postado Julho 14, 2012 12 anos Autor NoLoot.lua function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) if (getCreatureSkullType(cid) < 3) and (getPlayerLevel(cid) <= 50) then return doCreatureSetDropLoot(cid, false) end return true end tag: <event type = "preparedeath" name = "NoLootZ" event = "script" value = "NoLoot.lua" /> no seu login.lua, antes do último return true poe isso: registerCreatureEvent(cid, "NoLootZ") Funcionou certinho,vlw pela força! *-*
Postado Julho 16, 2012 12 anos NoLoot.lua function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) if (getCreatureSkullType(cid) < 3) and (getPlayerLevel(cid) <= 50) then return doCreatureSetDropLoot(cid, false) end return true end tag: <event type = "preparedeath" name = "NoLootZ" event = "script" value = "NoLoot.lua" /> no seu login.lua, antes do último return true poe isso: registerCreatureEvent(cid, "NoLootZ") esta com erro.. perde aol.. ajude por favor!
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.