Jump to content
  • 0

[SOLVED] M>Healer NPC


GM Winter

Question


  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.14
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

hello can we add free healer for level 90 below and only 99 level will pay?

 

Quote

prontera,162,197,4    script    Healer    569,{
    //buffs for everyone
    
    .@Price = 200;    // Zeny required for heal

    if (@HD > gettimetick(2))
        end;
    if (.@Price) {
        message strcharinfo(0), "Healing costs is " + callfunc("F_InsertComma",.@Price) + " Zeny.";
        if (Zeny < .@Price)
            end;
        Zeny -= .@Price;
    }
    specialeffect2 EF_INCAGILITY;
    sc_start SC_INCREASEAGI,240000,10;
    specialeffect2 EF_BLESSING;
    sc_start SC_BLESSING,240000,10;
    specialeffect2 EF_HEAL2;
    percentheal 100,100;
        sc_end SC_STONE;
        sc_end SC_SLOWDOWN;
        sc_end SC_FREEZE;
        sc_end SC_SLEEP;
        sc_end SC_CURSE;
        sc_end SC_SILENCE;
        sc_end SC_CONFUSION;
        sc_end SC_BLIND;
        sc_end SC_BLEEDING;
        sc_end SC_DECREASEAGI;
        sc_end SC_POISON;
        sc_end SC_HALLUCINATION;
        sc_end SC_STRIPWEAPON;
        sc_end SC_STRIPARMOR;
        sc_end SC_STRIPHELM;
        sc_end SC_STRIPSHIELD;
        sc_end SC_CHANGEUNDEAD;
        sc_end SC_ORCISH;
        sc_end SC_BERSERK;
        sc_end SC_SKE;
        sc_end SC_SWOO;
        sc_end SC_SKA;
        sc_end SC_BURNING;
        sc_end SC_FREEZING;
        sc_end SC_FEAR;
        while (getbrokenid(1)) {
        repair(1);
        set .@i, .@i +1;
        }
        if (.@i) dispbottom .@i + " items repaired.";

    // Identify all unidentified items
    getinventorylist;
    for( set .@i,0; .@i < @inventorylist_count; set .@i, .@i +1 ) {
        if ( @inventorylist_identify[.@i] == 1 ) continue;
        delitem2 @inventorylist_id[.@i],1,0,0,0,0,0,0,0;
        getitem @inventorylist_id[.@i],1;
        set .@count, .@count +1;
    }
    if (.@count) dispbottom .@count +" items identified.";
    
    //vip buffs
    if(vip_status(VIP_STATUS_ACTIVE)){
    sc_start SC_SUFFRAGIUM,60000,3;
    sc_start SC_GLORIA,60000,5;
    sc_start SC_IMPOSITIO,60000,5;
    sc_start SC_ANGELUS,60000,10;
        sc_end SC_STONE;
        sc_end SC_SLOWDOWN;
        sc_end SC_FREEZE;
        sc_end SC_SLEEP;
        sc_end SC_CURSE;
        sc_end SC_SILENCE;
        sc_end SC_CONFUSION;
        sc_end SC_BLIND;
        sc_end SC_BLEEDING;
        sc_end SC_DECREASEAGI;
        sc_end SC_POISON;
        sc_end SC_HALLUCINATION;
        sc_end SC_STRIPWEAPON;
        sc_end SC_STRIPARMOR;
        sc_end SC_STRIPHELM;
        sc_end SC_STRIPSHIELD;
        sc_end SC_CHANGEUNDEAD;
        sc_end SC_ORCISH;
        sc_end SC_BERSERK;
        sc_end SC_SKE;
        sc_end SC_SWOO;
        sc_end SC_SKA;
        sc_end SC_BURNING;
        sc_end SC_FREEZING;
        sc_end SC_FEAR;
        while (getbrokenid(1)) {
        repair(1);
        set .@i, .@i +1;
        }
        if (.@i) dispbottom .@i + " items repaired.";
    // Identify all unidentified items
    getinventorylist;
    for( set .@i,0; .@i < @inventorylist_count; set .@i, .@i +1 ) {
        if ( @inventorylist_identify[.@i] == 1 ) continue;
        delitem2 @inventorylist_id[.@i],1,0,0,0,0,0,0,0;
        getitem @inventorylist_id[.@i],1;
        set .@count, .@count +1;
    }
    if (.@count) dispbottom .@count +" items identified.";

    
//        sc_start SC_STRFOOD,60000,10;
//        sc_start SC_INTFOOD,60000,10;
//        sc_start SC_DEXFOOD,60000,10;
//        sc_start SC_AGIFOOD,60000,10;
//        sc_start SC_VITFOOD,60000,10;
//        sc_start SC_LUKFOOD,60000,10;
    }
end;
}

 

Edited by GM Winter
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  232
  • Reputation:   86
  • Joined:  06/30/18
  • Last Seen:  

if(BaseLevel >= 90) {
      if(Zeny < .@price) {
            message(strcharinfo(0), "Healing costs " + callfunc("F_InsertComma",.@Price) + " Zeny.");
            end;
      }
      
      Zeny -= .@price;
}

specialeffect2 EF_HEAL2;
percentheal 100,100;

 

Edited by Winterfox
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  102
  • Reputation:   6
  • Joined:  03/02/18
  • Last Seen:  

if(BaseLevel == 99 &&  Zeny < .@Price) {

       message strcharinfo(0), "Healing costs is " + callfunc("F_InsertComma",.@Price) + " Zeny.";
       end;
       Zeny -= .@Price;
}

if(BaseLevel <= 90){
    specialeffect2 EF_HEAL2;
    percentheal 100,100;
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.14
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

On 12/23/2023 at 8:55 PM, AceofSpades said:
if(BaseLevel == 99 &&  Zeny < .@Price) {

       message strcharinfo(0), "Healing costs is " + callfunc("F_InsertComma",.@Price) + " Zeny.";
       end;
       Zeny -= .@Price;
}

if(BaseLevel <= 90){
    specialeffect2 EF_HEAL2;
    percentheal 100,100;
}

 

hello its not deduction zeny in level 99  or above level 90

i insert it here

 

Quote

prontera,153,192,5    script    Healer    569,{
    //buffs for everyone
    
    if(BaseLevel == 99 && Zeny < .@Price) {

       message strcharinfo(0), "Healing costs is " + callfunc("F_InsertComma",.@Price) + " Zeny.";
       end;
       Zeny -= .@Price;
    }

    if(BaseLevel <= 90){
    specialeffect2 EF_HEAL2;
    percentheal 100,100;
    }

    specialeffect2 EF_INCAGILITY;
    sc_start SC_INCREASEAGI,240000,10;
    specialeffect2 EF_BLESSING;
    sc_start SC_BLESSING,240000,10;
    specialeffect2 EF_HEAL2;
    percentheal 100,100;

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.14
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

6 hours ago, Winterfox said:
if(BaseLevel >= 90) {
      if(Zeny < .@price) {
            message(strcharinfo(0), "Healing costs " + callfunc("F_InsertComma",.@Price) + " Zeny.");
            end;
      }
      
      Zeny -= .@price;
}

specialeffect2 EF_HEAL2;
percentheal 100,100;

 

thank you so much buds

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...