Jump to content
  • 0

R>Greed skill available when VIP


Biskitsss

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.02
  • Content Count:  3
  • Reputation:   0
  • Joined:  12/30/24
  • Last Seen:  

can anyone tell me if it's possible to give VIP players the skill "Greed"? then after the VIP expires, the skill will not be usable/gone.

so far here's what I have done, still not giving me the greed skill.

vip_greed.txt

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.01
  • Content Count:  18
  • Reputation:   3
  • Joined:  02/03/24
  • Last Seen:  

Olá, seria algo neste sentido?

 

- script VIP_Greed -1,{

 OnPCLoginEvent:

  // Verifica se o jogador já aprendeu Ganância por conta própria

  if (getskilllv("MC_GREED") > 0) {

   set @greed_learned, 1; // Marca que o jogador já tem Ganância

  } else {

   set @greed_learned, 0; // O jogador não tem Ganância por conta própria

  }

 

  if (vip_status(0)) {

   // Se o jogador for VIP e não tiver aprendido Ganância por conta própria, adiciona a habilidade

   if (!@greed_learned && getskilllv("MC_GREED") == 0) {

    skill "MC_GREED", 1, 0;

    dispbottom "Você recebeu a habilidade Ganância por ser VIP!";

   }

  } else {

   // Se o VIP expirou e ele não tinha Ganância antes, remove a habilidade

   if (!@greed_learned && getskilllv("MC_GREED") > 0) {

    skill "MC_GREED", 0, 0;

    dispbottom "Seu VIP expirou, Ganância foi removida.";

   }

  }

  end;

}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...