Jump to content
  • 0

Will this work?


Dvrstle

Question


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  361
  • Reputation:   10
  • Joined:  12/30/11
  • Last Seen:  

#ifdef RENEWAL_CAST
 if( sc->data[sC__LAZINESS] )
  fixed += fixed * sc->data[sC__LAZINESS]->val2 / 100;
 /**
  * AB Sacrament reduces fixed cast time by (10 x Level)% (up to 50%)
  **/
 if( sc->data[sC_SECRAMENT] )
  fixed -= fixed * sc->data[sC_SECRAMENT]->val2 / 100;
 if( sc->data[sC_MANDRAGORA] && (skill_id >= SM_BASH && skill_id <= RETURN_TO_ELDICASTES) )
  fixed += 2000;
 if (sc->data[sC_IZAYOI]  && (skill_id >= NJ_TOBIDOUGU && skill_id <= NJ_ISSEN))
  fixed = 0;
#endif
}

im going to change it to..

#ifdef RENEWAL
 if( sc->data[sC__LAZINESS] )
  fixed += fixed * sc->data[sC__LAZINESS]->val2 / 100;
 /**
  * AB Sacrament reduces fixed cast time by (10 x Level)% (up to 50%)
  **/
 if( sc->data[sC_SECRAMENT] )
  fixed -= fixed * sc->data[sC_SECRAMENT]->val2 / 100;
 if( sc->data[sC_MANDRAGORA] && (skill_id >= SM_BASH && skill_id <= RETURN_TO_ELDICASTES) )
  fixed += 2000;
 if (sc->data[sC_IZAYOI]  && (skill_id >= NJ_TOBIDOUGU && skill_id <= NJ_ISSEN))
  fixed = 0;
#endif
}

I changed the RENEWAL_CAST to RENEWAL only so that the skills will work to the server even though the renewal casting in my server is not implemented

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  554
  • Reputation:   70
  • Joined:  04/04/12
  • Last Seen:  

even you remove it or change it that way still it won't work cause

int fixed = skill_get_fixed_cast(skill_id, skill_lv);

is inside another macro and definitely you can get compilation error..

better remove all Macro inside 'skill_castfix_sc'...but still none sense because its like you enable renewal casting...:)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  361
  • Reputation:   10
  • Joined:  12/30/11
  • Last Seen:  

so how can i activate Mandragora Howling without using renewal casting? =)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  554
  • Reputation:   70
  • Joined:  04/04/12
  • Last Seen:  

copy the code for mandragora then change 'fixed' to 'time' and put it outside the RENEWAL_CAST macro or beside the other status change....

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  361
  • Reputation:   10
  • Joined:  12/30/11
  • Last Seen:  

can you make the code for me? so that i will not be confused buddy =)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  554
  • Reputation:   70
  • Joined:  04/04/12
  • Last Seen:  

just above '#ifdef RENEWAL_CAST'

if( sc->data[sC_MANDRAGORA] && (skill_id >= SM_BASH && skill_id <= RETURN_TO_ELDICASTES) )
  time += 2000;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  361
  • Reputation:   10
  • Joined:  12/30/11
  • Last Seen:  

ow tnx buddy. . =)

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