Ir para conteúdo

Featured Replies

  • Respostas 20
  • Visualizações 3.8k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Artur Henrique
    Artur Henrique

    Notei que o tópico está fechado, mas de qualquer forma, vou contribuir aqui, deixando o script..   items.xml: <item id="8266" name="koshei's ancient amulet"> <attribute key="description"

Postado

Amigo tente esse, eu ja usei e recomendo

Creditos: Sebasbe and Nicekid

passo
vá até data\creaturescripts\scripts e crie um arquivo.lua e renomeie para preparedeath.lua
dentro coloque:
 

function onDeath(cid, corpse, deathList)
if (getPlayerSlotItem(cid, 2).itemid == 2196) and getPlayerSkullType(cid) >= 4 then
doPlayerRemoveItem(cid, 2196, 0)
doCreatureSetDropLoot(cid, false) 
end
return true
end


em data\creaturescripts\scripts\login.lua adiciona a linha:

registerCreatureEvent(cid, "SkullAmulet")


creaturescripts.xml adicione:
 

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

2° - passo
em items.xml substitua

 

    <item id="2196" article="a" name="broken amulet">
        <attribute key="weight" value="420" />
        <attribute key="slotType" value="necklace" />
    </item>

Por:
 

    <item id="2196" article="a" name="Red Skull Amulet">
        <attribute key="weight" value="420" />
        <attribute key="slotType" value="necklace" />
    </item>
Postado

Troca por este:

function onDeath(cid, corpse, deathList)
if (getPlayerSlotItem(cid, 2).itemid == 8266) and getPlayerSkullType(cid) >= 4 then
doCreatureSetDropLoot(cid, false)  
end
return true
end

adicione no item:

<attribute key="preventDrop" value="1"/>

vai ficar assim:

    <item id="8266" article="a" name="Red Skull Amulet">
        <attribute key="weight" value="420" />
        <attribute key="slotType" value="necklace" />
        <attribute key="preventDrop" value="1"/>
    </item>

Créditos pela ajuda: Jamison

Postado
  Em 26/09/2013 em 02:09, texzin disse:

o Amulto n ta dropando mano..

 

os items estão dropando se eu nao estiver pk !

 

 

Vou testar aqi ..

 

 

EDIT :

 

 

Agora o amuleto esta sumindo..Como faço pra ele não sumir?

 

 

  Em 26/09/2013 em 22:20, texzin disse:

@@@@@@@UPPPPP 

 

 

  Em 26/09/2013 em 23:00, texzin disse:

ele funciona se estiver RED OU BLACK

 

se fica NORMAL. SEM ESTAR SKULL

 

Ele perde oS ITEMS ....

 

 

Primeiramente, cuidado com o @UP, ele só pode ser usado de 24 horas em 24 horas.

Segundo, evite usar uma grande parte do seu texto ou pedido em letra maiúscula. 

"A alma permanece em suas criações" V89E5aN.png


142c9d3439.jpg
(Não dou suporte por mensagem privada.)

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo