Jump to content
  • 0

Assumptio Modification HELP


Reborn

Question


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.03
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

Can anyone help me modifying the Assumptio Skill?
Current Assumptio Skill can only be casted to 1 player at a time but can it be possible to cast it to a player then the effect will spread by 3x3 cell from the target?
I think it is a src code that you need to do. Please help me I tried to modify the skill code from map/skill.c

I tried to modify this line 6793

int splash = skill_get_splash(skill_id, skill_lv);
map_foreachinallrange(skill_area_sub, bl, splash, splash_target(src), src, skill_id, skill_lv, tick, flag | 1, skill_castend_nodamage_id);
clif_skill_nodamage(src, bl, skill_id, skill_lv, sc_start(src, bl, type, 100, skill_lv, skill_get_time(skill_id, skill_lv)));

This one is working fine and I am not getting any error or the client is not crushing however the issue is the effect is same as the old one. It can be casted to 1 player only and the effect is not spreading by 3x3 cell.
I know I have a mistake here but I dont know how to fix it and make it the way I needed it to be.

Please help me ?

Edited by neXus
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   24
  • Joined:  10/17/13
  • Last Seen:  

so i tried to mimic the vituperatum behavior commented the lines 7159~7165 and add case HP_ASSUMPTIO in line 11568 (before VITUPERATUM it self)

and it works (with pvp on cuz vituperatum was made to target enemies )

so... i change the flag "BCT_ENEMY"
 

map_foreachinrange(skill_area_sub, bl, skill_get_splash(skill_id, skill_lv), BL_CHAR, src, skill_id, skill_lv, tick, flag|BCT_ENEMY|1, skill_castend_nodamage_id);

to "BCT_ALLY"

map_foreachinrange(skill_area_sub, bl, skill_get_splash(skill_id, skill_lv), BL_CHAR, src, skill_id, skill_lv, tick, flag|BCT_ALLY|1, skill_castend_nodamage_id);


and its working for party xD

final code:

 

LINE 7158 
/*
	case HP_ASSUMPTIO:
		if( sd && dstmd )
			clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
		else
			clif_skill_nodamage(src,bl,skill_id,skill_lv,
				sc_start(src,bl,type,100,skill_lv,skill_get_time(skill_id,skill_lv)));
		break;
	*/
LINE 11568
	case HP_ASSUMPTIO:
		if (flag&1)
			clif_skill_nodamage(src, bl, skill_id, skill_lv, sc_start(src, bl, type, 100, skill_lv, skill_get_time(skill_id, skill_lv)));
		else {
			map_foreachinrange(skill_area_sub, bl, skill_get_splash(skill_id, skill_lv), BL_CHAR, src, skill_id, skill_lv, tick, flag|BCT_ALLY|1, skill_castend_nodamage_id);
			clif_skill_nodamage(src, bl, skill_id, skill_lv, 1);
		}
		break;
	case AB_VITUPERATUM:
		if (flag&1)
			clif_skill_nodamage(src, bl, skill_id, skill_lv, sc_start(src, bl, type, 100, skill_lv, skill_get_time(skill_id, skill_lv)));
		else {
			map_foreachinrange(skill_area_sub, bl, skill_get_splash(skill_id, skill_lv), BL_CHAR, src, skill_id, skill_lv, tick, flag|BCT_ENEMY|1, skill_castend_nodamage_id);
			clif_skill_nodamage(src, bl, skill_id, skill_lv, 1);
		}
		break;



hope you understands

skill.cpp

Edited by HaureN
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.03
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

BCT_ALLY is for party and guild right so meaning you wont be able to use this skill to a target player if that player is not member of your party or guild. Is there a way to make it work for every target player? whether they are not you party or guild mate?

and also one more thing. the effect should also affect those within the 3x3 cell of the target player.

Edited by neXus
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   24
  • Joined:  10/17/13
  • Last Seen:  

maybe |BCT_ALL| instead of BCT_ALLY

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.03
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

but how about the effect it should be 3x3 cell from a target player and there should be no requirements. whether you are on the same party/guild or not the skill should still work.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.03
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

[UPDATE]

I finally got the right code and its working fine exactly the way I wanted it to be. Thanks for the help ?

Edited by neXus
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...