antiblock
Elveron
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
Sign in to follow this  
nagatto

Adicionar Probabilidade No Drop De Item Em Cada Morte

Question

Boas malta, estou com algumas duvidas. 

 

Quero adicionar a probabilidade de drop de x item em cada morte e está-me aqui a moer a cabeça, alguém sabe? |:

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0
when kill beginif npc.is_pc() thenlocal itens = { {30188, 1} }local a = math.random(1,20)if a == 2 thenif pc.level >= 80 and pc.level <= 90 thengame.drop_item_with_ownership(itens[math.random(1,1)][1], itens[2])endendend

Share this post


Link to post
Share on other sites
antiblock
Elveron

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this