Jump to content
  • 0

How pass/access 2 or more values to var1~4 of sc_start?


Kavaline

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.01
  • Content Count:  18
  • Reputation:   1
  • Joined:  02/15/20
  • Last Seen:  

Guys, how I can pass/access 2 or more values to var1~4 of sc_start? Something with this logic (SC_CUSTOM alread declared and functional, codes in right functions)

short eff_array[] = {SC_CURSE, SC_STUN};
clif->skill_nodamage(src, bl, skill_id, skill_lv,
    sc_start2(src, bl, SC_CUSTOM, 100, 2000, eff_array, skill->get_time(skill_id, skill_lv)));
int i;
for (i = 0; i <= sizeof(sc->data[SC_CUSTOM]->val2); i++) {
    if (sc->data[SC_CUSTOM]->val2[i] == type) return 0; //error here, with 'i'
}

 

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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...