viewing paste Unknown #6325 | C

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
/*==========================================
 * Buffs a player for 10mins @ 25k Zeny.
 *------------------------------------------*/
ACMD_FUNC(buff)
{
        int zeny = 25000;
        nullpo_retr(-1, sd);
       
        if(sd->status.zeny < zeny)
        {
                clif_displaymessage(fd, "Sorry, but you do not have enough Zeny to use @buff. @buff cost = 25k Zeny.");
                return -1;
        }
 
        if ((map[sd->bl.m].flag.gvg) || (map[sd->bl.m].flag.pvp))
        {
                clif_displaymessage(fd, "Sorry, but you can't use @buff on PvP or GvG Maps.");
                return -1;
        }
 
        sd->status.zeny = sd->status.zeny-zeny;
        clif_updatestatus(sd, SP_ZENY);
        sc_start(&sd->bl,SC_ENDURE,100,10,600000);
        sc_start(&sd->bl,SC_CONCENTRATE,100,10,600000);
        sc_start(&sd->bl,SC_INCREASEAGI,100,10,600000);
        sc_start(&sd->bl,SC_ANGELUS,100,10,600000);
        sc_start(&sd->bl,SC_BLESSING,100,10,600000);
        sc_start(&sd->bl,SC_TWOHANDQUICKEN,100,10,600000);
        sc_start(&sd->bl,SC_ONEHAND,100,1,600000);
        sc_start(&sd->bl,SC_IMPOSITIO,100,5,600000);
        sc_start(&sd->bl,SC_MAGNIFICAT,100,5,600000);
        sc_start(&sd->bl,SC_GLORIA,100,5,600000);
        sc_start(&sd->bl,SC_SPEARQUICKEN,100,10,600000);
        sc_start(&sd->bl,SC_AURABLADE,100,5,600000);
        sc_start(&sd->bl,SC_PARRYING,100,10,600000);
        sc_start(&sd->bl,SC_CONCENTRATION,100,5,600000);
        sc_start(&sd->bl,SC_WINDWALK,100,10,600000);
        sc_start(&sd->bl,SC_ASSUMPTIO,100,5,600000);
        sc_start(&sd->bl,SC_STRFOOD,100,10,600000);
        sc_start(&sd->bl,SC_AGIFOOD,100,10,600000);
        sc_start(&sd->bl,SC_VITFOOD,100,10,600000);
        sc_start(&sd->bl,SC_INTFOOD,100,10,600000);
        sc_start(&sd->bl,SC_DEXFOOD,100,10,600000);
        sc_start(&sd->bl,SC_LUKFOOD,100,10,600000);
        sc_start(&sd->bl,SC_HITFOOD,100,10,600000);
        sc_start(&sd->bl,SC_FLEEFOOD,100,10,600000);
        sc_start(&sd->bl,SC_BATKFOOD,100,10,600000);
        sc_start(&sd->bl,SC_WATKFOOD,100,10,600000);
        sc_start(&sd->bl,SC_MATKFOOD,100,10,600000);
        clif_displaymessage(fd, "You've received Buffs for 10 Minutes, have fun with it!");
 
        return 0;
}
Viewed 297 times, submitted by unknown.