Jump to content
  • 0

Attack Speed in status.c


Smiley33

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.07
  • Content Count:  9
  • Reputation:   0
  • Joined:  02/21/24
  • Last Seen:  

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
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  896
  • Reputation:   118
  • Joined:  05/23/12
  • Last Seen:  

Which error appears? On compiling or on console?

I think this is too old. rAthena is changing to C++

 

Rynbef~

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.07
  • Content Count:  9
  • Reputation:   0
  • Joined:  02/21/24
  • Last Seen:  

on compiling

 

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  896
  • Reputation:   118
  • Joined:  05/23/12
  • Last Seen:  

And what is the error? Can u upload a screenshot?

 

U use an old version of rAthena?

 

Rynbef~

Edited by Rynbef
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.07
  • Content Count:  9
  • Reputation:   0
  • Joined:  02/21/24
  • Last Seen:  

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  896
  • Reputation:   118
  • Joined:  05/23/12
  • Last Seen:  

@Cydh or @Capuche I can't help. May u help him?

 

Rynbef~

Edited by Rynbef
  • Love 1
Link to comment
Share on other sites

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.

×
×
  • Create New...