Jump to content
  • 0
Sign in to follow this  
Kian

[Resolvido]@buffs VIP

Question

Olá!Alguém poderia me ajudar.Preciso que esse script só seja usado por players VIP. ;)

 

-  script  BUFF  -1,{

 OnInit:

 

   .hp = 100;    // Percentual de cura do HP

   .sp = 100;    // Percentual de cura do SP



   // Addons

   .price = 0;  // Preço por uso (em Zeny)

   .buff = 1;    // Buff players as well? (0: no, 1: yes)

   .repair = 1;  // Reparar equipamentos quebrados? (0: no, 1: yes)

   .delay = 0;    // Delay para uso (em segundos)

   

   bindatcmd "buff",strnpcinfo(3)+"::OnAtcommand";

 end;



 OnAtcommand:

 if (@pdelay > gettimetick(2)) {

   message strcharinfo(0), "Você precisa esperar "+ (@pdelay - gettimetick(2)) +" segundos.";

   end;

 }



 if (.price) {

   if (Zeny < .price) {

     message strcharinfo(0), "Você não tem Zeny suficiente, O serviço custa "+ .price +"z.";

     end;

   }

   

   Zeny -= .price;

 }



 specialeffect2 EF_HEAL; percentheal .hp, .sp;



 if (.buff) {

   // Acolyte Class Buffs

   specialeffect2 EF_BLESSING; sc_start SC_BLESSING, 360000, 10;

   specialeffect2 EF_INCAGILITY; sc_start SC_INC_AGI, 360000, 10;

   specialeffect2 EF_ANGELUS; sc_start SC_ANGELUS, 360000, 10;

   specialeffect2 EF_GLORIA; sc_start SC_GLORIA, 360000, 5;

   specialeffect2 EF_MAGNIFICAT; sc_start SC_MAGNIFICAT, 360000, 5;

   ////specialeffect2 EF_ASSUMPTIO; sc_start SC_ASSUMPTIO, 360000, 5;

   specialeffect2 EF_IMPOSITIO; sc_start SC_IMPOSITIO, 360000, 5;

   //specialeffect2 EF_SUFFRAGIUM; sc_start SC_SUFFRAGIUM, 360000, 3;
  sc_start SC_SECRAMENT,300000,5;



   // Archer Class Buffs

   //specialeffect2 EF_TRUESIGHT; sc_start SC_TRUESIGHT, 360000, 5;

   //specialeffect2 EF_PORTAL4; sc_start SC_WINDWALK, 360000, 5;

   specialeffect2 EF_CONCENTRATION; sc_start SC_CONCENTRATION, 360000, 5;



   // Merchant Class Buffs

   //specialeffect2 EF_PERFECTION; sc_start SC_WEAPONPERFECT, 360000, 10;

   //specialeffect2 EF_OVERTHRUST; sc_start SC_OVERTHRUST, 360000, 5;

   //specialeffect2 EF_MAXPOWER; sc_start SC_MAXIMIZEPOWER, 360000, 5;

   //specialeffect2 EF_MELTDOWN; sc_start SC_MELTDOWN, 360000, 5;

   //specialeffect2 EF_LOUD; sc_start SC_LOUD, 360000, 1;



   // Swordman Class Buffs

   //specialeffect2 EF_ENDURE; sc_start SC_ENDURE, 360000, 10;



   // Mage Class Buffs

   //specialeffect2 EF_ENERGYCOAT; sc_start SC_ENERGYCOAT, 360000, 1;



   // Food Buffs

   sc_start SC_SAVAGE_STEAK, 300000, 20;
  sc_start SC_COCKTAIL_WARG_BLOOD, 300000, 20;
  sc_start SC_MINOR_BBQ, 300000, 20;
  sc_start SC_SIROMA_ICE_TEA, 300000, 20;
  sc_start SC_DROCERA_HERB_STEAMED, 300000, 20;
  sc_start SC_PUTTI_TAILS_NOODLES, 300000, 20;

 }



 if (.repair) {

   repairall;

 }



 if (.delay) {

   @pdelay = gettimetick(2)+.delay;

 }

 end;

}

 

Edited by Kian

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Não entendi direito o tópico por causa da formatação, mas vamos lá...

tente o seguinte:

if (.price) {        if (Zeny < .price) {            message strcharinfo(0), "Você não tem Zeny suficiente, O serviço custa "+ .price +"z.";            end;        }                Zeny -= .price;}// ADICIONE EM BAIXO:if(getgroupid() < 1) // 1 = nivel vip{            message strcharinfo(0), "Você não é VIP!";            end;}

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.