Emistry

[RO] Default Healer with Debuff option

Jan 8th, 2016
393
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.30 KB | None | 0 0
  1.  
  2.  
  3. -   script  Healer  -1,{
  4.  
  5.     set .@Price,0;  // Zeny required for heal
  6.     set .@Buffs,0;  // Also buff players? (1: yes / 0: no)
  7.     set .@Delay,0;  // Heal delay, in seconds
  8.     set .@Dispell,0;
  9.  
  10.     if (@HD > gettimetick(2)) end;
  11.     if (.@Price) {
  12.         message strcharinfo(0),"Healer costs "+callfunc("F_InsertComma",.@Price)+" Zeny.";
  13.         if (Zeny < .@Price) end;
  14.         if(select("^0055FFHeal^000000:^777777Cancel^000000") == 2) end;
  15.         set Zeny, Zeny-.@Price;
  16.     }
  17.     specialeffect2 EF_HEAL2; percentheal 100,100;
  18.     specialeffect2 EF_INCAGILITY; sc_start SC_INCREASEAGI,600000,10;
  19.     specialeffect2 EF_BLESSING; sc_start SC_BLESSING,600000,10;
  20.  
  21.     if ( .@Dispell ) {
  22.         sc_end SC_STONE;
  23.         sc_end SC_FREEZE;
  24.         sc_end SC_STUN;
  25.         sc_end SC_SLEEP;
  26.         sc_end SC_POISON;
  27.         sc_end SC_CURSE;
  28.         sc_end SC_SILENCE;
  29.         sc_end SC_CONFUSION;
  30.         sc_end SC_BLIND;
  31.         sc_end SC_BLEEDING;
  32.         sc_end SC_QUAGMIRE;
  33.         sc_end SC_DECREASEAGI;
  34.         sc_end SC_AETERNA;
  35.         sc_end SC_HALLUCINATION;
  36.         sc_end SC_STRIPWEAPON;
  37.         sc_end SC_STRIPSHIELD;
  38.         sc_end SC_STRIPARMOR;
  39.         sc_end SC_STRIPHELM;
  40.     }
  41.    
  42.     if (.@Buffs) {
  43.         specialeffect2 EF_INCAGILITY; sc_start SC_INCREASEAGI,600000,10;
  44.         specialeffect2 EF_BLESSING; sc_start SC_BLESSING,600000,10;
  45.     }
  46.     if (.@Delay) set @HD, gettimetick(2)+.@Delay;
  47.     end;
  48. }
  49.  
  50. payon,185,104,4 duplicate(Healer)   Healer#1    81
Advertisement
Add Comment
Please, Sign In to add comment