Jump to content
  • 0

Skills promotion ATK formula error?


mina

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   2
  • Joined:  10/25/13
  • Last Seen:  

[Lv 5] : Movement Speed 100% increase / ATK 50 increase

https://www.divine-pride.net/database/skill/2478/

Atk+50 is not work?

ATK bonus is added to the damage instead of the status

EX: I attack the monster 10 damage.

Use Geneticist Cart Boost [Lv 5] : Movement Speed 100% increase / ATK 50 increase

But, I attack the monster 60 damage, atk status is not work

SVN revision: 45186

Edited by mina
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  148
  • Reputation:   18
  • Joined:  03/03/19
  • Last Seen:  

34 minutes ago, mina said:

How can I do this?


if(sc->data[SC_GN_CARTBOOST]) {
				ATK_ADD(wd->damage, wd->damage2, 10 * sc->data[SC_GN_CARTBOOST]->val1);

 

status.c

change this

	set_sc( GN_CARTBOOST			, SC_GN_CARTBOOST	, EFST_GN_CARTBOOST			, SCB_SPEED|SCB_WATK );

add scb_watk

 

find this

	if(sc->data[SC_WATKFOOD])
		watk += sc->data[SC_WATKFOOD]->val1;
	if(sc->data[SC_VOLCANO])
		watk += sc->data[SC_VOLCANO]->val2;
	if(sc->data[SC_MERC_ATKUP])
		watk += sc->data[SC_MERC_ATKUP]->val2;

add a new one 

	if(sc->data[SC_GN_CARTBOOST])
		watk += sc->data[SC_GN_CARTBOOST]->val4;

 

find this

		case SC_GN_CARTBOOST:
			if( val1 < 3 )
				val2 = 50;
			else if( val1 > 2 && val1 < 5 )
				val2 = 75;
			else
				val2 = 100;
			break;

add val4= 50; at the top

like so

		case SC_GN_CARTBOOST:
			val4 = 50; // Watk increase
			if( val1 < 3 )
				val2 = 50;
			else if( val1 > 2 && val1 < 5 )
				val2 = 75;
			else
				val2 = 100;
			break;

 

 

 

That should do it unless you want batk if that matters just change scb_watk to scb_batk and change watk in second part to batk , might have  to move it to other section with others tho 

 

recompile

 

 

 

Edited by AndyTheGoblin
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   2
  • Joined:  10/25/13
  • Last Seen:  

4 hours ago, AndyTheGoblin said:

no we dont have that here

do you want it?

so, Rathena is not support?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   2
  • Joined:  10/25/13
  • Last Seen:  

2 hours ago, AndyTheGoblin said:

no support 

but really easy to add

How can I do this?

if(sc->data[SC_GN_CARTBOOST]) {
				ATK_ADD(wd->damage, wd->damage2, 10 * sc->data[SC_GN_CARTBOOST]->val1);

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   2
  • Joined:  10/25/13
  • Last Seen:  

11 hours ago, AndyTheGoblin said:

哦,我們確實有這個 



 


 

從來沒有這樣做,給我一個......它可能是同樣的事情,但我不知道在哪裡放置它

 

 

你能找到你的代碼嗎? 

thx, i can~

and ATK_ADD is in battle.cpp

battle.cpp:

ATK_ADD(wd->damage, wd->damage2, 10 * sc->data[SC_GN_CARTBOOST]->val1);
Edited by mina
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   2
  • Joined:  10/25/13
  • Last Seen:  

2 hours ago, AndyTheGoblin said:

give me your battle.c and skill.c so i can copy it 

thanks

I have solved~ thx your help!

https://github.com/rathena/rathena/blob/master/src/map/battle.cpp

https://github.com/rathena/rathena/blob/master/src/map/skill.cpp

  • Upvote 1
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...