Kavaline Posted February 14, 2021 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 18 Reputation: 1 Joined: 02/15/20 Last Seen: February 26, 2021 Share Posted February 14, 2021 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' } Quote Link to comment Share on other sites More sharing options...
Question
Kavaline
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)
Link to comment
Share on other sites
0 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.