Jump to content
  • 0

R>Greed skill available when VIP


Question

1 answer to this question

Recommended Posts

  • 0
Posted

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;

}

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...