Jump to content
  • 0

Professor/Mage Talisman Effect/ Soul link


GM Homies

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   0
  • Joined:  03/02/12
  • Last Seen:  

Goodday fellow server owners/developers. I humbly ask how to add x2 HP if the mage and sage is in soul link.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   0
  • Joined:  03/02/12
  • Last Seen:  

Up

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

Try this one.
 
src/map/status.c
 
 
Under:
static int status_get_hpbonus(struct block_list *bl, enum e_status_bonus type)

Find This:

//Bonus by SC
if (sc) {
if(sc->data[SC_INCMHP])
bonus += sc->data[SC_INCMHP]->val1;
if(sc->data[SC_EARTH_INSIGNIA] && sc->data[SC_EARTH_INSIGNIA]->val1 == 2)
bonus += 500;
if(sc->data[SC_LERADSDEW])
bonus += sc->data[SC_LERADSDEW]->val3;
if(sc->data[SC_INSPIRATION])
bonus += (600 * sc->data[SC_INSPIRATION]->val1);
if(sc->data[SC_SOLID_SKIN_OPTION])
bonus += 2000;
if(sc->data[SC_MTF_MHP])
bonus += sc->data[SC_MTF_MHP]->val1;
if(sc->data[SC_MARIONETTE])
bonus -= 1000;
Add these lines:
if(sc->data[SC_SPIRIT] && (sc->data[SC_SPIRIT]->val2 == SL_WIZARD || sc->data[SC_SPIRIT]->val2 == SL_SAGE))
bonus += ((TBL_PC*)bl)->status.max_hp * 2;

PS: Haven't tested it yet. Just see if it works.

Edited by Lord Ganja
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  63
  • Reputation:   0
  • Joined:  07/23/13
  • Last Seen:  

Thank You

that works 

 

how do i make it 10% of the max hp?

tried changing it to * 0.1 - *.09

 

it goes to 1m hp

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

Thank You

that works 

 

how do i make it 10% of the max hp?

tried changing it to * 0.1 - *.09

 

it goes to 1m hp

 

bonus += ((TBL_PC*)bl)->status.max_hp / 10;

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