KoKe Posted December 6, 2011 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
Ind Posted December 6, 2011 Posted December 6, 2011 noxious and related can be found within battle.c (ctrl+f long_attack_def_rate to find it) Quote
FatalEror Posted December 7, 2011 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
KoKe Posted December 8, 2011 Author 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
KoKe Posted December 17, 2011 Author 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
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?
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.