Jump to content
  • 0

New SC_Status problem


Question

Posted

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?

5 answers to this question

Recommended Posts

Posted (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 by KoKe
Posted (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 by KoKe

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...