KoKe Posted December 6, 2011 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 10 Reputation: 0 Joined: 11/22/11 Last Seen: April 27, 2021 Share Posted December 6, 2011 For example i cand add resistance of race and element sd->subele[ELE_WATER] += sc->data[sC_NEW_STATUS]->val1; sd->subrace[RC_DEMON] += sc->data[sC_NEW_STATUS]->val1; but what if i need resistance for long range ( Like noxius ) and stun? Quote Link to comment Share on other sites More sharing options...
Ind Posted December 6, 2011 Group: Members Topic Count: 169 Topics Per Day: 0.03 Content Count: 1260 Reputation: 750 Joined: 11/19/11 Last Seen: April 11, 2013 Share Posted December 6, 2011 noxious and related can be found within battle.c (ctrl+f long_attack_def_rate to find it) Quote Link to comment Share on other sites More sharing options...
KoKe Posted December 7, 2011 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 10 Reputation: 0 Joined: 11/22/11 Last Seen: April 27, 2021 Author Share Posted December 7, 2011 Yeah but how did i add that? Quote Link to comment Share on other sites More sharing options...
FatalEror Posted December 7, 2011 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 67 Reputation: 23 Joined: 11/14/11 Last Seen: October 3, 2014 Share Posted December 7, 2011 Long Attack Resist: sd->long_attack_def_rate = val; // 100 = 100% ; Stun Resist: sd->reseff[sC_STUN] = val; // 10000 = 100% Quote Link to comment Share on other sites More sharing options...
KoKe Posted December 8, 2011 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 10 Reputation: 0 Joined: 11/22/11 Last Seen: April 27, 2021 Author Share Posted December 8, 2011 (edited) Oh yeah i see this last night and wondering what are for @ind: thank you for the reply memset (sd->param_bonus, 0, sizeof(sd->param_bonus) + sizeof(sd->param_equip) + sizeof(sd->subele) + sizeof(sd->subrace) + sizeof(sd->subrace2) + sizeof(sd->subsize) + sizeof(sd->reseff) + sizeof(sd->weapon_coma_ele) + sizeof(sd->weapon_coma_race) + sizeof(sd->weapon_atk) + sizeof(sd->weapon_atk_rate) + sizeof(sd->arrow_addele) + sizeof(sd->arrow_addrace) + sizeof(sd->arrow_addsize) + sizeof(sd->magic_addele) + sizeof(sd->magic_addrace) + sizeof(sd->magic_addsize) + sizeof(sd->critaddrace) + sizeof(sd->expaddrace) + sizeof(sd->ignore_mdef) + sizeof(sd->ignore_def) + sizeof(sd->itemgrouphealrate) + sizeof(sd->sp_gain_race) @FatalError: So like i see reseff is for status EDIT: Also did i need to add this too to make it work? and what exactly do that? StatusChangeFlagTable[sC_MYCUSTOMSC] |= SCB_ALL; EDIT2: Also is posible to end SC_Status when they not in x mapflag? Edited December 8, 2011 by KoKe Quote Link to comment Share on other sites More sharing options...
KoKe Posted December 17, 2011 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 10 Reputation: 0 Joined: 11/22/11 Last Seen: April 27, 2021 Author Share Posted December 17, 2011 (edited) So i make this but the player with the active status still be frozen if (sc->data[sC_NOFREEZE] ) { sd->reseff[sC_FREEZE] += sc->data[sC_WOE_ALLRES]->val1; } Edited December 17, 2011 by KoKe Quote Link to comment Share on other sites More sharing options...
Question
KoKe
For example i cand add resistance of race and element
but what if i need resistance for long range ( Like noxius ) and stun?
Link to comment
Share on other sites
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.