Jump to content
  • 0

New SC_Status problem


KoKe

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

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?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  169
  • Topics Per Day:  0.04
  • Content Count:  1260
  • Reputation:   750
  • Joined:  11/19/11
  • Last Seen:  

noxious and related can be found within battle.c (ctrl+f long_attack_def_rate to find it)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

Yeah but how did i add that?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  67
  • Reputation:   23
  • Joined:  11/14/11
  • Last Seen:  

Long Attack Resist:

sd->long_attack_def_rate = val; // 100 = 100%

;

Stun Resist:

sd->reseff[sC_STUN] = val; // 10000 = 100%

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

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
Link to comment
Share on other sites

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