Jump to content

Smiley33

Members
  • Posts

    11
  • Joined

  • Last visited

Posts posted by Smiley33

  1. what i want is if when groupid is higher than 0 and the base stats agility is higher than 170 and increase agi is buffed the attackspeed will be capped at 196 

    else attackspeed is capped by 195

    if (sc->data[AL_INCAGI] ) && (pc_get_group_id(sd) >0 ) && (readparam(bAgi) > 170) {
            if (sc->data[AL_INCAGI]->val1 == 10)
                status->amotion = cap_value(amotion, pc_maxaspd(sd) + 20, 2000);

    i was having error on (pc_get_group_id("sd") and (readparam(bAgi) > 170) 

    i got the code from this 

  2. 20 hours ago, Rynbef said:

    Use the OnPCLoginEvent. Get the VIP State for VIP

    if(vip_status(VIP_STATUS_ACTIVE) && AGI >= 99)bAspdRate,196;) else {bonus bAspd,195;}

    It's not rly complicated. I'd like to call upon everyone once again to please read through the Rathena documentation, as it contains all the answers, one just needs to dig a bit. For example, want to find out about the VIP status? Simply use the search function on the site with *vip_status, and you'll get direct hints. I clearly refer to Doc/Script_comments.txt and Doc/item_bonus.txt. it's not much complicated to do research and try cuz' you will learn and it's much better instead of else everyone get the answer directly and just copy paste into his project. This should not to be an offensive or attack against you please don't miss understand this.

     

    Rynbef~

    i already tried this before but my problem is bonus bAspd,195 is additional attack speed.. after you add more agility on wont capped to 195,

        if (vip_status(VIP_STATUS_ACTIVE) && (readparam(bAgi) > 170) { set MAX_APSD,196; } something like this thanks

  3. On 1/4/2015 at 12:22 AM, Emistry said:
    if ( .@rate < rand( 100 ) ) {

    change to

    if ( .@rate < rand( 100 ) || KARMAPOINTS >= 95000 ) {

    even you i got killed by monster my item got dropped

     

     

×
×
  • Create New...