Jump to content
  • 0
Eross

Regarding PR_IMPOSITIO

Question

Good day ! I need help on activating the matk bonus on impositio magnus please to pre-renewal .. Last time I did it on my old server is I just change this line from the previous rathena status.cpp

	set_sc( KN_AUTOCOUNTER		, SC_AUTOCOUNTER	, EFST_AUTOCOUNTER	, SCB_NONE );
	set_sc( PR_IMPOSITIO		, SC_IMPOSITIO		, EFST_IMPOSITIO	, SCB_WATK
#ifdef RENEWAL
		|SCB_MATK );
#else
		|SCB_MATK );

but when I used the new repo those lines are gone .. can you help me please ?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 1
On 6/2/2022 at 4:51 AM, Eross said:

Hi I tried this but nothing happened 

You need implement the bonus in status.cpp

go to src/map/status.cpp and find static unsigned short status_calc_matk(struct block_list *bl, struct status_change *sc, int matk) 

now put impositio bonus below:

 

	if (sc->data[SC_VOLCANO])
		matk += sc->data[SC_VOLCANO]->val2;

and add then:

 

	if (sc->data[SC_VOLCANO])
		matk += sc->data[SC_VOLCANO]->val2;
	if (sc->data[SC_IMPOSITIO])
		matk += sc->data[SC_IMPOSITIO]->val2;

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

Go to db/pre-re/status.yml and search Impositio

  - Status: Impositio
    Icon: EFST_IMPOSITIO
    DurationLookup: PR_IMPOSITIO
    CalcFlags:
      Watk: true
    Flags:
      SuperNoviceAngel: true
    End:
      Impositio: true

to

  - Status: Impositio
    Icon: EFST_IMPOSITIO
    DurationLookup: PR_IMPOSITIO
    CalcFlags:
      Watk: true
      Matk: true
    Flags:
      SuperNoviceAngel: true
    End:
      Impositio: true


 

  • Upvote 1
Link to comment
Share on other sites

  • 0
9 hours ago, EIysium said:

Go to db/pre-re/status.yml and search Impositio

  - Status: Impositio
    Icon: EFST_IMPOSITIO
    DurationLookup: PR_IMPOSITIO
    CalcFlags:
      Watk: true
    Flags:
      SuperNoviceAngel: true
    End:
      Impositio: true

to

  - Status: Impositio
    Icon: EFST_IMPOSITIO
    DurationLookup: PR_IMPOSITIO
    CalcFlags:
      Watk: true
      Matk: true
    Flags:
      SuperNoviceAngel: true
    End:
      Impositio: true


 

Thanks ! Ill try this when I get home .. Seems rathena make it more easier to adjust 

Link to comment
Share on other sites

  • 0

Hi I tried this but nothing happened 

Link to comment
Share on other sites

  • 0

Calc flags only determines when your stats get recalculated, but you still need to implement the actual bonus you want to give it.

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.