Advertisement
johnlol

Ab_CMD

Aug 14th, 2023
3,495
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VeriLog 0.68 KB | Gaming | 0 0
  1. -   script  ab_cmd  -1,{
  2. OnInit:
  3.     bindatcmd "ab", strnpcinfo(0)+"::OnCommand";
  4.     end;
  5.  
  6. OnCommand:
  7.     .@price = 100000; // 1m per buff
  8.     if ( getmapflag(strcharinfo(3),MF_PVP) || getmapflag(strcharinfo(3),MF_BATTLEGROUND) ||  getmapflag(strcharinfo(3),MF_GVG) ) {
  9.         mes "Doesnt work on PVP/BG/WOE maps";
  10.         close;
  11.     }
  12.     if ( Zeny < .@price ) {
  13.         mes "You need "+F_InsertComma(.@price)+"z.";
  14.         close;
  15.     }
  16.     if ( select("Buff Me!","Dont buff me!")==2 ) {
  17.         mes "Ok";
  18.         close;
  19.     }
  20.     Zeny -= .@price;
  21.  
  22.     // This will bestow the effect of Level 10 Blessing.
  23.     skilleffect 331,0; sc_start SC_INCMHPRATE,10000,100;
  24.     skilleffect 332,0; sc_start SC_INCMSPRATE,10000,100;
  25.  
  26.     mes "done!";
  27.     close;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement