Jump to content
  • 0

Attack Speed in status.c


Question

Posted (edited)

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 

Edited by Smiley33

5 answers to this question

Recommended Posts

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...